* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f4f6f8;
    --surface: #ffffff;

    --sidebar: #111827;
    --sidebar-hover: #1f2937;

    --primary: #2563eb;
    --primary-soft: #eff6ff;

    --text: #111827;
    --text-soft: #6b7280;

    --border: #e5e7eb;

    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;

    --radius: 12px;
}

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

    background: var(--bg);
    color: var(--text);
}

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

.sidebar {
    width: 250px;
    min-height: 100vh;

    position: fixed;
    left: 0;
    top: 0;

    display: flex;
    flex-direction: column;

    padding: 22px 16px;

    background: var(--sidebar);
    color: #ffffff;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 0 8px 24px;
}

.brand-mark {
    width: 42px;
    height: 42px;

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

    border-radius: 10px;

    background: var(--primary);

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

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-size: 19px;
    letter-spacing: 0.2px;
}

.brand-text span {
    margin-top: 2px;

    font-size: 12px;
    color: #9ca3af;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;

    margin-top: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;

    min-height: 46px;

    padding: 0 14px;

    border-radius: 9px;

    color: #d1d5db;

    text-decoration: none;
    font-size: 14px;
    font-weight: 500;

    transition: 0.15s ease;
}

.nav-item:hover {
    background: var(--sidebar-hover);
    color: #ffffff;
}

.nav-item.active {
    background: var(--primary);
    color: #ffffff;
}

.nav-icon {
    width: 20px;

    display: inline-flex;
    justify-content: center;

    font-size: 17px;
}

.sidebar-footer {
    margin-top: auto;

    padding-top: 20px;

    border-top: 1px solid #263244;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 14px;
}

.user-avatar,
.topbar-avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--primary);

    color: #ffffff;

    font-weight: 700;
}

.user-avatar {
    width: 38px;
    height: 38px;
}

.user-info {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.user-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 13px;
}

.user-info span {
    margin-top: 2px;

    font-size: 11px;
    color: #9ca3af;
}

.logout-button {
    width: 100%;

    padding: 10px;

    border: 1px solid #374151;
    border-radius: 8px;

    background: transparent;

    color: #d1d5db;

    cursor: pointer;

    transition: 0.15s ease;
}

.logout-button:hover {
    background: #1f2937;
    color: #ffffff;
}

.main-content {
    width: calc(100% - 250px);

    margin-left: 250px;
}

.topbar {
    min-height: 90px;

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

    padding: 20px 30px;

    background: var(--surface);

    border-bottom: 1px solid var(--border);
}

.topbar h1 {
    font-size: 22px;
    font-weight: 700;
}

.topbar p {
    margin-top: 4px;

    font-size: 13px;
    color: var(--text-soft);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 14px;
}

.topbar-avatar {
    width: 38px;
    height: 38px;
}

.content {
    padding: 28px 30px;
}

.card {
    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.03);
}

.cards-grid {
    display: grid;

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

    gap: 18px;
}

.stat-card {
    padding: 20px;
}

.stat-card span {
    display: block;

    margin-bottom: 12px;

    font-size: 13px;
    color: var(--text-soft);
}

.stat-card strong {
    font-size: 30px;
    font-weight: 700;
}

.section-card {
    margin-top: 22px;

    padding: 22px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;
}

.section-header h2 {
    font-size: 16px;
}

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

table {
    width: 100%;

    border-collapse: collapse;

    font-size: 13px;
}

thead th {
    padding: 12px 14px;

    text-align: left;

    color: var(--text-soft);

    font-weight: 600;

    border-bottom: 1px solid var(--border);
}

tbody td {
    padding: 14px;

    border-bottom: 1px solid var(--border);
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: #fafafa;
}

.badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 9px;

    border-radius: 999px;

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

.badge-open {
    background: #eff6ff;
    color: #1d4ed8;
}

.badge-progress {
    background: #fff7ed;
    color: #c2410c;
}

.badge-waiting {
    background: #fefce8;
    color: #a16207;
}

.badge-completed {
    background: #f0fdf4;
    color: #15803d;
}

.badge-cancelled {
    background: #fef2f2;
    color: #b91c1c;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 14px;

    border: none;
    border-radius: 8px;

    background: var(--primary);

    color: #ffffff;

    text-decoration: none;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
}

.button:hover {
    background: #1d4ed8;
}

@media (max-width: 1050px) {
    .cards-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .sidebar {
        width: 210px;
    }

    .main-content {
        width: calc(100% - 210px);
        margin-left: 210px;
    }

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

    .topbar,
    .content {
        padding-left: 20px;
        padding-right: 20px;
    }
}

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

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

    padding: 24px;

    background:
        linear-gradient(
            135deg,
            #111827 0%,
            #172033 50%,
            #111827 100%
        );
}

.login-shell {
    width: 100%;
    max-width: 420px;
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    margin-bottom: 24px;

    color: #ffffff;
}

.login-brand-mark {
    width: 48px;
    height: 48px;

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

    border-radius: 12px;

    background: var(--primary);

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

.login-brand h1 {
    font-size: 26px;
}

.login-brand p {
    margin-top: 2px;

    color: #9ca3af;
    font-size: 13px;
}

.login-card {
    padding: 30px;

    background: #ffffff;

    border-radius: 16px;

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

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

.login-header h2 {
    font-size: 22px;
    margin-bottom: 6px;
}

.login-header p {
    color: var(--text-soft);
    font-size: 13px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
}

.form-group input {
    width: 100%;

    padding: 12px 13px;

    border: 1px solid var(--border);
    border-radius: 9px;

    font: inherit;
    font-size: 14px;

    outline: none;

    transition: 0.15s ease;
}

.form-group input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.10);
}

.login-button {
    width: 100%;

    padding: 12px;

    border: none;
    border-radius: 9px;

    background: var(--primary);

    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.15s ease;
}

.login-button:hover {
    background: #1d4ed8;
}

.login-error {
    margin-bottom: 18px;

    padding: 11px 12px;

    border-radius: 8px;

    background: #fef2f2;
    color: #b91c1c;

    font-size: 13px;
}

.login-footer {
    margin-top: 18px;

    text-align: center;

    color: #9ca3af;
    font-size: 12px;
}

/* =========================================================
   GestiON - Login definitivo
   ========================================================= */

.login-page {
    min-height: 100vh;
    margin: 0;

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

    padding: 32px 20px;

    background:
        radial-gradient(
            circle at 50% 40%,
            #12254d 0%,
            #091a39 42%,
            #041126 100%
        );

    color: #0f172a;
}

.login-container {
    width: 100%;
    max-width: 500px;

    display: flex;
    flex-direction: column;
    align-items: stretch;
}


/* Marca */

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    margin-bottom: 28px;
}

.login-logo {
    width: 84px !important;
    height: 84px !important;

    max-width: 84px !important;
    max-height: 84px !important;

    object-fit: contain;

    flex: 0 0 84px;
}

.login-brand-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-brand-copy h1 {
    margin: 0;

    color: #ffffff;

    font-size: 38px;
    line-height: 1;
    font-weight: 800;

    letter-spacing: -1px;
}

.login-brand-copy h1 span {
    color: #2f6df6;
}

.login-brand-copy p {
    margin: 7px 0 0;

    color: #aebbd2;

    font-size: 15px;
    font-weight: 400;
}


/* Card */

.login-page .login-card {
    width: 100%;

    padding: 34px 38px 36px;

    background: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 18px;

    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.28),
        0 4px 15px rgba(0, 0, 0, 0.10);
}

.login-card-header {
    margin-bottom: 27px;
}

.login-card-header h2 {
    margin: 0 0 8px;

    color: #0b1933;

    font-size: 27px;
    font-weight: 800;

    letter-spacing: -0.4px;
}

.login-card-header p {
    margin: 0;

    color: #68768d;

    font-size: 14px;
}


/* Formulário */

.login-page .login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-page .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-page .form-group label {
    color: #14213a;

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

.login-page .form-group input {
    width: 100%;
    height: 52px;

    padding: 0 15px;

    border: 1px solid #d7deea;
    border-radius: 10px;

    background: #ffffff;

    color: #172033;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.login-page .form-group input::placeholder {
    color: #8b97aa;
}

.login-page .form-group input:focus {
    border-color: #2f6df6;

    box-shadow:
        0 0 0 3px rgba(47, 109, 246, 0.12);
}


/* Botão */

.login-page .login-button {
    width: 100%;
    height: 54px;

    margin-top: 4px;

    border: 0;
    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            #2f6df6 0%,
            #1554e8 100%
        );

    color: #ffffff;

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

    cursor: pointer;

    box-shadow:
        0 8px 18px rgba(37, 99, 235, 0.20);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.login-page .login-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 11px 24px rgba(37, 99, 235, 0.28);
}


/* Mensagem de erro */

.login-page .login-error {
    margin-bottom: 20px;
    padding: 12px 14px;

    border: 1px solid #fecaca;
    border-radius: 9px;

    background: #fef2f2;
    color: #b91c1c;

    font-size: 13px;
}


/* Rodapé */

.login-page .login-footer {
    margin-top: 26px;

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

    color: #a8b4c8;

    font-size: 13px;
}

.login-page .login-footer::before,
.login-page .login-footer::after {
    content: "";

    width: 90px;
    height: 1px;

    margin: 0 18px;

    background: rgba(122, 148, 191, 0.30);
}


/* Responsivo */

@media (max-width: 600px) {
    .login-container {
        max-width: 420px;
    }

    .login-logo {
        width: 68px !important;
        height: 68px !important;
        max-width: 68px !important;
        max-height: 68px !important;
        flex-basis: 68px;
    }

    .login-brand-copy h1 {
        font-size: 31px;
    }

    .login-brand-copy p {
        font-size: 13px;
    }

    .login-page .login-card {
        padding: 28px 24px 30px;
    }
}

.login-logo {
    width: 96px !important;
    height: 96px !important;
    max-width: 96px !important;
    max-height: 96px !important;
    flex-basis: 96px;
}

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

.login-container {
    transform: translateY(-18px);
}

/* Ajuste final da marca do login */

.login-logo {
    width: 120px !important;
    height: 120px !important;
    max-width: 120px !important;
    max-height: 120px !important;
    flex-basis: 120px;
}

.login-brand {
    gap: 22px;
    margin-bottom: 34px;
}

.login-brand-copy h1 {
    font-size: 42px;
}

.login-brand-copy p {
    font-size: 15px;
    margin-top: 7px;
}

/* =========================================================
   GestiON - Login horizontal
   ========================================================= */

.login-page {
    min-height: 100vh;
    margin: 0;

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

    padding: 40px;

    background:
        radial-gradient(
            circle at center,
            #12254d 0%,
            #091a39 48%,
            #041126 100%
        );

    color: #0f172a;
}

.login-layout {
    width: 100%;
    max-width: 1180px;

    display: grid;
    grid-template-columns: 1fr 1px 1.05fr;

    align-items: center;
    gap: 58px;
}


/* Painel da marca */

.login-brand-panel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.login-brand-horizontal {
    display: flex;
    align-items: center;
    gap: 28px;
}

.login-logo-large {
    width: 150px !important;
    height: 150px !important;

    max-width: 150px !important;
    max-height: 150px !important;

    object-fit: contain;

    flex: 0 0 150px;
}

.login-brand-copy-horizontal {
    display: flex;
    flex-direction: column;
}

.login-brand-copy-horizontal h1 {
    margin: 0;

    color: #ffffff;

    font-size: 58px;
    line-height: 1;
    font-weight: 800;

    letter-spacing: -1.6px;
}

.login-brand-copy-horizontal h1 span {
    color: #2f6df6;
}

.login-brand-copy-horizontal p {
    margin: 14px 0 0;

    color: #b2bfd4;

    font-size: 19px;
}


/* Divisor */

.login-divider {
    width: 1px;
    height: 330px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(117, 145, 194, 0.34),
            transparent
        );
}


/* Painel do formulário */

.login-form-panel {
    width: 100%;
    max-width: 520px;

    display: flex;
    flex-direction: column;
}

.login-form-panel .login-card {
    width: 100%;

    padding: 42px 44px 40px;

    background: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 18px;

    box-shadow:
        0 26px 65px rgba(0, 0, 0, 0.28),
        0 4px 16px rgba(0, 0, 0, 0.08);
}

.login-form-panel .login-card-header {
    margin-bottom: 28px;
}

.login-form-panel .login-card-header h2 {
    margin: 0 0 8px;

    color: #0b1933;

    font-size: 32px;
    font-weight: 800;
}

.login-form-panel .login-card-header p {
    margin: 0;

    color: #68768d;

    font-size: 15px;
}

.login-form-panel .login-form {
    display: flex;
    flex-direction: column;
    gap: 21px;
}

.login-form-panel .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-form-panel .form-group label {
    color: #14213a;

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

.login-form-panel .form-group input {
    width: 100%;
    height: 56px;

    padding: 0 16px;

    border: 1px solid #d7deea;
    border-radius: 10px;

    background: #ffffff;

    color: #172033;

    font-size: 15px;

    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.login-form-panel .form-group input::placeholder {
    color: #8b97aa;
}

.login-form-panel .form-group input:focus {
    border-color: #2f6df6;

    box-shadow:
        0 0 0 3px rgba(47, 109, 246, 0.12);
}

.login-form-panel .login-button {
    width: 100%;
    height: 58px;

    margin-top: 4px;

    border: 0;
    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            #2f6df6 0%,
            #1554e8 100%
        );

    color: #ffffff;

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

    cursor: pointer;

    box-shadow:
        0 10px 22px rgba(37, 99, 235, 0.22);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.login-form-panel .login-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 12px 28px rgba(37, 99, 235, 0.30);
}

.login-form-panel .login-error {
    margin-bottom: 20px;
}


/* Rodapé */

.login-form-panel .login-footer {
    margin-top: 28px;

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

    color: #a8b4c8;

    font-size: 13px;
}

.login-form-panel .login-footer::before,
.login-form-panel .login-footer::after {
    content: "";

    width: 90px;
    height: 1px;

    margin: 0 18px;

    background: rgba(122, 148, 191, 0.30);
}


/* Responsivo */

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

    .login-layout {
        max-width: 520px;

        grid-template-columns: 1fr;
        gap: 30px;
    }

    .login-divider {
        display: none;
    }

    .login-brand-panel {
        justify-content: center;
    }

    .login-brand-horizontal {
        justify-content: center;
    }

    .login-logo-large {
        width: 100px !important;
        height: 100px !important;

        max-width: 100px !important;
        max-height: 100px !important;

        flex-basis: 100px;
    }

    .login-brand-copy-horizontal h1 {
        font-size: 42px;
    }

    .login-brand-copy-horizontal p {
        margin-top: 8px;
        font-size: 14px;
    }

    .login-form-panel {
        max-width: none;
    }
}

@media (max-width: 520px) {
    .login-brand-horizontal {
        gap: 15px;
    }

    .login-logo-large {
        width: 76px !important;
        height: 76px !important;

        max-width: 76px !important;
        max-height: 76px !important;

        flex-basis: 76px;
    }

    .login-brand-copy-horizontal h1 {
        font-size: 33px;
    }

    .login-brand-copy-horizontal p {
        font-size: 12px;
    }

    .login-form-panel .login-card {
        padding: 30px 24px;
    }
}

/* =========================================================
   GestiON - Aplicação / Dashboard
   ========================================================= */

.app-body {
    margin: 0;
    min-height: 100vh;

    background: #f4f6fa;

    color: #152033;
}


.app-layout {
    min-height: 100vh;

    display: flex;
}


/* =========================================================
   Sidebar
   ========================================================= */

.app-sidebar {
    width: 260px;
    min-height: 100vh;

    position: fixed;

    left: 0;
    top: 0;

    display: flex;
    flex-direction: column;

    padding: 24px 18px;

    background:
        linear-gradient(
            180deg,
            #0a1d3f 0%,
            #07172f 100%
        );

    color: #ffffff;

    box-shadow:
        5px 0 30px rgba(5, 18, 40, 0.10);

    z-index: 20;
}


/* Marca */

.sidebar-brand {
    display: flex;
    align-items: center;

    gap: 12px;

    min-height: 64px;

    padding: 0 9px 24px;

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


.sidebar-logo {
    width: 48px;
    height: 48px;

    object-fit: contain;
}


.sidebar-brand-copy {
    display: flex;
    flex-direction: column;
}


.sidebar-brand-copy strong {
    color: #ffffff;

    font-size: 21px;
    font-weight: 800;

    letter-spacing: -0.5px;
}


.sidebar-brand-copy strong span {
    color: #3673f5;
}


.sidebar-brand-copy small {
    margin-top: 3px;

    color: #8798b5;

    font-size: 11px;
}


/* Menu */

.sidebar-menu {
    display: flex;
    flex-direction: column;

    gap: 7px;

    margin-top: 25px;
}


.sidebar-link {
    min-height: 48px;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 0 14px;

    border-radius: 10px;

    color: #aebbd0;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}


.sidebar-link:hover {
    background:
        rgba(255, 255, 255, 0.06);

    color: #ffffff;
}


.sidebar-link.active {
    background:
        linear-gradient(
            90deg,
            #2e6ef6,
            #1958e6
        );

    color: #ffffff;

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.22);
}


.sidebar-icon {
    width: 21px;

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

    font-size: 17px;
}


/* Usuário sidebar */

.sidebar-bottom {
    margin-top: auto;

    padding-top: 18px;

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


.sidebar-user {
    display: flex;
    align-items: center;

    gap: 11px;
}


.sidebar-avatar,
.topbar-avatar,
.table-user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #3476fa,
            #1955df
        );

    color: #ffffff;

    font-weight: 700;
}


.sidebar-avatar {
    width: 40px;
    height: 40px;
}


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

    display: flex;
    flex-direction: column;
}


.sidebar-user-info strong {
    max-width: 150px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 13px;
}


.sidebar-user-info span {
    margin-top: 3px;

    color: #8192ae;

    font-size: 11px;
}


.sidebar-logout {
    width: 100%;

    min-height: 40px;

    margin-top: 14px;

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

    border:
        1px solid rgba(255, 255, 255, 0.10);

    border-radius: 8px;

    color: #aebbd0;

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;
}


.sidebar-logout:hover {
    background:
        rgba(255, 255, 255, 0.05);

    color: #ffffff;
}


/* =========================================================
   Conteúdo
   ========================================================= */

.app-main {
    width:
        calc(100% - 260px);

    min-height: 100vh;

    margin-left: 260px;
}


.app-topbar {
    min-height: 92px;

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

    padding: 19px 32px;

    background: #ffffff;

    border-bottom:
        1px solid #e6eaf0;
}


.topbar-title h1 {
    margin: 0;

    color: #152033;

    font-size: 25px;
    font-weight: 800;

    letter-spacing: -0.4px;
}


.topbar-title p {
    margin: 5px 0 0;

    color: #7b8799;

    font-size: 13px;
}


.topbar-profile {
    display: flex;
    align-items: center;

    gap: 12px;
}


.topbar-profile-copy {
    display: flex;
    flex-direction: column;

    align-items: flex-end;
}


.topbar-profile-copy strong {
    color: #23304a;

    font-size: 13px;
}


.topbar-profile-copy span {
    margin-top: 3px;

    color: #8994a5;

    font-size: 11px;
}


.topbar-avatar {
    width: 42px;
    height: 42px;
}


.app-content {
    padding: 28px 32px 36px;
}


/* =========================================================
   Cards de estatística
   ========================================================= */

.dashboard-stats {
    display: grid;

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

    gap: 18px;
}


.dashboard-stat-card {
    min-height: 145px;

    padding: 20px;

    background: #ffffff;

    border:
        1px solid #e4e8ef;

    border-radius: 14px;

    box-shadow:
        0 2px 5px rgba(14, 29, 57, 0.025);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}


.dashboard-stat-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 9px 24px rgba(24, 42, 74, 0.07);
}


