.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; transform: translateY(-150%); padding: 10px 14px; border-radius: 8px; background: #202522; color: #fff; }
    .skip-link:focus { transform: translateY(0); }
    .db-inter-font {
      font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
    }
    ::-webkit-scrollbar { width: 8px; height: 10px; }
    ::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
    ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
    ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
    .sticky-col { position: sticky; left: 0; z-index: 30; border-right: 2px solid #cbd5e1; }
    .sticky-header { position: sticky; top: 0; z-index: 40; }

    .tab-btn.active { background-color: #1e293b; color: white; }
    .tab-btn.inactive { background-color: #f1f5f9; color: #64748b; }

    .card-detail { display: none; }
    .card-expanded .card-detail { display: block; }

    .row-shift-1st, .row-shift-3rd { background-color: #ffffff; }
    .row-shift-2nd { background-color: #f8fafc; }
    .header-today { background-color: #eff6ff !important; border-bottom: 2px solid #3b82f6 !important; }
    .col-today { background-color: #f8fafc !important; border-left: 2px solid #bfdbfe !important; border-right: 2px solid #bfdbfe !important; }

    .gantt-card {
      height: 78px;
      width: 165px;
      overflow: hidden;
      transition: all 0.2s ease-out;
      transform-origin: top center;
      z-index: 20 !important;
      position: relative;
    }
    .gantt-card.focused-card {
      height: auto;
      transform: scale(1.04);
      z-index: 20 !important;
      box-shadow: 0 8px 20px -3px rgba(0,0,0,0.2);
    }

    #ganttContentWrapper { position: relative; z-index: 1; }
    #svgOverlay { z-index: 35 !important; pointer-events: none; }
    .sticky-header th { position: sticky; top: 0; z-index: 40 !important; background-clip: padding-box; }
    .sticky-col { position: sticky; left: 0; z-index: 50 !important; background-clip: padding-box; }
    .sticky-header .sticky-col { z-index: 60 !important; }

    .gantt-cell {
      vertical-align: top !important;
      padding: 8px;
      height: 300px;
      border-left: 1px solid #e2e8f0;
      border-bottom: 1px solid #e2e8f0;
      min-width: 175px;
      transition: min-width 0.3s ease;
    }
    .card-stack {
      display: flex;
      align-content: flex-start;
      gap: 8px;
    }
    .card-stack.collapsed {
      flex-direction: column;
      flex-wrap: nowrap;
      width: auto;
      justify-content: center;
    }
    .card-stack.collapsed .gantt-card:nth-child(n+4):not(.force-show) {
      display: none !important;
    }
    .card-stack:not(.collapsed) {
      flex-direction: row;
      flex-wrap: wrap;
      width: 480px;
      max-width: 480px;
    }
    .card-stack:not(.collapsed) .gantt-card {
      width: calc(33.333% - 6px);
    }
    .expand-indicator {
      text-align: center !important;
      width: 100%;
      cursor: pointer;
      color: #4f46e5;
      font-size: 10px;
      font-weight: 800;
      padding: 4px;
      background: #f1f5f9;
      border-radius: 4px;
      margin-top: 2px;
      transition: 0.2s;
    }
    .expand-indicator:hover { background-color: #eef2ff; color: #2563eb; }
    .card-stack.collapsed .expand-indicator { display: block; }
    .card-stack:not(.collapsed) .expand-indicator { display: none !important; }

    .hidden-by-search { display: none !important; }
    #tableBody.search-active .card-stack.collapsed .gantt-card:not(.hidden-by-search) { display: block !important; }
    #tableBody.search-active .expand-indicator { display: none !important; }

    .vertical-text {
      writing-mode: vertical-rl;
      transform: rotate(180deg);
      text-orientation: mixed;
    }

    .app-spinner { display:none; }
    :focus-visible { outline: 2px solid #008844; outline-offset: 2px; }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    }
    :root { --sidebar-width: 248px; }
    body { background: #f3f6f4; color: #202522; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
    body, body * { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif !important; }
    :root { --scale: 1.168; --space-1: 4px; --space-2: 7px; --space-3: 10px; --space-4: 14px; --font-xs: 11px; --font-sm: 12.8px; --font-md: 15px; --surface-border: #e1e8e3; --surface-radius: 5px; --control-radius: 3px; --text-primary: #202522; --text-muted: #66716a; }
    .font-black, .font-extrabold { font-weight: 650 !important; }
    .font-bold { font-weight: 600 !important; }
    .tracking-widest, .tracking-wider { letter-spacing: .035em !important; }
    .rounded-3xl, .rounded-2xl, .rounded-xl { border-radius: 6px !important; }
    .rounded-lg { border-radius: 5px !important; }
    .rounded-md { border-radius: 4px !important; }
    .shadow-sm, .shadow-md, .shadow-lg { box-shadow: none !important; }
    .shadow-xl, .shadow-2xl { box-shadow: 0 4px 14px rgb(32 37 34 / .10) !important; }
    input:not([type="checkbox"]):not([type="radio"]), select, textarea { border-radius: var(--control-radius); }
    #viewSummary, #viewDrive { background: #f3f6f4 !important; }
    #viewSummary .bg-\[\#f4f3ea\], #viewSummary .bg-\[\#faf9f5\] { background-color: #f7f8f6 !important; }
    #workcenterSubnav .nav-sub-link { display: block; width: 100%; text-align: left; min-height: 30px; padding: 5px 10px 5px 42px; color: #56615a; font-size: 12px; border-radius: 4px; }
    #workcenterSubnav .nav-sub-link:hover { color: #202522; background: #f4f7f4; }
    #workcenterSubnav .nav-sub-link[aria-current="page"] { color: #006b37; background: #edfbf3; font-weight: 600; }
    #dashOrderRows details summary { cursor: pointer; color: #006b37; font-size: 12px; font-weight: 600; }
    .progress-detail-list, .product-detail-list { min-width: 300px; padding: 8px 0 2px; }
    .progress-detail-row { display: grid; grid-template-columns: minmax(108px, 1fr) auto auto; gap: 10px; padding: 4px 0; border-top: 1px solid #edf0ed; font-size: 11px; }
    .progress-pass { color: #177245; }
    .progress-short { color: #9b4b22; }
    .product-detail-row { display: grid; grid-template-columns: minmax(125px,.8fr) minmax(220px,2fr); gap: 10px; padding: 4px 0; border: 0; font-size: 12px; }
    .product-detail-row small { color: #66716a; white-space: nowrap; }
    #viewHome .rounded-2xl, #viewMatrix .rounded-2xl, #viewSummary .rounded-2xl, #viewDrive .rounded-2xl, #viewDatabase .rounded-2xl, #viewLapisUlang .rounded-2xl { border-radius: var(--surface-radius); }
    #viewHome .shadow-sm, #viewHome .shadow-md, #viewMatrix .shadow-sm, #viewSummary .shadow-sm, #viewDrive .shadow-sm, #viewDatabase .shadow-sm, #viewLapisUlang .shadow-sm { box-shadow: none; }
    #viewHome .border-slate-200, #viewMatrix .border-slate-200, #viewSummary .border-slate-200, #viewDrive .border-slate-200, #viewDatabase .border-slate-200, #viewLapisUlang .border-slate-200 { border-color: var(--surface-border); }
    #viewDatabase input, #viewDatabase select, #viewDashboard input, #viewDashboard select { font-family: inherit; }
    #appSidebar { position: fixed; inset: 0 auto 0 0; z-index: 60; width: var(--sidebar-width); display: flex; flex-direction: column; background: #fff; border-right: 1px solid #e3e7e4; transition: transform .18s ease; }
    #appSidebar .sidebar-brand { min-height: 60px; height: 60px; border-bottom: 0 !important; }
    #appSidebar .nav-link { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 42px; padding: 0 12px; color: #4d5750; border-radius: 6px; text-align: left; font-size: 13px; font-weight: 500; transition: background-color .14s ease, color .14s ease; }
    #appSidebar .nav-link:hover { background: #f4f7f4; color: #202522; }
    #appSidebar .nav-link[aria-current="page"] { color: #006b37; background: #edfbf3; font-weight: 650; }
    #appSidebar .nav-link[aria-current="page"] svg { color: #00A651; }
    .nav-group-label { padding: 20px 12px 7px; color: #79827c; font-size: 10px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
    header#appTopbar, #pageSubHeader, #viewHome, #viewMatrix, #viewSummary, #viewDrive, #viewDatabase, #viewDashboard, #viewLapisUlang, #viewItemMasterMaterial, #viewAccess, #viewCalendar, #viewSync, #viewAssemblyMonitoring, #viewFinishingMonitoring, #viewAssemblyPoDb, #viewFinishingPoDb { margin-left: var(--sidebar-width); width: calc(100% - var(--sidebar-width)); min-width: 0; }
    header#appTopbar { min-height: 62px; padding: 0 24px; background: #fff !important; border-bottom-color: #e3e7e4; }
    #pageSubHeader { padding: 18px 28px 10px; }
    #pageTitleText { font-size: 21px; font-weight: 650; letter-spacing: -.025em; }
    #pageDescText { margin-left: 0; margin-top: 4px; font-size: 12px; }
    #viewHome, #viewMatrix, #viewSummary, #viewDrive, #viewDatabase, #viewDashboard, #viewLapisUlang, #viewAccess, #viewCalendar, #viewSync, #viewAssemblyMonitoring, #viewFinishingMonitoring, #viewAssemblyPoDb, #viewFinishingPoDb { background: #f3f6f4; }
    #viewHome { padding: 24px 28px; }
    #viewDashboard { padding: 12px 28px 28px; }
    #viewDashboard .max-w-\[1400px\] { max-width: 1560px; }
    #viewDashboard .rounded-2xl { border-radius: 6px; box-shadow: none; }
    #viewDashboard .shadow-sm, #viewDashboard .shadow-md, #viewDashboard .shadow-xl, #viewDashboard .shadow-2xl { box-shadow: none; }
    #viewDashboard .bg-white { border-color: #e3e7e4; }
    #viewDashboard h3 { color: #263029; }
    #appTopbar button { min-height: 32px; }
    .topbar-global-search { width:min(34vw,360px);height:34px;display:flex;align-items:center;gap:8px;padding:0 10px;border:1px solid #e5e7eb;border-radius:6px;background:#fff;color:#9ca3af; }
    .topbar-global-search input { min-width:0;width:100%;height:100%;border:0;outline:0;background:transparent;color:#1f2937;font-size:12px; }
    .topbar-global-search input::placeholder { color:#9ca3af; }
    [data-theme="dark"] .topbar-global-search { background:#202522;border-color:#39423c;color:#acb7af; }
    [data-theme="dark"] .topbar-global-search input { color:#e2e9e4; }
    @media(max-width:700px){.topbar-global-search{width:min(40vw,250px)}}
    @media(max-width:480px){.topbar-global-search{width:34px;padding:0;justify-content:center;border:0;background:transparent}.topbar-global-search input{position:absolute;left:-9999px}}
    #appFooter { left: var(--sidebar-width); width: calc(100% - var(--sidebar-width)); }
    #viewHome, #viewMatrix, #viewSummary, #viewDrive, #viewDatabase, #viewDashboard, #viewLapisUlang, #viewAccess, #viewCalendar, #viewSync, #viewAssemblyMonitoring, #viewFinishingMonitoring, #viewAssemblyPoDb, #viewFinishingPoDb { padding-bottom: 42px; }
    #viewDatabase th { font-weight: 550; letter-spacing: 0; }
    #viewDatabase td { font-weight: 400; }
    #viewDatabase .font-bold, #viewDatabase .font-semibold { font-weight: 550 !important; }
    #viewDashboard #dashBuyerList label { min-height: 28px !important; padding: 4px 6px !important; gap: 7px !important; border-radius: 3px !important; }
    #viewDashboard #dashBuyerList label span { font-weight: 450 !important; }
    #viewDashboard #dashBuyerDD { padding: 6px !important; }
    #summaryStatusDD > div > div { padding: 5px 7px !important; border-radius: 3px !important; font-weight: 450 !important; }
    #summaryBuyerList label { min-height: 27px !important; padding: 4px 6px !important; gap: 7px !important; }
    #summaryBuyerSearch { min-height: 30px !important; }
    #viewDatabase .db-choice { border-radius: 5px; color:#34423a; font-size:13px; font-weight:550; }
    .animated-arrow { animation: flow-dash 1.1s linear infinite; }
    @keyframes flow-dash { to { stroke-dashoffset: -28; } }
    [data-theme="dark"] body { background:#171a18; color:#e4e9e5; }
    [data-theme="dark"] #appSidebar, [data-theme="dark"] #appTopbar, [data-theme="dark"] #appFooter,
    [data-theme="dark"] #viewDashboard .bg-white, [data-theme="dark"] #viewDatabase .bg-white,
    [data-theme="dark"] #viewMatrix .bg-white, [data-theme="dark"] #viewSummary .bg-white,
    [data-theme="dark"] #viewDrive .bg-white, [data-theme="dark"] #viewLapisUlang .bg-white, [data-theme="dark"] #viewAccess .bg-white, [data-theme="dark"] #viewSync .bg-white, [data-theme="dark"] #viewAssemblyMonitoring .bg-white, [data-theme="dark"] #viewFinishingMonitoring .bg-white, [data-theme="dark"] #viewAssemblyPoDb .bg-white, [data-theme="dark"] #viewFinishingPoDb .bg-white,
    [data-theme="dark"] #dbHome { background:#202522 !important; color:#e4e9e5 !important; border-color:#39423c !important; }
    [data-theme="dark"] #viewDashboard, [data-theme="dark"] #viewDatabase, [data-theme="dark"] #viewMatrix, [data-theme="dark"] #viewCalendar,
    [data-theme="dark"] #viewSummary, [data-theme="dark"] #viewDrive, [data-theme="dark"] #viewHome,
    [data-theme="dark"] #viewLapisUlang, [data-theme="dark"] #viewAccess, [data-theme="dark"] #viewSync, [data-theme="dark"] #viewAssemblyMonitoring, [data-theme="dark"] #viewFinishingMonitoring, [data-theme="dark"] #viewAssemblyPoDb, [data-theme="dark"] #viewFinishingPoDb { background:#171a18 !important; color:#e4e9e5 !important; }
    [data-theme="dark"] [class*="text-slate-900"], [data-theme="dark"] [class*="text-slate-800"],
    [data-theme="dark"] [class*="text-slate-700"], [data-theme="dark"] [class*="text-slate-600"] { color:#dce3de !important; }
    [data-theme="dark"] [class*="bg-slate-50"], [data-theme="dark"] [class*="bg-slate-100"] { background:#292f2b !important; }
    [data-theme="dark"] [class*="bg-white"] { background:#202522 !important; }
    [data-theme="dark"] [class*="text-slate-500"], [data-theme="dark"] [class*="text-slate-400"] { color:#aeb9b1 !important; }
    [data-theme="dark"] [class*="text-emerald-"], [data-theme="dark"] [class*="text-green-"] { color:#8bd7a9 !important; }
    [data-theme="dark"] [class*="text-indigo-"], [data-theme="dark"] [class*="text-blue-"], [data-theme="dark"] [class*="text-sky-"] { color:#9ac7ef !important; }
    [data-theme="dark"] [class*="text-amber-"], [data-theme="dark"] [class*="text-orange-"] { color:#e6c785 !important; }
    [data-theme="dark"] [class*="text-rose-"], [data-theme="dark"] [class*="text-red-"] { color:#ef9eaa !important; }
    [data-theme="dark"] [class*="text-violet-"], [data-theme="dark"] [class*="text-purple-"] { color:#c1aff4 !important; }
    [data-theme="dark"] [class*="text-teal-"], [data-theme="dark"] [class*="text-cyan-"] { color:#80d3c6 !important; }
    [data-theme="dark"] #viewDatabase tbody tr:hover { background:#29312b !important; }
    [data-theme="dark"] #viewDatabase tbody td { color:#dce3de; border-color:#343d37 !important; }
    [data-theme="dark"] #viewDatabase th { background:#252b27 !important; color:#cbd5ce !important; border-color:#39423c !important; }
    [data-theme="dark"] #appSidebar .nav-link[aria-current="page"] { background:#173b28 !important; color:#8cddb0 !important; }
    [data-theme="dark"] #appSidebar .nav-link { color:#c5cec8 !important; }
    [data-theme="dark"] #appSidebar .nav-link:hover { background:#292f2b !important; color:#fff !important; }
    [data-theme="dark"] #appSidebar .nav-group-label, [data-theme="dark"] #workcenterSubnav .nav-sub-link { color:#aeb9b1 !important; }
    [data-theme="dark"] #workcenterSubnav .nav-sub-link[aria-current="page"] { background:#173b28 !important; color:#8cddb0 !important; }
    [data-theme="dark"] #appFooter { background:#202522 !important; }
    [data-theme="dark"] [class*="border-slate-200"], [data-theme="dark"] [class*="border-slate-300"] { border-color:#39423c !important; }
    [data-theme="dark"] [class*="border-slate-100"] { border-color:#303832 !important; }
    [data-theme="dark"] [class*="border-white"], [data-theme="dark"] hr { border-color:#39423c !important; }
    [data-theme="dark"] [class*="bg-sky-50"] { background:#1d2c34 !important; }
    [data-theme="dark"] [class*="bg-amber-50"] { background:#302a1c !important; }
    [data-theme="dark"] [class*="bg-emerald-50"] { background:#193126 !important; }
    [data-theme="dark"] [class*="bg-orange-50"] { background:#30261d !important; }
    [data-theme="dark"] [class*="bg-violet-50"] { background:#282438 !important; }
    [data-theme="dark"] [class*="bg-rose-50"] { background:#321f23 !important; }
    [data-theme="dark"] [class*="bg-teal-50"] { background:#1c302d !important; }
    [data-theme="dark"] [class*="bg-indigo-50"] { background:#26253b !important; }
    [data-theme="dark"] #viewSummary [class*="bg-\[\#faf9f5\]"], [data-theme="dark"] #viewSummary [class*="bg-\[\#f4f3ea\]"] { background:#252b27 !important; }
    [data-theme="dark"] #viewSummary [class*="bg-appbg"] { background:#171a18 !important; }
    [data-theme="dark"] #viewSummary [class*="bg-white"] { background:#202522 !important; }
    [data-theme="dark"] #summarySidebarContent { background:#171a18 !important; }
    [data-theme="dark"] #summarySidebarContent > div:first-child { background:#202522 !important; }
    [data-theme="dark"] #summaryListContainer .bg-indigo-50 { background:#1b2c22 !important; }
    [data-theme="dark"] #summaryListContainer .bg-white { background:#202522 !important; }
    [data-theme="dark"] #summaryDetailContainer [class*="bg-sky-50"] { background:#1d2c34 !important; }
    [data-theme="dark"] #summaryDetailContainer [class*="bg-amber-50"] { background:#302a1c !important; }
    [data-theme="dark"] #summaryDetailContainer [class*="bg-emerald-50"] { background:#193126 !important; }
    [data-theme="dark"] #summaryDetailContainer [class*="bg-orange-50"] { background:#30261d !important; }
    [data-theme="dark"] #summaryDetailContainer [class*="bg-violet-50"] { background:#282438 !important; }
    [data-theme="dark"] #summaryDetailContainer [class*="bg-rose-50"] { background:#321f23 !important; }
    [data-theme="dark"] #summaryDetailContainer [class*="bg-teal-50"] { background:#1c302d !important; }
    [data-theme="dark"] #summaryDetailContainer [class*="bg-slate-100"] { background:#292f2b !important; }
    [data-theme="dark"] #summaryDetailContainer [class*="bg-slate-200"] { background:#292f2b !important; color:#dce3de !important; }
    [data-theme="dark"] #summaryDetailContainer [class*="bg-emerald-100"] { background:#193126 !important; color:#91dbb2 !important; }
    [data-theme="dark"] #summaryDetailContainer [class*="bg-rose-100"] { background:#321f23 !important; color:#f2a6af !important; }
    [data-theme="dark"] #summaryDetailContainer [class*="bg-amber-100"] { background:#302a1c !important; color:#e6cc91 !important; }
    [data-theme="dark"] #summaryDetailContainer [class*="bg-indigo-100"] { background:#29243a !important; color:#c3b5fb !important; }
    [data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea { background:#252b27 !important; color:#e4e9e5 !important; border-color:#465149 !important; }
    [data-theme="dark"] #loading { background:rgb(23 26 24 / .66) !important; }
    [data-theme="dark"] #loadingText { color:#dce3de !important; }
    /* Keep the matrix grid and stage cards readable when the app is in dark mode. */
    [data-theme="dark"] .row-shift-1st, [data-theme="dark"] .row-shift-3rd { background:#1d221f !important; }
    [data-theme="dark"] .row-shift-2nd { background:#232925 !important; }
    [data-theme="dark"] .header-today { background:#20322a !important; border-color:#375843 !important; }
    [data-theme="dark"] .col-today { background:#202923 !important; border-color:#354a3a !important; }
    [data-theme="dark"] #ganttScrollArea, [data-theme="dark"] #ganttContentWrapper,
    [data-theme="dark"] #ganttScrollArea table, [data-theme="dark"] #ganttScrollArea tbody,
    [data-theme="dark"] #ganttScrollArea tr, [data-theme="dark"] #ganttScrollArea td { background-color:#1d221f !important; color:#dce3de !important; }
    [data-theme="dark"] #ganttScrollArea th { background:#252b27 !important; color:#cbd5ce !important; border-color:#39423c !important; }
    [data-theme="dark"] .gantt-cell { border-color:#39423c !important; }
    [data-theme="dark"] .sticky-col { border-right-color:#465149 !important; }
    [data-theme="dark"] .gantt-card { background:#252b27 !important; color:#e4e9e5 !important; box-shadow:none !important; }
    [data-theme="dark"] .gantt-card[data-wc="Asy Core"] { background:#1d2c34 !important; border-color:#466a7d !important; }
    [data-theme="dark"] .gantt-card[data-wc="Finish Core"] { background:#302a1c !important; border-color:#75633d !important; }
    [data-theme="dark"] .gantt-card[data-wc="Asy Finish"] { background:#193126 !important; border-color:#376a4a !important; }
    [data-theme="dark"] .gantt-card[data-wc="Finishing"] { background:#30261d !important; border-color:#78583b !important; }
    [data-theme="dark"] .gantt-card[data-wc="QC Pass"] { background:#282438 !important; border-color:#5d527b !important; }
    [data-theme="dark"] .gantt-card[data-wc="FI"] { background:#321f23 !important; border-color:#795057 !important; }
    [data-theme="dark"] ::-webkit-scrollbar-track { background:#202522; }
    [data-theme="dark"] ::-webkit-scrollbar-thumb { background:#53615a; }
    [data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background:#6b7b71; }
    [data-theme="dark"] ::-webkit-scrollbar-corner { background:#202522; }
    [data-theme="dark"] .gantt-card .text-slate-500, [data-theme="dark"] .gantt-card .text-slate-600 { color:#b9c4bc !important; }
    [data-theme="dark"] .gantt-card [class*="text-sky-"], [data-theme="dark"] .gantt-card [class*="text-amber-"],
    [data-theme="dark"] .gantt-card [class*="text-emerald-"], [data-theme="dark"] .gantt-card [class*="text-orange-"],
    [data-theme="dark"] .gantt-card [class*="text-violet-"], [data-theme="dark"] .gantt-card [class*="text-rose-"],
    [data-theme="dark"] .gantt-card [class*="text-teal-"] { color:#d7e2db !important; }
    [data-theme="dark"] #viewMatrix [class*="bg-sky-50"], [data-theme="dark"] #viewMatrix [class*="bg-amber-50"],
    [data-theme="dark"] #viewMatrix [class*="bg-emerald-50"], [data-theme="dark"] #viewMatrix [class*="bg-orange-50"],
    [data-theme="dark"] #viewMatrix [class*="bg-violet-50"], [data-theme="dark"] #viewMatrix [class*="bg-rose-50"],
    [data-theme="dark"] #viewMatrix [class*="bg-teal-50"] { background:#29332d !important; }
    [data-theme="dark"] #viewMatrix [class*="border-sky-"], [data-theme="dark"] #viewMatrix [class*="border-amber-"],
    [data-theme="dark"] #viewMatrix [class*="border-emerald-"], [data-theme="dark"] #viewMatrix [class*="border-orange-"],
    [data-theme="dark"] #viewMatrix [class*="border-violet-"], [data-theme="dark"] #viewMatrix [class*="border-rose-"],
    [data-theme="dark"] #viewMatrix [class*="border-teal-"] { border-color:#46554a !important; }
    [data-theme="dark"] .expand-indicator { background:#292f2b !important; color:#aeb9b1 !important; }
    [data-theme="dark"] .db-choice { background:#202522 !important; color:#e4e9e5 !important; border-color:#39423c !important; }
    [data-theme="dark"] .db-choice:hover { background:#252b27 !important; border-color:#52745d !important; }
    [data-theme="dark"] .db-choice small { color:#aeb9b1 !important; }
    [data-theme="dark"] .db-choice-code { background:#193126 !important; color:#91dbb2 !important; }
    [data-theme="dark"] #breadcrumbText { color:#e4e9e5 !important; }
    [data-theme="dark"] #themeToggle { background:#252b27 !important; color:#dce3de !important; border-color:#465149 !important; }
    [data-theme="dark"] #themeToggle:hover { background:#303832 !important; }
    [data-theme="dark"] #desktopSidebarButton { background:transparent !important; border:0 !important; box-shadow:none !important; color:#b8c4bc !important; }
    [data-theme="dark"] #desktopSidebarButton:hover { background:transparent !important; border:0 !important; color:#6ee7b7 !important; }
    [data-theme="dark"] .tab-btn.active { background:#334139 !important; color:#edf4ef !important; }
    [data-theme="dark"] .tab-btn.inactive { background:#252b27 !important; color:#bac5bd !important; }
    [data-theme="dark"] #legendModal > div, [data-theme="dark"] #legendModal > div > div { background:#202522 !important; color:#dce3de !important; border-color:#39423c !important; }
    [data-theme="dark"] #legendModal [class*="text-"] { color:#dce3de !important; }
    [data-theme="dark"] #legendModal [class*="bg-white"], [data-theme="dark"] #legendModal [class*="bg-slate-50"] { background:#252b27 !important; }
    [data-theme="dark"] #profileModal > div, [data-theme="dark"] #fluentConfirmBox, [data-theme="dark"] #fluentAlertBox, [data-theme="dark"] #syncLoadingBox, [data-theme="dark"] #syncConfirmBox { background:#202522 !important; color:#dce3de !important; border-color:#39423c !important; }
    [data-theme="dark"] #viewDashboard table tbody tr { border-color:#39423c !important; }
    [data-theme="dark"] #viewDashboard table tbody td { color:#dce3de !important; border-color:#343d37 !important; }
    [data-theme="dark"] #viewDashboard .text-emerald-800 { color:#83d5a4 !important; }
    [data-theme="dark"] #viewDashboard .text-rose-700, [data-theme="dark"] #viewDashboard .text-red-700 { color:#f1a4a4 !important; }
    [data-theme="dark"] #viewSummary table, [data-theme="dark"] #viewSummary tbody tr { color:#dce3de !important; border-color:#39423c !important; }
    [data-theme="dark"] #viewSummary td, [data-theme="dark"] #viewSummary th { border-color:#39423c !important; }
    [data-theme="dark"] #loading { background:rgb(23 26 24 / .66) !important; color:#e4e9e5 !important; }
    [data-theme="dark"] #loading .app-spinner { border-color:#465149; border-top-color:#00A651; }
    [data-theme="dark"] #viewLapisUlang .bg-slate-50, [data-theme="dark"] #viewLapisUlang .bg-slate-100,
    [data-theme="dark"] #viewLapisUlang .bg-white { background:#202522 !important; }
    [data-theme="dark"] #viewLapisUlang table thead { background:#252b27 !important; }
    [data-theme="dark"] #viewLapisUlang table tbody td, [data-theme="dark"] #viewLapisUlang table thead th { color:#dce3de !important; border-color:#39423c !important; }
    [data-theme="dark"] #viewLapisUlang .border-white, [data-theme="dark"] #viewLapisUlang [class*="border-slate-"] { border-color:#39423c !important; }
    [data-theme="dark"] #driveManagementGrid > div, [data-theme="dark"] #driveAccessNotice { background:#202522 !important; color:#dce3de !important; border-color:#39423c !important; }
    [data-theme="dark"] #driveManagementGrid table thead { background:#252b27 !important; color:#bac5bd !important; }
    [data-theme="dark"] #driveManagementGrid a:not(.sync-action-btn), [data-theme="dark"] #driveManagementGrid button:not(.sync-action-btn) { background-color:#252b27; border-color:#465149; color:#dce3de; }
    [data-theme="dark"] #viewDatabase > div { max-width:none !important; }
    [data-theme="dark"] #viewDatabase #mainDBTable { background:#202522 !important; }
    [data-theme="dark"] #viewDatabase tbody tr:hover { background:#29312b !important; }
    [data-theme="dark"] #viewDatabase #dbHome { box-shadow:none !important; }
    [data-theme="dark"] #forecastFilterMenu { background:#202522 !important; color:#dce3de !important; border-color:#39423c !important; }
    [data-theme="dark"] #forecastFilterButton { background:#252b27 !important; color:#dce3de !important; border-color:#465149 !important; }
    .forecast-option { display:flex; align-items:center; gap:8px; min-height:30px; padding:4px 7px; color:#34423a; cursor:pointer; }
    .forecast-option:hover { background:#f3f7f4; }
    .forecast-option input { accent-color:#00A651; }
    .forecast-divider { height:1px; margin:3px 5px; background:#e3e7e4; }
    [data-theme="dark"] .forecast-option { color:#dce3de; }
    [data-theme="dark"] .forecast-option:hover { background:#29312b; }
    [data-theme="dark"] .forecast-divider { background:#39423c; }
    #viewDatabase > div { max-width:none !important; }
    #viewDatabase #mainDBTable { width:100%; min-width:1080px; table-layout:fixed; }
    #viewDatabase #mainDBTable th, #viewDatabase #mainDBTable td { overflow-wrap:normal; }
    #viewDatabase #mainDBTable th:nth-child(1), #viewDatabase #mainDBTable td:nth-child(1) { width:11%; }
    #viewDatabase #mainDBTable th:nth-child(2), #viewDatabase #mainDBTable td:nth-child(2) { width:8%; }
    #viewDatabase #mainDBTable th:nth-child(3), #viewDatabase #mainDBTable td:nth-child(3) { width:12%; }
    #viewDatabase #mainDBTable th:nth-child(4), #viewDatabase #mainDBTable td:nth-child(4) { width:12%; }
    #viewDatabase #mainDBTable th:nth-child(1), #viewDatabase #mainDBTable td:nth-child(1) { min-width:105px; }
    #viewDatabase #mainDBTable th:nth-child(2), #viewDatabase #mainDBTable td:nth-child(2) { min-width:76px; }
    #viewDatabase #mainDBTable th:nth-child(3), #viewDatabase #mainDBTable td:nth-child(3) { min-width:116px; }
    #viewDatabase #mainDBTable th:nth-child(4), #viewDatabase #mainDBTable td:nth-child(4) { min-width:135px; }
    #viewDatabase #mainDBTable th:nth-child(5), #viewDatabase #mainDBTable td:nth-child(5) { min-width:150px; }
    #viewDatabase #mainDBTable th.db-item-name-head, #viewDatabase #mainDBTable td.db-item-name-cell { width:36% !important; min-width:300px; white-space:nowrap; }
    #viewDatabase #mainDBTable th:nth-child(n+7), #viewDatabase #mainDBTable td:nth-child(n+7) { min-width:92px; }
    body.sidebar-collapsed { --sidebar-width: 64px; }
    body.sidebar-collapsed #appSidebar { overflow-x:hidden; border-right:1px solid #e3e7e4; }
    body.sidebar-collapsed #appSidebar .sidebar-brand { justify-content:center; padding-left:0; padding-right:0; }
    body.sidebar-collapsed #appSidebar .sidebar-brand > div, body.sidebar-collapsed #appSidebar .nav-group-label, body.sidebar-collapsed #workcenterSubnav { display:none !important; }
    body.sidebar-collapsed #appSidebar nav { padding-left:8px; padding-right:8px; }
    body.sidebar-collapsed #appSidebar .nav-link { justify-content:center; gap:0; padding:0; font-size:0; }
    body.sidebar-collapsed #appSidebar .nav-link svg { width:19px; height:19px; flex:none; }
    body.sidebar-collapsed #appFooter { left:var(--sidebar-width); width:calc(100% - var(--sidebar-width)); }
    #desktopSidebarButton { display:inline-flex; width:32px; height:32px; align-items:center; justify-content:center; border:0; border-radius:0; color:#56615a; background:transparent; }
    #desktopSidebarButton:hover { color:#008844; background:transparent; }
    @media (max-width:767px) { body.sidebar-collapsed { --sidebar-width:0px; } #desktopSidebarButton { display:none; } }
    #viewDatabase th, #viewDrive th, #viewDashboard table th { padding-top: 6px; padding-bottom: 6px; font-size: 11px; letter-spacing: .01em; text-transform: none; }
    #viewDatabase td, #viewDrive td, #viewDashboard table td { padding-top: 6px; padding-bottom: 6px; font-size: 12px; }
    #viewDrive > div { gap: 14px; }
    #viewDrive .rounded-2xl { padding: 14px; }
    #viewDrive button, #viewDrive a { min-height: 32px; }
    #viewDrive .animate-pulse { animation: none; }
    #legendModal > div > div:first-child { background: #f3f5f3 !important; color: #202522 !important; border-bottom: 1px solid #e3e7e4; }
    #legendModal > div > div:first-child button { color: #56615a !important; }
    #fluentConfirmModal, #fluentAlertModal, #syncLoadingModal, #syncConfirmModal { justify-content: center !important; padding: 16px; background: rgb(32 37 34 / .32) !important; backdrop-filter: none !important; }
    #fluentConfirmBox, #fluentAlertBox, #syncLoadingBox, #syncConfirmBox { margin: 0 !important; border-radius: 6px !important; padding: 18px !important; box-shadow: 0 8px 24px rgb(32 37 34 / .16) !important; }
    #viewDashboard .text-brand-600, #viewDashboard .hover\:text-brand-600:hover { color: #008844; }
    #viewDashboard .bg-brand-600 { background-color: #00A651; }
    #viewDashboard button, #viewDatabase button, #viewMatrix button, #viewDrive button { min-height: 30px; }
    #viewDashboard [aria-haspopup="listbox"] { min-height: 30px !important; font-size: 11px; padding-left: 9px; padding-right: 9px; }
    #viewDashboard > div { gap: 12px; }
    #viewDashboard .max-w-\\[1400px\\] > div { gap: 10px; }
    #viewDatabase .db-home-shell { max-width:900px; width:100%; margin:0 auto; }
    #viewDatabase .db-home-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
    #viewDatabase .db-choice { min-height:92px; display:flex; align-items:center; gap:13px; border:1px solid #e1e8e3; background:#fff; padding:15px; text-align:left; }
    #viewDatabase .db-choice-code { width:40px; height:40px; display:grid; place-items:center; flex:none; border-radius:6px; background:#eff8f2; color:#008844; font-size:10px; font-weight:650; }
    #viewDatabase .db-choice-code svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
    #viewDatabase .db-choice b { display:block; font-size:15px; font-weight:600; }
    #viewDatabase .db-choice small { display:block; margin-top:4px; color:#77817b; font-size:12px; line-height:1.45; font-weight:400; }
    #viewDatabase .db-choice:hover { background:#f8fbf9; border-color:#b8d8c4; }
    #viewDatabase .db-choice:nth-child(2) .db-choice-code { background:#edf4ff;color:#3564a2; }
    #viewDatabase .db-choice:nth-child(3) .db-choice-code { background:#f3effb;color:#7354a4; }
    #viewDatabase .db-choice:nth-child(4) .db-choice-code { background:#fff2ec;color:#b76336; }
    #viewDatabase .db-choice:nth-child(5) .db-choice-code { background:#fdf2e4;color:#a36b1d; }
    #viewDatabase .db-choice:nth-child(6) .db-choice-code { background:#eaf4f5;color:#32737a; }
    .sidebar-profile { width:calc(100% - 24px); margin:8px 12px 14px; min-height:58px; display:flex; align-items:center; gap:10px; padding:8px; border:1px solid #e1e8e3; border-radius:7px; background:#fff; color:#26332b; text-align:left; }
    .sidebar-profile:hover { background:#f7faf8; border-color:#cbd9cf; }
    .sidebar-profile-avatar,.access-avatar { width:36px; height:36px; flex:none; display:grid; place-items:center; overflow:hidden; border-radius:50%; background:#e8f5ed; color:#087642; font-weight:650; font-size:13px; }
    .sidebar-profile-copy { min-width:0; flex:1; }
    .sidebar-profile-copy strong,.sidebar-profile-copy small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .sidebar-profile-copy strong { font-size:12px; font-weight:600; }
    .sidebar-profile-copy small { margin-top:2px; color:#758078; font-size:10px; text-transform:capitalize; }
    .topbar-icon-button { width:32px; height:32px; position:relative; display:inline-grid; place-items:center; border:1px solid #dce3de; border-radius:5px; color:#56635a; background:#fff; }
    .topbar-icon-button:hover { background:#f5f8f6; }
    .topbar-icon-button i { position:absolute; width:6px; height:6px; border-radius:50%; right:6px; top:5px; background:#e45045; }
    #viewMatrix > div:first-child { gap:8px !important; }
    #viewMatrix #wcFilterContainer { gap:5px !important; }
    #viewMatrix #wcFilterContainer button { min-height:27px !important; padding:3px 7px !important; font-size:10px !important; }
    #viewMatrix select, #viewMatrix input[type="date"] { border-radius:4px !important; }
    #dbContent { border-top:2px solid var(--db-wc-accent, #00A651); }
    #viewDashboard button[onclick^="resetDashFilters"], #viewDashboard button[onclick^="clearDashBuyer"], #viewDatabase button[onclick^="resetAllFilters"] { color:#a33c3c; border-color:#e5c3c3; background:#fffafa; }
    #viewDashboard button[onclick^="resetDashFilters"]:hover, #viewDatabase button[onclick^="resetAllFilters"]:hover { background:#fff0f0; }
    #viewDashboard .grid { gap:10px; }
    #viewDashboard .max-w-\\[1400px\\] .p-5, #viewDashboard .max-w-\\[1400px\\] .p-6 { padding:12px; }
    #profileButton { min-height:40px; border:1px solid #e1e8e3; background:#fff; }
    #profileModal { background:rgb(25 34 29 / .32); }
    #viewDashboard .border-brand-500, #viewDashboard .focus\:border-brand-500:focus { border-color: #00A651; }
    #desktopSidebarButton { width:24px !important; height:28px !important; border:0 !important; background:transparent !important; padding:0 !important; }
    #desktopSidebarButton:hover { color:#008844 !important; background:transparent !important; }
    #topProfileButton { width:32px; height:32px; display:inline-grid; place-items:center; border:0; border-radius:50%; background:#e8f5ed; color:#006b37; font-size:12px; font-weight:650; }
    #topProfileButton:hover { background:#d9eee1; }
    .dashboard-welcome { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; padding:6px 0 2px; }
    .dashboard-welcome h1 { margin:0; font-size:clamp(22px,2vw,28px); line-height:1.2; letter-spacing:-.035em; font-weight:650; color:#17211a; }
    .dashboard-welcome p { margin:5px 0 0; color:#657169; font-size:13px; }
    .dashboard-welcome time { color:#59645d; font-size:12px; white-space:nowrap; }
    .dashboard-info-banner { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:148px; padding:24px 28px; border:1px solid #164f40; background:linear-gradient(112deg,#0d463a 0%,#14584a 58%,#4b7354 100%); color:#f5fbf6; border-radius:12px; }
    .dashboard-info-copy { max-width:820px; }
    .dashboard-info-kicker { margin:0 0 9px; color:#d9ef40; font-size:11px; font-weight:650; letter-spacing:.08em; text-transform:uppercase; }
    .dashboard-info-banner h2 { margin:0; max-width:800px; font-size:clamp(20px,2vw,27px); line-height:1.25; letter-spacing:-.025em; font-weight:650; }
    .dashboard-info-banner p { margin:11px 0 0; max-width:760px; font-size:13px; line-height:1.55; color:#d7e9df; }
    .dashboard-info-actions { display:flex; flex:none; gap:8px; align-items:center; }
    .dashboard-info-actions button { min-height:34px; padding:0 11px; border:1px solid #a9c8bb; border-radius:5px; background:#ffffff16; color:#fff; font-size:11px; }
    .dashboard-info-actions button:first-child { background:#d9ef40; border-color:#d9ef40; color:#183b30; font-weight:650; }
    .dashboard-info-mark { display:none; }
    .dashboard-welcome { padding:0 0 4px; }
    .dashboard-welcome h1 { font-size:clamp(24px,2.2vw,32px); }
    .access-page-body { display:flex; flex-direction:column; gap:14px; }
    .access-card { padding:18px; background:#fff; border:1px solid #e0e6e1; border-radius:6px; }
    .access-card h2 { margin:0; color:#243129; font-size:15px; font-weight:650; }
    .access-card p { margin:4px 0 12px; color:#68746c; font-size:12px; }
    .access-user-list { border:1px solid #e5eae6; border-radius:4px; overflow:hidden; }
    .access-user-row { display:grid; grid-template-columns:minmax(0,1fr) 140px 72px; align-items:center; gap:12px; min-height:52px; padding:7px 10px; border-bottom:1px solid #edf0ed; }
    .access-edit-row { grid-template-columns:1fr 1fr 120px 1.15fr 58px 68px; }
    .access-edit-row input, .access-edit-row select { min-width:0; min-height:32px; border:1px solid #d8e0da; border-radius:4px; background:#fff; padding:0 8px; color:#344139; font:inherit; font-size:11px; }
    .access-save { min-height:30px; border:1px solid #16874c; border-radius:4px; background:#edf7f0; color:#17633a; font-size:11px; }
    .access-user-row:last-child { border-bottom:0; }
    .access-total { padding:5px 9px; border-radius:999px; background:#f0f4f1; color:#526057; font-size:11px; }
    .access-role-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:16px; }
    .access-role-card { min-width:0; border:1px solid #e3e9e5; border-radius:7px; overflow:hidden; background:#fff; }
    .access-role-card>header { min-height:58px; padding:12px; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid #edf0ed; }
    .access-role-card h3 { font-size:14px; font-weight:600; color:#243129; }
    .access-role-card header p { color:#7a857e; font-size:11px; margin-top:2px; }
    .access-role-mark { width:29px;height:29px;display:grid;place-items:center;border-radius:6px;background:#eef5f0;color:#087642;font-weight:650;font-size:12px; }
    .access-role-mark.admin { background:#eaf1fc;color:#365f9a; }.access-role-mark.planner { background:#f4f0fc;color:#7253a4; }
    .access-role-members { padding:2px 10px; }
    .access-member { padding:10px 2px; border-bottom:1px solid #edf0ed; }
    .access-member:last-child { border-bottom:0; }
    .access-member-ident { display:flex; align-items:center; gap:9px; min-width:0; }
    .access-member-ident .access-avatar { width:34px;height:34px; }
    .access-avatar img { width:100%;height:100%;object-fit:cover; }
    .access-member-name { min-width:0;flex:1; }.access-member-name strong,.access-member-name small { display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
    .access-member-name strong { color:#27342c;font-size:12px;font-weight:550; }.access-member-name small { color:#7a857e;font-size:10px;margin-top:2px; }
    .access-state { color:#167243;background:#e8f5ed;padding:3px 7px;border-radius:999px;font-size:10px; }
    .access-member-edit { margin:8px 0 0 43px;font-size:11px;color:#69756d; }.access-member-edit summary { cursor:pointer; }
    .access-edit-grid { display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px; }.access-edit-grid label { display:grid;gap:4px;font-size:10px; }
    .access-edit-grid input,.access-edit-grid select { min-width:0;height:31px;padding:0 7px;border:1px solid #dce3de;border-radius:4px;background:#fff;color:#26332b;font-size:11px; }
    .access-edit-actions { display:flex;justify-content:space-between;gap:8px;margin-top:8px; }.access-empty { padding:14px 3px;color:#7a857e;font-size:11px; }
    .access-user-row strong, .access-user-row small { display:block; }
    .access-user-row strong { font-size:13px; font-weight:550; color:#26332b; }
    .access-user-row small { margin-top:2px; color:#758078; font-size:11px; }
    .access-role, .access-role-field select { color:#4e5a52; font-size:11px; }
    .access-role-field select, .access-form input, .access-form select { min-height:34px; border:1px solid #d8e0da; border-radius:4px; background:#fff; padding:0 9px; color:#344139; font:inherit; font-size:12px; }
    .access-remove { min-height:30px; border:1px solid #e7caca; border-radius:4px; background:#fff8f8; color:#a33c3c; font-size:11px; }
    .access-form { display:grid; grid-template-columns:1.1fr 1fr 1.2fr 140px auto; gap:8px; }
    .access-form button { min-height:34px; padding:0 12px; border:1px solid #007c3d; border-radius:4px; background:#008b45; color:#fff; font-size:12px; font-weight:600; }
    .access-notice { padding:14px; border:1px solid #e0e6e1; border-radius:5px; background:#fff; color:#5e6a62; font-size:13px; }
    .access-error { color:#a43c3c; }
    #viewDatabase #mainDBTable { min-width:1080px; }
    #viewDatabase #mainDBTable th.db-item-name-head, #viewDatabase #mainDBTable td.db-item-name-cell { width:36% !important; min-width:300px; white-space:nowrap; }
    #viewDatabase #mainDBTable td.db-item-name-cell { font-weight:400 !important; }
    #viewDatabase #mainDBTable th { text-transform:none; letter-spacing:.01em; }
    #viewLapisUlang .rounded-2xl { border-radius:6px; box-shadow:none; }
    #viewLapisUlang #chartLuItem { min-height:320px; }
    #viewLapisUlang #chartLuShift { outline:0; }
    [data-theme="dark"] #appSidebar .nav-link[aria-current="page"] { background:#173b28 !important; color:#a7e2bd !important; }
    [data-theme="dark"] #appSidebar .nav-link[aria-current="page"] svg { color:#72d19a !important; }
    [data-theme="dark"] #desktopSidebarButton { color:#c4cec7 !important; }
    [data-theme="dark"] #topProfileButton { background:#244732; color:#b2e6c5; }
    [data-theme="dark"] #viewDashboard .dashboard-welcome h1 { color:#e6ece8; }
    [data-theme="dark"] .dashboard-welcome time { color:#bac5bd; }
    [data-theme="dark"] .dashboard-info-banner { background:linear-gradient(112deg,#0b382f 0%,#12483d 58%,#33533d 100%); border-color:#31594a; color:#edf6ef; }
    [data-theme="dark"] .dashboard-info-banner p { color:#c2d7ca; }
    [data-theme="dark"] .dashboard-info-mark { border-color:#52745d; color:#8cddb0; }
    [data-theme="dark"] .access-card, [data-theme="dark"] .access-notice { background:#202522; border-color:#39423c; color:#dce3de; }
    [data-theme="dark"] .access-card h2, [data-theme="dark"] .access-user-row strong { color:#e1e8e3; }
    [data-theme="dark"] .access-card p, [data-theme="dark"] .access-user-row small { color:#aeb9b1; }
    [data-theme="dark"] .access-user-list, [data-theme="dark"] .access-user-row { border-color:#39423c; }
    [data-theme="dark"] .access-role-field select, [data-theme="dark"] .access-form input, [data-theme="dark"] .access-form select { color:#e0e7e2; background:#252b27; border-color:#465149; }
    [data-theme="dark"] .access-remove { background:#392929; color:#ffb6ad; border-color:#694442; }
    [data-theme="dark"] .access-edit-row input, [data-theme="dark"] .access-edit-row select { color:#e0e7e2; background:#252b27; border-color:#465149; }
    [data-theme="dark"] .access-save { background:#203a2b; color:#a9e1bb; border-color:#35634a; }
    #viewCalendar { color:var(--text-main); }
    .delivery-calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); border-top:1px solid #e6ebe7; border-left:1px solid #e6ebe7; }
    .delivery-calendar-head, .delivery-calendar-day { min-height:112px; padding:10px; border-right:1px solid #e6ebe7; border-bottom:1px solid #e6ebe7; }
    .delivery-calendar-head { min-height:auto; background:#f7f9f7; color:#647168; font-size:12px; font-weight:600; }
    .delivery-calendar-day { font-size:13.5px; }
    .delivery-calendar-day.outside { background:#fafbfa; color:#a8b0aa; }
    .delivery-calendar-head.sunday, .delivery-calendar-day.sunday .calendar-day-number { color:#c0443c; }
    .delivery-calendar-day.sunday { background:#fffafa; }
    .delivery-event { display:block; width:100%; overflow:hidden; text-align:left; cursor:pointer; margin-top:5px; padding:4.5px 8px; border-radius:999px; background:#edf7f0; color:#17633a; font-size:12px; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }
    .delivery-event.shipped { background:#e8f5ed; color:#17633a; }
    .delivery-event.upcoming { background:#fff3d9; color:#835817; }
    .delivery-event.overdue { background:#fdebea; color:#9d3834; }
    .calendar-more { margin-top:5px; color:#168149; font-size:11.5px; font-weight:600; }
    .delivery-detail-meta { display:grid; grid-template-columns:130px minmax(0,1fr); gap:8px 14px; margin-bottom:16px; font-size:12px; }
    .delivery-detail-meta span { color:#6b756e; }.delivery-detail-meta strong { font-weight:600; color:#29342d; }
    .delivery-detail-table-wrap { overflow:auto; border:1px solid #e2e8e4; border-radius:5px; }
    .delivery-detail-table { width:100%; border-collapse:collapse; font-size:11px; }
    .delivery-detail-table th { text-align:left; padding:8px 10px; color:#69746d; background:#f6f8f6; font-weight:600; }
    .delivery-detail-table td { padding:8px 10px; border-top:1px solid #edf0ed; color:#364139; }
    .delivery-detail-table td:nth-child(n+3), .delivery-detail-table th:nth-child(n+3) { text-align:right; font-variant-numeric:tabular-nums; }
    .dashboard-donut-center { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; pointer-events:none; padding-right:68px; }
    .dashboard-donut-center strong { color:#25342b; font-size:22px; line-height:1; font-weight:650; font-variant-numeric:tabular-nums; }
    .dashboard-donut-center span { margin-top:4px; color:#77827a; font-size:10px; }
    .calendar-dot { display:inline-block; width:8px; height:8px; margin-right:5px; border-radius:50%; background:#718078; }
    .calendar-dot.shipped { background:#20a35a; }.calendar-dot.upcoming { background:#dba23f; }.calendar-dot.overdue { background:#d5534d; }
    .calendar-shell { overflow:hidden; }
    .calendar-toolbar { display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 22px 16px;border-bottom:1px solid #e7ece8; }
    .calendar-eyebrow { margin-bottom:3px;color:#168149;font-size:11px;font-weight:650;letter-spacing:.06em;text-transform:uppercase; }
    .calendar-toolbar-actions { display:flex;align-items:center;gap:8px;flex-wrap:wrap; }
    .calendar-search { height:36px;width:225px;max-width:50vw;display:flex;align-items:center;gap:7px;padding:0 10px;border:1px solid #cfd8d2;border-radius:5px;color:#6c7770; }
    .calendar-search input { width:100%;min-width:0;border:0;outline:0;background:transparent;color:inherit;font-size:12px; }
    .calendar-toolbar-actions select,.calendar-nav-button { height:36px;padding:0 12px;border:1px solid #cfd8d2;border-radius:5px;background:#fff;color:#2f3f36;font-size:12px; }
    .calendar-nav-button.calendar-nav-arrow { min-width:38px;padding:0;display:inline-flex;align-items:center;justify-content:center;color:#1e2d24;border-color:#c2cec6; }
    .calendar-nav-button:hover { background:#f5f8f6; }
    .calendar-view-tabs { display:flex;align-items:center;gap:20px;padding:0 22px;border-bottom:1px solid #e7ece8; }
    .calendar-tab { padding:12px 2px 11px;border:0;border-bottom:2px solid transparent;background:transparent;color:#6d7870;font-size:12.5px;font-weight:500;cursor:pointer; }
    .calendar-tab:hover { color:#1d3427; }
    .calendar-tab.active { border-bottom:2px solid #168149;color:#1d3427;font-weight:600; }
    .calendar-month-caption { color:#7b857e;font-size:12px; }
    .calendar-shell .delivery-calendar-grid { border:0; }
    .calendar-shell .delivery-calendar-head { min-height:42px;padding:11px 12px;border-top:0;text-transform:uppercase;letter-spacing:.04em; }
    .calendar-shell .delivery-calendar-day { min-height:138px;padding:10px 11px; }
    .calendar-day-number { display:inline-grid;place-items:center;min-width:28px;height:28px;border-radius:50%;font-size:13.5px; }
    .calendar-more { padding:3px 6px; }
    .calendar-shell .delivery-calendar-day.sunday { background:#fffafa; }
    .master-plan-note { display:flex;flex-direction:column;gap:5px;padding:13px 15px;border:1px solid #dbe8de;border-left:3px solid #00a651;border-radius:5px;background:#f8fbf8;color:#304138;font-size:12px; }
    .master-plan-note strong { font-weight:600; }.master-plan-note span { color:#718078; }
    .master-plan-periods { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px; }
    .master-plan-period-card { min-width:0;padding:13px 15px;border:1px solid #e1e8e3;border-radius:6px;background:#fff; }
    .master-plan-period-card>div { display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:7px 10px; }
    .master-plan-period-card>div span { grid-column:1/-1;color:#59665e;font-size:11px;font-weight:600; }
    .master-plan-period-card strong { color:#26332b;font-size:18px;font-weight:650;font-variant-numeric:tabular-nums; }
    .master-plan-period-card b { color:#167243;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums; }
    .master-plan-period-card small { display:block;margin-top:7px;color:#7a857e;font-size:10px; }
    .master-plan-period-card.grand-total { background:#f4faf6;border-color:#cfe4d5; }
    .master-plan-period-empty { grid-column:1/-1;padding:14px;border:1px solid #e1e8e3;border-radius:6px;background:#fff;color:#748078;font-size:12px; }
    .summary-detail-layout { grid-template-columns:minmax(310px,370px) minmax(0,1fr);align-items:start; }
    .summary-product-identity { position:sticky;top:0;align-self:start; }
    .summary-product-identity h1 { font-size:22px !important; }
    .summary-family-heading { margin-top:14px;padding-top:12px;border-top:1px solid #e6ebe7;color:#435047;font-size:12px;font-weight:600; }
    .summary-family-list { display:flex;flex-direction:column;gap:0;margin-top:5px; }
    .summary-family-row { display:grid;grid-template-columns:84px minmax(0,1fr);gap:2px 8px;padding:8px 0;border-bottom:1px solid #edf0ed; }
    .summary-family-row>span { grid-row:span 2;color:#69756d;font-size:10px;font-weight:550; }
    .summary-family-row strong { overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#28362d;font-size:11px;font-weight:600;font-variant-numeric:tabular-nums; }
    .summary-family-row small,.summary-family-row em { grid-column:2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#79847d;font-size:10px;font-style:normal; }
    .summary-wc-tabs { display:flex;gap:4px;overflow-x:auto;padding:2px 2px 8px;margin-bottom:6px; }
    .summary-wc-tabs button { flex:none;min-height:30px;padding:0 10px;border:1px solid #dfe6e1;border-radius:4px;background:#fff;color:#5c6961;font-size:11px; }
    .summary-wc-tabs button.active { border-color:#9dc9aa;background:#eef8f1;color:#12683b;font-weight:600; }
    .summary-auto-note { display:flex;flex-direction:column;gap:2px;white-space:normal; }
    .summary-auto-note b { color:#765318;font-size:10px;font-weight:600; }
    .summary-auto-note small { color:#7f7258;font-size:9px; }
    [data-theme="dark"] .master-plan-note,[data-theme="dark"] .master-plan-period-card,[data-theme="dark"] .master-plan-period-empty,[data-theme="dark"] .summary-product-identity { background:#202522;color:#dce3de;border-color:#39423c; }
    [data-theme="dark"] .master-plan-note span,[data-theme="dark"] .master-plan-period-card small,[data-theme="dark"] .summary-family-row>span,[data-theme="dark"] .summary-family-row small,[data-theme="dark"] .summary-family-row em { color:#aab5ad; }
    [data-theme="dark"] .master-plan-period-card>div span,[data-theme="dark"] .master-plan-period-card strong,[data-theme="dark"] .summary-family-row strong,[data-theme="dark"] .summary-family-heading { color:#e1e8e3; }
    [data-theme="dark"] .master-plan-period-card b { color:#9de1b5; }
    [data-theme="dark"] .master-plan-period-card.grand-total,[data-theme="dark"] .summary-wc-tabs button.active { background:#24352a;border-color:#41684e;color:#b9e7c7; }
    [data-theme="dark"] .summary-wc-tabs button { background:#252b27;border-color:#39423c;color:#c2ccc5; }
    [data-theme="dark"] .summary-family-row,[data-theme="dark"] .summary-family-heading { border-color:#39423c; }
    [data-theme="dark"] .summary-auto-note b { color:#f0ca83; }[data-theme="dark"] .summary-auto-note small { color:#cabd9e; }
    [data-theme="dark"] .sidebar-profile,[data-theme="dark"] .topbar-icon-button,[data-theme="dark"] .calendar-toolbar-actions select,[data-theme="dark"] .calendar-nav-button { background:#252b27;color:#dce3de;border-color:#39423c; }
    [data-theme="dark"] .sidebar-profile:hover,[data-theme="dark"] .calendar-nav-button:hover { background:#2d3530; }
    [data-theme="dark"] .sidebar-profile-copy strong,[data-theme="dark"] .access-role-card h3,[data-theme="dark"] .access-member-name strong { color:#e1e8e3; }
    [data-theme="dark"] .sidebar-profile-copy small,[data-theme="dark"] .access-role-card header p,[data-theme="dark"] .access-member-name small { color:#aab5ad; }
    [data-theme="dark"] .access-role-card,[data-theme="dark"] .access-role-card>header,[data-theme="dark"] .access-member { background:#202522;border-color:#39423c; }
    [data-theme="dark"] .access-edit-grid input,[data-theme="dark"] .access-edit-grid select { background:#252b27;border-color:#465149;color:#dce3de; }
    [data-theme="dark"] .access-total { background:#2b332e;color:#c5d2c9; }
    [data-theme="dark"] .calendar-toolbar,[data-theme="dark"] .calendar-view-tabs { border-color:#39423c; }
    [data-theme="dark"] .calendar-search { border-color:#465149; }
    [data-theme="dark"] .calendar-search input { color:#dce3de; }
    [data-theme="dark"] .calendar-tab { color:#9aa69e; }
    [data-theme="dark"] .calendar-tab:hover { color:#e2ece5; }
    [data-theme="dark"] .calendar-tab.active { color:#ccebd7; border-bottom-color:#24a862; }
    [data-theme="dark"] .calendar-nav-button.calendar-nav-arrow { color:#e4ece7; border-color:#4d5a51; }
    [data-theme="dark"] .calendar-shell .delivery-calendar-day.sunday { background:#281e1d; }
    [data-theme="dark"] #viewCalendar .bg-white { background:#202522 !important; border-color:#39423c !important; }
    [data-theme="dark"] .delivery-calendar-grid, [data-theme="dark"] .delivery-calendar-head, [data-theme="dark"] .delivery-calendar-day { border-color:#39423c; }
    [data-theme="dark"] .delivery-calendar-head { background:#252b27; color:#b6c1b9; }
    [data-theme="dark"] .delivery-calendar-day.outside { background:#1b201d; color:#69756d; }
    [data-theme="dark"] .delivery-calendar-day.sunday { background:#281e1d; }
    [data-theme="dark"] .delivery-calendar-head.sunday, [data-theme="dark"] .delivery-calendar-day.sunday .calendar-day-number { color:#f08b81; }
    [data-theme="dark"] .delivery-event.shipped { background:#203a2b; color:#a9e1bb; }
    [data-theme="dark"] .delivery-event.upcoming { background:#3a3222; color:#f0ca83; }
    [data-theme="dark"] .delivery-event.overdue { background:#422b29; color:#f1aaa3; }
    [data-theme="dark"] .delivery-detail-meta strong, [data-theme="dark"] .dashboard-donut-center strong { color:#e1e8e3; }
    [data-theme="dark"] .delivery-detail-meta span, [data-theme="dark"] .dashboard-donut-center span { color:#aab5ad; }
    [data-theme="dark"] .delivery-detail-table-wrap, [data-theme="dark"] .delivery-detail-table td { border-color:#39423c; }
    [data-theme="dark"] .delivery-detail-table th { color:#bcc6bf; background:#252b27; }
    [data-theme="dark"] .delivery-detail-table td { color:#dce3de; }
    [data-theme="dark"] .delivery-event-modal-box { background:#202522; border-color:#39423c; }
    [data-theme="dark"] #topProfileName { color:#e2e9e4 !important; }
    [data-theme="dark"] #topProfileRole { color:#aeb9b1 !important; }
    [data-theme="dark"] #viewLapisUlang .text-rose-300 { color:#eea0aa !important; }
    [data-theme="dark"] #viewLapisUlang .text-slate-400, [data-theme="dark"] #viewLapisUlang .text-slate-500 { color:#aab6ae !important; }
    [data-theme="dark"] #viewLapisUlang .bg-rose-50, [data-theme="dark"] #viewLapisUlang .bg-slate-50 { background:#282c2a !important; }
    [data-theme="dark"] #viewLapisUlang .border-rose-200, [data-theme="dark"] #viewLapisUlang .border-slate-200 { border-color:#414a44 !important; }
    [data-theme="dark"] #viewLapisUlang .text-amber-700, [data-theme="dark"] #viewLapisUlang .text-orange-800 { color:#f3c17c !important; }
    [data-theme="dark"] #viewLapisUlang .bg-white { background:#202522 !important; }
    [data-theme="dark"] #viewLapisUlang .text-slate-700, [data-theme="dark"] #viewLapisUlang .text-slate-800 { color:#dce3de !important; }
    [data-theme="dark"] #viewLapisUlang .border-white { border-color:#303833 !important; }
    [data-theme="dark"] #viewDashboard details[open], [data-theme="dark"] #viewDashboard .progress-detail-list, [data-theme="dark"] #viewDashboard .product-detail-list { background:#252b27 !important; color:#dce3de !important; border-color:#465149 !important; }
    [data-theme="dark"] #viewDashboard .progress-disclosure summary { color:#98ddb0 !important; }
    [data-theme="dark"] #viewDashboard .text-amber-700, [data-theme="dark"] #viewDashboard .text-orange-700, [data-theme="dark"] #viewDashboard .text-emerald-800 { color:#9de1b5 !important; }
    [data-theme="dark"] #viewDashboard .bg-amber-100, [data-theme="dark"] #viewDashboard .bg-orange-100, [data-theme="dark"] #viewDashboard .bg-emerald-100 { background:#26382d !important; }
    [data-theme="dark"] #viewDatabase .text-amber-700, [data-theme="dark"] #viewDatabase .text-orange-700 { color:#f3c17c !important; }
    [data-theme="dark"] #viewDatabase .border-white { border-color:#303833 !important; }
    @media (max-width: 900px) {
      :root { --sidebar-width: 220px; }
    }
    @media (max-width: 767px) {
      #appSidebar { width: min(82vw, 280px); transform: translateX(-100%); box-shadow: 8px 0 24px rgb(18 33 22 / .12); }
      #appSidebar.is-open { transform: translateX(0); }
      header#appTopbar, #pageSubHeader, #viewHome, #viewMatrix, #viewSummary, #viewDrive, #viewDatabase, #viewDashboard, #viewLapisUlang, #viewItemMasterMaterial, #viewAccess, #viewCalendar, #viewSync, #viewAssemblyMonitoring, #viewFinishingMonitoring, #viewAssemblyPoDb, #viewFinishingPoDb { margin-left: 0; width: 100%; }
      header#appTopbar { padding: 0 14px; }
      #pageSubHeader { padding: 14px 16px 8px; }
      #viewDashboard, #viewHome { padding: 12px 14px 22px; }
      #appSidebar .nav-link { min-height: 46px; }
      #viewDashboard button, #viewDashboard input, #viewDashboard select { min-height: 44px; }
      #appTopbar button { min-height: 44px; }
      #appFooter { left:0; width:100%; }
      .progress-detail-row, .product-detail-row { grid-template-columns: 1fr auto; }
      .progress-detail-row span:last-child, .product-detail-row small { grid-column: 2; }
      .dashboard-welcome { align-items:flex-start; flex-direction:column; gap:4px; }
      .dashboard-welcome time { font-size:11px; }
      .access-form { grid-template-columns:1fr; }
      .access-user-row { grid-template-columns:minmax(0,1fr) 104px; }
      .access-role-grid { grid-template-columns:1fr; }
      .master-plan-periods { grid-template-columns:1fr; }
      .calendar-toolbar { align-items:flex-start;flex-direction:column; }
      .calendar-toolbar-actions { width:100%; }
      .calendar-search { flex:1;max-width:none; }
      .access-remove { grid-column:2; }
      #viewDatabase .db-home-grid { grid-template-columns:1fr; }
      .dashboard-info-banner { align-items:flex-start; flex-direction:column; padding:20px; }
      .dashboard-info-actions { flex-wrap:wrap; }
      .access-edit-row { grid-template-columns:1fr 1fr; }
      #viewCalendar { padding:12px 14px 22px; }
      .delivery-calendar-head, .delivery-calendar-day { min-height:74px; padding:5px; }
      .delivery-event { font-size:10.5px; }
    }
    @media (min-width:768px) and (max-width:1050px) { #viewSummary #summarySidebar { width:270px !important; } }
    @media print {
      body { display:block !important; height:auto !important; overflow:visible !important; background:#fff !important; color:#111 !important; }
      #appSidebar, #appTopbar, #pageSubHeader, #appFooter, #viewHome, #viewMatrix, #viewSummary, #viewDrive, #viewDatabase, #viewLapisUlang, #viewAccess, #viewCalendar, #viewSync, #viewDashboard > div > div.flex.flex-wrap, #dashEmptyState, #dashError, #viewDashboard button, #viewDashboard input, #viewDashboard select { display:none !important; }
      #viewDashboard { display:block !important; width:100% !important; margin:0 !important; padding:0 !important; overflow:visible !important; background:#fff !important; }
      #viewDashboard > div { max-width:none !important; gap:12px !important; }
      .dashboard-info-banner { print-color-adjust:exact; -webkit-print-color-adjust:exact; }
    }
    /* Dashboard components follow a compact operations layout: clear status colors, modest depth, readable metrics. */
    .dashboard-welcome { align-items:center; padding:2px 0 0; }
    .dashboard-welcome h1 { font-size:clamp(25px,2.1vw,31px); }
    .dashboard-welcome p { margin:5px 0 0; font-size:13px; }
    .dashboard-welcome-actions { display:flex;align-items:center;gap:8px; }
    .dashboard-welcome-actions button { min-height:34px;padding:0 11px;border:1px solid #dce3de;border-radius:5px;background:#fff;color:#45534a;font-size:11px;font-weight:550;box-shadow:0 1px 2px rgb(18 40 27 / .05); }
    .dashboard-welcome-actions button:hover { background:#f7faf8;border-color:#b9cbbf; }
    .dashboard-ai-note { min-height:38px;display:flex;align-items:center;gap:9px;padding:7px 12px;border:1px solid #f0d8d5;border-radius:5px;background:#fff7f6;color:#75413c;font-size:12px; }
    .dashboard-ai-note>span:first-child { display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#fde8e5;color:#bd544b;font-size:15px; }
    .dashboard-ai-note strong { color:#873f39;font-size:11px;font-weight:650;white-space:nowrap; }
    .dashboard-chart-grid { display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:16px;align-items:stretch; }
    .dashboard-chart-card { min-width:0;padding:17px 18px;border:1px solid #e1e7e3;border-radius:7px;background:#fff;box-shadow:0 1px 2px rgb(23 42 30 / .04); }
    .dashboard-volume-card { grid-column:1/-1; }
    .dashboard-card-heading { display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-height:39px; }
    .dashboard-card-heading h3 { margin:0;color:#26332b;font-size:14px;font-weight:620;letter-spacing:-.01em; }
    .dashboard-card-heading p { margin:4px 0 0;color:#79847d;font-size:11px; }
    .dashboard-card-heading label { display:flex;align-items:center;gap:7px;color:#6e7b72;font-size:10px;white-space:nowrap; }
    .dashboard-card-heading input[type=range] { width:84px;accent-color:#008b45; }
    .dashboard-trend-gap { font-weight:600; }
    .dashboard-volume-chart { height:500px;margin-top:12px; }
    .dashboard-donut-wrap { position:relative;height:176px;margin-top:3px; }
    .dashboard-donut-center { padding:0; }
    .dashboard-donut-center strong { font-size:23px; }
    .dashboard-donut-center span { font-size:10px; }
    .dashboard-exim-legend { display:grid;grid-template-columns:1fr;gap:0;margin-top:9px; }
    .dashboard-exim-legend button { min-width:0;display:grid;grid-template-columns:9px minmax(0,1fr) auto;align-items:center;gap:6px;text-align:left;color:#5d6961;font-size:10px; }
    .dashboard-exim-legend i { width:7px;height:7px;border-radius:50%; }
    .dashboard-exim-legend strong { color:#26332b;font-size:12px;font-weight:620;font-variant-numeric:tabular-nums; }
    .dashboard-open-chart { height:146px;margin-top:5px; }
    .dashboard-upcoming-card { grid-column:1/-1;min-width:0; }
    .dashboard-upcoming-wrap { max-height:330px;overflow:auto;border-top:1px solid #e8ede9; }
    .dashboard-upcoming-table { width:100%;border-collapse:collapse;table-layout:fixed;white-space:nowrap; }
    .dashboard-upcoming-table th,.dashboard-upcoming-table td { padding:9px 10px;border-bottom:1px solid #e9eeeb;text-align:left;font-size:12px;vertical-align:middle; }
    .dashboard-upcoming-table th { position:sticky;top:0;background:#f7f9f8;color:#657168;font-size:10px;font-weight:650;text-transform:uppercase;letter-spacing:.035em;z-index:1; }
    .dashboard-upcoming-table td { color:#344139; }
    .dashboard-upcoming-table tbody tr:nth-child(even) { background:#f6f8f7; }
    .dashboard-upcoming-table tbody tr:hover { background:#edf5ef; }
    .dashboard-upcoming-table th:nth-child(1) { width:110px; }
    .dashboard-upcoming-table th:nth-child(2) { width:150px; }
    .dashboard-upcoming-table th:nth-child(3) { width:105px; }
    .dashboard-upcoming-table th:nth-child(4) { width:125px; }
    .dashboard-upcoming-table th:nth-child(6),.dashboard-upcoming-table th:nth-child(7) { width:105px;text-align:right; }
    .dashboard-upcoming-item-name { overflow:hidden;text-overflow:ellipsis; }
    .dashboard-upcoming-empty { padding:24px 12px!important;text-align:center!important;color:#77837b!important; }
    [data-theme="dark"] .dashboard-upcoming-table th { background:#252b27;color:#bec9c1;border-color:#39423c; }
    [data-theme="dark"] .dashboard-upcoming-table td { color:#d0d8d2;border-color:#343d37; }
    [data-theme="dark"] .dashboard-upcoming-table tbody tr:nth-child(even) { background:#262d29; }
    [data-theme="dark"] .dashboard-upcoming-table tbody tr:hover { background:#2d3931; }
    #dashTopCards { gap:12px; }
    #dashTopCards>div { min-height:142px;padding:15px !important;border-radius:7px !important;box-shadow:0 1px 2px rgb(23 42 30 / .05) !important; }
    #dashTopCards>div>div:first-child { margin-bottom:12px; }
    #dashTopCards>div>span.text-3xl, #dashTopCards>div>span.text-2xl { font-size:28px !important;font-weight:700 !important; }
    #dashTopCards>div>div:last-child { margin-top:14px; }
    #viewDashboard [aria-labelledby="dashOrdersTitle"] { border-radius:7px;box-shadow:0 1px 2px rgb(23 42 30 / .04); }
    #viewDashboard [aria-labelledby="dashOrdersTitle"]>div.overflow-x-auto { border:0;border-radius:0; }
    #viewDashboard [aria-labelledby="dashOrdersTitle"] table { border-collapse:collapse;table-layout:fixed; }
    #viewDashboard [aria-labelledby="dashOrdersTitle"] th { padding:9px 8px;border-bottom:1px solid #e0e6e2;color:#657168;font-size:12px;font-weight:600;line-height:1.25; }
    #viewDashboard [aria-labelledby="dashOrdersTitle"] td { padding:8px;border-bottom:1px solid #e9eeeb;vertical-align:top;line-height:1.35;font-size:12px; }
    #viewDashboard [aria-labelledby="dashOrdersTitle"] tbody tr { background:#fff; }
    #viewDashboard [aria-labelledby="dashOrdersTitle"] tbody tr:nth-child(even) { background:#f6f8f7; }
    #viewDashboard [aria-labelledby="dashOrdersTitle"] tbody tr:hover { background:#edf5ef; }
    [data-theme="dark"] #viewDashboard [aria-labelledby="dashOrdersTitle"] tbody tr:nth-child(odd) { background:#202522; }
    [data-theme="dark"] #viewDashboard [aria-labelledby="dashOrdersTitle"] tbody tr:nth-child(even) { background:#262d29; }
    [data-theme="dark"] #viewDashboard [aria-labelledby="dashOrdersTitle"] tbody tr:hover { background:#2d3931; }
    [data-theme="dark"] #viewDashboard [aria-labelledby="dashOrdersTitle"] th { color:#bec9c1;border-color:#39423c; }
    [data-theme="dark"] #viewDashboard [aria-labelledby="dashOrdersTitle"] td { border-color:#343d37; }
    #viewDashboard .dashboard-order-note { max-width:780px;margin:5px 0 0;color:#77837b;font-size:11px;line-height:1.4; }
    #dashOrderRows .progress-detail-list { min-width:300px;padding:5px 0 0; }
    #dashOrderRows .progress-detail-row { display:grid;grid-template-columns:minmax(100px,1fr) minmax(112px,auto) minmax(88px,auto);align-items:start;gap:6px;padding:4px 0;border-top:1px solid #edf1ee;font-size:10px;line-height:1.25; }
    #dashOrderRows .progress-detail-row span:first-child { color:#4b5b50; }
    #dashOrderRows .progress-source-note { display:none; }
    #dashOrderRows td { vertical-align:top; }
    .dashboard-status-chip { display:inline-flex;align-items:center;min-height:22px;padding:2px 7px;border-radius:999px;font-size:10px;font-weight:600;white-space:nowrap; }
    .status-shipped { background:#e8f5ed;color:#176c3e; }.status-onhand { background:#fff4df;color:#825719; }.status-open { background:#fff0ed;color:#a6443b; }.status-tba { background:#eef1ef;color:#606d64; }
    .notification-scrim { position:fixed;inset:0;z-index:1001;background:rgb(15 23 18 / .12); }
    .notification-panel { position:fixed;top:10px;right:10px;bottom:10px;z-index:1002;width:min(390px,calc(100vw - 20px));display:flex;flex-direction:column;overflow:hidden;border:1px solid #e1e7e3;border-radius:8px;background:#fff;box-shadow:0 18px 55px rgb(15 30 20 / .18);transform:translateX(calc(100% + 16px));visibility:hidden;transition:transform .18s ease,visibility .18s; }
    .notification-panel.open { transform:translateX(0);visibility:visible; }
    .notification-header { display:flex;justify-content:space-between;gap:14px;padding:17px 18px 13px;border-bottom:1px solid #edf0ed; }
    .notification-header h2 { margin:0;color:#243129;font-size:17px;font-weight:650; }
    .notification-header p { margin:4px 0 0;color:#7a857e;font-size:11px; }
    .notification-header .notif-close-btn { width:28px;height:28px;border:0;background:transparent;color:#657169;font-size:22px;line-height:1; }
    .notification-list { overflow:auto;padding:12px 16px 18px; }
    .notification-group { margin:2px 0 14px; }
    .notification-group h3 { margin:0 0 5px;color:#45534a;font-size:11px;font-weight:650; }
    .notification-item { display:grid;width:100%;grid-template-columns:31px minmax(0,1fr);gap:10px;padding:10px 3px;border:0;border-bottom:1px solid #f0f2f0;background:transparent;text-align:left; }
    .notification-item:hover { background:#f8faf8; }
    .notification-icon { width:29px;height:29px;display:grid;place-items:center;border-radius:50%;background:#eaf5ee;color:#158047;font-size:14px; }
    .notification-icon.alert { background:#fff0ed;color:#bd5149; }
    .notification-copy { min-width:0;display:flex;flex-direction:column;gap:3px; }
    .notification-copy strong { color:#28352d;font-size:11px;font-weight:620; }
    .notification-copy span { overflow:hidden;color:#69756d;font-size:10px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical; }
    .notification-copy small { color:#909a93;font-size:9px; }
    .notification-empty { padding:22px 4px;color:#758078;font-size:12px; }
    #profileModal.login-screen { padding:20px;background:rgb(244 247 245 / .96);backdrop-filter:blur(4px); }
    #profileModal.login-screen #profileModalPanel { width:min(980px,100%);max-width:980px;min-height:570px;padding:0;display:grid;grid-template-columns:1.04fr .96fr;overflow:hidden;border:1px solid #e2e8e4;border-radius:12px;box-shadow:0 24px 80px rgb(20 43 29 / .16); }
    .login-brand-side { display:flex;flex-direction:column;justify-content:space-between;padding:33px 34px;background:linear-gradient(145deg,#fff 0%,#f4f8f5 100%); }
    .login-company { display:flex;align-items:center;gap:11px;color:#243129;font-size:13px;font-weight:620; }
    .login-company img { width:37px;height:37px;object-fit:contain; }
    .login-art { min-height:310px;display:grid;place-items:center;position:relative; }
    .login-art::before { content:"";position:absolute;width:250px;height:250px;border-radius:50%;background:radial-gradient(circle,#e6f5ec 0%,#f1f8f3 55%,transparent 70%); }
    .login-cube-scene { position:relative;width:210px;height:190px;display:grid;place-items:center; }
    .login-cube { position:absolute;width:88px;height:88px;display:grid;place-items:center;transform:rotate(30deg) skew(-8deg,-8deg);border-radius:10px;background:linear-gradient(135deg,#0a8e4d,#005c36);box-shadow:20px 22px 35px rgb(0 91 53 / .2);animation:loginFloat 4s ease-in-out infinite; }
    .login-cube::after { content:"";position:absolute;inset:12px;border:1px solid rgb(255 255 255 / .42);border-radius:5px; }
    .login-cube svg { width:36px;height:36px;transform:rotate(-30deg) skew(8deg,8deg);color:white; }
    .login-cube.small { width:35px;height:35px;border-radius:6px;transform:translate(65px,-53px) rotate(30deg);background:#a3dbb7;animation-delay:-1.4s; }
    .login-cube.small::after { inset:6px;border-color:rgb(0 92 54 / .24); }
    .login-cube.small.two { width:24px;height:24px;transform:translate(-83px,48px) rotate(30deg);background:#d9eee0;animation-delay:-2.1s; }
    @keyframes loginFloat { 0%,100% { margin-top:0; } 50% { margin-top:-10px; } }
    .login-brand-copy h2 { margin:0;color:#243129;font-size:22px;font-weight:650;letter-spacing:-.03em; }
    .login-brand-copy p { max-width:340px;margin:7px 0 0;color:#6f7b73;font-size:12px;line-height:1.55; }
    .login-form-side { position:relative;display:flex;flex-direction:column;justify-content:center;padding:44px clamp(24px,5vw,58px);background:#fff; }
    .login-close { position:absolute;top:17px;right:18px;border:0;background:transparent;color:#819087;font-size:21px; }
    .login-form-side h2 { margin:0;color:#202c24;font-size:28px;font-weight:650;letter-spacing:-.04em; }
    .login-form-side>p { margin:8px 0 25px;color:#728078;font-size:13px; }
    .login-fields { display:grid;gap:15px; }
    .login-fields label { display:grid;gap:6px;color:#435047;font-size:11px;font-weight:600; }
    .login-fields input { width:100%;height:42px;border:1px solid #dbe3de;border-radius:5px;background:#fff;padding:0 11px;color:#26332b;font:inherit;font-size:13px;outline:none; }
    .login-fields input:focus { border-color:#15945a;box-shadow:0 0 0 3px rgb(0 166 81 / .1); }
    .login-password-wrap { position:relative; }
    .login-password-wrap input { padding-right:42px; }
    .login-password-wrap button { position:absolute;top:0;right:0;width:40px;height:42px;display:grid;place-items:center;border:0;background:transparent;color:#7c8980; }
    .login-submit { height:43px;margin-top:4px;border:1px solid #007b40;border-radius:5px;background:#008b45;color:white;font-size:13px;font-weight:620; }
    .login-submit:hover { background:#007a3d; }
    .login-error { min-height:17px;color:#b4423a;font-size:11px; }
    .calendar-event-modal-box,.delivery-event-modal-box { max-height:min(86vh,860px);overflow:auto; }
    .delivery-progress-cards { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:15px 0; }
    .delivery-progress-card { display:grid;grid-template-columns:minmax(90px,1fr) auto auto;align-items:center;gap:8px;padding:8px 10px;border:1px solid #e5ebe7;border-radius:5px;background:#fbfcfb;font-size:10px; }
    .delivery-progress-card strong { color:#344239;font-size:10px;font-weight:600; }
    .delivery-progress-card span { color:#68756c;white-space:nowrap;font-variant-numeric:tabular-nums; }
    .delivery-progress-card em { color:#168149;font-size:9px;font-style:normal;font-weight:600;white-space:nowrap; }
    .delivery-order-totals { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0 0 14px; }
    .delivery-order-totals>div { display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;border:1px solid #e5ebe7;border-radius:5px;background:#f8faf8; }
    .delivery-order-totals span { color:#718078;font-size:10px; }.delivery-order-totals strong { color:#29362e;font-size:12px;font-weight:620;font-variant-numeric:tabular-nums; }
    .delivery-progress-section { margin-top:17px; }.delivery-progress-section h3 { margin:0;color:#2d3b32;font-size:13px;font-weight:620; }.delivery-progress-section>p { margin:4px 0 11px;color:#7b867f;font-size:10px; }
    .delivery-progress-product { margin:11px 0 0;padding-top:10px;border-top:1px solid #e8ede9; }.delivery-progress-product>header { display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;margin-bottom:6px; }.delivery-progress-product>header strong { color:#344239;font-size:10px;font-weight:650; }.delivery-progress-product>header span { overflow:hidden;color:#728078;font-size:10px;text-overflow:ellipsis;white-space:nowrap; }.delivery-progress-product>header small { color:#158047;font-size:9px;white-space:nowrap; }
    [data-theme="dark"] .delivery-order-totals>div { background:#252b27;border-color:#39423c; }
    [data-theme="dark"] .delivery-order-totals strong,[data-theme="dark"] .delivery-progress-section h3,[data-theme="dark"] .delivery-progress-product>header strong { color:#e0e7e2; }
    [data-theme="dark"] .delivery-order-totals span,[data-theme="dark"] .delivery-progress-section>p,[data-theme="dark"] .delivery-progress-product>header span { color:#aab5ad; }
    [data-theme="dark"] .dashboard-welcome-actions button,[data-theme="dark"] .dashboard-chart-card,[data-theme="dark"] #dashTopCards>div { background:#202522!important;border-color:#39423c!important;color:#dce3de!important; }
    [data-theme="dark"] .dashboard-card-heading h3,[data-theme="dark"] .dashboard-exim-legend strong { color:#e2e9e4; }
    [data-theme="dark"] .dashboard-card-heading p,[data-theme="dark"] .dashboard-exim-legend button,[data-theme="dark"] .dashboard-welcome p { color:#acb7af; }
    [data-theme="dark"] .dashboard-ai-note { background:#352927;border-color:#62413e;color:#f1bfba; }
    [data-theme="dark"] .dashboard-ai-note strong { color:#f4c3bd; }
    [data-theme="dark"] .dashboard-ai-note>span:first-child { background:#51322f;color:#ffa89f; }
    [data-theme="dark"] .status-shipped { background:#1f3c2b;color:#9dd7b0; }
    [data-theme="dark"] .status-onhand { background:#40351f;color:#e7c178; }
    [data-theme="dark"] .status-open { background:#422a28;color:#f0aaa2; }
    [data-theme="dark"] .status-tba { background:#303733;color:#c2ccc5; }
    [data-theme="dark"] .notification-panel,[data-theme="dark"] #profileModal.login-screen #profileModalPanel { background:#202522;border-color:#39423c;color:#dce3de; }
    [data-theme="dark"] .notification-header,[data-theme="dark"] .notification-item { border-color:#39423c; }
    [data-theme="dark"] .notification-header h2,[data-theme="dark"] .notification-copy strong { color:#e3eae5; }
    [data-theme="dark"] .notification-header p,[data-theme="dark"] .notification-copy span { color:#aab5ad; }
    [data-theme="dark"] .notification-item:hover { background:#272e29; }
    [data-theme="dark"] .login-brand-side { background:linear-gradient(145deg,#252c28,#1e2822); }
    [data-theme="dark"] .login-form-side { background:#202522; }
    [data-theme="dark"] .login-company,[data-theme="dark"] .login-brand-copy h2,[data-theme="dark"] .login-form-side h2 { color:#e6ece8; }
    [data-theme="dark"] .login-brand-copy p,[data-theme="dark"] .login-form-side>p { color:#aab5ad; }
    [data-theme="dark"] .login-fields label { color:#c2cdc5; }
    [data-theme="dark"] .login-fields input { background:#252b27;color:#e2e9e4;border-color:#465149; }
    [data-theme="dark"] .delivery-progress-card { background:#252b27;border-color:#39423c; }
    [data-theme="dark"] .delivery-progress-card strong { color:#e0e7e2; }
    [data-theme="dark"] .delivery-progress-card span { color:#acb7af; }
    .calendar-day-number.today { background:#008b45;color:#fff;font-weight:650; }
    .calendar-shell .delivery-calendar-head.sunday { color:#bc4b43; }
    [data-theme="dark"] .calendar-day-number.today { background:#168c50;color:#fff; }
    .dashboard-volume-chart { height:350px; }
    .dashboard-exim-legend { grid-template-columns:1fr;gap:0;margin-top:9px; }
    .dashboard-exim-legend-row { display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:31px;border-top:1px solid #edf1ee;color:#526057;font-size:11px; }
    .dashboard-exim-legend-row i { width:8px;height:8px;border-radius:50%;background:var(--legend-color); }
    .dashboard-exim-legend-row strong { overflow:hidden;color:#26332b;font-size:10px;font-weight:600;text-overflow:ellipsis;white-space:nowrap; }
    .dashboard-exim-legend-row small { color:#6f7b73;text-align:right;font-size:10px;font-weight:650; }
    .dashboard-kpi-progress { margin-top:10px; }
    .dashboard-kpi-progress>div { display:flex;justify-content:space-between;gap:8px;color:#69756d;font-size:10px; }
    .dashboard-kpi-progress strong { color:#168149;font-weight:650; }
    .dashboard-kpi-progress>i { display:block;height:5px;margin-top:6px;overflow:hidden;border-radius:99px;background:#edf1ee; }
    .dashboard-kpi-progress>i>b { display:block;height:100%;border-radius:inherit;background:#168149; }
    .dashboard-kpi-period { margin-left:5px;color:#87918b;font-size:10px; }
    .dashboard-progress-open { display:inline-flex;align-items:center;gap:7px;border:0;background:transparent;color:#344b3c;font:inherit;font-weight:600;white-space:nowrap; }
    .dashboard-progress-open span { padding:4px 8px;border:1px solid #dce7df;border-radius:5px;color:#187448;background:#f3f8f4;font-size:10px; }
    .dashboard-progress-modal-box { max-height:min(90vh,920px);display:flex;flex-direction:column;overflow:hidden; }
    .dashboard-progress-modal-box>header { display:flex;justify-content:space-between;gap:14px;padding:16px 19px;border-bottom:1px solid #e7ece8; }
    .dashboard-progress-modal-box>header p { margin:0 0 4px;color:#758078;font-size:10px;text-transform:uppercase;letter-spacing:.07em; }
    .dashboard-progress-modal-box>header h2 { margin:0;color:#202c24;font-size:17px;font-weight:650; }
    .dashboard-progress-modal-box>header button { width:32px;height:32px;border:0;background:transparent;color:#657169;font-size:24px; }
    .dashboard-progress-modal-body { overflow:auto;padding:8px 19px 18px; }
    .dashboard-product-progress { padding:13px 0;border-bottom:1px solid #e9eeea; }
    .dashboard-product-progress>header { display:grid;grid-template-columns:minmax(110px,.5fr) minmax(0,2fr) auto;gap:12px;align-items:start;margin-bottom:8px; }
    .dashboard-product-progress>header strong { color:#28352d;font-size:12px; }
    .dashboard-product-progress>header span { color:#657169;font-size:12px;line-height:1.35; }
    .dashboard-product-progress>header b { color:#344139;font-size:11px;white-space:nowrap; }
    .dashboard-stage-list { display:grid;grid-template-columns:1fr 1fr;column-gap:24px; }
    .dashboard-stage-row { display:grid;grid-template-columns:minmax(85px,.9fr) minmax(120px,1.4fr) auto;gap:8px;align-items:start;padding:6px 0;border-top:1px solid #edf1ee;font-size:10px; }
    .dashboard-stage-row>span { color:#66736a; }
    .dashboard-stage-row>strong { color:#344139;font-size:10px;font-weight:550; }
    .dashboard-stage-row>em { font-style:normal;font-weight:600;white-space:nowrap; }
    [data-theme="dark"] .dashboard-exim-legend-row,[data-theme="dark"] .dashboard-stage-row,[data-theme="dark"] .dashboard-product-progress { border-color:#39423c; }
    [data-theme="dark"] .dashboard-exim-legend-row strong,[data-theme="dark"] .dashboard-product-progress>header strong,[data-theme="dark"] .dashboard-product-progress>header b,[data-theme="dark"] .dashboard-stage-row>strong,[data-theme="dark"] .dashboard-progress-modal-box>header h2 { color:#e0e7e2; }
    [data-theme="dark"] .dashboard-exim-legend-row,[data-theme="dark"] .dashboard-exim-legend-row small,[data-theme="dark"] .dashboard-product-progress>header span,[data-theme="dark"] .dashboard-stage-row>span { color:#acb7af; }
    [data-theme="dark"] .dashboard-progress-modal-box { background:#202522;border-color:#39423c; }
    [data-theme="dark"] .dashboard-progress-modal-box>header { border-color:#39423c; }
    [data-theme="dark"] .dashboard-progress-open span { color:#9dd7b0;background:#1f3c2b;border-color:#365743; }
    [data-theme="dark"] .dashboard-kpi-progress>i { background:#39423c; }
    [data-theme="dark"] .dashboard-kpi-progress>div,[data-theme="dark"] .dashboard-kpi-period { color:#acb7af; }
    [data-theme="dark"] .dashboard-kpi-progress strong { color:#9dd7b0; }
    [data-theme="dark"] #viewSummary .summary-detail-layout { grid-template-columns:minmax(310px,370px) minmax(0,1fr); }
    [data-theme="dark"] .dashboard-stage-row .progress-pass { color:#98d9ad; }
    #dbTableWrap { border-radius:9px;box-shadow:0 1px 2px rgb(23 42 30 / .04); }
    #mainDBTable { min-width:100%;border-collapse:separate;border-spacing:0; }
    #dbTableHeader th { position:sticky;top:0;z-index:30;padding:11px 12px;background:#f7f9f7;color:#69766d;border-bottom:1px solid #e5ebe6;font-size:11px;font-weight:600;letter-spacing:.015em; }
    #dbTableBody td { padding:11px 12px;border-bottom:1px solid #edf1ee;color:#344139;vertical-align:top;font-size:12px; }
    #dbTableBody tr:hover td { background:#f8fbf9; }
    #dbTableBody tr:last-child td { border-bottom:0; }
    #dbTableHeader .db-item-name-head,#dbTableBody .db-item-name-cell { min-width:380px;max-width:560px; }
    #dbTableBody .db-item-name-cell { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
    #dbMultiSelectButtons select { min-height:36px; }
    [data-theme="dark"] #dbTableHeader th { background:#252b27;color:#acb7af;border-color:#39423c; }
    [data-theme="dark"] #dbTableBody td { color:#d0d9d2;border-color:#343c37; }
    [data-theme="dark"] #dbTableBody tr:hover td { background:#252d28; }
    [data-theme="dark"] #dbMultiSelectButtons select { background:#202522;color:#dce3de;border-color:#465149; }
    @media(max-width:767px){.dashboard-volume-chart{height:250px}.dashboard-stage-list{grid-template-columns:1fr}.dashboard-product-progress>header{grid-template-columns:1fr auto}.dashboard-product-progress>header span{grid-column:1/-1;grid-row:2}.dashboard-stage-row{grid-template-columns:minmax(75px,.8fr) minmax(115px,1.3fr) auto}.dashboard-exim-legend-row{grid-template-columns:10px minmax(55px,.7fr) minmax(0,1.5fr) 30px}}
    @media (max-width:900px) { .dashboard-chart-grid { grid-template-columns:minmax(0,1fr) minmax(250px,.8fr); }.dashboard-volume-card { grid-row:auto;grid-column:1/-1; }.dashboard-volume-chart { height:270px; } }
    @media (max-width:767px) { .dashboard-welcome { align-items:flex-start; }.dashboard-welcome-actions { flex-wrap:wrap;justify-content:flex-start; }.dashboard-welcome-actions time { width:100%; }.dashboard-chart-grid { grid-template-columns:1fr; }.dashboard-volume-card { grid-column:auto; }.dashboard-volume-chart { height:235px; }.dashboard-ai-note { align-items:flex-start;flex-wrap:wrap; }.dashboard-ai-note span:last-child { flex-basis:100%;padding-left:31px; }.dashboard-exim-legend { grid-template-columns:1fr 1fr; } #profileModal.login-screen { padding:10px;align-items:stretch;overflow:auto; } #profileModal.login-screen #profileModalPanel { display:flex;flex-direction:column;min-height:0;margin:auto; }.login-brand-side { padding:18px 20px 0; }.login-art { min-height:150px; }.login-art::before { width:130px;height:130px; }.login-cube-scene { transform:scale(.68);height:135px; }.login-brand-copy { padding:0 0 17px; }.login-brand-copy h2 { font-size:18px; }.login-form-side { padding:28px 23px 24px; }.login-form-side h2 { font-size:24px; }.delivery-progress-cards { grid-template-columns:1fr; } }
    /* Dashboard data is scanned row by row; alternating tone and quiet dividers make it easier to track across wide tables. */
    #viewDashboard [aria-labelledby="dashOrdersTitle"] table { min-width:1000px;width:100%;table-layout:auto; }
    #viewDashboard [aria-labelledby="dashOrdersTitle"] th:nth-child(1),#viewDashboard [aria-labelledby="dashOrdersTitle"] td:nth-child(1){width:1%;white-space:nowrap}
    #viewDashboard [aria-labelledby="dashOrdersTitle"] th:nth-child(2),#viewDashboard [aria-labelledby="dashOrdersTitle"] td:nth-child(2){width:1%;white-space:nowrap}
    #viewDashboard [aria-labelledby="dashOrdersTitle"] th:nth-child(3),#viewDashboard [aria-labelledby="dashOrdersTitle"] td:nth-child(3){width:1%;white-space:nowrap}
    #viewDashboard [aria-labelledby="dashOrdersTitle"] th:nth-child(4),#viewDashboard [aria-labelledby="dashOrdersTitle"] td:nth-child(4){width:1%;white-space:nowrap}
    #viewDashboard [aria-labelledby="dashOrdersTitle"] th:nth-child(5),#viewDashboard [aria-labelledby="dashOrdersTitle"] td:nth-child(5){width:1%;white-space:nowrap}
    #viewDashboard [aria-labelledby="dashOrdersTitle"] th:nth-child(6),#viewDashboard [aria-labelledby="dashOrdersTitle"] td:nth-child(6){width:1%;white-space:nowrap}
    #viewDashboard [aria-labelledby="dashOrdersTitle"] th:nth-child(7),#viewDashboard [aria-labelledby="dashOrdersTitle"] td:nth-child(7){width:100%;min-width:260px}
    #viewDashboard [aria-labelledby="dashOrdersTitle"] th:nth-child(8),#viewDashboard [aria-labelledby="dashOrdersTitle"] td:nth-child(8){width:1%;white-space:nowrap}
    #viewDashboard [aria-labelledby="dashOrdersTitle"] tbody tr>td:first-child,#viewDashboard [aria-labelledby="dashOrdersTitle"] tbody tr>td:last-child { border-radius:0; }
    .dashboard-trend-gap { display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin-top:14px!important; }
    .trend-metric { min-width:125px;display:grid;gap:3px; }
    .trend-metric small { color:#77837b;font-size:12px;font-weight:500; }
    .trend-metric strong { color:#25332a;font-size:22px;font-weight:700;font-variant-numeric:tabular-nums; }
    .trend-metric strong i { margin-left:4px;color:#758178;font-size:12px;font-style:normal;font-weight:500; }
    .trend-metric.actual strong { color:#286bd6; }.trend-metric.asy-finish strong { color:#00A651; }.trend-metric.plan strong { color:#d77928; }
    .trend-gap-badge { align-self:center;padding:7px 10px;border-radius:5px;background:#edf5ef;color:#24663f;font-size:13px;font-weight:650; }
    .trend-gap-badge.negative { background:#fff0ec;color:#a34c3d; }.trend-gap-badge.unknown { background:#f1f4f2;color:#69756d; }
    .dashboard-product-line { display:flex;align-items:flex-start;justify-content:space-between;gap:6px;padding:4px 2px; }
    .dashboard-product-line + .dashboard-product-line { border-top:1px solid #e7ece8; }
    .dashboard-product-line>div { display:grid;gap:2px;min-width:0; }
    .dashboard-product-line strong { color:#26352b;font-size:12px;font-weight:650;white-space:nowrap; }
    .dashboard-product-line span { color:#6d7a71;font-size:12px;line-height:1.3; }
    .dashboard-product-open { width:24px;height:24px;flex:none;border:1px solid #dde5df;border-radius:4px;background:#fff;color:#32714a;font-size:18px;line-height:1; }
    .dashboard-product-open:hover { background:#eaf4ed; }
    .dashboard-detail-order-meta { margin:0 0 10px;color:#66746b;font-size:13px;font-weight:550; }
    .dashboard-product-progress { padding:10px 12px;border:1px solid #e1e8e3;border-radius:5px;background:#fff; }
    .dashboard-stage-list { display:grid;grid-template-columns:1fr;gap:0; }
    .dashboard-stage-row { display:grid;grid-template-columns:minmax(145px,1fr) minmax(180px,1.3fr) minmax(120px,.8fr);align-items:start;gap:10px;padding:8px 3px;border-bottom:1px solid #e8ede9;font-size:12px;line-height:1.35; }
    .dashboard-stage-row:last-child { border-bottom:0; }
    .dashboard-stage-row>span { color:#526057;font-weight:550; }.dashboard-stage-row>strong { color:#29362e;font-weight:550;font-variant-numeric:tabular-nums; }
    .dashboard-stage-row>em { justify-self:start;font-style:normal;font-weight:650; }
    .dashboard-stage-row .progress-pass { color:#168149; }.dashboard-stage-row .progress-short { color:#ad5c26; }
    .dashboard-progress-modal-box { max-height:min(86vh,900px);overflow:hidden;display:flex;flex-direction:column; }
    .dashboard-progress-modal-box>header { flex:none;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:16px 18px;border-bottom:1px solid #e6ece8; }
    .dashboard-progress-modal-box>header p { margin:0 0 4px;color:#738078;font-size:12px; }.dashboard-progress-modal-box>header h2 { margin:0;color:#25332a;font-size:17px;font-weight:650; }
    .dashboard-progress-modal-box>header button { width:28px;height:28px;border:0;background:transparent;color:#728078;font-size:22px; }
    .dashboard-progress-modal-body { overflow:auto;padding:14px 18px 18px; }
    #dbMultiSelectButtons { display:flex;align-items:center;gap:5px;flex-wrap:nowrap;overflow-x:auto; }
    #dbMultiSelectButtons button { min-height:28px;height:28px;padding:0 9px;border:1px solid #dce5df;border-radius:4px;background:#fff;color:#59665e;font-size:12px;font-weight:550;white-space:nowrap; }
    #dbMultiSelectButtons button.active { background:#e9f5ed;border-color:#a6d0b2;color:#14633a; }
    #viewDatabase table tbody tr:nth-child(even),#viewLapisUlang table tbody tr:nth-child(even),#viewDrive table tbody tr:nth-child(even),#viewSummary table tbody tr:nth-child(even) { background:#f5f7f6; }
    #viewDatabase table tbody tr:hover,#viewLapisUlang table tbody tr:hover,#viewDrive table tbody tr:hover,#viewSummary table tbody tr:hover { background:#edf4ef; }
    #viewDatabase table th,#viewDrive table th,#viewDashboard table th,#viewLapisUlang table th,#viewSummary table th { font-size:12px; }
    #viewDatabase table td,#viewDrive table td,#viewDashboard table td,#viewLapisUlang table td,#viewSummary table td { font-size:12px; }
    .master-plan-period-card strong { color:#718078;font-size:13px;font-weight:550; }
    .master-plan-period-card b { grid-column:2;color:#167243;font-size:21px;font-weight:700; }
    [data-theme="dark"] .trend-metric strong,[data-theme="dark"] .dashboard-product-line strong,[data-theme="dark"] .dashboard-stage-row>strong,[data-theme="dark"] .dashboard-progress-modal-box>header h2 { color:#e0e7e2; }
    [data-theme="dark"] .trend-metric small,[data-theme="dark"] .trend-metric strong i,[data-theme="dark"] .dashboard-detail-order-meta,[data-theme="dark"] .dashboard-product-line span,[data-theme="dark"] .dashboard-stage-row>span { color:#aab5ad; }
    [data-theme="dark"] .dashboard-product-line + .dashboard-product-line,[data-theme="dark"] .dashboard-stage-row,[data-theme="dark"] .dashboard-progress-modal-box>header { border-color:#39423c; }
    [data-theme="dark"] .dashboard-product-open,[data-theme="dark"] .dashboard-product-progress { background:#252b27;border-color:#39423c;color:#dce3de; }
    [data-theme="dark"] .trend-gap-badge { background:#1f3c2b;color:#a5d8b5; }[data-theme="dark"] .trend-gap-badge.negative { background:#422a28;color:#f0aaa2; }
    [data-theme="dark"] #viewDatabase table tbody tr:nth-child(even),[data-theme="dark"] #viewLapisUlang table tbody tr:nth-child(even),[data-theme="dark"] #viewDrive table tbody tr:nth-child(even),[data-theme="dark"] #viewSummary table tbody tr:nth-child(even) { background:#262d29; }
    [data-theme="dark"] #viewDatabase table tbody tr:hover,[data-theme="dark"] #viewLapisUlang table tbody tr:hover,[data-theme="dark"] #viewDrive table tbody tr:hover,[data-theme="dark"] #viewSummary table tbody tr:hover { background:#2d3931; }
    [data-theme="dark"] #dbMultiSelectButtons button { background:#202522;color:#c2ccc5;border-color:#39423c; }
    [data-theme="dark"] #dbMultiSelectButtons button.active { background:#24352a;color:#b9e7c7;border-color:#41684e; }
    [data-theme="dark"] .master-plan-period-card strong { color:#aab5ad; }
    [data-theme="dark"] .master-plan-period-card b { color:#9de1b5; }
    #dbContent.db-exim-filters { display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 12px; }
    #dbContent.db-exim-filters>div:first-child { grid-column:1;grid-row:1; }
    #dbContent.db-exim-filters>#dbMultiSelectContainer { grid-column:2;grid-row:1;border:0;margin:0;padding:0;justify-content:flex-end; }
    #dbContent.db-exim-filters #dbMultiSelectLabel { font-size:12px;color:#647168;letter-spacing:0;text-transform:none; }
    .lu-shift-chart { position:relative;width:100%;height:195px;display:flex;justify-content:center; }
    .lu-shift-chart canvas { max-width:235px; }
    .lu-shift-center { position:absolute;top:50%;left:50%;display:grid;gap:2px;transform:translate(-50%,-50%);text-align:center;pointer-events:none; }
    .lu-shift-center strong { color:#26332b;font-size:22px;font-weight:700;font-variant-numeric:tabular-nums; }
    .lu-shift-center span { color:#718078;font-size:11px; }
    .lu-shift-legend { display:grid;grid-template-columns:1fr;gap:0;margin-top:5px; }
    .lu-shift-legend-row { display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:30px;border-top:1px solid #edf1ee;color:#526057;font-size:12px; }
    .lu-shift-legend-row i { width:8px;height:8px;border-radius:50%;background:var(--shift-color); }
    .lu-shift-legend-row strong { color:#26332b;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums; }
    .summary-overview-row { display:grid;grid-template-columns:minmax(300px,380px) minmax(0,1fr);align-items:start;gap:14px; }
    .summary-product-identity { position:static; }
    .summary-totals-section { min-width:0;padding:13px 14px;border:1px solid #e1e8e3;border-radius:6px;background:#fff; }
    .summary-totals-flow { display:flex;gap:15px;overflow-x:auto;padding:3px 2px 8px; }
    .summary-total-card { position:relative;flex:1 0 132px;min-height:106px;padding:10px!important;border-radius:5px!important; }
    .summary-total-card:not(:last-child)::after { content:'›';position:absolute;z-index:1;right:-13px;top:45%;color:#819087;font-size:19px;font-weight:500; }
    .summary-history-section { min-width:0; }
    [data-theme="dark"] .summary-totals-section,[data-theme="dark"] .summary-product-identity { background:#202522;border-color:#39423c; }
    [data-theme="dark"] .lu-shift-center strong,[data-theme="dark"] .lu-shift-legend-row strong { color:#e1e8e3; }
    [data-theme="dark"] .lu-shift-center span,[data-theme="dark"] .lu-shift-legend-row { color:#acb7af; }
    [data-theme="dark"] .lu-shift-legend-row { border-color:#39423c; }
    [data-theme="dark"] .summary-total-card:not(:last-child)::after { color:#9ba79f; }
    @media(max-width:1100px){#dbContent.db-exim-filters{grid-template-columns:1fr}#dbContent.db-exim-filters>div:first-child,#dbContent.db-exim-filters>#dbMultiSelectContainer{grid-column:1;grid-row:auto;justify-content:flex-start}#dbContent.db-exim-filters>#dbMultiSelectContainer{padding-top:5px;border-top:1px solid #edf1ee}}
    @media(max-width:900px){.dashboard-volume-chart{height:380px!important}.summary-overview-row{grid-template-columns:minmax(250px,.85fr) minmax(0,1.15fr)}.summary-total-card{flex-basis:120px}}
    @media(max-width:767px){.dashboard-volume-chart{height:300px!important}.dashboard-chart-grid{grid-template-columns:1fr}.dashboard-volume-card{grid-column:auto}.dashboard-trend-gap{gap:12px}.trend-metric strong{font-size:18px}.dashboard-stage-row{grid-template-columns:minmax(90px,.8fr) minmax(130px,1.3fr) auto}.dashboard-product-line span{font-size:11px}}
    @media(max-width:640px){.summary-overview-row{grid-template-columns:1fr}.summary-totals-flow{padding-bottom:10px}.summary-total-card{flex-basis:138px}}
    [data-theme="dark"] .dashboard-exim-legend-row { border-color:#39423c;color:#acb7af; }
    /* Pixel-focused MoveMetric dashboard pass */
    :root { --sidebar-width:240px; --surface-radius:8px; --surface-border:#e5e7eb; }
    body { background:#f7f9fc;color:#111827; }
    #viewHome,#viewMatrix,#viewSummary,#viewDrive,#viewDatabase,#viewDashboard,#viewLapisUlang,#viewAccess,#viewCalendar,#viewSync,#viewAssemblyMonitoring,#viewFinishingMonitoring,#viewAssemblyPoDb, #viewFinishingPoDb { background:#f7f9fc; }
    #appSidebar { width:var(--sidebar-width); }
    #appSidebar .nav-link { min-height:34px;padding:8px 12px;font-size:13px; }
    #appSidebar .nav-link svg { width:18px;height:18px; }
    header#appTopbar { height:60px;min-height:60px;padding:0 20px; }
    #viewDashboard { padding:18px 24px 32px; }
    .dashboard-welcome { align-items:flex-start; }
    .dashboard-welcome h1 { font-size:22px;line-height:1.25;font-weight:700; }
    .dashboard-welcome p { font-size:13px;color:#6b7280; }
    .dashboard-welcome-actions button { min-height:32px;height:32px;padding:0 12px;border:1px solid #e5e7eb;border-radius:6px;background:#fff;color:#374151;font-size:12px;box-shadow:none; }
    .dashboard-ai-note { min-height:40px;gap:10px;padding:9px 13px;border-radius:8px; }
    .dashboard-chart-grid { gap:16px; }
    .dashboard-chart-card { padding:20px;border:1px solid #e5e7eb;border-radius:8px;box-shadow:none; }
    .dashboard-card-heading h3 { font-size:14px;font-weight:650; }
    .dashboard-card-heading p { font-size:12px; }
    .dashboard-volume-chart { height:380px;margin-top:18px; }
    .dashboard-donut-wrap { height:160px;display:grid;place-items:center; }
    .dashboard-donut-wrap canvas { width:140px!important;height:140px!important;max-width:140px;max-height:140px; }
    .dashboard-donut-center strong { font-size:24px; }
    .dashboard-donut-center span { font-size:11px; }
    .dashboard-open-chart { height:150px; }
    #dashTopCards { gap:16px; }
    #dashTopCards>div { min-height:148px;padding:20px!important;border:1px solid #e5e7eb;border-radius:8px!important;box-shadow:none!important; }
    #viewDashboard [aria-labelledby="dashOrdersTitle"] { padding:20px;border:1px solid #e5e7eb;border-radius:8px;box-shadow:none; }
    #viewDashboard [aria-labelledby="dashOrdersTitle"] th { height:36px;max-height:36px;padding:8px 12px;border-bottom:1px solid #e5e7eb;font-size:11px; }
    #viewDashboard [aria-labelledby="dashOrdersTitle"] td { height:40px;max-height:40px;padding:9px 12px;border-bottom:1px solid #edf0f2;vertical-align:top;font-size:12px;overflow:hidden; }
    #viewDashboard [aria-labelledby="dashOrdersTitle"] td:nth-child(7) { width:auto; }
    .dashboard-products-cell { white-space:nowrap; }
    .dashboard-product-line { display:inline-flex;align-items:center;gap:6px;max-width:min(100%,720px);margin-right:10px;vertical-align:top;white-space:nowrap; }
    .dashboard-product-line>div { display:flex;align-items:center;gap:6px;min-width:0; }
    .dashboard-product-line strong { flex:0 0 auto; }
    .dashboard-product-line span { min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
    .dashboard-status-chip { min-height:22px;padding:2px 8px;border-radius:4px;font-size:11px; }
    #viewDatabase table,#viewLapisUlang table,#viewDrive table,#viewSummary table { table-layout:auto; }
    #viewDashboard table th,#viewDashboard table td,#viewDatabase table th,#viewDatabase table td,#viewLapisUlang table th,#viewLapisUlang table td,#viewDrive table th,#viewDrive table td,#viewSummary table th,#viewSummary table td { border-left:0!important;border-right:0!important; }
    #viewDatabase table th,#viewDrive table th,#viewDashboard table th,#viewLapisUlang table th,#viewSummary table th { height:36px;max-height:36px;padding:8px 12px;font-size:11px;font-weight:700;letter-spacing:.035em;text-transform:uppercase;vertical-align:middle; }
    #viewDatabase table td,#viewDrive table td,#viewDashboard table td,#viewLapisUlang table td,#viewSummary table td { height:40px;max-height:40px;padding:10px 12px;font-size:12px;vertical-align:middle; }
    #viewDashboard [aria-labelledby="dashOrdersTitle"] td { padding:8px 10px;vertical-align:middle; }
    #viewDashboard [aria-labelledby="dashOrdersTitle"] td.dashboard-products-cell { vertical-align:top; }
    #viewDatabase table tbody tr:nth-child(odd),#viewLapisUlang table tbody tr:nth-child(odd),#viewDrive table tbody tr:nth-child(odd),#viewSummary table tbody tr:nth-child(odd) { background:#fff; }
    #viewDatabase table tbody tr:nth-child(even),#viewLapisUlang table tbody tr:nth-child(even),#viewDrive table tbody tr:nth-child(even),#viewSummary table tbody tr:nth-child(even) { background:#f7f9fc; }
    .dashboard-stage-row { grid-template-columns:minmax(130px,1fr) minmax(150px,auto) auto;gap:8px;padding:4px 0;font-size:12px; }
    .dashboard-progress-modal-box { border-radius:10px;box-shadow:0 16px 44px rgb(15 23 42 / .15); }
    .notification-panel { width:min(360px,calc(100vw - 20px));border-radius:10px 0 0 10px;box-shadow:-16px 0 42px rgb(15 23 42 / .14); }
    .notification-group h3 { font-size:12px; }
    .notification-item { grid-template-columns:24px minmax(0,1fr);gap:10px;padding:10px 3px; }
    .notification-icon { width:24px;height:24px; }
    .notification-copy strong { font-size:12px; }
    .notification-copy span { font-size:11px; }
    .notification-copy time { font-size:10px;color:#9ca3af; }
    [data-theme="dark"] body,[data-theme="dark"] #viewHome,[data-theme="dark"] #viewMatrix,[data-theme="dark"] #viewSummary,[data-theme="dark"] #viewDrive,[data-theme="dark"] #viewDatabase,[data-theme="dark"] #viewDashboard,[data-theme="dark"] #viewLapisUlang,[data-theme="dark"] #viewAccess,[data-theme="dark"] #viewCalendar,[data-theme="dark"] #viewSync, [data-theme="dark"] #viewAssemblyMonitoring, [data-theme="dark"] #viewFinishingMonitoring, [data-theme="dark"] #viewAssemblyPoDb, [data-theme="dark"] #viewFinishingPoDb { background:#171a18!important; }
    [data-theme="dark"] .dashboard-chart-card,[data-theme="dark"] #dashTopCards>div,[data-theme="dark"] #viewDashboard [aria-labelledby="dashOrdersTitle"] { background:#202522;border-color:#39423c; }
    [data-theme="dark"] #viewDashboard [aria-labelledby="dashOrdersTitle"] th,[data-theme="dark"] #viewDatabase table th,[data-theme="dark"] #viewLapisUlang table th,[data-theme="dark"] #viewDrive table th,[data-theme="dark"] #viewSummary table th { border-color:#39423c; }
    [data-theme="dark"] #viewDatabase table tbody tr:nth-child(odd),[data-theme="dark"] #viewLapisUlang table tbody tr:nth-child(odd),[data-theme="dark"] #viewDrive table tbody tr:nth-child(odd),[data-theme="dark"] #viewSummary table tbody tr:nth-child(odd) { background:#202522; }
    [data-theme="dark"] #viewDatabase table tbody tr:nth-child(even),[data-theme="dark"] #viewLapisUlang table tbody tr:nth-child(even),[data-theme="dark"] #viewDrive table tbody tr:nth-child(even),[data-theme="dark"] #viewSummary table tbody tr:nth-child(even) { background:#262d29; }
    @media(max-width:1100px){.dashboard-volume-chart{height:350px!important}}
    @media(max-width:767px){.dashboard-volume-chart{height:300px!important}}
    @media(max-width:767px){.dashboard-exim-legend-row{grid-template-columns:10px minmax(0,1fr) auto!important}}
    .login-view { position:fixed;inset:0;z-index:10000;display:grid;place-items:center;overflow:auto;padding:28px;background:#f7f9fc; }
    .login-view[hidden] { display:none!important; }
    .login-page-card { width:min(1040px,100%);min-height:480px;display:grid;grid-template-columns:1fr 1fr;overflow:hidden;border:1px solid #e5e7eb;border-radius:8px;background:#fff; }
    .login-brand-side { background:linear-gradient(145deg,#fff 0%,#f1f7f3 100%); }
    .login-form-side h1 { margin:0;color:#111827;font-size:24px;font-weight:700; }
    .login-fields input { height:44px;border-radius:6px; }
    .login-password-wrap button { height:44px; }
    .login-submit { height:44px;border-radius:6px;background:#059669;border-color:#059669;font-size:14px;font-weight:700; }
    .login-brand-side { padding:48px; }
    .login-form-side { padding:48px; }
    .login-fields { gap:20px; }
    .login-fields label { gap:9px;font-size:12px; }
    .dashboard-volume-chart { height:380px;margin-top:18px; }
    .dashboard-chart-card { padding:22px; }
    .dashboard-card-heading h3 { font-size:14px; }
    .dashboard-card-heading p { font-size:11px; }
    .dashboard-stage-row { grid-template-columns:minmax(150px,1fr) minmax(150px,auto) auto;gap:10px;padding:5px 0; }
    #pageSubHeader { padding:20px 28px 12px; }
    #pageTitleText { font-size:22px;font-weight:700; }
    #pageDescText { font-size:12px;font-weight:400; }
    .dashboard-welcome h1 { font-size:22px;font-weight:700; }
    .dashboard-chart-grid { gap:16px; }
    #viewDashboard [aria-labelledby="dashOrdersTitle"] table { table-layout:auto; }
    #viewDashboard [aria-labelledby="dashOrdersTitle"] th:nth-child(1),#viewDashboard [aria-labelledby="dashOrdersTitle"] td:nth-child(1),#viewDashboard [aria-labelledby="dashOrdersTitle"] th:nth-child(2),#viewDashboard [aria-labelledby="dashOrdersTitle"] td:nth-child(2),#viewDashboard [aria-labelledby="dashOrdersTitle"] th:nth-child(3),#viewDashboard [aria-labelledby="dashOrdersTitle"] td:nth-child(3),#viewDashboard [aria-labelledby="dashOrdersTitle"] th:nth-child(4),#viewDashboard [aria-labelledby="dashOrdersTitle"] td:nth-child(4),#viewDashboard [aria-labelledby="dashOrdersTitle"] th:nth-child(5),#viewDashboard [aria-labelledby="dashOrdersTitle"] td:nth-child(5),#viewDashboard [aria-labelledby="dashOrdersTitle"] th:nth-child(6),#viewDashboard [aria-labelledby="dashOrdersTitle"] td:nth-child(6),#viewDashboard [aria-labelledby="dashOrdersTitle"] th:nth-child(8),#viewDashboard [aria-labelledby="dashOrdersTitle"] td:nth-child(8) { width:1%;white-space:nowrap; }
    #viewDashboard [aria-labelledby="dashOrdersTitle"] th:nth-child(7),#viewDashboard [aria-labelledby="dashOrdersTitle"] td:nth-child(7) { width:100%;min-width:280px; }
    #viewDashboard [aria-labelledby="dashOrdersTitle"] td.dashboard-products-cell { white-space:nowrap;overflow:hidden; }
    #viewDashboard .dashboard-product-line { max-width:min(100%,900px); }
    #viewDashboard .dashboard-product-line span { max-width:600px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
    .access-role-grid { gap:16px; }
    .access-role-card { border-radius:8px; }
    body.auth-required > :not(#loginView):not(script) { display:none!important; }
    body.auth-required #loginView { display:grid!important; }
    @media(max-width:700px){.login-view{padding:14px}.login-page-card{grid-template-columns:1fr;min-height:0}.login-brand-side{min-height:250px;padding:22px 24px 12px}.login-art{min-height:120px}.login-cube-scene{transform:scale(.65)}.login-form-side{padding:28px 24px}}
    /* Dashboard refinement: breathing room, legible metrics, and compact controls. */
    .dashboard-welcome { margin-bottom:2px; }
    .dashboard-welcome h1 { margin:0; }
    .dashboard-welcome p { margin-top:6px; }
    .dashboard-brief-banner { display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:94px;padding:17px 20px;border:1px solid #236b54;border-radius:9px;background:linear-gradient(105deg,#0d4d3e 0%,#17634c 72%,#527957 100%);color:#f6fbf7; }
    .dashboard-brief-copy { min-width:0; }
    .dashboard-brief-kicker { display:flex;align-items:center;gap:7px;color:#c8e2cc;font-size:10px;font-weight:700;letter-spacing:.08em; }
    .dashboard-brief-kicker>span { color:#d2e75b;font-size:13px; }
    .dashboard-brief-kicker i { color:#9ec5ad;font-style:normal; }
    .dashboard-brief-banner p { margin:7px 0 0;color:#fff;font-size:15px;font-weight:600;line-height:1.4; }
    .dashboard-brief-actions { display:flex;flex:none;align-items:center;gap:7px; }
    .dashboard-brief-actions button { min-height:30px;padding:0 10px;border:1px solid rgb(255 255 255 / .35);border-radius:5px;background:rgb(255 255 255 / .1);color:#fff;font-size:10px;font-weight:600;white-space:nowrap; }
    .dashboard-brief-actions button:first-child { border-color:#d3e45d;background:#d3e45d;color:#1e3525; }
    .dashboard-brief-actions button:hover { filter:brightness(1.06); }
    #dashTopCards { grid-template-columns:repeat(4,minmax(0,1fr));gap:16px; }
    #dashTopCards>.dashboard-kpi-card { display:flex;min-width:0;min-height:164px;flex-direction:column;padding:17px 18px!important;border:1px solid #e2e8e4;border-radius:8px!important;background:#fff;box-shadow:0 1px 2px rgb(23 42 30 / .04)!important; }
    .dashboard-kpi-top { display:flex;align-items:center;justify-content:space-between;gap:8px;color:#526057;font-size:13px;font-weight:600; }
    .dashboard-kpi-top i { display:grid;width:27px;height:27px;place-items:center;border-radius:7px;background:#edf7f0;font-size:17px;font-style:normal; }
    .dashboard-kpi-top .kpi-orders { color:#168149; }.dashboard-kpi-top .kpi-target { color:#d77928;background:#fff5e9; }.dashboard-kpi-top .kpi-production { color:#256bd0;background:#edf4ff; }.dashboard-kpi-top .kpi-completion { color:#df5362;background:#fff0f1; }
    .dashboard-kpi-value { display:flex;align-items:baseline;gap:5px;margin:12px 0 8px;color:#17251d;font-size:30px;font-weight:750;line-height:1.12;font-variant-numeric:tabular-nums; }
    .dashboard-kpi-value small { color:#68766d;font-size:13px;font-weight:550; }
    .dashboard-kpi-bottom { display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;color:#77837b;font-size:11px; }
    .dashboard-kpi-trend { font-size:12px;font-weight:700; }.dashboard-kpi-trend .up { color:#168149; }.dashboard-kpi-trend .down { color:#d14545; }.dashboard-kpi-trend .neutral { color:#77837b;font-size:10px; }
    .dashboard-kpi-progress { margin-top:10px; }
    .dashboard-kpi-progress>div { color:#647168;font-size:11px; }
    .dashboard-kpi-progress strong { color:#168149;font-size:11px;font-weight:700; }
    .dashboard-kpi-progress>i { height:6px;margin-top:6px;background:#edf1ee; }
    .dashboard-kpi-progress>i>b { background:#12a65b; }
    .dashboard-kpi-caption { margin:8px 0 0;color:#7b867f;font-size:10px; }
    .dashboard-chart-grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px; }
    .dashboard-volume-card { grid-column:1/-1; }
    .dashboard-chart-card { display:flex;min-width:0;flex-direction:column;padding:20px;border-radius:8px; }
    .dashboard-volume-chart { height:350px;margin-top:10px; }
    .dashboard-trend-gap { align-items:stretch;gap:30px;margin-top:13px!important; }
    .trend-metric { min-width:170px;gap:4px; }
    .trend-metric small { font-size:11px;font-weight:600; }
    .trend-metric strong { font-size:25px;line-height:1.15; }
    .trend-metric strong i { font-size:12px; }
    .trend-metric>span { color:#6e7a72;font-size:11px; }
    .trend-metric>span.up { color:#168149;font-weight:650; }.trend-metric>span.down { color:#c74343;font-weight:650; }
    .dashboard-month-select { position:relative;z-index:30;flex:none; }
    .dashboard-month-select>button { display:flex;min-height:32px;align-items:center;gap:12px;padding:0 10px;border:1px solid #dfe6e1;border-radius:5px;background:#fff;color:#526057;font-size:11px;font-weight:600; }
    .dashboard-month-select>button:hover { background:#f7faf8;border-color:#c6d4ca; }
    .dashboard-months-menu { position:absolute;top:calc(100% + 6px);right:0;width:230px;overflow:hidden;border:1px solid #dfe6e1;border-radius:7px;background:#fff;box-shadow:0 8px 24px rgb(20 35 25 / .12); }
    .dashboard-months-list { max-height:260px;overflow:auto;padding:6px; }
    .dashboard-months-list label { display:flex;min-height:31px;align-items:center;gap:9px;padding:0 7px;border-radius:4px;color:#3d4a42;font-size:11px; }
    .dashboard-months-list label:hover { background:#f3f7f4; }
    .dashboard-months-list input { width:14px;height:14px;accent-color:#168149; }
    .dashboard-months-actions { display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-top:1px solid #e8ede9;color:#7a867e;font-size:10px; }
    .dashboard-months-actions button { padding:4px 7px;border:1px solid #dfe6e1;border-radius:4px;background:white;color:#315c42;font-size:10px;font-weight:600; }
    .dashboard-exim-card,.dashboard-order-status-card { min-height:352px; }
    .dashboard-donut-wrap { height:190px;flex:none;margin:8px 0 4px; }
    .dashboard-donut-wrap canvas { width:164px!important;height:164px!important;max-width:164px;max-height:164px; }
    .dashboard-exim-legend { margin-top:auto; }
    .dashboard-exim-legend-row { min-height:37px;grid-template-columns:10px minmax(0,1fr) auto;gap:9px;font-size:12px; }
    .dashboard-exim-legend-row strong { font-size:11px; }
    .dashboard-open-chart { height:auto;min-height:255px;flex:1;margin-top:10px; }
    .dashboard-open-chart canvas { width:100%!important;height:100%!important; }
    .dashboard-order-heading { align-items:flex-start;gap:16px;margin-bottom:16px!important; }
    .dashboard-order-heading h3 { margin:0;font-size:17px;line-height:1.3; }
    .dashboard-order-heading .dashboard-order-note { max-width:900px;margin-top:8px;font-size:12px;line-height:1.5; }
    .dashboard-order-heading #dashOrderCount { margin-top:10px;font-size:11px; }
    .dashboard-product-line { display:flex!important;width:100%;align-items:center;justify-content:flex-start;gap:8px;margin:0!important;padding:5px 0;white-space:normal; }
    .dashboard-product-line + .dashboard-product-line { border-top:1px solid #e7ece8; }
    .dashboard-product-open { width:22px;height:22px;border-color:#dce5df;color:#267148;font-size:17px;line-height:18px; }
    .dashboard-product-line>div { display:flex!important;flex:1;align-items:baseline;gap:8px;min-width:0; }
    .dashboard-product-line strong { flex:none;max-width:115px;overflow:hidden;text-overflow:ellipsis;font-size:11px; }
    .dashboard-product-line span { flex:1;max-width:none!important;min-width:0;color:#59665e;font-size:11px; }
    .dashboard-ready-chip { display:inline-flex;min-height:22px;align-items:center;padding:2px 8px;border:1px solid transparent;border-radius:4px;font-size:11px;font-weight:650; }
    .dashboard-ready-chip.is-ready { border-color:#cbe7d5;background:#edf8f0;color:#177145; }
    .dashboard-ready-chip.is-pending { border-color:#f2dfc0;background:#fff7e9;color:#92601f; }
    .dashboard-progress-modal-box { width:min(780px,calc(100vw - 28px));border:1px solid #e1e8e3;border-radius:8px;box-shadow:0 10px 34px rgb(15 23 42 / .16); }
    .dashboard-progress-modal-box>header { padding:15px 18px 13px; }
    .dashboard-progress-modal-box>header p { font-size:10px;font-weight:700;letter-spacing:.07em;text-transform:uppercase; }
    .dashboard-progress-modal-box>header h2 { font-size:16px;line-height:1.35; }
    .dashboard-progress-modal-body { padding:14px 18px 18px; }
    .dashboard-detail-order-meta { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 15px; }
    .dashboard-detail-order-meta>div { display:grid;gap:4px;min-width:0;padding:9px 10px;border:1px solid #e7ece8;border-radius:5px;background:#f8faf9; }
    .dashboard-detail-order-meta span { color:#7b867f;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.035em; }
    .dashboard-detail-order-meta strong { overflow:hidden;color:#26352b;font-size:12px;font-weight:650;text-overflow:ellipsis;white-space:nowrap; }
    .dashboard-stage-heading { display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,auto) 72px;gap:10px;padding:0 10px 7px;color:#7b867f;font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase; }
    .dashboard-product-progress { padding:0 10px;border-radius:6px; }
    .dashboard-stage-row { grid-template-columns:minmax(0,1fr) minmax(130px,auto) 72px;gap:10px;align-items:center;min-height:35px;padding:6px 0;font-size:12px; }
    .dashboard-stage-row>strong { font-size:11px;text-align:right; }
    .dashboard-stage-row>em { justify-self:end;font-size:11px; }
    [data-theme="dark"] .dashboard-kpi-top,[data-theme="dark"] .dashboard-kpi-value,[data-theme="dark"] .dashboard-order-heading h3 { color:#e0e7e2; }
    [data-theme="dark"] #dashTopCards>.dashboard-kpi-card,[data-theme="dark"] .dashboard-months-menu { border-color:#39423c;background:#202522; }
    [data-theme="dark"] .dashboard-kpi-bottom,[data-theme="dark"] .dashboard-kpi-progress>div,[data-theme="dark"] .dashboard-kpi-value small,[data-theme="dark"] .dashboard-kpi-caption { color:#acb7af; }
    [data-theme="dark"] .dashboard-month-select>button,[data-theme="dark"] .dashboard-months-actions button { border-color:#39423c;background:#202522;color:#d4ddd7; }
    [data-theme="dark"] .dashboard-months-list label { color:#d4ddd7; }
    [data-theme="dark"] .dashboard-months-list label:hover,[data-theme="dark"] .dashboard-detail-order-meta>div { background:#262d29; }
    [data-theme="dark"] .dashboard-months-actions,[data-theme="dark"] .dashboard-detail-order-meta>div { border-color:#39423c; }
    [data-theme="dark"] .dashboard-detail-order-meta strong { color:#e0e7e2; }
    [data-theme="dark"] .dashboard-product-line span { color:#acb7af; }
    @media(max-width:1000px){#dashTopCards{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-chart-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.dashboard-volume-card{grid-column:1/-1}.dashboard-volume-chart{height:330px}.dashboard-exim-card,.dashboard-order-status-card{min-height:340px}}
    @media(max-width:700px){.dashboard-brief-banner{align-items:flex-start;flex-direction:column;gap:12px;padding:15px}.dashboard-brief-banner p{font-size:13px}.dashboard-brief-actions{flex-wrap:wrap}.dashboard-chart-grid{grid-template-columns:1fr}.dashboard-volume-card{grid-column:auto}.dashboard-volume-chart{height:290px}.dashboard-exim-card,.dashboard-order-status-card{min-height:0}.dashboard-open-chart{height:240px;min-height:240px;flex:none}.dashboard-donut-wrap{height:180px}.dashboard-detail-order-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-stage-heading,.dashboard-stage-row{grid-template-columns:minmax(0,1fr) minmax(100px,auto) 58px;gap:6px}.dashboard-stage-row{font-size:11px}.dashboard-stage-row>strong{font-size:10px}.dashboard-order-heading{flex-direction:column}.dashboard-order-heading>label{width:100%}}

    :root { --font-primary: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
    body, body * { font-family: var(--font-primary) !important; }
    .dashboard-welcome time { display:flex;align-items:baseline;gap:7px;padding:4px 8px;border:0;border-radius:0;background:transparent;color:#647168;font-size:10px;font-weight:500;letter-spacing:0; }
    .dashboard-welcome time .clock-live { color:#111827;font-size:44px;font-weight:750;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.035em; }
    #dashTopCards>.dashboard-kpi-card { min-height:168px; }
    .dashboard-kpi-value { margin:10px 0 11px;font-size:36px;line-height:1.05;letter-spacing:-.035em; }
    .dashboard-kpi-value small { font-size:14px; }
    .dashboard-kpi-bottom { min-height:18px;justify-content:flex-start; }
    .dashboard-kpi-trend .up,.dashboard-kpi-trend .down,.dashboard-kpi-trend .neutral { font-size:11px; }
    .dashboard-trend-gap { gap:34px;margin-top:16px!important;padding-bottom:2px; }
    .dashboard-volume-chart { height:380px;margin-top:23px; }
    .dashboard-volume-card .dashboard-card-heading { align-items:flex-start; }
    .dashboard-chart-grid { grid-template-columns:minmax(280px,.78fr) minmax(0,1.5fr);align-items:stretch; }
    .dashboard-volume-card { grid-column:1/-1; }
    .dashboard-exim-card,.dashboard-order-status-card,.dashboard-upcoming-card { min-width:0;min-height:0; }
    .dashboard-exim-card { grid-column:1;grid-row:2; }
    .dashboard-order-status-card { grid-column:1;grid-row:3; }
    .dashboard-upcoming-card { grid-column:2;grid-row:2 / span 2; }
    .dashboard-exim-card { display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);grid-template-rows:auto 1fr;align-content:stretch;padding-bottom:15px; }
    .dashboard-exim-card .dashboard-card-heading { grid-column:1/-1; }
    .dashboard-donut-wrap { grid-column:1;grid-row:2;height:212px;margin:0;align-self:center; }
    .dashboard-donut-wrap canvas { width:184px!important;height:184px!important;max-width:184px;max-height:184px; }
    .dashboard-exim-legend { grid-column:2;grid-row:2;align-self:center;display:flex;flex-direction:column;gap:5px;margin:0; }
    .dashboard-exim-legend-row { display:grid;grid-template-columns:8px minmax(0,1fr);align-items:start;gap:7px;min-height:0;padding:8px 0;border-top:1px solid #edf1ee;color:#526057;font-size:11px; }
    .dashboard-exim-legend-row i { display:block;width:7px;height:7px;min-width:7px;aspect-ratio:1;margin-top:3px;border-radius:50%; }
    .dashboard-exim-legend-row span { display:block;font-weight:600; }
    .dashboard-exim-legend-row strong { grid-column:2;display:grid;gap:3px;overflow:visible;color:#26332b;font-size:10px;font-weight:600;line-height:1.3;text-overflow:clip;white-space:normal; }
    .dashboard-exim-measure { display:flex;align-items:center;gap:5px;white-space:nowrap; }
    .dashboard-exim-measure svg { width:11px;height:11px;flex:none;color:#829087;stroke:currentColor;stroke-width:1.6;fill:none; }
    .dashboard-exim-measure small { color:#6f7b73;font-size:10px;font-weight:500;text-align:left; }
    .dashboard-order-status-card .dashboard-open-chart { min-height:130px;height:130px;flex:none;margin-top:0; }
    .dashboard-upcoming-card { display:flex;flex-direction:column; }
    .dashboard-upcoming-card .dashboard-card-heading { margin-bottom:10px; }
    .dashboard-upcoming-wrap { flex:1;min-width:0;min-height:0;max-height:none;overflow:auto; }
    .dashboard-upcoming-table { width:100%;min-width:0;table-layout:auto;border-collapse:collapse; }
    .dashboard-upcoming-table th,.dashboard-upcoming-table td { padding:8px 7px; }
    .dashboard-upcoming-table th:nth-child(1) { width:1%; }
    .dashboard-upcoming-table th:nth-child(2) { width:1%; }
    .dashboard-upcoming-table th:nth-child(3) { width:1%; }
    .dashboard-upcoming-table th:nth-child(4) { width:1%; }
    .dashboard-upcoming-table th:nth-child(5) { width:auto; }
    .dashboard-upcoming-table th:nth-child(6),.dashboard-upcoming-table th:nth-child(7) { width:1%; }
    .dashboard-upcoming-table td:nth-child(6),.dashboard-upcoming-table td:nth-child(7) { white-space:nowrap; }
    .dashboard-upcoming-table th:nth-child(6),.dashboard-upcoming-table th:nth-child(7),.dashboard-upcoming-table td:nth-child(6),.dashboard-upcoming-table td:nth-child(7) { text-align:right; }
    .dashboard-upcoming-table td { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
    #viewDatabase #mainDBTable { width:max-content;min-width:100%;table-layout:auto; }
    #viewDatabase #mainDBTable th,#viewDatabase #mainDBTable td { width:max-content!important;white-space:nowrap; }
    #viewDatabase #mainDBTable th.db-item-name-head,#viewDatabase #mainDBTable td.db-item-name-cell { width:auto!important;min-width:0!important;max-width:420px;overflow:hidden;text-overflow:ellipsis; }
    #viewDatabase #dbTableHeader th { font-size:11px;font-weight:700;letter-spacing:.035em; }
    @media(max-width:1199px) and (min-width:701px) {
      .dashboard-chart-grid { grid-template-columns:minmax(240px,.82fr) minmax(0,1.18fr); }
      .dashboard-volume-card { grid-column:1/-1; }
      .dashboard-exim-card { grid-column:1;grid-row:2; }
      .dashboard-order-status-card { grid-column:1;grid-row:3; }
      .dashboard-upcoming-card { grid-column:2;grid-row:2 / span 2; }
      .dashboard-exim-card { grid-template-columns:minmax(0,2fr) minmax(0,1fr); }
      .dashboard-donut-wrap { height:190px; }
      .dashboard-donut-wrap canvas { width:155px!important;height:155px!important;max-width:155px;max-height:155px; }
    }
    @media(max-width:700px) {
      .dashboard-chart-grid { grid-template-columns:minmax(0,1fr); }
      .dashboard-volume-card,.dashboard-upcoming-card { grid-column:auto; }
      .dashboard-exim-card,.dashboard-order-status-card,.dashboard-upcoming-card { grid-column:auto;grid-row:auto; }
      .dashboard-exim-card { grid-template-columns:minmax(0,2fr) minmax(0,1fr); }
      .dashboard-donut-wrap { height:170px; }
      .dashboard-donut-wrap canvas { width:145px!important;height:145px!important;max-width:145px;max-height:145px; }
      .dashboard-welcome { align-items:flex-start; }
      .dashboard-welcome time { font-size:13px; }
      .dashboard-welcome time .clock-live { font-size:19px; }
      .dashboard-volume-chart { height:300px;margin-top:18px; }
      .dashboard-trend-gap { flex-wrap:wrap;gap:14px; }
      .dashboard-kpi-value { font-size:32px; }
    }
    .dashboard-volume-chart { margin-top:30px; }
    .dashboard-volume-card .dashboard-card-heading { margin-bottom:0; }
    .dashboard-volume-chart .chartjs-legend li span { border-radius:50%!important; }
    .dashboard-exim-card .dashboard-card-heading,.dashboard-order-status-card .dashboard-card-heading { margin-bottom:6px; }
    .dashboard-upcoming-card .dashboard-upcoming-table th { white-space:nowrap; }
    .dashboard-upcoming-table td:nth-child(5) { max-width:340px; }
    .dashboard-trend-legend { display:flex;align-items:center;gap:14px;margin-top:4px;color:#5c6961;font-size:11px; }
    .dashboard-trend-legend span { display:inline-flex;align-items:center;gap:6px; }
    .dashboard-trend-legend i { display:block;width:8px;height:8px;flex:none;border:2px solid var(--legend-color);border-radius:50%;background:transparent; }
    .dashboard-month-range { display:flex;align-items:center;gap:8px;padding:5px 8px;border:1px solid #dfe6e1;border-radius:5px;background:#fff;color:#647168;font-size:11px;font-weight:550; }
    .dashboard-month-range input[type=range] { width:96px;height:16px;accent-color:#168149;cursor:pointer; }
    .dashboard-month-range output { min-width:14px;color:#26332b;font-size:11px;font-weight:650;text-align:right;font-variant-numeric:tabular-nums; }
    .dashboard-welcome time { gap:5px; }
    .dashboard-welcome time .clock-date { order:0;color:#6b756e;font-size:12px;font-weight:450; }
    .dashboard-welcome time .clock-live { order:1; }
    .dashboard-welcome time .clock-period { order:2;align-self:center;margin-left:-5px;color:#6b756e;font-size:12px;font-weight:450; }
    .dashboard-detail-identity { display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 18px;padding:3px 0 13px;color:#59675e;border-bottom:1px solid #e8ede9;font-size:12px; }
    .dashboard-detail-identity strong { color:#1e3528;font-size:13px;font-weight:700; }
    .dashboard-detail-identity span+span::before { content:'·';margin-right:18px;color:#9aa49d; }
    .dashboard-progress-history { margin-top:14px; }
    .dashboard-progress-history h3 { margin:0 0 6px;color:#344139;font-size:13px;font-weight:650; }
    .dashboard-progress-history .dashboard-product-progress { padding:0;border:0; }
    .dashboard-progress-history .dashboard-stage-row { grid-template-columns:18px minmax(0,1fr) 38px;gap:9px;min-height:0;padding:8px 2px;border-top:1px solid #edf1ee; }
    .dashboard-progress-history .todo-check { display:grid;width:15px;height:15px;place-items:center;margin-top:2px;border:1.5px solid #cbd5ce;border-radius:50%;color:#fff;font-size:10px;line-height:1; }
    .dashboard-progress-history .todo-check.is-done { border-color:#168149;background:#168149;font-weight:700; }
    .dashboard-progress-history .todo-stage-copy { min-width:0; }
    .dashboard-progress-history .todo-stage-title { display:flex;align-items:baseline;justify-content:space-between;gap:12px; }
    .dashboard-progress-history .todo-stage-title>span { overflow:hidden;color:#344139;font-size:12px;font-weight:600;text-overflow:ellipsis;white-space:nowrap; }
    .dashboard-progress-history .todo-stage-title>small { flex:none;color:#69756d;font-size:10px;font-weight:500; }
    .dashboard-progress-history .todo-progress-track { height:4px;margin:5px 0 3px;overflow:hidden;border-radius:4px;background:#edf1ee; }
    .dashboard-progress-history .todo-progress-track>i { display:block;height:100%;border-radius:inherit;background:#168149; }
    .dashboard-progress-history .todo-stage-row:not(.is-done) .todo-progress-track>i { background:#ed8525; }
    .dashboard-progress-history .todo-stage-remaining { color:#77837b;font-size:10px; }
    .dashboard-progress-history .todo-stage-percent { color:#59675e;font-size:11px;font-weight:650;text-align:right; }
    .dashboard-progress-detail-layout { display:grid;grid-template-columns:minmax(220px,.72fr) minmax(0,1.6fr);gap:22px;align-items:start; }
    .dashboard-product-profile { min-width:0;padding:4px 18px 6px 4px;border-right:1px solid #e8ede9; }
    .dashboard-product-art { display:grid;width:72px;height:82px;place-items:center;margin:2px 0 16px;border:1px solid #e3ebe5;border-radius:8px;background:linear-gradient(145deg,#f5faf6,#eaf3ed);color:#168149; }
    .dashboard-product-art svg { width:48px;height:48px; }
    .dashboard-product-kicker { color:#77837b;font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase; }
    .dashboard-product-profile h3 { margin:5px 0 4px;color:#25362b;font-size:16px;font-weight:700;line-height:1.35; }
    .dashboard-product-profile code { color:#168149;font-family:var(--font-primary);font-size:12px;font-weight:650; }
    .dashboard-product-order { display:flex;flex-wrap:wrap;gap:5px 8px;margin:13px 0 14px;padding-bottom:13px;border-bottom:1px solid #e8ede9;color:#66736a;font-size:11px; }
    .dashboard-product-order span { color:#a0aaa3; }
    .dashboard-product-metrics { display:grid;gap:10px; }
    .dashboard-product-metrics>div { display:grid;grid-template-columns:18px minmax(0,1fr);gap:2px 8px;align-items:center; }
    .dashboard-product-metrics svg { grid-row:span 2;width:16px;height:16px;fill:none;stroke:#728078;stroke-width:1.5; }
    .dashboard-product-metrics span { color:#77837b;font-size:10px; }
    .dashboard-product-metrics strong { color:#26352b;font-size:12px;font-weight:650; }
    .dashboard-product-metrics strong small { margin-left:5px;color:#168149;font-size:11px;font-weight:700; }
    .dashboard-product-ready { display:grid;gap:4px;margin-top:14px;padding:10px 11px;border:1px solid #cde7d6;border-radius:6px;background:#f0f8f2; }
    .dashboard-product-ready span { color:#567361;font-size:10px; }
    .dashboard-product-ready strong { color:#167342;font-size:12px;font-weight:700; }
    .dashboard-progress-history { min-width:0;margin-top:0; }
    .dashboard-progress-history>header { display:flex;align-items:center;justify-content:space-between;gap:14px;margin:1px 0 10px; }
    .dashboard-progress-history h3 { margin:0;color:#344139;font-size:14px;font-weight:650; }
    .dashboard-progress-history>header p { margin:3px 0 0;color:#7b867f;font-size:10px; }
    .dashboard-progress-history>header>strong { flex:none;color:#168149;font-size:11px;font-weight:700; }
    .dashboard-progress-history .dashboard-stage-row { grid-template-columns:18px minmax(0,1fr) 40px;gap:9px;min-height:0;padding:9px 8px;border:0;border-top:1px solid #e8ede9;border-radius:0; }
    .dashboard-progress-history .dashboard-stage-row.is-done { background:#f4faf5; }
    .dashboard-progress-history .todo-stage-copy { display:grid;gap:3px; }
    .dashboard-progress-history .todo-stage-remaining { color:#8a6a3c;font-size:10px; }
    .dashboard-progress-history .dashboard-stage-row.is-done .todo-stage-remaining { color:#4f795d; }
    .dashboard-progress-history .todo-stage-percent { color:#ad6b23;font-size:11px;font-weight:700; }
    .dashboard-progress-history .todo-stage-percent.is-done { color:#168149; }
    .dashboard-welcome time .clock-tail { order:2;color:#66736b;font-size:16px;font-weight:450; }
    .dashboard-welcome time .clock-seconds,.dashboard-welcome time .clock-period { color:#66736b;font-size:12px;font-weight:450; }
    .dashboard-exim-legend-row { grid-template-columns:8px minmax(55px,.7fr) minmax(0,1.5fr);align-items:center; }
    .dashboard-exim-legend-row strong { grid-column:3;display:flex;flex-wrap:wrap;align-items:center;gap:4px 9px; }
    .dashboard-exim-measure { gap:4px; }
    .dashboard-exim-measure svg { width:10px;height:10px; }
    .dashboard-ready-line { display:flex;min-height:23px;align-items:center;padding:2px 0;color:#59675e;font-size:11px;font-weight:600; }
    .dashboard-ready-line.is-ready { color:#168149; }
    .dashboard-ready-line.is-pending { color:#9b6a2c; }
    .dashboard-product-open,.dashboard-product-open:hover { width:16px;height:22px;padding:0;border:0;border-radius:0;background:transparent;color:#187449;font-size:20px;line-height:1;box-shadow:none; }
    .dashboard-month-range { gap:7px;padding:0;border:0;background:transparent; }
    .dashboard-month-range input[type=range] { width:88px; }
    .dashboard-upcoming-card { min-height:0;height:100%;max-height:100%;overflow:hidden;align-self:stretch; }
    .dashboard-upcoming-wrap { overflow:auto;overscroll-behavior:contain; }
    .dashboard-chart-grid { grid-template-rows:auto auto auto; }
    .dashboard-order-status-card .dashboard-open-chart { flex:1;height:auto;min-height:190px; }
    body.sidebar-collapsed #sidebarProfile { width:44px;min-width:44px;height:44px;min-height:44px;margin:8px auto 14px;padding:0;justify-content:center;border:0;border-radius:50%;background:transparent;box-shadow:none; }
    body.sidebar-collapsed #sidebarProfile:hover { background:#edf5ef; }
    body.sidebar-collapsed #sidebarProfile .sidebar-profile-avatar { width:38px;height:38px; }
    body.sidebar-collapsed #sidebarProfile .sidebar-profile-copy,body.sidebar-collapsed #sidebarProfile>svg { display:none; }
    .dashboard-data-row-reveal { animation:dashboardRowArrival 320ms cubic-bezier(.2,.7,.25,1) both;animation-delay:min(calc(var(--row-index,0) * 42ms),420ms); }
    @keyframes dashboardRowArrival { 0% { opacity:.2;filter:blur(.6px);transform:translateY(-3px); } 68% { opacity:1;filter:blur(0);transform:translateY(0); } 82% { opacity:.88; } 100% { opacity:1; } }
    @media(prefers-reduced-motion:reduce){.dashboard-data-row-reveal{animation:none}}
    .dashboard-progress-modal-box { width:min(1040px,calc(100vw - 28px)); }
    [data-theme="dark"] .dashboard-product-profile h3,[data-theme="dark"] .dashboard-product-metrics strong { color:#e0e7e2; }
    [data-theme="dark"] .dashboard-product-art { border-color:#39423c;background:#252e29;color:#55bd83; }
    [data-theme="dark"] .dashboard-product-order { border-color:#39423c;color:#b8c2bb; }
    [data-theme="dark"] .dashboard-product-ready { border-color:#315c42;background:#203529; }
    [data-theme="dark"] .dashboard-product-ready strong,[data-theme="dark"] .dashboard-progress-history>header>strong { color:#8dd4a5; }
    [data-theme="dark"] .dashboard-progress-history .dashboard-stage-row.is-done { background:#202e25; }
    [data-theme="dark"] .dashboard-welcome time .clock-live { color:#eef4ef; }
    [data-theme="dark"] .dashboard-welcome time .clock-date,[data-theme="dark"] .dashboard-welcome time .clock-tail,[data-theme="dark"] .dashboard-welcome time .clock-seconds,[data-theme="dark"] .dashboard-welcome time .clock-period { color:#bac5bd; }
    [data-theme="dark"] .dashboard-ready-line.is-ready { color:#80d49c; }
    [data-theme="dark"] .dashboard-ready-line.is-pending { color:#e7bd7e; }
    [data-theme="dark"] body.sidebar-collapsed #sidebarProfile:hover { background:#27332b; }
    [data-theme="dark"] .dashboard-exim-legend-row { border-color:#39423c;color:#d5ded8; }
    [data-theme="dark"] .dashboard-exim-legend-row strong { color:#e0e7e2; }
    [data-theme="dark"] .dashboard-exim-measure svg { color:#aab5ad; }
    .dashboard-progress-history .todo-stage-title>small { padding:3px 7px;border-radius:4px;background:#f0f6f1;color:#273a2d;font-size:12px;font-weight:700; }
    .dashboard-progress-history .todo-stage-remaining { font-size:11px; }
    [data-theme="dark"] .dashboard-progress-history .todo-stage-title>small { background:#26392c;color:#dce9df; }
    .login-brand-copy { display:grid;gap:13px; }
    .login-brand-lockup { display:grid;gap:12px; }
    .login-mm-brand { display:flex;align-items:center;gap:10px; }
    .login-mm-brand svg { width:36px;height:36px;flex:none; }
    .login-company { gap:9px; }
    .login-company img { width:33px;height:33px; }
    .login-form-side h1 { margin:0;color:#202c24;font-size:28px;font-weight:700;letter-spacing:-.04em; }
    .login-fields input { font-weight:400; }
    .login-fields input::placeholder { color:#97a19a;font-weight:400;opacity:1; }
    .login-brand-copy p { margin-top:0; }
    .summary-overview-row { grid-template-columns:minmax(300px,380px) minmax(0,1fr);align-items:stretch; }
    .summary-right-pane { display:grid;grid-template-rows:auto minmax(360px,1fr);gap:12px;min-width:0;min-height:100%; }
    .summary-product-identity { height:100%; }
    .summary-history-section { min-height:360px;max-height:100%;overflow:hidden;display:flex;flex-direction:column; }
    .summary-history-section .summary-wc-tabs { flex:none; }
    .summary-history-section .summary-wc-panel { flex:1;min-height:0;overflow:auto; }
    .summary-family-row small,.summary-family-row em { overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere;line-height:1.4; }
    [data-theme="dark"] .summary-family-row small,[data-theme="dark"] .summary-family-row em { color:#b7c1ba; }
    [data-theme="dark"] .login-company,[data-theme="dark"] .login-brand-copy h2,[data-theme="dark"] .login-form-side h1 { color:#e6ece8; }
    [data-theme="dark"] .login-brand-side { background:linear-gradient(145deg,#202522,#1b241e); }
    [data-theme="dark"] .login-company img { border-radius:50%;background:#f6f8f6; }
    [data-theme="dark"] .login-fields label { color:#d2dbd5; }
    [data-theme="dark"] .login-fields input { border-color:#465149;background:#252b27;color:#e4ebe6; }
    [data-theme="dark"] .login-fields input::placeholder { color:#89958d; }
    [data-theme="dark"] .dashboard-ready-line.is-ready { color:#8cddb0; }
    [data-theme="dark"] .dashboard-ready-line.is-pending { color:#e9c181; }
    .app-spinner { display:none!important;animation:none!important; }
    [data-theme="dark"] .dashboard-detail-identity { color:#b8c2bb;border-color:#39423c; }
    [data-theme="dark"] .dashboard-detail-identity strong,[data-theme="dark"] .dashboard-progress-history h3,[data-theme="dark"] .dashboard-progress-history .dashboard-stage-row>span { color:#e0e7e2; }
    [data-theme="dark"] .dashboard-progress-history .todo-stage-title>span,[data-theme="dark"] .dashboard-progress-history .todo-stage-percent { color:#e0e7e2; }
    [data-theme="dark"] .dashboard-progress-history .todo-stage-title>small,[data-theme="dark"] .dashboard-progress-history .todo-stage-remaining { color:#b8c2bb; }
    [data-theme="dark"] .dashboard-progress-history .todo-progress-track { background:#38423b; }
    .dashboard-chart-grid { grid-template-rows:auto minmax(180px,1fr) minmax(180px,1fr); }
    .dashboard-exim-card,.dashboard-order-status-card { height:100%; }
    .dashboard-upcoming-card { height:100%;max-height:560px; }
    .dashboard-upcoming-wrap { flex:1;min-height:0;height:420px;max-height:420px;overflow:auto; }
    .dashboard-exim-legend-row { grid-template-columns:8px minmax(0,1fr) minmax(0,1.25fr);align-items:center; }
    .dashboard-exim-legend-row>span { white-space:nowrap; }
    .dashboard-exim-legend-row strong { grid-column:3;display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px; }
    .dashboard-exim-legend-row>div { display:flex;flex-wrap:wrap;align-items:center;gap:3px 10px;min-width:0; }
    .dashboard-exim-legend-row>div>span { flex-basis:100%; }
    .dashboard-exim-legend-row strong { flex-wrap:nowrap; }
    .dashboard-exim-measure { display:inline-flex;align-items:center;gap:4px;white-space:nowrap; }
    .dashboard-exim-measure svg { width:11px;height:11px;flex:none; }
    .dashboard-welcome time .clock-tail { order:2;display:inline-flex;align-items:baseline;margin-left:-5px;color:#647168;font-size:14px;font-weight:450; }
    .dashboard-welcome time .clock-seconds { font-size:14px;font-weight:450; }
    .dashboard-welcome time .clock-period { margin-left:3px; }
    .login-brand-side { display:flex;flex-direction:column;justify-content:center; }
    .login-art { display:grid; }
    .login-brand-copy { margin:0 auto;width:min(100%,420px); }
    .login-mm-brand h2 { margin:0;color:#15231b;font-size:24px;font-weight:500;letter-spacing:-.02em; }
    .login-mm-brand h2 strong { color:#078a55;font-weight:750; }
    .login-company { display:flex;align-items:center; }
    .login-company img { width:54px;height:54px;object-fit:contain; }
    .login-form-side { padding:32px 38px; }
    .login-fields { gap:14px; }
    .login-fields input { height:40px; }
    .dashboard-sticky-header { position:sticky;top:0;z-index:80;margin:-8px -8px 0;padding:8px;background:#f7f9fc;display:flex;flex-direction:column;gap:12px; }
    .dashboard-sticky-header { background:#f7f9fc; }
    .login-art { min-height:220px; }
    .dashboard-upcoming-wrap { height:440px;max-height:440px; }
    .dashboard-ready-line { min-height:28px; }
    .dashboard-product-line { min-height:28px; }
    [data-theme="dark"] .dashboard-sticky-header { background:#171a18; }
    [data-theme="dark"] .dashboard-sticky-header>div:not(.dashboard-brief-banner) { background:#202522!important;border-color:#39423c!important; }
    [data-theme="dark"] .dashboard-progress-history .todo-stage-title>small { background:#26392c;color:#e5efe8; }
    .dashboard-progress-history .todo-stage-title>small { padding:4px 8px;border-radius:4px;background:#f0f6f1;color:#273a2d;font-size:15px;font-weight:750;font-variant-numeric:tabular-nums; }
    .dashboard-progress-history .dashboard-stage-row { align-items:center; }
    .dashboard-kpi-skeleton { position:relative;min-height:168px;overflow:hidden; }
    .dashboard-kpi-skeleton>span,.dashboard-kpi-skeleton>b,.dashboard-kpi-skeleton>i,.dashboard-kpi-skeleton>small { display:block;border-radius:3px;background:linear-gradient(110deg,#edf1ee 8%,#fafbfa 18%,#edf1ee 33%);background-size:200% 100%;animation:placeholderScan 1.2s linear infinite; }
    .dashboard-kpi-skeleton>span { width:43%;height:11px;margin:2px 0 17px; }
    .dashboard-kpi-skeleton>b { width:56%;height:31px;margin-bottom:22px; }
    .dashboard-kpi-skeleton>i { width:100%;height:8px;margin-bottom:12px; }
    .dashboard-kpi-skeleton>small { width:66%;height:8px; }
    .dashboard-loading-shape { position:absolute;inset:0;z-index:4;display:grid;place-items:center;overflow:hidden;background:linear-gradient(110deg,#fbfcfb 8%,#f4f7f5 22%,#fbfcfb 36%);background-size:200% 100%;animation:placeholderScan 1.25s linear infinite; }
    .dashboard-volume-chart,.dashboard-donut-wrap,.dashboard-open-chart { position:relative; }
    .dashboard-loading-shape svg { width:100%;height:100%;padding:8px; }
    .dashboard-loading-shape svg path { fill:none;stroke:#dfe7e1;stroke-width:1; }
    .dashboard-loading-shape svg .skeleton-chart-line { stroke:#9cbba7;stroke-width:3; }
    .dashboard-skeleton-donut { width:148px;height:148px;border:22px solid #e2ebe5;border-right-color:#cbded1;border-radius:50%; }
    .dashboard-skeleton-bars { display:grid;width:78%;gap:32px; }
    .dashboard-skeleton-bars i { height:20px;border-radius:4px;background:#e4ebe6; }
    .dashboard-skeleton-bars i:first-child { width:72%;background:#f6d5b9; }
    .dashboard-skeleton-bars i:last-child { width:54%;background:#c6e2d1; }
    [data-theme="dark"] .dashboard-kpi-skeleton>span,[data-theme="dark"] .dashboard-kpi-skeleton>b,[data-theme="dark"] .dashboard-kpi-skeleton>i,[data-theme="dark"] .dashboard-kpi-skeleton>small { background-image:linear-gradient(110deg,#2a322d 8%,#343e37 18%,#2a322d 33%); }
    [data-theme="dark"] .dashboard-loading-shape { background-image:linear-gradient(110deg,#202522 8%,#28312b 22%,#202522 36%); }
    [data-theme="dark"] .dashboard-loading-shape svg path { stroke:#3b4940; }
    [data-theme="dark"] .dashboard-loading-shape svg .skeleton-chart-line { stroke:#638f71; }
    [data-theme="dark"] .dashboard-skeleton-donut { border-color:#34443a;border-right-color:#4e7059; }
    [data-theme="dark"] .dashboard-skeleton-bars i { background:#344139; }
    @media(max-width:700px){.dashboard-sticky-header{top:0;margin:-16px -16px 0;padding:8px}.dashboard-upcoming-wrap{height:440px;max-height:440px}.login-art{min-height:160px}}
    .login-brand-copy p { color:#657168;font-size:13px;line-height:1.55; }
    .data-placeholder-head { height:34px;background:#f6f8f7;color:#718078;text-align:left;font-size:11px;font-weight:500; }
    .data-placeholder-row td { height:37px;padding:7px 9px;border-bottom:1px solid #edf0ee; }
    .data-placeholder-cell { display:block;width:var(--cell-width,76%);height:9px;border-radius:2px;background:linear-gradient(90deg,#edf1ee 0%,#f7f9f7 44%,#e9eeea 70%,#f7f9f7 100%);background-size:220% 100%;animation:placeholderScan 1.2s linear infinite; }
    .data-placeholder-row td:nth-child(2n) .data-placeholder-cell { width:55%; }
    .master-plan-loading-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px; }
    .master-plan-loading-grid i { display:block;height:116px;border:1px solid #e3e9e5;border-radius:7px;background:linear-gradient(110deg,#f1f4f2 8%,#fbfcfb 18%,#f1f4f2 33%);background-size:200% 100%;animation:placeholderScan 1.25s linear infinite; }
    .dashboard-data-row-reveal,.summary-list-row,.summary-loading-card { animation:dashboardRowArrival 620ms steps(2,end) both;animation-delay:min(calc(var(--row-index,0) * 48ms),520ms); }
    @keyframes dashboardRowArrival { 0% { opacity:.35;filter:blur(.7px);transform:translateY(-4px); } 15% { opacity:.75;filter:blur(0);transform:translateY(-1px); } 28% { opacity:.45; } 42% { opacity:1;transform:translateY(0); } 56% { opacity:.72; } 68% { opacity:1; } 82% { opacity:.86; } 100% { opacity:1;filter:none;transform:none; } }
    @keyframes placeholderScan { to { background-position-x:-220%; } }
    .summary-loading-list { display:grid;gap:8px;padding:8px; }
    .summary-loading-card { display:flex;align-items:center;gap:12px;min-height:68px;padding:10px;border:1px solid #e5eae6;border-radius:7px;background:#fff; }
    .summary-loading-card>i { width:42px;height:42px;border-radius:5px;background:linear-gradient(110deg,#edf1ee 8%,#fafbfa 18%,#edf1ee 33%);background-size:200% 100%;animation:placeholderScan 1.2s linear infinite; }
    .summary-loading-card>span { display:grid;flex:1;gap:8px; }.summary-loading-card b,.summary-loading-card small,.summary-loading-card em { display:block;height:8px;border-radius:2px;background:#edf1ee; }.summary-loading-card b { width:55%; }.summary-loading-card small { width:78%; }.summary-loading-card em { width:48px;height:18px; }
    [data-theme="dark"] .data-placeholder-head { background:#262d29;color:#bac5bd; }
    [data-theme="dark"] .data-placeholder-row td { border-color:#39423c; }
    [data-theme="dark"] .data-placeholder-cell,[data-theme="dark"] .master-plan-loading-grid i { border-color:#39423c;background-color:#252c28;background-image:linear-gradient(110deg,#2a322d 8%,#343e37 18%,#2a322d 33%); }
    [data-theme="dark"] .summary-loading-card { background:#202522;border-color:#39423c; }
    [data-theme="dark"] .summary-loading-card b,[data-theme="dark"] .summary-loading-card small,[data-theme="dark"] .summary-loading-card em,[data-theme="dark"] .summary-loading-card>i { background-color:#2a322d;background-image:linear-gradient(110deg,#2a322d 8%,#343e37 18%,#2a322d 33%); }
    [data-theme="dark"] .login-mm-brand h2 { color:#e6ece8; }
    [data-theme="dark"] .login-company { color:#d2dbd5; }
    [data-theme="dark"] .login-brand-copy p { color:#b8c2bb; }
    [data-theme="dark"] .summary-family-heading,[data-theme="dark"] .summary-history-section h3,[data-theme="dark"] .summary-totals-section h3 { color:#e1e8e3; }
    [data-theme="dark"] .summary-product-identity,[data-theme="dark"] .summary-totals-section,[data-theme="dark"] .summary-history-section { background:#202522;border-color:#39423c; }
    [data-theme="dark"] .summary-wc-panel { color:#d4ddd7; }
    [data-theme="dark"] .summary-wc-panel th,[data-theme="dark"] .summary-wc-panel td { border-color:#39423c; }
    [data-theme="dark"] .summary-total-card { background:#252c28;border-color:#465149; }
    [data-theme="dark"] .summary-list-row { background:#202522;color:#dce4de; }
    [data-theme="dark"] .dashboard-upcoming-table th { background:#262d29;color:#c4cec7;border-color:#39423c; }
    [data-theme="dark"] .dashboard-upcoming-table td { border-color:#39423c;color:#d2dbd5; }
    [data-theme="dark"] .dashboard-upcoming-table tbody tr:nth-child(even) { background:#252c28; }
    @media(prefers-reduced-motion:reduce){.dashboard-data-row-reveal,.summary-list-row,.summary-loading-card,.data-placeholder-cell,.master-plan-loading-grid i{animation:none!important}.data-placeholder-cell{background:#edf1ee}}
    .delivery-detail-meta { display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 18px;margin:0 0 12px;padding:2px 0 12px;border-bottom:1px solid #e8ede9; }
    .delivery-detail-meta span { color:#78847c;font-size:10px; }
    .delivery-detail-meta strong { color:#29362e;font-size:12px;font-weight:650; }
    .delivery-order-totals { margin-bottom:10px; }
    .delivery-progress-section { margin-top:12px; }
    .delivery-progress-section>p { margin-bottom:7px; }
    .delivery-progress-cards { display:grid;grid-template-columns:1fr;gap:0;margin:8px 0 0;border-top:1px solid #e8ede9; }
    .delivery-progress-card { grid-template-columns:minmax(130px,1fr) minmax(140px,auto) auto;gap:12px;padding:7px 2px;border:0;border-bottom:1px solid #e8ede9;border-radius:0;background:transparent;font-size:11px; }
    .delivery-progress-card strong { font-size:11px; }
    .delivery-progress-card span { font-size:10px; }
    .delivery-progress-card em { font-size:10px; }
    .delivery-event-modal-box { width:min(1100px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto; }
    .delivery-progress-product { display:grid;grid-template-columns:minmax(220px,.72fr) minmax(0,1.6fr);gap:22px;margin-top:12px;padding:16px;border:1px solid #e3e9e5;border-radius:8px;background:#fff; }
    .delivery-product-identity { min-width:0;padding-right:18px;border-right:1px solid #e7ece8; }
    .delivery-product-art { display:grid;width:68px;height:72px;place-items:center;margin-bottom:12px;border:1px solid #e1e9e3;border-radius:8px;background:#f0f6f1;color:#13824b; }
    .delivery-product-art svg { width:46px;height:46px; }
    .delivery-product-identity>span { color:#77837b;font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase; }
    .delivery-product-identity h3 { margin:5px 0;color:#28372e;font-size:15px;font-weight:700;line-height:1.4;overflow-wrap:anywhere; }
    .delivery-product-identity code { color:#168149;font-size:12px;font-weight:650; }
    .delivery-product-identity>p { padding:9px 0;border-bottom:1px solid #e7ece8;color:#67746b;font-size:11px; }
    .delivery-product-metric { display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:6px 0; }
    .delivery-product-metric small,.delivery-ready small { color:#77837b;font-size:10px; }
    .delivery-product-metric strong,.delivery-ready strong { color:#27372e;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums; }
    .delivery-ready { display:grid;gap:4px;margin-top:8px;padding:10px;border:1px solid #e6eae7;border-radius:6px;background:#f7f9f8; }
    .delivery-ready.is-ready { border-color:#c8e6d2;background:#eff8f2; }
    .delivery-ready.is-ready strong { color:#168149; }
    .delivery-progress-history { min-width:0; }
    .delivery-progress-history>header { display:flex;justify-content:space-between;align-items:center;min-height:48px;border-bottom:1px solid #e7ece8; }
    .delivery-progress-history h3 { margin:0;color:#2b3930;font-size:14px;font-weight:700; }
    .delivery-progress-history p { margin:4px 0;color:#77837b;font-size:10px; }
    .delivery-progress-cards { border-top:0; }
    .delivery-progress-card { display:grid;grid-template-columns:18px minmax(0,1fr) 48px;align-items:center;gap:10px;min-height:48px;padding:6px 2px;border-bottom:1px solid #e4eae6;background:transparent; }
    .delivery-progress-card>i { display:grid;width:15px;height:15px;place-items:center;border:1.5px solid #cbd5ce;border-radius:50%;color:#fff;font-size:10px;font-style:normal;font-weight:700; }
    .delivery-progress-card.is-pass>i { border-color:#17804a;background:#17804a; }
    .delivery-progress-card>div { display:flex;align-items:center;justify-content:space-between;gap:10px; }
    .delivery-progress-card strong { color:#354239;font-size:12px;font-weight:600; }
    .delivery-progress-card small { padding:4px 7px;border-radius:4px;background:#f0f6f1;color:#273a2d;font-size:13px;font-weight:750;font-variant-numeric:tabular-nums; }
    .delivery-progress-card>b { color:#168149;font-size:12px;text-align:right; }
    [data-theme="dark"] .dashboard-sticky-header { background:#171a18; }
    [data-theme="dark"] .delivery-progress-product { background:#202522;border-color:#39423c; }
    [data-theme="dark"] .delivery-product-identity { border-color:#39423c; }
    [data-theme="dark"] .delivery-product-identity h3,[data-theme="dark"] .delivery-product-metric strong,[data-theme="dark"] .delivery-ready strong,[data-theme="dark"] .delivery-progress-history h3,[data-theme="dark"] .delivery-progress-card strong { color:#e0e7e2; }
    [data-theme="dark"] .delivery-product-art { background:#26332a;border-color:#39483e;color:#61c98e; }
    [data-theme="dark"] .delivery-ready { background:#252c28;border-color:#39423c; }
    [data-theme="dark"] .delivery-ready.is-ready { background:#203529;border-color:#315c42; }
    [data-theme="dark"] .delivery-progress-card { border-color:#39423c; }
    [data-theme="dark"] .delivery-progress-card small { background:#26392c;color:#e5efe8; }
    @media(max-width:700px){.delivery-progress-product{grid-template-columns:1fr;gap:12px}.delivery-product-identity{padding:0 0 12px;border-right:0;border-bottom:1px solid #e7ece8}.dashboard-sticky-header{top:0;margin:-16px -16px 0;padding:8px}.dashboard-upcoming-wrap{height:440px;max-height:440px}}
    .delivery-progress-product { margin-top:13px;padding-top:10px; }
    @media(max-width:700px){.dashboard-exim-card,.dashboard-order-status-card,.dashboard-upcoming-card{grid-column:auto;grid-row:auto}.dashboard-volume-chart{margin-top:20px}.delivery-progress-card{grid-template-columns:minmax(100px,1fr) auto auto;gap:6px}.dashboard-upcoming-table{min-width:650px;}.dashboard-progress-detail-layout{grid-template-columns:1fr;gap:14px}.dashboard-product-profile{padding:0 0 14px;border-right:0;border-bottom:1px solid #e8ede9}.dashboard-product-art{width:58px;height:62px;margin-bottom:10px}.dashboard-progress-modal-box{max-height:calc(100dvh - 24px);overflow:auto}.dashboard-welcome time .clock-live{font-size:30px}.dashboard-welcome time .clock-date,.dashboard-welcome time .clock-period{font-size:11px}}
    .dashboard-exim-legend-row { grid-template-columns:8px minmax(0,1fr);align-items:start; }
    .dashboard-exim-legend-row>div { display:grid;grid-template-columns:1fr;gap:3px;min-width:0; }
    .dashboard-exim-legend-row>div>span { flex-basis:auto; }
    .dashboard-exim-legend-row strong { grid-column:auto;display:flex;align-items:center;gap:10px;white-space:nowrap; }
    .dashboard-exim-measure { display:inline-flex!important;align-items:center;gap:4px; }
    .delivery-event-modal-box { max-width:1100px!important; }
    [data-theme="dark"] .dashboard-exim-legend-row small { color:#acb7af; }
    [data-theme="dark"] .login-brand-copy p { color:#b7c2ba; }
    .login-brand-lockup { display:flex;align-items:center;gap:18px; }
    .login-brand-lockup .login-company img { width:78px;height:78px;border-radius:50%;background:#f7f9f7; }
    .login-brand-text { min-width:0; }
    .login-brand-text .login-brand-copy p,.login-brand-copy .login-brand-text p { margin:5px 0 0;max-width:330px;font-size:12px;line-height:1.45; }
    [data-theme="dark"] .login-view { background:#121714; }
    [data-theme="dark"] .login-page-card { background:#202522;border-color:#39423c; }
    [data-theme="dark"] .login-brand-side { background:linear-gradient(145deg,#202522,#1b241e); }
    [data-theme="dark"] .login-form-side { background:#202522;color:#dce4de; }
    [data-theme="dark"] .login-form-side h1 { color:#eef4ef; }
    [data-theme="dark"] #loginSubtitle { color:#b5c0b8; }
    [data-theme="dark"] .dashboard-sticky-header { background:rgba(20,25,22,.98);backdrop-filter:blur(16px);box-shadow:0 8px 18px rgba(0,0,0,.24); }
    [data-theme="dark"] .dashboard-sticky-header>div:not(.dashboard-brief-banner) { background:#202522!important; }
    .dashboard-sticky-header { background:rgba(247,249,252,.98);backdrop-filter:blur(16px);box-shadow:0 8px 18px rgba(24,38,29,.09); }
    .dashboard-ready-line,.dashboard-product-line { height:36px;min-height:36px;box-sizing:border-box;padding-top:5px;padding-bottom:5px; }
    .dashboard-order-status-card .dashboard-open-chart { height:112px;min-height:112px;flex:none; }
    .dashboard-exim-card { padding-top:16px;padding-bottom:12px; }
    .dashboard-donut-wrap { height:212px; }
    .dashboard-donut-wrap canvas { width:184px!important;height:184px!important;max-width:184px;max-height:184px; }
    .dashboard-brief-close { width:30px;min-width:30px;padding:0!important;font-size:21px!important;line-height:1; }
    .dashboard-brief-close:first-child { border-color:rgb(255 255 255 / .35);background:rgb(255 255 255 / .1);color:#fff; }
    .dashboard-brief-banner[hidden] { display:none!important; }
    .delivery-detail-meta { grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:10px; }
    .delivery-meta-card { display:grid;gap:6px;min-width:0;padding:11px 12px;border:1px solid #e2e8e4;border-radius:6px;background:#f7f9f8; }
    .delivery-meta-card span { color:#758078;font-size:10px; }
    .delivery-meta-card strong { overflow-wrap:anywhere;color:#29362e;font-size:12px;font-weight:650; }
    [data-theme="dark"] .delivery-meta-card { background:#252c28;border-color:#39423c; }
    [data-theme="dark"] .delivery-meta-card span { color:#aab5ad; }
    [data-theme="dark"] .delivery-meta-card strong { color:#e0e7e2; }
    .access-role-grid { grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-top:12px; }
    .access-role-card { display:flex;align-items:center;gap:12px;min-height:74px;padding:13px 15px;border:1px solid #e3e9e5;border-radius:7px;background:#fff; }
    .access-role-icon { display:grid;width:38px;height:38px;place-items:center;border-radius:9px;background:#eaf1fc;color:#365f9a; }
    .access-role-icon svg { width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round; }
    .access-role-planner .access-role-icon { background:#fff3e5;color:#b66a1e; }
    .access-role-management .access-role-icon { background:#f3e8ff;color:#7e22ce; }
    .access-role-viewer .access-role-icon { background:#eaf6ed;color:#21804b; }
    .access-role-card>div { display:grid;gap:2px; }
    .access-role-card>div strong { color:#203027;font-size:22px;font-weight:720;font-variant-numeric:tabular-nums; }
    .access-role-card>div span { color:#68746c;font-size:11px;font-weight:550; }
    .access-card-heading { display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px; }
    .access-card-heading h2 { margin:0; }
    .access-card-heading p { margin:4px 0 0; }
    .access-form-message { min-height:16px;margin:7px 0 0!important;color:#b33e38!important;font-size:11px!important; }
    .access-table-wrap { overflow:auto;border:1px solid #e1e7e2;border-radius:6px; }
    .access-table { width:100%;min-width:850px;border-collapse:collapse;font-size:11px; }
    .access-table th { height:38px;padding:7px 10px;background:#f5f8f6;color:#607067;text-align:left;font-size:10px;font-weight:650;letter-spacing:.03em;text-transform:uppercase;white-space:nowrap; }
    .access-table td { padding:8px 10px;border-top:1px solid #edf0ed;color:#37443c;vertical-align:middle; }
    .access-table tbody tr:hover { background:#f8faf8; }
    .access-table td:nth-child(2) { width:42px; }
    .access-table td:nth-child(3) { min-width:145px;font-weight:600; }
    .access-table .access-avatar { display:grid;width:34px;height:34px;place-items:center;overflow:hidden;border-radius:50%;background:#edf2ee;color:#567061;font-weight:650; }
    .access-table .access-avatar img { width:100%;height:100%;object-fit:cover; }
    .access-role-pill { display:inline-flex;padding:4px 8px;border-radius:999px;background:#eaf1fc;color:#365f9a;font-size:10px;font-weight:600;text-transform:capitalize; }
    .access-role-pill.planner { background:#fff3e5;color:#9f5d1a; }.access-role-pill.management { background:#f3e8ff;color:#7e22ce; }.access-role-pill.viewer { background:#eaf6ed;color:#217544; }
    .access-state.is-inactive { background:#fcebea;color:#a33c38; }
    .access-last-seen { color:#6d7971!important;font-variant-numeric:tabular-nums;white-space:nowrap; }
    .access-manage { position:relative;min-width:74px; }
    .access-manage summary { display:inline-flex;align-items:center;justify-content:center;min-height:29px;padding:0 9px;border:1px solid #d8e0da;border-radius:4px;background:#fff;color:#315c42;cursor:pointer;font-size:10px;font-weight:600;list-style:none; }
    .access-manage summary::-webkit-details-marker { display:none; }
    .access-manage[open] { z-index:20; }
    .access-manage[open] .access-edit-grid { position:static;width:min(360px,calc(100vw - 80px));padding:12px;border:1px solid #dfe6e1;border-radius:6px;background:#fff;box-shadow:0 10px 28px rgba(20,35,25,.15); }
    .access-edit-grid label { display:grid;gap:5px;color:#59665e;font-size:10px; }
    .access-edit-grid input,.access-edit-grid select { min-width:0;height:32px;padding:0 8px;border:1px solid #dce3de;border-radius:4px;background:#fff;color:#26332b;font:inherit;font-size:11px; }
    .access-active-toggle { display:flex!important;align-items:center;gap:7px!important; }
    .access-active-toggle input { width:15px;min-width:15px;height:15px; }
    .access-edit-actions { justify-content:flex-start; }
    .access-selection-count { color:#718078;font-size:11px;white-space:nowrap; }
    [data-theme="dark"] .access-role-card,[data-theme="dark"] .access-table-wrap { background:#202522;border-color:#39423c; }
    [data-theme="dark"] .access-role-card>div strong { color:#e6ece8; }
    [data-theme="dark"] .access-role-card>div span,[data-theme="dark"] .access-selection-count { color:#b1bcb4; }
    [data-theme="dark"] .access-table th { background:#262d29;color:#c3cdc6; }
    [data-theme="dark"] .access-table td { border-color:#39423c;color:#d4ddd7; }
    [data-theme="dark"] .access-table tbody tr:hover { background:#252c28; }
    [data-theme="dark"] .access-manage summary { background:#252c28;border-color:#465149;color:#b9e6c7; }
    [data-theme="dark"] .access-manage[open] .access-edit-grid { background:#202522;border-color:#465149;box-shadow:0 10px 28px rgba(0,0,0,.38); }
    [data-theme="dark"] .access-edit-grid label { color:#c1cbc4; }
    [data-theme="dark"] .access-edit-grid input,[data-theme="dark"] .access-edit-grid select { background:#252b27;border-color:#465149;color:#e0e7e2; }
    [data-theme="dark"] .access-form-message { color:#ffb6ad!important; }
    [data-theme="dark"] #viewLapisUlang .bg-white { background-color:#202522!important; }
    [data-theme="dark"] #viewLapisUlang .bg-slate-50,[data-theme="dark"] #viewLapisUlang .bg-slate-100 { background-color:#252c28!important; }
    [data-theme="dark"] #viewLapisUlang .border-slate-100,[data-theme="dark"] #viewLapisUlang .border-slate-200,[data-theme="dark"] #viewLapisUlang .border-rose-200 { border-color:#39423c!important; }
    [data-theme="dark"] #viewLapisUlang .text-slate-700,[data-theme="dark"] #viewLapisUlang .text-slate-600,[data-theme="dark"] #viewLapisUlang .text-slate-500 { color:#d2dbd5!important; }
    [data-theme="dark"] #viewLapisUlang .text-slate-400 { color:#aab5ad!important; }
    #viewLapisUlang .border-rose-200 { border-color:#dce7f4!important; }
    #viewLapisUlang .bg-rose-50 { background-color:#edf4ff!important; }
    #viewLapisUlang .text-rose-500,#viewLapisUlang .text-rose-600 { color:#286bd6!important; }
    #viewLapisUlang .text-rose-300 { color:#89b0e8!important; }
    #viewLapisUlang .focus\:border-rose-400:focus { border-color:#286bd6!important; }
    [data-theme="dark"] #viewLapisUlang .text-rose-500,[data-theme="dark"] #viewLapisUlang .text-rose-600 { color:#8db7f2!important; }
    [data-theme="dark"] #viewLapisUlang .text-rose-300 { color:#6f93c4!important; }
    [data-theme="dark"] #viewLapisUlang .bg-rose-50 { background-color:#27364a!important; }
    [data-theme="dark"] #viewLapisUlang .border-rose-200 { border-color:#3b506b!important; }
    #luTableBody tr { animation:dashboardRowArrival 320ms cubic-bezier(.2,.7,.25,1) both;animation-delay:min(calc(var(--row-index,0) * 32ms),420ms); }
    #luTableBody tr:nth-child(1) { --row-index:0; }#luTableBody tr:nth-child(2) { --row-index:1; }#luTableBody tr:nth-child(3) { --row-index:2; }#luTableBody tr:nth-child(4) { --row-index:3; }#luTableBody tr:nth-child(5) { --row-index:4; }#luTableBody tr:nth-child(6) { --row-index:5; }#luTableBody tr:nth-child(7) { --row-index:6; }#luTableBody tr:nth-child(8) { --row-index:7; }#luTableBody tr:nth-child(9) { --row-index:8; }#luTableBody tr:nth-child(10) { --row-index:9; }
    .lu-loading-layout { display:grid;gap:16px; }
    .lu-loading-kpis { display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:16px; }
    @media(min-width:640px){.lu-loading-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
    @media(min-width:1280px){.lu-loading-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}}
    .lu-loading-kpis i,.lu-loading-charts i,.lu-loading-table { display:block;border:1px solid #e2e8e4;border-radius:8px;background:linear-gradient(110deg,#f0f4f1 8%,#fafbfa 19%,#f0f4f1 34%);background-size:200% 100%;animation:placeholderScan 1.2s linear infinite; }
    .lu-loading-kpis i { height:112px; }
    .lu-loading-charts { display:grid;grid-template-columns:2fr 1fr;gap:16px; }
    .lu-loading-charts i { height:300px; }
    .lu-loading-table { display:grid;gap:12px;padding:18px; }
    .lu-loading-table span { height:24px;border-radius:3px;background:linear-gradient(110deg,#e8eeea 8%,#f7f9f7 19%,#e8eeea 34%);background-size:200% 100%;animation:placeholderScan 1.2s linear infinite; }
    [data-theme="dark"] .lu-loading-kpis i,[data-theme="dark"] .lu-loading-charts i,[data-theme="dark"] .lu-loading-table { border-color:#39423c;background-image:linear-gradient(110deg,#252c28 8%,#313a34 19%,#252c28 34%); }
    [data-theme="dark"] .lu-loading-table span { background-image:linear-gradient(110deg,#2a322d 8%,#343e37 19%,#2a322d 34%); }
    @media(max-width:800px){.access-role-grid{grid-template-columns:1fr}.delivery-detail-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.login-brand-lockup .login-company img{width:62px;height:62px}.lu-loading-charts{grid-template-columns:1fr}.lu-loading-charts i{height:220px}}
    @media(max-width:520px){.lu-loading-kpis{grid-template-columns:1fr}.lu-loading-kpis i{height:88px}.login-brand-lockup{gap:12px}.login-brand-lockup .login-company img{width:52px;height:52px}.login-brand-text .login-brand-copy p,.login-brand-copy .login-brand-text p{font-size:11px}.access-form{grid-template-columns:1fr 1fr}.access-form button{grid-column:1/-1}.delivery-detail-meta{grid-template-columns:1fr 1fr}}
    .login-brand-side { justify-content:space-between!important;align-items:flex-start;padding:32px 38px!important; }
    .login-brand-copy { width:auto!important;margin:0!important;padding:0 0 2px!important; }
    .login-brand-lockup { gap:12px!important;align-items:center; }
    .login-brand-lockup .login-company img { display:block;width:42px!important;height:42px!important;max-width:42px;max-height:42px;border-radius:0!important;background:transparent!important;object-fit:contain; }
    .login-brand-copy h2 { font-size:18px!important;line-height:1.2;font-weight:600; }
    .login-brand-text .login-brand-copy p,.login-brand-copy .login-brand-text p { max-width:280px;font-size:11px;line-height:1.45; }
    [data-theme="dark"] .login-brand-copy h2 { color:#e6ece8; }
    [data-theme="dark"] .login-brand-copy p { color:#b7c2ba; }
    @media(max-width:700px){.login-brand-side{min-height:250px;padding:18px 24px 18px!important}.login-art{min-height:135px}.login-brand-copy{padding:0!important}.login-brand-lockup .login-company img{width:34px!important;height:34px!important}}
    .login-brand-side { justify-content:flex-start!important; }
    .login-art { width:100%;flex:1;align-self:stretch;min-height:250px;place-items:center; }
    .login-brand-copy { align-self:flex-start; }
    .dashboard-sticky-header { position:static!important;top:auto;z-index:auto;margin:0 0 12px;padding:0;background:transparent!important;backdrop-filter:none!important;box-shadow:none!important; }
    @media(min-width:1200px) {
      .dashboard-chart-grid { grid-template-rows:auto 250px 250px; }
      .dashboard-exim-card,.dashboard-order-status-card { height:100%;max-height:250px;box-sizing:border-box; }
      .dashboard-upcoming-card { height:100%;max-height:none; }
      .dashboard-donut-wrap { height:170px; }
      .dashboard-donut-wrap canvas { width:150px!important;height:150px!important;max-width:150px;max-height:150px; }
      .dashboard-exim-legend { gap:1px; }
      .dashboard-exim-legend-row { padding:5px 0; }
      .dashboard-order-status-card .dashboard-open-chart { height:112px;min-height:112px;flex:none;margin:auto 0; }
      .dashboard-upcoming-wrap { min-height:0;height:auto;max-height:none;flex:1;overflow:auto; }
    }
    .delivery-event-modal-box { width:min(920px,calc(100vw - 32px))!important;max-width:920px!important; }
    .delivery-progress-product { grid-template-columns:minmax(200px,.62fr) minmax(0,1.38fr);gap:16px;padding:13px; }
    .delivery-product-identity { padding-right:12px; }
    .summary-list-feedback { display:grid;justify-items:center;gap:10px;padding:28px 16px;color:#66736a;text-align:center;font-size:12px; }
    .summary-list-feedback p { margin:0; }
    .summary-list-feedback button { padding:6px 12px;border:1px solid #cbd6ce;border-radius:5px;background:#fff;color:#315c42;font-weight:600; }
    [data-theme="dark"] .summary-list-feedback { color:#bac5bd; }
    [data-theme="dark"] .summary-list-feedback button { border-color:#455149;background:#252c28;color:#c5e2ce; }
    [data-theme="dark"] #viewLapisUlang input,[data-theme="dark"] #viewLapisUlang select,[data-theme="dark"] #viewLapisUlang button { color:#dce3de; }
    [data-theme="dark"] #viewLapisUlang input,[data-theme="dark"] #viewLapisUlang select { background-color:#202522!important;border-color:#455149!important; }
    [data-theme="dark"] #viewLapisUlang input::placeholder { color:#93a098!important; }
    [data-theme="dark"] #viewLapisUlang .bg-indigo-50,[data-theme="dark"] #viewLapisUlang .bg-blue-50 { background:#26364a!important; }
    [data-theme="dark"] #viewLapisUlang .text-indigo-700,[data-theme="dark"] #viewLapisUlang .text-blue-700 { color:#a9c8f2!important; }
    [data-theme="dark"] #viewLapisUlang .text-emerald-600,[data-theme="dark"] #viewLapisUlang .text-emerald-700 { color:#7bd49a!important; }
    [data-theme="dark"] #viewLapisUlang .text-rose-600 { color:#8db7f2!important; }
    [data-theme="dark"] #viewLapisUlang .lu-shift-center strong { color:#e0e7e2; }
    [data-theme="dark"] #viewLapisUlang .lu-shift-center span { color:#aab5ad; }
    [data-theme="dark"] #viewLapisUlang .summary-list-row { background:#202522!important;border-color:#39423c!important;color:#dce3de; }
    [data-theme="dark"] #viewLapisUlang .summary-list-row:hover { background:#27332b!important;border-color:#53665a!important; }
    [data-theme="dark"] #viewLapisUlang .lu-loading-kpis i,[data-theme="dark"] #viewLapisUlang .lu-loading-charts i,[data-theme="dark"] #viewLapisUlang .lu-loading-table { background-color:#252c28;border-color:#39423c; }
    [data-theme="dark"] .dashboard-chart-card .dashboard-card-heading h3,[data-theme="dark"] .dashboard-card-heading p { color:#dce3de; }
    [data-theme="dark"] .dashboard-card-heading p { color:#aab5ad; }
    [data-theme="dark"] .delivery-progress-product>header,[data-theme="dark"] .delivery-progress-history>header { border-color:#39423c; }
    [data-theme="dark"] .delivery-product-metric small,[data-theme="dark"] .delivery-ready small { color:#aab5ad; }
    [data-theme="dark"] #viewLapisUlang .lu-shift-legend-row { color:#d2dbd5;border-color:#39423c; }
    [data-theme="dark"] #viewLapisUlang .lu-shift-legend-row strong { color:#e0e7e2; }
    [data-theme="dark"] #viewLapisUlang .bg-slate-800 { background:#33443a!important; }
    [data-theme="dark"] #viewLapisUlang .text-white { color:#f1f5f2!important; }
    [data-theme="dark"] #viewLapisUlang #luScoreRateBox { background:#202c25!important;border-color:#3b5846!important; }
    [data-theme="dark"] #viewLapisUlang #luScoreRateIcon { background:#26332a!important;color:#8bd5a2!important; }
    @media(max-width:700px){.login-art{min-height:135px;flex:1}.delivery-progress-product{grid-template-columns:1fr;gap:12px}.delivery-product-identity{padding:0 0 12px;border-right:0;border-bottom:1px solid #e7ece8}}

    /* === Targeted UI/UX Revisions === */
    /* 1. Exim Status & Sales Order Status: Full-box SO Status & Responsive Flexible Layout */
    .dashboard-exim-card,
    .dashboard-order-status-card {
      min-height: 0 !important;
      height: 100% !important;
      max-height: none !important;
      box-sizing: border-box;
    }
    .dashboard-exim-card {
      display: grid !important;
      grid-template-columns: minmax(128px, 1fr) minmax(145px, 1.15fr) !important;
      grid-template-rows: auto 1fr !important;
      align-items: center !important;
      gap: 8px 16px !important;
      padding: 18px 20px !important;
    }
    .dashboard-exim-card .dashboard-card-heading {
      grid-column: 1 / -1;
      min-height: 0;
      margin-bottom: 0 !important;
    }
    .dashboard-exim-card .dashboard-donut-wrap {
      grid-column: 1;
      grid-row: 2;
      width: 100%;
      height: 100%;
      min-height: 154px;
      max-height: 196px;
      margin: 0 !important;
      display: grid;
      place-items: center;
      align-self: center;
    }
    .dashboard-exim-card .dashboard-donut-wrap canvas {
      width: clamp(132px, 100%, 170px) !important;
      height: clamp(132px, 100%, 170px) !important;
      max-width: 170px !important;
      max-height: 170px !important;
      aspect-ratio: 1 / 1;
    }
    .dashboard-exim-card .dashboard-exim-legend {
      grid-column: 2;
      grid-row: 2;
      width: 100%;
      margin: 0 !important;
      align-self: center;
      justify-content: center;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .dashboard-order-status-card {
      display: flex !important;
      flex-direction: column !important;
      justify-content: space-between !important;
      align-items: stretch !important;
      padding: 18px 20px !important;
      min-height: 210px !important;
    }
    .dashboard-order-status-card .dashboard-card-heading {
      flex: 0 0 auto;
      min-height: 0;
      margin-bottom: 6px !important;
    }
    .dashboard-order-status-card .dashboard-open-chart {
      flex: 1 1 auto !important;
      width: 100% !important;
      height: 100% !important;
      min-height: 156px !important;
      max-height: none !important;
      margin: 0 !important;
      display: flex !important;
      flex-direction: column !important;
      justify-content: stretch !important;
      align-items: stretch !important;
    }
    .dashboard-order-status-card .dashboard-open-chart canvas {
      flex: 1 1 auto !important;
      width: 100% !important;
      height: 100% !important;
      max-height: none !important;
      display: block !important;
    }
    @media (min-width: 960px) {
      .dashboard-chart-grid {
        grid-template-columns: minmax(300px, 0.84fr) minmax(0, 1.42fr) !important;
        grid-template-rows: auto minmax(235px, 1fr) minmax(225px, 1fr) !important;
        align-items: stretch !important;
      }
      .dashboard-exim-card {
        grid-column: 1 !important;
        grid-row: 2 !important;
      }
      .dashboard-order-status-card {
        grid-column: 1 !important;
        grid-row: 3 !important;
      }
      .dashboard-upcoming-card {
        grid-column: 2 !important;
        grid-row: 2 / span 2 !important;
      }
    }
    @media (max-width: 959px) and (min-width: 641px) {
      .dashboard-chart-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: auto auto auto !important;
        align-items: stretch !important;
      }
      .dashboard-volume-card {
        grid-column: 1 / -1 !important;
      }
      .dashboard-exim-card {
        grid-column: 1 !important;
        grid-row: 2 !important;
      }
      .dashboard-order-status-card {
        grid-column: 2 !important;
        grid-row: 2 !important;
      }
      .dashboard-upcoming-card {
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
      }
    }
    @media (max-width: 640px) {
      .dashboard-chart-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto !important;
      }
      .dashboard-volume-card,
      .dashboard-exim-card,
      .dashboard-order-status-card,
      .dashboard-upcoming-card {
        grid-column: auto !important;
        grid-row: auto !important;
      }
      .dashboard-order-status-card {
        min-height: 215px !important;
      }
      .dashboard-order-status-card .dashboard-open-chart {
        min-height: 155px !important;
        height: 100% !important;
      }
    }
    @media (max-width: 420px) {
      .dashboard-exim-card {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto !important;
      }
      .dashboard-exim-card .dashboard-donut-wrap {
        grid-column: 1;
        grid-row: 2;
        min-height: 150px;
      }
      .dashboard-exim-card .dashboard-exim-legend {
        grid-column: 1;
        grid-row: 3;
      }
    }

    /* 2. Banner / Production Brief: Floating Small Close Button in Top-Right Corner */
    .dashboard-brief-banner {
      position: relative !important;
      padding-right: 44px !important;
    }
    .dashboard-brief-close {
      position: absolute !important;
      top: 8px !important;
      right: 8px !important;
      width: 22px !important;
      height: 22px !important;
      min-width: 22px !important;
      min-height: 22px !important;
      padding: 0 !important;
      display: inline-grid !important;
      place-items: center !important;
      border: 1px solid rgba(255, 255, 255, 0.28) !important;
      border-radius: 999px !important;
      background: rgba(10, 38, 30, 0.36) !important;
      backdrop-filter: blur(4px);
      color: #eef8f2 !important;
      font-size: 13px !important;
      font-weight: 600 !important;
      line-height: 1 !important;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14) !important;
      cursor: pointer;
      z-index: 3;
      transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    }
    .dashboard-brief-close:hover {
      background: rgba(10, 38, 30, 0.62) !important;
      border-color: rgba(255, 255, 255, 0.5) !important;
      color: #ffffff !important;
      transform: scale(1.06);
    }

    /* 3. Delivery Calendar: Full-Width Top Identity Cards */
    .delivery-detail-meta {
      display: grid !important;
      width: 100% !important;
      grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
      align-items: stretch !important;
      gap: 8px !important;
      margin: 0 0 12px !important;
      padding: 2px 0 12px !important;
      border-bottom: 1px solid #e8ede9;
      box-sizing: border-box;
    }
    .delivery-meta-card {
      width: 100% !important;
      min-width: 0 !important;
      box-sizing: border-box;
    }
    @media (max-width: 700px) {
      .delivery-detail-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      }
    }
    @media (max-width: 420px) {
      .delivery-detail-meta {
        grid-template-columns: 1fr !important;
      }
    }

    /* 4. Production Summary: Consistent UI/UX for 2 Products in Product Family */
    .summary-family-row {
      display: grid !important;
      grid-template-columns: 84px minmax(0, 1fr) !important;
      gap: 4px 10px !important;
      padding: 8px 0 !important;
      border-bottom: 1px solid #edf0ed;
      align-items: start !important;
    }
    .summary-family-row > span {
      grid-row: auto !important;
      color: #69756d;
      font-size: 10px;
      font-weight: 550;
      padding-top: 1px;
    }
    .summary-family-items {
      grid-column: 2;
      display: flex;
      flex-direction: column;
      gap: 6px;
      min-width: 0;
    }
    .summary-family-item {
      display: grid;
      gap: 2px;
      min-width: 0;
    }
    .summary-family-item strong {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: #28362d;
      font-size: 11px;
      font-weight: 600;
      font-variant-numeric: tabular-nums;
    }
    .summary-family-item small {
      display: block;
      color: #79847d;
      font-size: 10px;
      line-height: 1.4;
      white-space: normal;
      overflow-wrap: anywhere;
    }
    [data-theme="dark"] .summary-family-item strong {
      color: #e1e8e3;
    }
    [data-theme="dark"] .summary-family-item small {
      color: #b7c1ba;
    }

    /* 5 & 6. Login Page Overhaul: SaaS Split Layout, Hero 3D Focal Point, Centered Form & Premium Dark Mode */
    .login-view {
      padding: 28px !important;
      background: #f4f7f5;
    }
    .login-page-card {
      width: min(1060px, 100%) !important;
      min-height: 580px !important;
      display: grid !important;
      grid-template-columns: 1.04fr 0.96fr !important;
      overflow: hidden !important;
      border: 1px solid #dfe6e1 !important;
      border-radius: 12px !important;
      background: #ffffff;
      box-shadow: 0 24px 64px rgba(15, 28, 20, 0.08) !important;
    }
    /* Left Side: SaaS 3-Zone Split (Top-Left Corporate ID, Center 3D Hero, Bottom-Left Product ID) */
    .login-brand-side {
      display: flex !important;
      flex-direction: column !important;
      justify-content: space-between !important;
      align-items: flex-start !important;
      text-align: left !important;
      padding: 36px 42px !important;
      background: linear-gradient(155deg, #ffffff 0%, #f1f7f3 100%) !important;
      border-right: 1px solid #e5ebe7;
      position: relative;
      overflow: hidden;
    }
    /* Top-Left: Minimalist, small, unobtrusive Corporate Identity */
    .login-brand-side > .login-company {
      order: 0 !important;
      display: inline-flex !important;
      align-items: center !important;
      gap: 10px !important;
      margin: 0 !important;
      padding: 0 !important;
      z-index: 2;
    }
    .login-brand-side > .login-company img {
      width: 26px !important;
      height: 26px !important;
      max-width: 26px !important;
      max-height: 26px !important;
      border-radius: 0 !important;
      background: transparent !important;
      object-fit: contain !important;
      flex: none;
    }
    .login-brand-side > .login-company span {
      color: #5b6960;
      font-size: 12px !important;
      font-weight: 500 !important;
      letter-spacing: 0.01em;
      line-height: 1.2;
    }
    /* Center: Scaled-up 3D Hero Illustration perfectly centered vertically & horizontally */
    .login-art {
      order: 1 !important;
      flex: 1 1 auto !important;
      width: 100% !important;
      min-height: 300px !important;
      margin: 0 !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      position: relative !important;
      z-index: 1;
    }
    .login-art::before {
      content: "";
      position: absolute;
      width: 320px !important;
      height: 320px !important;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(16, 163, 90, 0.16) 0%, rgba(16, 163, 90, 0.06) 50%, transparent 72%) !important;
      will-change: transform, opacity;
      animation: loginHaloPulse 5.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite !important;
      animation-duration: 5.4s !important;
      animation-iteration-count: infinite !important;
    }
    .login-cube-scene {
      position: relative;
      width: 210px;
      height: 190px;
      display: grid;
      place-items: center;
      transform: scale(1.4) !important;
      transform-origin: center center !important;
    }
    /* Bottom-Left: Product Identity ("MoveMetric" + Description) */
    .login-brand-copy {
      order: 2 !important;
      align-self: flex-start !important;
      width: 100% !important;
      max-width: 390px !important;
      margin: 0 !important;
      padding: 0 !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 8px !important;
      text-align: left !important;
      z-index: 2;
    }
    .login-brand-copy .login-mm-brand h2 {
      margin: 0 !important;
      color: #16241c !important;
      font-size: 24px !important;
      font-weight: 700 !important;
      letter-spacing: -0.03em !important;
      line-height: 1.2 !important;
    }
    .login-brand-copy p {
      margin: 0 !important;
      max-width: 360px !important;
      color: #637067 !important;
      font-size: 13px !important;
      line-height: 1.6 !important;
    }

    /* Right Side: Minimalist & Vertically Centered Form with Generous Breathing Room */
    .login-form-side {
      display: flex !important;
      flex-direction: column !important;
      justify-content: center !important;
      align-items: center !important;
      padding: 52px clamp(32px, 5vw, 64px) !important;
      background: #ffffff;
    }
    .login-form-inner {
      width: 100%;
      max-width: 400px;
      margin: auto 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 32px;
    }
    .login-form-header {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin: 0 !important;
    }
    .login-form-side h1#loginTitle {
      margin: 0 !important;
      color: #111827;
      font-size: 30px !important;
      font-weight: 700 !important;
      letter-spacing: -0.035em !important;
      line-height: 1.15 !important;
    }
    .login-form-side #loginSubtitle {
      margin: 0 !important;
      color: #647269;
      font-size: 13.5px !important;
      line-height: 1.55 !important;
    }
    .login-fields {
      display: flex !important;
      flex-direction: column !important;
      gap: 22px !important;
      margin: 0 !important;
    }
    .login-fields label {
      display: flex !important;
      flex-direction: column !important;
      gap: 8px !important;
      color: #37433b;
      font-size: 12.5px !important;
      font-weight: 600 !important;
    }
    .login-fields input {
      width: 100%;
      height: 46px !important;
      padding: 0 14px !important;
      border: 1px solid #ced8d2 !important;
      border-radius: 8px !important;
      background: #f8faf9 !important;
      color: #18221c !important;
      font-size: 13.5px !important;
      font-weight: 450 !important;
      transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
    }
    .login-fields input:hover {
      border-color: #b7c6bd !important;
    }
    .login-fields input:focus {
      background: #ffffff !important;
      border-color: #059669 !important;
      box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.14) !important;
    }
    .login-password-wrap input {
      padding-right: 44px !important;
    }
    .login-password-wrap button {
      width: 42px !important;
      height: 46px !important;
      color: #78867d;
    }
    .login-error {
      min-height: 0 !important;
      margin: -6px 0 0 !important;
      color: #dc2626;
      font-size: 12px !important;
      line-height: 1.4;
    }
    .login-error:empty {
      display: none !important;
    }
    .login-submit {
      height: 46px !important;
      margin-top: 8px !important;
      border: 1px solid #059669 !important;
      border-radius: 8px !important;
      background: #059669 !important;
      color: #ffffff !important;
      font-size: 14px !important;
      font-weight: 600 !important;
      letter-spacing: -0.01em;
      cursor: pointer;
      transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
    }
    .login-submit:hover {
      background: #047857 !important;
      border-color: #047857 !important;
    }

    /* Fluent 3D Isometric Cube Animations */
    .login-cube {
      margin-top: 0 !important;
      will-change: transform;
      animation: loginCubeMain 4.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite !important;
      animation-duration: 4.8s !important;
      animation-iteration-count: infinite !important;
    }
    .login-cube svg {
      will-change: transform;
      animation: loginCubeIcon 4.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite !important;
      animation-duration: 4.8s !important;
      animation-iteration-count: infinite !important;
    }
    .login-cube.small {
      margin-top: 0 !important;
      will-change: transform;
      animation: loginCubeSmallOne 4.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) -1.2s infinite !important;
      animation-duration: 4.2s !important;
      animation-iteration-count: infinite !important;
    }
    .login-cube.small.two {
      margin-top: 0 !important;
      will-change: transform;
      animation: loginCubeSmallTwo 5.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) -2.4s infinite !important;
      animation-duration: 5.2s !important;
      animation-iteration-count: infinite !important;
    }
    @keyframes loginHaloPulse {
      0%, 100% { transform: scale(0.95); opacity: 0.85; }
      50% { transform: scale(1.06); opacity: 1; }
    }
    @keyframes loginCubeMain {
      0%, 100% { transform: translate3d(0, 0, 0) rotate(30deg) skew(-8deg, -8deg) scale(1); }
      50% { transform: translate3d(0, -10px, 0) rotate(32deg) skew(-7deg, -7deg) scale(1.03); }
    }
    @keyframes loginCubeIcon {
      0%, 100% { transform: rotate(-30deg) skew(8deg, 8deg) translate3d(0, 0, 0); }
      50% { transform: rotate(-32deg) skew(7deg, 7deg) translate3d(0, -1.5px, 0); }
    }
    @keyframes loginCubeSmallOne {
      0%, 100% { transform: translate3d(65px, -53px, 0) rotate(30deg) scale(1); }
      50% { transform: translate3d(72px, -61px, 0) rotate(36deg) scale(1.07); }
    }
    @keyframes loginCubeSmallTwo {
      0%, 100% { transform: translate3d(-83px, 48px, 0) rotate(30deg) scale(1); }
      50% { transform: translate3d(-90px, 39px, 0) rotate(24deg) scale(1.08); }
    }

    /* Premium Dark Mode for Login View */
    [data-theme="dark"] .login-view {
      background: #111513 !important;
    }
    [data-theme="dark"] .login-page-card {
      background: #1d221f !important;
      border-color: #2f3833 !important;
      box-shadow: 0 28px 72px rgba(0, 0, 0, 0.55) !important;
    }
    [data-theme="dark"] .login-brand-side {
      background: radial-gradient(circle at 50% 50%, rgba(16, 150, 84, 0.10) 0%, rgba(21, 28, 24, 0) 68%), linear-gradient(160deg, #18201b 0%, #131916 55%, #16221b 100%) !important;
      border-right: 1px solid #2b352f !important;
    }
    [data-theme="dark"] .login-brand-side > .login-company span {
      color: #9aa8a0 !important;
    }
    [data-theme="dark"] .login-brand-copy .login-mm-brand h2 {
      color: #f0f6f2 !important;
    }
    [data-theme="dark"] .login-brand-copy p {
      color: #9eab9f !important;
    }
    [data-theme="dark"] .login-art::before {
      background: radial-gradient(circle, rgba(16, 163, 90, 0.24) 0%, rgba(10, 92, 54, 0.11) 48%, rgba(19, 25, 22, 0) 72%) !important;
    }
    [data-theme="dark"] .login-cube {
      background: linear-gradient(135deg, #12a15a 0%, #07663a 100%) !important;
      box-shadow: 18px 22px 38px rgba(0, 0, 0, 0.55), 0 0 32px rgba(16, 163, 90, 0.22) !important;
    }
    [data-theme="dark"] .login-cube::after {
      border-color: rgba(167, 243, 208, 0.38) !important;
    }
    [data-theme="dark"] .login-cube.small {
      background: linear-gradient(135deg, #1f543b 0%, #153b29 100%) !important;
      border: 1px solid rgba(74, 222, 128, 0.28);
      box-shadow: 10px 14px 24px rgba(0, 0, 0, 0.45) !important;
    }
    [data-theme="dark"] .login-cube.small::after {
      border-color: rgba(134, 239, 172, 0.26) !important;
    }
    [data-theme="dark"] .login-cube.small.two {
      background: linear-gradient(135deg, #244334 0%, #182e23 100%) !important;
      border: 1px solid rgba(74, 222, 128, 0.22);
      box-shadow: 8px 12px 20px rgba(0, 0, 0, 0.40) !important;
    }
    [data-theme="dark"] .login-cube.small.two::after {
      border-color: rgba(134, 239, 172, 0.20) !important;
    }
    [data-theme="dark"] .login-form-side {
      background: #202623 !important;
    }
    [data-theme="dark"] .login-form-side h1#loginTitle {
      color: #f3f7f4 !important;
    }
    [data-theme="dark"] .login-form-side #loginSubtitle {
      color: #a3b0a7 !important;
    }
    [data-theme="dark"] .login-fields label {
      color: #d0dbd4 !important;
    }
    [data-theme="dark"] .login-fields input {
      background: #161b18 !important;
      border: 1px solid #3c4740 !important;
      color: #eef4f0 !important;
      box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.28) !important;
    }
    [data-theme="dark"] .login-fields input::placeholder {
      color: #7c8a81 !important;
    }
    [data-theme="dark"] .login-fields input:hover {
      border-color: #4f5e54 !important;
    }
    [data-theme="dark"] .login-fields input:focus {
      background: #131815 !important;
      border-color: #10b981 !important;
      box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18) !important;
    }
    [data-theme="dark"] .login-password-wrap button {
      color: #8fa095 !important;
    }
    [data-theme="dark"] .login-submit {
      background: #059669 !important;
      border-color: #10b981 !important;
      color: #ffffff !important;
      box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25) !important;
    }
    [data-theme="dark"] .login-submit:hover {
      background: #10b981 !important;
      border-color: #34d399 !important;
    }
    @media (max-width: 767px) {
      .login-page-card {
        grid-template-columns: 1fr !important;
        min-height: 0 !important;
      }
      .login-brand-side {
        padding: 24px 26px !important;
        min-height: 340px !important;
        border-right: 0 !important;
        border-bottom: 1px solid #2b352f;
      }
      .login-art {
        min-height: 190px !important;
      }
      .login-cube-scene {
        transform: scale(1.05) !important;
      }
      .login-form-side {
        padding: 36px 26px !important;
      }
    }


    /* ==========================================================================
       REVISION PASS — 9 TARGETED UI/UX & DARK MODE FIXES
       ========================================================================== */

    /* 1. Upcoming Stuffing (max 10 rows scrollable), Exim Status (2/3 donut width, 2-line legend), & SO Status height alignment */
    .dashboard-upcoming-wrap {
      height: 406px !important;
      max-height: 406px !important;
      flex: 0 0 406px !important;
      overflow-y: auto !important;
      overflow-x: auto !important;
    }
    .dashboard-upcoming-card {
      height: 100% !important;
      max-height: none !important;
      display: flex !important;
      flex-direction: column !important;
      justify-content: space-between !important;
    }
    @media (min-width: 960px) {
      .dashboard-chart-grid {
        grid-template-columns: minmax(340px, 0.88fr) minmax(0, 1.42fr) !important;
        grid-template-rows: auto 1fr 1fr !important;
        align-items: stretch !important;
      }
      .dashboard-exim-card {
        grid-column: 1 !important;
        grid-row: 2 !important;
        height: 100% !important;
        max-height: none !important;
      }
      .dashboard-order-status-card {
        grid-column: 1 !important;
        grid-row: 3 !important;
        height: 100% !important;
        max-height: none !important;
        min-height: 0 !important;
      }
      .dashboard-upcoming-card {
        grid-column: 2 !important;
        grid-row: 2 / span 2 !important;
      }
    }
    .dashboard-exim-card {
      display: grid !important;
      grid-template-columns: minmax(150px, 1.85fr) minmax(105px, 1fr) !important;
      grid-template-rows: auto 1fr !important;
      align-items: center !important;
      gap: 6px 12px !important;
      padding: 16px 18px !important;
    }
    .dashboard-exim-card .dashboard-donut-wrap {
      grid-column: 1 !important;
      grid-row: 2 !important;
      width: 100% !important;
      height: 100% !important;
      min-height: 156px !important;
      max-height: 196px !important;
      display: grid !important;
      place-items: center !important;
    }
    .dashboard-exim-card .dashboard-donut-wrap canvas {
      width: clamp(146px, 100%, 182px) !important;
      height: clamp(146px, 100%, 182px) !important;
      max-width: 182px !important;
      max-height: 182px !important;
    }
    .dashboard-exim-card .dashboard-exim-legend {
      grid-column: 2 !important;
      grid-row: 2 !important;
      width: 100% !important;
      min-width: 0 !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 4px !important;
    }
    .dashboard-exim-legend-row {
      display: grid !important;
      grid-template-columns: 8px minmax(0, 1fr) !important;
      align-items: start !important;
      gap: 6px !important;
      padding: 5px 0 !important;
    }
    .dashboard-exim-legend-row > div {
      display: flex !important;
      flex-direction: column !important;
      align-items: flex-start !important;
      gap: 2px !important;
      min-width: 0 !important;
    }
    .dashboard-exim-legend-row > div > span {
      font-size: 11px !important;
      font-weight: 650 !important;
      line-height: 1.2 !important;
    }
    .dashboard-exim-legend-row strong {
      display: flex !important;
      flex-wrap: wrap !important;
      align-items: center !important;
      gap: 2px 8px !important;
      white-space: normal !important;
      line-height: 1.3 !important;
    }
    .dashboard-order-status-card .dashboard-open-chart {
      flex: 1 1 auto !important;
      min-height: 120px !important;
      height: 100% !important;
    }

    /* 2. Banner Close Button: Clean X only, no circle/border/background, tight top-right alignment */
    .dashboard-brief-banner {
      position: relative !important;
      padding-right: 36px !important;
    }
    .dashboard-brief-close,
    .dashboard-brief-close:first-child {
      position: absolute !important;
      top: 5px !important;
      right: 7px !important;
      width: auto !important;
      height: auto !important;
      min-width: 0 !important;
      min-height: 0 !important;
      padding: 2px 5px !important;
      border: 0 !important;
      border-radius: 0 !important;
      background: transparent !important;
      backdrop-filter: none !important;
      box-shadow: none !important;
      color: rgba(246, 251, 247, 0.82) !important;
      font-size: 19px !important;
      font-weight: 400 !important;
      line-height: 1 !important;
      cursor: pointer !important;
      transition: color 0.15s ease, transform 0.15s ease !important;
    }
    .dashboard-brief-close:hover {
      background: transparent !important;
      border: 0 !important;
      box-shadow: none !important;
      color: #ffffff !important;
      transform: scale(1.12) !important;
    }

    /* 3. Production Summary: Totals & Balances aligned Open/Closed badges + Product Family separated Item Code & Name */
    .summary-total-card {
      display: flex !important;
      flex-direction: column !important;
      justify-content: space-between !important;
      min-height: 112px !important;
      padding: 12px !important;
    }
    .summary-total-card-head {
      display: flex !important;
      align-items: flex-start !important;
      justify-content: space-between !important;
      gap: 8px !important;
      min-height: 34px !important;
      margin-bottom: 10px !important;
    }
    .summary-total-wc-name {
      font-size: 11px !important;
      font-weight: 650 !important;
      line-height: 1.28 !important;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .summary-total-status-badge {
      flex: 0 0 auto !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      height: 20px !important;
      min-width: 48px !important;
      padding: 0 8px !important;
      border-radius: 999px !important;
      font-size: 9.5px !important;
      font-weight: 700 !important;
      line-height: 1 !important;
      white-space: nowrap !important;
    }
    .summary-total-card-metrics {
      margin-top: auto !important;
      display: flex !important;
      align-items: flex-end !important;
      justify-content: space-between !important;
      gap: 8px !important;
    }
    .summary-total-balance {
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      padding: 2px 7px !important;
      border-radius: 5px !important;
      background: rgba(255, 255, 255, 0.65) !important;
      font-size: 12px !important;
      font-weight: 700 !important;
      line-height: 1.2 !important;
    }
    .summary-family-row {
      display: grid !important;
      grid-template-columns: 92px minmax(0, 1fr) !important;
      gap: 6px 12px !important;
      padding: 9px 0 !important;
      border-bottom: 1px solid #e6ece8 !important;
      align-items: start !important;
    }
    .summary-family-items {
      display: flex !important;
      flex-direction: column !important;
      gap: 7px !important;
    }
    .summary-family-item.is-lu {
      padding-top: 6px !important;
      border-top: 1px dashed #dce5df !important;
    }
    .summary-family-code-line {
      display: flex !important;
      flex-wrap: wrap !important;
      align-items: center !important;
      gap: 5px 8px !important;
    }
    .summary-family-code {
      display: inline-flex !important;
      align-items: center !important;
      padding: 2px 7px !important;
      border-radius: 4px !important;
      background: #edf8f1 !important;
      border: 1px solid #c3e4cf !important;
      color: #0f6e3d !important;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
      font-size: 10.5px !important;
      font-weight: 700 !important;
      letter-spacing: 0.02em !important;
      line-height: 1.3 !important;
    }
    .summary-family-code.is-lu {
      background: #eef4ff !important;
      border-color: #c7dafb !important;
      color: #2557a7 !important;
    }
    .summary-family-sep {
      color: #94a39b !important;
      font-style: normal !important;
      font-weight: 700 !important;
      font-size: 11px !important;
    }
    .summary-family-code-line small {
      color: #37443c !important;
      font-size: 10.5px !important;
      font-weight: 500 !important;
      line-height: 1.4 !important;
    }

    /* 4. Order Progress '>' Icon Clean (No Box in Light or Dark Mode) & Compact WC Progress Table (Delivery Details + Order Progress Modal) */
    .dashboard-product-open,
    .dashboard-product-open:hover,
    [data-theme="dark"] .dashboard-product-open,
    [data-theme="dark"] .dashboard-product-open:hover {
      width: 18px !important;
      height: 22px !important;
      padding: 0 !important;
      border: 0 !important;
      border-radius: 0 !important;
      background: transparent !important;
      box-shadow: none !important;
      color: #168149 !important;
      font-size: 19px !important;
      font-weight: 700 !important;
      line-height: 1 !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
    }
    [data-theme="dark"] .dashboard-product-open,
    [data-theme="dark"] .dashboard-product-open:hover {
      color: #34d399 !important;
    }

    /* 5. Compact Delivery Details & Workcenter Progress Alternating Table */
    .delivery-progress-product.compact {
      display: grid !important;
      grid-template-columns: minmax(190px, 0.56fr) minmax(0, 1.44fr) !important;
      gap: 14px !important;
      margin-top: 10px !important;
      padding: 12px 14px !important;
      border-radius: 7px !important;
    }
    .delivery-product-identity.compact {
      padding-right: 12px !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 6px !important;
    }
    .delivery-product-head {
      display: flex !important;
      align-items: center !important;
      gap: 10px !important;
    }
    .delivery-product-identity.compact .delivery-product-art {
      width: 44px !important;
      height: 44px !important;
      margin: 0 !important;
      border-radius: 6px !important;
      flex: none !important;
    }
    .delivery-product-identity.compact .delivery-product-art svg {
      width: 28px !important;
      height: 28px !important;
    }
    .delivery-product-title {
      display: flex !important;
      flex-direction: column !important;
      gap: 2px !important;
      min-width: 0 !important;
    }
    .delivery-product-title span {
      font-size: 9.5px !important;
      font-weight: 700 !important;
      text-transform: uppercase !important;
      letter-spacing: 0.05em !important;
      color: #77837b;
    }
    .delivery-product-identity.compact h3 {
      margin: 2px 0 !important;
      font-size: 12.5px !important;
      line-height: 1.35 !important;
    }
    .delivery-product-metrics-grid {
      display: grid !important;
      grid-template-columns: 1fr 1fr !important;
      gap: 6px 10px !important;
      margin-top: auto !important;
      padding-top: 8px !important;
      border-top: 1px solid #e7ece8;
    }
    .delivery-product-metrics-grid .delivery-product-metric {
      display: flex !important;
      flex-direction: column !important;
      gap: 1px !important;
      padding: 0 !important;
    }
    .delivery-product-metrics-grid .delivery-product-metric.full {
      grid-column: 1 / -1 !important;
      flex-direction: row !important;
      justify-content: space-between !important;
      align-items: center !important;
      padding-top: 4px !important;
      border-top: 1px dashed #e7ece8;
    }
    .delivery-progress-history.compact > header {
      min-height: 34px !important;
      padding-bottom: 6px !important;
      margin-bottom: 6px !important;
    }
    .wc-compact-table-wrap {
      border: 1px solid #e3e8e5;
      border-radius: 6px;
      overflow: hidden;
    }
    .wc-compact-table {
      width: 100% !important;
      border-collapse: collapse !important;
      font-size: 11.5px !important;
    }
    .wc-compact-table thead th {
      height: 28px !important;
      max-height: 28px !important;
      padding: 4px 10px !important;
      background: #f5f8f6;
      color: #647168;
      font-size: 10px !important;
      font-weight: 700 !important;
      text-transform: uppercase !important;
      letter-spacing: 0.03em !important;
      border-bottom: 1px solid #e3e8e5 !important;
      text-align: left;
    }
    .wc-compact-table thead th.text-right {
      text-align: right !important;
    }
    .wc-compact-table tbody tr.wc-compact-row {
      border-bottom: 1px solid #ecf0ed;
    }
    .wc-compact-table tbody tr.wc-compact-row:last-child {
      border-bottom: 0;
    }
    .wc-compact-table tbody tr.wc-compact-row:nth-child(odd) {
      background: #ffffff;
    }
    .wc-compact-table tbody tr.wc-compact-row:nth-child(even) {
      background: #f6f8f7;
    }
    .wc-compact-table tbody tr.wc-compact-row:hover {
      background: #edf5ef;
    }
    .wc-compact-table tbody td {
      height: 31px !important;
      max-height: 31px !important;
      padding: 4px 10px !important;
      vertical-align: middle !important;
    }
    .wc-col-stage {
      font-weight: 600 !important;
      color: #26352b;
      white-space: nowrap;
    }
    .wc-col-qty {
      text-align: right !important;
      font-weight: 650 !important;
      font-variant-numeric: tabular-nums !important;
      color: #1f2d24;
      white-space: nowrap;
      background: transparent !important;
    }
    .wc-col-pct {
      text-align: right !important;
      font-weight: 700 !important;
      font-variant-numeric: tabular-nums !important;
      color: #526057;
      width: 44px;
    }
    .wc-col-rem {
      font-size: 11px !important;
      white-space: nowrap;
    }
    .wc-rem-done {
      color: #168149;
      font-weight: 500;
    }
    .wc-rem-short {
      color: #c25127;
      font-weight: 650;
      font-variant-numeric: tabular-nums;
    }
    .wc-rem-wait {
      color: #8a6a3c;
      font-weight: 500;
    }
    .wc-col-status {
      text-align: right !important;
      white-space: nowrap;
    }

    /* 6. Windows 11-Style Sidebar Profile Flyout Menu & Profile Modal Forward Link */
    .sidebar-profile-wrap {
      width: 100%;
    }
    .sidebar-profile-flyout {
      position: absolute;
      bottom: calc(100% + 6px);
      left: 12px;
      right: 12px;
      z-index: 120;
      padding: 6px;
      border: 1px solid #d8e2dc;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.98);
      backdrop-filter: blur(16px);
      box-shadow: 0 14px 34px rgba(15, 28, 20, 0.18);
      animation: winFlyoutUp 0.14s cubic-bezier(0.16, 1, 0.3, 1);
    }
    body.sidebar-collapsed .sidebar-profile-flyout {
      position: fixed;
      left: 12px;
      bottom: 68px;
      right: auto;
      width: 210px;
    }
    @keyframes winFlyoutUp {
      from { opacity: 0; transform: translateY(8px) scale(0.98); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }
    .sidebar-flyout-header {
      padding: 7px 10px 8px;
      border-bottom: 1px solid #eaeeeb;
      margin-bottom: 4px;
    }
    .sidebar-flyout-header strong {
      display: block;
      font-size: 12px;
      font-weight: 650;
      color: #1e2b23;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .sidebar-flyout-header small {
      display: block;
      font-size: 10px;
      color: #6c7971;
      margin-top: 1px;
    }
    .sidebar-flyout-item {
      width: 100%;
      min-height: 35px !important;
      padding: 6px 10px;
      display: flex;
      align-items: center;
      gap: 10px;
      border: 0;
      border-radius: 6px;
      background: transparent;
      color: #27352c;
      font-size: 12px;
      font-weight: 550;
      text-align: left;
      cursor: pointer;
      transition: background-color 0.12s ease, color 0.12s ease;
    }
    .sidebar-flyout-item:hover {
      background: #eff5f1;
    }
    .sidebar-flyout-item.is-danger {
      color: #be3a34;
    }
    .sidebar-flyout-item.is-danger:hover {
      background: #fef1f0;
      color: #a82822;
    }
    .sidebar-flyout-divider {
      height: 1px;
      margin: 4px 6px;
      background: #e7ece8;
    }
    .profile-access-forward {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 9px 11px;
      border: 1px solid #d5e6dc;
      border-radius: 6px;
      background: #f3faf6;
      color: #264132;
      font-size: 11px;
      text-align: left;
      cursor: pointer;
    }
    .profile-access-forward strong {
      color: #0f7642;
      font-weight: 650;
      white-space: nowrap;
    }
    .profile-access-forward.is-readonly {
      cursor: default;
    }

    /* 7. Login Page MoveMetric Compact Typography & Continue Button Loading Spinner */
    .login-brand-copy {
      gap: 4px !important;
      max-width: 340px !important;
    }
    .login-brand-copy .login-mm-brand h2 {
      font-size: 18px !important;
      font-weight: 700 !important;
      letter-spacing: -0.025em !important;
      line-height: 1.2 !important;
    }
    .login-brand-copy p {
      font-size: 11.5px !important;
      line-height: 1.38 !important;
      max-width: 310px !important;
    }
    .login-submit {
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 8px !important;
    }
    .login-submit.is-loading {
      opacity: 0.9;
      cursor: wait !important;
    }
    .login-btn-spinner {
      width: 15px;
      height: 15px;
      border: 2px solid rgba(255, 255, 255, 0.35);
      border-top-color: #ffffff;
      border-radius: 50%;
      display: inline-block;
      animation: loginBtnSpin 0.65s linear infinite;
    }
    @keyframes loginBtnSpin {
      to { transform: rotate(360deg); }
    }

    /* 8. Master Plan Flexible Layout & Visual Hierarchy */
    .mp-hero-banner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 18px 22px;
      border: 1px solid #1e5f49;
      border-radius: 10px;
      background: linear-gradient(108deg, #0d4638 0%, #165e48 64%, #3c6c4d 100%);
      color: #f4faf6;
    }
    .mp-hero-main {
      display: flex;
      align-items: center;
      gap: 14px;
      min-width: 0;
    }
    .mp-hero-icon {
      width: 42px;
      height: 42px;
      border-radius: 9px;
      background: rgba(255, 255, 255, 0.12);
      border: 1px solid rgba(255, 255, 255, 0.22);
      display: grid;
      place-items: center;
      color: #d6ed55;
      flex: none;
    }
    .mp-hero-kicker {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.08em;
      color: #d6ed55;
      text-transform: uppercase;
    }
    .mp-hero-filename {
      font-size: clamp(14px, 1.4vw, 17px);
      font-weight: 700;
      color: #ffffff;
      margin-top: 2px;
      overflow-wrap: anywhere;
    }
    .mp-hero-sub {
      font-size: 11.5px;
      color: #cde2d5;
      margin: 4px 0 0;
    }
    .mp-hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 6px 12px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.14);
      border: 1px solid rgba(255, 255, 255, 0.26);
      color: #ffffff;
      font-size: 11px;
      font-weight: 650;
      white-space: nowrap;
      flex: none;
    }
    .mp-hero-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #4ade80;
      box-shadow: 0 0 8px #4ade80;
    }
    .mp-section-block {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .mp-section-header h2 {
      margin: 0;
      font-size: 14px;
      font-weight: 650;
      color: #202d25;
    }
    .mp-section-header p {
      margin: 2px 0 0;
      font-size: 11.5px;
      color: #6b7870;
    }
    .master-plan-periods {
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.18fr) !important;
      gap: 14px !important;
    }
    .master-plan-period-card {
      display: flex !important;
      flex-direction: column !important;
      justify-content: space-between !important;
      padding: 16px 18px !important;
      border-radius: 8px !important;
      border: 1px solid #dfe6e1 !important;
      background: #ffffff;
      position: relative;
      overflow: hidden;
    }
    .master-plan-period-card.is-carryover {
      border-top: 3px solid #d9822b !important;
    }
    .master-plan-period-card.is-current-plan {
      border-top: 3px solid #286bd6 !important;
    }
    .master-plan-period-card.grand-total {
      border: 1.5px solid #168149 !important;
      border-top: 3px solid #168149 !important;
      background: linear-gradient(145deg, #f2faf5 0%, #e7f6ed 100%) !important;
    }
    .mp-card-head {
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      gap: 8px !important;
      margin-bottom: 10px !important;
    }
    .mp-card-kicker {
      font-size: 11px !important;
      font-weight: 700 !important;
      letter-spacing: 0.04em !important;
      color: #4a5850;
      text-transform: uppercase;
    }
    .mp-card-tag {
      font-style: normal !important;
      font-size: 10px !important;
      font-weight: 650 !important;
      padding: 2px 7px !important;
      border-radius: 999px !important;
      background: #f1f5f2;
      color: #55645b;
      white-space: nowrap;
    }
    .mp-card-tag.is-primary {
      background: #168149;
      color: #ffffff;
    }
    .mp-card-main {
      display: flex !important;
      align-items: baseline !important;
      justify-content: space-between !important;
      gap: 10px !important;
      margin-bottom: 10px !important;
    }
    .mp-card-main b {
      font-size: 26px !important;
      font-weight: 750 !important;
      color: #146c3e !important;
      line-height: 1.1 !important;
      font-variant-numeric: tabular-nums !important;
    }
    .master-plan-period-card.is-carryover .mp-card-main b {
      color: #b8621b !important;
    }
    .master-plan-period-card.is-current-plan .mp-card-main b {
      color: #1f5bb8 !important;
    }
    .mp-card-main b small {
      display: inline !important;
      font-size: 13px !important;
      font-weight: 600 !important;
      margin-left: 2px !important;
    }
    .mp-card-main strong {
      font-size: 13.5px !important;
      font-weight: 650 !important;
      color: #3b4840 !important;
    }
    .mp-split-bar {
      height: 6px;
      border-radius: 999px;
      background: #dce8e0;
      overflow: hidden;
      display: flex;
      margin-bottom: 10px;
    }
    .mp-split-bar i {
      background: #d9822b;
      height: 100%;
      display: block;
    }
    .mp-split-bar b {
      background: #168149;
      height: 100%;
      display: block;
    }
    .mp-card-meta {
      display: flex !important;
      flex-wrap: wrap !important;
      gap: 6px 14px !important;
      font-size: 11px !important;
      color: #59665e;
      padding-top: 8px;
      border-top: 1px solid rgba(0, 0, 0, 0.06);
    }
    .mp-card-meta b {
      font-size: 11px !important;
      font-weight: 700 !important;
      color: #202d25 !important;
    }
    .mp-card-foot {
      margin-top: 6px !important;
      font-size: 10px !important;
      color: #77837b;
    }
    /* Fix overlapping filenames in Master Plan Google Drive table */
    #viewDrive #driveFileList td {
      height: auto !important;
      max-height: none !important;
      padding: 10px 14px !important;
      vertical-align: middle !important;
    }
    .drive-file-cell {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      min-width: 0;
    }
    .drive-file-link {
      display: block;
      white-space: normal !important;
      overflow-wrap: anywhere !important;
      line-height: 1.4 !important;
      font-size: 12px !important;
    }
    .drive-latest-pill {
      display: inline-block;
      margin-top: 3px;
      padding: 1px 6px;
      border-radius: 4px;
      background: #e8f5ed;
      color: #157343;
      font-size: 9.5px;
      font-weight: 650;
    }
    .lu-chart-slot {
      position: relative;
      overflow: hidden;
    }

    /* 9. TRUE DEEP DARK MODE OVERHAUL ("Lebih Pekat / Bener-Bener Dark") & Full Contrast Visibility */
    [data-theme="dark"] body,
    [data-theme="dark"] #viewHome,
    [data-theme="dark"] #viewMatrix,
    [data-theme="dark"] #viewSummary,
    [data-theme="dark"] #viewDrive,
    [data-theme="dark"] #viewDatabase,
    [data-theme="dark"] #viewDashboard,
    [data-theme="dark"] #viewLapisUlang,
    [data-theme="dark"] #viewAccess,
    [data-theme="dark"] #viewCalendar,
    [data-theme="dark"] #viewSync, [data-theme="dark"] #viewAssemblyMonitoring, [data-theme="dark"] #viewFinishingMonitoring, [data-theme="dark"] #viewAssemblyPoDb, [data-theme="dark"] #viewFinishingPoDb {
      background: #090c0a !important;
      color: #f1f5f2 !important;
    }
    [data-theme="dark"] #appSidebar,
    [data-theme="dark"] header#appTopbar,
    [data-theme="dark"] #appFooter {
      background: #0e1310 !important;
      border-color: #1f2822 !important;
      color: #f1f5f2 !important;
    }
    [data-theme="dark"] .dashboard-chart-card,
    [data-theme="dark"] #dashTopCards > .dashboard-kpi-card,
    [data-theme="dark"] #dashTopCards > div,
    [data-theme="dark"] #viewDashboard .bg-white,
    [data-theme="dark"] #viewDashboard [aria-labelledby="dashOrdersTitle"],
    [data-theme="dark"] #viewDatabase .bg-white,
    [data-theme="dark"] #viewMatrix .bg-white,
    [data-theme="dark"] #viewSummary .bg-white,
    [data-theme="dark"] #viewDrive .bg-white,
    [data-theme="dark"] #viewLapisUlang .bg-white,
    [data-theme="dark"] #viewAccess .bg-white,
    [data-theme="dark"] #viewCalendar .bg-white,
    [data-theme="dark"] #viewSync .bg-white, [data-theme="dark"] #viewAssemblyMonitoring .bg-white, [data-theme="dark"] #viewFinishingMonitoring .bg-white, [data-theme="dark"] #viewAssemblyPoDb .bg-white, [data-theme="dark"] #viewFinishingPoDb .bg-white,
    [data-theme="dark"] #dbHome,
    [data-theme="dark"] .access-card,
    [data-theme="dark"] .access-role-card,
    [data-theme="dark"] .access-table-wrap,
    [data-theme="dark"] .summary-product-identity,
    [data-theme="dark"] .summary-totals-section,
    [data-theme="dark"] .master-plan-period-card,
    [data-theme="dark"] .master-plan-note,
    [data-theme="dark"] .dashboard-progress-modal-box,
    [data-theme="dark"] .delivery-event-modal-box,
    [data-theme="dark"] .delivery-progress-product,
    [data-theme="dark"] #profileModalPanel,
    [data-theme="dark"] .notification-panel {
      background: #111613 !important;
      border-color: #222b25 !important;
      color: #f1f5f2 !important;
    }
    /* High-contrast headings & labels in dark mode (fixes invisible h3 / labels) */
    [data-theme="dark"] #viewDashboard h3,
    [data-theme="dark"] .dashboard-card-heading h3,
    [data-theme="dark"] .dashboard-order-heading h3,
    [data-theme="dark"] #pageTitleText,
    [data-theme="dark"] .mp-section-header h2,
    [data-theme="dark"] .dashboard-kpi-value,
    [data-theme="dark"] .dashboard-donut-center strong,
    [data-theme="dark"] .lu-shift-center strong {
      color: #f3f7f4 !important;
    }
    [data-theme="dark"] .dashboard-card-heading p,
    [data-theme="dark"] .dashboard-order-note,
    [data-theme="dark"] #dashOrderCount,
    [data-theme="dark"] #pageDescText,
    [data-theme="dark"] .mp-section-header p,
    [data-theme="dark"] .dashboard-donut-center span,
    [data-theme="dark"] .dashboard-trend-legend {
      color: #a8b6ae !important;
    }
    /* Fix Month Slicer number & label visibility in dark mode */
    [data-theme="dark"] .dashboard-month-range,
    [data-theme="dark"] .dashboard-card-heading label.dashboard-month-range {
      background: #161d19 !important;
      border: 1px solid #2b362f !important;
      padding: 4px 10px !important;
      border-radius: 6px !important;
      color: #e2ebe5 !important;
    }
    [data-theme="dark"] .dashboard-month-range output,
    [data-theme="dark"] #dashboardTrendRangeValue {
      color: #4ade80 !important;
      font-size: 12px !important;
      font-weight: 750 !important;
    }
    /* Fix dark mode table odd/even rows & hover */
    [data-theme="dark"] #viewDashboard [aria-labelledby="dashOrdersTitle"] tbody tr:nth-child(odd),
    [data-theme="dark"] #viewDatabase table tbody tr:nth-child(odd),
    [data-theme="dark"] #viewLapisUlang table tbody tr:nth-child(odd),
    [data-theme="dark"] #viewDrive table tbody tr:nth-child(odd),
    [data-theme="dark"] #viewSummary table tbody tr:nth-child(odd),
    [data-theme="dark"] .dashboard-upcoming-table tbody tr:nth-child(odd),
    [data-theme="dark"] .wc-compact-table tbody tr.wc-compact-row:nth-child(odd) {
      background: #111613 !important;
    }
    [data-theme="dark"] #viewDashboard [aria-labelledby="dashOrdersTitle"] tbody tr:nth-child(even),
    [data-theme="dark"] #viewDatabase table tbody tr:nth-child(even),
    [data-theme="dark"] #viewLapisUlang table tbody tr:nth-child(even),
    [data-theme="dark"] #viewDrive table tbody tr:nth-child(even),
    [data-theme="dark"] #viewSummary table tbody tr:nth-child(even),
    [data-theme="dark"] .dashboard-upcoming-table tbody tr:nth-child(even),
    [data-theme="dark"] .wc-compact-table tbody tr.wc-compact-row:nth-child(even) {
      background: #161d19 !important;
    }
    [data-theme="dark"] #viewDashboard [aria-labelledby="dashOrdersTitle"] tbody tr:hover,
    [data-theme="dark"] #viewDatabase table tbody tr:hover,
    [data-theme="dark"] #viewLapisUlang table tbody tr:hover,
    [data-theme="dark"] #viewDrive table tbody tr:hover,
    [data-theme="dark"] #viewSummary table tbody tr:hover,
    [data-theme="dark"] .dashboard-upcoming-table tbody tr:hover,
    [data-theme="dark"] .wc-compact-table tbody tr.wc-compact-row:hover {
      background: #1e2822 !important;
    }
    [data-theme="dark"] #viewDashboard [aria-labelledby="dashOrdersTitle"] th,
    [data-theme="dark"] #viewDatabase table th,
    [data-theme="dark"] #viewLapisUlang table th,
    [data-theme="dark"] #viewDrive table th,
    [data-theme="dark"] .dashboard-upcoming-table th,
    [data-theme="dark"] .wc-compact-table thead th {
      background: #161d19 !important;
      color: #cfd9d3 !important;
      border-color: #263029 !important;
    }
    [data-theme="dark"] .wc-compact-table-wrap {
      border-color: #263029 !important;
    }
    [data-theme="dark"] .wc-compact-table tbody tr.wc-compact-row {
      border-color: #1f2822 !important;
    }
    [data-theme="dark"] .wc-col-stage,
    [data-theme="dark"] .wc-col-qty {
      color: #eef4f0 !important;
    }
    [data-theme="dark"] .wc-col-pct {
      color: #b7c4bc !important;
    }
    [data-theme="dark"] .wc-rem-done {
      color: #6ee7b7 !important;
    }
    [data-theme="dark"] .wc-rem-short {
      color: #fca5a5 !important;
    }
    [data-theme="dark"] .wc-rem-wait {
      color: #fcd34d !important;
    }
    [data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),
    [data-theme="dark"] select,
    [data-theme="dark"] textarea {
      background: #0d120f !important;
      border-color: #2a352e !important;
      color: #f1f5f2 !important;
    }
    [data-theme="dark"] .summary-family-code {
      background: #142e20 !important;
      border-color: #28593e !important;
      color: #86efac !important;
    }
    [data-theme="dark"] .summary-family-code.is-lu {
      background: #17263c !important;
      border-color: #2e4d7a !important;
      color: #93c5fd !important;
    }
    [data-theme="dark"] .summary-family-code-line small {
      color: #d5e0d9 !important;
    }
    [data-theme="dark"] .summary-family-item.is-lu {
      border-top-color: #26312a !important;
    }
    [data-theme="dark"] .summary-total-balance {
      background: rgba(14, 19, 16, 0.7) !important;
      color: #eef4f0 !important;
    }
    [data-theme="dark"] .sidebar-profile {
      background: #141a16 !important;
      border-color: #253029 !important;
    }
    [data-theme="dark"] .sidebar-profile-flyout {
      background: #141a16 !important;
      border-color: #2b372f !important;
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65) !important;
    }
    [data-theme="dark"] .sidebar-flyout-header {
      border-bottom-color: #232d27 !important;
    }
    [data-theme="dark"] .sidebar-flyout-header strong {
      color: #f1f5f2 !important;
    }
    [data-theme="dark"] .sidebar-flyout-header small {
      color: #95a69b !important;
    }
    [data-theme="dark"] .sidebar-flyout-item {
      color: #e2ebe5 !important;
    }
    [data-theme="dark"] .sidebar-flyout-item:hover {
      background: #1e2822 !important;
    }
    [data-theme="dark"] .sidebar-flyout-item.is-danger {
      color: #f87171 !important;
    }
    [data-theme="dark"] .sidebar-flyout-item.is-danger:hover {
      background: #2c1919 !important;
    }
    [data-theme="dark"] .sidebar-flyout-divider {
      background: #232d27 !important;
    }
    [data-theme="dark"] .profile-access-forward {
      background: #15241b !important;
      border-color: #284735 !important;
      color: #d5e2da !important;
    }
    [data-theme="dark"] .profile-access-forward strong {
      color: #6ee7b7 !important;
    }
    [data-theme="dark"] .master-plan-period-card.grand-total {
      background: linear-gradient(145deg, #13241a 0%, #0f1e15 100%) !important;
      border-color: #266844 !important;
    }
    [data-theme="dark"] .mp-card-kicker {
      color: #b7c4bc !important;
    }
    [data-theme="dark"] .mp-card-tag {
      background: #1b241e !important;
      color: #c7d3cb !important;
    }
    [data-theme="dark"] .mp-card-tag.is-primary {
      background: #168149 !important;
      color: #ffffff !important;
    }
    [data-theme="dark"] .mp-card-main b {
      color: #6ee7b7 !important;
    }
    [data-theme="dark"] .master-plan-period-card.is-carryover .mp-card-main b {
      color: #fbbf24 !important;
    }
    [data-theme="dark"] .master-plan-period-card.is-current-plan .mp-card-main b {
      color: #60a5fa !important;
    }
    [data-theme="dark"] .mp-card-main strong,
    [data-theme="dark"] .mp-card-meta b {
      color: #eef4f0 !important;
    }
    [data-theme="dark"] .mp-card-meta {
      color: #a8b6ae !important;
      border-top-color: #222b25 !important;
    }
    [data-theme="dark"] .drive-latest-pill {
      background: #163323 !important;
      color: #86efac !important;
    }
    @media (max-width: 960px) {
      .master-plan-periods {
        grid-template-columns: 1fr !important;
      }
      .delivery-progress-product.compact {
        grid-template-columns: 1fr !important;
      }
      .mp-hero-banner {
        flex-direction: column;
        align-items: flex-start;
      }
    }


    /* ==========================================================================
       REVISION PASS 2 — 6 USER-REQUESTED UI/UX IMPROVEMENTS
       ========================================================================== */

    /* 1. Upcoming Stuffing (no top empty space, exact 10-row height) + Reduced Exim Status & SO Status Card Heights */
    .dashboard-upcoming-card {
      justify-content: flex-start !important;
      gap: 0 !important;
      padding: 16px 18px !important;
    }
    .dashboard-upcoming-card .dashboard-card-heading {
      flex: 0 0 auto !important;
      min-height: 0 !important;
      margin-bottom: 10px !important;
    }
    .dashboard-upcoming-wrap {
      margin-top: 0 !important;
      height: 394px !important;
      max-height: 394px !important;
      flex: 0 0 394px !important;
      overflow-y: auto !important;
      overflow-x: auto !important;
      border-top: 1px solid #e8ede9 !important;
    }
    .dashboard-upcoming-table th {
      height: 34px !important;
      max-height: 34px !important;
      padding: 6px 8px !important;
    }
    .dashboard-upcoming-table td {
      height: 36px !important;
      max-height: 36px !important;
      padding: 6px 8px !important;
    }
    @media (min-width: 960px) {
      .dashboard-chart-grid {
        grid-template-columns: minmax(330px, 0.86fr) minmax(0, 1.44fr) !important;
        grid-template-rows: auto 248px 218px !important;
        align-items: stretch !important;
        gap: 16px !important;
      }
      .dashboard-exim-card {
        grid-column: 1 !important;
        grid-row: 2 !important;
        height: 248px !important;
        max-height: 248px !important;
        min-height: 248px !important;
        padding: 14px 18px !important;
        gap: 4px 12px !important;
      }
      .dashboard-exim-card .dashboard-donut-wrap {
        min-height: 144px !important;
        max-height: 166px !important;
        height: 166px !important;
      }
      .dashboard-exim-card .dashboard-donut-wrap canvas {
        width: 152px !important;
        height: 152px !important;
        max-width: 152px !important;
        max-height: 152px !important;
      }
      .dashboard-exim-legend-row {
        padding: 4px 0 !important;
        min-height: 0 !important;
      }
      .dashboard-order-status-card {
        grid-column: 1 !important;
        grid-row: 3 !important;
        height: 218px !important;
        max-height: 218px !important;
        min-height: 218px !important;
        padding: 14px 18px !important;
        justify-content: flex-start !important;
      }
      .dashboard-order-status-card .dashboard-card-heading {
        margin-bottom: 4px !important;
      }
      .dashboard-order-status-card .dashboard-open-chart {
        flex: 1 1 auto !important;
        height: 142px !important;
        min-height: 142px !important;
        max-height: 148px !important;
        margin: 0 !important;
      }
      .dashboard-upcoming-card {
        grid-column: 2 !important;
        grid-row: 2 / span 2 !important;
        height: 482px !important;
        max-height: 482px !important;
        min-height: 482px !important;
      }
      .dashboard-upcoming-card .dashboard-upcoming-wrap {
        flex: 1 1 auto !important;
        height: 394px !important;
        max-height: 394px !important;
      }
    }

    /* 2 & 3. Unified KosmoTime-Style Order Progress Detail & Delivery Details (Equal-Height Left & Right Panels, Zero Blank Space) */
    #dashboardProgressModal .dashboard-progress-modal-box,
    #deliveryEventModal .delivery-event-modal-box {
      width: min(1060px, calc(100vw - 28px)) !important;
      max-width: 1060px !important;
    }
    .delivery-product-progress-list {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .kosmo-progress-layout {
      display: grid !important;
      grid-template-columns: minmax(265px, 0.78fr) minmax(0, 1.52fr) !important;
      gap: 16px !important;
      align-items: stretch !important;
      width: 100%;
    }
    .kosmo-left-panel,
    .kosmo-right-panel {
      display: flex !important;
      flex-direction: column !important;
      justify-content: space-between !important;
      height: 100% !important;
      min-width: 0 !important;
      padding: 16px 18px !important;
      border: 1px solid #e2e8e4 !important;
      border-radius: 10px !important;
      background: #ffffff !important;
      box-sizing: border-box !important;
    }
    .kosmo-left-head {
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding-bottom: 12px;
      border-bottom: 1px solid #e8ede9;
    }
    .kosmo-left-art-row {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .kosmo-left-art {
      width: 52px !important;
      height: 52px !important;
      margin: 0 !important;
      border-radius: 10px !important;
      flex: none !important;
      display: grid !important;
      place-items: center !important;
    }
    .kosmo-left-art svg {
      width: 32px !important;
      height: 32px !important;
    }
    .kosmo-left-kicker-wrap {
      display: flex;
      flex-direction: column;
      gap: 3px;
      min-width: 0;
    }
    .kosmo-left-code {
      display: inline-flex;
      align-items: center;
      width: fit-content;
      padding: 2px 8px;
      border-radius: 5px;
      background: #edf8f1;
      border: 1px solid #c3e4cf;
      color: #0f6e3d;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
      font-size: 11.5px;
      font-weight: 700;
      letter-spacing: 0.02em;
    }
    .kosmo-left-title {
      margin: 2px 0 0 !important;
      color: #1e2d24;
      font-size: 14px !important;
      font-weight: 700 !important;
      line-height: 1.35 !important;
      overflow-wrap: anywhere;
    }
    .kosmo-left-order {
      margin: 0 !important;
      padding: 0 !important;
      border: 0 !important;
      color: #647168;
      font-size: 11.5px;
      font-weight: 500;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px;
    }
    .kosmo-left-metrics {
      flex: 1 1 auto !important;
      display: flex !important;
      flex-direction: column !important;
      justify-content: space-between !important;
      gap: 8px !important;
      padding: 12px 0 !important;
    }
    .kosmo-metric-card {
      flex: 1 1 0% !important;
      display: flex !important;
      align-items: center !important;
      gap: 11px !important;
      padding: 9px 12px !important;
      border: 1px solid #e9eeeb !important;
      border-radius: 8px !important;
      background: #f8faf9 !important;
      min-height: 52px;
    }
    .kosmo-metric-icon {
      width: 32px;
      height: 32px;
      border-radius: 7px;
      background: #eaf4ed;
      color: #168149;
      display: grid;
      place-items: center;
      flex: none;
    }
    .kosmo-metric-icon svg {
      width: 16px;
      height: 16px;
      stroke: currentColor;
      fill: none;
    }
    .kosmo-metric-copy {
      flex: 1 1 auto;
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .kosmo-metric-copy > span {
      color: #6c7971;
      font-size: 10.5px;
      font-weight: 550;
    }
    .kosmo-metric-copy > strong {
      color: #1e2d24;
      font-size: 13px;
      font-weight: 700;
      font-variant-numeric: tabular-nums;
    }
    .kosmo-metric-row {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 8px;
    }
    .kosmo-metric-row strong {
      color: #1e2d24;
      font-size: 13px;
      font-weight: 700;
      font-variant-numeric: tabular-nums;
    }
    .kosmo-metric-row small {
      color: #168149;
      font-size: 11px;
      font-weight: 700;
      font-variant-numeric: tabular-nums;
    }
    .kosmo-metric-bar {
      height: 4px;
      border-radius: 999px;
      background: #e2ebe5;
      overflow: hidden;
      margin-top: 4px;
    }
    .kosmo-metric-bar > i {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: #168149;
    }
    .kosmo-left-ready {
      margin-top: 0 !important;
      padding: 10px 12px !important;
      border-radius: 8px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      gap: 10px !important;
    }
    .kosmo-left-ready.is-pending {
      background: #fff8eb !important;
      border: 1px solid #f3dec0 !important;
    }
    .kosmo-left-ready.is-pending span {
      color: #8a5a19 !important;
    }
    .kosmo-left-ready.is-pending strong {
      color: #9a5b13 !important;
    }
    .kosmo-right-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding-bottom: 10px;
      margin-bottom: 10px;
      border-bottom: 1px solid #e8ede9;
    }
    .kosmo-right-head h3 {
      margin: 0;
      color: #1e2d24;
      font-size: 14px;
      font-weight: 700;
    }
    .kosmo-right-head p {
      margin: 2px 0 0;
      color: #728078;
      font-size: 11px;
    }
    .kosmo-task-list {
      flex: 1 1 auto;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 7px;
    }
    .kosmo-task-row {
      display: grid;
      grid-template-columns: 148px minmax(0, 1fr);
      align-items: stretch;
      border: 1px solid #e4eae6;
      border-radius: 8px;
      background: #ffffff;
      overflow: hidden;
      transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    }
    .kosmo-task-row:hover {
      border-color: #c5d6cc;
      box-shadow: 0 2px 7px rgba(18, 38, 26, 0.05);
    }
    .kosmo-task-row.is-pass {
      border-left: 3px solid #168149;
    }
    .kosmo-task-row.is-progress {
      border-left: 3px solid #ed8525;
    }
    .kosmo-task-row.is-open {
      border-left: 3px solid #d9534f;
    }
    /* Left column of KosmoTime card ("Start" equivalent -> WC Name + vertical divider) */
    .kosmo-task-wc {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      border-right: 1px solid #e6ece8;
      background: #f8faf9;
      min-width: 0;
    }
    .kosmo-wc-dot-icon {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      display: inline-grid;
      place-items: center;
      flex: none;
    }
    .kosmo-wc-dot-icon svg {
      width: 11px;
      height: 11px;
    }
    .kosmo-wc-dot-icon.is-pass {
      background: #e3f5eb;
      color: #157a44;
    }
    .kosmo-wc-dot-icon.is-progress {
      background: #fff1df;
      color: #d97706;
    }
    .kosmo-wc-dot-icon.is-open {
      background: #feeceb;
      color: #c9403a;
    }
    .kosmo-wc-label {
      color: #25352b;
      font-size: 11.5px;
      font-weight: 650;
      line-height: 1.25;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    /* Right column of KosmoTime card (Line 1: Product Code • Product Name | Line 2: Progress + % + Status) */
    .kosmo-task-body {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 4px;
      padding: 7px 12px;
      min-width: 0;
    }
    .kosmo-task-title {
      display: flex;
      align-items: baseline;
      gap: 6px;
      min-width: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .kosmo-prod-code {
      flex: none;
      color: #0f6e3d;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
      font-size: 11px;
      font-weight: 700;
    }
    .kosmo-prod-sep {
      flex: none;
      color: #94a39b;
      font-size: 11px;
      font-weight: 700;
    }
    .kosmo-prod-name {
      color: #1f2e25;
      font-size: 11.5px;
      font-weight: 650;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .kosmo-task-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      min-width: 0;
    }
    .kosmo-meta-left {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px 14px;
      min-width: 0;
    }
    .kosmo-meta-item {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      color: #647269;
      font-size: 11px;
      font-weight: 550;
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
    }
    .kosmo-meta-item svg {
      width: 12px;
      height: 12px;
      color: #829188;
      flex: none;
    }
    .kosmo-meta-pct {
      color: #46544b;
      font-weight: 650;
    }
    .kosmo-meta-rem {
      color: #c25127;
      font-size: 10.5px;
      font-weight: 600;
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
    }
    .kosmo-meta-wait {
      color: #8a6a3c;
      font-size: 10.5px;
      font-weight: 550;
      white-space: nowrap;
    }
    .kosmo-meta-status {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      font-weight: 650;
      white-space: nowrap;
      flex: none;
      margin-left: auto;
    }
    .kosmo-meta-status.is-pass {
      color: #157a44;
    }
    .kosmo-meta-status.is-progress {
      color: #b8621b;
    }
    .kosmo-meta-status.is-open {
      color: #b93d37;
    }
    .kosmo-status-sq {
      width: 14px;
      height: 14px;
      border-radius: 4px;
      display: inline-grid;
      place-items: center;
      flex: none;
    }
    .kosmo-status-sq svg {
      width: 10px;
      height: 10px;
    }
    .kosmo-status-sq.is-pass {
      background: #168149;
      color: #ffffff;
    }
    .kosmo-status-sq.is-progress {
      background: #ed8525;
      color: #ffffff;
    }
    .kosmo-status-sq.is-open {
      background: #d9534f;
      color: #ffffff;
    }

    /* 4. Product Family: Item Code on Line 1, Item Name on Line 2 (No Dot Separator) */
    .summary-family-item {
      display: flex !important;
      flex-direction: column !important;
      align-items: flex-start !important;
      gap: 3px !important;
      min-width: 0 !important;
    }
    .summary-family-code {
      width: fit-content !important;
    }
    .summary-family-name {
      display: block !important;
      color: #37443c !important;
      font-size: 10.5px !important;
      font-weight: 500 !important;
      line-height: 1.4 !important;
      white-space: normal !important;
      overflow-wrap: anywhere !important;
    }
    .summary-family-sep {
      display: none !important;
    }

    /* 5. Master Plan: Download Active File Button for All Users (Including Viewers) */
    .mp-hero-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      flex: none;
    }
    .mp-download-active-btn {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      min-height: 34px;
      padding: 6px 13px;
      border-radius: 999px;
      background: #d6ed55;
      border: 1px solid #d6ed55;
      color: #133629;
      font-size: 11.5px;
      font-weight: 700;
      white-space: nowrap;
      cursor: pointer;
      transition: filter 0.15s ease, transform 0.12s ease;
    }
    .mp-download-active-btn:hover {
      filter: brightness(1.05);
      transform: translateY(-1px);
    }

    /* 6. Refinishing Analysis: Warm Orange & Multi-Color Dashboard Palette (Not All Blue) */
    #viewLapisUlang .border-rose-200 {
      border-color: #f5d8b8 !important;
    }
    #viewLapisUlang .bg-rose-50 {
      background-color: #fff5e9 !important;
    }
    #viewLapisUlang .text-rose-500,
    #viewLapisUlang .text-rose-600 {
      color: #d97706 !important;
    }
    #viewLapisUlang .text-rose-300 {
      color: #e6a256 !important;
    }
    #viewLapisUlang .focus\:border-rose-400:focus {
      border-color: #ed8525 !important;
    }

    /* Dark Mode Support for All New Components */
    [data-theme="dark"] .kosmo-left-panel,
    [data-theme="dark"] .kosmo-right-panel {
      background: #111613 !important;
      border-color: #222b25 !important;
    }
    [data-theme="dark"] .kosmo-left-head,
    [data-theme="dark"] .kosmo-right-head {
      border-bottom-color: #222b25 !important;
    }
    [data-theme="dark"] .kosmo-left-title,
    [data-theme="dark"] .kosmo-right-head h3,
    [data-theme="dark"] .kosmo-metric-copy > strong,
    [data-theme="dark"] .kosmo-metric-row strong {
      color: #f1f5f2 !important;
    }
    [data-theme="dark"] .kosmo-left-order,
    [data-theme="dark"] .kosmo-right-head p,
    [data-theme="dark"] .kosmo-metric-copy > span {
      color: #9fb0a6 !important;
    }
    [data-theme="dark"] .kosmo-left-code {
      background: #142e20 !important;
      border-color: #28593e !important;
      color: #86efac !important;
    }
    [data-theme="dark"] .kosmo-metric-card {
      background: #161d19 !important;
      border-color: #253029 !important;
    }
    [data-theme="dark"] .kosmo-metric-icon {
      background: #1b2e23 !important;
      color: #4ade80 !important;
    }
    [data-theme="dark"] .kosmo-metric-bar {
      background: #253029 !important;
    }
    [data-theme="dark"] .kosmo-left-ready.is-pending {
      background: #2b2216 !important;
      border-color: #544023 !important;
    }
    [data-theme="dark"] .kosmo-left-ready.is-pending span,
    [data-theme="dark"] .kosmo-left-ready.is-pending strong {
      color: #fbbf24 !important;
    }
    [data-theme="dark"] .kosmo-task-row {
      background: #141a16 !important;
      border-color: #242e28 !important;
    }
    [data-theme="dark"] .kosmo-task-row:hover {
      border-color: #36473d !important;
    }
    [data-theme="dark"] .kosmo-task-wc {
      background: #18201b !important;
      border-right-color: #242e28 !important;
    }
    [data-theme="dark"] .kosmo-wc-label,
    [data-theme="dark"] .kosmo-prod-name {
      color: #eef4f0 !important;
    }
    [data-theme="dark"] .kosmo-prod-code {
      color: #6ee7b7 !important;
    }
    [data-theme="dark"] .kosmo-meta-item {
      color: #b7c4bc !important;
    }
    [data-theme="dark"] .kosmo-meta-pct {
      color: #e2ebe5 !important;
    }
    [data-theme="dark"] .kosmo-meta-rem {
      color: #fca5a5 !important;
    }
    [data-theme="dark"] .kosmo-meta-wait {
      color: #fcd34d !important;
    }
    [data-theme="dark"] .kosmo-meta-status.is-pass {
      color: #6ee7b7 !important;
    }
    [data-theme="dark"] .kosmo-meta-status.is-progress {
      color: #fbbf24 !important;
    }
    [data-theme="dark"] .kosmo-meta-status.is-open {
      color: #fca5a5 !important;
    }
    [data-theme="dark"] .summary-family-name {
      color: #d5e0d9 !important;
    }
    [data-theme="dark"] #viewLapisUlang .text-rose-500,
    [data-theme="dark"] #viewLapisUlang .text-rose-600 {
      color: #fbbf24 !important;
    }
    [data-theme="dark"] #viewLapisUlang .text-rose-300 {
      color: #d99b4e !important;
    }
    [data-theme="dark"] #viewLapisUlang .bg-rose-50 {
      background-color: #2c2216 !important;
    }
    [data-theme="dark"] #viewLapisUlang .border-rose-200 {
      border-color: #4d3920 !important;
    }
    @media (max-width: 860px) {
      .kosmo-progress-layout {
        grid-template-columns: 1fr !important;
      }
      .kosmo-task-row {
        grid-template-columns: 124px minmax(0, 1fr);
      }
    }
    @media (max-width: 520px) {
      .kosmo-task-row {
        grid-template-columns: 1fr;
      }
      .kosmo-task-wc {
        border-right: 0;
        border-bottom: 1px solid #e6ece8;
      }
    }


    /* ==========================================================================
       DATA SYNC CENTER — DARK MODE CONTRAST & SEPARATED UI/UX SECTIONS
       ========================================================================== */
    [data-theme="dark"] [class*="bg-blue-50"] { background: #17263b !important; }
    [data-theme="dark"] [class*="bg-cyan-50"] { background: #142e35 !important; }
    [data-theme="dark"] [class*="bg-violet-50"] { background: #261f3d !important; }
    [data-theme="dark"] [class*="bg-teal-50"] { background: #142f2c !important; }
    [data-theme="dark"] [class*="bg-amber-50"] { background: #332714 !important; }
    [data-theme="dark"] [class*="bg-emerald-50"] { background: #132e21 !important; }

    .sync-section-card {
      background: #ffffff;
      border: 1px solid #e2e8e4;
      border-radius: 10px;
      padding: 20px 22px;
    }
    .sync-full-pipeline-card {
      background: linear-gradient(135deg, #f2fbf6 0%, #e6f6ed 100%);
      border: 1.5px solid #a7dfbe;
      border-radius: 10px;
      padding: 20px 22px;
      position: relative;
      overflow: hidden;
    }
    .sync-ind-card {
      background: #ffffff;
      border: 1px solid #e2e8e4;
      border-radius: 9px;
      padding: 16px 18px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 14px;
      transition: border-color 0.16s ease, transform 0.14s ease, box-shadow 0.16s ease;
    }
    .sync-ind-card:hover {
      border-color: #b7d4c2;
      box-shadow: 0 4px 14px rgba(16, 38, 26, 0.06);
    }
    .sync-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 3px 8px;
      border-radius: 5px;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      border: 1px solid transparent;
    }
    .sync-badge-emerald { background: #dcfce7; color: #065f46; border-color: #a7f3d0; }
    .sync-badge-violet  { background: #ede9fe; color: #5b21b6; border-color: #ddd6fe; }
    .sync-badge-blue    { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
    .sync-badge-teal    { background: #ccfbf1; color: #115e59; border-color: #99f6e4; }
    .sync-badge-cyan    { background: #cffafe; color: #155e75; border-color: #a5f3fc; }
    .sync-badge-amber   { background: #fef3c7; color: #92400e; border-color: #fde68a; }
    .sync-badge-sky     { background: #e0f2fe; color: #075985; border-color: #bae6fd; }

    .sync-file-pill {
      display: inline-flex;
      align-items: center;
      padding: 2px 7px;
      border-radius: 4px;
      background: #f1f5f3;
      border: 1px solid #dce5df;
      color: #4b5951;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
      font-size: 10.5px;
      font-weight: 600;
    }
    .sync-flow-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 5px 10px;
      border-radius: 6px;
      background: #ffffff;
      border: 1px solid #cce5d6;
      color: #1d3628;
      font-size: 11px;
      font-weight: 600;
    }
    .sync-flow-pill b {
      display: inline-grid;
      place-items: center;
      width: 17px;
      height: 17px;
      border-radius: 50%;
      background: #10b981;
      color: #ffffff;
      font-size: 10px;
      font-weight: 700;
    }

    .sync-action-btn {
      width: 100%;
      min-height: 36px;
      padding: 7px 14px;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 650;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      cursor: pointer;
      transition: all 0.15s ease;
    }
    .sync-btn-primary {
      background: #059669;
      border: 1px solid #047857;
      color: #ffffff !important;
    }
    .sync-btn-primary:hover {
      background: #047857;
    }
    .sync-btn-violet {
      background: #f5f3ff;
      border: 1px solid #c4b5fd;
      color: #5b21b6 !important;
    }
    .sync-btn-violet:hover { background: #ede9fe; border-color: #a78bfa; }

    .sync-btn-blue {
      background: #eff6ff;
      border: 1px solid #93c5fd;
      color: #1e40af !important;
    }
    .sync-btn-blue:hover { background: #dbeafe; border-color: #60a5fa; }

    .sync-btn-teal {
      background: #f0fdfa;
      border: 1px solid #5eead4;
      color: #115e59 !important;
    }
    .sync-btn-teal:hover { background: #ccfbf1; border-color: #2dd4bf; }

    .sync-btn-cyan {
      background: #ecfeff;
      border: 1px solid #67e8f9;
      color: #155e75 !important;
    }
    .sync-btn-cyan:hover { background: #cffafe; border-color: #22d3ee; }

    .sync-btn-amber {
      background: #fffbeb;
      border: 1px solid #fcd34d;
      color: #92400e !important;
    }
    .sync-btn-amber:hover { background: #fef3c7; border-color: #fbbf24; }

    .sync-btn-sky {
      background: #f0f9ff;
      border: 1px solid #7dd3fc;
      color: #075985 !important;
    }
    .sync-btn-sky:hover { background: #e0f2fe; border-color: #38bdf8; }

    .sync-monitor-box {
      background: #f8faf9;
      border: 1px solid #dce5df;
      border-radius: 9px;
      padding: 16px 18px;
    }
    .sync-step-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 8px 12px;
      border-radius: 7px;
      border: 1px solid #e2e8e4;
      background: #ffffff;
      font-size: 11.5px;
      color: #47554e;
    }
    .sync-step-item.is-done {
      background: #f0fdf4;
      border-color: #bbf7d0;
      color: #14532d;
    }
    .sync-step-item.is-running {
      background: #f0f9ff;
      border-color: #7dd3fc;
      color: #0c4a6e;
      font-weight: 600;
    }
    .sync-step-item.is-failed {
      background: #fef2f2;
      border-color: #fecaca;
      color: #7f1d1d;
    }

    /* Dark Mode Overrides for Sync Center */
    [data-theme="dark"] .sync-section-card {
      background: #111613 !important;
      border-color: #222b25 !important;
      color: #f1f5f2 !important;
    }
    [data-theme="dark"] .sync-full-pipeline-card {
      background: linear-gradient(135deg, #102419 0%, #0d1b13 100%) !important;
      border-color: #24583c !important;
      color: #f1f5f2 !important;
    }
    [data-theme="dark"] .sync-ind-card {
      background: #141a16 !important;
      border-color: #253029 !important;
      color: #f1f5f2 !important;
    }
    [data-theme="dark"] .sync-ind-card:hover {
      border-color: #3b5244 !important;
      background: #171f1a !important;
    }
    [data-theme="dark"] .sync-file-pill {
      background: #1c241f !important;
      border-color: #2e3b33 !important;
      color: #b8c7be !important;
    }
    [data-theme="dark"] .sync-flow-pill {
      background: #15221a !important;
      border-color: #284735 !important;
      color: #d8e6de !important;
    }
    [data-theme="dark"] .sync-badge-emerald { background: #113322 !important; color: #6ee7b7 !important; border-color: #225c3e !important; }
    [data-theme="dark"] .sync-badge-violet  { background: #271c47 !important; color: #c4b5fd !important; border-color: #48357d !important; }
    [data-theme="dark"] .sync-badge-blue    { background: #162a4a !important; color: #93c5fd !important; border-color: #2b4c80 !important; }
    [data-theme="dark"] .sync-badge-teal    { background: #113330 !important; color: #5eead4 !important; border-color: #215953 !important; }
    [data-theme="dark"] .sync-badge-cyan    { background: #12313b !important; color: #67e8f9 !important; border-color: #225566 !important; }
    [data-theme="dark"] .sync-badge-amber   { background: #36260f !important; color: #fcd34d !important; border-color: #63461c !important; }
    [data-theme="dark"] .sync-badge-sky     { background: #132d42 !important; color: #7dd3fc !important; border-color: #235175 !important; }

    [data-theme="dark"] .sync-btn-primary {
      background: #059669 !important;
      border-color: #10b981 !important;
      color: #ffffff !important;
    }
    [data-theme="dark"] .sync-btn-primary:hover {
      background: #10b981 !important;
    }
    [data-theme="dark"] .sync-btn-violet {
      background: #231a3d !important;
      border-color: #533d8c !important;
      color: #ddd6fe !important;
    }
    [data-theme="dark"] .sync-btn-violet:hover { background: #2e2252 !important; border-color: #6d52b5 !important; }

    [data-theme="dark"] .sync-btn-blue {
      background: #162642 !important;
      border-color: #2f538f !important;
      color: #bfdbfe !important;
    }
    [data-theme="dark"] .sync-btn-blue:hover { background: #1d3359 !important; border-color: #4372bd !important; }

    [data-theme="dark"] .sync-btn-teal {
      background: #122e2b !important;
      border-color: #26615a !important;
      color: #99f6e4 !important;
    }
    [data-theme="dark"] .sync-btn-teal:hover { background: #183d39 !important; border-color: #348279 !important; }

    [data-theme="dark"] .sync-btn-cyan {
      background: #132c36 !important;
      border-color: #275d70 !important;
      color: #a5f3fc !important;
    }
    [data-theme="dark"] .sync-btn-cyan:hover { background: #193b47 !important; border-color: #347b94 !important; }

    [data-theme="dark"] .sync-btn-amber {
      background: #332410 !important;
      border-color: #6e4e20 !important;
      color: #fde68a !important;
    }
    [data-theme="dark"] .sync-btn-amber:hover { background: #422f15 !important; border-color: #8f652a !important; }

    [data-theme="dark"] .sync-btn-sky {
      background: #142a3d !important;
      border-color: #29577d !important;
      color: #bae6fd !important;
    }
    [data-theme="dark"] .sync-btn-sky:hover { background: #1b3852 !important; border-color: #3875a6 !important; }

    [data-theme="dark"] .sync-monitor-box {
      background: #141a16 !important;
      border-color: #253029 !important;
      color: #e2ebe5 !important;
    }
    [data-theme="dark"] .sync-step-item {
      background: #111613 !important;
      border-color: #232d27 !important;
      color: #b7c4bc !important;
    }
    [data-theme="dark"] .sync-step-item.is-done {
      background: #11291c !important;
      border-color: #225438 !important;
      color: #86efac !important;
    }
    [data-theme="dark"] .sync-step-item.is-running {
      background: #132738 !important;
      border-color: #29577d !important;
      color: #bae6fd !important;
    }
    [data-theme="dark"] .sync-step-item.is-failed {
      background: #2e1618 !important;
      border-color: #63292d !important;
      color: #fca5a5 !important;
    }

  
    /* ==========================================================================
       DARK MODE OPTIMIZATION PASS — 5 TARGETED UI/UX FIXES
       ========================================================================== */

    /* 1. MOVING MATRIX DARK MODE: Cards, Status Pills, Pcs Counter, Controls & Headers */
    [data-theme="dark"] .gantt-card {
      color: #f1f5f2 !important;
    }
    [data-theme="dark"] .gantt-card .border-black\/10 {
      border-color: rgba(255, 255, 255, 0.14) !important;
    }
    /* Fix OPEN/CLOSED status pill inside Gantt card (was bg-white/80 overridden to dark with dark text) */
    [data-theme="dark"] .gantt-card [class*="bg-white"] {
      background: rgba(15, 22, 18, 0.78) !important;
      border-color: rgba(255, 255, 255, 0.18) !important;
    }
    [data-theme="dark"] .gantt-card .text-green-700 {
      color: #6ee7b7 !important;
    }
    [data-theme="dark"] .gantt-card .text-orange-700 {
      color: #fdba74 !important;
    }
    [data-theme="dark"] .gantt-card .text-indigo-700 {
      color: #93c5fd !important;
    }
    [data-theme="dark"] .gantt-card .text-slate-600,
    [data-theme="dark"] .gantt-card .text-slate-500 {
      color: #cbd5ce !important;
    }
    [data-theme="dark"] .gantt-card .card-detail {
      color: #e2ebe5 !important;
    }
    /* Moving Matrix top filter bar buttons & workcenter toggles */
    [data-theme="dark"] #viewMatrix #wcFilterContainer button {
      color: #eef4f0 !important;
    }
    [data-theme="dark"] #viewMatrix #wcFilterContainer button.opacity-60 {
      background: #161d19 !important;
      border-color: #2b362f !important;
      color: #7c8b82 !important;
      opacity: 0.75 !important;
    }
    [data-theme="dark"] #viewMatrix button[onclick^="shiftDateRange"],
    [data-theme="dark"] #viewMatrix button[onclick^="resetToToday"],
    [data-theme="dark"] #viewMatrix button[onclick^="refreshMatrixData"] {
      background: #161d19 !important;
      border-color: #2e3b33 !important;
      color: #e2ebe5 !important;
    }
    [data-theme="dark"] #viewMatrix button[onclick^="shiftDateRange"]:hover,
    [data-theme="dark"] #viewMatrix button[onclick^="resetToToday"]:hover,
    [data-theme="dark"] #viewMatrix button[onclick^="refreshMatrixData"]:hover {
      background: #222d26 !important;
      color: #6ee7b7 !important;
    }
    /* Expand / Collapse button in Matrix column header */
    [data-theme="dark"] #ganttScrollArea th [id^="ind-text-"] {
      background: #1b2838 !important;
      border-color: #314b6e !important;
      color: #93c5fd !important;
      opacity: 0.9 !important;
    }
    [data-theme="dark"] #ganttScrollArea th:hover {
      background: #1c241f !important;
    }
    [data-theme="dark"] .expand-indicator {
      background: #1b2620 !important;
      border: 1px solid #2e3d34 !important;
      color: #86efac !important;
    }
    [data-theme="dark"] .expand-indicator:hover {
      background: #233329 !important;
      color: #a7f3d0 !important;
    }

    /* 2. PRODUCTION SUMMARY DARK MODE: Sidebar List Cards, Open/Closed Badges, Buyer/Code Pills, Detail Tables */
    [data-theme="dark"] #summaryListContainer .summary-list-row {
      background: #141a16 !important;
      border-color: #26312a !important;
      color: #eef4f0 !important;
    }
    [data-theme="dark"] #summaryListContainer .summary-list-row:hover {
      background: #1a231e !important;
      border-color: #3b5244 !important;
    }
    [data-theme="dark"] #summaryListContainer .summary-list-row.bg-indigo-50 {
      background: #15271d !important;
      border-color: #10b981 !important;
      box-shadow: 0 0 0 1px #10b981 !important;
    }
    /* Fix Closed (emerald-100) and Open (rose-100) badges in Summary Sidebar & Detail Header */
    [data-theme="dark"] #viewSummary .bg-emerald-100,
    [data-theme="dark"] #summaryListContainer .bg-emerald-100,
    [data-theme="dark"] #summaryDetailContainer .bg-emerald-100 {
      background: #113322 !important;
      border: 1px solid #225c3e !important;
      color: #6ee7b7 !important;
    }
    [data-theme="dark"] #viewSummary .bg-rose-100,
    [data-theme="dark"] #summaryListContainer .bg-rose-100,
    [data-theme="dark"] #summaryDetailContainer .bg-rose-100 {
      background: #3b181c !important;
      border: 1px solid #6e2c33 !important;
      color: #fda4af !important;
    }
    /* Buyer & Item Code pills inside Summary Sidebar */
    [data-theme="dark"] #summaryListContainer .bg-slate-800 {
      background: #1f3328 !important;
      border: 1px solid #315441 !important;
      color: #a7f3d0 !important;
    }
    [data-theme="dark"] #summaryListContainer .bg-slate-100 {
      background: #1c241f !important;
      border-color: #2e3b33 !important;
      color: #d5e0d9 !important;
    }
    /* Summary Reset Button & Date Filter Header */
    [data-theme="dark"] #summaryDateFilterContainer {
      background: #111613 !important;
      border-color: #222b25 !important;
    }
    [data-theme="dark"] #summaryDateFilterContainer button[onclick^="resetSummaryFilters"] {
      background: #36191d !important;
      border-color: #632c33 !important;
      color: #fda4af !important;
    }
    [data-theme="dark"] #summaryDateFilterContainer button[onclick^="resetSummaryFilters"]:hover {
      background: #472025 !important;
      color: #ffe4e6 !important;
    }
    /* Summary Dropdown Menus (Status & Buyer) */
    [data-theme="dark"] #summaryStatusDD,
    [data-theme="dark"] #summaryBuyerDD {
      background: #161d19 !important;
      border-color: #2c3830 !important;
      box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65) !important;
    }
    [data-theme="dark"] #summaryStatusDD > div > div:hover,
    [data-theme="dark"] #summaryBuyerList label:hover {
      background: #212c25 !important;
      color: #86efac !important;
    }
    /* Summary Detail Container: Totals & Balances cards + WC History table rows */
    [data-theme="dark"] #summaryDetailContainer .summary-total-card {
      background: #151c18 !important;
      border-color: #28352d !important;
    }
    [data-theme="dark"] #summaryDetailContainer .summary-wc-panel {
      background: #111613 !important;
      border-color: #26312a !important;
    }
    [data-theme="dark"] #summaryDetailContainer .summary-wc-panel tbody tr:hover {
      background: #1c2620 !important;
    }
    [data-theme="dark"] #summaryDetailContainer .summary-wc-panel tfoot tr {
      background: #18211c !important;
      border-top-color: #2c3830 !important;
      color: #f1f5f2 !important;
    }
    [data-theme="dark"] #summaryDetailContainer .bg-indigo-100 {
      background: #1b2838 !important;
      border-color: #314b6e !important;
      color: #93c5fd !important;
    }

    /* 3. MASTER PLAN — MONTH PLAN FILES: Clean Text Only (No Box/Shadow Around File Name Links) */
    #driveManagementGrid a.drive-file-link,
    [data-theme="dark"] #driveManagementGrid a.drive-file-link {
      background: transparent !important;
      background-color: transparent !important;
      border: 0 !important;
      border-color: transparent !important;
      box-shadow: none !important;
      padding: 0 !important;
      min-height: 0 !important;
      height: auto !important;
      border-radius: 0 !important;
      display: inline !important;
      color: #1e293b !important;
      font-weight: 600 !important;
    }
    #driveManagementGrid a.drive-file-link:hover {
      color: #059669 !important;
      text-decoration: underline !important;
    }
    [data-theme="dark"] #driveManagementGrid a.drive-file-link {
      color: #e6efe9 !important;
    }
    [data-theme="dark"] #driveManagementGrid a.drive-file-link:hover {
      color: #6ee7b7 !important;
    }
    /* Also keep the file icon & action buttons clean in dark mode */
    [data-theme="dark"] #driveFileList .drive-file-cell > div:first-child {
      background: rgba(16, 185, 129, 0.12) !important;
      color: #6ee7b7 !important;
    }
    [data-theme="dark"] #driveFileList button {
      background: transparent !important;
      border: 1px solid transparent !important;
      color: #9fb0a6 !important;
    }
    [data-theme="dark"] #driveFileList button:hover {
      background: #1c2620 !important;
      border-color: #2e3d34 !important;
      color: #f1f5f2 !important;
    }

    /* 4. USER ACCESS DARK MODE: Role Cards, Role Pills, Active Status, Avatars & Manage Panel */
    [data-theme="dark"] .access-role-card {
      background: #151c18 !important;
      border-color: #26312a !important;
    }
    [data-theme="dark"] .access-role-icon {
      background: #172a45 !important;
      border: 1px solid #2b4c7e !important;
      color: #93c5fd !important;
    }
    [data-theme="dark"] .access-role-planner .access-role-icon {
      background: #362612 !important;
      border: 1px solid #634723 !important;
      color: #fcd34d !important;
    }
    [data-theme="dark"] .access-role-management .access-role-icon {
      background: #2a153d !important;
      border: 1px solid #582b82 !important;
      color: #d8b4fe !important;
    }
    [data-theme="dark"] .access-role-viewer .access-role-icon {
      background: #123020 !important;
      border: 1px solid #245c3d !important;
      color: #6ee7b7 !important;
    }
    [data-theme="dark"] .access-role-pill {
      background: #172a45 !important;
      border: 1px solid #2b4c7e !important;
      color: #93c5fd !important;
    }
    [data-theme="dark"] .access-role-pill.planner {
      background: #362612 !important;
      border: 1px solid #634723 !important;
      color: #fcd34d !important;
    }
    [data-theme="dark"] .access-role-pill.management {
      background: #2a153d !important;
      border: 1px solid #582b82 !important;
      color: #d8b4fe !important;
    }
    [data-theme="dark"] .access-role-pill.viewer {
      background: #123020 !important;
      border: 1px solid #245c3d !important;
      color: #6ee7b7 !important;
    }
    [data-theme="dark"] .access-state {
      background: #123020 !important;
      border: 1px solid #245c3d !important;
      color: #6ee7b7 !important;
      font-weight: 600 !important;
    }
    [data-theme="dark"] .access-state.is-inactive {
      background: #3b181c !important;
      border: 1px solid #6e2c33 !important;
      color: #fda4af !important;
    }
    [data-theme="dark"] .access-table .access-avatar,
    [data-theme="dark"] .sidebar-profile-avatar {
      background: #193827 !important;
      border: 1px solid #2b5c40 !important;
      color: #86efac !important;
    }
    [data-theme="dark"] .access-table td strong {
      color: #f3f7f4 !important;
    }
    [data-theme="dark"] .access-table td {
      color: #dce5df !important;
    }
    [data-theme="dark"] .access-last-seen {
      color: #9fb0a6 !important;
    }

    /* 5. SIDEBAR NAVIGATION & DROPDOWN HOVER VISIBILITY IN DARK MODE */
    [data-theme="dark"] #workcenterSubnav {
      border-left-color: #26312a !important;
    }
    [data-theme="dark"] #workcenterSubnav .nav-sub-link {
      color: #b7c4bc !important;
      background: transparent !important;
    }
    [data-theme="dark"] #workcenterSubnav .nav-sub-link:hover,
    [data-theme="dark"] #workcenterSubnav .nav-sub-link:focus-visible {
      background: #1c2821 !important;
      color: #ffffff !important;
    }
    [data-theme="dark"] #workcenterSubnav .nav-sub-link[aria-current="page"] {
      background: #153826 !important;
      color: #6ee7b7 !important;
      font-weight: 650 !important;
    }
    [data-theme="dark"] #appSidebar .nav-link:hover,
    [data-theme="dark"] #appSidebar .nav-link:focus-visible {
      background: #1c2821 !important;
      color: #ffffff !important;
    }
    [data-theme="dark"] #appSidebar .nav-link[aria-current="page"] {
      background: #153826 !important;
      color: #6ee7b7 !important;
    }
    /* Dashboard & Global Dropdown Hover Visibility in Dark Mode */
    [data-theme="dark"] #dashYearDD button:hover,
    [data-theme="dark"] #dashMonthDD button:hover,
    [data-theme="dark"] #dashStatusDD button:hover,
    [data-theme="dark"] #dashBuyerList label:hover {
      background: #1f2b24 !important;
      color: #6ee7b7 !important;
    }
    [data-theme="dark"] #dashYearDD button[aria-selected="true"],
    [data-theme="dark"] #dashMonthDD button[aria-selected="true"] {
      background: #153826 !important;
      color: #6ee7b7 !important;
      font-weight: 650 !important;
    }


    /* ==========================================================================
       REVISION PASS 3 — DB HOME CLEAN LAYOUT, DARK MODE CALENDAR ICON,
       REFINISHING MULTI-COLOR ACCENTS & PRECISION NOTIFICATION CENTER UI/UX
       ========================================================================== */

    /* 1. Clean Workcenter Database "Choose a workcenter" without full-width outer box in Light & Dark Mode */
    #viewDatabase #dbHome,
    [data-theme="dark"] #viewDatabase #dbHome {
      background: transparent !important;
      border: 0 !important;
      box-shadow: none !important;
      padding: 0 !important;
    }
    #viewDatabase .db-home-shell,
    [data-theme="dark"] #viewDatabase .db-home-shell {
      max-width: 960px !important;
      width: 100% !important;
      margin: 4px auto 0 !important;
      padding: 4px 0 !important;
      background: transparent !important;
      border: 0 !important;
      box-shadow: none !important;
    }

    /* 2. Dark Mode Date Picker Calendar Icon Visibility across ALL pages */
    input[type="date"] {
      position: relative;
    }
    input[type="date"]::-webkit-calendar-picker-indicator {
      cursor: pointer;
      opacity: 0.75;
      transition: opacity 0.15s ease, transform 0.15s ease;
    }
    input[type="date"]::-webkit-calendar-picker-indicator:hover {
      opacity: 1;
      transform: scale(1.08);
    }
    [data-theme="dark"] input[type="date"] {
      color-scheme: dark !important;
      color: #f1f5f2 !important;
    }
    [data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator {
      filter: invert(0.92) brightness(1.35) contrast(1.15) !important;
      opacity: 0.95 !important;
      cursor: pointer;
    }
    [data-theme="dark"] #summaryDateFilterContainer .bg-white {
      background: #0d120f !important;
      border-color: #2a352e !important;
    }

    /* 3. Refinishing Analysis Multi-Color Card Accents (Matching Dashboard Palette) */
    #viewLapisUlang #luContentState > div:first-child > div:nth-child(1) {
      border-top: 3px solid #ed8525 !important;
    }
    #viewLapisUlang #luContentState > div:first-child > div:nth-child(2) {
      border-top: 3px solid #39769b !important;
    }
    #viewLapisUlang #luContentState > div:first-child > div:nth-child(2) #luScoreBase {
      color: #286bd6 !important;
    }
    [data-theme="dark"] #viewLapisUlang #luContentState > div:first-child > div:nth-child(2) #luScoreBase {
      color: #60a5fa !important;
    }
    #viewLapisUlang #luContentState > div:first-child > div:nth-child(2) > div:last-child {
      background: #edf4ff !important;
      color: #286bd6 !important;
    }
    [data-theme="dark"] #viewLapisUlang #luContentState > div:first-child > div:nth-child(2) > div:last-child {
      background: #17263c !important;
      color: #60a5fa !important;
    }
    #viewLapisUlang #luContentState > div:first-child > div:nth-child(3) {
      border-top: 3px solid #00A651 !important;
    }

    /* 4. Precision Notification Center UI/UX (Clean Layout, Exact Proportions & Full Dark Mode) */
    .notification-panel {
      position: fixed !important;
      top: 12px !important;
      right: 12px !important;
      bottom: 12px !important;
      width: min(408px, calc(100vw - 24px)) !important;
      display: flex !important;
      flex-direction: column !important;
      overflow: hidden !important;
      border: 1px solid #dfe6e1 !important;
      border-radius: 12px !important;
      background: #ffffff !important;
      box-shadow: 0 20px 50px rgba(15, 28, 20, 0.18), 0 4px 12px rgba(15, 28, 20, 0.08) !important;
      z-index: 1002 !important;
    }
    .notification-header {
      display: flex !important;
      flex-direction: column !important;
      gap: 11px !important;
      padding: 15px 16px 12px !important;
      border-bottom: 1px solid #e6ece8 !important;
      background: #fafcfb !important;
      flex-shrink: 0 !important;
    }
    .notif-header-top {
      display: flex !important;
      align-items: flex-start !important;
      justify-content: space-between !important;
      gap: 10px !important;
      width: 100% !important;
    }
    .notif-header-title-wrap {
      display: flex !important;
      align-items: flex-start !important;
      gap: 10px !important;
      min-width: 0 !important;
      flex: 1 !important;
    }
    .notif-header-icon {
      width: 32px !important;
      height: 32px !important;
      border-radius: 8px !important;
      background: #e8f6ee !important;
      border: 1px solid #c5e6d2 !important;
      color: #0f7642 !important;
      display: inline-grid !important;
      place-items: center !important;
      flex-shrink: 0 !important;
      margin-top: 1px !important;
    }
    .notification-header h2 {
      margin: 0 !important;
      color: #16241c !important;
      font-size: 14.5px !important;
      font-weight: 700 !important;
      line-height: 1.25 !important;
      letter-spacing: -0.015em !important;
    }
    .notification-header p#notificationCount {
      margin: 2px 0 0 !important;
      color: #647269 !important;
      font-size: 11px !important;
      font-weight: 500 !important;
      line-height: 1.35 !important;
    }
    .notif-close-btn {
      width: 28px !important;
      height: 28px !important;
      min-width: 28px !important;
      min-height: 28px !important;
      padding: 0 !important;
      border: 1px solid transparent !important;
      border-radius: 7px !important;
      background: transparent !important;
      color: #647269 !important;
      display: inline-grid !important;
      place-items: center !important;
      cursor: pointer !important;
      flex-shrink: 0 !important;
      transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
    }
    .notif-close-btn:hover {
      background: #eef3f0 !important;
      border-color: #d8e2dc !important;
      color: #16241c !important;
    }
    .notif-push-card {
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      gap: 10px !important;
      padding: 8px 10px !important;
      border-radius: 8px !important;
      border: 1px solid #e1eae4 !important;
      background: #ffffff !important;
    }
    .notif-push-info {
      display: flex !important;
      align-items: center !important;
      gap: 7px !important;
      min-width: 0 !important;
      flex: 1 !important;
    }
    .notif-push-dot {
      width: 7px !important;
      height: 7px !important;
      border-radius: 50% !important;
      background: #94a39b !important;
      flex-shrink: 0 !important;
    }
    .notif-push-dot.is-active {
      background: #10b981 !important;
      box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18) !important;
    }
    .notif-push-dot.is-denied {
      background: #ef4444 !important;
    }
    .notif-push-status {
      display: block !important;
      margin: 0 !important;
      color: #55645b !important;
      font-size: 10.5px !important;
      font-weight: 500 !important;
      line-height: 1.3 !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      display: -webkit-box !important;
      -webkit-line-clamp: 2 !important;
      -webkit-box-orient: vertical !important;
    }
    .notif-push-bar {
      display: flex !important;
      align-items: center !important;
      gap: 5px !important;
      margin: 0 !important;
      flex-shrink: 0 !important;
    }
    .notif-push-btn {
      min-height: 26px !important;
      height: 26px !important;
      padding: 0 9px !important;
      border-radius: 6px !important;
      border: 1px solid #168149 !important;
      background: #edf8f1 !important;
      color: #0f6e3d !important;
      font-size: 10.5px !important;
      font-weight: 650 !important;
      white-space: nowrap !important;
      cursor: pointer !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      transition: all 0.14s ease !important;
    }
    .notif-push-btn:hover {
      background: #dcfce7 !important;
    }
    .notif-push-btn.is-active {
      background: #168149 !important;
      border-color: #168149 !important;
      color: #ffffff !important;
    }
    .notif-push-btn.is-denied,
    .notif-push-btn.is-disabled {
      background: #fef2f2 !important;
      border-color: #fecaca !important;
      color: #b91c1c !important;
    }
    .notif-push-test-btn {
      min-height: 26px !important;
      height: 26px !important;
      padding: 0 8px !important;
      border-radius: 6px !important;
      border: 1px solid #d5e0d9 !important;
      background: #f8faf9 !important;
      color: #37443c !important;
      font-size: 10.5px !important;
      font-weight: 600 !important;
      white-space: nowrap !important;
      cursor: pointer !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      transition: background-color 0.14s ease, border-color 0.14s ease !important;
    }
    .notif-push-test-btn:hover {
      background: #eef3f0 !important;
      border-color: #c2d1c8 !important;
    }
    .notif-category-tabs {
      display: grid !important;
      grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
      gap: 4px !important;
      margin: 0 !important;
      padding: 3px !important;
      border-radius: 8px !important;
      background: #eef3f0 !important;
      border: 1px solid #e2eae5 !important;
    }
    .notif-category-tabs button {
      min-height: 26px !important;
      height: 26px !important;
      width: 100% !important;
      padding: 0 4px !important;
      border-radius: 6px !important;
      border: 0 !important;
      background: transparent !important;
      color: #526057 !important;
      font-size: 10px !important;
      font-weight: 600 !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 3px !important;
      white-space: nowrap !important;
      cursor: pointer !important;
      transition: all 0.14s ease !important;
    }
    .notif-category-tabs button:hover {
      color: #16241c !important;
      background: rgba(255, 255, 255, 0.55) !important;
    }
    .notif-category-tabs button b {
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      min-width: 15px !important;
      height: 15px !important;
      padding: 0 4px !important;
      border-radius: 999px !important;
      background: rgba(22, 36, 28, 0.08) !important;
      color: inherit !important;
      font-size: 9px !important;
      font-weight: 700 !important;
      font-variant-numeric: tabular-nums !important;
    }
    .notif-category-tabs button.active {
      background: #ffffff !important;
      color: #0f6e3d !important;
      box-shadow: 0 1px 3px rgba(15, 28, 20, 0.1) !important;
    }
    .notif-category-tabs button.active b {
      background: #e6f6ec !important;
      color: #0f6e3d !important;
    }
    .notification-list {
      flex: 1 1 auto !important;
      overflow-y: auto !important;
      padding: 12px 14px 16px !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 12px !important;
    }
    .notification-group {
      margin: 0 !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 6px !important;
    }
    .notification-group h3 {
      margin: 0 !important;
      padding: 0 2px 2px !important;
      color: #6b7870 !important;
      font-size: 10px !important;
      font-weight: 700 !important;
      letter-spacing: 0.05em !important;
      text-transform: uppercase !important;
    }
    .notification-item {
      display: grid !important;
      width: 100% !important;
      grid-template-columns: 32px minmax(0, 1fr) !important;
      align-items: flex-start !important;
      gap: 10px !important;
      padding: 10px 11px !important;
      border: 1px solid #e6ece8 !important;
      border-radius: 9px !important;
      background: #ffffff !important;
      text-align: left !important;
      cursor: pointer !important;
      transition: border-color 0.14s ease, background-color 0.14s ease, transform 0.12s ease, box-shadow 0.14s ease !important;
    }
    .notification-item:hover {
      background: #f6faf7 !important;
      border-color: #c2d9cb !important;
      box-shadow: 0 2px 8px rgba(15, 28, 20, 0.05) !important;
    }
    .notification-icon {
      width: 32px !important;
      height: 32px !important;
      border-radius: 8px !important;
      background: #eaf5ee !important;
      border: 1px solid #cde6d6 !important;
      color: #158047 !important;
      font-size: 13px !important;
      font-weight: 700 !important;
      display: grid !important;
      place-items: center !important;
      flex-shrink: 0 !important;
      margin-top: 1px !important;
    }
    .notification-icon.alert {
      background: #fef2f2 !important;
      border-color: #fecaca !important;
      color: #dc2626 !important;
    }
    .notification-icon.warning {
      background: #fffbeb !important;
      border-color: #fde68a !important;
      color: #d97706 !important;
    }
    .notification-icon.success {
      background: #ecfdf5 !important;
      border-color: #a7f3d0 !important;
      color: #059669 !important;
    }
    .notification-copy {
      min-width: 0 !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 3px !important;
    }
    .notif-item-top {
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      gap: 6px !important;
    }
    .notif-cat-tag {
      display: inline-flex !important;
      align-items: center !important;
      width: fit-content !important;
      padding: 1.5px 6px !important;
      border-radius: 4px !important;
      background: #edf6f0 !important;
      border: 1px solid #d2e7da !important;
      color: #136c3e !important;
      font-size: 9px !important;
      font-weight: 700 !important;
      letter-spacing: 0.03em !important;
      text-transform: uppercase !important;
      line-height: 1.2 !important;
    }
    .notif-cat-tag.tone-alert {
      background: #fef2f2 !important;
      border-color: #fecaca !important;
      color: #b91c1c !important;
    }
    .notif-cat-tag.tone-warning {
      background: #fffbeb !important;
      border-color: #fde68a !important;
      color: #b45309 !important;
    }
    .notification-copy strong {
      color: #18261e !important;
      font-size: 12px !important;
      font-weight: 650 !important;
      line-height: 1.3 !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      white-space: nowrap !important;
    }
    .notification-copy span {
      color: #4b5951 !important;
      font-size: 11px !important;
      font-weight: 500 !important;
      line-height: 1.35 !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      white-space: nowrap !important;
      display: block !important;
    }
    .notification-copy small.notif-detail-line {
      color: #748279 !important;
      font-size: 10px !important;
      font-weight: 450 !important;
      line-height: 1.35 !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      white-space: nowrap !important;
      display: block !important;
    }
    .notification-empty {
      padding: 32px 16px !important;
      text-align: center !important;
      color: #6c7971 !important;
      font-size: 12px !important;
      border: 1px dashed #d8e2dc !important;
      border-radius: 9px !important;
      background: #fafcfb !important;
    }

    /* Dark Mode for Precision Notification Center */
    [data-theme="dark"] .notification-panel {
      background: #111613 !important;
      border-color: #242f28 !important;
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.72) !important;
    }
    [data-theme="dark"] .notification-header {
      background: #141a16 !important;
      border-bottom-color: #222c26 !important;
    }
    [data-theme="dark"] .notif-header-icon {
      background: #152e21 !important;
      border-color: #26543c !important;
      color: #6ee7b7 !important;
    }
    [data-theme="dark"] .notification-header h2 {
      color: #f1f5f2 !important;
    }
    [data-theme="dark"] .notification-header p#notificationCount {
      color: #9fb0a6 !important;
    }
    [data-theme="dark"] .notif-close-btn {
      color: #9fb0a6 !important;
    }
    [data-theme="dark"] .notif-close-btn:hover {
      background: #1d2620 !important;
      border-color: #2d3a32 !important;
      color: #f1f5f2 !important;
    }
    [data-theme="dark"] .notif-push-card {
      background: #0e1310 !important;
      border-color: #232e27 !important;
    }
    [data-theme="dark"] .notif-push-status {
      color: #a8b6ae !important;
    }
    [data-theme="dark"] .notif-push-btn {
      background: #142e20 !important;
      border-color: #28593e !important;
      color: #86efac !important;
    }
    [data-theme="dark"] .notif-push-btn:hover {
      background: #193b29 !important;
    }
    [data-theme="dark"] .notif-push-btn.is-active {
      background: #059669 !important;
      border-color: #10b981 !important;
      color: #ffffff !important;
    }
    [data-theme="dark"] .notif-push-btn.is-denied,
    [data-theme="dark"] .notif-push-btn.is-disabled {
      background: #331719 !important;
      border-color: #63282d !important;
      color: #fca5a5 !important;
    }
    [data-theme="dark"] .notif-push-test-btn {
      background: #171f1a !important;
      border-color: #2a362e !important;
      color: #d5e0d9 !important;
    }
    [data-theme="dark"] .notif-push-test-btn:hover {
      background: #202b24 !important;
      border-color: #39483e !important;
    }
    [data-theme="dark"] .notif-category-tabs {
      background: #0d120f !important;
      border-color: #222c26 !important;
    }
    [data-theme="dark"] .notif-category-tabs button {
      color: #9fb0a6 !important;
    }
    [data-theme="dark"] .notif-category-tabs button:hover {
      color: #eef4f0 !important;
      background: rgba(255, 255, 255, 0.04) !important;
    }
    [data-theme="dark"] .notif-category-tabs button b {
      background: rgba(255, 255, 255, 0.08) !important;
    }
    [data-theme="dark"] .notif-category-tabs button.active {
      background: #18261e !important;
      color: #6ee7b7 !important;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45) !important;
    }
    [data-theme="dark"] .notif-category-tabs button.active b {
      background: #113623 !important;
      color: #86efac !important;
    }
    [data-theme="dark"] .notification-group h3 {
      color: #8b9c92 !important;
    }
    [data-theme="dark"] .notification-item {
      background: #151c18 !important;
      border-color: #242f28 !important;
    }
    [data-theme="dark"] .notification-item:hover {
      background: #1b251f !important;
      border-color: #35473c !important;
    }
    [data-theme="dark"] .notification-icon {
      background: #152e21 !important;
      border-color: #26543c !important;
      color: #6ee7b7 !important;
    }
    [data-theme="dark"] .notification-icon.alert {
      background: #36181b !important;
      border-color: #692930 !important;
      color: #fca5a5 !important;
    }
    [data-theme="dark"] .notification-icon.warning {
      background: #362611 !important;
      border-color: #66481f !important;
      color: #fcd34d !important;
    }
    [data-theme="dark"] .notification-icon.success {
      background: #123322 !important;
      border-color: #235c3e !important;
      color: #6ee7b7 !important;
    }
    [data-theme="dark"] .notif-cat-tag {
      background: #152b20 !important;
      border-color: #264d38 !important;
      color: #86efac !important;
    }
    [data-theme="dark"] .notif-cat-tag.tone-alert {
      background: #36181b !important;
      border-color: #692930 !important;
      color: #fda4af !important;
    }
    [data-theme="dark"] .notif-cat-tag.tone-warning {
      background: #362611 !important;
      border-color: #66481f !important;
      color: #fcd34d !important;
    }
    [data-theme="dark"] .notification-copy strong {
      color: #f1f5f2 !important;
    }
    [data-theme="dark"] .notification-copy span {
      color: #c2cfc7 !important;
    }
    [data-theme="dark"] .notification-copy small.notif-detail-line {
      color: #8fa196 !important;
    }
    [data-theme="dark"] .notification-empty {
      background: #141a16 !important;
      border-color: #26312a !important;
      color: #95a69b !important;
    }
  
    /* ==========================================================================
       REVISION PASS 4 — 6 TARGETED FIXES:
       1. Notification Panel Button Layout + Read/Clear Controls & Unread Badge
       2. Date Input Calendar Icon 100% Visible in Dark Mode (Custom Bright SVG)
       3. Clean Subtle Dividers for Month Plan Files Table in Dark Mode
       4. Clean Sidebar Logo Header (No Awkward Bottom Border Line)
       5. Clean Hide-Sidebar Icon in Dark Mode (No Box/Border)
       ========================================================================== */

    /* 1. Notification Center Button Sizing & Read/Clear UI */
    .notification-header button:not(.notif-close-btn) {
      width: auto !important;
      height: auto !important;
    }
    .notif-push-card {
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      gap: 10px !important;
      padding: 9px 11px !important;
      border-radius: 8px !important;
      flex-wrap: nowrap !important;
    }
    .notif-push-info {
      flex: 1 1 auto !important;
      min-width: 0 !important;
    }
    .notif-push-bar {
      display: inline-flex !important;
      align-items: center !important;
      gap: 6px !important;
      flex: 0 0 auto !important;
    }
    .notif-push-btn,
    .notif-push-test-btn {
      width: auto !important;
      min-width: max-content !important;
      height: 28px !important;
      min-height: 28px !important;
      padding: 0 11px !important;
      font-size: 11px !important;
      line-height: 1 !important;
      border-radius: 6px !important;
      white-space: nowrap !important;
      overflow: visible !important;
      flex: 0 0 auto !important;
    }
    .notif-category-tabs button {
      width: 100% !important;
      height: 27px !important;
      min-height: 27px !important;
      padding: 0 5px !important;
    }
    .notif-category-tabs button b.is-zero {
      opacity: 0.48;
    }
    .notif-Utility-bar {
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      gap: 8px !important;
      padding-top: 2px !important;
    }
    .notif-utility-hint {
      font-size: 10px !important;
      color: #6c7971 !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }
    .notif-utility-actions {
      display: inline-flex !important;
      align-items: center !important;
      gap: 6px !important;
      flex-shrink: 0 !important;
    }
    .notif-action-btn {
      width: auto !important;
      min-width: max-content !important;
      height: 24px !important;
      min-height: 24px !important;
      padding: 0 8px !important;
      border-radius: 5px !important;
      border: 1px solid #d5e0d9 !important;
      background: #ffffff !important;
      color: #37443c !important;
      font-size: 10px !important;
      font-weight: 600 !important;
      cursor: pointer !important;
      transition: all 0.14s ease !important;
    }
    .notif-action-btn:hover:not(:disabled) {
      background: #edf7f0 !important;
      border-color: #a7d7b8 !important;
      color: #0f6e3d !important;
    }
    .notif-action-btn.is-clear:hover:not(:disabled) {
      background: #fef2f2 !important;
      border-color: #fecaca !important;
      color: #dc2626 !important;
    }
    .notif-action-btn:disabled {
      opacity: 0.42 !important;
      cursor: default !important;
    }
    .notif-item-badges {
      display: inline-flex !important;
      align-items: center !important;
      gap: 6px !important;
      min-width: 0 !important;
    }
    .notif-unread-dot {
      width: 6px !important;
      height: 6px !important;
      border-radius: 50% !important;
      background: #10b981 !important;
      box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
      flex-shrink: 0 !important;
    }
    .notif-read-label {
      font-size: 9px !important;
      font-weight: 600 !important;
      color: #8a9990 !important;
      text-transform: uppercase !important;
      letter-spacing: 0.03em !important;
    }
    .notif-item-dismiss {
      width: 20px !important;
      height: 20px !important;
      min-width: 20px !important;
      min-height: 20px !important;
      padding: 0 !important;
      border-radius: 5px !important;
      border: 0 !important;
      background: transparent !important;
      color: #8a9990 !important;
      font-size: 14px !important;
      font-weight: 600 !important;
      line-height: 1 !important;
      display: inline-grid !important;
      place-items: center !important;
      cursor: pointer !important;
      transition: background-color 0.14s ease, color 0.14s ease !important;
    }
    .notif-item-dismiss:hover {
      background: rgba(220, 38, 38, 0.12) !important;
      color: #ef4444 !important;
    }
    .notification-item.is-read {
      opacity: 0.68 !important;
      background: #f8faf9 !important;
    }
    .notification-item.is-read strong {
      font-weight: 550 !important;
    }
    .topbar-icon-button i {
      min-width: 15px !important;
      height: 15px !important;
      width: auto !important;
      padding: 0 3.5px !important;
      border-radius: 999px !important;
      right: -3px !important;
      top: -3px !important;
      background: #e11d48 !important;
      color: #ffffff !important;
      font-size: 9px !important;
      font-weight: 700 !important;
      font-style: normal !important;
      line-height: 15px !important;
      text-align: center !important;
      font-variant-numeric: tabular-nums !important;
      box-shadow: 0 0 0 2px #ffffff !important;
    }
    [data-theme="dark"] .topbar-icon-button i {
      box-shadow: 0 0 0 2px #0e1310 !important;
    }
    [data-theme="dark"] .notif-utility-hint {
      color: #8fa196 !important;
    }
    [data-theme="dark"] .notif-action-btn {
      background: #151d18 !important;
      border-color: #28352d !important;
      color: #cfd9d3 !important;
    }
    [data-theme="dark"] .notif-action-btn:hover:not(:disabled) {
      background: #163022 !important;
      border-color: #28593e !important;
      color: #86efac !important;
    }
    [data-theme="dark"] .notif-action-btn.is-clear:hover:not(:disabled) {
      background: #331719 !important;
      border-color: #63282d !important;
      color: #fca5a5 !important;
    }
    [data-theme="dark"] .notification-item.is-read {
      background: #101512 !important;
      border-color: #1c251f !important;
      opacity: 0.64 !important;
    }
    [data-theme="dark"] .notif-item-dismiss {
      color: #7c8f83 !important;
    }
    [data-theme="dark"] .notif-item-dismiss:hover {
      background: rgba(248, 113, 113, 0.16) !important;
      color: #fca5a5 !important;
    }

    /* 2. Date Filter Calendar Icon — Crisp & Bright in Dark Mode Across All Pages */
    input[type="date"]::-webkit-calendar-picker-indicator {
      cursor: pointer !important;
      opacity: 0.85 !important;
    }
    [data-theme="dark"] input[type="date"] {
      color-scheme: dark !important;
      color: #eef4f0 !important;
    }
    [data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator {
      filter: none !important;
      opacity: 1 !important;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d8e6de' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") !important;
      background-repeat: no-repeat !important;
      background-position: center !important;
      background-size: 14px 14px !important;
      width: 18px !important;
      height: 18px !important;
      padding: 2px !important;
      border-radius: 4px !important;
      cursor: pointer !important;
    }
    [data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator:hover {
      background-color: rgba(110, 231, 183, 0.14) !important;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236ee7b7' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") !important;
    }

    /* 3. Clean Subtle Table Lines in Month Plan Files (#driveFileList) in Light & Dark Mode */
    #viewDrive #driveFileList tr {
      border-bottom: 1px solid #edf1ee !important;
    }
    #viewDrive #driveFileList tr:last-child {
      border-bottom: 0 !important;
    }
    #viewDrive #driveFileList td {
      border: 0 !important;
    }
    [data-theme="dark"] #viewDrive #driveManagementGrid > div {
      border-color: #1f2822 !important;
    }
    [data-theme="dark"] #viewDrive #driveManagementGrid .border-b {
      border-color: #1f2822 !important;
    }
    [data-theme="dark"] #viewDrive #driveManagementGrid table thead tr {
      border-bottom: 1px solid #1f2822 !important;
      background: #141a16 !important;
    }
    [data-theme="dark"] #viewDrive #driveFileList tr {
      border-top: 0 !important;
      border-bottom: 1px solid #1c241f !important;
    }
    [data-theme="dark"] #viewDrive #driveFileList tr:last-child {
      border-bottom: 0 !important;
    }
    [data-theme="dark"] #viewDrive #driveFileList td {
      border: 0 !important;
    }

    /* 4. Clean Sidebar Brand Header (No Awkward Bottom Divider Line) */
    #appSidebar .sidebar-brand,
    [data-theme="dark"] #appSidebar .sidebar-brand {
      border-bottom: 0 !important;
      box-shadow: none !important;
    }

    /* 5. Clean Hide-Left-Sidebar Icon (#desktopSidebarButton) in Dark Mode */
    #desktopSidebarButton,
    [data-theme="dark"] #desktopSidebarButton {
      background: transparent !important;
      background-color: transparent !important;
      border: 0 !important;
      border-color: transparent !important;
      box-shadow: none !important;
      border-radius: 5px !important;
      width: 28px !important;
      height: 28px !important;
      padding: 0 !important;
      color: #56615a !important;
    }
    [data-theme="dark"] #desktopSidebarButton {
      color: #b8c4bc !important;
    }
    #desktopSidebarButton:hover {
      background: rgba(0, 166, 81, 0.08) !important;
      color: #008844 !important;
    }
    [data-theme="dark"] #desktopSidebarButton:hover {
      background: rgba(110, 231, 183, 0.1) !important;
      color: #6ee7b7 !important;
    }


    .sync-monitor-ctrl-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-height: 30px;
      padding: 4px 10px;
      border-radius: 6px;
      border: 1px solid #cbd5e1;
      background: #ffffff;
      color: #334155;
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.15s ease;
    }
    .sync-monitor-ctrl-btn:hover {
      background: #f1f5f9;
      border-color: #94a3b8;
    }
    .sync-monitor-ctrl-btn.is-active {
      background: #ecfdf5;
      border-color: #6ee7b7;
      color: #047857;
    }
    .sync-monitor-ctrl-btn.is-reset {
      background: #fffbeb;
      border-color: #fcd34d;
      color: #b45309;
    }
    .sync-monitor-ctrl-btn.is-reset:hover {
      background: #fef3c7;
      border-color: #f59e0b;
    }
    [data-theme="dark"] .sync-monitor-ctrl-btn {
      background: #141a16 !important;
      border-color: #2b372f !important;
      color: #d5e0d9 !important;
    }
    [data-theme="dark"] .sync-monitor-ctrl-btn:hover {
      background: #1d2620 !important;
      border-color: #3d4f43 !important;
    }
    [data-theme="dark"] .sync-monitor-ctrl-btn.is-active {
      background: #113322 !important;
      border-color: #225c3e !important;
      color: #6ee7b7 !important;
    }
    [data-theme="dark"] .sync-monitor-ctrl-btn.is-reset {
      background: #332410 !important;
      border-color: #6e4e20 !important;
      color: #fde68a !important;
    }


    /* Strict hidden state for Workcenter Database sections so filter bar never leaks onto Choose a workcenter */
    #dbContent.hidden,
    #dbContent.db-exim-filters.hidden,
    #dbTableWrap.hidden,
    #dbHeading.hidden,
    #dbHome.hidden {
      display: none !important;
    }
    .calendar-skeleton-cell {
      min-height: 116px;
      padding: 10px;
      border-right: 1px solid #e6ebe7;
      border-bottom: 1px solid #e6ebe7;
      display: flex;
      flex-direction: column;
      gap: 7px;
    }
    [data-theme="dark"] .calendar-skeleton-cell {
      border-color: #263029;
    }


    #viewLapisUlang .lu-detail-toggle { display:inline-flex;align-items:flex-start;gap:8px;max-width:100%;text-align:left;color:inherit;font-size:12px;font-weight:600;line-height:1.4; }
    #viewLapisUlang .lu-expand-icon { flex:0 0 14px;width:14px;height:14px;margin-top:1px;fill:none;stroke:#008844;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .16s ease; }
    #viewLapisUlang .lu-detail-toggle[aria-expanded="true"] .lu-expand-icon { transform:rotate(90deg); }
    #viewLapisUlang .lu-main-row.lu-row-odd { background:#fff!important; }
    #viewLapisUlang .lu-main-row.lu-row-even { background:#f6f8f7!important; }
    #viewLapisUlang .lu-main-row:hover { background:#edf5ef!important; }
    #viewLapisUlang .lu-detail-row td { padding:0;background:#f7f9f8;border-bottom:1px solid #e1e8e3; }
    #viewLapisUlang .lu-detail-panel { display:flex;flex-direction:column;gap:10px;padding:12px 18px 14px 38px;border-bottom:1px solid #e1e8e3; }
    #viewLapisUlang .lu-detail-summary { display:flex;flex-wrap:wrap;align-items:center;gap:8px 22px;color:#59655e;font-size:11px; }
    #viewLapisUlang .lu-detail-summary b { margin-right:5px;color:#66716a;font-weight:650; }
    #viewLapisUlang .lu-total-cost { color:#007a3d;font-weight:650;font-variant-numeric:tabular-nums; }
    #viewLapisUlang .lu-status-badge { display:inline-flex;padding:2px 7px;border-radius:999px;font-size:10px;font-weight:650; }
    #viewLapisUlang .lu-detail-table { width:100%;min-width:730px;border-collapse:collapse;font-size:11px; }
    #viewLapisUlang .lu-detail-table th { padding:7px 9px;background:#eef2ef;color:#5c685f;text-align:left;font-size:10px;font-weight:650; }
    #viewLapisUlang .lu-detail-table td { padding:7px 9px;border-top:1px solid #e8ede9;color:#46524a;vertical-align:middle; }
    #viewLapisUlang .lu-detail-table tbody tr:nth-child(even) { background:#f7f9f8; }
    #viewLapisUlang .lu-detail-table tbody tr:hover { background:#edf5ef; }
    [data-theme="dark"] #viewLapisUlang .lu-main-row.lu-row-odd { background:#202522!important; }
    [data-theme="dark"] #viewLapisUlang .lu-main-row.lu-row-even { background:#262d29!important; }
    [data-theme="dark"] #viewLapisUlang .lu-main-row:hover { background:#2d3931!important; }
    [data-theme="dark"] #viewLapisUlang .lu-detail-row td,[data-theme="dark"] #viewLapisUlang .lu-detail-panel { background:#252c28!important;border-color:#39423c!important; }
    [data-theme="dark"] #viewLapisUlang .lu-detail-summary,[data-theme="dark"] #viewLapisUlang .lu-detail-table td { color:#d2dbd5; }
    [data-theme="dark"] #viewLapisUlang .lu-detail-summary b { color:#aab5ad; }
    [data-theme="dark"] #viewLapisUlang .lu-detail-table th { background:#202522;color:#cfd9d3; }
    [data-theme="dark"] #viewLapisUlang .lu-detail-table td { border-color:#39423c; }
    [data-theme="dark"] #viewLapisUlang .lu-detail-table tbody tr:nth-child(even) { background:#262d29; }
    [data-theme="dark"] #viewLapisUlang .lu-total-cost { color:#7bd49a; }
    @media(max-width:640px){#viewLapisUlang .lu-detail-panel{padding:10px}#viewLapisUlang .lu-detail-summary{gap:7px 12px}}
/* Master Data follows the compact, striped table treatment used by Packing. */
.master-data-page { padding-bottom: 10px; }
.master-data-section { overflow: hidden; border: 1px solid #dce3e0; border-radius: 5px; background: #fff; }
.master-data-section > summary { display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:64px; padding:8px 14px; color:#18212b; font-size:12px; font-weight:650; cursor:pointer; list-style:none; }
.master-data-section > summary::-webkit-details-marker { display:none; }
.master-data-section > summary::after { content:""; width:7px; height:7px; flex:none; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); transition:transform 160ms ease; }
.master-data-section[open] > summary::after { transform:rotate(225deg); }
.master-data-count { margin-left:auto; color:#78838d; font-size:10px; font-weight:450; }
.master-data-content { padding:0 12px 12px; }
.master-data-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:8px; min-height:52px; margin-bottom:10px; padding:8px 9px; border:1px solid #dce3e9; border-radius:4px; background:#fff; }
.master-data-search { flex:1 1 240px; min-width:185px; }
.master-data-search input,.master-data-filter select { width:100%; height:32px; border:1px solid #ccd5df; border-radius:3px; background:#fff; padding:0 10px; color:#263445; font-size:11px; outline:none; }
.master-data-search input:focus,.master-data-filter select:focus { border-color:#71899a; box-shadow:0 0 0 2px rgb(74 105 123 / 10%); }
.master-data-filter { flex:0 1 150px; min-width:125px; }
.master-data-actions { display:flex; flex-wrap:wrap; gap:7px; margin-left:auto; }
.master-data-button { height:32px; padding:0 11px; border:1px solid #cbd5df; border-radius:3px; background:#fff; color:#283545; font-size:10.5px; font-weight:550; transition:background-color 130ms ease,border-color 130ms ease; }
.master-data-button:hover { background:#f4f7f8; border-color:#9eabb8; }
.master-data-download { border-color:#009b4d; background:#00a651; color:#fff; }
.master-data-download:hover { background:#008f46; border-color:#008f46; }
.master-data-table-wrap { max-height:calc(100vh - 330px); min-height:180px; overflow:auto; border:1px solid #dce3e9; border-radius:3px; background:#fff; }
.master-data-table { width:100%; min-width:820px; border-collapse:collapse; text-align:left; }
.master-data-table th { position:sticky; top:0; z-index:2; height:34px; padding:7px 10px; border-bottom:1px solid #dce3e9; background:#f5f7f8; color:#566474; font-size:9.5px; font-weight:550; text-transform:uppercase; white-space:nowrap; }
.master-data-table td { height:36px; padding:7px 10px; border-bottom:1px solid #e9edee; color:#293748; font-size:10.5px; vertical-align:middle; }
.master-data-table tbody tr.master-data-row { animation:dashboardRowArrival 320ms cubic-bezier(.2,.7,.25,1) both; animation-delay:min(calc(var(--row-index,0) * 18ms),300ms); }
.master-data-table tbody tr.master-data-row:nth-child(odd) { background:#fff; }
.master-data-table tbody tr.master-data-row:nth-child(even) { background:#f5f7f8; }
.master-data-table tbody tr.master-data-row:hover { background:#eaf5ef; }
.master-data-table td.master-data-code { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:10px; }
.master-data-table .numeric { text-align:right; font-variant-numeric:tabular-nums; }
.master-data-empty,.master-data-error { padding:28px!important; text-align:center; color:#77818b!important; }
.master-data-error { color:#b42318!important; }
[data-theme="dark"] #viewItemMasterMaterial { background:#000!important; }
[data-theme="dark"] #viewItemMasterMaterial .master-data-section,[data-theme="dark"] #viewItemMasterMaterial .master-data-toolbar,[data-theme="dark"] #viewItemMasterMaterial .master-data-table-wrap { background:#080808; border-color:#242424; }
[data-theme="dark"] #viewItemMasterMaterial .master-data-section > summary,[data-theme="dark"] #viewItemMasterMaterial .master-data-table td { color:#e5e5e5; }
[data-theme="dark"] #viewItemMasterMaterial .master-data-count { color:#a3a3a3; }
[data-theme="dark"] #viewItemMasterMaterial .master-data-search input,[data-theme="dark"] #viewItemMasterMaterial .master-data-filter select,[data-theme="dark"] #viewItemMasterMaterial .master-data-button:not(.master-data-download) { background:#111;border-color:#333;color:#e5e5e5; }
[data-theme="dark"] #viewItemMasterMaterial .master-data-table th { background:#111;border-color:#292929;color:#c4c4c4; }
[data-theme="dark"] #viewItemMasterMaterial .master-data-table td { border-color:#222; }
[data-theme="dark"] #viewItemMasterMaterial .master-data-table tbody tr.master-data-row:nth-child(odd) { background:#080808; }
[data-theme="dark"] #viewItemMasterMaterial .master-data-table tbody tr.master-data-row:nth-child(even) { background:#111; }
[data-theme="dark"] #viewItemMasterMaterial .master-data-table tbody tr.master-data-row:hover { background:#191f1b; }
@media(max-width:760px) {
  .master-data-content { padding:0 8px 8px; }
  .master-data-actions { width:100%; margin-left:0; }
  .master-data-actions > button { flex:1 1 auto; }
  .master-data-table-wrap { max-height:60vh; }
}
.master-data-page { width:100%;max-width:1600px;min-width:0;align-self:center;margin-inline:auto;padding-bottom:10px;box-sizing:border-box;font-size:12px; }
.master-data-section { width:100%;min-width:0;overflow:visible; }
.master-data-description { margin:0 1px 9px;color:#64717c;font-size:10.5px;line-height:1.45; }
.master-data-filter { flex:0 1 180px;min-width:145px; }
.master-data-table-wrap { max-height:calc(100vh - 345px);min-height:180px;overflow:auto; }
.master-data-table { min-width:680px;table-layout:auto; }
.master-data-table th { font-size:11px; }
.master-data-table td { font-size:12px; }
.master-data-multiselect { position:relative; }
.master-data-filter-button { display:flex;align-items:center;justify-content:space-between;width:100%;height:32px;padding:0 10px;border:1px solid #ccd5df;border-radius:3px;background:#fff;color:#263445;text-align:left;font-size:11px; }
.master-data-filter-button::after { content:"";width:6px;height:6px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg);margin:0 2px 3px 8px; }
.master-data-filter-panel { position:absolute;top:calc(100% + 4px);left:0;z-index:30;width:min(300px,calc(100vw - 32px));max-height:340px;overflow:auto;border:1px solid #dce3e9;border-radius:4px;background:#fff;box-shadow:0 8px 22px rgb(20 32 42 / 12%); }
.master-data-filter-actions { position:sticky;top:0;display:flex;justify-content:space-between;padding:7px 9px;border-bottom:1px solid #e4e8eb;background:#f7f8f9; }
.master-data-filter-actions button { color:#334155;font-size:10px;font-weight:600; }
.master-data-filter-options { padding:4px 0; }
.master-data-filter-option { display:grid;grid-template-columns:15px minmax(0,1fr) auto;align-items:center;gap:8px;padding:6px 9px;color:#334155;font-size:10.5px;cursor:pointer; }
.master-data-filter-option:hover { background:#f3f6f7; }
.master-data-filter-option input { accent-color:#008c49; }
.master-data-filter-option small { color:#78838d;font-size:9.5px;font-variant-numeric:tabular-nums; }
#viewLapisUlang .lu-detail-panel { gap:6px;padding:8px 12px 9px 30px; }
#viewLapisUlang .lu-detail-summary { gap:5px 14px;font-size:10px; }
#viewLapisUlang .lu-detail-summary b { margin-right:4px; }
#viewLapisUlang .lu-detail-table { min-width:650px;font-size:10px; }
#viewLapisUlang .lu-detail-table th { padding:6px 8px; }
#viewLapisUlang .lu-detail-table td { padding:6px 8px; }
@media(max-width:760px) {
  #viewLapisUlang .lu-detail-panel { padding:8px; }
  #viewLapisUlang .lu-detail-summary { gap:5px 10px; }
}
.master-data-section-copy { display:flex;flex:1 1 45%;flex-direction:column;gap:4px;min-width:240px; }
.master-data-section-title { color:#18212b;font-size:12px;font-weight:650; }
.master-data-section-description { color:#64717c;font-size:10.5px;font-weight:400;line-height:1.4; }
.master-data-section-hint { flex:none;color:#7a8792;font-size:10px;font-weight:400; }
.master-data-count { margin-left:auto; }
.master-product-table { width:100%;min-width:840px;border-collapse:collapse;table-layout:auto; }
.master-product-table th { position:sticky;top:0;z-index:2;height:34px;padding:7px 10px;border-bottom:1px solid #dce3e9;background:#f5f7f8;color:#566474;text-align:left;font-size:11px;font-weight:550;text-transform:uppercase;white-space:nowrap; }
.master-product-table td { height:36px;padding:7px 10px;border-bottom:1px solid #e9edee;color:#293748;font-size:12px;vertical-align:middle; }
.master-product-table tbody tr { animation:dashboardRowArrival 320ms cubic-bezier(.2,.7,.25,1) both;animation-delay:min(calc(var(--row-index,0) * 18ms),300ms); }
.master-product-table tbody tr:nth-child(odd) { background:#fff; }
.master-product-table tbody tr:nth-child(even) { background:#f5f7f8; }
.master-product-table tbody tr:hover { background:#eaf5ef; }
.master-product-table .master-data-code { font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px;white-space:nowrap; }
.master-product-table .master-family-code { color:#687581;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px;white-space:nowrap; }
.master-product-table tbody tr.master-product-family-start:not(:first-child) td { border-top:2px solid #dfe5e8; }
.master-product-table .master-product-table-family { color:#596775;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px;white-space:nowrap; }
[data-theme="dark"] #viewItemMasterMaterial .master-product-table tbody tr.master-product-family-start:not(:first-child) td { border-top-color:#343434; }
[data-theme="dark"] #viewItemMasterMaterial .master-product-table .master-product-table-family { color:#aaa; }
[data-theme="dark"] #viewItemMasterMaterial .master-data-section-hint { color:#999; }
[data-theme="dark"] #viewItemMasterMaterial .master-product-table th { background:#111;border-color:#292929;color:#c4c4c4; }
[data-theme="dark"] #viewItemMasterMaterial .master-product-table td { border-color:#222;color:#ddd; }
[data-theme="dark"] #viewItemMasterMaterial .master-product-table tbody tr:nth-child(odd) { background:#080808; }
[data-theme="dark"] #viewItemMasterMaterial .master-product-table tbody tr:nth-child(even) { background:#111; }
[data-theme="dark"] #viewItemMasterMaterial .master-product-table tbody tr:hover { background:#191f1b; }
#viewLapisUlang .lu-detail-row td, #viewLapisUlang .lu-detail-panel { white-space:normal; }
#viewLapisUlang .lu-detail-summary { display:grid;grid-template-columns:max-content minmax(260px,1fr) max-content max-content max-content;align-items:baseline;width:100%;column-gap:24px;row-gap:6px;white-space:normal;line-height:1.4; }
#viewLapisUlang .lu-detail-summary > span { min-width:0; }
#viewLapisUlang .lu-detail-summary .lu-summary-name { min-width:0;white-space:normal;overflow-wrap:break-word;word-break:break-word;padding-right:12px; }
#viewLapisUlang .lu-detail-summary .lu-summary-code, #viewLapisUlang .lu-detail-summary .lu-summary-qty, #viewLapisUlang .lu-detail-summary .lu-summary-status, #viewLapisUlang .lu-detail-summary .lu-total-cost { white-space:nowrap; }
#viewLapisUlang .lu-detail-summary .lu-summary-qty, #viewLapisUlang .lu-detail-summary .lu-summary-status, #viewLapisUlang .lu-detail-summary .lu-total-cost { justify-self:end; }
@media(max-width:960px) {
  #viewLapisUlang .lu-detail-summary { grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),auto));justify-content:space-between; }
  #viewLapisUlang .lu-detail-summary .lu-summary-qty, #viewLapisUlang .lu-detail-summary .lu-summary-status, #viewLapisUlang .lu-detail-summary .lu-total-cost { justify-self:start; }
}
#viewLapisUlang .lu-missing-so-note { margin:0;color:#68737d;font-size:11px;line-height:1.45; }
#viewLapisUlang .lu-table-context { display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:20px; }
#viewLapisUlang .lu-table-description,#viewLapisUlang .lu-table-count { margin:0;color:#68737d;font-size:11px;line-height:1.45; }
#viewLapisUlang .lu-table-count { flex:none;font-variant-numeric:tabular-nums; }
[data-theme="dark"] #viewLapisUlang .lu-missing-so-note,[data-theme="dark"] #viewLapisUlang .lu-table-description,[data-theme="dark"] #viewLapisUlang .lu-table-count { color:#aab5ad; }
[data-theme="dark"] #viewItemMasterMaterial .master-data-description { color:#a3a3a3; }
[data-theme="dark"] #viewItemMasterMaterial .master-data-filter-button,[data-theme="dark"] #viewItemMasterMaterial .master-data-filter-panel { background:#111;border-color:#333;color:#e5e5e5; }
[data-theme="dark"] #viewItemMasterMaterial .master-data-filter-actions { background:#151515;border-color:#292929; }
[data-theme="dark"] #viewItemMasterMaterial .master-data-filter-actions button,[data-theme="dark"] #viewItemMasterMaterial .master-data-filter-option { color:#ddd; }
[data-theme="dark"] #viewItemMasterMaterial .master-data-filter-option:hover { background:#1d1d1d; }
@media(max-width:760px) {
  .master-data-page { max-width:none; }
  .master-data-section > summary { flex-wrap:wrap;row-gap:5px;padding-block:8px; }
  .master-data-section-copy { flex-basis:100%;min-width:0; }
  .master-data-section-hint { margin-left:0; }
  #viewLapisUlang .lu-table-context { align-items:flex-start;flex-direction:column;gap:2px; }
}




/* ==================== MONITORING & PO DATABASE VIEWS (v42 - UNIFIED DASHBOARD PALETTE) ==================== */
#viewAssemblyMonitoring,
#viewFinishingMonitoring,
#viewDeliveryMonitoring,
#viewAssemblyPoDb, #viewFinishingPoDb {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  min-width: 0;
  padding: 18px 0 44px;
  background: #f7f9fc;
}
.mm-mon-shell {
  width: 90%;
  max-width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 1024px) {
  .mm-mon-shell {
    width: 96%;
    max-width: 96%;
  }
}
@media (max-width: 767px) {
  #viewAssemblyMonitoring,
  #viewFinishingMonitoring,
  #viewDeliveryMonitoring,
  #viewAssemblyPoDb, #viewFinishingPoDb {
    margin-left: 0;
    width: 100%;
    padding: 12px 10px 36px;
  }
  .mm-mon-shell {
    width: 100%;
    max-width: 100%;
  }
}
.mm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1100px) {
  .mm-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .mm-kpi-grid {
    grid-template-columns: 1fr;
  }
}
.mm-kpi-grid > .dashboard-kpi-card {
  display: flex;
  min-width: 0;
  min-height: 158px;
  flex-direction: column;
  padding: 17px 18px !important;
  border: 1px solid #e2e8e4;
  border-radius: 8px !important;
  background: #ffffff;
  box-shadow: 0 1px 2px rgb(23 42 30 / 0.04) !important;
}
.mm-chart-canvas-wrap {
  position: relative;
  width: 100%;
  height: 320px;
  min-height: 320px;
  margin-top: 10px;
}
.mm-table-card {
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mm-btn-reset {
  color: #a33c3c !important;
  border-color: #e5c3c3 !important;
  background: #ffffff !important;
}
.mm-btn-reset:hover {
  background: #fff0f0 !important;
}
.mm-mon-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}
.mm-mon-table thead th {
  height: 36px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: #657168;
  background: #f7f9f7;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}
.mm-mon-table tbody td {
  height: 40px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.35;
  color: #26332b;
  border-bottom: 1px solid #edf0f2;
  vertical-align: middle;
  white-space: nowrap;
}
.mm-mon-table tbody tr:nth-child(odd) {
  background: #ffffff;
}
.mm-mon-table tbody tr:nth-child(even) {
  background: #f6f8f7;
}
.mm-mon-table tbody tr:hover {
  background: #edf5ef;
}
.mm-mon-table tfoot td {
  height: 40px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  background: #f1f5f3;
  border-top: 2px solid #d5ded8;
  color: #17251d;
  white-space: nowrap;
}
.mm-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.mm-status-achieved {
  background: #e8f5ed;
  color: #176c3e;
}
.mm-status-over {
  background: #edf4ff;
  color: #256bd0;
}
.mm-status-progress {
  background: #fff4df;
  color: #825719;
}
.mm-status-pending {
  background: #eef1ef;
  color: #606d64;
}
.mm-proc-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.mm-proc-lapis {
  background: #edf4ff;
  color: #256bd0;
  border: 1px solid #cde0fc;
}
.mm-proc-core {
  background: #fff5e9;
  color: #d77928;
  border: 1px solid #f7dcb4;
}
.mm-machine-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  background: #f3effb;
  color: #6d4c9c;
  border: 1px solid #dfd5f2;
}
.mm-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-height: 26px !important;
  border-radius: 5px;
  border: 1px solid #dfe5e1;
  background: #ffffff;
  color: #4b5563;
  transition: all 0.14s ease;
}
.mm-icon-btn:hover {
  background: #f3f6f4;
  color: #111827;
  border-color: #cbd5cf;
}
.mm-icon-btn.is-danger {
  color: #dc2626;
  border-color: #fecaca;
}
.mm-icon-btn.is-danger:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}
[data-theme="dark"] #viewAssemblyMonitoring,
[data-theme="dark"] #viewFinishingMonitoring,
[data-theme="dark"] #viewDeliveryMonitoring,
[data-theme="dark"] #viewAssemblyPoDb, [data-theme="dark"] #viewFinishingPoDb {
  background: #171a18 !important;
  color: #e4e9e5 !important;
}
[data-theme="dark"] .mm-kpi-grid > .dashboard-kpi-card,
[data-theme="dark"] .mm-table-card {
  background: #202522 !important;
  border-color: #39423c !important;
  color: #dce3de !important;
}
[data-theme="dark"] .mm-kpi-grid .dashboard-kpi-top {
  color: #c2ccc5 !important;
}
[data-theme="dark"] .mm-kpi-grid .dashboard-kpi-value {
  color: #f0f5f1 !important;
}
[data-theme="dark"] .mm-kpi-grid .dashboard-kpi-value small,
[data-theme="dark"] .mm-kpi-grid .dashboard-kpi-caption,
[data-theme="dark"] .mm-kpi-grid .dashboard-kpi-bottom {
  color: #aab5ad !important;
}
[data-theme="dark"] .mm-status-achieved {
  background: #1f3c2b !important;
  color: #9dd7b0 !important;
}
[data-theme="dark"] .mm-status-over {
  background: #1e3352 !important;
  color: #9ec5fe !important;
}
[data-theme="dark"] .mm-status-progress {
  background: #40351f !important;
  color: #e7c178 !important;
}
[data-theme="dark"] .mm-status-pending {
  background: #303733 !important;
  color: #c2ccc5 !important;
}
[data-theme="dark"] .mm-proc-lapis {
  background: #1e3352 !important;
  color: #9ec5fe !important;
  border-color: #31517d !important;
}
[data-theme="dark"] .mm-proc-core {
  background: #3d2f1d !important;
  color: #f3c17c !important;
  border-color: #5e4729 !important;
}
[data-theme="dark"] .mm-machine-pill {
  background: #2e2640 !important;
  color: #d0bdf4 !important;
  border-color: #493b66 !important;
}
[data-theme="dark"] .mm-btn-reset {
  background: #252020 !important;
  border-color: #5c3535 !important;
  color: #f5a3a3 !important;
}
[data-theme="dark"] .mm-icon-btn {
  background: #252b27;
  border-color: #39423c;
  color: #d1dbd4;
}
[data-theme="dark"] .mm-mon-table thead th {
  background: #252b27 !important;
  color: #bec9c1 !important;
  border-color: #39423c !important;
}
[data-theme="dark"] .mm-mon-table tbody td {
  color: #dce3de !important;
  border-color: #343d37 !important;
}
[data-theme="dark"] .mm-mon-table tbody tr:nth-child(odd) {
  background: #202522 !important;
}
[data-theme="dark"] .mm-mon-table tbody tr:nth-child(even) {
  background: #262d29 !important;
}
[data-theme="dark"] .mm-mon-table tbody tr:hover {
  background: #2d3931 !important;
}
[data-theme="dark"] .mm-mon-table tfoot td {
  background: #252c28 !important;
  border-color: #3e4a42 !important;
  color: #f0f5f1 !important;
}


/* === v43 Targeted Monitoring Chart, Legend, Grid & Table Heading Refinements === */
.mm-asy-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 2fr);
  gap: 14px;
  align-items: stretch;
}
@media (max-width: 1023px) {
  .mm-asy-chart-grid {
    grid-template-columns: 1fr;
  }
}
.mm-asy-chart-grid > .dashboard-chart-card:last-child .dashboard-card-heading {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.dashboard-trend-legend {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-top: 0 !important;
  color: #5c6961;
  font-size: 11px;
  font-weight: 500;
}
.dashboard-trend-legend span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap;
}
.dashboard-trend-legend i {
  display: inline-block !important;
  width: 9px !important;
  height: 9px !important;
  min-width: 9px !important;
  flex: none !important;
  border: 2px solid var(--legend-color, #00A651) !important;
  background: var(--legend-color, #00A651) !important;
  border-radius: 50% !important;
}
.mm-table-card {
  padding: 20px 22px !important;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mm-table-card-header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: 39px;
}
.mm-table-card-header h3 {
  margin: 0 !important;
  color: #26332b !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em !important;
}
.mm-table-card-header p {
  margin: 4px 0 0 !important;
  color: #79847d !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
}
[data-theme="dark"] .mm-table-card-header h3 {
  color: #f3f7f4 !important;
}
[data-theme="dark"] .mm-table-card-header p {
  color: #a8b6ae !important;
}


/* === v44 Unified 90% Panel Width, Fit-to-Box Charts, Machine Badges, Not-Run Status & Scrollable Tables === */
@media (min-width: 1025px) {
  #pageSubHeader {
    padding: 18px 5% 10px !important;
  }
  #viewDashboard,
  #viewDrive,
  #viewCalendar,
  #viewDatabase,
  #viewLapisUlang,
  #viewItemMasterMaterial,
  #viewSync,
  #viewAccess {
    padding: 18px 0 44px !important;
  }
  #viewDashboard > div,
  #viewDrive > div,
  #viewCalendar > div,
  #viewDatabase > div,
  #viewLapisUlang > div,
  #viewItemMasterMaterial > div,
  #viewSync > div,
  #viewAccess > div {
    width: 90% !important;
    max-width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  #viewDatabase .db-home-shell,
  [data-theme="dark"] #viewDatabase .db-home-shell {
    width: 100% !important;
    max-width: 100% !important;
    margin: 4px auto 0 !important;
  }
}
@media (max-width: 1024px) and (min-width: 768px) {
  #pageSubHeader {
    padding: 16px 2% 10px !important;
  }
  #viewDashboard > div,
  #viewDrive > div,
  #viewCalendar > div,
  #viewDatabase > div,
  #viewLapisUlang > div,
  #viewItemMasterMaterial > div,
  #viewSync > div,
  #viewAccess > div {
    width: 96% !important;
    max-width: 96% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  #viewDatabase .db-home-shell,
  [data-theme="dark"] #viewDatabase .db-home-shell {
    width: 100% !important;
    max-width: 100% !important;
  }
}

.mm-asy-chart-grid > .dashboard-chart-card,
#viewFinishingMonitoring .dashboard-chart-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}
.mm-chart-canvas-wrap {
  position: relative;
  width: 100%;
  flex: 0 0 310px !important;
  height: 310px !important;
  min-height: 310px !important;
  max-height: 310px !important;
  margin-top: auto !important;
  padding-top: 8px;
  overflow: hidden;
}
.mm-chart-canvas-wrap > canvas {
  width: 100% !important;
  height: 100% !important;
  max-height: 302px !important;
  display: block;
}

.mm-table-scroll-wrap {
  max-height: 460px;
  overflow-y: auto;
  overflow-x: auto;
  border-top: 1px solid #e5e7eb;
}
[data-theme="dark"] .mm-table-scroll-wrap {
  border-top-color: #39423c;
}
.mm-mon-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
}
.mm-mon-table tfoot td {
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.mm-status-notrun {
  background: #fef2f2;
  color: #b91c1c;
}
[data-theme="dark"] .mm-status-notrun {
  background: #422525 !important;
  color: #fca5a5 !important;
}

.mm-machine-imeas {
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}
.mm-machine-timesaver {
  background: #ecfeff;
  color: #0f766e;
  border: 1px solid #a5f3fc;
}
[data-theme="dark"] .mm-machine-imeas {
  background: #252845 !important;
  color: #a5b4fc !important;
  border-color: #3f4673 !important;
}
[data-theme="dark"] .mm-machine-timesaver {
  background: #163638 !important;
  color: #5eead4 !important;
  border-color: #285e61 !important;
}

/* v46 Full-viewport height for Assembly PO Database table before scrolling */
#viewAssemblyPoDb .mm-table-scroll-wrap, #viewFinishingPoDb .mm-table-scroll-wrap {
  max-height: calc(100vh - 235px) !important;
}

/* === v50 1-Page Compact Delivery Calendar & Striped Compact Planned Stuffing Table === */
#viewCalendar {
  height: calc(100dvh - 54px) !important;
  max-height: calc(100dvh - 54px) !important;
  padding: 8px 0 !important;
  overflow: hidden !important;
}
#viewCalendar > div {
  height: 100% !important;
  min-height: 0 !important;
}
.calendar-shell {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
.calendar-toolbar {
  padding: 8px 16px !important;
  gap: 12px !important;
  flex: 0 0 auto;
}
.calendar-toolbar-actions select,
.calendar-nav-button,
.calendar-search {
  height: 32px !important;
  font-size: 11.5px !important;
}
.calendar-nav-button.calendar-nav-arrow {
  min-width: 32px !important;
}
.calendar-view-tabs {
  padding: 0 16px !important;
  min-height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  flex: 0 0 auto;
}
.calendar-tab {
  padding: 7px 2px 6px !important;
  font-size: 12px !important;
}
.calendar-inline-legend {
  color: #5c6860;
  font-size: 11.5px;
  white-space: nowrap;
}
[data-theme="dark"] .calendar-inline-legend {
  color: #aab5ad;
}
.calendar-shell .delivery-calendar-grid {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  grid-template-rows: 26px repeat(var(--cal-weeks, 6), minmax(0, 1fr)) !important;
}
.calendar-shell .delivery-calendar-head {
  min-height: 26px !important;
  height: 26px !important;
  padding: 4px 8px !important;
  font-size: 11px !important;
  display: flex;
  align-items: center;
}
.calendar-shell .delivery-calendar-day {
  min-height: 0 !important;
  height: 100% !important;
  padding: 3px 6px !important;
  overflow-y: auto;
  scrollbar-width: thin;
}
.calendar-day-number {
  min-width: 21px !important;
  height: 21px !important;
  font-size: 11.5px !important;
  line-height: 1;
}
.delivery-event {
  margin-top: 2px !important;
  padding: 1.5px 6px !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
}
.calendar-more {
  margin-top: 1.5px !important;
  padding: 1px 4px !important;
  font-size: 10.5px !important;
  line-height: 1.2 !important;
}
#deliveryPlannedListWrap:not(.hidden) {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}
.delivery-planned-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: auto !important;
  border-top: 0 !important;
}
.delivery-planned-table thead th {
  height: 32px !important;
  padding: 6px 12px !important;
  font-size: 11px !important;
}
.delivery-planned-table tbody td {
  height: 32px !important;
  padding: 5px 12px !important;
  font-size: 11.5px !important;
}
.delivery-planned-table tfoot td {
  height: 34px !important;
  padding: 6px 12px !important;
  font-size: 11.5px !important;
}

/* === v55 Delivery Monitoring Compact Donut Card & Top 5 Buyers Layout === */
.mm-deliv-secondary-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.84fr) minmax(0, 1.42fr);
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 960px) {
  .mm-deliv-secondary-grid {
    grid-template-columns: 1fr;
  }
}
#viewDeliveryMonitoring .dashboard-exim-card {
  grid-column: auto !important;
  grid-row: auto !important;
  display: grid !important;
  grid-template-columns: minmax(150px, 1.85fr) minmax(115px, 1fr) !important;
  grid-template-rows: auto 1fr !important;
  align-items: center !important;
  height: 256px !important;
  min-height: 256px !important;
  max-height: 256px !important;
  padding: 16px 18px !important;
  gap: 6px 12px !important;
}
#viewDeliveryMonitoring .dashboard-exim-card .dashboard-card-heading {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  min-height: 0 !important;
  margin-bottom: 0 !important;
}
#viewDeliveryMonitoring .dashboard-exim-card .dashboard-donut-wrap {
  grid-column: 1 !important;
  grid-row: 2 !important;
  position: relative !important;
  width: 100% !important;
  height: 170px !important;
  min-height: 154px !important;
  max-height: 176px !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 !important;
}
#viewDeliveryMonitoring .dashboard-exim-card .dashboard-donut-wrap canvas {
  width: 156px !important;
  height: 156px !important;
  max-width: 156px !important;
  max-height: 156px !important;
}
#viewDeliveryMonitoring .dashboard-exim-card .dashboard-donut-center {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
  padding: 0 !important;
}
#viewDeliveryMonitoring .dashboard-exim-card .dashboard-exim-legend {
  grid-column: 2 !important;
  grid-row: 2 !important;
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 4px !important;
  margin: 0 !important;
}
#viewDeliveryMonitoring .mm-deliv-buyer-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 256px !important;
  min-height: 256px !important;
  max-height: 256px !important;
  padding: 16px 18px !important;
}
#viewDeliveryMonitoring .mm-deliv-buyer-chart-wrap {
  position: relative;
  flex: 1 1 auto !important;
  width: 100%;
  min-height: 168px !important;
  max-height: 186px !important;
  margin-top: 6px;
}
#viewDeliveryMonitoring .mm-deliv-buyer-chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* === v56 Delivery Monitoring Reschedule Badge, Active Scope Highlight & Skeleton Support === */
#viewDeliveryMonitoring .dashboard-kpi-card.is-scope-active {
  border-color: #168149 !important;
  box-shadow: 0 0 0 1px rgba(22, 129, 73, 0.25), 0 4px 12px rgba(22, 129, 73, 0.07) !important;
}
[data-theme="dark"] #viewDeliveryMonitoring .dashboard-kpi-card.is-scope-active {
  border-color: #2fb36d !important;
  box-shadow: 0 0 0 1px rgba(47, 179, 109, 0.35) !important;
}
.mm-resched-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  cursor: pointer;
  transition: all 0.15s ease;
}
.mm-resched-pill:hover {
  background: #fef3c7;
  border-color: #f59e0b;
}
[data-theme="dark"] .mm-resched-pill {
  background: #3b2d13 !important;
  color: #fcd34d !important;
  border-color: #6b4e1b !important;
}
.mm-resched-sub {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: #78716c;
}
[data-theme="dark"] .mm-resched-sub {
  color: #a8a29e !important;
}
#viewDeliveryMonitoring .dashboard-volume-chart {
  height: 390px !important;
  min-height: 390px !important;
  max-height: 390px !important;
  margin-top: 10px !important;
}
[data-theme="dark"] #eximRescheduleModal > div {
  background: #202522 !important;
  border-color: #39423c !important;
  color: #e4e9e5 !important;
}


/* === v60 Seamless Excel-Style Grid for Create/Revise PO Modals & Hover Full-Text Popover === */
.mm-excel-grid-wrap {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: auto;
  background: #ffffff;
}
.mm-excel-grid-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11.5px;
}
.mm-excel-grid-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #e2e8f0;
  color: #1e293b;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  white-space: nowrap;
}
.mm-excel-grid-table tbody tr:nth-child(even) td {
  background-color: #f8fafc;
}
.mm-excel-grid-table tbody tr:hover td {
  background-color: #f1f5f9;
}
.mm-excel-grid-table tbody td {
  padding: 0 !important;
  height: 28px;
  border: 1px solid #cbd5e1;
  vertical-align: middle;
  position: relative;
}
.mm-excel-grid-table tbody td input,
.mm-excel-grid-table tbody td select {
  width: 100%;
  height: 28px;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 7px !important;
  font-size: 11.5px;
  color: #0f172a;
  outline: none !important;
  box-shadow: none !important;
  display: block;
}
.mm-excel-grid-table tbody td input:focus,
.mm-excel-grid-table tbody td select:focus {
  background: #ecfdf5 !important;
  box-shadow: inset 0 0 0 1.5px #059669 !important;
}
.mm-excel-grid-table tbody td .mm-excel-del-btn {
  width: 100%;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  font-weight: 700;
  font-size: 14px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.mm-excel-grid-table tbody td .mm-excel-del-btn:hover {
  background: #fef2f2;
}
#mmFullTextTooltip {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  background: #0f172a;
  color: #f8fafc;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.35);
  max-width: 480px;
  word-break: break-word;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: opacity 0.1s ease;
}
[data-theme="dark"] .mm-excel-grid-wrap {
  border-color: #334155;
  background: #1e2420;
}
[data-theme="dark"] .mm-excel-grid-table thead th {
  background: #262d29;
  color: #e2e8f0;
  border-color: #334155;
}
[data-theme="dark"] .mm-excel-grid-table tbody td {
  border-color: #334155;
  background-color: #1e2420;
}
[data-theme="dark"] .mm-excel-grid-table tbody tr:nth-child(even) td {
  background-color: #222924;
}
[data-theme="dark"] .mm-excel-grid-table tbody td input,
[data-theme="dark"] .mm-excel-grid-table tbody td select {
  color: #f1f5f9;
}


/* Per-shift subtle row colors & inline shift subtotals in Preview Modals */
.mm-excel-grid-table tbody tr.mm-shift-1 td {
  background-color: #f4f9ff !important;
}
.mm-excel-grid-table tbody tr.mm-shift-2 td {
  background-color: #f3fbf6 !important;
}
.mm-excel-grid-table tbody tr.mm-shift-3 td {
  background-color: #fffaf2 !important;
}
.mm-excel-grid-table tbody tr.mm-shift-1:hover td {
  background-color: #e8f3fe !important;
}
.mm-excel-grid-table tbody tr.mm-shift-2:hover td {
  background-color: #e6f7ed !important;
}
.mm-excel-grid-table tbody tr.mm-shift-3:hover td {
  background-color: #fef3de !important;
}
.mm-excel-grid-table tbody tr.mm-shift-subtotal-1 td {
  background-color: #dbeafe !important;
  color: #1e3a8a;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 8px !important;
  height: 25px;
}
.mm-excel-grid-table tbody tr.mm-shift-subtotal-2 td {
  background-color: #d1fae5 !important;
  color: #065f46;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 8px !important;
  height: 25px;
}
.mm-excel-grid-table tbody tr.mm-shift-subtotal-3 td {
  background-color: #fde68a !important;
  color: #78350f;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 8px !important;
  height: 25px;
}


/* v63 Fullscreen PO Preview Modal & Row Action Buttons */
.mm-po-modal-fullscreen {
  padding: 0 !important;
}
.mm-po-modal-fullscreen > div {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  border: 0 !important;
}
.mm-excel-act-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  height: 24px;
}
.mm-excel-act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  color: #475569;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.mm-excel-act-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.mm-excel-act-btn.is-dup:hover {
  background: #e0e7ff;
  color: #3730a3;
}
.mm-excel-act-btn.is-add:hover {
  background: #d1fae5;
  color: #065f46;
}
.mm-excel-act-btn.is-del {
  color: #dc2626;
}
.mm-excel-act-btn.is-del:hover {
  background: #fee2e2;
  color: #991b1b;
}

/* === v79 BOM Process Tabs & Delivery Calendar Item/Volume Badges === */
.bom-proc-tab {
  background: #ffffff;
  color: #475569;
  border-color: #cbd5e1;
  cursor: pointer;
}
.bom-proc-tab:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}
.bom-proc-tab.is-active {
  background: #0f766e;
  color: #ffffff;
  border-color: #0f766e;
  box-shadow: 0 1px 2px rgba(15, 118, 110, 0.2);
}
[data-theme="dark"] .bom-proc-tab {
  background: #222824;
  color: #c5cec8;
  border-color: #39423c;
}
[data-theme="dark"] .bom-proc-tab.is-active {
  background: #168c50;
  color: #ffffff;
  border-color: #168c50;
}
.calendar-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 3px;
}
.calendar-day-vol {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
  white-space: nowrap;
  line-height: 1.4;
}
[data-theme="dark"] .calendar-day-vol {
  background: rgba(22, 140, 80, 0.22);
  color: #7ee2ad;
}
.calendar-shell .delivery-event {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  width: 100%;
  text-align: left;
  padding: 2.5px 6px !important;
}
.delivery-event-main {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.delivery-event-meta {
  flex: 0 0 auto;
  font-size: 9.5px;
  font-weight: 600;
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
