.agg.acc tbody tr:not(.sum),.agg.acc tbody tr:not(.sum) td{color:#111!important;opacity:1!important}.agg.acc tbody tr:has([style*="--sw"]){background:color-mix(in srgb,var(--row-color,#fff) 16%,white)!important}.agg.acc td{background:transparent!important}.agg.acc tr.sum td{background:#242424!important;color:#fff!important}.pen-excel-grid tr.gh th{background:#242424!important;color:#fff!important;font-size:16px;padding:15px 18px!important;border-top:8px solid #fff!important}.pen-excel-grid input,.pen-excel-grid tbody tr:not(.gh) th{color:#111!important}
.customer-top-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;padding:18px}.customer-top-grid article{display:flex;flex-direction:column;gap:8px;padding:16px;background:#f7f5f2;border:1px solid #e5ded8;border-radius:12px;overflow-wrap:anywhere}.customer-top-grid .rank{color:#95714f;font-size:22px}.customer-top-grid small{font-size:12px;line-height:1.6}.customer-top-grid article>span{font-size:12px}
.stock-breakdown{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:400;margin-top:9px;white-space:nowrap}.stock-breakdown span{display:flex;gap:12px;justify-content:space-between}.stock-updated{display:block;font-size:11px;color:#75675e;line-height:1.6;margin:7px 0}.stock-parts{font-size:12px!important;min-height:36px!important}#stockPartsDialog{border:1px solid #ddd;border-radius:16px;padding:22px;width:min(460px,calc(100vw - 32px));box-sizing:border-box}#stockPartsDialog::backdrop{background:#0006}#stockPartsDialog header,#stockPartsDialog footer{display:flex;justify-content:space-between;gap:10px}#stockPartsDialog label{display:flex;align-items:center;justify-content:space-between;margin:15px 0}#stockPartsDialog input{font:inherit;padding:12px;border:1px solid #ccc;border-radius:8px;width:140px}#stockPartsNotice{color:#a82929}
#setiCategorySettings .seti-category-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}#setiCategorySettings .seti-category-list>div{border:1px solid #e4dbd5;border-radius:12px;padding:14px;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px}#setiCategorySettings [data-seti-delete-category]{background:#fff0ef!important;border:1px solid #df8e87!important;color:#ad2525!important;font-weight:700;min-width:70px;min-height:44px}#setiCategorySettings [data-seti-delete-category]::before{content:'×';font-size:19px;margin-right:6px}
body #crPanel{background:#e8eef3!important}body #crPanel .cr-head,body #crPanel .cr-bar{background:#e8eef3!important}body #crPanel #crList{gap:4px;padding:12px 0}body #crPanel .cr-msg{flex-shrink:0;background:#fff!important;border-radius:3px 15px 15px 15px;box-shadow:0 1px 2px #0001;margin:6px 14px;max-width:80%;color:#111}body #crPanel .cr-msg.mine{background:#fee96a!important;border-radius:15px 3px 15px 15px;margin-left:auto}body #crPanel .cr-msg header b{color:#222!important}body #crPanel .cr-msg footer{margin-top:8px;color:#58616a}body #crPanel #crForm,body #crPanel #crPast{background:#fff}body #crPanel #crSend{background:#fee96a!important;color:#222!important;border-color:#f0dc60!important}body #crPanel .message-save{display:block;border:0;background:transparent;color:#534815;margin:8px 0 0;padding:5px 0;font-size:11px;text-align:left;cursor:pointer}body #crPanel .message-save[aria-pressed=true]{font-weight:700}body #crPanel .message-save:disabled{opacity:.55}body #crPanel .cr-read{color:#675100!important}body #crPanel .cr-msg p{font-size:14px;line-height:1.6}
@media(max-width:650px){.customer-top-grid{grid-template-columns:1fr;padding:12px}.customer-top-grid article{display:grid;grid-template-columns:28px 1fr auto}.customer-top-grid article small{grid-column:2/4}.customer-top-grid article>span{grid-column:2}.customer-top-grid .rank{grid-row:1/3}#setiCategorySettings .seti-category-list{grid-template-columns:1fr}.stock-breakdown{min-width:130px}#stockPartsDialog input{font-size:16px}}
/* Pen worksheet actions */
#gapview .pen-workspace{overflow:visible}#gapview .pen-mode-picker{display:grid!important;grid-template-columns:1fr 1fr;gap:14px!important;margin:20px 0!important}#gapview .pen-mode-picker button{display:flex!important;align-items:center;justify-content:flex-start!important;gap:14px;min-height:86px;padding:16px 20px!important;text-align:left;border:2px solid #d5e4fb!important;background:#eff5ff!important;color:#174d93!important;border-radius:13px!important}#gapview .pen-mode-picker button[data-pen-mode=erp]{background:#f4f0ff!important;border-color:#ded4f5!important;color:#6542a1!important}#gapview .pen-mode-picker button[aria-pressed=true]{border-color:#2563ad!important;box-shadow:0 0 0 2px #2563ad15}#gapview .pen-mode-picker button[data-pen-mode=erp][aria-pressed=true]{border-color:#7950b8!important;box-shadow:0 0 0 2px #7950b815}#gapview .pen-mode-picker b{display:block;font-size:17px}#gapview .pen-mode-picker small{display:block;font-size:12px;margin-top:5px;font-weight:400}#gapview .pen-action-icon{font-size:28px;width:40px;text-align:center}#gapview .pen-save-panel{list-style:none;display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:18px 20px!important;border:1px solid #bed8ce!important;border-radius:12px;background:#f1f8f5!important;margin:18px 0 0}#gapview .pen-save-panel>b{font-size:16px}#gapview .pen-save-panel>span{font-size:12px;color:#52675e}#gapview #penSheetSave{margin-left:auto;background:#166b50!important;color:#fff!important;border-color:#166b50!important;min-height:48px;padding:12px 22px!important;font-weight:700}#gapview #penSheetSave:disabled{opacity:.45}#gapview #penSheetReload{margin-left:auto;font-size:13px;min-height:42px}#gapview .pen-clear{color:#b13b36!important;background:#fff3f2!important;border-color:#efd0cd!important}#gapview .gapbar{flex-wrap:wrap;gap:10px}#gapview .steps:empty{display:none}#gapview .pen-entry-actions{padding:0!important;margin:12px 0!important}#gapview .pen-entry-actions>li{background:#f8f5ff;border:1px solid #e0d4f5;padding:16px!important}#gapview .pen-entry-actions label:has(#gapFile){background:#7650ae!important;color:white!important;min-height:44px}#gapview #penSheetStatus{padding:10px 14px;background:#f5f6f8;border-radius:8px;font-size:13px}#gapview .pen-excel-grid tr[data-pen-group] th,#gapview .pen-excel-grid tr[data-pen-group] td{background:color-mix(in srgb,var(--pen-color,#ddd) 18%,white)!important;color:#111!important}#gapview .pen-excel-grid input{background:#ffffffbf!important;border:1px solid #0002!important;color:#111!important;min-height:42px}#gapview .pen-excel-grid thead th{background:#edf0f4!important;color:#17212d!important}#gapview .pen-excel-grid tr.gh th{background:#252b33!important;color:white!important}
@media(max-width:650px){#gapview .pen-mode-picker{grid-template-columns:1fr!important;gap:8px!important}#gapview .pen-mode-picker button{min-height:70px;padding:12px 14px!important}#gapview .pen-mode-picker b{font-size:15px}#gapview .pen-save-panel{padding:14px!important;gap:10px}#gapview .pen-save-panel>b{width:100%}#gapview #penSheetSave{width:100%;margin:0}#gapview .pen-save-panel>a{flex:1;text-align:center}#gapview .pen-excel-grid input{font-size:16px}}
#gapview .pen-mode-picker button{max-width:none!important;width:100%}#gapview .pen-excel-grid thead{display:table-header-group!important}#gapview .pen-excel-grid thead tr{display:table-row!important}#gapview .pen-excel-grid thead th{display:table-cell!important;position:sticky;top:0;z-index:2;padding:12px 8px!important}#gapview .gapwrap{overflow-x:auto!important;max-width:100%!important;border:1px solid #dce1e8;border-radius:10px}#gapview .pen-excel-grid{min-width:560px!important}#gapview .pen-excel-grid tbody th[scope=row]{position:sticky;left:0;z-index:1}#gapview .pen-entry-actions:not(:has(li:not([hidden]))){display:none!important}

/* Refined hierarchy — existing warm brand and functional colours retained. */
#homeview{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:18px;align-items:start}
#homeview>*{grid-column:1/-1;min-width:0;margin-top:0!important;margin-bottom:0!important}
#homeview>.report-trend,#homeview>.pen-comparison{grid-column:span 6;height:100%;box-sizing:border-box}
#homeview .dashboard-datebar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:14px 18px}
#homeview #setiOrderUpload{margin-left:auto;min-height:44px;padding:10px 22px;background:#43352f!important;border:1px solid #43352f!important;color:#fff!important;font-weight:700;box-shadow:0 2px 4px #23181515}
#homeview .home-invoice-report .btn{min-height:42px;font-size:13px}
#homeview #repCopy{background:#43352f!important;color:white!important;border-color:#43352f!important}
#homeview #repTg{background:#edf4fc!important;color:#21548a!important;border-color:#c3d4e8!important}
#homeview #repRe,#homeview #saveReportCounts{background:white!important;color:#4e443f!important;border-color:#d8cec6!important}
#homeview .boxhead{padding:16px 18px}#homeview .boxhead h3{font-size:16px;line-height:1.4}
#homeview .home-sites .boxhead,#homeview .home-account-search .boxhead{padding:12px 18px}
#homeview .home-sites{background:#fcfbfa}#homeview .home-account-search{background:#fcfbfa}
#uiInv table.inv td[data-l="총수량"]{font-size:24px;font-weight:750;font-variant-numeric:tabular-nums;line-height:1.3}
#uiInv .stock-breakdown{font-size:12px;font-weight:400;gap:4px;margin-top:8px;padding-top:8px;border-top:1px solid #ded7d2;color:#514942}
#uiInv .stock-breakdown b{color:#222;font-weight:600}
#uiInv .stock-updated{max-width:280px;font-size:11px;line-height:1.45;color:#756e69}
button:focus-visible,a:focus-visible{outline:2px solid #3379bf;outline-offset:3px}
@media(max-width:1000px){#homeview>.report-trend,#homeview>.pen-comparison{grid-column:1/-1}}
@media(max-width:650px){
 .original-top .brand-line{padding:8px 0!important;gap:6px 8px}
 .original-top .brand-lockup img{height:36px!important;width:70px!important}
 .original-top .brand-session{padding-top:6px!important;gap:4px 8px!important}
 .original-top #sessionControls{gap:6px!important}
 .original-top #sessionControls button{min-height:36px!important;padding:6px 10px!important;font-size:12px!important}
 .original-top .menu{padding:3px 0!important}
 body .main .phead{padding:10px 14px!important;gap:8px!important;min-height:0!important}
 body .main .phead .btn{min-height:40px!important;padding:8px 10px!important;font-size:12px!important}
 body .wrap{padding:12px 12px 88px!important}
 #homeview{gap:12px}
 #homeview .dashboard-datebar{padding:12px;gap:8px}
 #homeview #setiOrderUpload{padding:10px 14px;margin-left:auto}
 #homeview .boxhead{padding:12px 14px;gap:8px;flex-wrap:wrap}
 #homeview .home-invoice-report .btn{min-height:44px}
 #homeview .home-invoice-report textarea{min-height:160px!important;font-size:14px;line-height:1.65}
 #uiInv .stock-updated{max-width:none;font-size:11px}
 #uiInv table.inv td[data-l="총수량"]{font-size:22px}
 #crFab{right:12px!important;bottom:max(12px,env(safe-area-inset-bottom))!important;max-width:160px;min-height:44px!important}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
@media(min-width:1001px){#homeview .report-trend .trend-desktop{display:none}#homeview .report-trend .trend-mobile{display:block;height:auto;font-size:11px}#homeview .report-trend .admbody{padding:20px}#homeview .trend-info{gap:8px;margin-bottom:20px}}
@media(max-width:650px){#homeview .dashboard-datebar{display:grid!important;grid-template-columns:1fr auto;gap:8px}#homeview .dashboard-datebar>label{grid-column:1;grid-row:1}#homeview .dashboard-datebar>#setiOrderUpload{grid-column:2;grid-row:1;margin:0}#homeview .dashboard-datebar>.dc{grid-column:1/-1;grid-row:2;width:100%;box-sizing:border-box}#homeview .dashboard-datebar>.rep-day{display:none}}
