* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    background: #f5f7fa;
    color: #1f2937;
}

a {
    text-decoration: none;
}


/* ============================================================
   APP
   ============================================================ */

.app {
    display: flex;
    min-height: 100vh;
}


/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
    width: 255px;
    background: #17212b;
    color: #fff;

    display: flex;
    flex-direction: column;

    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
}

.brand {
    padding: 22px 18px;

    display: flex;
    align-items: center;

    gap: 12px;

    border-bottom: 1px solid rgba(255,255,255,.08);
}

.logo {
    width: 42px;
    height: 42px;

    border-radius: 10px;

    object-fit: contain;
    background: #fff;
}

.logo-placeholder {
    width: 42px;
    height: 42px;

    border-radius: 10px;

    background: #3d7189;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    font-weight: 700;
}

.brand-title {
    font-size: 15px;
    font-weight: 600;
}

.brand-subtitle {
    margin-top: 3px;

    font-size: 11px;

    color: #91a4b4;
}

.menu {
    padding: 18px 12px;

    overflow-y: auto;

    flex: 1;
}

.menu-section {
    margin: 20px 10px 7px;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1px;

    color: #718394;
}

.menu-item {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 10px 12px;

    margin-bottom: 2px;

    border-radius: 7px;

    color: #c9d4dd;

    font-size: 14px;

    transition: .15s;
}

.menu-item span {
    width: 20px;

    color: #8db9c9;

    text-align: center;
}

.menu-item:hover {
    background: #223542;
    color: #fff;
}

.sidebar-footer {
    padding: 16px;

    border-top: 1px solid rgba(255,255,255,.08);
}

.user-name {
    font-size: 13px;
    font-weight: 600;
}

.user-role {
    font-size: 11px;
    color: #8093a3;

    margin-top: 3px;
}

.logout {
    display: inline-block;

    margin-top: 12px;

    color: #8db9c9;

    font-size: 12px;
}


/* ============================================================
   CONTENT
   ============================================================ */

.content {
    margin-left: 255px;

    width: calc(100% - 255px);

    min-height: 100vh;
}

.topbar {
    height: 72px;

    background: #fff;

    border-bottom: 1px solid #e6e9ed;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 32px;
}

.topbar h1 {
    margin: 0;

    font-size: 21px;
    font-weight: 600;
}

.top-user {
    font-size: 13px;
    color: #667085;
}

.page {
    padding: 30px 32px;
}


/* ============================================================
   WELCOME
   ============================================================ */

.welcome {
    margin-bottom: 25px;
}

.welcome h2 {
    margin: 0 0 6px;

    font-size: 24px;
}

.welcome p {
    margin: 0;

    color: #667085;
}


/* ============================================================
   CARDS
   ============================================================ */

.cards {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;

    margin-bottom: 22px;
}

.card {
    background: #fff;

    border: 1px solid #e7ebef;

    border-radius: 10px;

    padding: 20px;

    display: flex;

    align-items: center;

    gap: 15px;
}

.card-icon {
    width: 42px;
    height: 42px;

    border-radius: 9px;

    background: #edf5f7;

    color: #3d7189;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 700;
}

.card-label {
    font-size: 12px;

    color: #667085;
}

.card-value {
    margin-top: 4px;

    font-size: 25px;

    font-weight: 700;
}


/* ============================================================
   GRID
   ============================================================ */

.dashboard-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;

    margin-bottom: 20px;
}


/* ============================================================
   PANELS
   ============================================================ */

.panel {
    background: #fff;

    border: 1px solid #e7ebef;

    border-radius: 10px;

    overflow: hidden;
}

.panel-header {
    padding: 18px 20px;

    border-bottom: 1px solid #edf0f2;

    display: flex;

    align-items: center;
    justify-content: space-between;
}

.panel-header h3 {
    margin: 0;

    font-size: 16px;
}

.panel-header span {
    display: block;

    margin-top: 4px;

    color: #8993a0;

    font-size: 12px;
}

.panel-link {
    color: #3d7189;

    font-size: 12px;

    font-weight: 600;
}


/* ============================================================
   STATUS
   ============================================================ */

.status-list {
    padding: 10px 20px 15px;
}

.status-row {
    padding: 12px 0;

    display: flex;

    justify-content: space-between;

    border-bottom: 1px solid #f0f2f4;

    font-size: 13px;
}

.status-row:last-child {
    border-bottom: 0;
}

.status-row strong {
    color: #3d7189;
}


/* ============================================================
   FINANCEIRO
   ============================================================ */

.financial-list {
    padding: 10px 20px 15px;
}

