:root {
    --primary: #1f4b6e;
    --primary-dark: #14364f;
    --primary-light: #3976a2;
    --accent: #d19a3e;

    --background: #f3f6f8;
    --surface: #ffffff;

    --text: #1d2b36;
    --text-secondary: #687681;
    --border: #dce4e9;

    --danger: #b42318;
    --danger-background: #fef3f2;
    --danger-border: #fecdca;

    --shadow: 0 24px 70px rgba(25, 46, 63, 0.14);
    --radius-large: 24px;
    --radius-medium: 12px;

    --font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: var(--font-family);
    color: var(--text);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

/* ==========================================================
   PÁGINA DE LOGIN
   ========================================================== */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background:
        radial-gradient(
            circle at top left,
            rgba(57, 118, 162, 0.12),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #edf3f6 0%,
            #f8fafb 52%,
            #eef3f6 100%
        );
}

.login-container {
    display: grid;
    grid-template-columns: minmax(420px, 1.05fr) minmax(420px, 0.95fr);
    width: min(1120px, 100%);
    min-height: 660px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
}

/* ==========================================================
   APRESENTAÇÃO
   ========================================================== */

.login-presentation {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 70px 64px;
    color: #ffffff;
    background:
        linear-gradient(
            145deg,
            rgba(20, 54, 79, 0.97),
            rgba(31, 75, 110, 0.94)
        );
}

.presentation-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.brand-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 28px;
    font-size: 31px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    backdrop-filter: blur(8px);
}

.system-label {
    display: block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.login-presentation h1 {
    margin: 0 0 20px;
    font-size: clamp(46px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.login-presentation h1 span {
    color: var(--accent);
}

.login-presentation > .presentation-content > p {
    max-width: 470px;
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.76);
}

.presentation-features {
    display: grid;
    gap: 22px;
    margin-top: 48px;
}

.presentation-feature {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 16px;
    align-items: center;
}

.presentation-feature > i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    font-size: 20px;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
}

.presentation-feature strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.presentation-feature span {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.62);
}

.presentation-decoration {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.decoration-one {
    right: -170px;
    bottom: -190px;
    width: 450px;
    height: 450px;
}

.decoration-two {
    top: -130px;
    right: -80px;
    width: 290px;
    height: 290px;
    background: rgba(255, 255, 255, 0.025);
}

/* ==========================================================
   FORMULÁRIO
   ========================================================== */

.login-form-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px;
    background: var(--surface);
}

.login-form-wrapper {
    width: 100%;
    max-width: 390px;
}

.mobile-brand {
    display: none;
}

.login-header {
    margin-bottom: 34px;
}

.login-eyebrow {
    display: block;
    margin-bottom: 9px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-light);
}

.login-header h2 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--text);
}

.login-header p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.login-form {
    display: grid;
    gap: 22px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #334451;
}

.input-wrapper {
    position: relative;
}

.input-wrapper > i {
    position: absolute;
    top: 50%;
    left: 16px;
    z-index: 1;
    font-size: 17px;
    color: #86949e;
    transform: translateY(-50%);
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    height: 52px;
    padding: 0 48px 0 46px;
    font-size: 15px;
    color: var(--text);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.input-wrapper input::placeholder {
    color: #a0abb3;
}

.input-wrapper input:hover {
    border-color: #bcc9d1;
}

.input-wrapper input:focus {
    background: #ffffff;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(57, 118, 162, 0.12);
}

.input-wrapper input:focus + .password-toggle,
.input-wrapper:focus-within > i {
    color: var(--primary-light);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    font-size: 17px;
    color: #7e8b95;
    background: transparent;
    border: 0;
    border-radius: 9px;
    transform: translateY(-50%);
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.password-toggle:hover {
    color: var(--primary);
    background: #edf3f7;
}

.password-toggle:focus-visible {
    outline: 3px solid rgba(57, 118, 162, 0.2);
}

.login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background: var(--primary);
    border: 0;
    border-radius: var(--radius-medium);
    box-shadow: 0 10px 24px rgba(31, 75, 110, 0.2);
    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.login-button:hover {
    background: var(--primary-dark);
    box-shadow: 0 13px 28px rgba(31, 75, 110, 0.27);
    transform: translateY(-1px);
}

.login-button:active {
    transform: translateY(0);
}

.login-button i {
    font-size: 17px;
    transition: transform 0.2s ease;
}

.login-button:hover i {
    transform: translateX(3px);
}

.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 32px;
    font-size: 12px;
    color: #89969f;
}

.login-footer i {
    font-size: 11px;
}

/* ==========================================================
   ALERTAS
   ========================================================== */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 24px;
    padding: 14px 15px;
    font-size: 13px;
    line-height: 1.5;
    border-radius: 10px;
}

