:root {
    --font-main: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "DM Sans", system-ui, sans-serif;
    --font-mono: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --page-bg: #eef7ff;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: rgba(255, 255, 255, 0.94);
    --surface-soft: rgba(240, 249, 255, 0.72);
    --border: rgba(96, 165, 250, 0.38);
    --border-strong: rgba(37, 99, 235, 0.30);
    --text: #10243a;
    --muted: #62748a;
    --soft: #8aa0b6;
    --blue: #2563eb;
    --blue-soft: #38bdf8;
    --blue-dim: rgba(37, 99, 235, 0.09);
    --green: #0f9f6e;
    --red: #e85f6c;
    --radius: 8px;
    --sidebar-width: 276px;
    --shadow-shell: 0 24px 70px rgba(37, 99, 235, 0.11);
    --shadow-card: 0 16px 42px rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 10px 24px rgba(37, 99, 235, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body,
button,
input,
select,
textarea {
    font-family: var(--font-main) !important;
    letter-spacing: 0 !important;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.20), transparent 30%),
        radial-gradient(circle at 92% 8%, rgba(37, 99, 235, 0.12), transparent 28%),
        linear-gradient(135deg, #f8fcff 0%, #eef7ff 48%, #f7fbff 100%) !important;
}

a {
    color: inherit;
    text-decoration: none;
}

.font-pro-mono {
    font-family: var(--font-mono) !important;
}

.ui-redesign-v2 {
    color: var(--text) !important;
}

.app-shell {
    height: 100vh;
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
    overflow: hidden;
}

.app-backdrop {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(10px);
}

.app-sidebar {
    height: calc(100vh - 32px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1.2px solid var(--border-strong);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(240,249,255,0.70));
    box-shadow: var(--shadow-shell);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 50;
}

.sidebar-brand {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px;
    border-bottom: 1px solid rgba(125, 211, 252, 0.26);
}

.brand-mark {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: var(--radius);
    color: var(--blue);
    background: linear-gradient(145deg, rgba(239, 246, 255, 0.94), rgba(224, 242, 254, 0.86));
    box-shadow: var(--shadow-soft);
}

.brand-title,
.brand-subtitle {
    display: block;
    line-height: 1;
}

.brand-title {
    font-family: var(--font-display) !important;
    color: var(--text);
    font-size: 16px;
    font-weight: 900;
}

.brand-subtitle {
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: none;
}

.sidebar-nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 12px;
}

.nav-group + .nav-group {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(125, 211, 252, 0.20);
}

.nav-label {
    margin: 0 9px 7px !important;
    padding: 0 !important;
    color: var(--soft) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-transform: none !important;
}

.nav-label::after {
    display: none !important;
}

.sidebar-link {
    position: relative;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 5px !important;
    padding: 10px 12px !important;
    border: 1px solid transparent !important;
    border-radius: var(--radius) !important;
    color: #52677f !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    text-transform: none !important;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.sidebar-link i {
    width: 22px !important;
    min-width: 22px !important;
    color: #7a95ad !important;
    font-size: 15px !important;
    text-align: center;
}

.sidebar-link span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-link:hover {
    color: var(--text) !important;
    border-color: var(--border) !important;
    background: rgba(255, 255, 255, 0.64) !important;
}

.sidebar-link:hover i {
    color: var(--blue) !important;
}

.sidebar-link.active {
    color: var(--blue) !important;
    border-color: var(--border-strong) !important;
    background: rgba(255, 255, 255, 0.90) !important;
    box-shadow: var(--shadow-soft) !important;
}

.sidebar-link.active::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--blue-soft), var(--blue));
}

.sidebar-link.active i,
.sidebar-link.active span {
    transform: translateX(5px);
}

.sidebar-link.active i {
    color: var(--blue) !important;
}

.sidebar-bottom {
    padding: 10px;
    border-top: 1px solid rgba(125, 211, 252, 0.24);
}

.sidebar-user {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 9px;
    margin: 0 0 8px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.68);
}

.user-avatar {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: white;
    background: linear-gradient(145deg, var(--blue-soft), var(--blue));
    font-weight: 800;
}

