/* =====================================================
   RESET + DESIGN SYSTEM
===================================================== */

:root {

    --primary:
            #2563eb;

    --primary-hover:
            #1d4ed8;

    --primary-light:
            #eff6ff;


    --sidebar:
            #0f172a;

    --sidebar-hover:
            #1e293b;


    --background:
            #f6f8fc;

    --surface:
            #ffffff;

    --surface-secondary:
            #f8fafc;


    --border:
            #e2e8f0;

    --border-strong:
            #cbd5e1;


    --text:
            #0f172a;

    --text-secondary:
            #475569;

    --text-muted:
            #94a3b8;


    --success:
            #16a34a;

    --success-bg:
            #f0fdf4;


    --warning:
            #d97706;

    --warning-bg:
            #fffbeb;


    --danger:
            #dc2626;

    --danger-bg:
            #fef2f2;


    --info:
            #0284c7;

    --info-bg:
            #f0f9ff;


    --radius-sm:
            6px;

    --radius:
            10px;

    --radius-lg:
            14px;


    --shadow-sm:
            0 1px 2px
            rgba(15, 23, 42, 0.04);

    --shadow:
            0 6px 20px
            rgba(15, 23, 42, 0.06);


    --sidebar-width:
            260px;

    --topbar-height:
            72px;
}


* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;
}


html {

    font-size: 16px;
}


body {

    min-height: 100vh;

    background:
            var(--background);

    color:
            var(--text);

    font-family:
            Inter,
            -apple-system,
            BlinkMacSystemFont,
            "Segoe UI",
            Roboto,
            Helvetica,
            Arial,
            sans-serif;

    -webkit-font-smoothing:
            antialiased;
}


button,
input,
select,
textarea {

    font: inherit;
}


button {

    border: 0;
}


a {

    color: inherit;
}


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

.app-shell {

    min-height: 100vh;

    display: flex;
}


.sidebar {

    width:
            var(--sidebar-width);

    height:
            100vh;

    position: fixed;

    left: 0;

    top: 0;

    z-index: 1000;

    display: flex;

    flex-direction: column;

    background:
            var(--sidebar);

    color: white;
}