.alert i {
    margin-top: 1px;
    font-size: 16px;
}

.alert-error {
    color: var(--danger);
    background: var(--danger-background);
    border: 1px solid var(--danger-border);
}

/* ==========================================================
   RESPONSIVIDADE
   ========================================================== */

@media (max-width: 960px) {
    .login-page {
        padding: 20px;
    }

    .login-container {
        grid-template-columns: 1fr;
        max-width: 560px;
        min-height: auto;
    }

    .login-presentation {
        display: none;
    }

    .login-form-section {
        padding: 52px 48px;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 44px;
    }

    .mobile-brand-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 43px;
        height: 43px;
        font-size: 20px;
        color: #ffffff;
        background: var(--primary);
        border-radius: 12px;
    }

    .mobile-brand strong {
        font-size: 21px;
        letter-spacing: -0.025em;
        color: var(--primary-dark);
    }

    .mobile-brand strong span {
        color: var(--accent);
    }
}

@media (max-width: 560px) {
    .login-page {
        align-items: flex-start;
        padding: 0;
        background: #ffffff;
    }

    .login-container {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-form-section {
        align-items: flex-start;
        padding: 36px 24px;
    }

    .mobile-brand {
        margin-bottom: 52px;
    }

    .login-header h2 {
        font-size: 30px;
    }
}

/* ==========================================================
   ESTRUTURA INTERNA DO SISTEMA
   ========================================================== */

.system-body {
    min-height: 100vh;
    background: #f3f6f8;
}

.system-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    min-height: 100vh;
}

/* ==========================================================
   MENU LATERAL
   ========================================================== */

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 28px 20px 22px;
    color: #ffffff;
    background:
        linear-gradient(
            180deg,
            #173f5d 0%,
            #102f47 100%
        );
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 10px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    font-size: 21px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 13px;
}

.sidebar-brand strong {
    display: block;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.sidebar-brand strong span {
    color: var(--accent);
}

.sidebar-brand small {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
}

.sidebar-navigation {
    display: grid;
    gap: 6px;
    padding-top: 30px;
}

.navigation-title {
    display: block;
    margin: 0 12px 9px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
}

.navigation-link {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 47px;
    padding: 10px 13px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;
    border-radius: 11px;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.navigation-link i {
    width: 21px;
    font-size: 18px;
    text-align: center;
}

.navigation-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

.navigation-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 3px 0 0 var(--accent);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 8px 17px;
}

.sidebar-user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    font-size: 14px;
    font-weight: 800;
    color: var(--primary-dark);
    background: var(--accent);
    border-radius: 50%;
}

.sidebar-user-info {
    min-width: 0;
}

.sidebar-user-info strong {
    display: block;
    overflow: hidden;
    font-size: 13px;
    color: #ffffff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-info span {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.48);
}

.logout-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.56);
    text-decoration: none;
    border-radius: 10px;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.logout-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

/* ==========================================================
   CONTEÚDO PRINCIPAL
   ========================================================== */

.main-content {
    min-width: 0;
    padding: 38px 42px 50px;
}

.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.page-eyebrow,
.section-eyebrow {
    display: block;
    margin-bottom: 7px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-light);
}

.topbar h1 {
    margin: 0 0 7px;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--text);
}

.topbar p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.topbar-date {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #596873;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
}

/* ==========================================================
   INDICADORES
   ========================================================== */

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.dashboard-card {
    display: flex;
    align-items: center;
    gap: 17px;
    min-height: 143px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e8ec;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(25, 46, 63, 0.05);
}

.dashboard-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    font-size: 22px;
    color: var(--primary);
    background: #edf4f8;
    border-radius: 14px;
}

