        /* Sidebar theming */
        .sidebar-shell,
        #sidebar {
            background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-strong, var(--sidebar-bg)) 100%) !important;
            color: var(--sidebar-text) !important;
            border-right: 1px solid var(--sidebar-border);
        }

        .sidebar-head {
            background: color-mix(in srgb, var(--sidebar-bg) 85%, var(--sidebar-bg-strong, var(--sidebar-bg)) 15%) !important;
            border-bottom: 1px solid var(--sidebar-border) !important;
        }

        [data-theme='azure-frost'] .sidebar-head,
        [data-theme='azure-frost'] #sidebar {
            background-image: linear-gradient(160deg, #0c4a81 0%, #1169af 55%, #0f3f70 100%) !important;
        }

        [data-theme='azure-frost'][data-layout='topbar'] #sidebar {
            border-bottom: 2px solid rgba(125, 211, 252, 0.6);
            box-shadow: 0 14px 30px rgba(8, 47, 73, 0.24);
        }

        [data-theme='azure-frost'][data-layout='topbar'] #sidebar .nav-link {
            border: 1px solid rgba(191, 219, 254, 0.32);
            border-radius: 999px;
            letter-spacing: 0.1em;
            font-weight: 700;
        }

        [data-theme='azure-frost'][data-layout='topbar'] #sidebar .sidebar-toggle {
            background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
            border-color: rgba(147, 197, 253, 0.55);
            color: #ffffff;
            width: 34px;
            height: 34px;
            min-width: 34px;
            margin-left: 0.85rem !important;
            margin-right: 0.3rem;
        }

        [data-theme='azure-frost'][data-layout='topbar'] #sidebar .sidebar-toggle i {
            color: #ffffff;
            font-size: 0.95rem;
        }

        /* Microdetalhes premium: botoes, cards e tabelas no tema Azure Frost */
        [data-theme='azure-frost'] .btn,
        [data-theme='azure-frost'] .theme-apply-btn,
        [data-theme='azure-frost'] #apply-theme-button {
            border-radius: 0.85rem;
            border-color: color-mix(in srgb, var(--sidebar-accent) 35%, #ffffff 65%);
            letter-spacing: 0.01em;
            font-weight: 700;
            box-shadow: 0 8px 18px rgba(8, 47, 73, 0.14);
            transition: transform 180ms ease, box-shadow 220ms ease, filter 220ms ease;
        }

        [data-theme='azure-frost'] .btn:hover,
        [data-theme='azure-frost'] .theme-apply-btn:hover,
        [data-theme='azure-frost'] #apply-theme-button:hover {
            transform: translateY(-1px);
            box-shadow: 0 14px 26px rgba(8, 47, 73, 0.2);
            filter: saturate(1.08);
        }

        [data-theme='azure-frost'] .btn:focus-visible,
        [data-theme='azure-frost'] .theme-apply-btn:focus-visible,
        [data-theme='azure-frost'] #apply-theme-button:focus-visible {
            outline: none;
            box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.4), 0 12px 22px rgba(8, 47, 73, 0.18);
        }

        [data-theme='azure-frost'] .card,
        [data-theme='azure-frost'] .detalhe-card,
        [data-theme='azure-frost'] .theme-switcher-content,
        [data-theme='azure-frost'] #modalDetalhesMultaAdmin > div:last-child,
        [data-theme='azure-frost'] #modal-lista-modelos-admin > div:last-child {
            background: linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(244, 250, 255, 0.92) 100%) !important;
            border: 1px solid rgba(147, 197, 253, 0.42) !important;
            box-shadow: 0 16px 36px rgba(8, 47, 73, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.7);
        }

        [data-theme='azure-frost'] .card:hover,
        [data-theme='azure-frost'] .detalhe-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 20px 40px rgba(8, 47, 73, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.78);
        }

        [data-theme='azure-frost'] .table,
        [data-theme='azure-frost'] table {
            border-color: rgba(147, 197, 253, 0.32) !important;
            color: var(--text-primary);
        }

        [data-theme='azure-frost'] .table thead th,
        [data-theme='azure-frost'] table thead th {
            background: linear-gradient(180deg, #eef6ff 0%, #e1efff 100%);
            color: #0c4a6e;
            border-bottom: 1px solid rgba(96, 165, 250, 0.35) !important;
            font-weight: 700;
            letter-spacing: 0.02em;
        }

        [data-theme='azure-frost'] .table > :not(caption) > * > *,
        [data-theme='azure-frost'] table > :not(caption) > * > * {
            border-bottom-color: rgba(147, 197, 253, 0.28) !important;
            padding-top: 0.72rem;
            padding-bottom: 0.72rem;
        }

        [data-theme='azure-frost'] .table tbody tr:nth-child(even),
        [data-theme='azure-frost'] table tbody tr:nth-child(even) {
            background-color: rgba(241, 248, 255, 0.68);
        }

        [data-theme='azure-frost'] .table-hover tbody tr:hover,
        [data-theme='azure-frost'] table tbody tr:hover {
            background: linear-gradient(90deg, rgba(219, 234, 254, 0.45) 0%, rgba(191, 219, 254, 0.35) 100%) !important;
        }

        [data-theme='azure-frost'] .alert-success,
        [data-theme='azure-frost'] .text-bg-success {
            background: linear-gradient(135deg, rgba(236, 253, 245, 0.95) 0%, rgba(220, 252, 231, 0.92) 100%) !important;
            color: #0e6b57 !important;
            border-color: rgba(16, 185, 129, 0.34) !important;
        }

        [data-theme='azure-frost'] .alert-warning,
        [data-theme='azure-frost'] .text-bg-warning {
            background: linear-gradient(135deg, rgba(255, 251, 235, 0.96) 0%, rgba(254, 243, 199, 0.94) 100%) !important;
            color: #9a5800 !important;
            border-color: rgba(245, 158, 11, 0.34) !important;
        }

        [data-theme='azure-frost'] .alert-danger,
        [data-theme='azure-frost'] .text-bg-danger {
            background: linear-gradient(135deg, rgba(254, 242, 242, 0.96) 0%, rgba(255, 228, 230, 0.93) 100%) !important;
            color: #b4232d !important;
            border-color: rgba(239, 68, 68, 0.32) !important;
        }

        [data-theme='azure-frost'] .text-success { color: #0e6b57 !important; }
        [data-theme='azure-frost'] .text-warning { color: #9a5800 !important; }
        [data-theme='azure-frost'] .text-danger { color: #b4232d !important; }

        @media (max-width: 768px) {
            [data-theme='azure-frost'] .btn,
            [data-theme='azure-frost'] .theme-apply-btn,
            [data-theme='azure-frost'] #apply-theme-button {
                min-height: 2.4rem;
                padding: 0.48rem 0.82rem;
                font-size: 0.76rem;
                border-radius: 0.78rem;
            }

            [data-theme='azure-frost'] .card,
            [data-theme='azure-frost'] .detalhe-card {
                border-radius: 0.95rem !important;
                box-shadow: 0 12px 28px rgba(8, 47, 73, 0.14);
            }

            [data-theme='azure-frost'] .table > :not(caption) > * > *,
            [data-theme='azure-frost'] table > :not(caption) > * > * {
                padding-top: 0.58rem;
                padding-bottom: 0.58rem;
                font-size: 0.79rem;
            }
        }

        .sidebar-subhead {
            border-bottom: 1px solid var(--sidebar-border) !important;
        }

        .sidebar-username { color: var(--sidebar-text); }

        .sidebar-logout {
            color: var(--sidebar-accent);
            background: color-mix(in srgb, var(--sidebar-accent) 12%, transparent);
        }
        .sidebar-logout:hover {
            color: #fff;
            background: color-mix(in srgb, var(--sidebar-accent) 28%, transparent);
        }

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

        .sidebar-label { color: var(--sidebar-muted); }

        @media (min-width: 1024px) {
            #sidebar + main {
                margin-left: 18rem;
            }
            #main-header {
                margin-left: 0;
                left: 18rem;
                right: 0;
                width: calc(100% - 18rem);
            }
        }

        .nav-link {
            color: var(--sidebar-muted) !important;
        }

        .nav-link:hover,
        .sidebar-sub-link:hover {
            color: var(--sidebar-text) !important;
            background: var(--sidebar-hover-bg) !important;
        }

        .nav-link.is-active {
            background: var(--sidebar-active-bg) !important;
            color: var(--sidebar-active-text) !important;
        }

        .sidebar-sub-link {
            color: var(--sidebar-muted) !important;
        }

        .sidebar-title,
        .sidebar-shell .sidebar-label,
        .sidebar-shell .sidebar-username {
            color: var(--sidebar-text);
        }

        .sidebar-shell .logo-mark {
            color: var(--sidebar-accent);
        }

        .nav-link i,
        .sidebar-sub-link i {
            color: var(--sidebar-muted);
        }

        .nav-link.is-active i,
        .nav-link:hover i,
        .sidebar-sub-link:hover i {
            color: var(--sidebar-active-text);
        }

        /* ============================================================
           ============================ */
        @keyframes modal-pop {
            from { opacity: 0; transform: translateY(8px) scale(0.98); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
        @keyframes detalhe-pop {
            from { opacity: 0; transform: translateY(6px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .modal-sheet--enter {
            animation: modal-pop 0.22s ease-out;
        }
        .detalhe-card {
            animation: detalhe-pop 0.28s ease-out;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .detalhe-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 20px -14px rgba(15, 23, 42, 0.35);
        }
        .detalhe-label {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
        }
        .detalhe-meta-resam {
            font-size: 0.85rem;
            letter-spacing: 0.28em;
        }
        .detalhe-valor {
            font-size: 1.05rem;
            font-weight: 700;
            color: #0f172a;
        }
        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            border-radius: 999px;
            border: 1px solid transparent;
            padding: 0.25rem 0.6rem;
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }
        .status-badge--emerald {
            background: #ecfdf5;
            color: #047857;
            border-color: #a7f3d0;
        }
        .status-badge--amber {
            background: #fffbeb;
            color: #b45309;
            border-color: #fcd34d;
        }
        .status-badge--rose {
            background: #fff1f2;
            color: #be123c;
            border-color: #fda4af;
        }
        .status-badge--brand {
            background: #eff6ff;
            color: #1d4ed8;
            border-color: #bfdbfe;
        }
        .status-badge--slate {
            background: #f8fafc;
            color: #475569;
            border-color: #e2e8f0;
        }
        .status-badge--sky {
            background: #f0f9ff;
            color: #0369a1;
            border-color: #bae6fd;
        }