.user-name,
.user-role {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-name {
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.user-role {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: none;
}

.logout-link {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid rgba(232, 95, 108, 0.20);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.62);
    color: var(--red) !important;
    font-size: 13px;
    font-weight: 800;
    text-transform: none;
}

.app-main {
    min-width: 0;
    height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1.2px solid var(--border-strong);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.58);
    box-shadow: var(--shadow-shell);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.app-topbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(125, 211, 252, 0.26);
    background: rgba(255, 255, 255, 0.74) !important;
    backdrop-filter: blur(18px);
}

.topbar-left,
.topbar-right {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-title {
    min-width: 0;
}

.breadcrumb {
    margin: 0 0 5px !important;
    color: var(--muted) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-transform: none !important;
}

.page-title {
    margin: 0 !important;
    font-family: var(--font-display) !important;
    color: var(--text) !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    text-transform: none !important;
}

.role-pill,
.clock-pill,
.icon-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    background: rgba(255, 255, 255, 0.72) !important;
    color: var(--muted) !important;
    box-shadow: var(--shadow-soft) !important;
    font-size: 13px;
    font-weight: 800;
    text-transform: none !important;
}

.role-pill {
    color: var(--blue) !important;
    border-color: var(--border-strong) !important;
    background: rgba(239, 246, 255, 0.84) !important;
}

.role-pill,
.clock-pill {
    padding: 8px 11px;
}

.icon-btn {
    width: 40px;
    padding: 0;
    cursor: pointer;
}

.date-label {
    color: var(--soft);
    padding-left: 8px;
    border-left: 1px solid rgba(125, 211, 252, 0.25);
}

.app-content {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 18px;
    background:
        radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.10), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.22)) !important;
}

.app-content > .min-h-full,
.app-content > .min-h-screen {
    min-height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    background-image: none !important;
}

.app-content .max-w-4xl,
.app-content .max-w-5xl,
.app-content .max-w-6xl,
.app-content .max-w-7xl,
.app-content .max-w-\[1100px\],
.app-content .max-w-\[1300px\] {
    max-width: 100% !important;
}

.app-footer {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 18px;
    border-top: 1px solid rgba(125, 211, 252, 0.26);
    background: rgba(255, 255, 255, 0.66);
}

.footer-title,
.footer-copy,
.footer-meta {
    margin: 0;
    text-transform: none !important;
}

.footer-title {
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.footer-copy,
.footer-meta {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.footer-copy {
    margin-top: 3px;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.glass-shell,
.glass-panel,
.ui-card,
.swal2-popup,
.bento-card {
    border: 1.2px solid var(--border) !important;
    border-radius: var(--radius) !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(240,249,255,0.68)) !important;
    color: var(--text) !important;
    box-shadow: var(--shadow-card) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
}

.page-surface {
    background: transparent !important;
    background-image: none !important;
}

.ui-btn,
.btn-filter,
button[type="submit"],
a[class*="bg-slate-900"] {
    border: 1.2px solid var(--border-strong) !important;
    border-radius: var(--radius) !important;
    background: linear-gradient(135deg, var(--blue), var(--blue-soft)) !important;
    color: white !important;
    box-shadow: var(--shadow-soft) !important;
    text-transform: none !important;
}

.ui-input,
input,
select,
textarea {
    border: 1.2px solid rgba(96, 165, 250, 0.26) !important;
    border-radius: var(--radius) !important;
    background: rgba(255, 255, 255, 0.82) !important;
    color: var(--text) !important;
    box-shadow: none !important;
    text-transform: none !important;
}

.ui-input::placeholder,
input::placeholder,
textarea::placeholder {
    color: #8aa0b6 !important;
    text-transform: none !important;
}

.ui-input:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: rgba(37, 99, 235, 0.42) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10) !important;
}

select option {
    background: white;
    color: var(--text);
}

table,
thead,
tbody,
tr,
td,
th {
    border-color: rgba(148, 163, 184, 0.18) !important;
}

thead,
.table-head {
    background: rgba(239, 246, 255, 0.76) !important;
}

.app-content .uppercase {
    text-transform: none !important;
}

.app-content .text-\[8px\] {
    font-size: 10px !important;
}

.app-content .text-\[9px\] {
    font-size: 11px !important;
}

.app-content .text-\[10px\] {
    font-size: 12px !important;
}

.app-content .text-\[11px\],
.app-content .text-xs {
    font-size: 13px !important;
}

.app-content label,
.app-content th {
    font-weight: 700 !important;
}

.app-content .ui-card {
    border-color: var(--border-strong) !important;
}