.stat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.stat-label {
    color: #6f7d91;

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


.stat-icon {
    width: 36px;
    height: 36px;

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

    border-radius: 9px;

    font-size: 16px;
    font-weight: 800;
}


.stat-blue {
    background: #edf4ff;
    color: #2b6bf3;
}


.stat-orange {
    background: #fff3e9;
    color: #ef7d21;
}


.stat-yellow {
    background: #fff8de;
    color: #c89510;
}


.stat-green {
    background: #eaf9ef;
    color: #249a51;
}


.stat-number {
    display: block;

    margin-top: 17px;

    color: #172239;

    font-size: 31px;
    line-height: 1;
    font-weight: 800;
}


.stat-description {
    display: block;

    margin-top: 8px;

    color: #98a2b1;

    font-size: 11px;
}


/* =========================================================
   Painel
   ========================================================= */

.dashboard-panel {
    margin-top: 22px;

    background: #ffffff;

    border:
        1px solid #e4e8ef;

    border-radius: 14px;

    overflow: hidden;

    box-shadow:
        0 2px 5px rgba(14, 29, 57, 0.025);
}


.dashboard-panel-header {
    min-height: 79px;

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

    padding: 18px 22px;

    border-bottom:
        1px solid #e8ebf0;
}


.dashboard-panel-header h2 {
    margin: 0;

    color: #1c2940;

    font-size: 16px;
    font-weight: 750;
}


.dashboard-panel-header p {
    margin: 5px 0 0;

    color: #909baa;

    font-size: 11px;
}


.dashboard-action {
    padding: 9px 14px;

    border-radius: 8px;

    background: #edf4ff;

    color: #2865e5;

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

    text-decoration: none;
}


.dashboard-action:hover {
    background: #e2edff;
}


/* =========================================================
   Tabela
   ========================================================= */

.dashboard-table-wrapper {
    width: 100%;

    overflow-x: auto;
}


.dashboard-table {
    width: 100%;

    border-collapse: collapse;
}


.dashboard-table th {
    padding: 13px 16px;

    background: #fafbfc;

    border-bottom:
        1px solid #e8ebf0;

    color: #8590a1;

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

    text-align: left;

    text-transform: uppercase;

    letter-spacing: 0.35px;
}


.dashboard-table td {
    padding: 15px 16px;

    border-bottom:
        1px solid #edf0f4;

    color: #4e5b6f;

    font-size: 12px;

    vertical-align: middle;
}


.dashboard-table tbody tr:hover {
    background: #fafcff;
}


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


.table-id {
    color: #8b96a7 !important;

    font-weight: 700;
}


.table-demand-title {
    display: flex;
    flex-direction: column;
}


.table-demand-title strong {
    color: #27344a;

    font-size: 12px;
}


.table-demand-title span {
    max-width: 300px;

    margin-top: 4px;

    color: #949eac;

    font-size: 10px;
}


.table-muted {
    color: #9da6b4;
}


/* Usuário */

.table-user {
    display: flex;
    align-items: center;

    gap: 8px;
}


.table-user-avatar {
    width: 28px;
    height: 28px;

    font-size: 10px;
}


/* =========================================================
   Badges
   ========================================================= */

.priority-badge,
.status-badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 8px;

    border-radius: 999px;

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


.priority-normal {
    background: #eff3f8;
    color: #66778d;
}


.priority-low {
    background: #eaf7ff;
    color: #277da8;
}


.priority-high {
    background: #fff1e7;
    color: #dd7625;
}


.priority-urgent {
    background: #ffeaea;
    color: #d83f3f;
}


.status-open {
    background: #edf4ff;
    color: #2a67e5;
}


.status-progress {
    background: #fff1e5;
    color: #da7525;
}


.status-waiting {
    background: #fff7dc;
    color: #a97d12;
}


.status-completed {
    background: #eaf8ef;
    color: #278f4d;
}


.status-cancelled {
    background: #fdecec;
    color: #c84444;
}


.table-empty {
    padding: 40px !important;

    text-align: center;

    color: #929dab !important;
}


/* =========================================================
   Responsivo
   ========================================================= */

@media (max-width: 1150px) {

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

}


@media (max-width: 800px) {

    .app-sidebar {
        width: 210px;
    }


    .app-main {
        width:
            calc(100% - 210px);

        margin-left: 210px;
    }


    .sidebar-brand-copy {
        display: none;
    }


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


    .app-content,
    .app-topbar {
        padding-left: 20px;
        padding-right: 20px;
    }

}

/* =========================================================
   GestiON - Estrutura oficial V2
   Etapa 1: Sidebar + identidade
   ========================================================= */

.app-body {
    margin: 0;
    min-height: 100vh;

    background: #f5f7fb;

    color: #13213a;
}


/* Layout */

.app-layout {
    min-height: 100vh;

    display: flex;
}


/* =========================================================
   Sidebar
   ========================================================= */

.gestion-sidebar {
    width: 252px;
    min-height: 100vh;

    position: fixed;
    top: 0;
    left: 0;

    display: flex;
    flex-direction: column;

    padding: 0 15px 18px;

    background:
        linear-gradient(
            180deg,
            #102844 0%,
            #0b2039 55%,
            #091b31 100%
        );

    color: #ffffff;

    border-right:
        1px solid rgba(255, 255, 255, 0.04);

    box-shadow:
        4px 0 24px rgba(4, 15, 32, 0.10);

    z-index: 30;
}


/* Marca */

.gestion-sidebar-brand {
    min-height: 82px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 0 6px;

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


.gestion-sidebar-logo {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    object-fit: contain;
}


.gestion-sidebar-brand-copy {
    min-width: 0;

    display: flex;
    flex-direction: column;
}


.gestion-sidebar-brand-copy strong {
    margin: 0;

    color: #ffffff;

    font-size: 22px;
    line-height: 1;

    font-weight: 800;

    letter-spacing: -0.6px;
}


.gestion-sidebar-brand-copy strong span {
    color: #3475f6;
}


.gestion-sidebar-brand-copy small {
    max-width: 150px;

    margin-top: 6px;

    color: #a5b5ca;

    font-size: 10px;
    line-height: 1.25;
}


/* Menu */

.gestion-sidebar-menu {
    display: flex;
    flex-direction: column;

    gap: 7px;

    margin-top: 20px;
}


.gestion-menu-item {
    width: 100%;
    min-height: 48px;

    display: flex;
    align-items: center;

    gap: 14px;

    padding: 0 13px;

    border-radius: 8px;

    color: #d5deea;

    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    transition:
        background 0.16s ease,
        color 0.16s ease,
        transform 0.16s ease;
}


.gestion-menu-item:hover {
    background:
        rgba(255, 255, 255, 0.06);

    color: #ffffff;
}


.gestion-menu-item.active {
    background:
        linear-gradient(
            90deg,
            #1e5aa9 0%,
            #2466bd 100%
        );

    color: #ffffff;

    box-shadow:
        0 6px 18px rgba(18, 83, 169, 0.25);
}


.gestion-menu-icon {
    width: 22px;

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

    color: #dce7f6;

    font-size: 18px;
}


/* =========================================================
   Rodapé sidebar
   ========================================================= */

.gestion-sidebar-footer {
    margin-top: auto;

    padding-top: 17px;

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


.gestion-sidebar-user {
    display: flex;
    align-items: center;

    gap: 11px;

    padding: 0 4px;
}


.gestion-sidebar-avatar,
.gestion-topbar-avatar {
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #3477f8,
            #1458df
        );

    color: #ffffff;

    font-weight: 700;
}


.gestion-sidebar-avatar {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    font-size: 13px;
}


.gestion-sidebar-user-copy {
    min-width: 0;

    display: flex;
    flex-direction: column;
}


.gestion-sidebar-user-copy strong {
    max-width: 155px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #ffffff;

    font-size: 12px;
}


.gestion-sidebar-user-copy span {
    margin-top: 3px;

    color: #91a4be;

    font-size: 10px;
}


.gestion-sidebar-logout {
    min-height: 42px;

    margin-top: 14px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 0 13px;

    border-radius: 8px;

    color: #c9d5e5;

    text-decoration: none;

    font-size: 13px;
}


.gestion-sidebar-logout:hover {
    background:
        rgba(255, 255, 255, 0.05);

    color: #ffffff;
}


/* =========================================================
   Área principal
   ========================================================= */

.gestion-main {
    width:
        calc(100% - 252px);

    min-height: 100vh;

    margin-left: 252px;

    background: #f5f7fb;
}


/* Cabeçalho temporário.
   Na etapa 2 ele será substituído pelo cabeçalho aprovado. */

.gestion-topbar {
    min-height: 82px;

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

    padding: 16px 30px;

    background: #ffffff;

    border-bottom:
        1px solid #e5e9f0;
}


.gestion-topbar-title h1 {
    margin: 0;

    color: #152238;

    font-size: 24px;
    font-weight: 800;

    letter-spacing: -0.4px;
}


.gestion-topbar-title p {
    margin: 5px 0 0;

    color: #78869a;

    font-size: 12px;
}


.gestion-topbar-profile {
    display: flex;
    align-items: center;

    gap: 11px;
}


.gestion-topbar-profile-copy {
    display: flex;
    flex-direction: column;

    align-items: flex-end;
}


.gestion-topbar-profile-copy strong {
    color: #17243a;

    font-size: 12px;
}


.gestion-topbar-profile-copy span {
    margin-top: 3px;

    color: #8793a4;

    font-size: 10px;
}


.gestion-topbar-avatar {
    width: 40px;
    height: 40px;

    font-size: 13px;
}


.gestion-content {
    padding: 26px 28px 36px;
}


/* =========================================================
   Responsivo
   ========================================================= */

@media (max-width: 900px) {

    .gestion-sidebar {
        width: 210px;
    }

    .gestion-main {
        width:
            calc(100% - 210px);

        margin-left: 210px;
    }

    .gestion-sidebar-brand-copy small {
        display: none;
    }

}

/* =========================================================
   GestiON V2
   Etapa 2 - Cabeçalho
   ========================================================= */

.gestion-header {
    min-height: 80px;

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

    gap: 24px;

    padding: 15px 28px;

    background: #ffffff;

    border-bottom:
        1px solid #e4e9f0;
}


/* Saudação */

.gestion-header-welcome {
    min-width: 0;
}


.gestion-header-welcome h1 {
    margin: 0;

    color: #142038;

    font-size: 23px;
    line-height: 1.15;

    font-weight: 800;

    letter-spacing: -0.45px;
}


.gestion-header-welcome p {
    margin: 6px 0 0;

    color: #78869a;

    font-size: 12px;
}


/* Ações */

.gestion-header-actions {
    display: flex;
    align-items: center;

    gap: 14px;
}


/* Busca */

.gestion-search {
    width: 225px;
    height: 40px;

    position: relative;

    display: flex;
    align-items: center;
}


.gestion-search input {
    width: 100%;
    height: 100%;

    padding: 0 42px 0 14px;

    border:
        1px solid #dce2eb;

    border-radius: 8px;

    background: #ffffff;

    color: #243149;

    font-size: 12px;

    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}


.gestion-search input::placeholder {
    color: #8c98aa;
}


.gestion-search input:focus {
    border-color: #3171ee;

    box-shadow:
        0 0 0 3px rgba(49, 113, 238, 0.09);
}


.gestion-search-icon {
    position: absolute;

    right: 13px;

    color: #65748b;

    font-size: 19px;

    pointer-events: none;
}


/* Sino */

.gestion-notification-button {
    width: 40px;
    height: 40px;

    position: relative;

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

    padding: 0;

    border: 0;

    background: transparent;

    color: #263750;

    cursor: pointer;

    border-radius: 8px;
}


.gestion-notification-button:hover {
    background: #f3f6fa;
}


.gestion-bell {
    font-size: 23px;
    line-height: 1;
}


/* Nova demanda */

.gestion-new-demand {
    height: 40px;

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

    gap: 8px;

    padding: 0 15px;

    border-radius: 7px;

    background:
        linear-gradient(
            90deg,
            #2670ed 0%,
            #1260e3 100%
        );

    color: #ffffff;

    text-decoration: none;

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

    box-shadow:
        0 5px 14px rgba(28, 103, 228, 0.18);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}


.gestion-new-demand span {
    font-size: 20px;
    line-height: 1;
    font-weight: 400;
}


.gestion-new-demand:hover {
    transform: translateY(-1px);

    box-shadow:
        0 8px 19px rgba(28, 103, 228, 0.25);
}


/* Ajuste da área de conteúdo para combinar
   com a referência */

.gestion-content {
    padding:
        20px 22px 36px;
}


/* Responsividade */

@media (max-width: 1000px) {

    .gestion-search {
        width: 180px;
    }

}


@media (max-width: 760px) {

    .gestion-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .gestion-header-actions {
        width: 100%;
    }

    .gestion-search {
        flex: 1;
        width: auto;
    }

}

/* =========================================================
   GestiON V2
   Etapa 3 - Indicadores principais
   ========================================================= */

.dashboard-stats-five {
    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 14px;
}


.dashboard-stats-five .dashboard-stat-card {
    min-height: 90px;

    padding: 15px 16px;

    display: flex;
    align-items: center;

    border-radius: 9px;
}


.dashboard-stat-layout {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 14px;
}


.dashboard-stat-icon {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

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

    border-radius: 10px;

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


.dashboard-stat-content {
    min-width: 0;

    display: flex;
    flex-direction: column;
}


.dashboard-stats-five .stat-number {
    margin: 0;

    color: #15213a;

    font-size: 24px;
    line-height: 1;

    font-weight: 800;
}


.stat-label-main {
    margin-top: 7px;

    color: #58667b;

    font-size: 11px;
    font-weight: 500;
}


/* Total */

.dashboard-stat-total {
    background: #eaf2ff;
    color: #1764e8;
}


/* Em andamento */

.dashboard-stat-progress {
    background: #e9f8ed;
    color: #2bb653;
}


/* Aguardando */

.dashboard-stat-waiting {
    background: #fff5dd;
    color: #f0a000;
}


/* Atrasadas */

.dashboard-stat-overdue {
    background: #ffe9e9;
    color: #ef4141;
}


/* Concluídas */

.dashboard-stat-completed {
    background: #eeeaff;
    color: #6752e8;
}


@media (max-width: 1250px) {

    .dashboard-stats-five {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


@media (max-width: 900px) {

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

}


@media (max-width: 600px) {

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

}

/* =========================================================
   GestiON V2
   Etapa 4 - Demandas por setor
   ========================================================= */

.dashboard-insights-grid {
    margin-top: 16px;

    display: grid;

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

    gap: 16px;
}


.dashboard-insight-card {
    min-height: 295px;

    padding: 18px 18px 16px;

    background: #ffffff;

    border:
        1px solid #e3e8ef;

    border-radius: 10px;

    box-shadow:
        0 2px 6px rgba(19, 36, 63, 0.025);
}


/* Enquanto só temos a Etapa 4,
   o card ocupa apenas a primeira coluna. */

.dashboard-insight-card:first-child {
    grid-column: span 1;
}


.dashboard-insight-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 19px;
}


.dashboard-insight-header h2 {
    margin: 0;

    color: #17243a;

    font-size: 15px;
    font-weight: 750;
}


.dashboard-insight-header a {
    color: #1765e8;

    font-size: 11px;
    font-weight: 600;

    text-decoration: none;
}


.dashboard-insight-header a:hover {
    text-decoration: underline;
}


/* Lista */

.sector-demand-list {
    display: flex;
    flex-direction: column;

    gap: 16px;
}


.sector-demand-row {
    display: grid;

    grid-template-columns:
        minmax(105px, 1fr)
        minmax(100px, 1.5fr)
        28px;

    align-items: center;

    gap: 12px;

    min-height: 24px;
}


.sector-demand-name {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 9px;

    color: #334159;

    font-size: 11px;
}


.sector-demand-name > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.sector-demand-marker {
    width: 20px;

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

    flex: 0 0 20px;

    font-size: 13px;
}


.sector-demand-row > strong {
    color: #17243a;

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

    text-align: right;
}


/* Barra */

.sector-progress-track {
    width: 100%;
    height: 6px;

    overflow: hidden;

    border-radius: 999px;

    background: #edf0f4;
}


.sector-progress-value {
    height: 100%;

    min-width: 5px;

    border-radius: inherit;

    transition:
        width 0.3s ease;
}


/* Paleta */

.sector-color-0 {
    color: #2673f2;
}

.sector-color-1 {
    color: #31b85b;
}

.sector-color-2 {
    color: #f3a008;
}

.sector-color-3 {
    color: #ef4d55;
}

.sector-color-4 {
    color: #7959e8;
}

.sector-color-5 {
    color: #20b9b0;
}


.sector-bg-0 {
    background: #2673f2;
}

.sector-bg-1 {
    background: #31b85b;
}

.sector-bg-2 {
    background: #f3a008;
}

.sector-bg-3 {
    background: #ef4d55;
}

.sector-bg-4 {
    background: #7959e8;
}

.sector-bg-5 {
    background: #20b9b0;
}


/* Vazio */

.dashboard-insight-empty {
    padding: 40px 10px;

    color: #8d98a8;

    font-size: 12px;

    text-align: center;
}


/* A tabela desce após os blocos */

.dashboard-insights-grid
+ .dashboard-panel {
    margin-top: 16px;
}


@media (max-width: 1100px) {

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

}


@media (max-width: 750px) {

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

}


/* =========================================================
   GestiON V2
   Etapa 5 - Atividades próximas do prazo
   ========================================================= */

.upcoming-demand-list {
    display: flex;
    flex-direction: column;
}


.upcoming-demand-row {
    min-height: 54px;

    display: grid;

    grid-template-columns:
        32px
        minmax(0, 1fr)
        70px;

    align-items: center;

    gap: 10px;

    padding: 9px 0;

    border-bottom:
        1px solid #edf0f4;
}


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


/* Ícone */

.upcoming-demand-icon {
    width: 28px;
    height: 28px;

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

    border-radius: 50%;

    background: #eaf2ff;

    color: #2672f2;

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


/* Texto */

.upcoming-demand-info {
    min-width: 0;

    display: flex;
    flex-direction: column;
}


.upcoming-demand-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #26334a;

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


.upcoming-demand-info span {
    margin-top: 4px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #8a96a7;

    font-size: 9px;
}


/* Prazo + prioridade */

.upcoming-demand-meta {
    display: flex;
    flex-direction: column;

    align-items: flex-end;

    gap: 5px;
}


.upcoming-demand-meta > strong {
    font-size: 10px;
    font-weight: 700;
}


.upcoming-date-today {
    color: #ef4141;
}


.upcoming-date-tomorrow {
    color: #efa100;
}


.upcoming-date-overdue {
    color: #e63d3d;
}


.upcoming-date-date {
    color: #314058;
}


/* Prioridade */

.upcoming-priority {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    color: #627087;

    font-size: 9px;
}


.upcoming-priority i {
    width: 5px;
    height: 5px;

    display: inline-block;

    border-radius: 50%;
}


.priority-dot-urgent i {
    background: #ef3f46;
}


.priority-dot-high i {
    background: #ef3f46;
}


.priority-dot-normal i {
    background: #e7a300;
}


.priority-dot-low i {
    background: #31af58;
}


/* =========================================================
   GestiON V2
   Etapa 6 - Minhas tarefas
   ========================================================= */

.my-task-list {
    display: flex;
    flex-direction: column;
}


.my-task-row {
    min-height: 54px;

    display: grid;

    grid-template-columns:
        28px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 10px;

    padding: 9px 0;

    border-bottom:
        1px solid #edf0f4;
}


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


.my-task-check {
    width: 22px;
    height: 22px;

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

    border:
        1px solid #cfd7e3;

    border-radius: 50%;

    color: #9ba7b7;

    font-size: 15px;
}


.my-task-info {
    min-width: 0;

    display: flex;
    flex-direction: column;
}


.my-task-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #28364d;

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


.my-task-info span {
    margin-top: 4px;

    color: #8b97a8;

    font-size: 9px;
}


/* Prioridade */

.task-priority {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 4px 7px;

    border-radius: 6px;

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


.task-priority-urgent {
    background: #ffe7e7;
    color: #e53e44;
}


.task-priority-high {
    background: #fff0e3;
    color: #e47c24;
}


.task-priority-normal {
    background: #fff4d9;
    color: #bd8608;
}


.task-priority-low {
    background: #e8f7ed;
    color: #29934f;
}/* =========================================================
   GestiON V2
   Etapa 6 - Minhas tarefas
   ========================================================= */

.my-task-list {
    display: flex;
    flex-direction: column;
}


.my-task-row {
    min-height: 54px;

    display: grid;

    grid-template-columns:
        28px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 10px;

    padding: 9px 0;

    border-bottom:
        1px solid #edf0f4;
}


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


.my-task-check {
    width: 22px;
    height: 22px;

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

    border:
        1px solid #cfd7e3;

    border-radius: 50%;

    color: #9ba7b7;

    font-size: 15px;
}


.my-task-info {
    min-width: 0;

    display: flex;
    flex-direction: column;
}


.my-task-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #28364d;

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


.my-task-info span {
    margin-top: 4px;

    color: #8b97a8;

    font-size: 9px;
}


/* Prioridade */

.task-priority {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 4px 7px;

    border-radius: 6px;

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


.task-priority-urgent {
    background: #ffe7e7;
    color: #e53e44;
}


.task-priority-high {
    background: #fff0e3;
    color: #e47c24;
}


.task-priority-normal {
    background: #fff4d9;
    color: #bd8608;
}


.task-priority-low {
    background: #e8f7ed;
    color: #29934f;
}

/* =========================================================
   AJUSTE GLOBAL DE TIPOGRAFIA - DASHBOARD
   ========================================================= */

/* Menu lateral */
.sidebar-nav a {
    font-size: 15px;
}

/* Usuário no rodapé da sidebar */
.sidebar-user strong {
    font-size: 14px;
}

.sidebar-user span {
    font-size: 12px;
}

/* Cards de indicadores */
.stat-number {
    font-size: 26px;
}

.stat-label {
    font-size: 14px;
}

.stat-description {
    font-size: 13px;
}

/* Títulos dos blocos gerenciais */
.dashboard-insight-header h2 {
    font-size: 17px;
}

.dashboard-insight-header a {
    font-size: 13px;
}

/* Demandas por setor */
.sector-demand-row {
    font-size: 14px;
}

/* Atividades próximas do prazo */
.upcoming-demand-info strong {
    font-size: 14px;
}

.upcoming-demand-info span {
    font-size: 12px;
}

.upcoming-demand-meta strong {
    font-size: 13px;
}

.upcoming-priority {
    font-size: 12px;
}

/* Minhas tarefas */
.my-task-info strong {
    font-size: 14px;
}

.my-task-info span {
    font-size: 12px;
}

.task-priority {
    font-size: 12px;
}

/* Demandas recentes */
.dashboard-panel-header h2 {
    font-size: 18px;
}

.dashboard-panel-header p {
    font-size: 13px;
}

.dashboard-table {
    font-size: 14px;
}

.dashboard-table th {
    font-size: 12px;
}

.table-demand-title strong {
    font-size: 14px;
}

.table-demand-title span {
    font-size: 12px;
}

/* Estados vazios */
.dashboard-insight-empty {
    font-size: 13px;
}

/* =========================================================
   AJUSTE DE PROPORÇÃO - CARDS GERENCIAIS
   ========================================================= */

/* Distribuição dos três cards */
.dashboard-insights-grid {
    grid-template-columns: 0.95fr 1.15fr 1fr;
    gap: 16px;
}

/* Evita que o cabeçalho fique apertado */
.dashboard-insight-header {
    gap: 14px;
}

.dashboard-insight-header h2 {
    line-height: 1.2;
}

.dashboard-insight-header a {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Dá mais espaço ao conteúdo de atividades */
.upcoming-demand-info {
    min-width: 0;
}

.upcoming-demand-info strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mantém data/prioridade reservadas à direita */
.upcoming-demand-meta {
    flex-shrink: 0;
    min-width: 58px;
}

/* =========================================================
   GestiON - Menu lateral definitivo
   ========================================================= */

.gestion-sidebar-menu {
    gap: 4px;
    margin-top: 18px;
}


/* Ícones SVG */

.gestion-menu-icon {
    width: 23px;
    height: 23px;

    flex: 0 0 23px;

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

    color: currentColor;
}


.gestion-menu-icon svg {
    width: 20px;
    height: 20px;

    display: block;
}


/* Links */

.gestion-menu-item {
    min-height: 44px;

    gap: 13px;

    padding:
        0 13px;

    border-radius: 7px;

    font-size: 14px;
    font-weight: 500;
}


.gestion-menu-item.active {
    font-weight: 600;
}


/* Itens ainda não implementados */

.gestion-menu-item-disabled {
    color: #b9c7d9;

    cursor: default;

    user-select: none;
}


.gestion-menu-item-disabled:hover {
    background:
        rgba(
            255,
            255,
            255,
            0.035
        );

    color: #d2dce9;
}


/* Rodapé */

.gestion-sidebar-logout-icon {
    width: 23px;
    height: 23px;

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


.gestion-sidebar-logout-icon svg {
    width: 20px;
    height: 20px;
}


/* Busca */

.gestion-search-icon {
    width: 20px;
    height: 20px;

    position: absolute;

    right: 12px;

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

    color: #66758b;

    pointer-events: none;
}


.gestion-search-icon svg {
    width: 17px;
    height: 17px;
}


/* Sino */

.gestion-bell {
    width: 22px;
    height: 22px;

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


.gestion-bell svg {
    width: 21px;
    height: 21px;
}


/* Mais opções no menu exigem melhor aproveitamento vertical */

@media (min-height: 820px) {

    .gestion-sidebar-menu {
        gap: 5px;
    }

    .gestion-menu-item {
        min-height: 45px;
    }

}


@media (max-height: 800px) {

    .gestion-sidebar {
        overflow-y: auto;
    }

    .gestion-sidebar-footer {
        margin-top: 24px;
    }

    .gestion-menu-item {
        min-height: 40px;
    }

    .gestion-sidebar-menu {
        gap: 2px;
    }

}

/* =========================================================
   GestiON - Demandas / Minhas Tarefas
   ========================================================= */

.gestion-page {
    width: 100%;
}


.gestion-page-heading {
    min-height: 72px;

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

    gap: 24px;

    margin-bottom: 18px;
}


.gestion-page-heading h2 {
    margin: 0;

    color: #17243b;

    font-size: 24px;
    font-weight: 800;
}


.gestion-page-heading p {
    margin: 6px 0 0;

    color: #7c899c;

    font-size: 13px;
}


.gestion-page-actions {
    display: flex;
    align-items: center;

    gap: 10px;
}


.gestion-primary-button {
    min-height: 42px;

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

    gap: 8px;

    padding: 0 16px;

    border: 0;
    border-radius: 8px;

    background: #1767e8;

    color: #ffffff;

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

    cursor: pointer;
}


.gestion-primary-button span {
    font-size: 20px;
}


/* Card */

.gestion-list-card {
    background: #ffffff;

    border: 1px solid #e2e7ee;
    border-radius: 11px;

    overflow: hidden;

    box-shadow:
        0 2px 6px rgba(19, 36, 63, 0.025);
}


.gestion-list-toolbar {
    min-height: 68px;

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

    gap: 20px;

    padding: 13px 18px;

    border-bottom: 1px solid #e7ebf0;
}


.gestion-list-search {
    width: 320px;
}


.gestion-list-search input {
    width: 100%;
    height: 40px;

    padding: 0 13px;

    border: 1px solid #d8dfe8;
    border-radius: 8px;

    outline: none;

    color: #26354b;

    font-size: 13px;
}


.gestion-list-search input:focus {
    border-color: #2d70ed;

    box-shadow:
        0 0 0 3px rgba(45, 112, 237, 0.08);
}


.gestion-list-count {
    color: #8390a2;

    font-size: 12px;
}


.gestion-list-title {
    color: #26344b;

    font-size: 15px;
}


/* Tabela */

.gestion-table-wrapper {
    width: 100%;

    overflow-x: auto;
}


.gestion-data-table {
    width: 100%;

    border-collapse: collapse;
}


.gestion-data-table th {
    padding: 13px 16px;

    background: #fafbfc;

    border-bottom: 1px solid #e7ebf0;

    color: #778499;

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

    text-align: left;

    text-transform: uppercase;

    letter-spacing: 0.25px;
}


.gestion-data-table td {
    padding: 16px;

    border-bottom: 1px solid #edf0f4;

    color: #4d5b70;

    font-size: 13px;

    vertical-align: middle;
}


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


.gestion-data-table tbody tr:hover {
    background: #fbfcfe;
}


.gestion-table-id {
    color: #7e8ca0 !important;

    font-weight: 700;
}


/* Título */

.gestion-demand-title {
    min-width: 220px;

    display: flex;
    flex-direction: column;
}


.gestion-demand-title strong {
    color: #1e2d45;

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


.gestion-demand-title span {
    max-width: 440px;

    margin-top: 4px;

    color: #8995a6;

    font-size: 11px;
}


/* Usuário */

.gestion-table-user {
    display: flex;
    align-items: center;

    gap: 8px;

    white-space: nowrap;
}


.gestion-table-avatar {
    width: 30px;
    height: 30px;

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

    border-radius: 50%;

    background: #1767e8;

    color: #ffffff;

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


.gestion-muted {
    color: #9aa5b4;
}


.gestion-date-overdue {
    color: #e43f47;

    font-weight: 700;
}


/* Checkbox visual */

.gestion-task-check-cell {
    width: 30px;
}


.gestion-task-check {
    width: 20px;
    height: 20px;

    display: inline-block;

    border: 1.5px solid #c9d2df;
    border-radius: 50%;
}


/* Vazio */

.gestion-table-empty {
    padding: 70px 20px !important;

    text-align: center;
}


.gestion-empty-state {
    display: flex;
    flex-direction: column;

    align-items: center;

    gap: 7px;
}


.gestion-empty-state strong {
    color: #35445a;

    font-size: 15px;
}


.gestion-empty-state span {
    color: #8b97a8;

    font-size: 12px;
}


@media (max-width: 850px) {

    .gestion-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .gestion-list-search {
        width: 100%;
    }

}
/* =========================================================
   GestiON - Nova Demanda
   ========================================================= */

.gestion-form-card {
    background: #ffffff;

    border: 1px solid #e2e7ee;
    border-radius: 11px;

    box-shadow:
        0 2px 6px rgba(19, 36, 63, 0.025);

    overflow: hidden;
}


.gestion-demand-form {
    width: 100%;
}


.gestion-form-section {
    padding: 26px;
}


.gestion-form-section-header {
    margin-bottom: 24px;

    padding-bottom: 18px;

    border-bottom: 1px solid #edf0f4;
}


.gestion-form-section-header h3 {
    margin: 0;

    color: #1e2c43;

    font-size: 18px;
    font-weight: 750;
}


.gestion-form-section-header p {
    margin: 6px 0 0;

    color: #8995a6;

    font-size: 12px;
}


.gestion-form-grid {
    display: grid;

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

    gap: 22px;
}


.gestion-field {
    display: flex;
    flex-direction: column;

    gap: 8px;
}


.gestion-field-full {
    grid-column: 1 / -1;
}


.gestion-field label {
    color: #26354b;

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


.gestion-field label span {
    color: #e1444b;
}


.gestion-field input,
.gestion-field select,
.gestion-field textarea {
    width: 100%;

    border: 1px solid #d7dee8;
    border-radius: 8px;

    background: #ffffff;

    color: #26354b;

    font-family: inherit;
    font-size: 13px;

    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}


.gestion-field input,
.gestion-field select {
    height: 44px;

    padding: 0 12px;
}


.gestion-field textarea {
    min-height: 120px;

    padding: 12px;

    resize: vertical;
}


.gestion-field input:focus,
.gestion-field select:focus,
.gestion-field textarea:focus {
    border-color: #2d70ed;

    box-shadow:
        0 0 0 3px rgba(45, 112, 237, 0.08);
}


.gestion-field input::placeholder,
.gestion-field textarea::placeholder {
    color: #9aa5b4;
}


.gestion-field small {
    color: #909cab;

    font-size: 11px;
}


.gestion-form-actions {
    min-height: 78px;

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

    gap: 11px;

    padding: 16px 26px;

    background: #fafbfc;

    border-top: 1px solid #e7ebf0;
}


.gestion-secondary-button {
    min-height: 42px;

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

    padding: 0 16px;

    border: 1px solid #d7dee8;
    border-radius: 8px;

    background: #ffffff;

    color: #4b5a70;

    text-decoration: none;

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


.gestion-secondary-button:hover {
    background: #f6f8fb;
}


.gestion-form-error {
    margin: 22px 26px 0;

    padding: 12px 14px;

    border: 1px solid #f5c4c7;
    border-radius: 8px;

    background: #fff1f2;

    color: #bd3038;

    font-size: 13px;
}


@media (max-width: 760px) {

    .gestion-form-grid {
        grid-template-columns: 1fr;
    }

    .gestion-field-full {
        grid-column: auto;
    }

}
/* =========================================================
   GestiON - Detalhe da Demanda
   ========================================================= */

.gestion-detail-eyebrow {
    margin-bottom: 5px;

    color: #75849a;

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


.gestion-detail-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) 330px;

    gap: 18px;
}


.gestion-detail-main,
.gestion-detail-sidebar {
    display: flex;
    flex-direction: column;

    gap: 18px;
}


.gestion-detail-card {
    background: #ffffff;

    border: 1px solid #e2e7ee;
    border-radius: 11px;

    overflow: hidden;

    box-shadow:
        0 2px 6px rgba(19, 36, 63, 0.025);
}


.gestion-detail-card-header {
    min-height: 58px;

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

    gap: 16px;

    padding: 0 18px;

    border-bottom: 1px solid #edf0f4;
}


.gestion-detail-card-header h3 {
    margin: 0;

    color: #1d2b42;

    font-size: 15px;
    font-weight: 750;
}


.gestion-detail-card-header > span {
    color: #8a96a7;

    font-size: 11px;
}


.gestion-detail-card-body {
    padding: 20px;
}


.gestion-detail-description {
    margin: 0;

    color: #4f5e73;

    font-size: 13px;
    line-height: 1.75;

    white-space: pre-wrap;
}


.gestion-detail-fields {
    display: flex;
    flex-direction: column;
}


.gestion-detail-field {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    min-height: 47px;

    border-bottom: 1px solid #edf0f4;
}


.gestion-detail-field:last-child {
    border-bottom: 0;
}


.gestion-detail-field > span {
    color: #7d899a;

    font-size: 12px;
}


.gestion-detail-field > strong {
    color: #29384e;

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

    text-align: right;
}


/* Timeline */

.gestion-timeline {
    display: flex;
    flex-direction: column;
}


.gestion-timeline-item {
    position: relative;

    display: grid;

    grid-template-columns:
        20px minmax(0, 1fr);

    gap: 12px;

    padding-bottom: 22px;
}


.gestion-timeline-item:last-child {
    padding-bottom: 0;
}


.gestion-timeline-item::before {
    content: "";

    position: absolute;

    left: 5px;
    top: 12px;
    bottom: -2px;

    width: 1px;

    background: #dce3ec;
}


.gestion-timeline-item:last-child::before {
    display: none;
}


.gestion-timeline-marker {
    position: relative;
    z-index: 1;

    width: 11px;
    height: 11px;

    margin-top: 4px;

    border: 3px solid #dbe8ff;
    border-radius: 50%;

    background: #1767e8;
}


.gestion-timeline-content {
    min-width: 0;
}


.gestion-timeline-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}


.gestion-timeline-top strong {
    color: #29374c;

    font-size: 12px;
}


.gestion-timeline-top span {
    color: #929dac;

    font-size: 10px;

    white-space: nowrap;
}


.gestion-timeline-content p {
    margin: 5px 0 0;

    color: #667488;

    font-size: 12px;
    line-height: 1.55;
}


/* Anexos */

.gestion-attachment-list {
    display: flex;
    flex-direction: column;
}


.gestion-attachment-item {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 13px 0;

    border-bottom: 1px solid #edf0f4;
}


.gestion-attachment-item:first-child {
    padding-top: 0;
}


.gestion-attachment-item:last-child {
    padding-bottom: 0;

    border-bottom: 0;
}


.gestion-attachment-icon {
    width: 36px;
    height: 36px;

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

    flex: 0 0 36px;

    border-radius: 8px;

    background: #eef4ff;

    color: #1767e8;
}


.gestion-attachment-icon svg {
    width: 18px;
    height: 18px;
}


.gestion-attachment-info {
    min-width: 0;

    display: flex;
    flex-direction: column;

    flex: 1;
}


.gestion-attachment-info strong {
    overflow: hidden;

    color: #26364c;

    font-size: 12px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.gestion-attachment-info span {
    margin-top: 3px;

    color: #919cab;

    font-size: 10px;
}


.gestion-attachment-download {
    color: #1767e8;

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

    text-decoration: none;
}


.gestion-detail-empty {
    padding: 22px;

    color: #929dad;

    font-size: 12px;

    text-align: center;
}


.gestion-demand-link {
    color: #1e2d45;

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

    text-decoration: none;
}


.gestion-demand-link:hover {
    color: #1767e8;

    text-decoration: underline;
}


@media (max-width: 1000px) {

    .gestion-detail-layout {
        grid-template-columns: 1fr;
    }

}
/* =========================================================
   GestiON - Ações da Demanda
   ========================================================= */

.gestion-action-message {
    margin-bottom: 16px;

    padding: 12px 15px;

    border-radius: 8px;

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


.gestion-action-success {
    border: 1px solid #bde7cb;

    background: #effaf3;

    color: #257640;
}


.gestion-action-error {
    border: 1px solid #f1c2c5;

    background: #fff2f3;

    color: #b8343c;
}


/* Comentários */

.gestion-comment-form {
    display: flex;
    flex-direction: column;

    gap: 12px;
}


.gestion-comment-form textarea {
    width: 100%;
    min-height: 95px;

    padding: 12px 13px;

    border: 1px solid #d8dfe8;
    border-radius: 8px;

    background: #ffffff;

    color: #2e3d52;

    font-family: inherit;
    font-size: 12px;

    resize: vertical;

    outline: none;
}


.gestion-comment-form textarea:focus {
    border-color: #2d70ed;

    box-shadow:
        0 0 0 3px rgba(45, 112, 237, 0.08);
}


.gestion-comment-form textarea::placeholder {
    color: #98a3b2;
}


.gestion-comment-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}


.gestion-comment-footer > span {
    color: #8d98a8;

    font-size: 10px;
}


/* Status */

.gestion-status-form {
    display: flex;
    flex-direction: column;

    gap: 10px;
}


.gestion-status-form label {
    color: #526176;

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


.gestion-status-form select {
    width: 100%;
    height: 40px;

    padding: 0 10px;

    border: 1px solid #d7dee7;
    border-radius: 7px;

    background: #ffffff;

    color: #334258;

    font-family: inherit;
    font-size: 12px;

    outline: none;
}


.gestion-status-form select:focus {
    border-color: #2d70ed;

    box-shadow:
        0 0 0 3px rgba(45, 112, 237, 0.08);
}


.gestion-status-button {
    width: 100%;

    margin-top: 3px;
}


/* Tipo de evento */

.gestion-timeline-type {
    display: inline-flex;

    margin-top: 5px;

    padding: 2px 7px;

    border-radius: 20px;

    background: #eef4ff;

    color: #1767e8;

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


@media (max-width: 700px) {

    .gestion-comment-footer {
        align-items: stretch;
        flex-direction: column;
    }

}


/* =========================================================
   GestiON - Upload de anexos
   ========================================================= */

.gestion-attachment-upload {
    padding: 18px 20px;

    border-bottom: 1px solid #e8edf3;

    background: #fbfcfe;
}


.gestion-attachment-upload-main {
    display: flex;
    align-items: center;

    gap: 12px;
}


.gestion-attachment-file {
    min-width: 0;
    flex: 1;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 11px 13px;

    border: 1px dashed #cbd5e2;
    border-radius: 8px;

    background: #ffffff;

    cursor: pointer;

    transition:
        border-color 0.15s ease,
        background 0.15s ease;
}


.gestion-attachment-file:hover {
    border-color: #2c70ed;

    background: #f8fbff;
}


.gestion-attachment-file-icon {
    width: 32px;
    height: 32px;

    flex: 0 0 32px;

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

    border-radius: 7px;

    background: #edf4ff;

    color: #1767e8;

    font-size: 20px;
    line-height: 1;
}


.gestion-attachment-file-copy {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}


.gestion-attachment-file-copy strong {
    color: #26364c;

    font-size: 12px;
}


.gestion-attachment-file-copy small {
    max-width: 480px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #8b97a8;

    font-size: 10px;
}


.gestion-attachment-input {
    position: absolute;

    width: 1px;
    height: 1px;

    overflow: hidden;

    opacity: 0;

    pointer-events: none;
}


.gestion-attachment-button {
    height: 42px;

    padding: 0 17px;

    border: 0;
    border-radius: 7px;

    background:
        linear-gradient(
            90deg,
            #2670ed 0%,
            #1260e3 100%
        );

    color: #ffffff;

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;

    cursor: pointer;
}


.gestion-attachment-button:hover {
    filter: brightness(0.97);
}


.gestion-attachment-help {
    margin: 9px 0 0;

    color: #8995a6;

    font-size: 10px;
}


@media (max-width: 700px) {

    .gestion-attachment-upload-main {
        align-items: stretch;
        flex-direction: column;
    }


    .gestion-attachment-button {
        width: 100%;
    }

}


/* =========================================================
   GestiON - Exclusão de anexos
   ========================================================= */

.gestion-attachment-delete {
    margin-left: 10px;

    padding: 4px 8px;

    border: 0;
    border-radius: 5px;

    background: transparent;

    color: #c83d47;

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

    cursor: pointer;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}


.gestion-attachment-delete:hover {
    background: #fff0f1;

    color: #ad2933;
}


.gestion-attachment-delete:disabled {
    opacity: 0.55;

    cursor: wait;
}



/* =========================================================
   GestiON - Revisão global de tipografia V1
   Melhor legibilidade sem alterar o layout
   ========================================================= */


/* ---------------------------------------------------------
   Base
   --------------------------------------------------------- */

.app-body {
    font-size: 14px;
}


/* ---------------------------------------------------------
   Sidebar
   --------------------------------------------------------- */

.gestion-menu-item {
    font-size: 14px;
    font-weight: 500;
}

.gestion-sidebar-brand-copy small {
    font-size: 11px;
    line-height: 1.35;
}

.gestion-sidebar-user-copy strong {
    font-size: 12px;
}

.gestion-sidebar-user-copy span {
    font-size: 11px;
}

.gestion-sidebar-logout {
    font-size: 13px;
}


/* ---------------------------------------------------------
   Cabeçalho
   --------------------------------------------------------- */

.gestion-header-welcome p {
    font-size: 13px;
}

.gestion-search input {
    font-size: 13px;
}

.gestion-new-demand {
    font-size: 13px;
}


/* ---------------------------------------------------------
   Dashboard
   --------------------------------------------------------- */

.stat-label-main {
    font-size: 12px;
}

.dashboard-insight-header h2,
.dashboard-panel-header h2 {
    font-size: 16px;
}

.dashboard-insight-header a,
.dashboard-action {
    font-size: 11px;
}

.dashboard-panel-header p {
    font-size: 12px;
}

.dashboard-table {
    font-size: 12px;
}

.dashboard-table th {
    font-size: 11px;
}

.dashboard-table td {
    font-size: 12px;
}

.table-muted {
    font-size: 11px;
}


/* ---------------------------------------------------------
   Demandas - Listagens
   --------------------------------------------------------- */

.gestion-demand-link {
    font-size: 14px;
}

.gestion-demand-description {
    font-size: 12px;
    line-height: 1.45;
}


/* ---------------------------------------------------------
   Detalhes da demanda
   --------------------------------------------------------- */

.gestion-detail-description,
.gestion-detail-text {
    font-size: 13px;
    line-height: 1.55;
}

.gestion-detail-empty {
    font-size: 12px;
}

.gestion-action-message {
    font-size: 13px;
}


/* ---------------------------------------------------------
   Comentários
   --------------------------------------------------------- */

.gestion-comment-form textarea {
    font-size: 13px;
    line-height: 1.5;
}

.gestion-comment-footer > span {
    font-size: 11px;
}


/* ---------------------------------------------------------
   Status
   --------------------------------------------------------- */

.gestion-status-form label {
    font-size: 12px;
}

.gestion-status-form select {
    font-size: 13px;
}

.gestion-status-button {
    font-size: 13px;
}


/* ---------------------------------------------------------
   Histórico / Timeline
   --------------------------------------------------------- */

.gestion-timeline-content {
    font-size: 12px;
    line-height: 1.5;
}

.gestion-timeline-content strong {
    font-size: 12px;
}

.gestion-timeline-content p {
    font-size: 12px;
    line-height: 1.5;
}

.gestion-timeline-date,
.gestion-timeline-time {
    font-size: 10px;
}

.gestion-timeline-type {
    font-size: 10px;
}


/* ---------------------------------------------------------
   Informações laterais
   --------------------------------------------------------- */

.gestion-detail-info-label,
.gestion-info-label {
    font-size: 11px;
}

.gestion-detail-info-value,
.gestion-info-value {
    font-size: 12px;
}


/* ---------------------------------------------------------
   Anexos
   --------------------------------------------------------- */

.gestion-attachment-file-copy strong {
    font-size: 12px;
}

.gestion-attachment-file-copy small {
    font-size: 11px;
}

.gestion-attachment-help {
    font-size: 11px;
    line-height: 1.4;
}

.gestion-attachment-button {
    font-size: 12px;
}

.gestion-attachment-delete {
    font-size: 11px;
}

.gestion-attachment-row,
.gestion-attachment-item {
    font-size: 12px;
}

.gestion-attachment-meta {
    font-size: 10px;
}


/* ---------------------------------------------------------
   Formulários
   --------------------------------------------------------- */

input,
select,
textarea,
button {
    font-family: inherit;
}

.gestion-form label,
.form-label {
    font-size: 12px;
}

.gestion-form input,
.gestion-form select,
.gestion-form textarea {
    font-size: 13px;
}


/* ---------------------------------------------------------
   Badges e status
   --------------------------------------------------------- */

.status-badge,
.priority-badge {
    font-size: 10px;
}


/* ---------------------------------------------------------
   Responsivo
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .gestion-menu-item {
        font-size: 13px;
    }

    .dashboard-table {
        font-size: 11px;
    }

}


/* =========================================================
   GestiON - Detalhe da demanda V2
   Legibilidade + histórico com rolagem interna
   ========================================================= */


/* ---------------------------------------------------------
   Descrição
   --------------------------------------------------------- */

.gestion-detail-description,
.gestion-detail-text {
    font-size: 14px;
    line-height: 1.65;

    color: #46566d;
}


/* ---------------------------------------------------------
   Comentários
   --------------------------------------------------------- */

.gestion-comment-form textarea {
    font-size: 14px;
    line-height: 1.55;
}

.gestion-comment-footer > span {
    font-size: 12px;
    line-height: 1.4;
}


/* ---------------------------------------------------------
   Status
   --------------------------------------------------------- */

.gestion-status-form label {
    font-size: 12px;
}

.gestion-status-form select {
    font-size: 14px;
}

.gestion-status-button {
    font-size: 13px;
}


/* ---------------------------------------------------------
   Informações laterais
   --------------------------------------------------------- */

.gestion-detail-info-label,
.gestion-info-label {
    font-size: 12px;

    color: #77859a;
}

.gestion-detail-info-value,
.gestion-info-value {
    font-size: 13px;
    font-weight: 600;

    color: #17243a;
}


/* ---------------------------------------------------------
   Histórico
   --------------------------------------------------------- */

.gestion-timeline {
    max-height: 400px;

    overflow-y: auto;
    overflow-x: hidden;

    padding-right: 10px;

    scrollbar-gutter: stable;
}


/* Chrome / Edge / Safari */

.gestion-timeline::-webkit-scrollbar {
    width: 7px;
}

.gestion-timeline::-webkit-scrollbar-track {
    background: #f2f5f9;

    border-radius: 10px;
}

.gestion-timeline::-webkit-scrollbar-thumb {
    background: #c8d2df;

    border-radius: 10px;
}

.gestion-timeline::-webkit-scrollbar-thumb:hover {
    background: #aebccb;
}


/* Firefox */

.gestion-timeline {
    scrollbar-width: thin;
    scrollbar-color: #c8d2df #f2f5f9;
}


.gestion-timeline-item {
    padding-bottom: 20px;
}


.gestion-timeline-content {
    font-size: 13px;
    line-height: 1.55;
}


.gestion-timeline-content strong {
    font-size: 13px;
    font-weight: 700;
}


.gestion-timeline-content p {
    margin-top: 5px;

    font-size: 13px;
    line-height: 1.55;

    color: #53647b;
}


.gestion-timeline-date,
.gestion-timeline-time {
    font-size: 11px;

    color: #8b98aa;
}


.gestion-timeline-type {
    font-size: 10px;
}


/* ---------------------------------------------------------
   Arquivos
   --------------------------------------------------------- */

.gestion-attachment-file-copy strong {
    font-size: 13px;
}

.gestion-attachment-file-copy small {
    font-size: 11px;
}

.gestion-attachment-help {
    font-size: 11px;
    line-height: 1.45;
}

.gestion-attachment-button {
    font-size: 12px;
}

.gestion-attachment-row,
.gestion-attachment-item {
    font-size: 13px;
}

.gestion-attachment-meta {
    font-size: 11px;
}


/* ---------------------------------------------------------
   Textos vazios
   --------------------------------------------------------- */

.gestion-detail-empty {
    font-size: 12px;

    color: #8794a6;
}


/* ---------------------------------------------------------
   Telas menores
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .gestion-timeline {
        max-height: 340px;
    }

}


/* =========================================================
   GestiON - Texto auxiliar anexos V3
   ========================================================= */

.gestion-attachment-help {
    margin-top: 11px;

    color: #566a82;

    font-size: 14px;
    line-height: 1.55;
    font-weight: 500;
}



/* =========================================================
   GestiON - Padrao legibilidade detalhes V4
   Referência visual para monitores menores
   ========================================================= */


/* ---------------------------------------------------------
   Comentário - texto auxiliar
   --------------------------------------------------------- */

.gestion-comment-footer > span {
    color: #5e6f86;

    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
}


/* ---------------------------------------------------------
   Informações da demanda - labels
   --------------------------------------------------------- */

.gestion-detail-info-label,
.gestion-info-label {
    color: #66768c;

    font-size: 13px;
    line-height: 1.45;
    font-weight: 500;
}


/* ---------------------------------------------------------
   Informações da demanda - valores
   --------------------------------------------------------- */

.gestion-detail-info-value,
.gestion-info-value {
    color: #17243a;

    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}


/* ---------------------------------------------------------
   Linhas de informação
   --------------------------------------------------------- */

.gestion-detail-info-row,
.gestion-info-row {
    min-height: 48px;
}


/* ---------------------------------------------------------
   Status e prioridade dentro das informações
   --------------------------------------------------------- */

.gestion-detail-info-value .status-badge,
.gestion-detail-info-value .priority-badge,
.gestion-info-value .status-badge,
.gestion-info-value .priority-badge {
    font-size: 11px;
}



/* =========================================================
   GestiON - Refinamento final detalhe V5
   Informações + data/hora do histórico
   ========================================================= */


/* ---------------------------------------------------------
   Informações - estrutura
   --------------------------------------------------------- */

.gestion-detail-info-row,
.gestion-info-row {
    min-height: 52px;

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

    gap: 18px;
}


/* ---------------------------------------------------------
   Informações - labels
   --------------------------------------------------------- */

.gestion-detail-info-label,
.gestion-info-label {
    color: #5f7088;

    font-size: 13px;
    line-height: 1.45;
    font-weight: 500;
}


/* ---------------------------------------------------------
   Informações - valores
   --------------------------------------------------------- */

.gestion-detail-info-value,
.gestion-info-value {
    color: #0f1f36;

    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;

    text-align: right;
}


/* ---------------------------------------------------------
   Badges dentro da área de informações
   --------------------------------------------------------- */

.gestion-detail-info-value .status-badge,
.gestion-detail-info-value .priority-badge,
.gestion-info-value .status-badge,
.gestion-info-value .priority-badge {
    font-size: 11px;
}


/* ---------------------------------------------------------
   Histórico - data e hora
   --------------------------------------------------------- */

.gestion-timeline-top > span,
.gestion-timeline-date,
.gestion-timeline-time {
    color: #6f7f94;

    font-size: 11px;
    line-height: 1.4;
    font-weight: 500;
}


/* ---------------------------------------------------------
   Histórico - conteúdo
   --------------------------------------------------------- */

.gestion-timeline-content strong {
    font-size: 14px;
    font-weight: 700;
}

.gestion-timeline-content p {
    font-size: 13px;
    line-height: 1.55;
}


/* ---------------------------------------------------------
   Cabeçalho do histórico
   --------------------------------------------------------- */

.gestion-detail-card-header > span {
    color: #718096;

    font-size: 11px;
    font-weight: 500;
}



/* =========================================================
   GestiON - Card Informacoes V6
   Nova hierarquia visual
   ========================================================= */


/* ---------------------------------------------------------
   Container dos campos
   --------------------------------------------------------- */

.gestion-detail-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 10px;

    padding: 2px;
}


/* ---------------------------------------------------------
   Campo base
   --------------------------------------------------------- */

.gestion-detail-field {
    min-width: 0;
    min-height: 68px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    gap: 7px;

    padding: 12px 13px;

    border: 1px solid #e5eaf1;
    border-radius: 9px;

    background: #fbfcfe;
}


/* Remove divisórias antigas */

.gestion-detail-field + .gestion-detail-field {
    border-top: 1px solid #e5eaf1;
}


/* ---------------------------------------------------------
   Labels
   --------------------------------------------------------- */

.gestion-detail-field > span {
    color: #52647b;

    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;

    letter-spacing: 0.01em;
}


/* ---------------------------------------------------------
   Valores
   --------------------------------------------------------- */

.gestion-detail-field > strong,
.gestion-detail-field > div {
    max-width: 100%;

    color: #10213a;

    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;

    text-align: left;
}


/* ---------------------------------------------------------
   STATUS + PRIORIDADE
   Destaque superior
   --------------------------------------------------------- */

.gestion-detail-field:nth-child(1),
.gestion-detail-field:nth-child(2) {
    background: #f7faff;

    border-color: #dce7f7;
}


/* Badges maiores */

.gestion-detail-field:nth-child(1) .status-badge,
.gestion-detail-field:nth-child(2) .priority-badge {
    padding: 5px 9px;

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


/* ---------------------------------------------------------
   SETOR + RESPONSÁVEL
   --------------------------------------------------------- */

.gestion-detail-field:nth-child(3),
.gestion-detail-field:nth-child(4) {
    background: #ffffff;
}


/* ---------------------------------------------------------
   PRAZO
   ocupa toda a largura
   --------------------------------------------------------- */

.gestion-detail-field:nth-child(5) {
    grid-column: 1 / -1;

    min-height: 72px;

    background: #fffaf2;

    border-color: #f2e1c4;
}


.gestion-detail-field:nth-child(5) > strong,
.gestion-detail-field:nth-child(5) > div {
    font-size: 15px;
}


/* ---------------------------------------------------------
   REGISTRO
   últimos campos
   --------------------------------------------------------- */

.gestion-detail-field:nth-child(n+6) {
    min-height: 62px;

    background: #ffffff;
}


.gestion-detail-field:nth-child(n+6) > span {
    color: #66778d;

    font-size: 12px;
}


.gestion-detail-field:nth-child(n+6) > strong,
.gestion-detail-field:nth-child(n+6) > div {
    font-size: 13px;
}


/* Criado por ocupa largura completa */

.gestion-detail-field:nth-child(6) {
    grid-column: 1 / -1;
}


/* ---------------------------------------------------------
   Responsável longo
   --------------------------------------------------------- */

.gestion-detail-field strong {
    overflow-wrap: anywhere;
}


/* ---------------------------------------------------------
   Monitor menor
   --------------------------------------------------------- */

@media (max-width: 1100px) {

    .gestion-detail-fields {
        grid-template-columns: 1fr;
    }

    .gestion-detail-field:nth-child(5),
    .gestion-detail-field:nth-child(6) {
        grid-column: auto;
    }

}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .gestion-detail-field {
        min-height: 62px;
    }

}


/* =========================================================
   GestiON - Ajuste datas card informacoes V7
   ========================================================= */

/* Criada em + Atualizada em */

.gestion-detail-field:nth-child(7),
.gestion-detail-field:nth-child(8) {
    padding-left: 10px;
    padding-right: 10px;
}


/* Labels */

.gestion-detail-field:nth-child(7) > span,
.gestion-detail-field:nth-child(8) > span {
    font-size: 12px;
}


/* Data e hora */

.gestion-detail-field:nth-child(7) > strong,
.gestion-detail-field:nth-child(8) > strong,
.gestion-detail-field:nth-child(7) > div,
.gestion-detail-field:nth-child(8) > div {
    width: 100%;

    font-size: 12px;
    line-height: 1.4;

    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
}


/* Um pouco menos de espaço entre as duas caixas */

.gestion-detail-fields {
    column-gap: 8px;
}



/* =========================================================
   GestiON - Fix bordas datas informacoes V8
   ========================================================= */

.gestion-detail-fields {
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);
}


/* Garante que os cards nunca ultrapassem a coluna */

.gestion-detail-field {
    width: 100%;
    min-width: 0;

    box-sizing: border-box;
}


/* Duas caixas finais */

.gestion-detail-field:nth-child(7),
.gestion-detail-field:nth-child(8) {
    width: 100%;

    box-sizing: border-box;

    border: 1px solid #dce3ec;

    overflow: hidden;
}


/* Data/hora sempre respeitando a largura */

.gestion-detail-field:nth-child(7) > strong,
.gestion-detail-field:nth-child(8) > strong,
.gestion-detail-field:nth-child(7) > div,
.gestion-detail-field:nth-child(8) > div {
    width: auto;
    max-width: 100%;

    box-sizing: border-box;

    white-space: normal;
}



/* =========================================================
   GestiON - Editar demanda V1
   ========================================================= */

.gestion-page-heading-actions {
    display: flex;
    align-items: center;

    gap: 10px;
}


.gestion-edit-button {
    min-height: 40px;

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

    padding: 0 15px;

    border: 1px solid #1767e8;
    border-radius: 7px;

    background: #edf4ff;

    color: #1767e8;

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

    text-decoration: none;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}


.gestion-edit-button:hover {
    background: #1767e8;

    color: #ffffff;
}


@media (max-width: 700px) {

    .gestion-page-heading-actions {
        width: 100%;

        align-items: stretch;
        flex-direction: column;
    }

}



/* =========================================================
   GestiON - Cancelar demanda V1
   ========================================================= */

.gestion-danger-divider {
    height: 1px;

    margin: 18px 0;

    background: #edf0f4;
}


.gestion-cancel-demand-form {
    display: flex;
    flex-direction: column;

    gap: 9px;
}


.gestion-cancel-demand-button {
    width: 100%;
    min-height: 40px;

    border: 1px solid #e4a9ae;
    border-radius: 7px;

    background: #fff5f5;

    color: #bc3039;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}


.gestion-cancel-demand-button:hover {
    border-color: #d76169;

    background: #ffe8ea;

    color: #a8212b;
}


.gestion-cancel-demand-form small {
    color: #64758b;

    font-size: 12px;
    line-height: 1.45;
}



/* =========================================================
   GestiON - Anexos em demanda encerrada
   ========================================================= */

.gestion-closed-attachment-message {
    margin: 0;

    padding: 16px 18px;

    border-bottom: 1px solid #e7ebf1;

    background: #f8fafc;

    color: #607188;

    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
}



/* =========================================================
   GestiON - Modulo Setores V1
   ========================================================= */

.gestion-sector-stats {
    display: grid;

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

    gap: 12px;

    margin-bottom: 18px;
}


.gestion-sector-stat {
    padding: 16px;

    border: 1px solid #dfe5ed;
    border-radius: 10px;

    background: #ffffff;
}


.gestion-sector-stat > span {
    display: block;

    margin-bottom: 7px;

    color: #607188;

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


.gestion-sector-stat > strong {
    display: block;

    color: #11233c;

    font-size: 24px;
    line-height: 1.1;
    font-weight: 800;
}


.gestion-sector-stat > small {
    display: block;

    margin-top: 5px;

    color: #8190a3;

    font-size: 11px;
}


.gestion-sector-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        320px;

    gap: 18px;

    align-items: start;
}


.gestion-sector-list-card,
.gestion-sector-create-card,
.gestion-sector-edit-summary {
    border: 1px solid #dfe5ed;
    border-radius: 10px;

    background: #ffffff;

    overflow: hidden;
}


.gestion-sector-card-header {
    min-height: 72px;

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

    gap: 20px;

    padding: 15px 18px;

    border-bottom: 1px solid #e7ebf1;
}


.gestion-sector-card-header h3,
.gestion-sector-edit-summary h3 {
    margin: 0;

    color: #10213a;

    font-size: 15px;
    font-weight: 800;
}


.gestion-sector-card-header p {
    margin: 4px 0 0;

    color: #74849a;

    font-size: 12px;
}


.gestion-sector-card-header > span {
    color: #73839a;

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


.gestion-sector-table-wrapper {
    width: 100%;

    overflow-x: auto;
}


.gestion-sector-table {
    width: 100%;

    border-collapse: collapse;

    font-size: 13px;
}


.gestion-sector-table th {
    padding: 12px 15px;

    background: #f8fafc;

    color: #66778d;

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

    text-align: left;

    border-bottom: 1px solid #e4e9f0;
}


.gestion-sector-table td {
    padding: 15px;

    color: #283a52;

    vertical-align: middle;

    border-bottom: 1px solid #edf0f4;
}


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


.gestion-sector-name {
    display: flex;
    flex-direction: column;

    gap: 4px;
}


.gestion-sector-name strong {
    color: #12243d;

    font-size: 14px;
    font-weight: 750;
}


.gestion-sector-name span {
    max-width: 360px;

    color: #738299;

    font-size: 12px;
    line-height: 1.4;
}


.gestion-sector-number {
    display: block;

    color: #12243d;

    font-size: 14px;
}


.gestion-sector-subvalue {
    display: block;

    margin-top: 3px;

    color: #7b899c;

    font-size: 11px;
}


.gestion-sector-status {
    display: inline-flex;
    align-items: center;

    min-height: 24px;

    padding: 0 9px;

    border-radius: 20px;

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


.gestion-sector-status-active {
    background: #eaf8ef;

    color: #208442;
}


.gestion-sector-status-inactive {
    background: #f1f3f6;

    color: #68778b;
}


.gestion-sector-actions-column {
    width: 160px;
}


.gestion-sector-actions {
    display: flex;
    align-items: center;

    gap: 8px;
}


.gestion-sector-actions form {
    margin: 0;
}


.gestion-sector-edit,
.gestion-sector-toggle {
    min-height: 32px;

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

    padding: 0 10px;

    border-radius: 6px;

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    text-decoration: none;
}


.gestion-sector-edit {
    border: 1px solid #c9d9ef;

    background: #f4f8ff;

    color: #1767e8;
}


.gestion-sector-toggle {
    border: 1px solid transparent;
}


.gestion-sector-toggle-disable {
    border-color: #efc2c6;

    background: #fff5f5;

    color: #ba3540;
}


.gestion-sector-toggle-enable {
    border-color: #bfe3ca;

    background: #f1fbf4;

    color: #238247;
}


.gestion-sector-form {
    display: flex;
    flex-direction: column;

    gap: 16px;

    padding: 18px;
}


.gestion-sector-form > div {
    display: flex;
    flex-direction: column;

    gap: 7px;
}


.gestion-sector-form label {
    color: #31445d;

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


.gestion-sector-form label span {
    color: #dc3545;
}


.gestion-sector-form input,
.gestion-sector-form textarea {
    width: 100%;

    box-sizing: border-box;

    padding: 11px 12px;

    border: 1px solid #d5dde8;
    border-radius: 7px;

    background: #ffffff;

    color: #24364e;

    font-family: inherit;
    font-size: 13px;

    outline: none;
}


.gestion-sector-form textarea {
    resize: vertical;
}


.gestion-sector-form input:focus,
.gestion-sector-form textarea:focus {
    border-color: #2870eb;

    box-shadow:
        0 0 0 3px rgba(40, 112, 235, 0.08);
}


.gestion-sector-create-button {
    width: 100%;
}


.gestion-sector-empty {
    padding: 40px 20px;

    color: #8391a3;

    font-size: 13px;

    text-align: center;
}


/* ---------------------------------------------------------
   Editar setor
   --------------------------------------------------------- */

.gestion-sector-edit-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        280px;

    gap: 18px;

    align-items: start;
}


.gestion-sector-edit-summary {
    padding: 18px;
}


.gestion-sector-edit-summary h3 {
    margin-bottom: 15px;
}


.gestion-sector-edit-summary > div {
    min-height: 50px;

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

    gap: 14px;

    border-bottom: 1px solid #edf0f4;
}


.gestion-sector-edit-summary > div:last-child {
    border-bottom: 0;
}


.gestion-sector-edit-summary > div > span {
    color: #65758b;

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


.gestion-sector-edit-summary > div > strong:not(.gestion-sector-status) {
    color: #14263e;

    font-size: 14px;
}


/* ---------------------------------------------------------
   Responsivo
   --------------------------------------------------------- */

@media (max-width: 1200px) {

    .gestion-sector-stats {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


@media (max-width: 1000px) {

    .gestion-sector-layout,
    .gestion-sector-edit-layout {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 700px) {

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

}



/* =========================================================
   GestiON - Modulo Colaboradores V1
   ========================================================= */

.gestion-users-new-button {
    min-height: 40px;

    text-decoration: none;
}


.gestion-users-stats {
    display: grid;

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

    gap: 12px;

    margin-bottom: 18px;
}


.gestion-users-stat {
    padding: 16px;

    border: 1px solid #dfe5ed;
    border-radius: 10px;

    background: #ffffff;
}


.gestion-users-stat span {
    display: block;

    color: #607188;

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


.gestion-users-stat strong {
    display: block;

    margin-top: 7px;

    color: #10213a;

    font-size: 24px;
    line-height: 1.1;
    font-weight: 800;
}


.gestion-users-stat small {
    display: block;

    margin-top: 5px;

    color: #8190a3;

    font-size: 11px;
}


.gestion-users-card {
    border: 1px solid #dfe5ed;
    border-radius: 10px;

    background: #ffffff;

    overflow: hidden;
}


.gestion-users-card-header {
    min-height: 72px;

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

    gap: 20px;

    padding: 15px 18px;

    border-bottom: 1px solid #e7ebf1;
}


.gestion-users-card-header h3 {
    margin: 0;

    color: #10213a;

    font-size: 15px;
    font-weight: 800;
}


.gestion-users-card-header p {
    margin: 4px 0 0;

    color: #74849a;

    font-size: 12px;
}


.gestion-users-search input {
    width: 260px;

    padding: 10px 12px;

    border: 1px solid #d4dde8;
    border-radius: 7px;

    font-family: inherit;
    font-size: 13px;

    outline: none;
}


.gestion-users-search input:focus {
    border-color: #2870eb;

    box-shadow:
        0 0 0 3px rgba(40, 112, 235, 0.08);
}


.gestion-users-table-wrapper {
    width: 100%;

    overflow-x: auto;
}


.gestion-users-table {
    width: 100%;

    border-collapse: collapse;

    font-size: 13px;
}


.gestion-users-table th {
    padding: 12px 15px;

    background: #f8fafc;

    color: #66778d;

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

    text-align: left;

    border-bottom: 1px solid #e4e9f0;
}


.gestion-users-table td {
    padding: 14px 15px;

    vertical-align: middle;

    border-bottom: 1px solid #edf0f4;
}


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


.gestion-users-person {
    display: flex;
    align-items: center;

    gap: 11px;
}


.gestion-users-avatar {
    width: 36px;
    height: 36px;

    flex: 0 0 36px;

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

    border-radius: 50%;

    background: #1767e8;

    color: #ffffff;

    font-size: 13px;
    font-weight: 800;
}


.gestion-users-person > div:last-child {
    display: flex;
    flex-direction: column;

    gap: 2px;
}


.gestion-users-person strong {
    color: #12243d;

    font-size: 13px;
}


.gestion-users-person span {
    color: #64758b;

    font-size: 12px;
}


.gestion-users-person small {
    color: #8794a5;

    font-size: 11px;
}


.gestion-users-muted {
    color: #8996a7;

    font-size: 12px;
}


.gestion-role-badge,
.gestion-user-status {
    display: inline-flex;
    align-items: center;

    min-height: 24px;

    padding: 0 9px;

    border-radius: 20px;

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


.gestion-role-general_manager {
    background: #eef0ff;

    color: #5749c9;
}


.gestion-role-sector_manager {
    background: #edf4ff;

    color: #1767e8;
}


.gestion-role-collaborator {
    background: #f2f4f7;

    color: #566579;
}


.gestion-user-status-active {
    background: #eaf8ef;

    color: #208442;
}


.gestion-user-status-inactive {
    background: #f1f3f6;

    color: #68778b;
}


.gestion-users-actions {
    display: flex;
    align-items: center;

    gap: 8px;
}


.gestion-users-actions form {
    margin: 0;
}


.gestion-users-edit,
.gestion-users-toggle {
    min-height: 32px;

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

    padding: 0 10px;

    border-radius: 6px;

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;
}


.gestion-users-edit {
    border: 1px solid #c9d9ef;

    background: #f4f8ff;

    color: #1767e8;
}


.gestion-users-toggle {
    border: 1px solid transparent;
}


.gestion-users-disable {
    border-color: #efc2c6;

    background: #fff5f5;

    color: #ba3540;
}


.gestion-users-enable {
    border-color: #bfe3ca;

    background: #f1fbf4;

    color: #238247;
}


.gestion-users-toggle:disabled {
    opacity: 0.4;

    cursor: not-allowed;
}


.gestion-users-empty {
    padding: 40px 20px !important;

    color: #8391a3;

    font-size: 13px;

    text-align: center;
}


/* ---------------------------------------------------------
   Editar usuário
   --------------------------------------------------------- */

.gestion-user-edit-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        310px;

    gap: 18px;

    align-items: start;
}


.gestion-user-security-card {
    padding: 20px;

    border: 1px solid #dfe5ed;
    border-radius: 10px;

    background: #ffffff;
}


.gestion-user-summary {
    display: flex;
    align-items: center;
    flex-direction: column;

    text-align: center;
}


.gestion-user-summary-avatar {
    width: 48px;
    height: 48px;

    margin-bottom: 10px;

    flex-basis: 48px;

    font-size: 16px;
}


.gestion-user-summary > strong {
    color: #12243d;

    font-size: 15px;
}


.gestion-user-summary > span {
    margin-top: 3px;

    color: #607188;

    font-size: 12px;
}


.gestion-user-summary > small {
    margin-top: 3px;

    color: #8794a5;

    font-size: 11px;
}


.gestion-user-security-divider {
    height: 1px;

    margin: 20px 0;

    background: #e8edf3;
}


.gestion-user-security-card h3 {
    margin: 0;

    color: #14263e;

    font-size: 15px;
}


.gestion-user-security-card > p {
    margin: 5px 0 16px;

    color: #738299;

    font-size: 12px;
    line-height: 1.45;
}


.gestion-user-password-form {
    display: flex;
    flex-direction: column;

    gap: 8px;
}


.gestion-user-password-form label {
    color: #34475f;

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


.gestion-user-password-form input {
    width: 100%;

    box-sizing: border-box;

    padding: 10px 11px;

    border: 1px solid #d5dde8;
    border-radius: 7px;

    font-family: inherit;
    font-size: 13px;

    outline: none;
}


.gestion-user-password-form input:focus {
    border-color: #2870eb;

    box-shadow:
        0 0 0 3px rgba(40, 112, 235, 0.08);
}


.gestion-user-password-form small {
    color: #718197;

    font-size: 11px;
}


.gestion-user-password-button {
    min-height: 39px;

    margin-top: 5px;

    border: 1px solid #cad7e7;
    border-radius: 7px;

    background: #f4f7fb;

    color: #24405f;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}


/* ---------------------------------------------------------
   Responsivo
   --------------------------------------------------------- */

@media (max-width: 1200px) {

    .gestion-users-stats {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


@media (max-width: 1000px) {

    .gestion-user-edit-layout {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 700px) {

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


    .gestion-users-card-header {
        align-items: stretch;
        flex-direction: column;
    }


    .gestion-users-search input {
        width: 100%;
        box-sizing: border-box;
    }

}



/* =========================================================
   GestiON - Modulo Equipes V1
   ========================================================= */

.gestion-team-stats {
    display: grid;

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

    gap: 12px;

    margin-bottom: 18px;
}


.gestion-team-stat {
    padding: 16px;

    border: 1px solid #dfe5ed;
    border-radius: 10px;

    background: #ffffff;
}


.gestion-team-stat span {
    display: block;

    color: #607188;

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


.gestion-team-stat strong {
    display: block;

    margin-top: 7px;

    color: #10213a;

    font-size: 24px;
    font-weight: 800;
}


.gestion-team-stat small {
    display: block;

    margin-top: 5px;

    color: #8190a3;

    font-size: 11px;
}


.gestion-team-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        320px;

    gap: 18px;

    align-items: start;
}


.gestion-team-list-card,
.gestion-team-create-card,
.gestion-team-members-card {
    border: 1px solid #dfe5ed;
    border-radius: 10px;

    background: #ffffff;

    overflow: hidden;
}


.gestion-team-card-header {
    min-height: 72px;

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

    gap: 20px;

    padding: 15px 18px;

    border-bottom: 1px solid #e7ebf1;
}


.gestion-team-card-header h3 {
    margin: 0;

    color: #10213a;

    font-size: 15px;
    font-weight: 800;
}


.gestion-team-card-header p {
    margin: 4px 0 0;

    color: #74849a;

    font-size: 12px;
}


.gestion-team-card-header > span {
    color: #73839a;

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


.gestion-team-table-wrapper {
    width: 100%;

    overflow-x: auto;
}


.gestion-team-table {
    width: 100%;

    border-collapse: collapse;

    font-size: 13px;
}


.gestion-team-table th {
    padding: 12px 15px;

    background: #f8fafc;

    color: #66778d;

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

    text-align: left;

    border-bottom: 1px solid #e4e9f0;
}


.gestion-team-table td {
    padding: 15px;

    color: #283a52;

    vertical-align: middle;

    border-bottom: 1px solid #edf0f4;
}


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


.gestion-team-name {
    display: flex;
    flex-direction: column;

    gap: 4px;
}


.gestion-team-name strong {
    color: #12243d;

    font-size: 14px;
}


.gestion-team-name span {
    max-width: 320px;

    color: #738299;

    font-size: 12px;
    line-height: 1.4;
}


.gestion-team-muted {
    color: #8996a7;

    font-size: 12px;
}


.gestion-team-member-count {
    color: #10213a;

    font-size: 14px;
}


.gestion-team-status {
    display: inline-flex;
    align-items: center;

    min-height: 24px;

    padding: 0 9px;

    border-radius: 20px;

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


.gestion-team-status-active {
    background: #eaf8ef;

    color: #208442;
}


.gestion-team-status-inactive {
    background: #f1f3f6;

    color: #68778b;
}


.gestion-team-actions {
    display: flex;
    align-items: center;

    gap: 8px;
}


.gestion-team-actions form {
    margin: 0;
}


.gestion-team-edit,
.gestion-team-toggle {
    min-height: 32px;

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

    padding: 0 10px;

    border-radius: 6px;

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;
}


.gestion-team-edit {
    border: 1px solid #c9d9ef;

    background: #f4f8ff;

    color: #1767e8;
}


.gestion-team-toggle {
    border: 1px solid transparent;
}


.gestion-team-disable {
    border-color: #efc2c6;

    background: #fff5f5;

    color: #ba3540;
}


.gestion-team-enable {
    border-color: #bfe3ca;

    background: #f1fbf4;

    color: #238247;
}


.gestion-team-form {
    display: flex;
    flex-direction: column;

    gap: 16px;

    padding: 18px;
}


.gestion-team-form > div {
    display: flex;
    flex-direction: column;

    gap: 7px;
}


.gestion-team-form label {
    color: #31445d;

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


.gestion-team-form label span {
    color: #dc3545;
}


.gestion-team-form input,
.gestion-team-form select,
.gestion-team-form textarea {
    width: 100%;

    box-sizing: border-box;

    padding: 10px 11px;

    border: 1px solid #d5dde8;
    border-radius: 7px;

    background: #ffffff;

    color: #24364e;

    font-family: inherit;
    font-size: 13px;

    outline: none;
}


.gestion-team-form textarea {
    resize: vertical;
}


.gestion-team-form input:focus,
.gestion-team-form select:focus,
.gestion-team-form textarea:focus {
    border-color: #2870eb;

    box-shadow:
        0 0 0 3px rgba(40, 112, 235, 0.08);
}


.gestion-team-create-button {
    width: 100%;
}


.gestion-team-empty {
    padding: 40px 20px;

    color: #8391a3;

    font-size: 13px;

    text-align: center;
}


/* ---------------------------------------------------------
   Editar equipe
   --------------------------------------------------------- */

.gestion-team-edit-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        330px;

    gap: 18px;

    align-items: start;
}


.gestion-team-members-card {
    padding: 18px;
}


.gestion-team-members-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;
}


.gestion-team-members-header h3 {
    margin: 0;

    color: #10213a;

    font-size: 15px;
}


.gestion-team-members-header span {
    color: #74849a;

    font-size: 11px;
}


.gestion-team-members-card > p {
    margin: 6px 0 15px;

    color: #74849a;

    font-size: 12px;
    line-height: 1.45;
}


.gestion-team-members-list {
    max-height: 440px;

    overflow-y: auto;

    display: flex;
    flex-direction: column;

    gap: 7px;
}


.gestion-team-member-option {
    display: flex;
    align-items: center;

    gap: 9px;

    padding: 10px;

    border: 1px solid #e1e6ed;
    border-radius: 8px;

    cursor: pointer;
}


.gestion-team-member-option:hover {
    background: #f8fbff;
}


.gestion-team-member-option input {
    flex: 0 0 auto;
}


.gestion-team-member-avatar {
    width: 30px;
    height: 30px;

    flex: 0 0 30px;

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

    border-radius: 50%;

    background: #1767e8;

    color: #ffffff;

    font-size: 11px;
    font-weight: 800;
}


.gestion-team-member-copy {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 2px;
}


.gestion-team-member-copy strong {
    color: #20344e;

    font-size: 12px;
}


.gestion-team-member-copy small {
    color: #8290a2;

    font-size: 11px;
}


.gestion-team-members-empty {
    padding: 20px 10px;

    color: #8290a2;

    font-size: 12px;

    text-align: center;
}


@media (max-width: 1100px) {

    .gestion-team-layout,
    .gestion-team-edit-layout {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 800px) {

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

}



/* =========================================================
   GestiON - Projetos V1
   ========================================================= */

.gestion-project-stats {
    display: grid;
    grid-template-columns:
        repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.gestion-project-stat {
    padding: 16px;
    border: 1px solid #dfe5ed;
    border-radius: 10px;
    background: #ffffff;
}

.gestion-project-stat span,
.gestion-project-stat small {
    display: block;
}

.gestion-project-stat span {
    color: #5e7088;
    font-size: 12px;
    font-weight: 600;
}

.gestion-project-stat strong {
    display: block;
    margin-top: 7px;
    color: #10213a;
    font-size: 24px;
    font-weight: 800;
}

.gestion-project-stat small {
    margin-top: 4px;
    color: #8491a3;
    font-size: 11px;
}

.gestion-project-card {
    border: 1px solid #dfe5ed;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
}

.gestion-project-card + .gestion-project-card {
    margin-top: 16px;
}

.gestion-project-card-header {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 18px;
    border-bottom: 1px solid #e7ebf1;
}

.gestion-project-card-header h3 {
    margin: 0;
    color: #10213a;
    font-size: 15px;
    font-weight: 800;
}

.gestion-project-card-header p {
    margin: 4px 0 0;
    color: #77869a;
    font-size: 12px;
}

.gestion-project-card-header > span {
    color: #77869a;
    font-size: 12px;
}

.gestion-project-table-wrap {
    overflow-x: auto;
}

.gestion-project-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.gestion-project-table th {
    padding: 12px 14px;
    background: #f8fafc;
    color: #64758c;
    font-size: 11px;
    text-align: left;
}

.gestion-project-table td {
    padding: 14px;
    border-bottom: 1px solid #edf0f4;
    vertical-align: middle;
}

.gestion-project-table tr:last-child td {
    border-bottom: 0;
}

.gestion-project-link {
    display: block;
    color: #142842;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.gestion-project-link:hover {
    color: #1767e8;
}

.gestion-project-description {
    display: block;
    max-width: 280px;
    margin-top: 4px;
    color: #8190a2;
    font-size: 11px;
}

.gestion-project-progress {
    min-width: 135px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gestion-project-progress > div {
    width: 85px;
    height: 7px;
    border-radius: 10px;
    background: #e8edf4;
    overflow: hidden;
}

.gestion-project-progress > div span {
    display: block;
    height: 100%;
    background: #1767e8;
}

.gestion-project-progress strong {
    color: #354861;
    font-size: 11px;
}

.gestion-project-status {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}

.gestion-project-status-planned {
    background: #edf3ff;
    color: #1767e8;
}

.gestion-project-status-in_progress {
    background: #fff1df;
    color: #d46a00;
}

.gestion-project-status-paused {
    background: #fff6d9;
    color: #9f7400;
}

.gestion-project-status-completed {
    background: #e9f8ee;
    color: #18823b;
}

.gestion-project-status-cancelled {
    background: #feecec;
    color: #c33434;
}

.gestion-project-overdue {
    color: #dc3545;
    font-weight: 700;
}

.gestion-project-muted {
    color: #8d99aa;
}

.gestion-project-empty {
    padding: 45px 20px;
    color: #8794a5;
    text-align: center;
    font-size: 12px;
}

.gestion-project-detail-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        320px;
    gap: 18px;
    align-items: start;
}

.gestion-project-heading-actions {
    display: flex;
    gap: 10px;
}

.gestion-project-outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid #1767e8;
    border-radius: 7px;
    color: #1767e8;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.gestion-project-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #66778d;
    font-size: 11px;
    font-weight: 700;
}

.gestion-project-big-progress {
    color: #1767e8;
    font-size: 22px;
}

.gestion-project-progress-body {
    padding: 22px 18px;
}

.gestion-project-progress-large {
    height: 10px;
    border-radius: 10px;
    background: #e7edf5;
    overflow: hidden;
}

.gestion-project-progress-large span {
    display: block;
    height: 100%;
    background: #1767e8;
}

.gestion-project-progress-copy {
    margin-top: 9px;
    color: #64758b;
    font-size: 12px;
}

.gestion-project-demand-add {
    display: flex;
    gap: 9px;
    padding: 14px 18px;
    border-bottom: 1px solid #e7ebf1;
}

.gestion-project-demand-add select {
    flex: 1;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid #d6dee8;
    border-radius: 7px;
    background: #fff;
    font-family: inherit;
}

.gestion-project-demand-list {
    padding: 0 18px;
}

.gestion-project-demand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #edf0f4;
}

.gestion-project-demand-row:last-child {
    border-bottom: 0;
}

.gestion-project-demand-row a {
    color: #142842;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.gestion-project-demand-row span {
    display: block;
    margin-top: 3px;
    color: #8290a2;
    font-size: 11px;
}

.gestion-project-demand-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gestion-project-demand-actions form {
    margin: 0;
}

.gestion-project-demand-actions button {
    border: 0;
    background: transparent;
    color: #d53a43;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.gestion-project-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    padding: 16px;
}

.gestion-project-info-grid > div {
    min-height: 67px;
    padding: 11px;
    border: 1px solid #dfe5ed;
    border-radius: 8px;
    background: #fbfcfe;
}

.gestion-project-info-grid span {
    display: block;
    color: #66778e;
    font-size: 11px;
}

.gestion-project-info-grid strong {
    display: block;
    margin-top: 6px;
    color: #10213a;
    font-size: 12px;
    line-height: 1.35;
}

.gestion-project-info-full {
    grid-column: 1 / -1;
}

.gestion-project-admin-card form {
    padding: 15px;
}

.gestion-project-danger,
.gestion-project-enable {
    width: 100%;
    min-height: 38px;
    border-radius: 7px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.gestion-project-danger {
    border: 1px solid #efb8bd;
    background: #fff5f5;
    color: #c32935;
}

.gestion-project-enable {
    border: 1px solid #b8dfc3;
    background: #f1faf4;
    color: #238247;
}

@media (max-width: 1100px) {

    .gestion-project-detail-layout {
        grid-template-columns: 1fr;
    }

    .gestion-project-stats {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 750px) {

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

    .gestion-project-heading-actions {
        flex-wrap: wrap;
    }
}



/* =========================================================
   GestiON - Calendário V1
   ========================================================= */

.gestion-calendar-stats {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.gestion-calendar-stat {
    padding: 16px;
    border: 1px solid #dfe5ed;
    border-radius: 10px;
    background: #ffffff;
}

.gestion-calendar-stat span,
.gestion-calendar-stat small {
    display: block;
}

.gestion-calendar-stat span {
    color: #5f7188;
    font-size: 12px;
    font-weight: 600;
}

.gestion-calendar-stat strong {
    display: block;
    margin-top: 7px;
    color: #10213a;
    font-size: 24px;
    font-weight: 800;
}

.gestion-calendar-stat small {
    margin-top: 4px;
    color: #8491a3;
    font-size: 11px;
}

.gestion-calendar-today-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid #d5dde8;
    border-radius: 7px;
    background: #ffffff;
    color: #16304f;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.gestion-calendar-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        310px;
    gap: 18px;
    align-items: start;
}

.gestion-calendar-card {
    border: 1px solid #dfe5ed;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
}

.gestion-calendar-side
.gestion-calendar-card
+ .gestion-calendar-card {
    margin-top: 16px;
}

.gestion-calendar-header {
    min-height: 74px;
    display: grid;
    grid-template-columns:
        42px
        1fr
        42px;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #e7ebf1;
}

.gestion-calendar-header > div {
    text-align: center;
}

.gestion-calendar-header h3 {
    margin: 0;
    color: #10213a;
    font-size: 17px;
    font-weight: 800;
}

.gestion-calendar-header span {
    display: block;
    margin-top: 3px;
    color: #7d8b9d;
    font-size: 11px;
}

.gestion-calendar-nav {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9e1eb;
    border-radius: 8px;
    background: #ffffff;
    color: #193451;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}

.gestion-calendar-nav:hover {
    border-color: #1767e8;
    color: #1767e8;
}

.gestion-calendar-weekdays {
    display: grid;
    grid-template-columns:
        repeat(7, minmax(0, 1fr));
    background: #f8fafc;
    border-bottom: 1px solid #e7ebf1;
}

.gestion-calendar-weekdays span {
    padding: 10px 6px;
    color: #65768c;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.gestion-calendar-grid {
    display: grid;
    grid-template-columns:
        repeat(7, minmax(0, 1fr));
}

.gestion-calendar-day {
    min-height: 116px;
    padding: 9px;
    border-right: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    transition:
        background .15s ease,
        box-shadow .15s ease;
}

.gestion-calendar-day:nth-child(7n) {
    border-right: 0;
}

.gestion-calendar-day:hover {
    background: #f8fbff;
}

.gestion-calendar-day.is-empty {
    background: #fafbfd;
}

.gestion-calendar-day.is-today {
    background: #f2f7ff;
}

.gestion-calendar-day.is-selected {
    box-shadow:
        inset 0 0 0 2px #1767e8;
}

.gestion-calendar-day-number {
    width: 27px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #31465f;
    font-size: 12px;
    font-weight: 700;
}

.gestion-calendar-day.is-today
.gestion-calendar-day-number {
    border-radius: 50%;
    background: #1767e8;
    color: #ffffff;
}

.gestion-calendar-events {
    margin-top: 6px;
}

.gestion-calendar-event {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    margin-bottom: 4px;
    padding: 5px 6px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gestion-calendar-event span {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
}

.gestion-calendar-event-demand {
    background: #eef4ff;
    color: #175dca;
}

.gestion-calendar-event-demand span {
    background: #dbe9ff;
    color: #1558c0;
}

.gestion-calendar-event-project {
    background: #f0f7f3;
    color: #26704a;
}

.gestion-calendar-event-project span {
    background: #dff0e6;
    color: #26704a;
}

.gestion-calendar-event.is-final {
    opacity: .65;
}

.gestion-calendar-more {
    margin-top: 3px;
    color: #66788f;
    font-size: 10px;
    font-weight: 700;
}

.gestion-calendar-side-header {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 16px;
    border-bottom: 1px solid #e7ebf1;
}

.gestion-calendar-side-header span {
    color: #728298;
    font-size: 11px;
}

.gestion-calendar-side-header h3 {
    margin: 4px 0 0;
    color: #10213a;
    font-size: 15px;
    font-weight: 800;
}

.gestion-calendar-side-header > strong {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #edf4ff;
    color: #1767e8;
    font-size: 13px;
}

.gestion-calendar-selected-list {
    padding: 6px 14px;
}

.gestion-calendar-selected-item {
    display: block;
    padding: 13px 2px;
    border-bottom: 1px solid #edf0f4;
    color: inherit;
    text-decoration: none;
}

.gestion-calendar-selected-item:last-child {
    border-bottom: 0;
}

.gestion-calendar-selected-item:hover strong {
    color: #1767e8;
}

.gestion-calendar-selected-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.gestion-calendar-type {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 800;
}

.gestion-calendar-type-demand {
    background: #edf4ff;
    color: #1767e8;
}

.gestion-calendar-type-project {
    background: #e8f5ed;
    color: #247148;
}

.gestion-calendar-selected-status {
    color: #68788c;
    font-size: 10px;
    font-weight: 700;
}

.gestion-calendar-selected-item > strong {
    display: block;
    color: #12263f;
    font-size: 12px;
    line-height: 1.4;
}

.gestion-calendar-selected-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 6px;
    color: #7d8b9d;
    font-size: 10px;
}

.gestion-calendar-empty {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    text-align: center;
}

.gestion-calendar-empty strong {
    color: #31465f;
    font-size: 13px;
}

.gestion-calendar-empty span {
    max-width: 220px;
    margin-top: 5px;
    color: #8491a3;
    font-size: 11px;
    line-height: 1.5;
}

.gestion-calendar-legend-items {
    padding: 15px 16px;
}

.gestion-calendar-legend-items > div {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
    color: #41566f;
    font-size: 11px;
    font-weight: 600;
}

.gestion-calendar-legend-items > div:last-child {
    margin-bottom: 0;
}

.legend-demand,
.legend-project {
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
}

.legend-demand {
    background: #e5efff;
    color: #1767e8;
}

.legend-project {
    background: #e4f3ea;
    color: #26704a;
}

@media (max-width: 1180px) {

    .gestion-calendar-layout {
        grid-template-columns: 1fr;
    }

    .gestion-calendar-side {
        display: grid;
        grid-template-columns:
            2fr 1fr;
        gap: 15px;
    }

    .gestion-calendar-side
    .gestion-calendar-card
    + .gestion-calendar-card {
        margin-top: 0;
    }
}

@media (max-width: 900px) {

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

    .gestion-calendar-day {
        min-height: 95px;
        padding: 6px;
    }

    .gestion-calendar-event {
        padding: 4px;
        font-size: 9px;
    }
}

@media (max-width: 700px) {

    .gestion-calendar-side {
        grid-template-columns: 1fr;
    }

    .gestion-calendar-side
    .gestion-calendar-card
    + .gestion-calendar-card {
        margin-top: 0;
    }

    .gestion-calendar-day {
        min-height: 70px;
    }

    .gestion-calendar-event {
        display: none;
    }

    .gestion-calendar-more {
        display: block;
        text-align: center;
    }
}



/* =========================================================
   GestiON - Calendário V1.1
   Legibilidade e estados
   ========================================================= */

.gestion-calendar-day {
    min-height: 124px;
}

.gestion-calendar-day-number {
    font-size: 13px;
}

.gestion-calendar-event {
    min-height: 28px;
    padding: 6px 7px;
    gap: 6px;
    font-size: 11px;
    line-height: 1.25;
}

.gestion-calendar-event > strong {
    min-width: 0;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
}

.gestion-calendar-event > span {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    font-size: 10px;
}

.gestion-calendar-event.is-start {
    background: #eef8f2;
    color: #28704a;
    border-left: 3px solid #3e9968;
}

.gestion-calendar-event.is-overdue {
    background: #fff0f1;
    color: #b62734;
    border-left: 3px solid #dc3545;
}

.gestion-calendar-event.is-overdue > span {
    background: #ffdfe2;
    color: #b62734;
}

.gestion-calendar-event.is-final {
    opacity: .72;
}

.gestion-calendar-event.is-final:not(.is-overdue) {
    background: #f2f4f7;
    color: #68788c;
}

.gestion-calendar-more {
    margin-top: 5px;
    font-size: 11px;
}

.gestion-calendar-selected-item {
    padding: 15px 3px;
}

.gestion-calendar-selected-item.is-overdue {
    border-left: 3px solid #dc3545;
    padding-left: 10px;
}

.gestion-calendar-selected-item.is-final {
    opacity: .78;
}

.gestion-calendar-selected-labels {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gestion-calendar-kind {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 5px;
    background: #f2f5f9;
    color: #55677e;
    font-size: 10px;
    font-weight: 700;
}

.gestion-calendar-selected-status {
    font-size: 10px;
    font-weight: 800;
}

.gestion-calendar-selected-status.is-overdue {
    color: #d13440;
}

.gestion-calendar-selected-title {
    font-size: 13px !important;
    line-height: 1.45 !important;
}

.gestion-calendar-selected-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 10px;
}

.gestion-calendar-selected-meta > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.gestion-calendar-selected-meta span {
    color: #7d8b9d;
    font-size: 10px;
}

.gestion-calendar-selected-meta strong {
    color: #334960;
    font-size: 10px;
    font-weight: 700;
    text-align: right;
}

.legend-start,
.legend-overdue {
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
}

.legend-start {
    background: #e4f3ea;
    color: #28704a;
}

.legend-overdue {
    background: #ffe8ea;
    color: #c62d39;
}

@media (max-width: 900px) {

    .gestion-calendar-day {
        min-height: 105px;
    }

    .gestion-calendar-event {
        font-size: 10px;
    }

    .gestion-calendar-event > strong {
        font-size: 10px;
    }
}



/* =========================================================
   GestiON - Calendário V1.2 - Eventos 2 linhas
   ========================================================= */

/*
 * Aproveita melhor a largura das células do calendário
 * sem aumentar excessivamente a altura da tela.
 */

.gestion-calendar-event {
    align-items: flex-start;
    min-height: 38px;
    padding: 6px 7px;
    overflow: hidden;
}

.gestion-calendar-event > span {
    margin-top: 1px;
}

.gestion-calendar-event > strong {
    min-width: 0;
    display: -webkit-box;
    overflow: hidden;

    white-space: normal;
    text-overflow: ellipsis;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    line-clamp: 2;

    font-size: 11px;
    line-height: 1.3;
    font-weight: 700;

    overflow-wrap: anywhere;
}

/*
 * Um pouco mais de espaço vertical para acomodar
 * dois eventos legíveis quando necessário.
 */

.gestion-calendar-day {
    min-height: 132px;
}

/*
 * Mantém o indicador de atividades adicionais
 * visualmente separado.
 */

.gestion-calendar-more {
    padding: 3px 4px;
    border-radius: 4px;
    background: #f3f6fa;
    color: #5f7188;
    font-size: 10px;
    line-height: 1.25;
}

/*
 * Em monitores menores continua compacto.
 */

@media (max-width: 1100px) {

    .gestion-calendar-event {
        min-height: 36px;
        padding: 5px 6px;
    }

    .gestion-calendar-event > strong {
        font-size: 10.5px;
    }

    .gestion-calendar-day {
        min-height: 124px;
    }
}

@media (max-width: 900px) {

    .gestion-calendar-event > strong {
        font-size: 10px;
    }

    .gestion-calendar-day {
        min-height: 116px;
    }
}



/* =========================================================
   GestiON - Relatórios V1
   ========================================================= */

.gestion-report-filter-card,
.gestion-report-card,
.gestion-report-table-card {
    border: 1px solid #dfe5ed;
    border-radius: 10px;
    background: #ffffff;
}

.gestion-report-filter-card {
    margin-bottom: 16px;
    padding: 15px;
}

.gestion-report-filters {
    display: grid;
    grid-template-columns:
        140px
        140px
        minmax(150px, 1fr)
        minmax(170px, 1fr)
        minmax(150px, 1fr)
        auto;
    gap: 12px;
    align-items: end;
}

.gestion-report-filter label {
    display: block;
    margin-bottom: 6px;
    color: #334960;
    font-size: 11px;
    font-weight: 700;
}

.gestion-report-filter input,
.gestion-report-filter select {
    width: 100%;
    min-height: 39px;
    padding: 0 10px;
    border: 1px solid #d6deea;
    border-radius: 7px;
    background: #ffffff;
    color: #152a45;
    font-size: 11px;
}

.gestion-report-filter input:focus,
.gestion-report-filter select:focus {
    border-color: #1767e8;
    outline: none;
    box-shadow: 0 0 0 2px rgba(23, 103, 232, .08);
}

.gestion-report-filter select:disabled {
    background: #f4f6f9;
    color: #64758a;
}

.gestion-report-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gestion-report-clear {
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 1px solid #d8e0ea;
    border-radius: 7px;
    background: #ffffff;
    color: #31465f;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.gestion-report-filter-note {
    margin-top: 11px;
    color: #8491a3;
    font-size: 10.5px;
}

.gestion-report-kpis {
    display: grid;
    grid-template-columns:
        repeat(7, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.gestion-report-kpi {
    min-width: 0;
    padding: 14px;
    border: 1px solid #dfe5ed;
    border-radius: 10px;
    background: #ffffff;
}

.gestion-report-kpi span,
.gestion-report-kpi small {
    display: block;
}

.gestion-report-kpi span {
    color: #5f7188;
    font-size: 10.5px;
    font-weight: 600;
}

.gestion-report-kpi strong {
    display: block;
    margin-top: 6px;
    color: #10213a;
    font-size: 22px;
    font-weight: 800;
}

.gestion-report-kpi small {
    margin-top: 3px;
    color: #8995a6;
    font-size: 9.5px;
}

.gestion-report-kpi.is-danger strong {
    color: #d13541;
}

.gestion-report-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.gestion-report-card {
    overflow: hidden;
}

.gestion-report-card-header {
    min-height: 67px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 16px;
    border-bottom: 1px solid #e7ebf1;
}

.gestion-report-card-header h3 {
    margin: 0;
    color: #10213a;
    font-size: 14px;
    font-weight: 800;
}

.gestion-report-card-header span {
    display: block;
    margin-top: 3px;
    color: #8190a3;
    font-size: 10.5px;
}

.gestion-report-card-header > strong {
    color: #1767e8;
    font-size: 21px;
    font-weight: 800;
}

.gestion-report-rate {
    font-size: 25px !important;
}

.gestion-report-rate-body {
    padding: 18px 16px;
}

.gestion-report-progress {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7edf5;
}

.gestion-report-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #1767e8;
}

.gestion-report-rate-body p {
    margin: 10px 0 0;
    color: #66778c;
    font-size: 11px;
}

.gestion-report-project-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
}

.gestion-report-project-grid > div {
    padding: 16px;
    border-right: 1px solid #edf0f4;
}

.gestion-report-project-grid > div:last-child {
    border-right: 0;
}

.gestion-report-project-grid span {
    display: block;
    color: #6f8095;
    font-size: 10px;
}

.gestion-report-project-grid strong {
    display: block;
    margin-top: 5px;
    color: #10213a;
    font-size: 18px;
}

.gestion-report-charts {
    display: grid;
    grid-template-columns:
        1fr 1fr 0.8fr;
    gap: 14px;
    margin-bottom: 14px;
}

.gestion-report-bars {
    padding: 14px 16px;
}

.gestion-report-bar-row {
    margin-bottom: 13px;
}

.gestion-report-bar-row:last-child {
    margin-bottom: 0;
}

.gestion-report-bar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 5px;
}

.gestion-report-bar-top strong {
    min-width: 0;
    overflow: hidden;
    color: #2f455f;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gestion-report-bar-top span {
    color: #596b81;
    font-size: 11px;
    font-weight: 700;
}

.gestion-report-bar-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8edf4;
}

.gestion-report-bar-track span {
    display: block;
    height: 100%;
    min-width: 3px;
    border-radius: inherit;
    background: #1767e8;
}

.gestion-report-priority-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    padding: 15px;
}

.gestion-report-priority-item {
    min-height: 72px;
    padding: 10px;
    border: 1px solid #e5eaf0;
    border-radius: 8px;
}

.gestion-report-priority-item > strong {
    display: block;
    margin-top: 8px;
    color: #10213a;
    font-size: 17px;
}

.gestion-report-priority-item > small {
    display: block;
    margin-top: 2px;
    color: #8190a3;
    font-size: 9px;
}

.gestion-report-table-card {
    overflow: hidden;
}

.gestion-report-table-header {
    min-height: 64px;
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #e5eaf0;
}

.gestion-report-table-header h3 {
    margin: 0;
    color: #10213a;
    font-size: 14px;
    font-weight: 800;
}

.gestion-report-table-header span {
    display: block;
    margin-top: 3px;
    color: #8190a3;
    font-size: 10px;
}

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

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

.gestion-report-table th {
    padding: 11px 12px;
    border-bottom: 1px solid #e5eaf0;
    background: #f8fafc;
    color: #5d6f85;
    font-size: 9.5px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
}

.gestion-report-table td {
    padding: 12px;
    border-bottom: 1px solid #edf0f4;
    color: #40556d;
    font-size: 10.5px;
    vertical-align: middle;
}

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

.gestion-report-demand-link {
    display: block;
    color: #10213a;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.gestion-report-demand-link:hover {
    color: #1767e8;
}

.gestion-report-table td small {
    display: block;
    margin-top: 3px;
    color: #8190a3;
    font-size: 9.5px;
}

.gestion-report-overdue {
    color: #d52e3c;
    font-weight: 800;
}

.gestion-report-muted {
    color: #8b98a8;
}

.gestion-report-empty,
.gestion-report-empty-table {
    color: #8491a3;
    font-size: 11px;
    text-align: center;
}

.gestion-report-empty {
    padding: 30px 10px;
}

.gestion-report-empty-table {
    padding: 42px 20px;
}

@media (max-width: 1280px) {

    .gestion-report-kpis {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

    .gestion-report-charts {
        grid-template-columns: 1fr 1fr;
    }

    .gestion-report-charts
    .gestion-report-card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 1100px) {

    .gestion-report-filters {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .gestion-report-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {

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

    .gestion-report-charts {
        grid-template-columns: 1fr;
    }

    .gestion-report-charts
    .gestion-report-card:last-child {
        grid-column: auto;
    }

    .gestion-report-filters {
        grid-template-columns: 1fr 1fr;
    }

    .gestion-report-project-grid {
        grid-template-columns: 1fr 1fr;
    }
}



/* =========================================================
   GestiON - Relatórios Organização V1.1
   ========================================================= */

.gestion-reports-page {
    padding-bottom: 32px;
}


/* ---------------------------------------------------------
   FILTROS
   --------------------------------------------------------- */

.gestion-report-filter-card-v2 {
    padding: 13px 14px;
}

.gestion-report-filters-v2 {
    grid-template-columns:
        125px
        125px
        minmax(135px, .85fr)
        minmax(165px, 1fr)
        minmax(135px, .8fr)
        auto;
    gap: 10px;
}

.gestion-report-filter-actions-v2 {
    white-space: nowrap;
}


/* ---------------------------------------------------------
   CABEÇALHOS DE SEÇÃO
   --------------------------------------------------------- */

.gestion-report-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 5px 2px 10px;
}

.gestion-report-section-heading-spaced {
    margin-top: 18px;
}

.gestion-report-section-heading h3 {
    margin: 0;
    color: #10213a;
    font-size: 14px;
    font-weight: 800;
}

.gestion-report-section-heading span {
    display: block;
    margin-top: 2px;
    color: #7c8ba0;
    font-size: 10px;
}


/* ---------------------------------------------------------
   KPIs PRINCIPAIS
   --------------------------------------------------------- */

.gestion-report-main-kpis {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.gestion-report-main-kpi {
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px;
    border: 1px solid #dfe5ed;
    border-radius: 10px;
    background: #ffffff;
}

.gestion-report-main-kpi.is-alert {
    border-color: #f2c4c8;
    background: #fffafb;
}

.gestion-report-main-kpi-copy span {
    color: #596d86;
    font-size: 11px;
    font-weight: 600;
}

.gestion-report-main-kpi-copy strong {
    display: block;
    margin-top: 5px;
    color: #0e203a;
    font-size: 25px;
    line-height: 1;
    font-weight: 800;
}

.gestion-report-main-kpi-copy small {
    display: block;
    margin-top: 7px;
    color: #8290a2;
    font-size: 10px;
}

.gestion-report-main-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 800;
}

.gestion-report-main-icon.is-total {
    background: #edf4ff;
    color: #1767e8;
}

.gestion-report-main-icon.is-progress {
    background: #e8f7ed;
    color: #1b9c4b;
}

.gestion-report-main-icon.is-completed {
    background: #eeeafd;
    color: #6a4ee5;
}

.gestion-report-main-icon.is-overdue {
    background: #ffe9eb;
    color: #d53240;
}


/* ---------------------------------------------------------
   STATUS COMPLEMENTAR
   --------------------------------------------------------- */

.gestion-report-secondary-status {
    display: grid;
    grid-template-columns:
        minmax(180px, .8fr)
        2fr;
    align-items: center;
    gap: 20px;
    margin-bottom: 14px;
    padding: 12px 15px;
    border: 1px solid #dfe5ed;
    border-radius: 10px;
    background: #ffffff;
}

.gestion-report-secondary-title strong {
    display: block;
    color: #1b304a;
    font-size: 11px;
}

.gestion-report-secondary-title span {
    display: block;
    margin-top: 3px;
    color: #8491a3;
    font-size: 9.5px;
}

.gestion-report-secondary-items {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.gestion-report-secondary-item {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid #edf0f4;
    border-radius: 8px;
    background: #fafbfd;
}

.gestion-report-secondary-item > strong {
    color: #10213a;
    font-size: 16px;
    font-weight: 800;
}


/* ---------------------------------------------------------
   DESEMPENHO
   --------------------------------------------------------- */

.gestion-report-performance-grid {
    display: grid;
    grid-template-columns:
        .9fr 1.1fr;
    gap: 14px;
}

.gestion-report-performance-card {
    min-height: 190px;
}

.gestion-report-performance-header {
    min-height: 68px;
}

.gestion-report-rate-body-v2 {
    padding: 19px 17px;
}

.gestion-report-progress-v2 {
    height: 10px;
}

.gestion-report-conclusion-details {
    display: grid;
    grid-template-columns:
        1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.gestion-report-conclusion-details > div {
    padding: 10px 12px;
    border: 1px solid #edf0f4;
    border-radius: 8px;
    background: #fafbfd;
}

.gestion-report-conclusion-details strong {
    display: block;
    color: #10213a;
    font-size: 17px;
}

.gestion-report-conclusion-details span {
    display: block;
    margin-top: 2px;
    color: #7c8ba0;
    font-size: 9.5px;
}


/* ---------------------------------------------------------
   PROJETOS
   --------------------------------------------------------- */

.gestion-report-project-grid-v2 {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}

.gestion-report-project-grid-v2 > div {
    min-height: 61px;
    padding: 12px 14px;
    border-right: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
}

.gestion-report-project-grid-v2 > div:nth-child(3n) {
    border-right: 0;
}

.gestion-report-project-grid-v2 > div:nth-last-child(-n+3) {
    border-bottom: 0;
}

.gestion-report-project-grid-v2 > div.is-danger strong {
    color: #d53240;
}


/* ---------------------------------------------------------
   DISTRIBUIÇÕES
   --------------------------------------------------------- */

.gestion-report-distribution-grid {
    display: grid;
    grid-template-columns:
        1fr 1fr .8fr;
    gap: 14px;
}

.gestion-report-distribution-card {
    min-height: 220px;
}

.gestion-report-bars-v2 {
    padding: 15px 16px;
}

.gestion-report-bar-percentage {
    display: block;
    margin-top: 4px;
    color: #8a97a8;
    font-size: 9px;
    text-align: right;
}

.gestion-report-priority-list {
    padding: 11px 14px;
}

.gestion-report-priority-row {
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 1px;
    border-bottom: 1px solid #edf0f4;
}

.gestion-report-priority-row:last-child {
    border-bottom: 0;
}

.gestion-report-priority-values {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.gestion-report-priority-values strong {
    color: #10213a;
    font-size: 15px;
}

.gestion-report-priority-values small {
    color: #8794a6;
    font-size: 9px;
}


/* ---------------------------------------------------------
   TABELA
   --------------------------------------------------------- */

.gestion-report-table-v2 th {
    padding-top: 10px;
    padding-bottom: 10px;
}

.gestion-report-table-v2 td {
    padding-top: 11px;
    padding-bottom: 11px;
}

.gestion-report-id {
    color: #718197 !important;
    font-weight: 600;
}


/* ---------------------------------------------------------
   RESPONSIVIDADE
   --------------------------------------------------------- */

@media (max-width: 1200px) {

    .gestion-report-filters-v2 {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .gestion-report-main-kpis {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .gestion-report-distribution-grid {
        grid-template-columns:
            1fr 1fr;
    }

    .gestion-report-distribution-grid
    > .gestion-report-card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 900px) {

    .gestion-report-performance-grid {
        grid-template-columns: 1fr;
    }

    .gestion-report-secondary-status {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {

    .gestion-report-main-kpis {
        grid-template-columns: 1fr;
    }

    .gestion-report-secondary-items {
        grid-template-columns: 1fr;
    }

    .gestion-report-distribution-grid {
        grid-template-columns: 1fr;
    }

    .gestion-report-distribution-grid
    > .gestion-report-card:last-child {
        grid-column: auto;
    }

    .gestion-report-project-grid-v2 {
        grid-template-columns:
            1fr 1fr;
    }

    .gestion-report-project-grid-v2 > div,
    .gestion-report-project-grid-v2 > div:nth-child(3n),
    .gestion-report-project-grid-v2 > div:nth-last-child(-n+3) {
        border-right: 1px solid #edf0f4;
        border-bottom: 1px solid #edf0f4;
    }

    .gestion-report-project-grid-v2 > div:nth-child(2n) {
        border-right: 0;
    }

    .gestion-report-project-grid-v2 > div:nth-last-child(-n+2) {
        border-bottom: 0;
    }
}



/* =========================================================
   GestiON - Relatórios Legibilidade V1.2
   ========================================================= */

/* Cabeçalho da página */
.gestion-reports-page .gestion-page-heading p {
    color: #5b6b80;
    font-size: 13px;
    font-weight: 500;
}

/* Labels dos filtros */
.gestion-reports-page .gestion-report-filter label {
    color: #24364d;
    font-size: 12px;
    font-weight: 700;
}

/* Nota abaixo dos filtros */
.gestion-reports-page .gestion-report-filter-note {
    color: #617287;
    font-size: 11px;
    font-weight: 500;
}

/* Títulos de seção */
.gestion-reports-page .gestion-report-section-heading h3 {
    color: #0f2138;
    font-size: 15px;
    font-weight: 800;
}

.gestion-reports-page .gestion-report-section-heading span {
    color: #617287;
    font-size: 11px;
    font-weight: 500;
}

/* KPI principal */
.gestion-reports-page .gestion-report-main-kpi-copy span {
    color: #31445d;
    font-size: 12px;
    font-weight: 700;
}

.gestion-reports-page .gestion-report-main-kpi-copy strong {
    color: #0d1f37;
    font-size: 28px;
    font-weight: 800;
}

.gestion-reports-page .gestion-report-main-kpi-copy small {
    color: #5f7085;
    font-size: 11px;
    font-weight: 500;
}

/* Situação complementar */
.gestion-reports-page .gestion-report-secondary-title strong {
    color: #12243d;
    font-size: 12px;
    font-weight: 800;
}

.gestion-reports-page .gestion-report-secondary-title span {
    color: #607186;
    font-size: 10.5px;
    font-weight: 500;
}

.gestion-reports-page .gestion-report-secondary-item > strong {
    color: #0f2138;
    font-size: 17px;
    font-weight: 800;
}

/* Cabeçalhos dos cards */
.gestion-reports-page .gestion-report-card-header h3,
.gestion-reports-page .gestion-report-performance-header h3,
.gestion-reports-page .gestion-report-table-header h3 {
    color: #0f2138;
    font-size: 14px;
    font-weight: 800;
}

.gestion-reports-page .gestion-report-card-header span,
.gestion-reports-page .gestion-report-performance-header span,
.gestion-reports-page .gestion-report-table-header span {
    color: #617287;
    font-size: 10.5px;
    font-weight: 500;
}

/* Taxa de conclusão */
.gestion-reports-page .gestion-report-rate {
    color: #165ee8;
    font-size: 18px;
    font-weight: 800;
}

.gestion-reports-page .gestion-report-conclusion-details strong {
    color: #0f2138;
    font-size: 18px;
    font-weight: 800;
}

.gestion-reports-page .gestion-report-conclusion-details span {
    color: #617287;
    font-size: 10px;
    font-weight: 500;
}

/* Projeto resumo */
.gestion-reports-page .gestion-report-project-grid-v2 > div span {
    color: #5f7085;
    font-size: 10.5px;
    font-weight: 600;
}

.gestion-reports-page .gestion-report-project-grid-v2 > div strong {
    color: #0f2138;
    font-size: 15px;
    font-weight: 800;
}

/* Barras por setor e responsável */
.gestion-reports-page .gestion-report-bar-top strong {
    color: #10213a;
    font-size: 12px;
    font-weight: 700;
}

.gestion-reports-page .gestion-report-bar-top span {
    color: #33465e;
    font-size: 11px;
    font-weight: 700;
}

.gestion-reports-page .gestion-report-bar-percentage {
    color: #617287;
    font-size: 10px;
    font-weight: 600;
}

/* Prioridades */
.gestion-reports-page .gestion-report-priority-values strong {
    color: #0f2138;
    font-size: 16px;
    font-weight: 800;
}

.gestion-reports-page .gestion-report-priority-values small {
    color: #607186;
    font-size: 10px;
    font-weight: 600;
}

/* Tabela */
.gestion-reports-page .gestion-report-table th {
    color: #41546d;
    font-size: 11px;
    font-weight: 700;
}

.gestion-reports-page .gestion-report-table td {
    color: #24364d;
    font-size: 12px;
    font-weight: 500;
}

.gestion-reports-page .gestion-report-demand-link {
    color: #10213a;
    font-size: 12.5px;
    font-weight: 700;
}

.gestion-reports-page .gestion-report-table td small {
    color: #627388;
    font-size: 10.5px;
    font-weight: 500;
}

.gestion-reports-page .gestion-report-id {
    color: #4a5e77 !important;
    font-size: 11px;
    font-weight: 700;
}

.gestion-reports-page .gestion-report-muted {
    color: #66788c;
    font-weight: 500;
}

.gestion-reports-page .gestion-report-overdue {
    color: #b4232f;
    font-weight: 700;
}

/* Empty states */
.gestion-reports-page .gestion-report-empty,
.gestion-reports-page .gestion-report-empty-table {
    color: #5f7085;
    font-size: 12px;
    font-weight: 500;
}

/* Inputs e selects do relatório */
.gestion-reports-page input,
.gestion-reports-page select {
    color: #24364d;
    font-weight: 500;
}



/* =========================================================
   GestiON - Relatórios PDF V1
   ========================================================= */

.gestion-report-heading-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gestion-report-export-button {
    min-height: 39px;
    padding-left: 16px;
    padding-right: 16px;
    text-decoration: none;
    white-space: nowrap;
}



/* =========================================================
   GestiON - Relatórios CSV V1
   ========================================================= */

.gestion-report-csv-button {
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border: 1px solid #1767e8;
    border-radius: 7px;
    background: #ffffff;
    color: #1767e8;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background .15s ease,
        color .15s ease;
}

.gestion-report-csv-button:hover {
    background: #edf4ff;
}



/* =========================================================
   GestiON - Relatórios XLSX V1
   ========================================================= */

.gestion-report-xlsx-button {
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border: 1px solid #17864b;
    border-radius: 7px;
    background: #ffffff;
    color: #17864b;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background .15s ease,
        color .15s ease;
}

.gestion-report-xlsx-button:hover {
    background: #edf8f2;
}



/* =========================================================
   GestiON - Arquivos V1
   ========================================================= */

.gestion-files-page {
    width: 100%;
}

.gestion-files-summary {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 16px;
}

.gestion-files-kpi {
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    padding: 16px;
    min-height: 105px;
    display: flex;
    flex-direction: column;
}

.gestion-files-kpi span {
    color: #29415c;
    font-size: 13px;
    font-weight: 700;
}

.gestion-files-kpi strong {
    color: #071b33;
    font-size: 28px;
    line-height: 1;
    margin-top: 10px;
}

.gestion-files-kpi small {
    color: #486581;
    font-size: 12px;
    margin-top: 8px;
}

.gestion-files-card {
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    overflow: hidden;
}

.gestion-files-card-header {
    min-height: 72px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #e3eaf2;
}

.gestion-files-card-header h2 {
    margin: 0;
    color: #071b33;
    font-size: 17px;
}

.gestion-files-card-header p {
    margin: 4px 0 0;
    color: #486581;
    font-size: 13px;
}

.gestion-files-search {
    width: 250px;
    flex: 0 0 250px;
}

.gestion-files-search input {
    width: 100%;
    height: 40px;
    border: 1px solid #cbd7e6;
    border-radius: 7px;
    padding: 0 12px;
    background: #ffffff;
    color: #102a43;
    font-size: 13px;
    outline: none;
}

.gestion-files-search input:focus {
    border-color: #1767e8;
    box-shadow:
        0 0 0 2px
        rgba(23, 103, 232, .08);
}

.gestion-files-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.gestion-files-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1050px;
}

.gestion-files-table th {
    background: #f7f9fc;
    border-bottom: 1px solid #d9e2ec;
    color: #243b53;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    padding: 12px 12px;
    white-space: nowrap;
}

.gestion-files-table td {
    border-bottom: 1px solid #e8edf3;
    color: #102a43;
    font-size: 13px;
    padding: 13px 12px;
    vertical-align: middle;
}

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

.gestion-files-table tbody tr:hover {
    background: #fbfcfe;
}

.gestion-file-name {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 210px;
}

.gestion-file-name strong {
    display: block;
    color: #071b33;
    font-size: 13px;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gestion-file-name small {
    display: block;
    margin-top: 3px;
    color: #526d82;
    font-size: 11px;
}

.gestion-file-icon {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #edf4ff;
    flex: 0 0 32px;
}

.gestion-files-link {
    color: #1767e8;
    font-weight: 600;
    text-decoration: none;
}

.gestion-files-link:hover {
    text-decoration: underline;
}

.gestion-files-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #bcd0eb;
    border-radius: 6px;
    color: #1767e8;
    background: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.gestion-files-download:hover {
    background: #edf4ff;
}

.gestion-files-empty,
.gestion-files-empty-search {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #627d98;
    text-align: center;
    padding: 30px;
}

.gestion-files-empty strong {
    color: #102a43;
    margin-top: 10px;
    font-size: 14px;
}

.gestion-files-empty p {
    margin: 7px 0 0;
    max-width: 440px;
    font-size: 12px;
}

.gestion-files-empty-icon {
    font-size: 30px;
}

@media (max-width: 1100px) {
    .gestion-files-summary {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}



/* =========================================================
   GestiON - Arquivos Filtros V1
   ========================================================= */

.gestion-files-filters {
    display: grid;
    grid-template-columns:
        minmax(140px, 1fr)
        minmax(150px, 1.2fr)
        minmax(160px, 1.2fr)
        minmax(130px, .8fr)
        auto;
    gap: 12px;
    align-items: end;

    margin-bottom: 16px;
    padding: 15px;

    background: #ffffff;

    border: 1px solid #d9e2ec;
    border-radius: 10px;
}

.gestion-files-filter {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.gestion-files-filter label {
    color: #102a43;
    font-size: 12px;
    font-weight: 700;
}

.gestion-files-filter select {
    width: 100%;
    height: 40px;

    padding: 0 11px;

    border: 1px solid #cbd7e6;
    border-radius: 7px;

    background: #ffffff;

    color: #102a43;

    font-size: 13px;

    outline: none;
}

.gestion-files-filter select:focus {
    border-color: #1767e8;

    box-shadow:
        0 0 0 2px
        rgba(23, 103, 232, .08);
}

.gestion-files-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gestion-files-clear-button,
.gestion-files-filter-button {
    height: 40px;
    white-space: nowrap;
}

.gestion-files-clear-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 14px;

    border: 1px solid #cbd7e6;
    border-radius: 7px;

    background: #ffffff;

    color: #243b53;

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

    text-decoration: none;
}

.gestion-files-clear-button:hover {
    background: #f7f9fc;
}

.gestion-files-filter-button {
    border: 0;
    cursor: pointer;
}

.gestion-file-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 25px;

    padding: 0 9px;

    border-radius: 999px;

    background: #edf4ff;

    color: #1767e8;

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

.gestion-file-icon {
    color: #1767e8;

    font-size: 9px;
    font-weight: 800;
}

.gestion-files-actions {
    display: flex;
    align-items: center;
    gap: 7px;

    white-space: nowrap;
}

.gestion-files-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 34px;

    padding: 0 11px;

    border: 1px solid #cbd7e6;
    border-radius: 6px;

    background: #ffffff;

    color: #243b53;

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

    text-decoration: none;
}

.gestion-files-open:hover {
    background: #f7f9fc;
}

@media (max-width: 1200px) {

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

    .gestion-files-filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

}


/* =========================================================
   GestiON - Correção de elementos hidden
   ========================================================= */

.gestion-files-empty-search[hidden] {
    display: none !important;
}



/* =========================================================
   GestiON - Configurações V1
   ========================================================= */

.gestion-settings-page {
    width: 100%;
}

.gestion-settings-summary {
    display: grid;
    grid-template-columns:
        repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 16px;
}

.gestion-settings-kpi {
    min-height: 105px;
    padding: 16px;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    border: 1px solid #d9e2ec;
    border-radius: 10px;
}

.gestion-settings-kpi span {
    color: #29415c;
    font-size: 13px;
    font-weight: 700;
}

.gestion-settings-kpi strong {
    margin-top: 10px;

    color: #071b33;

    font-size: 28px;
    line-height: 1;
}

.gestion-settings-kpi small {
    margin-top: 8px;

    color: #486581;
    font-size: 12px;
}

.gestion-settings-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}

.gestion-settings-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #d9e2ec;
    border-radius: 10px;
}

.gestion-settings-card-header {
    min-height: 74px;

    padding: 16px 18px;

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

    border-bottom: 1px solid #e3eaf2;
}

.gestion-settings-card-header h2 {
    margin: 0;

    color: #071b33;

    font-size: 17px;
}

.gestion-settings-card-header p {
    margin: 4px 0 0;

    color: #526d82;

    font-size: 12px;
}

.gestion-settings-status-ok {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 5px 10px;

    background: #e7f7ed;

    border-radius: 999px;

    color: #14833b;

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

.gestion-settings-list {
    padding: 4px 18px;
}

.gestion-settings-row {
    min-height: 48px;

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

    gap: 20px;

    border-bottom: 1px solid #edf1f5;
}

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

.gestion-settings-row span {
    color: #486581;

    font-size: 13px;
}

.gestion-settings-row strong {
    color: #102a43;

    font-size: 13px;
    text-align: right;
}

.gestion-settings-positive {
    color: #15803d !important;
}

.gestion-settings-path {
    max-width: 250px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.gestion-settings-notice {
    margin: 12px 18px 18px;

    padding: 12px 14px;

    background: #edf4ff;

    border: 1px solid #d7e5fb;
    border-radius: 8px;

    color: #29415c;

    font-size: 12px;
    line-height: 1.5;
}

.gestion-settings-notice strong {
    display: block;

    margin-bottom: 4px;

    color: #102a43;

    font-size: 12px;
}

.gestion-settings-notice p {
    margin: 0;
}

.gestion-settings-notice.neutral {
    background: #f7f9fc;

    border-color: #e1e7ef;
}

.gestion-settings-subsection {
    padding: 8px 18px 18px;
}

.gestion-settings-subtitle {
    display: block;

    margin-bottom: 9px;

    color: #29415c;

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

.gestion-settings-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.gestion-settings-tags span {
    display: inline-flex;
    align-items: center;

    min-height: 25px;

    padding: 0 9px;

    background: #edf4ff;

    border-radius: 999px;

    color: #1767e8;

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

.gestion-settings-roadmap {
    padding: 10px 18px;
}

.gestion-settings-roadmap > div {
    min-height: 58px;

    display: flex;
    align-items: flex-start;

    gap: 11px;

    padding: 10px 0;

    border-bottom: 1px solid #edf1f5;
}

.gestion-settings-roadmap > div:last-child {
    border-bottom: 0;
}

.gestion-settings-roadmap-icon {
    width: 28px;
    height: 28px;

    flex: 0 0 28px;

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

    background: #edf4ff;

    border-radius: 7px;

    color: #1767e8;

    font-size: 11px;
    font-weight: 800;
}

.gestion-settings-roadmap strong {
    color: #102a43;

    font-size: 13px;
}

.gestion-settings-roadmap p {
    margin: 4px 0 0;

    color: #526d82;

    font-size: 12px;
    line-height: 1.4;
}

@media (max-width: 1150px) {

    .gestion-settings-summary {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 900px) {

    .gestion-settings-grid {
        grid-template-columns: 1fr;
    }

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

}



/* =========================================================
   GestiON - E-mail e Convites V1
   ========================================================= */

.gestion-settings-email-intro {
    display: flex;
    gap: 12px;
    padding: 18px;
}

.gestion-settings-email-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;

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

    border-radius: 9px;

    background: #edf4ff;
    color: #1767e8;

    font-size: 19px;
    font-weight: 800;
}

.gestion-settings-email-intro strong {
    color: #102a43;
    font-size: 13px;
}

.gestion-settings-email-intro p {
    margin: 4px 0 0;

    color: #526d82;
    font-size: 12px;
    line-height: 1.5;
}

.gestion-settings-email-actions {
    padding: 0 18px 18px;

    display: flex;
    justify-content: flex-end;
}

.gestion-email-settings-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        300px;

    gap: 16px;
}

.gestion-email-test-card {
    align-self: start;

    padding: 18px;

    background: #ffffff;

    border: 1px solid #d9e2ec;
    border-radius: 10px;
}

.gestion-email-test-card h3 {
    margin: 0;
    color: #071b33;
    font-size: 16px;
}

.gestion-email-test-card > p {
    margin: 6px 0 18px;

    color: #526d82;
    font-size: 12px;
    line-height: 1.5;
}

.gestion-email-test-card form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gestion-email-test-card label {
    color: #102a43;
    font-size: 12px;
    font-weight: 700;
}

.gestion-email-test-card input {
    height: 40px;

    padding: 0 11px;

    border: 1px solid #cbd7e6;
    border-radius: 7px;

    color: #102a43;
    font-size: 13px;
}

.gestion-email-test-button {
    width: 100%;
    margin-top: 4px;
}

.gestion-email-test-button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.gestion-email-status-off {
    display: inline-flex;

    padding: 5px 10px;

    border-radius: 999px;

    background: #f1f5f9;
    color: #526d82;

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

.gestion-email-toggle {
    height: 40px;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 0 12px;

    border: 1px solid #cbd7e6;
    border-radius: 7px;

    cursor: pointer;
}

.gestion-email-toggle input {
    width: auto;
    height: auto;
}

.gestion-email-toggle span {
    color: #102a43;
    font-size: 12px;
    font-weight: 600;
}


/* ---------------------------------------------------------
   Modo de senha no cadastro
   --------------------------------------------------------- */

.gestion-password-mode {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin-bottom: 18px;
}

.gestion-password-option {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    min-height: 86px;

    padding: 14px;

    border: 1px solid #cbd7e6;
    border-radius: 9px;

    background: #ffffff;

    cursor: pointer;
}

.gestion-password-option:has(input:checked) {
    border-color: #1767e8;

    box-shadow:
        0 0 0 2px
        rgba(23, 103, 232, .08);

    background: #f8fbff;
}

.gestion-password-option.disabled {
    opacity: .55;
    cursor: not-allowed;
}

.gestion-password-option input {
    margin-top: 3px;
}

.gestion-password-option strong {
    display: block;

    color: #102a43;

    font-size: 13px;
}

.gestion-password-option span {
    display: block;

    margin-top: 5px;

    color: #526d82;

    font-size: 12px;
    line-height: 1.4;
}

.gestion-invite-mode-info {
    padding: 14px;

    border: 1px solid #d7e5fb;
    border-radius: 8px;

    background: #edf4ff;
}

.gestion-invite-mode-info[hidden] {
    display: none !important;
}

.gestion-invite-mode-info strong {
    color: #102a43;
    font-size: 13px;
}

.gestion-invite-mode-info p {
    margin: 5px 0 0;

    color: #486581;

    font-size: 12px;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   Página pública do convite
   --------------------------------------------------------- */

.gestion-invite-body {
    min-height: 100vh;

    margin: 0;

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

    padding: 24px;

    background: #f3f6fa;

    font-family:
        Arial,
        sans-serif;
}

.gestion-invite-shell {
    width: 100%;
    max-width: 470px;
}

.gestion-invite-card {
    padding: 32px;

    background: #ffffff;

    border: 1px solid #d9e2ec;
    border-radius: 12px;

    box-shadow:
        0 10px 30px
        rgba(16, 42, 67, .08);
}

.gestion-invite-brand {
    margin-bottom: 24px;

    text-align: center;
}

.gestion-invite-brand img {
    max-width: 180px;
    max-height: 55px;
}

.gestion-invite-card h1 {
    margin: 0;

    color: #071b33;

    font-size: 24px;
}

.gestion-invite-card > p {
    margin: 8px 0 22px;

    color: #526d82;

    font-size: 14px;
    line-height: 1.55;
}

.gestion-invite-card form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gestion-invite-button {
    width: 100%;
    min-height: 42px;

    margin-top: 8px;

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

    text-decoration: none;
}

@media (max-width: 1000px) {

    .gestion-email-settings-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 760px) {

    .gestion-password-mode {
        grid-template-columns: 1fr;
    }

}



/* =========================================================
   GestiON - Notificações V1
   ========================================================= */

.gestion-notification-wrapper {
    position: relative;
}

.gestion-notification-button {
    position: relative;
}

.gestion-notification-badge {
    position: absolute;

    top: -4px;
    right: -6px;

    min-width: 18px;
    height: 18px;

    padding: 0 5px;

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

    background: #e5484d;
    color: #ffffff;

    border: 2px solid #ffffff;
    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.gestion-notification-badge[hidden] {
    display: none !important;
}

.gestion-notification-dropdown {
    position: absolute;

    top: calc(100% + 12px);
    right: 0;

    z-index: 500;

    width: 390px;
    max-height: 520px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #d9e2ec;
    border-radius: 11px;

    box-shadow:
        0 16px 40px
        rgba(16, 42, 67, .16);
}

.gestion-notification-dropdown[hidden] {
    display: none !important;
}

.gestion-notification-dropdown-header {
    min-height: 68px;

    padding: 13px 15px;

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

    border-bottom: 1px solid #e7edf4;
}

.gestion-notification-dropdown-header strong {
    display: block;

    color: #071b33;

    font-size: 14px;
}

.gestion-notification-dropdown-header span {
    display: block;

    margin-top: 3px;

    color: #627d98;

    font-size: 11px;
}

.gestion-notification-read-all {
    padding: 0;

    background: transparent;
    border: 0;

    color: #1767e8;

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

    cursor: pointer;
}

.gestion-notification-read-all[hidden] {
    display: none !important;
}

.gestion-notification-list {
    max-height: 370px;

    overflow-y: auto;
}

.gestion-notification-item {
    position: relative;

    display: flex;
    gap: 10px;

    padding: 13px 15px;

    color: inherit;
    text-decoration: none;

    border-bottom: 1px solid #edf1f5;

    transition:
        background .15s ease;
}

.gestion-notification-item:hover {
    background: #f7faff;
}

.gestion-notification-item.unread {
    background: #f4f8ff;
}

.gestion-notification-dot {
    width: 8px;
    height: 8px;

    flex: 0 0 8px;

    margin-top: 5px;

    border-radius: 50%;

    background: #cbd5e1;
}

.gestion-notification-item.unread
.gestion-notification-dot {
    background: #1767e8;
}

.gestion-notification-item-copy {
    min-width: 0;
}

.gestion-notification-item-copy strong {
    display: block;

    color: #102a43;

    font-size: 12px;
    line-height: 1.35;
}

.gestion-notification-item-copy p {
    margin: 4px 0 0;

    color: #486581;

    font-size: 11px;
    line-height: 1.4;
}

.gestion-notification-item-copy small {
    display: block;

    margin-top: 6px;

    color: #829ab1;

    font-size: 10px;
}

.gestion-notification-view-all {
    min-height: 42px;

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

    color: #1767e8;

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

    text-decoration: none;

    border-top: 1px solid #e7edf4;
}

.gestion-notification-view-all:hover {
    background: #f7faff;
}

.gestion-notification-loading,
.gestion-notification-empty {
    min-height: 120px;

    padding: 22px;

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

    text-align: center;

    color: #627d98;

    font-size: 12px;
}

.gestion-notification-empty strong {
    color: #29415c;

    font-size: 12px;
}

.gestion-notification-empty span {
    margin-top: 4px;

    font-size: 11px;
}


/* Página completa */

.gestion-notifications-page-card {
    overflow: hidden;

    margin-top: 18px;

    background: #ffffff;

    border: 1px solid #d9e2ec;
    border-radius: 10px;
}

.gestion-notifications-page-item {
    display: flex;
    gap: 12px;

    padding: 15px 18px;

    color: inherit;
    text-decoration: none;

    border-bottom: 1px solid #edf1f5;
}

.gestion-notifications-page-item:last-child {
    border-bottom: 0;
}

.gestion-notifications-page-item:hover {
    background: #f7faff;
}

.gestion-notifications-page-item.unread {
    background: #f4f8ff;
}

.gestion-notification-page-dot {
    width: 9px;
    height: 9px;

    flex: 0 0 9px;

    margin-top: 5px;

    border-radius: 50%;

    background: #cbd5e1;
}

.gestion-notifications-page-item.unread
.gestion-notification-page-dot {
    background: #1767e8;
}

.gestion-notifications-page-item strong {
    color: #102a43;

    font-size: 13px;
}

.gestion-notifications-page-item p {
    margin: 4px 0;

    color: #486581;

    font-size: 12px;
}

.gestion-notifications-page-item small {
    color: #829ab1;

    font-size: 11px;
}

.gestion-notifications-empty-page {
    padding: 40px 20px;

    text-align: center;
}

.gestion-notifications-empty-page strong {
    color: #102a43;

    font-size: 14px;
}

.gestion-notifications-empty-page p {
    margin: 5px 0 0;

    color: #627d98;

    font-size: 12px;
}

@media (max-width: 700px) {

    .gestion-notification-dropdown {
        position: fixed;

        top: 70px;
        right: 12px;
        left: 12px;

        width: auto;
    }

}

/* GestiON - Demandas V2 filtros */

.gestion-demand-filterbar {
    padding: 12px 14px;

    display: flex;
    align-items: center;
    gap: 10px;

    border-bottom: 1px solid #e3eaf2;
}

.gestion-demand-filterbar input,
.gestion-demand-filterbar select {
    height: 38px;

    padding: 0 11px;

    border: 1px solid #cbd7e6;
    border-radius: 7px;

    background: #ffffff;
    color: #102a43;

    font-size: 12px;
}

.gestion-demand-filterbar input {
    width: 280px;
}

.gestion-demand-filterbar .gestion-list-count {
    margin-left: auto;
}

@media (max-width: 900px) {

    .gestion-demand-filterbar {
        flex-wrap: wrap;
    }

    .gestion-demand-filterbar input {
        width: 100%;
    }

    .gestion-demand-filterbar .gestion-list-count {
        margin-left: 0;
    }

}



/* =========================================================
   GestiON - Excluir demanda V1
   ========================================================= */

.gestion-delete-demand-form {
    display: inline-flex;
    margin: 0;
}

.gestion-delete-demand-button {
    min-height: 38px;

    padding: 0 14px;

    border: 1px solid #dc3545;
    border-radius: 7px;

    background: #ffffff;

    color: #c82333;

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

    cursor: pointer;

    transition:
        background .15s ease,
        color .15s ease;
}

.gestion-delete-demand-button:hover {
    background: #dc3545;
    color: #ffffff;
}



/* =========================================================
   GestiON Mobile / PWA V1
   ========================================================= */

.gestion-mobile-nav {
    display: none;
}


@media (max-width: 900px) {

    body.app-body {
        padding-bottom: 78px;
    }


    /* Desktop não aparece no mobile */

    .gestion-sidebar {
        display: none !important;
    }


    /* Remove espaço reservado da sidebar */

    .app-layout {
        display: block !important;
        width: 100% !important;
    }

    .app-layout > main,
    .gestion-main,
    .gestion-main-content,
    .main-content,
    .app-main {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
    }


    /* Conteúdo */

    .gestion-page {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }


    /* Barra inferior */

    .gestion-mobile-nav {
        position: fixed;

        left: 0;
        right: 0;
        bottom: 0;

        z-index: 1000;

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

        min-height: 68px;

        padding:
            6px
            max(8px, env(safe-area-inset-right))
            max(6px, env(safe-area-inset-bottom))
            max(8px, env(safe-area-inset-left));

        border-top: 1px solid #dbe3ec;

        background: rgba(255,255,255,.97);

        box-shadow:
            0 -5px 18px rgba(15, 23, 42, .08);
    }


    .gestion-mobile-nav a {
        min-width: 64px;

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

        gap: 2px;

        color: #64748b;

        text-decoration: none;
    }


    .gestion-mobile-nav a > span {
        font-size: 23px;
        line-height: 25px;
    }


    .gestion-mobile-nav small {
        font-size: 10px;
        font-weight: 600;
    }


    .gestion-mobile-nav a.active {
        color: #1565c0;
    }


    .gestion-mobile-new > span {
        width: 43px;
        height: 43px;

        margin-top: -22px;

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

        border-radius: 50%;

        background: #1565c0;
        color: #ffffff;

        box-shadow:
            0 5px 14px rgba(21, 101, 192, .28);
    }

}


/* =========================================================
   GestiON - Dashboard Mobile V1
   ========================================================= */

@media (max-width: 900px) {

    /* -----------------------------------------------------
       Topo
       ----------------------------------------------------- */

    .gestion-topbar,
    .topbar {
        min-height: auto !important;
        padding: 14px 16px !important;
    }

    .gestion-topbar h1,
    .topbar h1 {
        font-size: 20px !important;
    }

    /* Busca global não é necessária no mobile */
    .gestion-topbar-search,
    .gestion-header-search,
    .topbar-search {
        display: none !important;
    }

    /*
       Nova demanda fica somente na barra inferior.
       Evita duplicação no cabeçalho.
    */
    body a[href="/web/demands/new"]:not(.gestion-mobile-nav a) {
        display: none !important;
    }


    /* -----------------------------------------------------
       Indicadores
       ----------------------------------------------------- */

    .dashboard-stats,
    .dashboard-stats-five {
        display: grid !important;

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

        gap: 10px !important;

        width: 100% !important;
    }

    .dashboard-stat-card {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 100px !important;

        padding: 14px !important;
    }

    /*
       O quinto indicador ocupa a largura inteira.
       Fica mais equilibrado visualmente.
    */
    .dashboard-stat-card:nth-child(5) {
        grid-column: 1 / -1;
    }

    .dashboard-stat-layout {
        gap: 10px !important;
    }

    .dashboard-stat-icon {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
    }

    .dashboard-stat-content {
        min-width: 0 !important;
    }

    .dashboard-stat-content .stat-number {
        font-size: 23px !important;
    }

    .dashboard-stat-content .stat-label-main {
        font-size: 11px !important;
    }


    /* -----------------------------------------------------
       Blocos operacionais
       ----------------------------------------------------- */

    .dashboard-insights-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;

        gap: 12px !important;

        width: 100% !important;

        margin-top: 14px !important;
    }

    .dashboard-insight-card {
        width: 100% !important;
        min-width: 0 !important;

        height: auto !important;
        min-height: 0 !important;
    }

    /*
       Demandas por setor é gerencial.
       Não aparece na experiência mobile.
    */
    .dashboard-insights-grid
    > .dashboard-insight-card:first-child {
        display: none !important;
    }

    .dashboard-insight-header {
        padding: 15px !important;
    }

    .dashboard-insight-header h2 {
        font-size: 15px !important;
    }

    .upcoming-demand-list,
    .my-task-list {
        width: 100% !important;
    }

    .upcoming-demand-row,
    .my-task-row {
        width: 100% !important;

        padding: 13px 15px !important;

        gap: 10px !important;
    }

    .upcoming-demand-info,
    .my-task-info {
        min-width: 0 !important;
        flex: 1 !important;
    }

    .upcoming-demand-info strong,
    .my-task-info strong {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }


    /* -----------------------------------------------------
       Demandas recentes
       -----------------------------------------------------

       No mobile a lista completa fica no menu Demandas.
       Evita tabela desktop comprimida na Home.
    */

    .dashboard-panel {
        display: none !important;
    }

}


@media (max-width: 430px) {

    .dashboard-stat-card {
        min-height: 94px !important;
        padding: 12px !important;
    }

    .dashboard-stat-icon {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
    }

}


/* =========================================================
   GestiON - Demandas Mobile V1
   ========================================================= */

.gestion-demand-mobile-list {
    display: none;
}


@media (max-width: 900px) {

    /* Tabela desktop desaparece */

    .gestion-table-wrapper {
        display: none !important;
    }


    /* Lista mobile */

    .gestion-demand-mobile-list {
        display: flex;

        flex-direction: column;

        gap: 12px;

        padding: 12px;
    }


    .gestion-demand-mobile-card {
        width: 100%;

        padding: 16px;

        border:
            1px solid
            #dce4ee;

        border-radius: 12px;

        background: #ffffff;

        box-shadow:
            0 1px 3px
            rgba(15, 23, 42, .04);
    }


    .gestion-mobile-demand-top {
        display: flex;

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

        gap: 12px;

        margin-bottom: 10px;
    }


    .gestion-mobile-demand-id {
        color: #718096;

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


    .gestion-mobile-demand-title {
        display: block;

        margin-bottom: 5px;

        color: #14263e;

        font-size: 16px;
        font-weight: 750;

        line-height: 1.3;

        text-decoration: none;
    }


    .gestion-mobile-demand-description {
        margin-bottom: 14px;

        color: #758397;

        font-size: 12px;
        line-height: 1.45;
    }


    .gestion-mobile-demand-info {
        display: grid;

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

        gap: 12px;

        padding: 11px 0;

        border-top:
            1px solid
            #edf1f5;
    }


    .gestion-mobile-demand-info > div {
        min-width: 0;
    }


    .gestion-mobile-demand-info
    > div
    > span:first-child {
        display: block;

        margin-bottom: 4px;

        color: #8995a5;

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

        text-transform: uppercase;

        letter-spacing: .03em;
    }


    .gestion-mobile-demand-info strong {
        display: block;

        overflow: hidden;

        color: #314158;

        font-size: 12px;
        font-weight: 650;

        text-overflow: ellipsis;
        white-space: nowrap;
    }


    .gestion-mobile-demand-footer {
        display: flex;

        justify-content: flex-end;

        padding-top: 12px;

        border-top:
            1px solid
            #edf1f5;
    }


    .gestion-mobile-demand-open {
        color: #1565c0;

        font-size: 12px;
        font-weight: 750;

        text-decoration: none;
    }


    .gestion-mobile-demand-empty {
        padding: 30px 15px;

        color: #8290a3;

        text-align: center;
    }


    /* Filtros mobile */

    .gestion-demand-filterbar {
        display: grid !important;

        grid-template-columns:
            1fr 1fr;

        gap: 8px !important;

        padding: 12px !important;
    }


    .gestion-demand-filterbar input {
        grid-column:
            1 / -1;

        width: 100% !important;
    }


    .gestion-demand-filterbar select {
        width: 100%;
        min-width: 0;
    }


    .gestion-demand-filterbar
    .gestion-secondary-button {
        width: 100%;
    }


    .gestion-demand-filterbar
    .gestion-list-count {
        display: flex;

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

        margin-left: 0 !important;

        color: #758397;

        font-size: 11px;
    }

}


@media (max-width: 420px) {

    .gestion-mobile-demand-info {
        gap: 8px;
    }

}


/* =========================================================
   GestiON - Detalhe da Demanda Mobile V1
   ========================================================= */

@media (max-width: 900px) {

    /* -----------------------------------------------------
       Cabeçalho da demanda
       ----------------------------------------------------- */

    .gestion-page-heading {
        display: flex !important;
        flex-direction: column !important;

        align-items: stretch !important;

        gap: 14px !important;
    }


    .gestion-page-heading h2 {
        font-size: 23px !important;
        line-height: 1.25 !important;
    }


    .gestion-detail-eyebrow {
        margin-bottom: 5px !important;

        font-size: 11px !important;
    }


    .gestion-page-heading > div:first-child > p {
        display: none !important;
    }


    /* -----------------------------------------------------
       Ações do topo
       ----------------------------------------------------- */

    .gestion-page-heading-actions {
        display: grid !important;

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

        gap: 8px !important;

        width: 100% !important;
    }


    .gestion-page-heading-actions > a,
    .gestion-page-heading-actions > form {
        width: 100% !important;
        margin: 0 !important;
    }


    .gestion-page-heading-actions button,
    .gestion-page-heading-actions a {
        min-height: 42px !important;

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

        width: 100% !important;

        padding: 0 12px !important;

        text-align: center !important;
    }


    /* -----------------------------------------------------
       Layout principal
       ----------------------------------------------------- */

    .gestion-detail-layout {
        display: flex !important;
        flex-direction: column !important;

        gap: 14px !important;

        width: 100% !important;
    }


    /*
       No mobile as informações operacionais
       aparecem antes do conteúdo/histórico.
    */

    .gestion-detail-sidebar {
        display: flex !important;

        flex-direction: column !important;

        gap: 12px !important;

        width: 100% !important;

        order: -1;
    }


    /*
       Informações antes de Alterar Status.
       No HTML Status é o primeiro card
       e Informações é o segundo.
    */

    .gestion-detail-sidebar
    > .gestion-detail-card:nth-child(2) {
        order: -1;
    }


    .gestion-detail-main {
        width: 100% !important;

        display: flex !important;
        flex-direction: column !important;

        gap: 12px !important;
    }


    /* -----------------------------------------------------
       Cards
       ----------------------------------------------------- */

    .gestion-detail-card {
        width: 100% !important;

        margin: 0 !important;

        border-radius: 12px !important;
    }


    .gestion-detail-card-header {
        min-height: 54px !important;

        padding: 14px 16px !important;
    }


    .gestion-detail-card-header h3 {
        font-size: 15px !important;
    }


    .gestion-detail-card-body {
        padding: 15px !important;
    }


    /* -----------------------------------------------------
       Informações principais
       ----------------------------------------------------- */

    .gestion-detail-fields {
        display: grid !important;

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

        gap: 0 !important;
    }


    .gestion-detail-field {
        display: block !important;

        min-width: 0 !important;

        padding: 12px 8px !important;

        border-bottom:
            1px solid #edf1f5 !important;
    }


    .gestion-detail-field > span {
        display: block !important;

        margin-bottom: 5px !important;

        color: #8794a5 !important;

        font-size: 10px !important;
        font-weight: 650 !important;

        text-transform: uppercase;

        letter-spacing: .03em;
    }


    .gestion-detail-field strong {
        display: block !important;

        overflow: hidden;

        font-size: 13px !important;

        text-overflow: ellipsis;
        white-space: nowrap;
    }


    /* -----------------------------------------------------
       Alterar status
       ----------------------------------------------------- */

    .gestion-status-form {
        display: flex !important;
        flex-direction: column !important;

        gap: 9px !important;
    }


    .gestion-status-form select {
        width: 100% !important;
        min-height: 46px !important;

        font-size: 14px !important;
    }


    .gestion-status-button {
        width: 100% !important;
        min-height: 46px !important;
    }


    .gestion-cancel-demand-form {
        width: 100% !important;
    }


    .gestion-cancel-demand-button {
        width: 100% !important;
        min-height: 44px !important;
    }


    /* -----------------------------------------------------
       Comentário
       ----------------------------------------------------- */

    .gestion-comment-form textarea {
        width: 100% !important;

        min-height: 115px !important;

        font-size: 14px !important;

        resize: vertical;
    }


    .gestion-comment-footer {
        display: flex !important;
        flex-direction: column !important;

        align-items: stretch !important;

        gap: 10px !important;
    }


    .gestion-comment-footer > span {
        font-size: 11px !important;
    }


    .gestion-comment-footer button {
        width: 100% !important;
        min-height: 46px !important;
    }


    /* -----------------------------------------------------
       Histórico
       ----------------------------------------------------- */

    .gestion-timeline-item {
        gap: 10px !important;
    }


    .gestion-timeline-content {
        min-width: 0 !important;
    }


    .gestion-timeline-top {
        display: flex !important;

        flex-direction: column !important;

        align-items: flex-start !important;

        gap: 3px !important;
    }


    .gestion-timeline-top span {
        font-size: 10px !important;
    }


    .gestion-timeline-content p {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }


    /* -----------------------------------------------------
       Arquivos
       ----------------------------------------------------- */

    .gestion-attachment-upload-main {
        display: flex !important;

        flex-direction: column !important;

        align-items: stretch !important;

        gap: 10px !important;
    }


    .gestion-attachment-file {
        width: 100% !important;
    }


    .gestion-attachment-button {
        width: 100% !important;

        min-height: 44px !important;
    }


    .gestion-attachment-item {
        display: grid !important;

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

        gap: 10px !important;
    }


    .gestion-attachment-download {
        grid-column: 1 / -1;

        width: 100% !important;

        margin: 0 !important;

        text-align: center !important;
    }


    .gestion-attachment-info {
        min-width: 0 !important;
    }


    .gestion-attachment-info strong {
        overflow-wrap: anywhere;
    }

}


@media (max-width: 430px) {

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


    .gestion-page-heading-actions {
        grid-template-columns:
            1fr 1fr;
    }

}


/* =========================================================
   GestiON - Nova Demanda Mobile V1
   ========================================================= */

@media (max-width: 900px) {

    /* -----------------------------------------------------
       Card do formulário
       ----------------------------------------------------- */

    .gestion-form-card {
        width: 100% !important;

        margin: 0 !important;

        border-radius: 12px !important;
    }


    .gestion-demand-form {
        width: 100% !important;
    }


    .gestion-form-section {
        padding: 0 !important;
    }


    .gestion-form-section-header {
        padding: 16px !important;
    }


    .gestion-form-section-header h3 {
        font-size: 16px !important;
    }


    .gestion-form-section-header p {
        margin-top: 4px !important;

        font-size: 12px !important;
    }


    /* -----------------------------------------------------
       Campos em uma coluna
       ----------------------------------------------------- */

    .gestion-form-grid {
        display: grid !important;

        grid-template-columns:
            1fr !important;

        gap: 14px !important;

        padding: 16px !important;
    }


    .gestion-field,
    .gestion-field-full {
        grid-column: 1 !important;

        width: 100% !important;
        min-width: 0 !important;
    }


    .gestion-field label {
        display: block !important;

        margin-bottom: 6px !important;

        font-size: 12px !important;
        font-weight: 650 !important;
    }


    .gestion-field input,
    .gestion-field select,
    .gestion-field textarea {
        width: 100% !important;

        min-height: 48px !important;

        padding: 11px 12px !important;

        border-radius: 9px !important;

        font-size: 16px !important;
    }


    /*
       16px evita o zoom automático
       em alguns navegadores móveis.
    */

    .gestion-field textarea {
        min-height: 120px !important;

        line-height: 1.45 !important;

        resize: vertical;
    }


    .gestion-field small {
        display: block;

        margin-top: 5px !important;

        font-size: 10px !important;
        line-height: 1.4 !important;
    }


    /* -----------------------------------------------------
       Ações
       ----------------------------------------------------- */

    .gestion-form-actions {
        display: grid !important;

        grid-template-columns:
            1fr 1fr !important;

        gap: 10px !important;

        padding: 16px !important;

        border-top:
            1px solid #e7edf4;
    }


    .gestion-form-actions a,
    .gestion-form-actions button {
        width: 100% !important;

        min-height: 48px !important;

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

        margin: 0 !important;
    }


    /* -----------------------------------------------------
       Cabeçalho da tela
       ----------------------------------------------------- */

    .gestion-page-heading
    > .gestion-secondary-button {
        width: 100% !important;

        min-height: 44px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

}


@media (max-width: 430px) {

    .gestion-form-actions {
        grid-template-columns:
            1fr !important;
    }


    /*
       Criar demanda aparece primeiro
       visualmente no celular.
    */

    .gestion-form-actions
    .gestion-primary-button {
        order: -1;
    }

}


/* =========================================================
   GestiON - Menu do usuário mobile
   ========================================================= */

.gestion-mobile-user-menu {
    display: none;
}


@media (max-width: 900px) {

    .gestion-mobile-user-menu {
        position: absolute;

        top: 18px;
        right: 16px;

        z-index: 1200;

        display: block;
    }


    .gestion-mobile-user-button {
        width: 40px;
        height: 40px;

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

        border: 0;
        border-radius: 50%;

        background: #1565c0;
        color: #ffffff;

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

        cursor: pointer;
    }


    .gestion-mobile-user-dropdown {
        position: absolute;

        top: 48px;
        right: 0;

        width: 210px;

        display: none;

        overflow: hidden;

        border:
            1px solid
            #dce4ee;

        border-radius: 10px;

        background: #ffffff;

        box-shadow:
            0 12px 30px
            rgba(15, 23, 42, .15);
    }


    .gestion-mobile-user-dropdown.is-open {
        display: block;
    }


    .gestion-mobile-user-info {
        padding: 14px;

        border-bottom:
            1px solid
            #edf1f5;
    }


    .gestion-mobile-user-info strong {
        display: block;

        color: #14263e;

        font-size: 13px;
    }


    .gestion-mobile-user-info span {
        display: block;

        margin-top: 3px;

        color: #7b899b;

        font-size: 11px;
    }


    .gestion-mobile-logout {
        display: block;

        padding: 13px 14px;

        color: #c82333;

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

        text-decoration: none;
    }

}


/* =========================================================
   GestiON - Theme V1
   ========================================================= */

html {
    color-scheme: light;
}

html[data-theme="dark"] {
    color-scheme: dark;
}


/* ---------------------------------------------------------
   Controle de tema - desktop
   --------------------------------------------------------- */

.gestion-theme-control {
    margin-bottom: 12px;
}

.gestion-theme-control > span {
    display: block;

    margin-bottom: 5px;

    color: #91a2b8;

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

    text-transform: uppercase;
    letter-spacing: .04em;
}

.gestion-theme-control select {
    width: 100%;
    height: 35px;

    padding: 0 8px;

    border: 1px solid #29405a;
    border-radius: 7px;

    background: #102b48;
    color: #e5edf7;

    font-size: 11px;

    outline: none;
}


/* ---------------------------------------------------------
   Controle mobile
   --------------------------------------------------------- */

.gestion-mobile-theme {
    padding: 11px 14px;

    border-bottom:
        1px solid #edf1f5;
}

.gestion-mobile-theme > span {
    display: block;

    margin-bottom: 6px;

    color: #7b899b;

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

    text-transform: uppercase;
}

.gestion-mobile-theme select {
    width: 100%;
    height: 36px;

    padding: 0 8px;

    border:
        1px solid #d7e0ea;

    border-radius: 7px;

    background: #ffffff;
    color: #24364e;

    font-size: 12px;
}


/* =========================================================
   DARK MODE
   ========================================================= */

html[data-theme="dark"] {

    --bg: #0f172a;
    --surface: #111827;

    --sidebar: #071524;
    --sidebar-hover: #13243a;

    --primary: #2f7df4;
    --primary-soft: #132b4e;

    --text: #edf3fb;
    --text-soft: #94a3b8;

    --border: #263449;

    --success: #31c66b;
    --warning: #f0a338;
    --danger: #f05a67;
}


/* ---------------------------------------------------------
   Base
   --------------------------------------------------------- */

html[data-theme="dark"] body,
html[data-theme="dark"] .app-body {
    background: #0f172a !important;
    color: #e8eef6 !important;
}


html[data-theme="dark"] .gestion-main,
html[data-theme="dark"] .main-content,
html[data-theme="dark"] .app-main,
html[data-theme="dark"] .gestion-page {
    background: #0f172a !important;
}


/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

html[data-theme="dark"] .gestion-header,
html[data-theme="dark"] .gestion-topbar,
html[data-theme="dark"] .topbar {
    background: #111827 !important;

    border-color:
        #263449 !important;
}


html[data-theme="dark"] .gestion-header h1,
html[data-theme="dark"] .gestion-header h2,
html[data-theme="dark"] .gestion-page h1,
html[data-theme="dark"] .gestion-page h2,
html[data-theme="dark"] .gestion-page h3,
html[data-theme="dark"] .topbar h1 {
    color: #edf3fb !important;
}


html[data-theme="dark"] .gestion-header p,
html[data-theme="dark"] .gestion-page-heading p,
html[data-theme="dark"] .topbar p {
    color: #94a3b8 !important;
}


/* ---------------------------------------------------------
   Inputs / selects / textarea
   --------------------------------------------------------- */

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    background: #111827 !important;

    border-color:
        #334155 !important;

    color: #e8eef6 !important;
}


html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: #718096 !important;
}


html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus {
    border-color:
        #3b82f6 !important;

    box-shadow:
        0 0 0 3px
        rgba(
            59,
            130,
            246,
            .15
        ) !important;
}


/* ---------------------------------------------------------
   Cards gerais
   --------------------------------------------------------- */

html[data-theme="dark"] .card,
html[data-theme="dark"] .gestion-list-card,
html[data-theme="dark"] .gestion-form-card,
html[data-theme="dark"] .gestion-detail-card,
html[data-theme="dark"] .dashboard-stat-card,
html[data-theme="dark"] .dashboard-insight-card,
html[data-theme="dark"] .dashboard-panel,
html[data-theme="dark"] .gestion-demand-mobile-card,
html[data-theme="dark"] .gestion-report-card,
html[data-theme="dark"] .gestion-settings-card,
html[data-theme="dark"] .gestion-files-card {
    background: #111827 !important;

    border-color:
        #263449 !important;

    color: #e8eef6 !important;

    box-shadow:
        0 1px 3px
        rgba(0, 0, 0, .25) !important;
}


/* ---------------------------------------------------------
   Dashboard
   --------------------------------------------------------- */

html[data-theme="dark"] .stat-number,
html[data-theme="dark"] .stat-label-main,
html[data-theme="dark"] .dashboard-insight-header h2,
html[data-theme="dark"] .upcoming-demand-info strong,
html[data-theme="dark"] .my-task-info strong {
    color: #e8eef6 !important;
}


html[data-theme="dark"] .upcoming-demand-info span,
html[data-theme="dark"] .my-task-info span {
    color: #94a3b8 !important;
}


/* ---------------------------------------------------------
   Demandas
   --------------------------------------------------------- */

html[data-theme="dark"] .gestion-data-table,
html[data-theme="dark"] .gestion-data-table thead,
html[data-theme="dark"] .gestion-data-table tbody,
html[data-theme="dark"] .gestion-data-table tr,
html[data-theme="dark"] .gestion-data-table td,
html[data-theme="dark"] .gestion-data-table th {
    background: #111827 !important;

    border-color:
        #263449 !important;
}


html[data-theme="dark"] .gestion-data-table th {
    color: #94a3b8 !important;
}


html[data-theme="dark"] .gestion-data-table td,
html[data-theme="dark"] .gestion-demand-link,
html[data-theme="dark"] .gestion-demand-title,
html[data-theme="dark"] .gestion-mobile-demand-title {
    color: #e7edf6 !important;
}


html[data-theme="dark"] .gestion-demand-title span,
html[data-theme="dark"] .gestion-mobile-demand-description {
    color: #8e9caf !important;
}


html[data-theme="dark"] .gestion-mobile-demand-info {
    border-color:
        #253349 !important;
}


html[data-theme="dark"] .gestion-mobile-demand-info
> div
> span:first-child {
    color: #8391a5 !important;
}


html[data-theme="dark"] .gestion-mobile-demand-info strong {
    color: #d8e1ec !important;
}


/* ---------------------------------------------------------
   Detalhe da demanda
   --------------------------------------------------------- */

html[data-theme="dark"] .gestion-detail-card-header {
    border-color:
        #263449 !important;
}


html[data-theme="dark"] .gestion-detail-description,
html[data-theme="dark"] .gestion-detail-field strong,
html[data-theme="dark"] .gestion-timeline-content strong,
html[data-theme="dark"] .gestion-timeline-content p {
    color: #dfe7f2 !important;
}


html[data-theme="dark"] .gestion-detail-field {
    border-color:
        #263449 !important;

    background: transparent !important;
}


html[data-theme="dark"] .gestion-detail-field > span,
html[data-theme="dark"] .gestion-timeline-top span {
    color: #8391a5 !important;
}


html[data-theme="dark"] .gestion-attachment-item {
    border-color:
        #263449 !important;

    background: #101923 !important;
}


html[data-theme="dark"] .gestion-attachment-info strong {
    color: #e5edf7 !important;
}


html[data-theme="dark"] .gestion-attachment-info span,
html[data-theme="dark"] .gestion-attachment-help {
    color: #94a3b8 !important;
}


/* ---------------------------------------------------------
   Formulários
   --------------------------------------------------------- */

html[data-theme="dark"] .gestion-form-section-header {
    border-color:
        #263449 !important;
}


html[data-theme="dark"] .gestion-form-section-header h3,
html[data-theme="dark"] .gestion-field label {
    color: #e5edf7 !important;
}


html[data-theme="dark"] .gestion-form-section-header p,
html[data-theme="dark"] .gestion-field small {
    color: #8d9bad !important;
}


html[data-theme="dark"] .gestion-form-actions {
    border-color:
        #263449 !important;
}


/* ---------------------------------------------------------
   Botões secundários
   --------------------------------------------------------- */

html[data-theme="dark"] .gestion-secondary-button {
    background: #111827 !important;

    border-color:
        #334155 !important;

    color: #d8e1ec !important;
}


html[data-theme="dark"] .gestion-secondary-button:hover {
    background: #192337 !important;
}


/* ---------------------------------------------------------
   Mobile navigation
   --------------------------------------------------------- */

html[data-theme="dark"] .gestion-mobile-nav {
    background:
        rgba(
            15,
            23,
            42,
            .98
        ) !important;

    border-color:
        #263449 !important;

    box-shadow:
        0 -5px 18px
        rgba(0, 0, 0, .30) !important;
}


html[data-theme="dark"] .gestion-mobile-nav a {
    color: #94a3b8 !important;
}


html[data-theme="dark"] .gestion-mobile-nav a.active {
    color: #60a5fa !important;
}


html[data-theme="dark"] .gestion-mobile-new > span {
    background: #2f7df4 !important;

    color: #ffffff !important;
}


/* ---------------------------------------------------------
   Mobile user menu
   --------------------------------------------------------- */

html[data-theme="dark"] .gestion-mobile-user-dropdown {
    background: #111827 !important;

    border-color:
        #334155 !important;

    box-shadow:
        0 12px 30px
        rgba(0, 0, 0, .40) !important;
}


html[data-theme="dark"] .gestion-mobile-user-info,
html[data-theme="dark"] .gestion-mobile-theme {
    border-color:
        #263449 !important;
}


html[data-theme="dark"] .gestion-mobile-user-info strong {
    color: #e8eef6 !important;
}


html[data-theme="dark"] .gestion-mobile-user-info span,
html[data-theme="dark"] .gestion-mobile-theme > span {
    color: #94a3b8 !important;
}


html[data-theme="dark"] .gestion-mobile-theme select {
    background: #0f172a !important;

    border-color:
        #334155 !important;

    color: #e8eef6 !important;
}


/* ---------------------------------------------------------
   Mensagens / elementos suaves
   --------------------------------------------------------- */

html[data-theme="dark"] .gestion-muted {
    color: #8391a5 !important;
}


html[data-theme="dark"] hr,
html[data-theme="dark"] .gestion-danger-divider {
    border-color:
        #263449 !important;
}


/* ---------------------------------------------------------
   Scrollbar
   --------------------------------------------------------- */

html[data-theme="dark"] {
    scrollbar-color:
        #475569
        #0f172a;
}

/* =========================================================
   DASHBOARD DARK MODE - AJUSTE DE CONTRASTE
   ========================================================= */

body.theme-dark .gestion-main,
body.theme-dark .gestion-main * {
    border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .gestion-header-welcome h1,
body.theme-dark .gestion-page-header h1,
body.theme-dark .gestion-card-title,
body.theme-dark .gestion-section-title,
body.theme-dark .gestion-widget-title,
body.theme-dark .gestion-table-title {
    color: #f8fafc !important;
}

body.theme-dark .gestion-header-welcome p,
body.theme-dark .gestion-page-header p,
body.theme-dark .gestion-card-subtitle,
body.theme-dark .gestion-section-subtitle,
body.theme-dark .gestion-widget-subtitle,
body.theme-dark .gestion-table-subtitle,
body.theme-dark .gestion-empty-state,
body.theme-dark .gestion-muted,
body.theme-dark .gestion-text-muted {
    color: #cbd5e1 !important;
}

body.theme-dark .gestion-stat-value,
body.theme-dark .gestion-kpi-value,
body.theme-dark .gestion-card-value,
body.theme-dark .gestion-dashboard-card strong,
body.theme-dark .gestion-dashboard-card h3 {
    color: #ffffff !important;
}

body.theme-dark .gestion-table thead th {
    color: #cbd5e1 !important;
    background: rgba(255, 255, 255, 0.04);
}

body.theme-dark .gestion-table tbody td,
body.theme-dark .gestion-table tbody td a,
body.theme-dark .gestion-table tbody td span {
    color: #e5e7eb !important;
}

body.theme-dark .gestion-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

body.theme-dark .gestion-dashboard-card,
body.theme-dark .gestion-widget,
body.theme-dark .gestion-panel,
body.theme-dark .gestion-table-wrapper {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

body.theme-dark .gestion-dashboard-card p,
body.theme-dark .gestion-widget p,
body.theme-dark .gestion-panel p,
body.theme-dark .gestion-list-item small,
body.theme-dark .gestion-list-item span:not(.badge):not(.status):not(.priority) {
    color: #cbd5e1 !important;
}

body.theme-dark .gestion-dashboard-card .label,
body.theme-dark .gestion-dashboard-card .description,
body.theme-dark .gestion-widget .description,
body.theme-dark .gestion-panel .description {
    color: #94a3b8 !important;
}

body.theme-dark .gestion-link,
body.theme-dark a {
    color: #60a5fa;
}

body.theme-dark .gestion-link:hover,
body.theme-dark a:hover {
    color: #93c5fd;
}


/* =========================================================
   GestiON - DARK MODE V2
   Cobertura global dos módulos administrativos
   ========================================================= */


/* ---------------------------------------------------------
   SUPERFÍCIES / CARDS / PAINÉIS
   --------------------------------------------------------- */

html[data-theme="dark"] .gestion-main :where(
    section,
    article,
    .card,
    [class$="-card"],
    [class$="-panel"],
    [class$="-summary"],
    [class$="-filters"],
    [class$="-filterbar"],
    [class$="-table-wrapper"],
    [class$="-table-card"],
    [class$="-form-card"]
) {
    border-color: #2b3a50;
}


/*
   Cards administrativos que ainda usam fundo branco
*/

html[data-theme="dark"] :where(
    .gestion-project-stat,
    .gestion-project-kpi,
    .gestion-sector-stat,
    .gestion-sector-kpi,
    .gestion-team-stat,
    .gestion-team-kpi,
    .gestion-user-stat,
    .gestion-user-kpi,
    .gestion-report-kpi,
    .gestion-files-kpi,
    .gestion-settings-kpi
) {
    background: #111827 !important;
    border-color: #2b3a50 !important;
    color: #f1f5f9 !important;
}


/* ---------------------------------------------------------
   TÍTULOS E TEXTOS
   --------------------------------------------------------- */

html[data-theme="dark"] .gestion-main :where(
    h1,
    h2,
    h3,
    h4,
    h5,
    strong
) {
    color: #f1f5f9;
}


html[data-theme="dark"] .gestion-main :where(
    p,
    small,
    label
) {
    color: #b6c2d1;
}


/*
   Textos secundários e descrições
*/

html[data-theme="dark"] :where(
    .gestion-muted,
    [class$="-subtitle"],
    [class$="-description"],
    [class$="-help"],
    [class$="-empty"]
) {
    color: #a8b5c6 !important;
}


/* ---------------------------------------------------------
   TABELAS
   --------------------------------------------------------- */

html[data-theme="dark"] .gestion-main table {
    background: #111827 !important;
    color: #e7edf5 !important;
}


html[data-theme="dark"] .gestion-main thead,
html[data-theme="dark"] .gestion-main thead tr,
html[data-theme="dark"] .gestion-main thead th {
    background: #172033 !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}


html[data-theme="dark"] .gestion-main tbody,
html[data-theme="dark"] .gestion-main tbody tr,
html[data-theme="dark"] .gestion-main tbody td {
    background: #111827 !important;
    color: #dce5ef !important;
    border-color: #2b3a50 !important;
}


html[data-theme="dark"] .gestion-main tbody tr:hover td {
    background: #172033 !important;
}


/*
   Links nas tabelas
*/

html[data-theme="dark"] .gestion-main table a:not(.status-badge):not(.priority-badge) {
    color: #60a5fa !important;
}


/* ---------------------------------------------------------
   KPI / CONTADORES
   --------------------------------------------------------- */

html[data-theme="dark"] :where(
    .gestion-project-stat,
    .gestion-project-kpi,
    .gestion-sector-stat,
    .gestion-sector-kpi,
    .gestion-team-stat,
    .gestion-team-kpi,
    .gestion-user-stat,
    .gestion-user-kpi,
    .gestion-report-kpi,
    .gestion-files-kpi,
    .gestion-settings-kpi
) :where(
    strong,
    h2,
    h3
) {
    color: #ffffff !important;
}


html[data-theme="dark"] :where(
    .gestion-project-stat,
    .gestion-project-kpi,
    .gestion-sector-stat,
    .gestion-sector-kpi,
    .gestion-team-stat,
    .gestion-team-kpi,
    .gestion-user-stat,
    .gestion-user-kpi,
    .gestion-report-kpi,
    .gestion-files-kpi,
    .gestion-settings-kpi
) :where(
    span,
    small,
    p
) {
    color: #aab7c7 !important;
}


/* ---------------------------------------------------------
   PROJETOS
   --------------------------------------------------------- */

html[data-theme="dark"] :where(
    .gestion-projects-table,
    .gestion-project-table,
    .gestion-project-list,
    .gestion-project-card
) {
    background: #111827 !important;
    border-color: #2b3a50 !important;
}


html[data-theme="dark"] :where(
    .gestion-project-name,
    .gestion-project-title
) {
    color: #f1f5f9 !important;
}


/* ---------------------------------------------------------
   SETORES
   --------------------------------------------------------- */

html[data-theme="dark"] :where(
    .gestion-sector-layout,
    .gestion-sector-list,
    .gestion-sector-card,
    .gestion-sector-form,
    .gestion-sector-edit-summary
) {
    background: #111827 !important;
    border-color: #2b3a50 !important;
}


/* ---------------------------------------------------------
   EQUIPES
   --------------------------------------------------------- */

html[data-theme="dark"] :where(
    .gestion-team-layout,
    .gestion-team-list,
    .gestion-team-card,
    .gestion-team-form
) {
    background: #111827 !important;
    border-color: #2b3a50 !important;
}


/* ---------------------------------------------------------
   COLABORADORES
   --------------------------------------------------------- */

html[data-theme="dark"] :where(
    .gestion-users-card,
    .gestion-user-card,
    .gestion-user-list,
    .gestion-users-list,
    .gestion-user-form,
    .gestion-user-summary
) {
    background: #111827 !important;
    border-color: #2b3a50 !important;
}


/* ---------------------------------------------------------
   RELATÓRIOS
   --------------------------------------------------------- */

html[data-theme="dark"] :where(
    .gestion-report-card,
    .gestion-report-filters,
    .gestion-report-summary,
    .gestion-report-summary-grid,
    .gestion-report-chart,
    .gestion-report-table
) {
    background: #111827 !important;
    border-color: #2b3a50 !important;
}


html[data-theme="dark"] .gestion-report-kpi {
    background: #111827 !important;
}


/* Alguns KPIs possuem fundo de alerta */

html[data-theme="dark"] .gestion-report-kpi.is-danger {
    background: #21171d !important;
    border-color: #5f2b36 !important;
}


/* ---------------------------------------------------------
   ARQUIVOS
   --------------------------------------------------------- */

html[data-theme="dark"] :where(
    .gestion-files-summary,
    .gestion-files-filters,
    .gestion-files-list,
    .gestion-files-card,
    .gestion-files-table
) {
    background: #111827 !important;
    border-color: #2b3a50 !important;
}


/* ---------------------------------------------------------
   CONFIGURAÇÕES
   --------------------------------------------------------- */

html[data-theme="dark"] :where(
    .gestion-settings-card,
    .gestion-settings-grid,
    .gestion-settings-panel,
    .gestion-settings-section,
    .gestion-settings-summary
) {
    background: #111827 !important;
    border-color: #2b3a50 !important;
}


html[data-theme="dark"] .gestion-settings-card :where(
    span,
    p,
    small
) {
    color: #aab7c7 !important;
}


html[data-theme="dark"] .gestion-settings-card :where(
    strong,
    h2,
    h3
) {
    color: #f1f5f9 !important;
}


/* ---------------------------------------------------------
   MINHAS TAREFAS
   --------------------------------------------------------- */

html[data-theme="dark"] :where(
    .gestion-tasks-card,
    .gestion-task-card,
    .gestion-task-list,
    .gestion-my-tasks-card
) {
    background: #111827 !important;
    border-color: #2b3a50 !important;
}


html[data-theme="dark"] :where(
    .gestion-task-empty,
    .gestion-tasks-empty
) {
    color: #a8b5c6 !important;
}


/* ---------------------------------------------------------
   FORMULÁRIOS
   --------------------------------------------------------- */

html[data-theme="dark"] .gestion-main :where(
    input,
    select,
    textarea
) {
    background: #0f172a !important;
    border-color: #3a4a61 !important;
    color: #e8eef6 !important;
}


html[data-theme="dark"] .gestion-main :where(
    input,
    textarea
)::placeholder {
    color: #7f8da1 !important;
}


/* ---------------------------------------------------------
   BLOCOS DE INFORMAÇÃO / AVISOS CLAROS
   --------------------------------------------------------- */

html[data-theme="dark"] :where(
    .gestion-info-box,
    .gestion-security-box,
    .gestion-settings-note,
    .gestion-form-note
) {
    background: #172033 !important;
    border-color: #334155 !important;
    color: #dce5ef !important;
}


/* ---------------------------------------------------------
   BOTÕES BRANCOS
   --------------------------------------------------------- */

html[data-theme="dark"] .gestion-main :where(
    .gestion-secondary-button,
    .gestion-edit-button
) {
    background: #172033 !important;
    border-color: #3b4d66 !important;
    color: #dce5ef !important;
}


html[data-theme="dark"] .gestion-main :where(
    .gestion-secondary-button,
    .gestion-edit-button
):hover {
    background: #213049 !important;
}


/* ---------------------------------------------------------
   LINKS SECUNDÁRIOS
   --------------------------------------------------------- */

html[data-theme="dark"] .gestion-main a:not(
    .gestion-primary-button
):not(
    .gestion-menu-item
):not(
    .status-badge
):not(
    .priority-badge
) {
    color: #60a5fa;
}


/* ---------------------------------------------------------
   BORDAS
   --------------------------------------------------------- */

html[data-theme="dark"] .gestion-main :where(
    hr,
    [class$="-divider"]
) {
    border-color: #334155 !important;
}


/* ---------------------------------------------------------
   CONTRASTE DO DASHBOARD
   --------------------------------------------------------- */

html[data-theme="dark"] .dashboard-insight-card {
    background: #111827 !important;
}


html[data-theme="dark"] .dashboard-insight-header h2 {
    color: #f8fafc !important;
}


html[data-theme="dark"] :where(
    .sector-demand-name,
    .upcoming-demand-info span,
    .my-task-info span
) {
    color: #b7c3d3 !important;
}


html[data-theme="dark"] :where(
    .upcoming-demand-info strong,
    .my-task-info strong
) {
    color: #f1f5f9 !important;
}


/* ---------------------------------------------------------
   PAINÉIS QUE POSSUEM BACKGROUND FIXO
   --------------------------------------------------------- */

html[data-theme="dark"] .gestion-main [style*="background: #fff"],
html[data-theme="dark"] .gestion-main [style*="background:#fff"],
html[data-theme="dark"] .gestion-main [style*="background: white"] {
    background: #111827 !important;
}


/* ---------------------------------------------------------
   FIM DARK MODE V2
   --------------------------------------------------------- */



/* =========================================================
   GestiON - DARK MODE V3
   Ajustes específicos por módulo
   ========================================================= */


/* =========================================================
   CALENDÁRIO
   ========================================================= */

html[data-theme="dark"] .gestion-calendar-stat,
html[data-theme="dark"] .gestion-calendar-card,
html[data-theme="dark"] .gestion-calendar-side {
    background: #111827 !important;
    border-color: #2b3a50 !important;
    color: #e8eef6 !important;
}


html[data-theme="dark"] .gestion-calendar-header,
html[data-theme="dark"] .gestion-calendar-side-header {
    background: #111827 !important;
    border-color: #2b3a50 !important;
}


html[data-theme="dark"] .gestion-calendar-header h2,
html[data-theme="dark"] .gestion-calendar-side-header h3,
html[data-theme="dark"] .gestion-calendar-selected-title {
    color: #f8fafc !important;
}


html[data-theme="dark"] .gestion-calendar-header p,
html[data-theme="dark"] .gestion-calendar-selected-meta,
html[data-theme="dark"] .gestion-calendar-selected-labels,
html[data-theme="dark"] .gestion-calendar-empty {
    color: #a8b5c6 !important;
}


html[data-theme="dark"] .gestion-calendar-weekdays {
    background: #172033 !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}


html[data-theme="dark"] .gestion-calendar-grid {
    background: #111827 !important;
    border-color: #2b3a50 !important;
}


html[data-theme="dark"] .gestion-calendar-day {
    background: #111827 !important;
    border-color: #263449 !important;
    color: #e8eef6 !important;
}


html[data-theme="dark"] .gestion-calendar-day:hover {
    background: #172033 !important;
}


html[data-theme="dark"] .gestion-calendar-day.is-empty {
    background: #0f172a !important;
}


html[data-theme="dark"] .gestion-calendar-day-number {
    color: #e8eef6 !important;
}


html[data-theme="dark"] .gestion-calendar-day.is-selected,
html[data-theme="dark"] .gestion-calendar-day[aria-current="date"] {
    background: #132b4e !important;
    border-color: #3b82f6 !important;
}


html[data-theme="dark"] .gestion-calendar-nav,
html[data-theme="dark"] .gestion-calendar-today-button {
    background: #172033 !important;
    border-color: #3b4d66 !important;
    color: #dce5ef !important;
}


html[data-theme="dark"] .gestion-calendar-selected-list {
    background: #111827 !important;
}


html[data-theme="dark"] .gestion-calendar-legend {
    background: #111827 !important;
}


html[data-theme="dark"] .gestion-calendar-legend-items {
    color: #d3dce8 !important;
}


/* =========================================================
   COLABORADORES
   ========================================================= */

html[data-theme="dark"] .gestion-users-stat {
    background: #111827 !important;
    border-color: #2b3a50 !important;
    color: #f1f5f9 !important;
}


html[data-theme="dark"] .gestion-users-stat strong {
    color: #ffffff !important;
}


html[data-theme="dark"] .gestion-users-stat span,
html[data-theme="dark"] .gestion-users-stat small {
    color: #a8b5c6 !important;
}


html[data-theme="dark"] .gestion-users-card {
    background: #111827 !important;
    border-color: #2b3a50 !important;
}


html[data-theme="dark"] .gestion-users-card-header {
    background: #111827 !important;
    border-color: #2b3a50 !important;
}


html[data-theme="dark"] .gestion-users-card-header h3 {
    color: #f8fafc !important;
}


html[data-theme="dark"] .gestion-users-muted {
    color: #a8b5c6 !important;
}


html[data-theme="dark"] .gestion-users-person strong {
    color: #f1f5f9 !important;
}


html[data-theme="dark"] .gestion-users-person span,
html[data-theme="dark"] .gestion-users-person small {
    color: #a8b5c6 !important;
}


html[data-theme="dark"] .gestion-users-search {
    background: #0f172a !important;
    border-color: #3a4a61 !important;
    color: #e8eef6 !important;
}


/* =========================================================
   RELATÓRIOS
   ========================================================= */

html[data-theme="dark"] .gestion-report-filter-card,
html[data-theme="dark"] .gestion-report-main-kpi,
html[data-theme="dark"] .gestion-report-secondary-status,
html[data-theme="dark"] .gestion-report-rate-body,
html[data-theme="dark"] .gestion-report-conclusion-details,
html[data-theme="dark"] .gestion-report-table-card {
    background: #111827 !important;
    border-color: #2b3a50 !important;
    color: #e8eef6 !important;
}


html[data-theme="dark"] .gestion-report-main-kpi.is-alert {
    background: #21171d !important;
    border-color: #66313b !important;
}


html[data-theme="dark"] .gestion-report-main-kpi-copy strong,
html[data-theme="dark"] .gestion-report-main-kpi-copy span {
    color: #f1f5f9 !important;
}


html[data-theme="dark"] .gestion-report-main-kpi-copy small {
    color: #a8b5c6 !important;
}


html[data-theme="dark"] .gestion-report-secondary-title,
html[data-theme="dark"] .gestion-report-section-heading h2,
html[data-theme="dark"] .gestion-report-card-header h3 {
    color: #f8fafc !important;
}


html[data-theme="dark"] .gestion-report-muted,
html[data-theme="dark"] .gestion-report-filter-note,
html[data-theme="dark"] .gestion-report-section-heading p,
html[data-theme="dark"] .gestion-report-card-header p {
    color: #a8b5c6 !important;
}


html[data-theme="dark"] .gestion-report-secondary-item {
    background: #172033 !important;
    border-color: #334155 !important;
}


html[data-theme="dark"] .gestion-report-secondary-item strong {
    color: #f8fafc !important;
}


html[data-theme="dark"] .gestion-report-rate {
    color: #f8fafc !important;
}


html[data-theme="dark"] .gestion-report-rate-body-v2 > div {
    background: #172033 !important;
    border-color: #334155 !important;
}


html[data-theme="dark"] .gestion-report-project-grid-v2 > div {
    background: #111827 !important;
    border-color: #334155 !important;
}


html[data-theme="dark"] .gestion-report-priority-row {
    border-color: #334155 !important;
}


html[data-theme="dark"] .gestion-report-priority-values,
html[data-theme="dark"] .gestion-report-bar-percentage {
    color: #dce5ef !important;
}


html[data-theme="dark"] .gestion-report-bar-track {
    background: #334155 !important;
}


html[data-theme="dark"] .gestion-report-table-header {
    background: #111827 !important;
    border-color: #2b3a50 !important;
}


html[data-theme="dark"] .gestion-report-table-header h3 {
    color: #f8fafc !important;
}


/* =========================================================
   CONFIGURAÇÕES
   ========================================================= */

html[data-theme="dark"] .gestion-settings-kpi,
html[data-theme="dark"] .gestion-settings-card {
    background: #111827 !important;
    border-color: #2b3a50 !important;
}


html[data-theme="dark"] .gestion-settings-kpi strong {
    color: #ffffff !important;
}


html[data-theme="dark"] .gestion-settings-kpi span,
html[data-theme="dark"] .gestion-settings-kpi small {
    color: #a8b5c6 !important;
}


html[data-theme="dark"] .gestion-settings-card-header {
    background: #111827 !important;
    border-color: #2b3a50 !important;
}


html[data-theme="dark"] .gestion-settings-card-header h3 {
    color: #f8fafc !important;
}


html[data-theme="dark"] .gestion-settings-subtitle {
    color: #a8b5c6 !important;
}


html[data-theme="dark"] .gestion-settings-row {
    border-color: #334155 !important;
    color: #dce5ef !important;
}


html[data-theme="dark"] .gestion-settings-row > span {
    color: #b8c4d3 !important;
}


html[data-theme="dark"] .gestion-settings-row > strong {
    color: #f8fafc !important;
}


html[data-theme="dark"] .gestion-settings-notice,
html[data-theme="dark"] .gestion-settings-notice.neutral {
    background: #172033 !important;
    border-color: #334155 !important;
    color: #dce5ef !important;
}


html[data-theme="dark"] .gestion-settings-notice strong,
html[data-theme="dark"] .gestion-settings-notice p {
    color: #dce5ef !important;
}


html[data-theme="dark"] .gestion-settings-roadmap {
    background: transparent !important;
}


html[data-theme="dark"] .gestion-settings-roadmap > div,
html[data-theme="dark"] .gestion-settings-subsection {
    border-color: #334155 !important;
}


html[data-theme="dark"] .gestion-settings-roadmap strong {
    color: #f8fafc !important;
}


html[data-theme="dark"] .gestion-settings-roadmap span,
html[data-theme="dark"] .gestion-settings-roadmap small {
    color: #a8b5c6 !important;
}


html[data-theme="dark"] .gestion-settings-path {
    color: #93c5fd !important;
}


/* =========================================================
   DARK V3 - FIM
   ========================================================= */



/* =========================================================
   DARK FIX FINAL - SETORES E EQUIPES
   ========================================================= */

html[data-theme="dark"] .gestion-sectors-stat,
html[data-theme="dark"] .gestion-teams-stat {
    background: #111827 !important;
    border-color: #2b3a50 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .gestion-sectors-stat strong,
html[data-theme="dark"] .gestion-teams-stat strong,
html[data-theme="dark"] .gestion-sectors-stat b,
html[data-theme="dark"] .gestion-teams-stat b {
    color: #ffffff !important;
}

html[data-theme="dark"] .gestion-sectors-stat span,
html[data-theme="dark"] .gestion-teams-stat span,
html[data-theme="dark"] .gestion-sectors-stat small,
html[data-theme="dark"] .gestion-teams-stat small {
    color: #a8b5c6 !important;
}


/* Card principal da listagem */
html[data-theme="dark"] .gestion-sectors-card,
html[data-theme="dark"] .gestion-teams-card,
html[data-theme="dark"] .gestion-sectors-table-wrapper,
html[data-theme="dark"] .gestion-teams-table-wrapper {
    background: #111827 !important;
    border-color: #2b3a50 !important;
    color: #e8eef6 !important;
}


/* Cabeçalho que ainda está branco */
html[data-theme="dark"] .gestion-sectors-card-header,
html[data-theme="dark"] .gestion-teams-card-header,
html[data-theme="dark"] .gestion-sectors-form-header,
html[data-theme="dark"] .gestion-teams-form-header {
    background: #111827 !important;
    border-color: #2b3a50 !important;
    color: #e8eef6 !important;
}


/* Fallback para o primeiro bloco interno do card, caso o header use outra estrutura */
html[data-theme="dark"] .gestion-sectors-card > div:first-child,
html[data-theme="dark"] .gestion-teams-card > div:first-child,
html[data-theme="dark"] .gestion-sectors-form > div:first-child,
html[data-theme="dark"] .gestion-teams-form > div:first-child {
    background: #111827 !important;
    color: #e8eef6 !important;
}


/* Títulos e subtítulos */
html[data-theme="dark"] .gestion-sectors-card h3,
html[data-theme="dark"] .gestion-teams-card h3,
html[data-theme="dark"] .gestion-sectors-form h3,
html[data-theme="dark"] .gestion-teams-form h3 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .gestion-sectors-card p,
html[data-theme="dark"] .gestion-teams-card p,
html[data-theme="dark"] .gestion-sectors-form p,
html[data-theme="dark"] .gestion-teams-form p,
html[data-theme="dark"] .gestion-sectors-muted,
html[data-theme="dark"] .gestion-teams-muted {
    color: #a8b5c6 !important;
}


/* Formulário lateral */
html[data-theme="dark"] .gestion-sectors-form,
html[data-theme="dark"] .gestion-teams-form {
    background: #111827 !important;
    border-color: #2b3a50 !important;
    color: #e8eef6 !important;
}

html[data-theme="dark"] .gestion-sectors-form label,
html[data-theme="dark"] .gestion-teams-form label {
    color: #e8eef6 !important;
}


/* Tabela interna */
html[data-theme="dark"] .gestion-sectors-card table,
html[data-theme="dark"] .gestion-teams-card table {
    background: transparent !important;
    color: #e8eef6 !important;
}

html[data-theme="dark"] .gestion-sectors-card thead,
html[data-theme="dark"] .gestion-teams-card thead {
    background: #172033 !important;
}

html[data-theme="dark"] .gestion-sectors-card th,
html[data-theme="dark"] .gestion-teams-card th {
    color: #dce5ef !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .gestion-sectors-card td,
html[data-theme="dark"] .gestion-teams-card td {
    color: #e8eef6 !important;
    border-color: #263449 !important;
}


/* =========================================================
   FIM - SETORES E EQUIPES
   ========================================================= */



/* =========================================================
   DARK FIX FINAL - SETORES E EQUIPES
   Classes reais dos templates
   ========================================================= */


/* ---------------------------------------------------------
   SETORES
   --------------------------------------------------------- */

html[data-theme="dark"] .gestion-sector-list-card,
html[data-theme="dark"] .gestion-sector-create-card {
    background: #111827 !important;
    border-color: #2b3a50 !important;
    color: #e8eef6 !important;
}


html[data-theme="dark"] .gestion-sector-card-header {
    background: #111827 !important;
    border-color: #2b3a50 !important;
    color: #e8eef6 !important;
}


html[data-theme="dark"] .gestion-sector-card-header h3,
html[data-theme="dark"] .gestion-sector-card-header strong {
    color: #f8fafc !important;
}


html[data-theme="dark"] .gestion-sector-card-header p,
html[data-theme="dark"] .gestion-sector-card-header span {
    color: #a8b5c6 !important;
}


html[data-theme="dark"] .gestion-sector-create-card h3 {
    color: #f8fafc !important;
}


html[data-theme="dark"] .gestion-sector-create-card p {
    color: #a8b5c6 !important;
}


/* ---------------------------------------------------------
   EQUIPES
   --------------------------------------------------------- */

html[data-theme="dark"] .gestion-team-list-card,
html[data-theme="dark"] .gestion-team-create-card {
    background: #111827 !important;
    border-color: #2b3a50 !important;
    color: #e8eef6 !important;
}


html[data-theme="dark"] .gestion-team-card-header {
    background: #111827 !important;
    border-color: #2b3a50 !important;
    color: #e8eef6 !important;
}


html[data-theme="dark"] .gestion-team-card-header h3,
html[data-theme="dark"] .gestion-team-card-header strong {
    color: #f8fafc !important;
}


html[data-theme="dark"] .gestion-team-card-header p,
html[data-theme="dark"] .gestion-team-card-header span {
    color: #a8b5c6 !important;
}


html[data-theme="dark"] .gestion-team-create-card h3 {
    color: #f8fafc !important;
}


html[data-theme="dark"] .gestion-team-create-card p {
    color: #a8b5c6 !important;
}


/* ---------------------------------------------------------
   FORÇA CABEÇALHOS INTERNOS DOS CARDS
   --------------------------------------------------------- */

html[data-theme="dark"] .gestion-sector-list-card
> .gestion-sector-card-header,

html[data-theme="dark"] .gestion-sector-create-card
> .gestion-sector-card-header,

html[data-theme="dark"] .gestion-team-list-card
> .gestion-team-card-header,

html[data-theme="dark"] .gestion-team-create-card
> .gestion-team-card-header {
    background: #111827 !important;
    color: #e8eef6 !important;
}


/* ---------------------------------------------------------
   TABELAS
   --------------------------------------------------------- */

html[data-theme="dark"] .gestion-sector-table,
html[data-theme="dark"] .gestion-team-table,
html[data-theme="dark"] .gestion-sector-table-wrapper,
html[data-theme="dark"] .gestion-team-table-wrapper {
    background: #111827 !important;
    border-color: #2b3a50 !important;
}


html[data-theme="dark"] .gestion-sector-table thead,
html[data-theme="dark"] .gestion-team-table thead {
    background: #172033 !important;
}


html[data-theme="dark"] .gestion-sector-table th,
html[data-theme="dark"] .gestion-team-table th {
    background: #172033 !important;
    color: #dce5ef !important;
    border-color: #334155 !important;
}


html[data-theme="dark"] .gestion-sector-table td,
html[data-theme="dark"] .gestion-team-table td {
    background: #111827 !important;
    color: #e8eef6 !important;
    border-color: #263449 !important;
}


/* ---------------------------------------------------------
   FIM
   --------------------------------------------------------- */



/* =========================================================
   GestiON - Dashboard Rosca por Setor V1
   ========================================================= */

.dashboard-sector-donut-card {
    overflow: hidden;
}


.dashboard-sector-donut-body {
    min-height: 235px;

    padding: 14px 18px 18px;

    display: grid;

    grid-template-columns:
        150px minmax(0, 1fr);

    align-items: center;

    gap: 18px;
}


.dashboard-sector-donut-wrap {
    position: relative;

    width: 145px;
    height: 145px;

    margin: 0 auto;
}


.dashboard-sector-donut {
    width: 100%;
    height: 100%;

    transform: rotate(-90deg);

    overflow: visible;
}


.dashboard-sector-donut-track,
.dashboard-sector-donut-segment {
    fill: none;

    stroke-width: 13;

    vector-effect:
        non-scaling-stroke;
}


.dashboard-sector-donut-track {
    stroke: #e8eef5;
}


.dashboard-sector-donut-segment {
    stroke-linecap: butt;

    transition:
        opacity .18s ease,
        stroke-width .18s ease;
}


.dashboard-sector-donut-segment:hover {
    opacity: .82;
    stroke-width: 15;
}


.dashboard-sector-donut-center {
    position: absolute;

    inset: 0;

    display: flex;
    flex-direction: column;

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

    pointer-events: none;
}


.dashboard-sector-donut-center strong {
    color: #14263e;

    font-size: 28px;
    font-weight: 800;

    line-height: 1;
}


.dashboard-sector-donut-center span {
    margin-top: 5px;

    color: #7b899b;

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

    text-transform: uppercase;

    letter-spacing: .04em;
}


/* ---------------------------------------------------------
   Legenda
   --------------------------------------------------------- */

.dashboard-sector-donut-legend {
    display: flex;

    flex-direction: column;

    gap: 5px;
}


.dashboard-sector-donut-legend-row {
    min-height: 34px;

    display: grid;

    grid-template-columns:
        9px minmax(0, 1fr) auto 38px;

    align-items: center;

    gap: 8px;

    padding:
        5px 0;

    border-bottom:
        1px solid #edf1f5;
}


.dashboard-sector-donut-legend-row:last-child {
    border-bottom: 0;
}


.dashboard-sector-donut-legend-dot {
    width: 9px;
    height: 9px;

    border-radius: 50%;
}


.dashboard-sector-donut-legend-name {
    overflow: hidden;

    color: #53657b;

    font-size: 11px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.dashboard-sector-donut-legend-row strong {
    color: #14263e;

    font-size: 12px;
}


.dashboard-sector-donut-legend-row small {
    color: #8b98a9;

    font-size: 9px;

    text-align: right;
}


/* ---------------------------------------------------------
   Paleta dos setores
   --------------------------------------------------------- */

.sector-chart-stroke-0 {
    stroke: #2878ef;
}

.sector-chart-bg-0 {
    background: #2878ef;
}


.sector-chart-stroke-1 {
    stroke: #2bc96d;
}

.sector-chart-bg-1 {
    background: #2bc96d;
}


.sector-chart-stroke-2 {
    stroke: #f5a524;
}

.sector-chart-bg-2 {
    background: #f5a524;
}


.sector-chart-stroke-3 {
    stroke: #8b5cf6;
}

.sector-chart-bg-3 {
    background: #8b5cf6;
}


.sector-chart-stroke-4 {
    stroke: #ef5350;
}

.sector-chart-bg-4 {
    background: #ef5350;
}


.sector-chart-stroke-5 {
    stroke: #06b6d4;
}

.sector-chart-bg-5 {
    background: #06b6d4;
}


.sector-chart-stroke-6 {
    stroke: #ec4899;
}

.sector-chart-bg-6 {
    background: #ec4899;
}


.sector-chart-stroke-7 {
    stroke: #84cc16;
}

.sector-chart-bg-7 {
    background: #84cc16;
}


/* ---------------------------------------------------------
   Dark mode
   --------------------------------------------------------- */

html[data-theme="dark"]
.dashboard-sector-donut-track {
    stroke: #2b3a50;
}


html[data-theme="dark"]
.dashboard-sector-donut-center strong {
    color: #f8fafc;
}


html[data-theme="dark"]
.dashboard-sector-donut-center span {
    color: #94a3b8;
}


html[data-theme="dark"]
.dashboard-sector-donut-legend-row {
    border-color: #263449;
}


html[data-theme="dark"]
.dashboard-sector-donut-legend-name {
    color: #c0ccda;
}


html[data-theme="dark"]
.dashboard-sector-donut-legend-row strong {
    color: #f8fafc;
}


html[data-theme="dark"]
.dashboard-sector-donut-legend-row small {
    color: #94a3b8;
}


/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media (max-width: 1100px) {

    .dashboard-sector-donut-body {
        grid-template-columns: 1fr;

        min-height: 0;
    }

}


/*
   No mobile este card já é escondido pela
   interface operacional que fizemos antes.
*/



/* Dashboard Rosca - refinamento da legenda */

.dashboard-sector-donut-body {
    grid-template-columns:
        145px minmax(130px, 1fr);
}

.dashboard-sector-donut-legend-row {
    grid-template-columns:
        9px minmax(70px, 1fr) auto 38px;
}

.dashboard-sector-donut-legend-name {
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}



/* =========================================================
   Dashboard Rosca - ajuste final de espaço
   ========================================================= */

.dashboard-sector-donut-body {
    grid-template-columns:
        125px minmax(0, 1fr) !important;

    gap: 12px !important;

    padding:
        12px 14px 16px !important;
}


.dashboard-sector-donut-wrap {
    width: 125px !important;
    height: 125px !important;
}


.dashboard-sector-donut-center strong {
    font-size: 25px !important;
}


.dashboard-sector-donut-legend {
    min-width: 0;
}


.dashboard-sector-donut-legend-row {
    grid-template-columns:
        9px minmax(0, 1fr) 20px 34px !important;

    gap: 6px !important;
}


.dashboard-sector-donut-legend-name {
    min-width: 0;

    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}


.dashboard-sector-donut-legend-row strong {
    text-align: center;
}


.dashboard-sector-donut-legend-row small {
    display: block;

    width: 34px;

    text-align: right;

    white-space: nowrap;
}




/* =========================================================
   GestiON - PWA Install V1
   ========================================================= */

.gestion-pwa-install-button {
    width: 100%;

    padding: 12px 14px;

    display: flex;
    align-items: center;

    gap: 9px;

    border: 0;
    border-bottom:
        1px solid #edf1f5;

    background: #ffffff;

    color: #1565c0;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    text-align: left;

    cursor: pointer;
}


.gestion-pwa-install-button:hover {
    background: #f4f8fd;
}


.gestion-pwa-install-icon {
    width: 24px;
    height: 24px;

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

    border-radius: 7px;

    background: #e9f2ff;

    font-size: 17px;
}


/*
   hidden precisa continuar prevalecendo
   sobre o display do botão.
*/

.gestion-pwa-install-button[hidden] {
    display: none !important;
}


/* Dark mode */

html[data-theme="dark"]
.gestion-pwa-install-button {
    background: #111827;

    border-color: #263449;

    color: #60a5fa;
}


html[data-theme="dark"]
.gestion-pwa-install-button:hover {
    background: #172033;
}


html[data-theme="dark"]
.gestion-pwa-install-icon {
    background: #132b4e;
    color: #60a5fa;
}



/* =========================================================
   GestiON - Recuperação de senha V1
   ========================================================= */

.login-password-wrap {
    position: relative;

    width: 100%;
}


.login-password-wrap input {
    width: 100%;

    padding-right: 52px !important;
}


.login-password-toggle {
    position: absolute;

    top: 50%;
    right: 10px;

    transform: translateY(-50%);

    width: 38px;
    height: 38px;

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

    border: 0;

    background: transparent;

    color: #617287;

    font-size: 18px;

    cursor: pointer;
}


.login-forgot-link {
    display: block;

    margin-top: 8px;

    color: #1565c0;

    font-size: 12px;
    font-weight: 650;

    text-align: right;

    text-decoration: none;
}


.login-forgot-link:hover,
.login-back-link:hover {
    text-decoration: underline;
}


.login-back-link {
    display: block;

    margin-top: 18px;

    color: #53657b;

    font-size: 12px;
    font-weight: 650;

    text-align: center;

    text-decoration: none;
}


.login-reset-success {
    margin-bottom: 16px;

    padding: 12px 14px;

    border:
        1px solid #b6e2c6;

    border-radius: 8px;

    background: #effaf3;

    color: #17743a;

    font-size: 12px;
    line-height: 1.45;
}


.login-password-rules {
    margin:
        -4px 0
        16px;

    color: #738196;

    font-size: 11px;
    line-height: 1.45;
}


@media (max-width: 700px) {

    .login-forgot-link {
        font-size: 13px;
    }

    .login-password-toggle {
        width: 44px;
        height: 44px;
    }

}