.sidebar-brand {

    height:
            var(--topbar-height);

    display: flex;

    align-items: center;

    gap: 12px;

    padding:
            0 22px;

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


.brand-icon {

    width: 40px;

    height: 40px;

    border-radius: 10px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    background:
            linear-gradient(
                    135deg,
                    #3b82f6,
                    #2563eb
            );

    font-size: 14px;

    font-weight: 800;

    letter-spacing:
            -0.02em;
}


.brand-text {

    min-width: 0;
}


.brand-text strong {

    display: block;

    font-size: 15px;

    font-weight: 700;
}


.brand-text span {

    display: block;

    margin-top: 2px;

    color:
            #94a3b8;

    font-size: 11px;
}


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

.sidebar-nav {

    padding:
            20px 12px;

    display: flex;

    flex-direction: column;

    gap: 5px;

    flex: 1;
}


.sidebar-link {

    min-height: 46px;

    padding:
            0 14px;

    border-radius:
            8px;

    display: flex;

    align-items: center;

    gap: 12px;

    text-decoration: none;

    color:
            #cbd5e1;

    font-size: 14px;

    font-weight: 500;

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


.sidebar-link:hover {

    background:
            var(--sidebar-hover);

    color:
            #ffffff;
}


.sidebar-link.active {

    color:
            #ffffff;

    background:
            #2563eb;
}


.sidebar-link-icon {

    width: 20px;

    height: 20px;

    display: flex;

    align-items: center;

    justify-content: center;
}


.sidebar-link-icon svg {

    width: 20px;

    height: 20px;
}


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

.sidebar-bottom {

    padding:
            16px 12px;

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


.sidebar-user {

    padding:
            10px;

    display: flex;

    align-items: center;

    gap: 10px;
}


.user-avatar,
.topbar-avatar {

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    flex-shrink: 0;

    font-weight: 700;
}


.user-avatar {

    width: 36px;

    height: 36px;

    background:
            #334155;

    color:
            #ffffff;

    font-size: 12px;
}


.sidebar-user-info {

    min-width: 0;
}


.sidebar-user-info strong {

    display: block;

    color:
            white;

    font-size: 13px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow:
            ellipsis;
}


.sidebar-user-info span {

    display: block;

    margin-top: 2px;

    color:
            #94a3b8;

    font-size: 11px;
}


.sidebar-logout {

    width: 100%;

    margin-top: 7px;

    height: 40px;

    border-radius:
            8px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    cursor: pointer;

    color:
            #cbd5e1;

    background:
            transparent;

    transition:
            0.15s;
}


.sidebar-logout:hover {

    color:
            #fecaca;

    background:
            rgba(
                    220,
                    38,
                    38,
                    0.12
            );
}


.sidebar-logout svg {

    width: 18px;

    height: 18px;
}


/* =====================================================
   MAIN / TOPBAR
===================================================== */

.app-main {

    width:
            calc(
                    100% -
                    var(--sidebar-width)
            );

    min-height:
            100vh;

    margin-left:
            var(--sidebar-width);
}


.topbar {

    height:
            var(--topbar-height);

    position: sticky;

    top: 0;

    z-index: 100;

    display: flex;

    align-items: center;

    padding:
            0 32px;

    background:
            rgba(
                    255,
                    255,
                    255,
                    0.94
            );

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

    backdrop-filter:
            blur(12px);
}


.topbar-spacer {

    flex: 1;
}


.topbar-profile {

    display: flex;

    align-items: center;

    gap: 10px;
}


.topbar-avatar {

    width: 36px;

    height: 36px;

    color:
            #1d4ed8;

    background:
            #dbeafe;

    font-size: 12px;
}


.topbar-user-data strong {

    display: block;

    font-size: 13px;
}


.topbar-user-data span {

    display: block;

    margin-top: 1px;

    color:
            var(--text-muted);

    font-size: 11px;
}


.menu-mobile {

    width: 40px;

    height: 40px;

    display: none;

    align-items: center;

    justify-content: center;

    background:
            transparent;

    border-radius:
            8px;

    cursor: pointer;

    color:
            var(--text-secondary);
}


.menu-mobile:hover {

    background:
            var(--surface-secondary);
}


.menu-mobile svg {

    width: 22px;

    height: 22px;
}


/* =====================================================
   PAGE
===================================================== */

.page-content {

    padding:
            30px 32px 50px;
}


#app-layout {

    width: 100%;

    max-width: 1500px;

    margin:
            0 auto;
}


.header,
.page-header {

    margin-bottom: 24px;

    display: flex;

    align-items: center;

    justify-content:
            space-between;

    gap: 20px;
}


.title {

    color:
            var(--text);

    font-size: 26px;

    font-weight: 700;

    letter-spacing:
            -0.025em;
}


.subtitle {

    margin-top: 5px;

    color:
            var(--text-secondary);

    font-size: 14px;
}


/* =====================================================
   CARD
===================================================== */

.card {

    padding: 24px;

    background:
            var(--surface);

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

    border-radius:
            var(--radius-lg);

    box-shadow:
            var(--shadow-sm);
}


.card-title {

    margin-bottom: 5px;

    font-size: 17px;
}


.card-description {

    margin-bottom: 20px;

    color:
            var(--text-secondary);

    font-size: 13px;
}


/* =====================================================
   FORMS
===================================================== */

.grid-form,
.form-grid {

    display: grid;

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

    gap: 18px;
}


.form-group {

    display: flex;

    flex-direction: column;

    gap: 7px;
}


.form-group-full {

    grid-column:
            1 / -1;
}


.form-group label {

    color:
            var(--text-secondary);

    font-size: 13px;

    font-weight: 600;
}


.form-group input,
.form-group select,
.form-group textarea,
input.input,
select.input {

    width: 100%;

    height: 43px;

    padding:
            0 12px;

    color:
            var(--text);

    background:
            #ffffff;

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

    border-radius:
            8px;

    outline: none;

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


.form-group textarea {

    height: auto;

    min-height: 100px;

    padding: 12px;

    resize: vertical;
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
input.input:focus,
select.input:focus {

    border-color:
            #60a5fa;

    box-shadow:
            0 0 0 3px
            rgba(
                    59,
                    130,
                    246,
                    0.12
            );
}


.form-actions {

    margin-top: 22px;

    display: flex;

    justify-content: flex-end;

    gap: 10px;
}


/* =====================================================
   BUTTONS
===================================================== */

.btn-primary,
.btn-secondary,
.btn-danger,
.btn-success {

    min-height: 40px;

    padding:
            0 16px;

    border-radius:
            8px;

    display:
            inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    text-decoration: none;

    cursor: pointer;

    font-size: 13px;

    font-weight: 600;

    transition:
            0.15s ease;
}


.btn-primary {

    color: white;

    background:
            var(--primary);
}


.btn-primary:hover {

    background:
            var(--primary-hover);
}


.btn-secondary {

    color:
            var(--text-secondary);

    background:
            white;

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


.btn-secondary:hover {

    background:
            var(--surface-secondary);
}


.btn-danger {

    color:
            var(--danger);

    background:
            var(--danger-bg);
}


.btn-danger:hover {

    background:
            #fee2e2;
}


.btn-success {

    color:
            var(--success);

    background:
            var(--success-bg);
}


/* =====================================================
   TOOLBAR / SEARCH
===================================================== */

.table-toolbar {

    margin-bottom: 16px;

    display: flex;

    justify-content:
            space-between;

    align-items: center;

    gap: 12px;
}


.search-box {

    position: relative;

    width:
            min(
                    380px,
                    100%
            );
}


.search-box input {

    width: 100%;

    height: 41px;

    padding:
            0 14px;

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

    border-radius:
            8px;

    outline: none;

    background:
            white;
}


.search-box input:focus {

    border-color:
            #60a5fa;

    box-shadow:
            0 0 0 3px
            rgba(
                    59,
                    130,
                    246,
                    0.1
            );
}


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

.table-responsive {

    width: 100%;

    overflow-x: auto;

    background:
            white;

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

    border-radius:
            var(--radius-lg);

    box-shadow:
            var(--shadow-sm);
}


table {

    width: 100%;

    border-collapse:
            collapse;
}


thead {

    background:
            #f8fafc;
}


th {

    padding:
            13px 18px;

    text-align: left;

    white-space:
            nowrap;

    color:
            #64748b;

    font-size: 11px;

    font-weight: 700;

    letter-spacing:
            0.045em;

    text-transform:
            uppercase;

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


td {

    padding:
            15px 18px;

    color:
            var(--text-secondary);

    font-size: 13px;

    border-bottom:
            1px solid
            #f1f5f9;
}


tbody tr:last-child td {

    border-bottom: 0;
}


tbody tr:hover {

    background:
            #fafcff;
}


.table-primary {

    color:
            var(--text);

    font-weight: 600;
}


.table-secondary {

    display: block;

    margin-top: 3px;

    color:
            var(--text-muted);

    font-size: 11px;
}


.table-empty {

    padding:
            45px 20px !important;

    text-align: center;

    color:
            var(--text-muted);
}


/* =====================================================
   BADGES
===================================================== */

.badge,
.status-badge {

    display:
            inline-flex;

    align-items: center;

    padding:
            5px 9px;

    border-radius:
            999px;

    font-size: 10px;

    font-weight: 700;

    letter-spacing:
            0.025em;

    text-transform:
            uppercase;
}


.badge {

    color:
            #1d4ed8;

    background:
            #eff6ff;
}


.badge-success {

    color:
            #15803d;

    background:
            #dcfce7;
}


.badge-warning {

    color:
            #b45309;

    background:
            #fef3c7;
}


.badge-danger {

    color:
            #b91c1c;

    background:
            #fee2e2;
}


.badge-neutral {

    color:
            #475569;

    background:
            #f1f5f9;
}


/* =====================================================
   ALERTS
===================================================== */

.alert-error,
.alert-danger,
.alert-success {

    display: none;

    margin-bottom: 18px;

    padding:
            12px 14px;

    border-radius:
            8px;

    font-size: 13px;
}


.alert-error,
.alert-danger {

    color:
            #b91c1c;

    background:
            var(--danger-bg);

    border:
            1px solid
            #fecaca;
}


.alert-success {

    color:
            #15803d;

    background:
            var(--success-bg);

    border:
            1px solid
            #bbf7d0;
}


/* =====================================================
   DASHBOARD
===================================================== */

.stats-grid {

    display: grid;

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

    gap: 16px;

    margin-bottom: 24px;
}


.stat-card {

    min-height: 135px;

    padding: 20px;

    background:
            white;

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

    border-radius:
            var(--radius-lg);

    box-shadow:
            var(--shadow-sm);
}


.stat-label {

    color:
            var(--text-secondary);

    font-size: 12px;

    font-weight: 600;
}


.stat-number {

    margin-top: 10px;

    color:
            var(--text);

    font-size: 31px;

    font-weight: 750;

    letter-spacing:
            -0.04em;
}


.stat-description {

    margin-top: 5px;

    color:
            var(--text-muted);

    font-size: 11px;
}


.dashboard-grid {

    display: grid;

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

    gap: 20px;
}


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

.login-page {

    min-height: 100vh;

    display: grid;

    grid-template-columns:
        minmax(
            450px,
            1.15fr
        )
        minmax(
            400px,
            0.85fr
        );

    background:
            white;
}


.login-visual {

    position: relative;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    padding: 64px;

    color: white;

    background:
            linear-gradient(
                    145deg,
                    #0f172a 0%,
                    #172554 45%,
                    #1d4ed8 100%
            );
}


.login-visual::before {

    content: "";

    position: absolute;

    width: 500px;

    height: 500px;

    border-radius: 50%;

    right: -180px;

    top: -180px;

    background:
            rgba(
                    255,
                    255,
                    255,
                    0.08
            );
}


.login-visual-content {

    position: relative;

    z-index: 1;

    max-width: 560px;
}


.login-visual h1 {

    margin-bottom: 14px;

    font-size:
            clamp(
                    32px,
                    4vw,
                    54px
            );

    line-height: 1.05;

    letter-spacing:
            -0.045em;
}


.login-visual p {

    max-width: 500px;

    color:
            #dbeafe;

    font-size: 16px;

    line-height: 1.7;
}


.login-section {

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px;
}


.login-container {

    width: 100%;

    max-width: 390px;
}


.login-brand {

    margin-bottom: 40px;

    display: flex;

    align-items: center;

    gap: 10px;
}


.login-brand-icon {

    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: white;

    background:
            var(--primary);

    border-radius:
            10px;

    font-size: 14px;

    font-weight: 800;
}


.login-container h2 {

    margin-bottom: 8px;

    font-size: 27px;

    letter-spacing:
            -0.03em;
}


.login-description {

    margin-bottom: 28px;

    color:
            var(--text-secondary);

    font-size: 14px;
}


.login-form
.form-group {

    margin-bottom: 17px;
}


.login-submit {

    width: 100%;

    margin-top: 6px;

    height: 44px;
}


/* =====================================================
   OVERLAY
===================================================== */

.sidebar-overlay {

    display: none;
}


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

@media (
max-width: 1100px
) {

    .stats-grid {

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


    .dashboard-grid {

        grid-template-columns:
            1fr;
    }
}


@media (
max-width: 900px
) {

    .sidebar {

        transform:
                translateX(
                        -100%
                );

        transition:
                transform
                0.22s ease;

        box-shadow:
                12px 0 35px
                rgba(
                        15,
                        23,
                        42,
                        0.18
                );
    }


    .sidebar.open {

        transform:
                translateX(0);
    }


    .app-main {

        width: 100%;

        margin-left: 0;
    }


    .menu-mobile {

        display: flex;
    }


    .sidebar-overlay {

        position: fixed;

        inset: 0;

        z-index: 900;

        display: block;

        visibility: hidden;

        opacity: 0;

        background:
                rgba(
                        15,
                        23,
                        42,
                        0.4
                );

        transition:
                0.2s;
    }


    .sidebar-overlay.visible {

        visibility:
                visible;

        opacity: 1;
    }
}


@media (
max-width: 700px
) {

    .topbar {

        padding:
                0 18px;
    }


    .page-content {

        padding:
                22px 16px 40px;
    }


    .header,
    .page-header {

        align-items:
                flex-start;

        flex-direction:
                column;
    }


    .header > button,
    .page-header > button {

        width: 100%;
    }


    .grid-form,
    .form-grid {

        grid-template-columns:
            1fr;
    }


    .stats-grid {

        grid-template-columns:
            1fr;
    }


    .table-toolbar {

        align-items:
                stretch;

        flex-direction:
                column;
    }


    .search-box {

        width: 100%;
    }


    .topbar-user-data {

        display: none;
    }


    .login-page {

        display: block;

        background:
                var(--background);
    }


    .login-visual {

        display: none;
    }


    .login-section {

        min-height: 100vh;

        padding: 22px;
    }


    .login-container {

        padding: 26px;

        background: white;

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

        border-radius:
                var(--radius-lg);
    }
}


/* ==========================================================
   DOCUMENTOS
========================================================== */

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

.documentos-page-heading {
    display: flex;
    align-items: center;
    gap: 16px;
}

.documentos-page-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;

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

    background: #eff6ff;
    color: #2563eb;

    flex-shrink: 0;
}

.documentos-btn-novo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    white-space: nowrap;
}


/* ==========================================================
   CARDS DE INDICADORES
========================================================== */

.documentos-stats {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
    margin-bottom: 24px;
}

.documento-stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;

    padding: 20px;

    display: flex;
    align-items: center;
    gap: 16px;

    min-height: 104px;

    box-shadow:
            0 1px 2px rgba(15, 23, 42, 0.04);

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

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

    box-shadow:
            0 8px 24px rgba(15, 23, 42, 0.07);
}

.documento-stat-icon {
    width: 46px;
    height: 46px;

    border-radius: 13px;

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

    flex-shrink: 0;
}

.documento-stat-primary {
    background: #eff6ff;
    color: #2563eb;
}

.documento-stat-info {
    background: #f0f9ff;
    color: #0284c7;
}

.documento-stat-success {
    background: #ecfdf5;
    color: #059669;
}

.documento-stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.documento-stat-label {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
}

.documento-stat-value {
    font-size: 1.65rem;
    line-height: 1.1;
    color: #0f172a;
}


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

.documento-upload-card {
    margin-bottom: 24px;
    padding: 0;

    overflow: hidden;
}

.documento-form-header {
    padding: 22px 24px;

    border-bottom: 1px solid #e5e7eb;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.documento-form-header h2 {
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 1.08rem;
}

.documento-form-header p {
    margin: 0;

    font-size: 0.86rem;
    color: #64748b;
}

.documento-close-button {
    border: none;
    background: transparent;

    width: 34px;
    height: 34px;

    border-radius: 8px;

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

    color: #64748b;

    cursor: pointer;

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

.documento-close-button:hover {
    background: #f1f5f9;
    color: #0f172a;
}

#form-documento {
    padding: 24px;
}

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

.documento-file-group {
    grid-column: span 2;
}

.form-helper {
    display: block;
    margin-top: 6px;

    font-size: 0.76rem;
    color: #94a3b8;
}

.required {
    color: #dc2626;
}


/* ==========================================================
   UPLOAD AREA
========================================================== */

.documento-upload-area {
    width: 100%;
    min-height: 150px;

    border: 1.5px dashed #cbd5e1;
    border-radius: 14px;

    background: #f8fafc;

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

    gap: 7px;

    padding: 22px;

    cursor: pointer;

    text-align: center;

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

.documento-upload-area:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.documento-upload-icon {
    width: 46px;
    height: 46px;

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

    border-radius: 12px;

    background: #dbeafe;
    color: #2563eb;

    margin-bottom: 3px;
}

.documento-upload-area strong {
    font-size: 0.9rem;
    color: #0f172a;
}

.documento-upload-area > span {
    font-size: 0.78rem;
    color: #64748b;
}

.documento-file-selected {
    margin-top: 7px;

    padding: 6px 10px;

    border-radius: 8px;

    background: #f1f5f9;

    font-size: 0.76rem !important;
    color: #475569 !important;
}

.documento-file-selected.arquivo-selecionado {
    background: #ecfdf5;
    color: #047857 !important;
}

.documento-file-input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
    pointer-events: none;
}

.documento-form-actions {
    margin-top: 22px;

    padding-top: 20px;

    border-top: 1px solid #e5e7eb;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.documento-form-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}


/* ==========================================================
   LISTAGEM
========================================================== */

.documento-list-card {
    padding: 0;
    overflow: hidden;
}

.documento-list-header {
    padding: 22px 24px 15px;
}

.documento-list-header h2 {
    margin: 0 0 4px;

    font-size: 1.05rem;
    color: #0f172a;
}

.documento-list-header p {
    margin: 0;

    font-size: 0.84rem;
    color: #64748b;
}


/* ==========================================================
   TOOLBAR E FILTROS
========================================================== */

.documentos-toolbar {
    padding: 0 24px 20px;

    display: grid;

    grid-template-columns:
        minmax(260px, 1fr)
        220px
        180px;

    gap: 12px;
}

.documentos-search {
    min-height: 42px;

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

    background: #ffffff;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 0 13px;

    color: #94a3b8;

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

.documentos-search:focus-within {
    border-color: #2563eb;

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

.documentos-search input {
    width: 100%;

    border: none;
    outline: none;

    background: transparent;

    font: inherit;
    color: #0f172a;
}

.documentos-search input::placeholder {
    color: #94a3b8;
}

.documentos-filter {
    min-height: 42px;

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

    background: #ffffff;

    padding: 0 12px;

    color: #334155;
    font: inherit;

    outline: none;
}

.documentos-filter:focus {
    border-color: #2563eb;

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


/* ==========================================================
   TABELA
========================================================== */

.documentos-table-wrapper {
    border-top: 1px solid #e5e7eb;
}

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

.documentos-table thead th {
    background: #f8fafc;

    padding: 12px 18px;

    text-align: left;

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.035em;
    text-transform: uppercase;

    color: #64748b;

    border-bottom: 1px solid #e5e7eb;
}

.documentos-table tbody td {
    padding: 14px 18px;

    border-bottom: 1px solid #eef2f7;

    vertical-align: middle;

    font-size: 0.84rem;

    color: #334155;
}

.documentos-table tbody tr {
    transition: background 0.18s ease;
}

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


/* ==========================================================
   ARQUIVO
========================================================== */

.documento-file-cell {
    display: flex;
    align-items: center;
    gap: 11px;

    min-width: 220px;
}

.documento-file-icon {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    border-radius: 10px;

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

.file-pdf {
    background: #fef2f2;
    color: #dc2626;
}

.file-word {
    background: #eff6ff;
    color: #2563eb;
}

.file-excel {
    background: #ecfdf5;
    color: #059669;
}

.file-image {
    background: #f5f3ff;
    color: #7c3aed;
}

.file-default {
    background: #f1f5f9;
    color: #475569;
}

.documento-file-info {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 2px;
}

.documento-file-info strong {
    max-width: 260px;

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

    font-weight: 600;
    color: #0f172a;
}

.documento-file-info span {
    font-size: 0.68rem;
    color: #94a3b8;
}


/* ==========================================================
   EMPRESA
========================================================== */

.documento-company-cell {
    display: flex;
    align-items: center;
    gap: 9px;

    min-width: 180px;
}

.documento-company-avatar {
    width: 30px;
    height: 30px;

    border-radius: 8px;

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

    flex-shrink: 0;

    background: #f1f5f9;

    color: #475569;

    font-size: 0.76rem;
    font-weight: 700;
}


/* ==========================================================
   BADGES
========================================================== */

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

    border-radius: 999px;

    padding: 5px 9px;

    font-size: 0.7rem;
    font-weight: 600;

    white-space: nowrap;
}

.type-nota {
    background: #eff6ff;
    color: #1d4ed8;
}

.type-comprovante {
    background: #ecfdf5;
    color: #047857;
}

.type-guia {
    background: #fff7ed;
    color: #c2410c;
}

.type-contrato {
    background: #f5f3ff;
    color: #6d28d9;
}

.type-declaracao {
    background: #f0f9ff;
    color: #0369a1;
}

.type-outro {
    background: #f1f5f9;
    color: #475569;
}

.documento-competencia {
    font-weight: 500;
    color: #475569;
}

.documento-remetente {
    color: #475569;
}


/* ==========================================================
   AÇÕES
========================================================== */

.documento-row-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.documento-action-button {
    min-height: 34px;

    border: 1px solid #dbe2ea;

    border-radius: 8px;

    background: #ffffff;

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

    gap: 6px;

    padding: 0 11px;

    color: #334155;

    font-size: 0.76rem;
    font-weight: 600;

    cursor: pointer;

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

.documento-action-button:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}


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

.documentos-loading {
    padding: 38px !important;

    text-align: center;

    color: #64748b !important;
}

.documentos-empty {
    padding: 54px 20px !important;

    text-align: center;
}

.documentos-empty-icon {
    width: 48px;
    height: 48px;

    margin:
            0 auto
            12px;

    border-radius: 13px;

    background: #f1f5f9;
    color: #64748b;

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

.documentos-empty strong {
    display: block;

    margin-bottom: 4px;

    color: #334155;
}

.documentos-empty span {
    font-size: 0.78rem;
    color: #94a3b8;
}


/* ==========================================================
   RODAPÉ
========================================================== */

.documentos-list-footer {
    min-height: 46px;

    padding: 0 24px;

    display: flex;
    align-items: center;

    background: #ffffff;

    font-size: 0.76rem;
    color: #64748b;

    border-top: 1px solid #eef2f7;
}


/* ==========================================================
   SPINNER
========================================================== */

.documento-spinner {
    width: 15px;
    height: 15px;

    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;

    border-radius: 50%;

    animation:
            documento-spin
            0.7s
            linear
            infinite;
}

@keyframes documento-spin {

    to {
        transform: rotate(360deg);
    }
}


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

@media (
max-width: 1100px
) {

    .documentos-toolbar {
        grid-template-columns:
            1fr
            1fr;
    }

    .documentos-search {
        grid-column:
                span 2;
    }
}


@media (
max-width: 850px
) {

    .documentos-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .documentos-btn-novo {
        width: 100%;
    }

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

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

    .documento-file-group {
        grid-column:
                auto;
    }
}


@media (
max-width: 650px
) {

    .documentos-toolbar {
        grid-template-columns:
            1fr;

        padding-left: 16px;
        padding-right: 16px;
    }

    .documentos-search {
        grid-column:
                auto;
    }

    .documento-list-header {
        padding-left: 16px;
        padding-right: 16px;
    }

    .documento-form-header {
        padding:
                18px
                16px;
    }

    #form-documento {
        padding:
                18px
                16px;
    }

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

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

    .documentos-list-footer {
        padding:
                0
                16px;
    }

    .documentos-page-heading {
        align-items: flex-start;
    }

    .documentos-page-icon {
        width: 44px;
        height: 44px;
    }
}


/* ==========================================================
   DASHBOARD - NOVA INTERFACE
========================================================== */

.dashboard-hero {
    position: relative;
    overflow: hidden;

    margin-bottom: 24px;

    border-radius: 20px;

    background:
            linear-gradient(
                    135deg,
                    #172554 0%,
                    #1d4ed8 60%,
                    #2563eb 100%
            );

    color: #ffffff;

    box-shadow:
            0 12px 32px rgba(30, 64, 175, 0.14);
}

.dashboard-hero::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    right: -90px;
    top: -160px;

    border-radius: 50%;

    background:
            rgba(255, 255, 255, 0.07);
}

.dashboard-hero::before {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    right: 160px;
    bottom: -130px;

    border-radius: 50%;

    background:
            rgba(255, 255, 255, 0.04);
}

.dashboard-hero-content {
    position: relative;
    z-index: 1;

    min-height: 170px;

    padding: 30px 32px;

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

    gap: 30px;
}

.dashboard-eyebrow {
    display: inline-flex;

    margin-bottom: 8px;

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.1em;
    text-transform: uppercase;

    color: #bfdbfe;
}

.dashboard-hero-text h1 {
    margin: 0 0 8px;

    font-size: clamp(
            1.65rem,
            3vw,
            2.2rem
    );

    color: #ffffff;

    letter-spacing: -0.03em;
}

.dashboard-hero-text p {
    margin: 0;

    max-width: 600px;

    font-size: 0.9rem;
    line-height: 1.6;

    color: #dbeafe;
}

.dashboard-hero-date {
    min-width: 180px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 14px 16px;

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

    border-radius: 14px;

    background:
            rgba(255, 255, 255, 0.09);

    backdrop-filter: blur(10px);
}

.dashboard-date-icon {
    width: 40px;
    height: 40px;

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

    border-radius: 10px;

    background:
            rgba(255, 255, 255, 0.12);

    flex-shrink: 0;
}

.dashboard-hero-date div:last-child {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.dashboard-hero-date span {
    font-size: 0.7rem;

    color: #bfdbfe;
}

.dashboard-hero-date strong {
    font-size: 0.78rem;
    font-weight: 600;

    text-transform: capitalize;
}


/* ==========================================================
   KPIs
========================================================== */

.dashboard-stats {
    display: grid;

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

    gap: 16px;

    margin-bottom: 24px;
}

.dashboard-stat-card {
    position: relative;

    min-height: 165px;

    padding: 20px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 16px;

    display: flex;
    flex-direction: column;

    box-shadow:
            0 1px 3px rgba(15, 23, 42, 0.035);

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

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

    box-shadow:
            0 10px 25px rgba(15, 23, 42, 0.07);
}

.dashboard-stat-top {
    display: flex;
    align-items: center;

    justify-content: space-between;

    margin-bottom: 18px;
}

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

    border-radius: 12px;

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

.dashboard-stat-blue {
    background: #eff6ff;
    color: #2563eb;
}

.dashboard-stat-yellow {
    background: #fffbeb;
    color: #d97706;
}

.dashboard-stat-red {
    background: #fef2f2;
    color: #dc2626;
}

.dashboard-stat-green {
    background: #ecfdf5;
    color: #059669;
}

.dashboard-stat-caption {
    font-size: 0.72rem;
    font-weight: 600;

    color: #94a3b8;

    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dashboard-stat-main {
    display: flex;
    align-items: baseline;

    gap: 7px;

    margin-bottom: 12px;
}

.dashboard-stat-main strong {
    font-size: 2rem;

    line-height: 1;

    letter-spacing: -0.04em;

    color: #0f172a;
}

.dashboard-stat-main span {
    font-size: 0.76rem;

    color: #64748b;
}

.dashboard-stat-link {
    margin-top: auto;

    font-size: 0.75rem;
    font-weight: 600;

    text-decoration: none;

    color: #2563eb;
}

.dashboard-stat-link:hover {
    text-decoration: underline;
}

.dashboard-stat-status {
    margin-top: auto;

    display: inline-flex;

    width: fit-content;

    padding: 4px 8px;

    border-radius: 999px;

    font-size: 0.68rem;
    font-weight: 600;
}

.dashboard-stat-status.status-ok {
    background: #ecfdf5;
    color: #047857;
}

.dashboard-stat-status.status-alert {
    background: #fef2f2;
    color: #b91c1c;
}


/* ==========================================================
   GRIDS
========================================================== */

.dashboard-main-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.7fr)
        minmax(280px, 0.7fr);

    gap: 20px;

    margin-bottom: 20px;
}

.dashboard-secondary-grid {
    display: grid;

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

    gap: 20px;
}


/* ==========================================================
   PAINÉIS
========================================================== */

.dashboard-panel {
    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 17px;

    overflow: hidden;

    box-shadow:
            0 1px 3px rgba(15, 23, 42, 0.035);
}

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

    padding: 20px 22px;

    border-bottom: 1px solid #eef2f7;

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

    gap: 20px;
}

.dashboard-panel-eyebrow {
    display: block;

    margin-bottom: 5px;

    font-size: 0.66rem;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: #2563eb;
}

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

    font-size: 1rem;

    color: #0f172a;
}

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

    font-size: 0.75rem;
    line-height: 1.5;

    color: #94a3b8;
}

.dashboard-panel-link {
    flex-shrink: 0;

    font-size: 0.73rem;
    font-weight: 600;

    text-decoration: none;

    color: #2563eb;
}


/* ==========================================================
   VENCIMENTOS
========================================================== */

.dashboard-deadline-list {
    padding: 4px 22px;
}

.dashboard-deadline-item {
    min-height: 78px;

    display: grid;

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

    align-items: center;

    gap: 14px;

    padding: 12px 0;

    border-bottom: 1px solid #eef2f7;
}

.dashboard-deadline-item:last-child {
    border-bottom: none;
}

.dashboard-deadline-date {
    width: 46px;
    height: 48px;

    border-radius: 11px;

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

    background: #f8fafc;
}

.dashboard-deadline-date strong {
    font-size: 1rem;
    line-height: 1;

    color: #0f172a;
}

.dashboard-deadline-date span {
    margin-top: 3px;

    font-size: 0.58rem;
    font-weight: 700;

    color: #94a3b8;
}

.dashboard-deadline-date.deadline-critical {
    background: #fef2f2;
}

.dashboard-deadline-date.deadline-critical strong,
.dashboard-deadline-date.deadline-critical span {
    color: #dc2626;
}

.dashboard-deadline-date.deadline-warning {
    background: #fffbeb;
}

.dashboard-deadline-date.deadline-warning strong,
.dashboard-deadline-date.deadline-warning span {
    color: #d97706;
}

.dashboard-deadline-info {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 4px;
}

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

    font-size: 0.81rem;

    color: #0f172a;
}

.dashboard-deadline-info span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 0.72rem;

    color: #64748b;
}

.dashboard-deadline-count {
    padding: 5px 8px;

    border-radius: 999px;

    font-size: 0.65rem;
    font-weight: 700;

    white-space: nowrap;

    background: #f1f5f9;
    color: #64748b;
}

.dashboard-deadline-count.deadline-warning {
    background: #fffbeb;
    color: #b45309;
}

.dashboard-deadline-count.deadline-critical {
    background: #fef2f2;
    color: #b91c1c;
}


/* ==========================================================
   RESUMO OPERACIONAL
========================================================== */

.dashboard-overview-content {
    padding: 24px 22px;

    display: flex;
    flex-direction: column;

    gap: 25px;
}

.dashboard-progress-item {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.dashboard-progress-header {
    display: flex;
    justify-content: space-between;

    gap: 12px;

    font-size: 0.74rem;

    color: #64748b;
}

.dashboard-progress-header strong {
    font-size: 0.72rem;

    color: #334155;
}

.dashboard-progress-track {
    width: 100%;
    height: 7px;

    border-radius: 999px;

    background: #eef2f7;

    overflow: hidden;
}

.dashboard-progress-bar {
    height: 100%;

    border-radius: inherit;

    transition:
            width 0.5s ease;
}

.progress-green {
    background: #10b981;
}

.progress-yellow {
    background: #f59e0b;
}

.progress-red {
    background: #ef4444;
}

.dashboard-overview-total {
    padding: 18px 22px;

    border-top: 1px solid #eef2f7;

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

    background: #fafcff;
}

.dashboard-overview-total span {
    font-size: 0.74rem;
    color: #64748b;
}

.dashboard-overview-total strong {
    font-size: 1.25rem;
    color: #0f172a;
}


/* ==========================================================
   DOCUMENTOS RECENTES
========================================================== */

.dashboard-documents-list {
    padding: 4px 22px;
}

.dashboard-document-item {
    min-height: 72px;

    display: grid;

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

    align-items: center;

    gap: 12px;

    padding: 11px 0;

    border-bottom: 1px solid #eef2f7;
}

.dashboard-document-item:last-child {
    border-bottom: none;
}

.dashboard-document-icon {
    width: 38px;
    height: 38px;

    border-radius: 10px;

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

.dashboard-file-pdf {
    background: #fef2f2;
    color: #dc2626;
}

.dashboard-file-word {
    background: #eff6ff;
    color: #2563eb;
}

.dashboard-file-excel {
    background: #ecfdf5;
    color: #059669;
}

.dashboard-file-image {
    background: #f5f3ff;
    color: #7c3aed;
}

.dashboard-file-default {
    background: #f1f5f9;
    color: #64748b;
}

.dashboard-document-info {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

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

    font-size: 0.78rem;

    color: #0f172a;
}

.dashboard-document-info span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 0.69rem;

    color: #64748b;
}

.dashboard-document-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    gap: 3px;
}

.dashboard-document-meta span {
    font-size: 0.59rem;
    font-weight: 700;

    color: #64748b;
}

.dashboard-document-meta small {
    font-size: 0.64rem;

    color: #94a3b8;
}


/* ==========================================================
   QUICK ACTIONS
========================================================== */

.dashboard-quick-actions {
    padding: 10px 22px 18px;

    display: flex;
    flex-direction: column;

    gap: 8px;
}

.dashboard-quick-action {
    min-height: 66px;

    border: 1px solid transparent;
    border-radius: 12px;

    padding: 10px 12px;

    display: grid;

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

    align-items: center;

    gap: 11px;

    text-decoration: none;

    transition:
            background 0.18s ease,
            border-color 0.18s ease,
            transform 0.18s ease;
}

.dashboard-quick-action:hover {
    background: #f8fafc;

    border-color: #e2e8f0;

    transform: translateX(2px);
}

.dashboard-quick-icon {
    width: 38px;
    height: 38px;

    border-radius: 10px;

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

.quick-blue {
    background: #eff6ff;
    color: #2563eb;
}

.quick-yellow {
    background: #fffbeb;
    color: #d97706;
}

.quick-green {
    background: #ecfdf5;
    color: #059669;
}

.dashboard-quick-action > div:nth-child(2) {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

.dashboard-quick-action strong {
    font-size: 0.78rem;

    color: #0f172a;
}

.dashboard-quick-action span {
    font-size: 0.67rem;

    color: #64748b;
}

.dashboard-quick-arrow {
    font-size: 1rem !important;

    color: #94a3b8 !important;
}


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

.dashboard-loading {
    padding: 36px 10px;

    text-align: center;

    font-size: 0.78rem;

    color: #94a3b8;
}

.dashboard-empty-state {
    min-height: 185px;

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

    padding: 28px;

    text-align: center;
}

.dashboard-empty-icon {
    width: 44px;
    height: 44px;

    margin-bottom: 10px;

    border-radius: 12px;

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

    background: #f1f5f9;

    color: #64748b;

    font-size: 1rem;
}

.dashboard-empty-state strong {
    margin-bottom: 4px;

    font-size: 0.82rem;

    color: #334155;
}

.dashboard-empty-state span {
    max-width: 270px;

    font-size: 0.72rem;

    line-height: 1.5;

    color: #94a3b8;
}


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

@media (
max-width: 1180px
) {

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

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


@media (
max-width: 850px
) {

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

    .dashboard-hero-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-hero-date {
        width: 100%;
    }
}


@media (
max-width: 620px
) {

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

    .dashboard-hero-content {
        padding: 24px 20px;
    }

    .dashboard-panel-header {
        padding:
                18px
                16px;
    }

    .dashboard-deadline-list,
    .dashboard-documents-list,
    .dashboard-quick-actions {
        padding-left: 16px;
        padding-right: 16px;
    }

    .dashboard-deadline-item {
        grid-template-columns:
            46px
            minmax(0, 1fr);

        gap: 10px;
    }

    .dashboard-deadline-count {
        grid-column: 2;
        justify-self: flex-start;
    }
}


/* ==========================================================
   EMPRESAS
========================================================== */

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

    gap: 24px;

    margin-bottom: 24px;
}

.empresas-page-heading {
    display: flex;
    align-items: center;

    gap: 16px;
}

.empresas-page-icon {
    width: 50px;
    height: 50px;

    border-radius: 14px;

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

    flex-shrink: 0;

    background: #eff6ff;
    color: #2563eb;
}

.empresas-btn-nova {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    white-space: nowrap;
}


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

.empresas-stats {
    display: grid;

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

    gap: 16px;

    margin-bottom: 24px;
}

.empresa-stat-card {
    min-height: 100px;

    padding: 18px;

    display: flex;
    align-items: center;

    gap: 14px;

    border: 1px solid #e5e7eb;
    border-radius: 16px;

    background: #ffffff;

    box-shadow:
            0 1px 3px rgba(15, 23, 42, 0.04);

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

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

    box-shadow:
            0 8px 25px rgba(15, 23, 42, 0.07);
}

.empresa-stat-icon {
    width: 44px;
    height: 44px;

    border-radius: 12px;

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

    flex-shrink: 0;
}

.empresa-stat-blue {
    background: #eff6ff;
    color: #2563eb;
}

.empresa-stat-green {
    background: #ecfdf5;
    color: #059669;
}

.empresa-stat-purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.empresa-stat-orange {
    background: #fff7ed;
    color: #ea580c;
}

.empresa-stat-card > div:last-child {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.empresa-stat-card span {
    font-size: 0.75rem;

    color: #64748b;
}

.empresa-stat-card strong {
    font-size: 1.55rem;

    line-height: 1.15;

    color: #0f172a;
}


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

.empresa-form-card {
    margin-bottom: 24px;

    padding: 0;

    overflow: hidden;
}

.empresa-form-header {
    padding: 22px 24px;

    border-bottom: 1px solid #e5e7eb;

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

    gap: 20px;
}

.empresa-form-header h2 {
    margin: 0 0 4px;

    font-size: 1.08rem;

    color: #0f172a;
}

.empresa-form-header p {
    margin: 0;

    font-size: 0.82rem;
    line-height: 1.5;

    color: #64748b;
}

.empresa-close-button {
    width: 34px;
    height: 34px;

    border: none;
    border-radius: 8px;

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

    background: transparent;

    font-size: 24px;

    color: #64748b;

    cursor: pointer;
}

.empresa-close-button:hover {
    background: #f1f5f9;
    color: #0f172a;
}

#form-empresa {
    padding: 24px;
}

.empresa-form-grid {
    display: grid;

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

    gap: 18px;
}

.empresa-cliente-field {
    grid-column: span 2;
}

.empresa-form-actions {
    margin-top: 22px;

    padding-top: 20px;

    border-top: 1px solid #e5e7eb;

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

    gap: 10px;
}

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

    gap: 8px;
}


/* ==========================================================
   LISTAGEM
========================================================== */

.empresas-list-card {
    padding: 0;

    overflow: hidden;
}

.empresas-list-header {
    padding: 22px 24px 16px;
}

.empresas-list-header h2 {
    margin: 0 0 4px;

    font-size: 1.05rem;

    color: #0f172a;
}

.empresas-list-header p {
    margin: 0;

    font-size: 0.8rem;

    color: #64748b;
}


/* ==========================================================
   FILTROS
========================================================== */

.empresas-toolbar {
    padding: 0 24px 20px;

    display: grid;

    grid-template-columns:
        minmax(300px, 1fr)
        220px;

    gap: 12px;
}

.empresas-search {
    min-height: 42px;

    padding: 0 13px;

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

    display: flex;
    align-items: center;

    gap: 9px;

    color: #94a3b8;

    background: #ffffff;

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

.empresas-search:focus-within {
    border-color: #2563eb;

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

.empresas-search input {
    width: 100%;

    border: none;
    outline: none;

    background: transparent;

    color: #0f172a;

    font: inherit;
}

.empresas-search input::placeholder {
    color: #94a3b8;
}

.empresas-filter {
    min-height: 42px;

    padding: 0 12px;

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

    background: #ffffff;

    color: #334155;

    font: inherit;

    outline: none;
}

.empresas-filter:focus {
    border-color: #2563eb;

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


/* ==========================================================
   TABELA
========================================================== */

.empresas-table-wrapper {
    border-top: 1px solid #e5e7eb;
}

.empresas-table {
    width: 100%;

    border-collapse: collapse;
}

.empresas-table thead th {
    padding: 12px 18px;

    background: #f8fafc;

    border-bottom: 1px solid #e5e7eb;

    text-align: left;

    font-size: 0.7rem;
    font-weight: 700;

    letter-spacing: 0.04em;
    text-transform: uppercase;

    color: #64748b;
}

.empresas-table tbody td {
    padding: 14px 18px;

    border-bottom: 1px solid #eef2f7;

    vertical-align: middle;

    font-size: 0.82rem;

    color: #334155;
}

.empresas-table tbody tr {
    transition:
            background 0.18s ease;
}

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


/* ==========================================================
   EMPRESA
========================================================== */

.empresa-table-company {
    min-width: 220px;

    display: flex;
    align-items: center;

    gap: 11px;
}

.empresa-avatar {
    width: 40px;
    height: 40px;

    border-radius: 11px;

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

    flex-shrink: 0;

    background:
            linear-gradient(
                    135deg,
                    #dbeafe,
                    #eff6ff
            );

    color: #1d4ed8;

    font-size: 0.7rem;
    font-weight: 700;
}

.empresa-company-info {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

.empresa-company-info strong {
    max-width: 260px;

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

    color: #0f172a;

    font-size: 0.82rem;
}

.empresa-company-info span {
    max-width: 260px;

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

    color: #94a3b8;

    font-size: 0.7rem;
}


/* ==========================================================
   CNPJ
========================================================== */

.empresa-cnpj {
    font-family:
            ui-monospace,
            SFMono-Regular,
            Menlo,
            Monaco,
            Consolas,
            monospace;

    font-size: 0.76rem;

    color: #475569;
}


/* ==========================================================
   REGIMES
========================================================== */

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

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 0.68rem;
    font-weight: 600;

    white-space: nowrap;
}

.regime-simples {
    background: #ecfdf5;
    color: #047857;
}

.regime-mei {
    background: #f5f3ff;
    color: #6d28d9;
}

.regime-presumido {
    background: #fff7ed;
    color: #c2410c;
}

.regime-real {
    background: #eff6ff;
    color: #1d4ed8;
}

.regime-default {
    background: #f1f5f9;
    color: #475569;
}


/* ==========================================================
   CLIENTE
========================================================== */

.empresa-client-cell {
    min-width: 160px;

    display: flex;
    align-items: center;

    gap: 8px;
}

.empresa-client-avatar {
    width: 29px;
    height: 29px;

    border-radius: 50%;

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

    flex-shrink: 0;

    background: #f1f5f9;

    color: #475569;

    font-size: 0.6rem;
    font-weight: 700;
}

.empresa-client-cell span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #475569;
}


/* ==========================================================
   DATA
========================================================== */

.empresa-date {
    color: #64748b;

    font-size: 0.75rem;

    white-space: nowrap;
}


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

.empresas-loading {
    padding: 38px !important;

    text-align: center;

    color: #64748b !important;
}

.empresas-load-error {
    color: #dc2626 !important;
}

.empresas-empty {
    padding: 52px 20px !important;

    text-align: center;
}

.empresas-empty-icon {
    width: 48px;
    height: 48px;

    margin:
            0 auto
            12px;

    border-radius: 13px;

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

    background: #f1f5f9;

    color: #64748b;
}

.empresas-empty strong {
    display: block;

    margin-bottom: 4px;

    color: #334155;
}

.empresas-empty span {
    font-size: 0.76rem;

    color: #94a3b8;
}


/* ==========================================================
   FOOTER
========================================================== */

.empresas-list-footer {
    min-height: 46px;

    padding: 0 24px;

    display: flex;
    align-items: center;

    border-top: 1px solid #eef2f7;

    font-size: 0.75rem;

    color: #64748b;
}


/* ==========================================================
   SPINNER
========================================================== */

.empresa-spinner {
    width: 15px;
    height: 15px;

    border:
            2px solid
            rgba(255, 255, 255, 0.4);

    border-top-color:
            #ffffff;

    border-radius: 50%;

    animation:
            empresa-spin
            0.7s
            linear
            infinite;
}

@keyframes empresa-spin {

    to {
        transform:
                rotate(360deg);
    }
}


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

@media (
max-width: 1100px
) {

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


@media (
max-width: 800px
) {

    .empresas-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .empresas-btn-nova {
        width: 100%;
    }

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

    .empresa-cliente-field {
        grid-column:
                auto;
    }

    .empresas-toolbar {
        grid-template-columns:
            1fr;
    }
}


@media (
max-width: 600px
) {

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

    .empresa-form-header {
        padding:
                18px
                16px;
    }

    #form-empresa {
        padding:
                18px
                16px;
    }

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

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

    .empresas-toolbar,
    .empresas-list-header,
    .empresas-list-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}


/* ==========================================================
   OBRIGAÇÕES
========================================================== */

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

    gap: 24px;

    margin-bottom: 24px;
}

.obrigacoes-page-heading {
    display: flex;
    align-items: center;
    gap: 16px;
}

.obrigacoes-page-icon {
    width: 50px;
    height: 50px;

    border-radius: 14px;

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

    flex-shrink: 0;

    background: #fff7ed;
    color: #ea580c;
}

.obrigacoes-btn-nova {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}


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

.obrigacoes-stats {
    display: grid;

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

    gap: 16px;

    margin-bottom: 24px;
}

.obrigacao-stat-card {
    min-height: 100px;

    padding: 18px;

    display: flex;
    align-items: center;

    gap: 14px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 16px;

    box-shadow:
            0 1px 3px rgba(15, 23, 42, 0.04);

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

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

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

.obrigacao-stat-icon {
    width: 44px;
    height: 44px;

    border-radius: 12px;

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

.obrigacao-stat-blue {
    background: #eff6ff;
    color: #2563eb;
}

.obrigacao-stat-yellow {
    background: #fffbeb;
    color: #d97706;
}

.obrigacao-stat-green {
    background: #ecfdf5;
    color: #059669;
}

.obrigacao-stat-red {
    background: #fef2f2;
    color: #dc2626;
}

.obrigacao-stat-card > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.obrigacao-stat-card span {
    font-size: 0.75rem;
    color: #64748b;
}

.obrigacao-stat-card strong {
    font-size: 1.55rem;
    color: #0f172a;
}


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

.obrigacao-form-card {
    padding: 0;

    margin-bottom: 24px;

    overflow: hidden;
}

.obrigacao-form-header {
    padding: 22px 24px;

    display: flex;
    justify-content: space-between;

    border-bottom: 1px solid #e5e7eb;
}

.obrigacao-form-header h2 {
    margin: 0 0 4px;

    font-size: 1.08rem;

    color: #0f172a;
}

.obrigacao-form-header p {
    margin: 0;

    font-size: 0.82rem;

    color: #64748b;
}

.obrigacao-close-button {
    width: 34px;
    height: 34px;

    border: none;
    border-radius: 8px;

    background: transparent;

    font-size: 24px;

    color: #64748b;

    cursor: pointer;
}

.obrigacao-close-button:hover {
    background: #f1f5f9;
}

#form-obrigacao {
    padding: 24px;
}

.obrigacao-form-grid {
    display: grid;

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

    gap: 18px;
}

.obrigacao-status-field {
    grid-column: span 2;
}

.obrigacao-money-field {
    display: flex;
    align-items: center;

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

    overflow: hidden;

    background: #ffffff;
}

.obrigacao-money-field span {
    padding: 0 12px;

    color: #64748b;

    font-size: 0.82rem;
}

.obrigacao-money-field input {
    border: none !important;

    border-left:
            1px solid
            #e5e7eb !important;

    border-radius: 0 !important;

    box-shadow: none !important;
}

.obrigacao-form-actions {
    margin-top: 22px;

    padding-top: 20px;

    border-top: 1px solid #e5e7eb;

    display: flex;
    justify-content: flex-end;

    gap: 10px;
}


/* ==========================================================
   LISTAGEM
========================================================== */

.obrigacoes-list-card {
    padding: 0;

    overflow: hidden;
}

.obrigacoes-list-header {
    padding: 22px 24px 16px;
}

.obrigacoes-list-header h2 {
    margin: 0 0 4px;

    font-size: 1.05rem;

    color: #0f172a;
}

.obrigacoes-list-header p {
    margin: 0;

    font-size: 0.8rem;

    color: #64748b;
}


/* ==========================================================
   FILTROS
========================================================== */

.obrigacoes-toolbar {
    padding: 0 24px 20px;

    display: grid;

    grid-template-columns:
        minmax(260px, 1fr)
        220px
        180px;

    gap: 12px;
}

.obrigacoes-search {
    min-height: 42px;

    padding: 0 13px;

    display: flex;
    align-items: center;

    gap: 9px;

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

    color: #94a3b8;
}

.obrigacoes-search:focus-within {
    border-color: #2563eb;

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

.obrigacoes-search input {
    width: 100%;

    border: none;
    outline: none;

    background: transparent;
}

.obrigacoes-filter {
    min-height: 42px;

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

    padding: 0 12px;

    background: #ffffff;

    outline: none;
}


/* ==========================================================
   TABELA
========================================================== */

.obrigacoes-table-wrapper {
    border-top: 1px solid #e5e7eb;
}

.obrigacoes-table {
    width: 100%;

    border-collapse: collapse;
}

.obrigacoes-table thead th {
    padding: 12px 18px;

    background: #f8fafc;

    border-bottom: 1px solid #e5e7eb;

    font-size: 0.7rem;
    font-weight: 700;

    text-align: left;

    text-transform: uppercase;
    letter-spacing: 0.04em;

    color: #64748b;
}

.obrigacoes-table tbody td {
    padding: 14px 18px;

    border-bottom: 1px solid #eef2f7;

    font-size: 0.82rem;

    color: #334155;
}

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

.obrigacao-row-atrasada {
    background: #fffafa;
}


/* ==========================================================
   OBRIGAÇÃO
========================================================== */

.obrigacao-main-cell {
    display: flex;
    align-items: center;

    gap: 10px;
}

.obrigacao-type-icon {
    width: 37px;
    height: 37px;

    border-radius: 10px;

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

.obrigacao-type-blue {
    background: #eff6ff;
    color: #2563eb;
}

.obrigacao-type-green {
    background: #ecfdf5;
    color: #059669;
}

.obrigacao-type-purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.obrigacao-type-orange {
    background: #fff7ed;
    color: #ea580c;
}

.obrigacao-main-cell > div:last-child {
    display: flex;
    flex-direction: column;
}

.obrigacao-main-cell strong {
    color: #0f172a;
}

.obrigacao-main-cell span {
    margin-top: 2px;

    font-size: 0.67rem;

    color: #94a3b8;
}


/* ==========================================================
   EMPRESA
========================================================== */

.obrigacao-company {
    min-width: 160px;

    display: flex;
    align-items: center;

    gap: 8px;
}

.obrigacao-company-avatar {
    width: 30px;
    height: 30px;

    border-radius: 8px;

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

    background: #f1f5f9;

    color: #475569;

    font-size: 0.6rem;
    font-weight: 700;
}


/* ==========================================================
   VENCIMENTO
========================================================== */

.obrigacao-vencimento {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.obrigacao-vencimento strong {
    font-size: 0.76rem;

    color: #334155;
}

.obrigacao-vencimento span {
    font-size: 0.65rem;

    font-weight: 600;
}

.prazo-atrasado {
    color: #dc2626;
}

.prazo-hoje {
    color: #dc2626;
}

.prazo-alerta {
    color: #d97706;
}

.prazo-normal {
    color: #64748b;
}

.prazo-ok {
    color: #059669;
}


/* ==========================================================
   VALORES
========================================================== */

.obrigacao-value {
    white-space: nowrap;

    font-size: 0.78rem;

    color: #0f172a;
}


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

.obrigacao-status {
    display: inline-flex;

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 0.68rem;
    font-weight: 600;
}

.status-pendente {
    background: #fffbeb;
    color: #b45309;
}

.status-concluido {
    background: #ecfdf5;
    color: #047857;
}

.status-atrasado {
    background: #fef2f2;
    color: #b91c1c;
}


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

.obrigacoes-loading {
    padding: 38px !important;

    text-align: center;

    color: #64748b !important;
}

.obrigacoes-load-error {
    color: #dc2626 !important;
}

.obrigacoes-empty {
    padding: 52px 20px !important;

    text-align: center;
}

.obrigacoes-empty-icon {
    width: 48px;
    height: 48px;

    margin:
            0 auto
            12px;

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

    border-radius: 13px;

    background: #f1f5f9;

    color: #64748b;
}

.obrigacoes-empty strong {
    display: block;

    margin-bottom: 4px;

    color: #334155;
}

.obrigacoes-empty span {
    font-size: 0.76rem;

    color: #94a3b8;
}


/* ==========================================================
   FOOTER
========================================================== */

.obrigacoes-list-footer {
    min-height: 46px;

    padding: 0 24px;

    display: flex;
    align-items: center;

    border-top: 1px solid #eef2f7;

    font-size: 0.75rem;

    color: #64748b;
}


/* ==========================================================
   SPINNER
========================================================== */

.obrigacao-spinner {
    width: 15px;
    height: 15px;

    display: inline-block;

    margin-right: 7px;

    border:
            2px solid
            rgba(255, 255, 255, 0.4);

    border-top-color: #ffffff;

    border-radius: 50%;

    animation:
            obrigacao-spin
            0.7s
            linear
            infinite;
}

@keyframes obrigacao-spin {

    to {
        transform: rotate(360deg);
    }
}


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

@media (
max-width: 1100px
) {

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

    .obrigacoes-toolbar {
        grid-template-columns:
            1fr
            1fr;
    }

    .obrigacoes-search {
        grid-column: span 2;
    }
}


@media (
max-width: 800px
) {

    .obrigacoes-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .obrigacoes-btn-nova {
        width: 100%;
    }

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

    .obrigacao-status-field {
        grid-column: auto;
    }
}


@media (
max-width: 600px
) {

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

    .obrigacoes-toolbar {
        grid-template-columns:
            1fr;

        padding-left: 16px;
        padding-right: 16px;
    }

    .obrigacoes-search {
        grid-column: auto;
    }

    .obrigacao-form-header,
    #form-obrigacao {
        padding-left: 16px;
        padding-right: 16px;
    }

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

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


/* =========================================================
   CADASTRO PÚBLICO
========================================================= */

.cadastro-body {
    margin: 0;
    min-height: 100vh;
    background:
            radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 35%),
            #f6f8fc;
    font-family: inherit;
}

.cadastro-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    box-sizing: border-box;
}

.cadastro-shell {
    width: 100%;
    max-width: 1180px;
    min-height: 720px;

    display: grid;
    grid-template-columns: 0.92fr 1.08fr;

    background: #ffffff;

    border: 1px solid #e8edf5;
    border-radius: 26px;

    overflow: hidden;

    box-shadow:
            0 30px 80px rgba(15, 23, 42, 0.10);
}


/* =========================================================
   PAINEL ESQUERDO
========================================================= */

.cadastro-brand-panel {
    position: relative;

    display: flex;
    align-items: center;

    padding: 64px;

    overflow: hidden;

    color: #ffffff;

    background:
            linear-gradient(
                    145deg,
                    #0f3d91 0%,
                    #1558c0 45%,
                    #2674e9 100%
            );
}

.cadastro-brand-panel::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    top: -190px;
    right: -180px;

    background:
            rgba(255, 255, 255, 0.07);
}

.cadastro-brand-panel::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    bottom: -170px;
    left: -120px;

    background:
            rgba(255, 255, 255, 0.06);
}

.cadastro-brand-content {
    position: relative;
    z-index: 2;
}

.cadastro-brand-badge {
    width: 50px;
    height: 50px;

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

    margin-bottom: 28px;

    border-radius: 14px;

    color: #ffffff;

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

    background:
            rgba(255, 255, 255, 0.16);

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

    backdrop-filter:
            blur(10px);
}

.cadastro-brand-eyebrow {
    display: block;

    margin-bottom: 12px;

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

    text-transform: uppercase;

    letter-spacing: 1.5px;

    color:
            rgba(255, 255, 255, 0.74);
}

.cadastro-brand-panel h1 {
    margin:
            0 0 20px 0;

    max-width: 430px;

    font-size: 43px;
    line-height: 1.12;

    letter-spacing: -1.5px;

    color: #ffffff;
}

.cadastro-brand-panel > div > p {
    max-width: 460px;

    margin: 0;

    font-size: 16px;
    line-height: 1.7;

    color:
            rgba(255, 255, 255, 0.78);
}


/* =========================================================
   FEATURES
========================================================= */

.cadastro-feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;

    margin-top: 46px;
}

.cadastro-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.cadastro-feature-icon {
    width: 30px;
    height: 30px;

    flex-shrink: 0;

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

    border-radius: 9px;

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

    background:
            rgba(255, 255, 255, 0.15);

    border:
            1px solid rgba(255, 255, 255, 0.16);
}

.cadastro-feature strong {
    display: block;

    margin-bottom: 4px;

    font-size: 14px;

    color: #ffffff;
}

.cadastro-feature span {
    display: block;

    max-width: 330px;

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

    color:
            rgba(255, 255, 255, 0.70);
}


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

.cadastro-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 54px 70px;

    background: #ffffff;
}

.cadastro-form-container {
    width: 100%;
    max-width: 470px;
}

.cadastro-mobile-brand {
    display: none;
}

.cadastro-header {
    margin-bottom: 30px;
}

.cadastro-eyebrow {
    display: block;

    margin-bottom: 8px;

    color: #2563eb;

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

    letter-spacing: 1.3px;

    text-transform: uppercase;
}

.cadastro-header h2 {
    margin: 0;

    font-size: 34px;

    letter-spacing: -0.8px;

    color: #152238;
}

.cadastro-header p {
    margin:
            8px 0 0 0;

    font-size: 14px;

    color: #718096;
}


/* =========================================================
   CAMPOS
========================================================= */

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

.cadastro-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cadastro-field label {
    font-size: 13px;
    font-weight: 700;

    color: #334155;
}

.cadastro-input-wrapper {
    min-height: 50px;

    display: flex;
    align-items: center;

    background: #ffffff;

    border:
            1px solid #dce3ed;

    border-radius: 12px;

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

.cadastro-input-wrapper:focus-within {
    border-color: #3b82f6;

    box-shadow:
            0 0 0 4px rgba(59, 130, 246, 0.09);
}

.cadastro-input-icon {
    width: 46px;

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

    flex-shrink: 0;

    color: #7c8ba1;

    font-size: 14px;
}

.cadastro-input-wrapper input {
    width: 100%;

    min-height: 48px;

    padding:
            0 14px 0 0;

    box-sizing: border-box;

    border: none;
    outline: none;

    background: transparent;

    color: #1e293b;

    font-size: 14px;
}

.cadastro-input-wrapper input::placeholder {
    color: #a6b0bf;
}

.cadastro-password-toggle {
    width: 46px;
    height: 46px;

    flex-shrink: 0;

    border: none;

    background: transparent;

    cursor: pointer;

    opacity: 0.65;

    transition: opacity 0.2s ease;
}

.cadastro-password-toggle:hover {
    opacity: 1;
}

.cadastro-input-invalid {
    color: #dc2626 !important;
}

.cadastro-field-error {
    min-height: 13px;

    color: #dc2626;

    font-size: 11px;
}


/* =========================================================
   FORÇA DA SENHA
========================================================= */

.cadastro-password-meter {
    width: 100%;
    height: 5px;

    overflow: hidden;

    border-radius: 999px;

    background: #edf1f6;
}

.cadastro-password-progress {
    width: 0;
    height: 100%;

    border-radius: inherit;

    background:
            linear-gradient(
                    90deg,
                    #2563eb,
                    #06b6d4
            );

    transition: width 0.25s ease;
}

.cadastro-password-info {
    display: flex;
    justify-content: space-between;

    color: #8491a3;

    font-size: 11px;
}


/* =========================================================
   CHECKBOX
========================================================= */

.cadastro-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    cursor: pointer;

    font-size: 12px;
    line-height: 1.5;

    color: #64748b;
}

.cadastro-checkbox input {
    width: 16px;
    height: 16px;

    margin-top: 1px;

    accent-color: #2563eb;
}


/* =========================================================
   BOTÃO
========================================================= */

.cadastro-submit-button {
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-top: 2px;

    border: none;
    border-radius: 12px;

    cursor: pointer;

    color: #ffffff;

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

    background:
            linear-gradient(
                    135deg,
                    #2563eb,
                    #175cd3
            );

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

    transition:
            transform 0.2s ease,
            box-shadow 0.2s ease,
            opacity 0.2s ease;
}

.cadastro-submit-button:hover:not(:disabled) {
    transform: translateY(-1px);

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

.cadastro-submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}


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

.cadastro-alert {
    margin-bottom: 22px;

    padding: 13px 15px;

    border-radius: 10px;

    font-size: 13px;
    line-height: 1.5;
}

.cadastro-alert-error {
    color: #991b1b;

    background: #fef2f2;

    border:
            1px solid #fecaca;
}

.cadastro-alert-success {
    color: #166534;

    background: #f0fdf4;

    border:
            1px solid #bbf7d0;
}


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

.cadastro-divider {
    display: flex;
    align-items: center;
    gap: 14px;

    margin:
            28px 0 18px 0;
}

.cadastro-divider span {
    height: 1px;

    flex: 1;

    background: #e8edf4;
}

.cadastro-divider p {
    margin: 0;

    color: #98a3b3;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 0.7px;
}

.cadastro-login-link {
    min-height: 48px;

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

    border:
            1px solid #dce3ed;

    border-radius: 12px;

    text-decoration: none;

    color: #334155;

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

    background: #ffffff;

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

.cadastro-login-link:hover {
    color: #2563eb;

    background: #f8fbff;

    border-color: #bfdbfe;
}


/* =========================================================
   FOOTER
========================================================= */

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

    margin-top: 32px;

    color: #9aa6b6;

    font-size: 10px;
}


/* =========================================================
   LOADING
========================================================= */

.cadastro-spinner {
    width: 15px;
    height: 15px;

    border:
            2px solid rgba(255, 255, 255, 0.35);

    border-top-color: #ffffff;

    border-radius: 50%;

    animation:
            cadastro-spin 0.7s linear infinite;
}

@keyframes cadastro-spin {

    to {
        transform: rotate(360deg);
    }
}

.cadastro-hidden {
    display: none !important;
}


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

@media (max-width: 900px) {

    .cadastro-page {
        padding: 20px;
    }

    .cadastro-shell {
        max-width: 620px;

        display: block;

        min-height: auto;
    }

    .cadastro-brand-panel {
        display: none;
    }

    .cadastro-form-panel {
        padding: 46px;
    }

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

        margin-bottom: 36px;

        color: #1e293b;

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

    .cadastro-mobile-brand .cadastro-brand-badge {
        width: 42px;
        height: 42px;

        margin: 0;

        color: #ffffff;

        background:
                linear-gradient(
                        135deg,
                        #2563eb,
                        #174ea6
                );
    }
}

@media (max-width: 560px) {

    .cadastro-page {
        padding: 0;

        background: #ffffff;
    }

    .cadastro-shell {
        min-height: 100vh;

        border: none;
        border-radius: 0;

        box-shadow: none;
    }

    .cadastro-form-panel {
        padding:
                30px 22px;
    }

    .cadastro-header h2 {
        font-size: 29px;
    }

    .cadastro-footer {
        flex-direction: column;
        gap: 6px;

        align-items: flex-start;
    }
}



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

.login-page {
    margin: 0;
    min-height: 100vh;
    background: #f6f8fc;
    font-family:
            Inter,
            system-ui,
            -apple-system,
            BlinkMacSystemFont,
            "Segoe UI",
            sans-serif;
    color: #172033;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns:
        minmax(460px, 1fr)
        minmax(460px, 0.95fr);
}


/* ============================================================
   BRAND PANEL
============================================================ */

.login-brand-panel {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 64px;
    background:
            radial-gradient(
                    circle at 15% 10%,
                    rgba(96, 165, 250, 0.35),
                    transparent 35%
            ),
            radial-gradient(
                    circle at 90% 90%,
                    rgba(37, 99, 235, 0.35),
                    transparent 35%
            ),
            linear-gradient(
                    145deg,
                    #071a3a 0%,
                    #0b2d63 48%,
                    #1552a0 100%
            );
    color: #ffffff;
}

.login-brand-panel::before {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    top: -210px;
    right: -120px;
}

.login-brand-panel::after {
    content: "";
    position: absolute;
    width: 290px;
    height: 290px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    bottom: -150px;
    left: -80px;
}

.login-brand-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}

.login-brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 92px;
}