.app-content .bg-white,
.app-content .bg-slate-50,
.app-content .bg-slate-100,
.app-content .bg-blue-50,
.app-content .bg-emerald-50,
.app-content .bg-rose-50,
.app-content .bg-orange-50,
.app-content .bg-orange-100,
.app-content .bg-indigo-50,
.app-content .bg-cyan-50 {
    background-color: rgba(255, 255, 255, 0.66) !important;
}

.app-content .text-slate-800,
.app-content .text-slate-900,
.app-content .text-black,
.app-content .text-dark {
    color: var(--text) !important;
}

.app-content .text-slate-700,
.app-content .text-slate-600,
.app-content .text-slate-500,
.app-content .text-slate-400 {
    color: var(--muted) !important;
}

.app-content .text-blue-600,
.app-content .text-indigo-600,
.app-content .text-emerald-600,
.app-content .text-orange-600,
.app-content .text-rose-600 {
    color: var(--blue) !important;
}

.app-content [class*="border-slate"],
.app-content [class*="border-blue"],
.app-content [class*="border-emerald"],
.app-content [class*="border-rose"],
.app-content [class*="border-orange"] {
    border-color: var(--border) !important;
}

#interactive.viewport {
    height: 178px !important;
    border: 1px solid var(--border-strong) !important;
    border-radius: var(--radius) !important;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(56, 189, 248, 0.12)),
        #f8fbff !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), var(--shadow-card) !important;
}

.scan-line {
    height: 2px !important;
    background: linear-gradient(90deg, transparent, var(--blue), transparent) !important;
    box-shadow: 0 0 18px rgba(37, 99, 235, 0.30);
}

.qty-control {
    border-color: var(--border) !important;
    background: rgba(255,255,255,0.78) !important;
}

.btn-qty {
    background: rgba(239,246,255,0.82) !important;
    color: var(--text) !important;
}

.btn-qty:hover {
    background: var(--blue-dim) !important;
}

.suggestion-box {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: var(--shadow-card) !important;
    backdrop-filter: blur(18px);
}

.suggestion-item {
    border-bottom: 1px solid rgba(148,163,184,0.16) !important;
    color: var(--text) !important;
}

.suggestion-item:hover {
    background: rgba(239,246,255,0.84) !important;
}

#cart-container {
    background: rgba(255,255,255,0.52) !important;
}

#empty-state {
    color: var(--soft) !important;
    text-transform: none !important;
}

#cart-list > * {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    background: rgba(255,255,255,0.72) !important;
}

.login-grid,
body.page-surface {
    background:
        radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.18), transparent 30%),
        linear-gradient(135deg, #f8fcff 0%, #eef7ff 48%, #f7fbff 100%) !important;
}

.brand-panel,
.login-grid > section,
.w-full.max-w-lg,
.w-full.max-w-2xl,
.max-w-4xl {
    color: var(--text) !important;
}

.metric-tile,
.login-grid .bento-card,
.login-grid .glass-panel,
body.page-surface .ui-card {
    border: 1.2px solid var(--border-strong) !important;
    border-radius: var(--radius) !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.84), rgba(240,249,255,0.68)) !important;
    box-shadow: var(--shadow-card) !important;
    backdrop-filter: blur(18px);
}

.login-grid h1,
body.page-surface h1,
body.page-surface h2 {
    color: var(--text) !important;
    text-transform: none !important;
}

.login-grid .bg-blue-600,
body.page-surface .bg-blue-600,
body.page-surface .bg-slate-900 {
    background: linear-gradient(135deg, var(--blue), var(--blue-soft)) !important;
    color: white !important;
}

.custom-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(37, 99, 235, 0.35) transparent;
}

.custom-scroll::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.35);
    border-radius: 999px;
}

@media (max-width: 1023px) {
    .app-shell {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }

    .app-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(var(--sidebar-width), 86vw);
        height: 100vh;
        border-radius: 0 var(--radius) var(--radius) 0;
        transform: translateX(-104%);
        transition: transform .22s ease;
    }

    .app-sidebar.is-open {
        transform: translateX(0);
    }

    .app-main {
        height: 100vh;
        border: 0;
        border-radius: 0;
    }

    .app-topbar {
        min-height: 64px;
    }

    .topbar-right .clock-pill {
        display: none;
    }
}

@media (max-width: 768px) {
    .app-content {
        padding: 10px;
    }

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

    .page-title {
        font-size: 17px !important;
    }

    .role-pill {
        display: none;
    }

    .app-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-meta {
        flex-wrap: wrap;
    }
}

/* Corporate inventory density layer for the split header/sidebar layout. */
body > .flex.min-h-screen {
    background: #0f172a !important;
}

aside[class*="bg-slate-900"] {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%) !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
}

aside .bg-indigo-600,
aside a.bg-indigo-600,
aside .bg-indigo-500\/10 {
    background-color: rgba(37, 99, 235, 0.94) !important;
}

aside .text-indigo-400,
aside .fa-circle-check {
    color: #93c5fd !important;
}

aside nav {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

aside nav > div {
    margin-top: 12px !important;
}

aside nav p {
    color: #94a3b8 !important;
    text-transform: none !important;
}

aside nav a {
    border: 1px solid transparent !important;
}

aside nav a:hover {
    border-color: rgba(148, 163, 184, 0.18) !important;
}

.flex.flex-1.flex-col.overflow-hidden {
    background: #eef2f7 !important;
}

.flex.flex-1.flex-col.overflow-hidden > header {
    height: 64px !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.34) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
}

main.custom-scroll {
    padding: 16px !important;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.98)) !important;
}

main.custom-scroll > .min-h-full,
main.custom-scroll > .min-h-screen,
main.custom-scroll .page-surface {
    min-height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    background-image: none !important;
}

main.custom-scroll .max-w-4xl,
main.custom-scroll .max-w-5xl,
main.custom-scroll .max-w-6xl,
main.custom-scroll .max-w-7xl,
main.custom-scroll .max-w-\[1100px\],
main.custom-scroll .max-w-\[1250px\],
main.custom-scroll .max-w-\[1300px\] {
    max-width: 100% !important;
}

main.custom-scroll .ui-card,
main.custom-scroll .bento-card,
main.custom-scroll .glass-panel {
    border: 1px solid rgba(148, 163, 184, 0.34) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
}

main.custom-scroll .ui-card.p-6,
main.custom-scroll .ui-card.p-5,
main.custom-scroll .bento-card.p-6,
main.custom-scroll .glass-panel.p-7 {
    padding: 16px !important;
}

main.custom-scroll .mb-8 {
    margin-bottom: 18px !important;
}

main.custom-scroll .mb-6 {
    margin-bottom: 14px !important;
}

main.custom-scroll .gap-6 {
    gap: 14px !important;
}

main.custom-scroll .gap-4 {
    gap: 12px !important;
}

main.custom-scroll table th,
main.custom-scroll table td {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

main.custom-scroll .text-slate-300 {
    color: #64748b !important;
}

main.custom-scroll .bg-blue-600,
main.custom-scroll .btn-primary,
main.custom-scroll button[type="submit"] {
    background: #2563eb !important;
    color: #ffffff !important;
}

main.custom-scroll .ui-input,
main.custom-scroll input,
main.custom-scroll select,
main.custom-scroll textarea {
    border-color: rgba(148, 163, 184, 0.40) !important;
    background: rgba(255, 255, 255, 0.96) !important;
}

/* Dark corporate alignment: all working areas follow the dark sidebar tone. */
body,
body > .flex.min-h-screen,
.flex.flex-1.flex-col.overflow-hidden {
    background: #0f172a !important;
}

html,
body {
    min-height: 100% !important;
}

body > .flex.min-h-screen {
    height: 100vh !important;
    min-height: 100vh !important;
    overflow: hidden !important;
}

.flex.flex-1.flex-col.overflow-hidden {
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100vh !important;
}

.flex.flex-1.flex-col.overflow-hidden > main {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
}

.flex.flex-1.flex-col.overflow-hidden > header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.20) !important;
    background: rgba(15, 23, 42, 0.94) !important;
    color: #e5edf7 !important;
    box-shadow: none !important;
}

.flex.flex-1.flex-col.overflow-hidden > header h1,
.flex.flex-1.flex-col.overflow-hidden > header span {
    color: #e5edf7 !important;
}

.flex.flex-1.flex-col.overflow-hidden > header nav span:first-child,
.flex.flex-1.flex-col.overflow-hidden > header .text-slate-300,
.flex.flex-1.flex-col.overflow-hidden > header .text-slate-400,
.flex.flex-1.flex-col.overflow-hidden > header .text-slate-500,
.flex.flex-1.flex-col.overflow-hidden > header .text-slate-600 {
    color: #94a3b8 !important;
}

.flex.flex-1.flex-col.overflow-hidden > header .rounded-full {
    border-color: rgba(148, 163, 184, 0.22) !important;
    background: rgba(30, 41, 59, 0.74) !important;
    color: #cbd5e1 !important;
}

main.custom-scroll {
    color: #dbe7f4 !important;
    background:
        radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.15), transparent 30%),
        linear-gradient(180deg, #111827 0%, #0f172a 100%) !important;
    padding: 22px !important;
}

main.custom-scroll .ui-card,
main.custom-scroll .bento-card,
main.custom-scroll .glass-panel,
main.custom-scroll .metric-soft,
main.custom-scroll .metric-tile {
    border: 1px solid rgba(148, 163, 184, 0.20) !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.88)) !important;
    color: #e5edf7 !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18) !important;
}

main.custom-scroll .bg-white,
main.custom-scroll [class*="bg-white"],
main.custom-scroll .bg-slate-50,
main.custom-scroll [class*="bg-slate-50"],
main.custom-scroll .bg-slate-100,
main.custom-scroll [class*="bg-slate-100"],
main.custom-scroll .bg-blue-50,
main.custom-scroll [class*="bg-blue-50"],
main.custom-scroll .bg-emerald-50,
main.custom-scroll [class*="bg-emerald-50"],
main.custom-scroll .bg-rose-50,
main.custom-scroll [class*="bg-rose-50"],
main.custom-scroll .bg-orange-50,
main.custom-scroll .bg-orange-100,
main.custom-scroll .bg-indigo-50,
main.custom-scroll .bg-cyan-50 {
    background-color: rgba(30, 41, 59, 0.72) !important;
}

main.custom-scroll [class*="border-slate-"],
main.custom-scroll [class*="border-blue-"],
main.custom-scroll [class*="border-indigo-"],
main.custom-scroll [class*="border-sky-"] {
    border-color: rgba(148, 163, 184, 0.20) !important;
}

main.custom-scroll [class*="shadow"] {
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18) !important;
}

main.custom-scroll .text-slate-900,
main.custom-scroll .text-slate-800,
main.custom-scroll .text-slate-700,
main.custom-scroll .text-black,
main.custom-scroll .text-dark {
    color: #e5edf7 !important;
}

main.custom-scroll .text-slate-600,
main.custom-scroll .text-slate-500,
main.custom-scroll .text-slate-400,
main.custom-scroll .text-slate-300 {
    color: #aab8ca !important;
}

main.custom-scroll .text-blue-600,
main.custom-scroll .text-indigo-600,
main.custom-scroll .text-emerald-600,
main.custom-scroll .text-orange-600,
main.custom-scroll .text-rose-600 {
    color: #93c5fd !important;
}

main.custom-scroll table,
main.custom-scroll thead,
main.custom-scroll tbody,
main.custom-scroll tr,
main.custom-scroll td,
main.custom-scroll th {
    border-color: rgba(148, 163, 184, 0.16) !important;
}

main.custom-scroll thead,
main.custom-scroll .table-head {
    background: rgba(15, 23, 42, 0.78) !important;
}

main.custom-scroll .ui-input,
main.custom-scroll input,
main.custom-scroll select,
main.custom-scroll textarea {
    border-color: rgba(148, 163, 184, 0.25) !important;
    background: rgba(15, 23, 42, 0.72) !important;
    color: #e5edf7 !important;
}

main.custom-scroll input::placeholder,
main.custom-scroll textarea::placeholder {
    color: #64748b !important;
}

main.custom-scroll .ui-btn,
main.custom-scroll .btn-primary,
main.custom-scroll button[type="submit"] {
    border-color: rgba(96, 165, 250, 0.32) !important;
    background: #2563eb !important;
    color: #ffffff !important;
}

.app-footer,
.flex.flex-1.flex-col.overflow-hidden > footer {
    flex-shrink: 0 !important;
    min-height: 56px !important;
    border-top: 1px solid rgba(148, 163, 184, 0.22) !important;
    background: #0b1220 !important;
    color: #cbd5e1 !important;
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.12) !important;
    position: relative !important;
    z-index: 5 !important;
    width: 100% !important;
}