.dashboard-card-content {
    min-width: 0;
}

.dashboard-card-content > span {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.dashboard-card-content > strong {
    display: block;
    font-size: 29px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text);
}

.dashboard-card-content small {
    display: block;
    margin-top: 7px;
    font-size: 11px;
    color: #87949d;
}

.dashboard-card-highlight {
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );
    border-color: transparent;
}

.dashboard-card-highlight .dashboard-card-icon {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.11);
}

.dashboard-card-highlight .dashboard-card-content > span {
    color: rgba(255, 255, 255, 0.62);
}

.dashboard-card-highlight
.dashboard-card-content
.dashboard-action-title {
    font-size: 20px;
    color: #ffffff;
}

.dashboard-card-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

.dashboard-card-link i {
    transition: transform 0.2s ease;
}

.dashboard-card-link:hover i {
    transform: translateX(3px);
}

/* ==========================================================
   CARD DE CONTEÚDO
   ========================================================== */

.content-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8ec;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(25, 46, 63, 0.05);
}

.content-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px;
    border-bottom: 1px solid #e8edf0;
}

.content-card-header h2 {
    margin: 0;
    font-size: 19px;
    letter-spacing: -0.015em;
    color: var(--text);
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    background: #edf4f8;
    border: 1px solid #d7e5ed;
    border-radius: 9px;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.secondary-button:hover {
    color: #ffffff;
    background: var(--primary);
}

/* ==========================================================
   TABELAS
   ========================================================== */

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

.system-table {
    width: 100%;
    border-collapse: collapse;
}

.system-table th,
.system-table td {
    padding: 15px 18px;
    font-size: 12px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #edf1f3;
}

.system-table th {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #77848d;
    background: #fafbfc;
}

.system-table tbody tr:last-child td {
    border-bottom: 0;
}

.system-table tbody tr:hover {
    background: #fafcfd;
}

.table-main-text {
    color: var(--text);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 9px;
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    background: #edf4f8;
    border-radius: 20px;
}

.table-actions {
    width: 54px;
    text-align: right !important;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    font-size: 15px;
    color: var(--primary);
    text-decoration: none;
    background: #edf4f8;
    border-radius: 9px;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.icon-button:hover {
    color: #ffffff;
    background: var(--primary);
}

/* ==========================================================
   ESTADO VAZIO
   ========================================================== */

.empty-state {
    padding: 55px 30px;
    text-align: center;
}

.empty-state-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 17px;
    font-size: 24px;
    color: var(--primary);
    background: #edf4f8;
    border-radius: 16px;
}

.empty-state h3 {
    margin: 0 0 7px;
    font-size: 16px;
    color: var(--text);
}

.empty-state p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

/* ==========================================================
   RESPONSIVIDADE DO PAINEL
   ========================================================== */

@media (max-width: 1100px) {
    .system-layout {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    .main-content {
        padding: 32px 28px 45px;
    }

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

@media (max-width: 760px) {
    .system-layout {
        display: block;
    }

    .sidebar {
        position: relative;
        height: auto;
    }

    .sidebar-navigation {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .navigation-title {
        display: none;
    }

    .navigation-link {
        justify-content: center;
    }

    .navigation-link span {
        display: none;
    }

    .sidebar-footer {
        display: none;
    }

    .main-content {
        padding: 25px 18px 40px;
    }

    .topbar {
        display: block;
    }

    .topbar-date {
        display: none;
    }

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

    .content-card-header {
        align-items: flex-start;
    }
}

/* ==========================================================
   PÁGINAS DE GERENCIAMENTO
   ========================================================== */

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.page-header h1 {
    margin: 0 0 7px;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.page-header p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.primary-button,
.cancel-button,
.filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 43px;
    padding: 10px 17px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
}

.primary-button {
    color: #ffffff;
    background: var(--primary);
    border: 1px solid var(--primary);
}

.primary-button:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.cancel-button {
    color: #596873;
    background: #ffffff;
    border: 1px solid var(--border);
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
    margin-bottom: 22px;
}

.summary-card {
    padding: 20px 22px;
    background: #ffffff;
    border: 1px solid #e2e8ec;
    border-radius: 14px;
}

.summary-card span {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.summary-card strong {
    font-size: 27px;
    color: var(--text);
}

.filter-bar {
    padding: 20px 22px;
    background: #fafbfc;
    border-bottom: 1px solid #e8edf0;
}

.filter-form {
    display: flex;
    align-items: center;
    gap: 11px;
}

.filter-search {
    position: relative;
    flex: 1;
    max-width: 430px;
}

.filter-search i {
    position: absolute;
    top: 50%;
    left: 14px;
    color: #89969f;
    transform: translateY(-50%);
}

.filter-search input,
.filter-form select {
    height: 42px;
    font-size: 13px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
}

.filter-search input {
    width: 100%;
    padding: 0 14px 0 41px;
}

.filter-form select {
    min-width: 170px;
    padding: 0 34px 0 12px;
}

.filter-search input:focus,
.filter-form select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(57, 118, 162, 0.1);
}

.filter-button {
    color: #ffffff;
    background: var(--primary);
    border: 0;
}

.clear-filter {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.user-table-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-table-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    font-size: 13px;
    font-weight: 800;
    color: var(--primary);
    background: #edf4f8;
    border-radius: 11px;
}

.user-table-cell strong,
.user-table-cell span {
    display: block;
}

.user-table-cell span {
    margin-top: 3px;
    font-size: 11px;
    color: var(--text-secondary);
}

.status-badge {
    gap: 6px;
}

.status-active {
    color: #067647;
    background: #ecfdf3;
}

.status-inactive {
    color: #b42318;
    background: #fef3f2;
}

.muted-text {
    color: #929da5;
}

.table-actions-header {
    text-align: right !important;
}

.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
}

.action-buttons form {
    margin: 0;
}

.icon-button {
    border: 0;
    cursor: pointer;
}

.icon-button-danger {
    color: #b42318;
    background: #fef3f2;
}

.icon-button-danger:hover {
    color: #ffffff;
    background: #b42318;
}

.icon-button-success {
    color: #067647;
    background: #ecfdf3;
}

.icon-button-success:hover {
    color: #ffffff;
    background: #067647;
}

.system-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
    padding: 15px 17px;
    font-size: 13px;
    line-height: 1.6;
    border-radius: 11px;
}

.system-alert-success {
    color: #067647;
    background: #ecfdf3;
    border: 1px solid #abefc6;
}

.system-alert-error {
    color: #b42318;
    background: #fef3f2;
    border: 1px solid #fecdca;
}

.system-alert ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

/* ==========================================================
   FORMULÁRIO DE USUÁRIO
   ========================================================== */

.form-card {
    max-width: 820px;
    background: #ffffff;
    border: 1px solid #e2e8ec;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(25, 46, 63, 0.05);
}

.system-form {
    padding: 27px;
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e8edf0;
}

.form-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    font-size: 20px;
    color: var(--primary);
    background: #edf4f8;
    border-radius: 13px;
}

.form-section-header h2 {
    margin: 0 0 4px;
    font-size: 17px;
}

.form-section-header p {
    margin: 0;
    font-size: 12px;
    color: var(--text-secondary);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 25px 0;
}

.form-column-full {
    grid-column: 1 / -1;
}

.system-form-group {
    display: grid;
    gap: 8px;
}

.system-form-group label {
    font-size: 12px;
    font-weight: 700;
    color: #334451;
}

.system-form-group label span {
    color: #b42318;
}

.system-form-group input,
.system-form-group select,
.system-form-group textarea {
    width: 100%;
    min-height: 45px;
    padding: 10px 13px;
    font-size: 13px;
    color: var(--text);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
}

.system-form-group input:focus,
.system-form-group select:focus,
.system-form-group textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(57, 118, 162, 0.1);
}

.system-form-group small {
    font-size: 11px;
    color: var(--text-secondary);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 11px;
    padding-top: 20px;
    border-top: 1px solid #e8edf0;
}

@media (max-width: 760px) {
    .page-header {
        display: grid;
    }

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

    .form-column-full {
        grid-column: auto;
    }

    .filter-form {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-search {
        max-width: none;
    }

    .filter-form select {
        width: 100%;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions a,
    .form-actions button {
        width: 100%;
    }
}