.login-brand-logo-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
}

.login-brand-logo strong,
.login-mobile-brand strong {
    display: block;
    font-size: 17px;
    font-weight: 750;
}

.login-brand-logo span,
.login-mobile-brand span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.68);
}

.login-brand-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #93c5fd;
}

.login-brand-copy h1 {
    max-width: 620px;
    margin: 0;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 780;
}

.login-brand-copy p {
    max-width: 600px;
    margin: 24px 0 0;
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.72);
}

.login-benefits {
    display: grid;
    gap: 22px;
    margin-top: 52px;
}

.login-benefit-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.login-benefit-icon {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: rgba(96, 165, 250, 0.17);
    border: 1px solid rgba(147, 197, 253, 0.22);
    color: #bfdbfe;
    font-size: 14px;
    font-weight: 800;
}

.login-benefit-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.login-benefit-item span {
    display: block;
    max-width: 480px;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.66);
}

.login-brand-footer {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 72px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
}


/* ============================================================
   FORM PANEL
============================================================ */

.login-form-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
    background: #f8fafc;
}

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

.login-mobile-brand {
    display: none;
}

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

.login-form-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    margin-bottom: 15px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.login-form-header h2 {
    margin: 0;
    font-size: 34px;
    letter-spacing: -0.035em;
    color: #172033;
}

