        :root {
            --primary: #0087ff;
            --primary-dark: #005fcc;
            --primary-glow: #0087ff30;
            --secondary: #ff9c00;
            --secondary-dark: #cc7a00;
            --secondary-glow: #ff9c0025;
            --bg: #eef2f8;
            --card: #ffffff;
            --sidebar: #08111f;
            --sidebar-border: rgba(255, 255, 255, 0.06);
            --text: #0f1c2e;
            --text-muted: #6b7fa3;
            --text-light: #a8b5cc;
            --border: #e3e9f4;
            --success: #00c47a;
            --danger: #ff4560;
            --radius: 14px;
            --radius-sm: 8px;
            --shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
            --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.13);
            --sidebar-w: 248px;
            --sidebar-mini: 64px;
            --topbar-h: 60px;
            --ease: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        }

        *,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html,
        body {
            height: 100%;
        }

        a,
        s,
        strike,
        del {
            text-decoration: none;
        }

        body {
            font-family: 'DM Sans', sans-serif;
            background: var(--bg);
            color: var(--text);
            overflow: hidden;
        }

        button {
            cursor: pointer;
            border: none;
            background: none;
            font-family: inherit;
        }

        .layout {
            display: flex;
            height: 100vh;
            overflow: hidden;
            position: relative;
        }

        .sidebar-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(8, 17, 31, 0.6);
            backdrop-filter: blur(3px);
            z-index: 199;
            opacity: 0;
            transition: opacity var(--ease);
            pointer-events: none;
        }

        .sidebar-overlay.show {
            opacity: 1;
            pointer-events: auto;
        }

        .sidebar {
            width: var(--sidebar-w);
            min-width: var(--sidebar-w);
            background: var(--sidebar);
            display: flex;
            flex-direction: column;
            transition: width var(--ease), min-width var(--ease), transform var(--ease);
            overflow: hidden;
            z-index: 200;
            position: relative;
            flex-shrink: 0;
        }

        .sidebar::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 1px;
            height: 100%;
            background: var(--sidebar-border);
        }

        .sidebar.collapsed {
            width: var(--sidebar-mini);
            min-width: var(--sidebar-mini);
        }

        .sidebar.collapsed .logo-text,
        .sidebar.collapsed .sidebar-toggle-txt,
        .sidebar.collapsed .user-info,
        .sidebar.collapsed .user-sync,
        .sidebar.collapsed .nav-label,
        .sidebar.collapsed .nav-arrow,
        .sidebar.collapsed .sec-title,
        .sidebar.collapsed .submenu {
            display: none !important;
        }

        .sidebar.collapsed .sidebar-user {
            display: flex;
            justify-content: center;
            padding: 12px !important;
        }

        .sidebar.collapsed .sidebar-logo {
            justify-content: center;
            padding: 20px 12px !important;
            gap: 0 !important;
        }

        .sidebar.collapsed .nav-item {
            justify-content: center;
            padding: 10px !important;
        }

        .sidebar-logo {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 20px 16px 20px 18px;
            border-bottom: 1px solid var(--sidebar-border);
            overflow: hidden;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .logo-icon {
            width: 36px;
            height: 36px;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Syne', sans-serif;
            font-weight: 800;
            font-size: 11px;
            color: #fff;
            flex-shrink: 0;
            box-shadow: 0 4px 14px var(--primary-glow);
        }

        .logo-text {
            flex: 1;
            overflow: hidden;
        }

        .lt-title {
            display: block;
            font-family: 'Syne', sans-serif;
            font-weight: 800;
            font-size: 15px;
            color: #fff;
            line-height: 1;
        }

        .lt-sub {
            font-size: 11px;
            font-weight: 600;
            color: var(--secondary);
        }

        .sidebar-toggle {
            width: 28px;
            height: 28px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.06);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-light);
            font-size: 12px;
            flex-shrink: 0;
            transition: background var(--ease);
        }

        .sidebar-toggle:hover {
            background: rgba(255, 255, 255, 0.14);
            color: #fff;
        }

        .sidebar-close {
            display: none;
            width: 30px;
            height: 30px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.06);
            align-items: center;
            justify-content: center;
            color: var(--text-light);
            font-size: 15px;
            flex-shrink: 0;
            transition: background var(--ease);
            margin-left: auto;
        }

        .sidebar-close:hover {
            background: rgba(255, 69, 96, 0.2);
            color: var(--danger);
        }

        .sidebar-user {
            padding: 16px 18px;
            border-bottom: 1px solid var(--sidebar-border);
            overflow: hidden;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Syne', sans-serif;
            font-weight: 800;
            font-size: 16px;
            color: #fff;
            flex-shrink: 0;
            box-shadow: 0 4px 12px rgba(0, 135, 255, 0.35);
        }

        .user-info {
            margin-top: 10px;
        }

        .user-name {
            font-weight: 600;
            font-size: 13px;
            color: #fff;
            display: block;
        }

        .user-company {
            font-size: 11px;
            color: var(--text-muted);
            display: block;
            margin-top: 2px;
        }

        .user-sync {
            margin-top: 8px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 10px;
            color: var(--secondary);
            background: var(--secondary-glow);
            padding: 3px 8px;
            border-radius: 20px;
        }

        .sidebar-nav {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 12px 10px;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .sidebar-nav::-webkit-scrollbar {
            width: 3px;
        }

        .sidebar-nav::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 99px;
        }

        .sec-title {
            font-size: 10px;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.25);
            letter-spacing: 1.2px;
            text-transform: uppercase;
            padding: 14px 8px 6px;
            white-space: nowrap;
            overflow: hidden;
        }

        .nav-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 12px;
            border-radius: var(--radius-sm);
            color: rgba(255, 255, 255, 0.55);
            font-size: 13px;
            font-weight: 500;
            transition: all var(--ease);
            white-space: nowrap;
            overflow: hidden;
            width: 100%;
            text-align: left;
        }

        .nav-item:hover {
            background: rgba(255, 255, 255, 0.06);
            color: #fff;
        }

        .nav-item.active {
            background: var(--primary);
            color: #fff;
            box-shadow: 0 4px 16px var(--primary-glow);
        }

        .nav-item.danger {
            color: #ff6b6b;
        }

        .nav-item.danger:hover {
            background: rgba(255, 69, 96, 0.12);
            color: var(--danger);
        }

        .nav-icon {
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            flex-shrink: 0;
        }

        .nav-label {
            flex: 1;
        }

        .nav-arrow {
            font-size: 10px;
            transition: transform var(--ease);
            color: rgba(255, 255, 255, 0.3);
            flex-shrink: 0;
        }

        .nav-arrow.open {
            transform: rotate(90deg);
        }

        .submenu {
            overflow: hidden;
            max-height: 0;
            transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .submenu.open {
            max-height: 500px;
            overflow: clip;
        }

        .sub-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 7px 12px 7px 42px;
            border-radius: var(--radius-sm);
            color: rgba(255, 255, 255, 0.45);
            font-size: 12.5px;
            font-weight: 400;
            transition: all var(--ease);
            cursor: pointer;
            white-space: nowrap;
        }

        .sub-item:hover {
            background: rgba(255, 255, 255, 0.05);
            color: #fff;
        }

        .sub-item.active {
            color: var(--primary);
            font-weight: 600;
        }

        .sub-item::before {
            content: '';
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: currentColor;
            opacity: 0.5;
            flex-shrink: 0;
        }

        .sidebar-footer {
            padding: 12px 10px;
            border-top: 1px solid var(--sidebar-border);
            flex-shrink: 0;
        }

        .main {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            min-width: 0;
        }

        .topbar {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 0 20px;
            height: var(--topbar-h);
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border);
            flex-shrink: 0;
            z-index: 10;
        }

        .hamburger {
            display: none;
            width: 38px;
            height: 38px;
            border-radius: var(--radius-sm);
            background: var(--bg);
            border: 1px solid var(--border);
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            font-size: 16px;
            flex-shrink: 0;
            transition: all var(--ease);
        }

        .hamburger:hover {
            background: var(--primary);
            color: #fff;
            border-color: var(--primary);
        }

        .topbar-title {
            font-family: 'Syne', sans-serif;
            font-weight: 800;
            font-size: 20px;
            color: var(--text);
            flex: 1;
        }

        .topbar-title span {
            color: var(--primary);
        }

        .topbar-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .topbar-btn {
            width: 38px;
            height: 38px;
            border-radius: var(--radius-sm);
            background: var(--bg);
            border: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            font-size: 15px;
            transition: all var(--ease);
            position: relative;
        }

        .topbar-btn:hover {
            background: var(--primary);
            color: #fff;
            border-color: var(--primary);
        }

        .topbar-btn.notif::after {
            content: '3';
            position: absolute;
            top: -4px;
            right: -4px;
            width: 16px;
            height: 16px;
            background: var(--secondary);
            border-radius: 50%;
            font-size: 9px;
            font-weight: 700;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .topbar-avatar {
            width: 38px;
            height: 38px;
            border-radius: var(--radius-sm);
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            color: #fff;
            font-family: 'Syne', sans-serif;
            font-size: 14px;
            cursor: pointer;
            box-shadow: 0 2px 10px var(--primary-glow);
            flex-shrink: 0;
        }

        .content {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 22px;
        }

        .content::-webkit-scrollbar {
            width: 5px;
        }

        .content::-webkit-scrollbar-thumb {
            background: var(--border);
            border-radius: 99px;
        }

        .section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 14px;
            flex-wrap: wrap;
            gap: 8px;
        }

        .section-heading {
            display: flex;
            align-items: center;
            gap: 10px;
            font-family: 'Syne', sans-serif;
            font-weight: 800;
            font-size: 18px;
            color: var(--text);
        }

        .s-icon {
            width: 32px;
            height: 32px;
            border-radius: 9px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            flex-shrink: 0;
        }

        .s-icon.blue {
            background: rgba(0, 135, 255, 0.12);
            color: var(--primary);
        }

        .s-icon.orange {
            background: rgba(255, 156, 0, 0.12);
            color: var(--secondary);
        }

        .s-icon.red {
            background: rgba(196, 0, 0, 0.12);
            color: var(--danger);
        }

        .s-icon.green {
            background: rgba(0, 196, 122, 0.12);
            color: var(--success);
        }

        .badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
        }

        .badge-green {
            background: rgba(0, 196, 122, 0.12);
            color: var(--success);
        }

        .badge-orange {
            background: rgba(255, 156, 0, 0.12);
            color: var(--secondary);
        }

        .badge-red {
            background: rgba(255, 69, 96, 0.12);
            color: var(--danger);
        }

        .badge-blue {
            background: rgba(0, 135, 255, 0.12);
            color: var(--primary);
        }

        .badge-gray {
            background: rgba(107, 127, 163, 0.12);
            color: var(--text-muted);
        }

        .badge-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: currentColor;
            animation: pulse 2s infinite;
            flex-shrink: 0;
        }

        /* ══════════════════════════════════════════════
   SALES CARDS
══════════════════════════════════════════════ */
        .sales-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 14px;
        }

        .sales-card {
            border-radius: var(--radius);
            padding: 18px 20px;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 14px;
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow);
            animation: slideUp 0.4s ease both;
            transition: transform var(--ease), box-shadow var(--ease);
        }

        .sales-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

        .sales-card::after {
            content: '';
            position: absolute;
            right: -20px;
            bottom: -20px;
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
        }

        .sales-card::before {
            content: '';
            position: absolute;
            right: 10px;
            top: -30px;
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.06);
        }

        .sales-card.pink {
            background: linear-gradient(135deg, #f5518c, #d6396e);
        }

        .sales-card.teal {
            background: linear-gradient(135deg, #00b4d8, #0077b6);
        }

        .sales-card.orange {
            background: linear-gradient(135deg, var(--secondary), #e07000);
        }

        .sales-card.green {
            background: linear-gradient(135deg, #52c47a, #38a05a);
        }

        .sc-icon {
            width: 46px;
            height: 46px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
            z-index: 1;
        }

        .sc-info {
            z-index: 1;
            min-width: 0;
        }

        .sc-label {
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
            opacity: 0.85;
            margin-bottom: 4px;
        }

        .sc-value {
            font-family: 'Syne', sans-serif;
            font-weight: 800;
            font-size: 22px;
            line-height: 1;
        }

        .dfe-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
        }

        .dfe-card {
            background: var(--card);
            border-radius: var(--radius);
            padding: 22px;
            box-shadow: var(--shadow);
            border: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            gap: 14px;
            position: relative;
            overflow: hidden;
            animation: slideUp 0.4s ease both;
            transition: transform var(--ease), box-shadow var(--ease);
        }

        .dfe-card:hover {
            transform: translateY(-1px);
            box-shadow: var(--shadow-lg);
        }

        .dfe-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
        }

        .dfe-card.nfe::before {
            background: linear-gradient(90deg, var(--primary), #00d4ff);
        }

        .dfe-card.cte::before {
            background: linear-gradient(90deg, var(--secondary), #ffcc00);
        }

        .dfe-card.nfse::before {
            background: linear-gradient(90deg, #a855f7, #ec4899);
        }

        .dfe-card.coming-soon {
            opacity: 0.7;
        }

        .dfe-card-top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 10px;
        }

        .dfe-logo {
            font-family: 'Syne', sans-serif;
            font-weight: 900;
            font-size: 16px;
            border-radius: 12px;
            width: 64px;
            height: 64px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .dfe-logo.nfe {
            color: var(--primary);
            background: rgba(0, 135, 255, 0.08);
        }

        .dfe-logo.cte {
            color: var(--secondary);
            background: rgba(255, 156, 0, 0.08);
        }

        .dfe-logo.nfse {
            color: #a855f7;
            background: rgba(168, 85, 247, 0.08);
        }

        .dfe-num {
            font-family: 'Syne', sans-serif;
            font-weight: 800;
            font-size: 44px;
            color: var(--text);
            line-height: 1;
            letter-spacing: -2px;
            text-align: right;
        }

        .dfe-desc {
            font-size: 12px;
            color: var(--text-muted);
            line-height: 1.5;
        }

        .dfe-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 11px 16px;
            border-radius: var(--radius-sm);
            font-size: 13px;
            font-weight: 600;
            transition: all var(--ease);
            color: #fff;
            cursor: pointer;
        }

        .dfe-btn.nfe {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            box-shadow: 0 4px 16px var(--primary-glow);
        }

        .dfe-btn.cte {
            background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
            box-shadow: 0 4px 16px var(--secondary-glow);
        }

        .dfe-btn.nfse {
            background: linear-gradient(135deg, #a855f7, #7c3aed);
            box-shadow: 0 4px 16px rgba(168, 85, 247, 0.25);
        }

        .dfe-btn.off {
            background: #e3e9f4;
            color: var(--text-muted);
            box-shadow: none;
            cursor: not-allowed;
        }

        .dfe-btn:hover:not(.off) {
            transform: translateY(-1px);
            filter: brightness(1.06);
        }

        .company-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 14px;
        }

        .company-card {
            background: var(--card);
            border-radius: var(--radius);
            padding: 18px;
            box-shadow: var(--shadow);
            border: 1px solid var(--border);
            animation: slideUp 0.4s ease both;
            transition: all var(--ease);
        }

        .company-card:hover {
            box-shadow: var(--shadow-lg);
            transform: translateY(-1px);
        }

        .cc-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            margin-bottom: 12px;
        }

        .cc-name {
            font-family: 'Syne', sans-serif;
            font-weight: 700;
            font-size: 14px;
            color: var(--text);
        }

        .cc-cnpj {
            font-size: 11px;
            color: var(--text-muted);
            margin-top: 2px;
        }

        .cc-info-btn {
            width: 30px;
            height: 30px;
            border-radius: 8px;
            background: var(--bg);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-size: 14px;
            transition: all var(--ease);
            flex-shrink: 0;
        }

        .cc-info-btn:hover {
            background: var(--primary);
            color: #fff;
        }

        .cc-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 12px;
        }

        .cc-meta {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 6px;
            padding-top: 12px;
            border-top: 1px solid var(--border);
        }

        .cc-meta-item {
            font-size: 11px;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .info-alert {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            background: rgba(0, 135, 255, 0.06);
            border: 1px solid rgba(0, 135, 255, 0.15);
            border-radius: var(--radius-sm);
            font-size: 12.5px;
            color: var(--primary);
            margin-bottom: 14px;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            border-radius: var(--radius-sm);
            font-size: 13px;
            font-weight: 600;
            transition: all var(--ease);
            cursor: pointer;
        }

        .btn-primary {
            background: var(--primary);
            color: #fff;
            box-shadow: 0 2px 12px var(--primary-glow);
        }

        .btn-primary:hover {
            background: var(--primary-dark);
            transform: translateY(-1px);
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px)
            }

            to {
                opacity: 1;
                transform: translateY(0)
            }
        }

        @keyframes pulse {

            0%,
            100% {
                opacity: 1
            }

            50% {
                opacity: 0.4
            }
        }

        @keyframes spin {
            to {
                transform: rotate(360deg)
            }
        }

        .dfe-card {
            animation-delay: calc(var(--i, 0)*0.08s);
        }

        .sales-card {
            animation-delay: calc(var(--i, 0)*0.07s);
        }

        .company-card {
            animation-delay: calc(var(--i, 0)*0.09s);
        }

        @media (max-width:1100px) {
            .dfe-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .sales-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width:768px) {
            body {
                overflow-y: auto;
            }

            .layout {
                flex-direction: row;
                height: 100vh;
                overflow: hidden;
            }

            .sidebar {
                position: fixed !important;
                top: 0;
                left: 0;
                bottom: 0;
                height: 100% !important;
                width: var(--sidebar-w) !important;
                min-width: var(--sidebar-w) !important;
                transform: translateX(-110%);
                box-shadow: none;
            }

            .sidebar.mobile-open {
                transform: translateX(0);
                box-shadow: 4px 0 40px rgba(0, 0, 0, 0.35);
            }

            .sidebar.collapsed {
                width: var(--sidebar-w) !important;
                min-width: var(--sidebar-w) !important;
            }

            .sidebar.collapsed .logo-text,
            .sidebar.collapsed .user-info,
            .sidebar.collapsed .user-sync,
            .sidebar.collapsed .nav-label,
            .sidebar.collapsed .nav-arrow,
            .sidebar.collapsed .sec-title {
                display: block !important;
            }

            .sidebar.collapsed .submenu {
                display: block !important;
            }

            .sidebar.collapsed .sidebar-user {
                display: block !important;
                padding: 16px 18px !important;
            }

            .sidebar.collapsed .sidebar-logo {
                justify-content: flex-start !important;
                padding: 20px 16px 20px 18px !important;
                gap: 12px !important;
            }

            .sidebar.collapsed .nav-item {
                justify-content: flex-start !important;
                padding: 9px 12px !important;
            }

            .sidebar-overlay {
                display: block;
            }

            .hamburger {
                display: flex;
            }

            .sidebar-toggle {
                display: none !important;
            }

            .sidebar-close {
                display: flex !important;
            }

            .main {
                width: 100%;
                flex: 1;
            }

            .content {
                padding: 14px;
                gap: 16px;
            }

            .topbar {
                padding: 0 14px;
            }

            .topbar-title {
                font-size: 17px;
            }

            .sales-grid {
                grid-template-columns: 1fr 1fr;
                gap: 10px;
            }

            .dfe-grid {
                grid-template-columns: 1fr;
            }

            .company-grid {
                grid-template-columns: 1fr;
            }

            .dfe-num {
                font-size: 36px;
            }

            .sc-value {
                font-size: 18px;
            }

            .section-heading {
                font-size: 16px;
            }
        }

        @media (max-width:420px) {
            .sales-grid {
                grid-template-columns: 1fr;
            }

            .topbar-btn:not(.notif) {
                display: none;
            }

            .topbar-btn.notif {
                display: flex;
            }
        }


        .meus-dados-form {
            background: var(--card);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            border: 1px solid var(--border);
            overflow: hidden;
        }

        .meus-dados-tab {
            padding: 0 24px;
            border-bottom: 1px solid var(--border);
            display: flex;
        }

        .meus-dados-tab button {
            padding: 16px 20px;
            font-size: 13px;
            font-weight: 600;
            color: var(--primary);
            border-bottom: 2px solid var(--primary);
            background: none;
            border-top: none;
            border-left: none;
            border-right: none;
            cursor: pointer;
            font-family: inherit;
        }

        .meus-dados-body {
            padding: 32px 40px;
            display: flex;
            flex-direction: column;
        }

        .form-row {
            display: grid;
            grid-template-columns: 200px 1fr;
            align-items: center;
            padding: 16px 0;
            border-bottom: 1px solid var(--border);
            gap: 12px;
        }

        .form-row:last-child {
            border-bottom: none;
            padding-top: 24px;
        }

        .form-row label {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-muted);
            text-align: right;
            padding-right: 32px;
        }

        .form-row .field-wrap {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .form-input {
            width: 100%;
            border: none;
            border-bottom: 2px solid var(--border);
            padding: 6px 0;
            font-size: 13px;
            color: var(--text);
            background: transparent;
            outline: none;
            font-family: inherit;
            transition: border-color var(--ease);
        }

        .form-input:focus {
            border-bottom-color: var(--primary);
        }

        .form-input[readonly] {
            color: var(--text-muted);
            cursor: default;
        }

        .form-input::placeholder {
            color: var(--text-light);
        }

        .btn-gravar {
            width: 100%;
            background: var(--success);
            color: #fff;
            padding: 13px 32px;
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 1.2px;
            text-transform: uppercase;
            border-radius: var(--radius-sm);
            border: none;
            cursor: pointer;
            font-family: inherit;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 4px 16px rgba(0, 196, 122, 0.3);
            transition: filter var(--ease), transform var(--ease);
        }

        .btn-gravar:hover {
            filter: brightness(1.08);
            transform: translateY(-1px);
        }

        @media (max-width: 768px) {
            .meus-dados-body {
                padding: 20px 16px;
            }

            .form-row {
                grid-template-columns: 1fr;
                padding: 14px 0;
                gap: 6px;
            }

            .form-row label {
                text-align: left;
                padding-right: 0;
                font-size: 11px;
                text-transform: uppercase;
                letter-spacing: 0.8px;
                color: var(--text-light);
            }

            .form-row:last-child {
                padding-top: 20px;
            }
        }

        .auth-wrap {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
            background: linear-gradient(307deg, var(--primary), var(--primary-dark));
            position: relative;
            overflow: hidden;
        }

        .auth-wrap::before {
            content: '';
            position: absolute;
            width: 480px;
            height: 480px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(0, 135, 255, 0.10) 0%, transparent 70%);
            top: -120px;
            right: -100px;
            pointer-events: none;
        }

        .auth-wrap::after {
            content: '';
            position: absolute;
            width: 340px;
            height: 340px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(255, 156, 0, 0.09) 0%, transparent 70%);
            bottom: -80px;
            left: -80px;
            pointer-events: none;
        }

        .auth-card {
            background: var(--card);
            border-radius: 20px;
            border: 1px solid var(--border);
            box-shadow: var(--shadow-lg);
            width: 100%;
            max-width: 440px;
            overflow: hidden;
            animation: slideUp 0.45s cubic-bezier(0.4, 0, 0.2, 1) both;
            position: relative;
            z-index: 1;
        }

        .auth-card::before {
            content: '';
            display: block;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), #00d4ff);
        }

        .auth-header {
            padding: 32px 36px 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .auth-logo {
            width: 52px;
            height: 52px;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Syne', sans-serif;
            font-weight: 800;
            font-size: 13px;
            color: #fff;
            box-shadow: 0 6px 20px var(--primary-glow);
            margin-bottom: 16px;
        }

        .auth-title {
            font-family: 'Syne', sans-serif;
            font-weight: 800;
            font-size: 22px;
            color: var(--text);
            line-height: 1.2;
            margin-bottom: 6px;
        }

        .auth-subtitle {
            font-size: 13px;
            color: var(--text-muted);
        }

        .auth-body {
            padding: 28px 36px 32px;
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

        .auth-field {
            display: flex;
            flex-direction: column;
            gap: 7px;
            margin: 10px 0px;
        }

        .auth-field label {
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.9px;
            color: var(--text-muted);
        }

        .auth-input-wrap {
            position: relative;
        }

        .auth-input-wrap i {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 13px;
            color: var(--text-light);
            pointer-events: none;
            transition: color var(--ease);
        }

        .auth-input {
            width: 100%;
            height: 46px;
            padding: 0 14px 0 40px;
            border: 1.5px solid var(--border);
            border-radius: var(--radius-sm);
            font-size: 13.5px;
            color: var(--text);
            background: var(--bg);
            font-family: inherit;
            outline: none;
            transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
        }

        .auth-input:focus {
            border-color: var(--primary);
            background: #fff;
            box-shadow: 0 0 0 3px rgba(0, 135, 255, 0.10);
        }

        .auth-input:focus+i,
        .auth-input-wrap:focus-within i {
            color: var(--primary);
        }

        .auth-input-wrap:focus-within i {
            color: var(--primary);
        }

        .auth-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }

        .auth-check-label {
            display: flex;
            align-items: center;
            gap: 7px;
            font-size: 12.5px;
            color: var(--text-muted);
            cursor: pointer;
            user-select: none;
        }

        .auth-check-label input[type="checkbox"] {
            width: 16px;
            height: 16px;
            accent-color: var(--primary);
            cursor: pointer;
            border-radius: 4px;
        }

        .auth-link {
            font-size: 12.5px;
            color: var(--primary);
            font-weight: 600;
            background: none;
            border: none;
            cursor: pointer;
            font-family: inherit;
            padding: 0;
            transition: color var(--ease);
        }

        .auth-link:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }

        .auth-submit {
            width: 100%;
            height: 48px;
            border-radius: var(--radius-sm);
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: #fff;
            font-family: 'Syne', sans-serif;
            font-weight: 700;
            font-size: 14px;
            letter-spacing: 0.5px;
            border: none;
            cursor: pointer;
            box-shadow: 0 4px 18px var(--primary-glow);
            transition: filter var(--ease), transform var(--ease);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 20px;
        }

        .auth-submit:hover {
            filter: brightness(1.08);
            transform: translateY(-1px);
        }

        .auth-submit.green {
            background: linear-gradient(135deg, var(--success), #009e62);
            box-shadow: 0 4px 18px rgba(0, 196, 122, 0.28);
        }

        .auth-divider {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 11.5px;
            color: var(--text-light);
        }

        .auth-divider::before,
        .auth-divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--border);
        }

        .auth-footer {
            padding: 16px 36px 24px;
            text-align: center;
            border-top: 1px solid var(--border);
            background: rgba(238, 242, 248, 0.5);
            font-size: 13px;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .auth-two-col {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
        }

        @media (max-width: 480px) {
            .auth-header {
                padding: 24px 20px 0;
            }

            .auth-body {
                padding: 22px 20px 24px;
            }

            .auth-footer {
                padding: 14px 20px 20px;
            }

            .auth-two-col {
                grid-template-columns: 1fr;
            }

            .auth-card {
                border-radius: 16px;
            }
        }


        /* ── Modal Sair ── */
        .modal-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(8, 17, 31, 0.65);
            backdrop-filter: blur(4px);
            z-index: 500;
            align-items: center;
            justify-content: center;
        }

        .modal-overlay.show {
            display: flex;
            animation: fadeIn 0.2s ease;
        }

        .modal-box {
            background: var(--card);
            border-radius: var(--radius);
            box-shadow: var(--shadow-lg);
            border: 1px solid var(--border);
            padding: 36px 32px 28px;
            max-width: 380px;
            width: 90%;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            animation: slideUp 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .modal-icon-wrap {
            width: 60px;
            height: 60px;
            border-radius: 16px;
            background: rgba(255, 69, 96, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: var(--danger);
            margin-bottom: 4px;
        }

        .modal-title {
            font-family: 'Syne', sans-serif;
            font-weight: 800;
            font-size: 18px;
            color: var(--text);
            text-align: center;
        }

        .modal-desc {
            font-size: 13px;
            color: var(--text-muted);
            text-align: center;
            line-height: 1.6;
        }

        .modal-actions {
            display: flex;
            gap: 10px;
            width: 100%;
            margin-top: 8px;
        }

        .modal-btn {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            padding: 11px 16px;
            border-radius: var(--radius-sm);
            font-size: 13px;
            font-weight: 600;
            font-family: inherit;
            cursor: pointer;
            border: none;
            transition: all var(--ease);
            text-decoration: none;
        }

        .modal-btn-cancel {
            background: var(--bg);
            color: var(--text-muted);
            border: 1px solid var(--border);
        }

        .modal-btn-cancel:hover {
            background: var(--border);
            color: var(--text);
        }

        .modal-btn-confirm {
            background: var(--danger);
            color: #fff;
            box-shadow: 0 4px 14px rgba(255, 69, 96, 0.3);
        }

        .modal-btn-confirm:hover {
            filter: brightness(1.08);
            transform: translateY(-1px);
        }

        @keyframes fadeIn {
            from {
                opacity: 0
            }

            to {
                opacity: 1
            }
        }


        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }