/* V1.8 shared design system */
:root{--navy:#102d49;--blue:#2563eb;--muted:#64748b}body{font-size:13px;background:#f1f5f9}main{width:100%;max-width:none;padding:16px}header{height:66px;position:sticky;top:0;z-index:1200}#app{gap:14px;grid-template-columns:190px minmax(0,1fr)}nav{top:82px;min-height:calc(100dvh - 98px)}nav button{font-size:12px;min-height:42px}#page{padding:20px;border-radius:14px;min-width:0}#identity{font-size:12px}#page h2{font-size:23px}#page h3{font-size:15px;margin:20px 0 10px}.analytic{min-height:106px;padding:14px;border-radius:12px;border-top:3px solid var(--accent);background:linear-gradient(145deg,#fff,#f8fafc)}.analytic b{font-size:clamp(22px,1.6vw,30px);overflow-wrap:anywhere}.metric-head{font-size:12px}.analytic small{font-size:11px}.grid,.sales-summary{gap:12px}.cluster-card,.executive-block{border:1px solid #dce5ef;border-radius:12px;padding:14px;background:white}.executive-block{margin:12px 0}.executive-block p{margin:5px 0;color:#475569}.executive-block h3{margin-top:0!important}.scroll{border:1px solid #dce5ef;border-radius:9px;max-height:65vh}table{font-size:12px;border-collapse:separate;border-spacing:0}td,th{padding:10px 12px}#page table tr:first-child th{background:#102d49;color:white;position:sticky;top:0;z-index:3}#page table .total-row td{background:#102d49;color:white;font-weight:700}#page table td.num{text-align:right;font-variant-numeric:tabular-nums}.toolbar18{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0}.toolbar18 input,.toolbar18 select{width:auto;flex:1;min-width:130px;margin:0}.toolbar18 button,.install18{background:#eaf1fa;color:#174578;border:1px solid #cbd8e8}.bar18{display:grid;grid-template-columns:minmax(65px,110px) 1fr 55px;align-items:center;gap:10px;margin:8px 0}.bar18 progress{width:100%;accent-color:#2563eb}.meeting18 nav,.meeting18 #identity{display:none!important}.meeting18 #app{display:block}.meeting18 #page{width:100%}.meeting18 main{padding:10px}.meeting18 .scroll{max-height:none}.install18{margin:8px 0;min-height:40px}.header-actions18{margin-left:auto;display:flex;gap:6px}.header-actions18 button{background:#ffffff18;border:1px solid #ffffff40;font-size:11px;padding:8px}.login-content .install18{width:100%}#page form:not(#assign){max-width:100%}#page .visit-action18{width:100%;min-height:48px;margin:12px 0} .sort18{cursor:pointer}.sort18:focus{outline:2px solid #60a5fa;outline-offset:-3px}
@media(min-width:801px) and (max-width:1450px){#page>.analytics-grid,#salesReport .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#app{grid-template-columns:175px minmax(0,1fr)}}
@media(max-width:800px){header{height:auto;min-height:60px;position:sticky;flex-wrap:wrap}header .official-logo{width:110px}header span div{font-size:8px;letter-spacing:.3px}header b{font-size:13px}.header-actions18 button{padding:6px;font-size:10px}main{padding:10px 10px 110px}#app{display:flex;flex-direction:column}#page,#identity{width:100%}#page{padding:14px}#page h2{font-size:20px}nav{min-height:0;top:auto}nav button{min-height:44px;font-size:10px}.analytic{min-height:96px;padding:10px}.analytic b{font-size:22px}.metric-head{font-size:11px}#page>.analytics-grid,#salesReport .product-grid,.sales-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.toolbar18 input,.toolbar18 select{min-width:100px;width:100%;font-size:16px}.scroll:has(.responsive-cards){border:0;max-height:none}.meeting18 main{padding-bottom:20px}.doc-gallery{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}#page .export-bar button{min-height:40px}}
@media(max-width:360px){header .official-logo{width:85px}.metric-head svg{width:15px}.analytic b{font-size:20px}#page{padding:10px}}
@media print{header,nav,#identity,.export-bar,.toolbar18,.header-actions18,button,#login{display:none!important}main,#app,#page{display:block!important;padding:0!important;margin:0!important;width:100%!important;box-shadow:none!important}.scroll{max-height:none;overflow:visible}table{font-size:9px}.analytic,.executive-block{break-inside:avoid}body{background:white;color:#102d49;print-color-adjust:exact}}
.ach.warn{background:#ffedd5;color:#9a3412}
/* V1.8.1: header and metrics are separate layout rows. */
#page .page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;min-height:36px}#page .page-heading h2{margin:0}#page .page-heading .export-bar{margin:0}#page>.analytics-grid{grid-template-columns:repeat(var(--metric-count,6),minmax(0,1fr));width:100%;margin:12px 0 18px}#page .analytic{min-width:0;min-height:100px;display:flex;flex-direction:column;justify-content:space-between}#page .analytic b{font-size:clamp(21px,1.7vw,29px);line-height:1.2}#page .metric-head{line-height:1.4}#page .metric-head svg{width:19px;height:19px}#page .analytic small{line-height:1.4}#page .cluster-card progress{width:100%;height:8px;accent-color:#2563eb}#page .trend-track{height:8px;background:#e7edf5;border-radius:8px;overflow:hidden}#page .trend-track span{display:block;height:100%;background:#2563eb;border-radius:8px}#page .bar18{grid-template-columns:65px minmax(0,1fr) 55px;margin:5px 0}#page .bar18 strong{text-align:right}#page .empty18{padding:32px;text-align:center;color:#64748b;background:#f8fafc}#page[data-view="Ganti Password"]{max-width:720px}#page[data-view="Ganti Password"] input{max-width:100%}#page table th,#page table td{font-variant-numeric:tabular-nums}#page table th.sort18::after{content:' ↕';opacity:.55;font-size:10px}#page table.report td.num{text-align:right}#page table.report th:not(:first-child){text-align:right}#page table.report th:nth-child(2){text-align:left}#page .sales-table{min-width:1100px}#page .scroll{max-width:100%}#page .executive-block{padding:12px 16px}#page .executive-block h3{margin-bottom:8px}#page #map{height:clamp(320px,62vh,700px)}
@media(min-width:801px) and (max-width:1250px){#page>.analytics-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){#page>.analytics-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#page>.analytics-grid>.metric:last-child:nth-child(odd){grid-column:1/-1}#page>.analytics-grid>.metric:last-child:nth-child(even){grid-column:auto}#page .page-heading{align-items:flex-start;flex-direction:column}#page .page-heading .export-bar{justify-content:flex-start}#page .analytic{min-height:90px}#page .analytic b{font-size:23px}#page .metric-head{font-size:11px}#page table:not(.responsive-cards){min-width:560px}#page .sales-table{min-width:1100px!important}#page .cluster-grid{grid-template-columns:1fr}#page .scroll{max-height:none}header .header-actions18{flex-wrap:wrap;gap:4px}header .header-actions18 button{min-height:32px}#page[data-view="Ganti Password"]{max-width:none}}
@media print{#page .scroll{overflow:visible;max-height:none}#page .sales-table{min-width:0!important}#page table{font-size:8px}#page table td,#page table th{padding:4px}#page>.analytics-grid{grid-template-columns:repeat(var(--metric-count,6),minmax(0,1fr))}#page .analytic{min-height:65px}#page .analytic b{font-size:16px}}

/* V1.8.2: scoped sales and account layout */
#page #salesReport #salesTable{width:100%;min-width:0}
#page #salesReport #salesTable .scroll{width:100%;overflow-x:auto}
#page #salesReport #salesTable table.sales-table{width:100%;min-width:1100px;table-layout:auto}
#page #salesReport #salesTable table.sales-table th{ text-align:center }
#page #salesReport #salesTable table.sales-table td{padding:10px 12px}
#page[data-view="Ganti Password"]{max-width:none;width:100%;min-height:360px}
#page[data-view="Ganti Password"] #changePassword{width:100%;max-width:620px;margin:24px auto 32px;padding:24px;border:1px solid #dce5ef;border-radius:12px;background:#f8fafc;box-sizing:border-box}
#changePassword label{display:block;margin:12px 0 6px}
#changePassword input{width:100%;min-height:44px;box-sizing:border-box}
#changePassword button{min-height:44px;margin-top:12px}
@media(max-width:800px){#page[data-view="Ganti Password"] #changePassword{padding:16px;margin:16px auto}#changePassword button{width:100%}#changePassword input{font-size:16px}}
@media print{#page #salesReport #salesTable table.sales-table{min-width:0!important;width:100%}#page #salesReport #salesTable table.sales-table td{padding:4px}}