.financial-row {
    display: flex;

    justify-content: space-between;

    padding: 14px 0;

    border-bottom: 1px solid #f0f2f4;

    font-size: 13px;
}

.financial-row:last-child {
    border-bottom: 0;
}

.financial-row strong {
    font-size: 14px;
}


/* ============================================================
   TABLE
   ============================================================ */

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;

    border-collapse: collapse;

    font-size: 12px;
}

th {
    padding: 11px 20px;

    text-align: left;

    background: #fafbfc;

    color: #667085;

    font-weight: 600;
}

td {
    padding: 12px 20px;

    border-top: 1px solid #edf0f2;
}


/* ============================================================
   ACTIVITIES
   ============================================================ */

.activity-list {
    padding: 10px 20px 15px;
}

.activity {
    display: flex;

    gap: 12px;

    padding: 13px 0;

    border-bottom: 1px solid #f0f2f4;
}

.activity:last-child {
    border-bottom: 0;
}

.activity-dot {
    width: 8px;
    height: 8px;

    margin-top: 6px;

    border-radius: 50%;

    background: #3d7189;

    flex-shrink: 0;
}

.activity strong {
    display: block;

    font-size: 13px;
}

.activity span {
    display: block;

    margin-top: 3px;

    color: #667085;

    font-size: 12px;
}

.activity small {
    display: block;

    margin-top: 3px;

    color: #98a2b3;

    font-size: 11px;
}


/* ============================================================
   EMPTY
   ============================================================ */

.empty {
    padding: 20px;

    text-align: center;

    color: #98a2b3;

    font-size: 13px;
}


/* ============================================================
   MODULE
   ============================================================ */

.module-page {
    background: #fff;

    border: 1px solid #e7ebef;

    border-radius: 10px;

    padding: 50px;

    text-align: center;
}

.module-icon {
    width: 70px;
    height: 70px;

    margin: 0 auto 20px;

    border-radius: 15px;

    background: #edf5f7;

    color: #3d7189;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 27px;
    font-weight: 700;
}

.module-page h2 {
    margin: 0 0 10px;

    font-size: 25px;
}

.module-page p {
    color: #667085;
}

.button {
    display: inline-block;

    margin-top: 20px;

    padding: 10px 18px;

    background: #3d7189;

    color: #fff;

    border-radius: 7px;

    font-size: 13px;
}


/* ============================================================
   LOGIN
   ============================================================ */

.login-body {
    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #17212b;
}

.login-box {
    width: 390px;

    max-width: calc(100% - 30px);

    background: #fff;

    border-radius: 12px;

    padding: 40px;

    box-shadow:
        0 20px 50px rgba(0,0,0,.25);
}

.login-logo {
    width: 55px;
    height: 55px;

    margin: 0 auto 20px;

    border-radius: 12px;

    background: #3d7189;

    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 27px;
    font-weight: 700;
}

.login-box h1 {
    margin: 0;

    text-align: center;

    font-size: 22px;
}

.login-box > p {
    margin: 8px 0 25px;

    text-align: center;

    color: #667085;

    font-size: 13px;
}

.login-box label {
    display: block;

    margin: 15px 0 6px;

    font-size: 12px;

    font-weight: 600;
}

.login-box input {
    width: 100%;

    padding: 11px 12px;

    border: 1px solid #d0d5dd;

    border-radius: 7px;

    font-size: 14px;

    outline: none;
}

.login-box input:focus {
    border-color: #3d7189;
}

.login-button {
    width: 100%;

    margin-top: 25px;

    padding: 12px;

    border: 0;

    border-radius: 7px;

    background: #3d7189;

    color: #fff;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;
}

.login-error {
    padding: 10px;

    border-radius: 6px;

    background: #fff0f0;

    color: #a33;

    font-size: 12px;

    text-align: center;
}


/* ============================================================
   RESPONSIVO
   ============================================================ */

@media (max-width: 1100px) {

    .cards {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 850px) {

    .sidebar {
        width: 70px;
    }

    .brand {
        justify-content: center;
    }

    .brand > div:last-child {
        display: none;
    }

    .menu-section,
    .menu-item {
        font-size: 0;
    }

    .menu-item {
        justify-content: center;
    }

    .menu-item span {
        font-size: 16px;
    }

    .sidebar-footer {
        text-align: center;
    }

    .user-name,
    .user-role {
        display: none;
    }

    .content {
        margin-left: 70px;

        width: calc(100% - 70px);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {

    .page {
        padding: 20px 15px;
    }

    .topbar {
        padding: 0 15px;
    }

    .top-user {
        display: none;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .module-page {
        padding: 30px 20px;
    }

}