.login-form-header p {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
}


/* ============================================================
   ALERT
============================================================ */

.login-alert {
    margin-bottom: 20px;
    border-radius: 10px;
}


/* ============================================================
   FORM
============================================================ */

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

.login-field {
    display: grid;
    gap: 8px;
}

.login-field label {
    font-size: 13px;
    font-weight: 650;
    color: #344054;
}

.login-field-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-input-wrapper {
    position: relative;
}

.login-input-wrapper input {
    width: 100%;
    box-sizing: border-box;
    height: 52px;
    padding:
            0
            46px
            0
            44px;
    border: 1px solid #d9e0ea;
    border-radius: 11px;
    outline: none;
    background: #ffffff;
    font-size: 14px;
    color: #182230;
    transition:
            border-color 0.18s ease,
            box-shadow 0.18s ease,
            background 0.18s ease;
}

.login-input-wrapper input::placeholder {
    color: #98a2b3;
}

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

.login-input-wrapper input:focus {
    border-color: #3b82f6;
    box-shadow:
            0 0 0 4px rgba(59, 130, 246, 0.1);
}

.login-input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    color: #94a3b8;
    pointer-events: none;
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition:
            background 0.18s ease,
            color 0.18s ease;
}

.login-password-toggle:hover {
    background: #f1f5f9;
    color: #475569;
}