.app-footer .footer-title,
.app-footer .footer-copy,
.app-footer .footer-meta,
.flex.flex-1.flex-col.overflow-hidden > footer p,
.flex.flex-1.flex-col.overflow-hidden > footer span {
    color: #cbd5e1 !important;
}

.app-footer .footer-title {
    color: #f8fafc !important;
}

body.page-surface,
.login-grid {
    color: #e5edf7 !important;
    background:
        radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.15), transparent 30%),
        linear-gradient(180deg, #111827 0%, #0f172a 100%) !important;
}

body.page-surface .ui-card,
body.page-surface .metric-tile,
body.page-surface .glass-panel,
body.page-surface .bg-white,
body.page-surface .bg-slate-50 {
    border: 1px solid rgba(148, 163, 184, 0.20) !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.88)) !important;
    color: #e5edf7 !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18) !important;
}

body.page-surface .text-slate-900,
body.page-surface .text-slate-800,
body.page-surface .text-slate-700,
body.page-surface .text-black {
    color: #e5edf7 !important;
}

body.page-surface .text-slate-600,
body.page-surface .text-slate-500,
body.page-surface .text-slate-400 {
    color: #aab8ca !important;
}

/* Final corporate polish: readable dark UI with compact operational spacing. */
main.custom-scroll {
    padding: 18px !important;
}

main.custom-scroll .ui-card,
main.custom-scroll .bento-card,
main.custom-scroll .glass-panel,
main.custom-scroll .metric-soft,
main.custom-scroll .metric-tile,
main.custom-scroll .corp-card,
main.custom-scroll .integrity-card {
    border-color: rgba(148, 163, 184, 0.30) !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.94)) !important;
}

main.custom-scroll .corp-head,
main.custom-scroll .integrity-head,
main.custom-scroll .panel-head,
main.custom-scroll thead {
    background: rgba(15, 23, 42, 0.92) !important;
    border-color: rgba(148, 163, 184, 0.28) !important;
}

main.custom-scroll h1,
main.custom-scroll h2,
main.custom-scroll h3,
main.custom-scroll .corp-title,
main.custom-scroll .integrity-title,
main.custom-scroll .panel-title,
main.custom-scroll table th {
    color: #f8fafc !important;
}

main.custom-scroll p,
main.custom-scroll td,
main.custom-scroll label,
main.custom-scroll .corp-sub,
main.custom-scroll .integrity-sub,
main.custom-scroll .panel-sub {
    color: #dbe7f4 !important;
}

main.custom-scroll .text-slate-500,
main.custom-scroll .text-slate-400,
main.custom-scroll .text-slate-300,
main.custom-scroll small {
    color: #b6c4d8 !important;
}

main.custom-scroll .text-emerald-600,
main.custom-scroll .text-emerald-700 {
    color: #34d399 !important;
}

main.custom-scroll .text-rose-500,
main.custom-scroll .text-rose-600,
main.custom-scroll .text-rose-700 {
    color: #fb7185 !important;
}

main.custom-scroll .text-amber-500,
main.custom-scroll .text-amber-600,
main.custom-scroll .text-amber-700,
main.custom-scroll .text-orange-600 {
    color: #fbbf24 !important;
}

main.custom-scroll .text-blue-500,
main.custom-scroll .text-blue-600,
main.custom-scroll .text-blue-700,
main.custom-scroll .text-indigo-600,
main.custom-scroll .text-indigo-700 {
    color: #93c5fd !important;
}

main.custom-scroll .ui-input,
main.custom-scroll input,
main.custom-scroll select,
main.custom-scroll textarea {
    border-color: rgba(148, 163, 184, 0.42) !important;
    background: rgba(2, 6, 23, 0.46) !important;
    color: #f8fafc !important;
}

main.custom-scroll input::placeholder,
main.custom-scroll textarea::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

main.custom-scroll table tbody tr:hover {
    background: rgba(51, 65, 85, 0.55) !important;
}

main.custom-scroll .ui-btn,
main.custom-scroll .corp-btn,
main.custom-scroll .integrity-btn,
main.custom-scroll button[type="submit"] {
    min-height: 34px;
    border-radius: 8px !important;
    font-weight: 900 !important;
}

@media (max-width: 768px) {
    main.custom-scroll {
        padding: 12px !important;
    }

    .flex.flex-1.flex-col.overflow-hidden > header {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .flex.flex-1.flex-col.overflow-hidden > footer {
        padding: 12px 14px !important;
    }
}