/* ============================================================
   SUBMIT
============================================================ */

.login-submit-button {
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
    border: 0;
    border-radius: 11px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background:
            linear-gradient(
                    135deg,
                    #2563eb,
                    #1d4ed8
            );
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow:
            0 10px 25px rgba(37, 99, 235, 0.16);
    transition:
            transform 0.18s ease,
            box-shadow 0.18s ease,
            opacity 0.18s ease;
}

.login-submit-button:hover {
    transform: translateY(-1px);
    box-shadow:
            0 14px 30px rgba(37, 99, 235, 0.22);
}

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

.login-submit-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}


/* ============================================================
   REGISTER
============================================================ */

.login-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 30px 0 22px;
}

.login-divider span {
    height: 1px;
    background: #e4e7ec;
}

.login-divider p {
    margin: 0;
    color: #98a2b3;
    font-size: 12px;
}

.login-register {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    font-size: 13px;
}

.login-register p {
    margin: 0;
    color: #667085;
}

.login-register-link {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.login-register-link:hover {
    text-decoration: underline;
}

.login-security-note {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 30px;
    color: #98a2b3;
    font-size: 11px;
}


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

@media (max-width: 980px) {

    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        min-height: 100vh;
        padding: 32px 22px;
    }

    .login-mobile-brand {
        display: flex;
        align-items: center;
        gap: 13px;
        margin-bottom: 52px;
    }

    .login-mobile-brand .login-brand-logo-icon {
        background: #2563eb;
        border: 0;
    }

    .login-mobile-brand strong {
        color: #172033;
    }

    .login-mobile-brand span {
        color: #667085;
    }

}

@media (max-width: 520px) {

    .login-form-panel {
        align-items: flex-start;
        padding: 26px 20px;
    }

    .login-mobile-brand {
        margin-bottom: 42px;
    }

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

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

}


.modal-pix-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.58);
    z-index: 9999;
}

.modal-pix-backdrop.ativo {
    display: flex;
}

.modal-pix {
    width: min(560px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
}

.modal-pix-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.modal-pix-header h2 {
    margin: 0 0 6px;
}

.modal-pix-header p {
    margin: 0;
    opacity: 0.7;
}

.modal-pix-fechar {
    border: 0;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

.pix-modal-status {
    margin-top: 20px;
}

.pix-modal-qr {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

.pix-modal-qr img {
    width: 100%;
    max-width: 260px;
    border-radius: 12px;
}

.pix-modal-codigo-container {
    margin-top: 20px;
}

.pix-modal-codigo-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

#pix-modal-codigo {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    padding: 12px;
    border: 1px solid #d8dde6;
    border-radius: 8px;
    box-sizing: border-box;
}

.btn-pix-copiar {
    margin-top: 10px;
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.pix-modal-detalhes {
    margin-top: 20px;
}

.pix-modal-detalhes > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #edf0f4;
}

.btn-pagar-pix {
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}