@import url('./brand/identity.css');
:root{font-family:Montserrat,"Segoe UI",system-ui,sans-serif;color:#0B0F14;background:#F2F1EE;font-size:14px;color-scheme:light}*{box-sizing:border-box}html{scrollbar-gutter:stable!important}body{margin:0;width:100%}main{max-width:1280px;margin:auto;padding:42px 24px;min-width:0}header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}header>div{min-width:0}small{font-size:10px;letter-spacing:1px;color:#5D626A}h1{font-family:Anton, Impact, sans-serif;font-size:clamp(28px,4vw,42px);font-weight:400;letter-spacing:-1px;margin:12px 0;overflow-wrap:anywhere}h2{font-family:Anton, Impact, sans-serif;font-size:24px;font-weight:400;margin:0 0 8px}p,footer,#updated{font-size:13px;color:#5D626A;line-height:1.7;overflow-wrap:anywhere}section,article{min-width:0;background:#fff;border:1px solid #CFCFCF;border-radius:10px;padding:24px;margin-bottom:24px}#login{max-width:440px}form{display:grid;gap:18px}label{display:grid;gap:8px;font-size:12px;color:#0B0F14;min-width:0}input,select,button{font:inherit;border:1px solid #5D626A;border-radius:6px;padding:11px 13px;color:#0B0F14;background:#fff;min-width:0;min-height:44px}input{width:100%}input::placeholder{color:#5D626A}button{background:#0B0F14;color:white;cursor:pointer;font-size:12px;font-weight:600}select{cursor:pointer}button:hover:enabled{background:#0B0F14}button:active:enabled{background:#0B0F14}button:disabled{opacity:.5;cursor:not-allowed}input:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #0B0F14;outline-offset:3px}.toolbar{display:flex;align-items:end;gap:16px;flex-wrap:wrap;margin-bottom:24px}.toolbar label{min-width:200px;max-width:100%}#updated{margin-left:auto}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.metrics article{padding:20px}.metrics strong{display:block;font-size:clamp(23px,2.5vw,32px);font-weight:600;margin-top:14px;overflow-wrap:anywhere;letter-spacing:-.7px}.metrics p{font-size:11px;margin-bottom:0}.branchCards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr));gap:14px}.branchCard{background:#F2F1EE;border:1px solid #CFCFCF;border-radius:7px;padding:18px;min-width:0;overflow-wrap:anywhere}.branchCard strong{display:block;margin-bottom:10px}.branchCard p{margin:8px 0 0;font-size:12px}.branchCard dl{display:grid;grid-template-columns:1fr auto;gap:8px;margin:14px 0 0;font-size:12px}.branchCard dd{margin:0;font-weight:600}.status{color:#0B0F14}.stale{color:#795019}.filters{display:flex;gap:16px;align-items:end;flex-wrap:wrap;margin:20px 0}.filters label:first-child{flex:1;min-width:min(100%,240px)}.filters select{width:100%}.scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px;table-layout:fixed}td,th{padding:14px 10px;border-bottom:1px solid #CFCFCF;text-align:left;overflow-wrap:anywhere;vertical-align:top}th{font-size:11px;color:#5D626A;background:#F2F1EE}td.empty{text-align:center;padding:35px 15px;color:#5D626A}.pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding-top:18px;font-size:12px}.pagination>div{display:flex;gap:8px}.secondary{background:white;color:#0B0F14}.secondary:hover:enabled{color:white}.sectionHeading p{margin:0;max-width:800px}#message{color:#795019;border:1px solid #ab8537;background:#fff3d6;padding:12px 16px;border-radius:6px}.demoNotice{background:#fff3d6;border:1px solid #ab8537;color:#60471d;border-radius:6px;padding:12px 16px;margin-bottom:24px;font-size:13px}footer{text-align:center;margin:25px 0}[hidden]{display:none!important}.skip{position:absolute;left:15px;top:-100px;background:white;color:#0B0F14;padding:12px;z-index:5}.skip:focus{top:12px}.bbp-owner-popup{font-family:Montserrat,"Segoe UI",system-ui,sans-serif!important;border:1px solid #CFCFCF!important;border-radius:12px!important;color:#0B0F14!important}.bbp-owner-popup .swal2-title{font-family:Anton, Impact, sans-serif;font-weight:400}.bbp-owner-popup .swal2-html-container{font-size:14px;line-height:1.7;color:#5D626A}.bbp-owner-popup .swal2-styled{border-radius:6px;font-size:13px}.swal2-loader{border-color:#0B0F14 transparent #0B0F14 transparent!important}#refresh{min-width:100px}
@media(max-width:1000px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){main{padding:24px 14px}header{align-items:start;gap:12px}header>button{flex-shrink:0}section{padding:18px}.metrics{gap:12px}.metrics article{padding:16px;margin-bottom:4px}.metrics small{font-size:9px;letter-spacing:.4px}.metrics p{font-size:11px}#updated{width:100%;margin:0}.filters{display:grid}.toolbar label{flex:1;min-width:0}.scroll{overflow:visible}table,tbody,tr,td{display:block;width:100%}thead{display:none}tbody{display:grid;gap:12px}tr{border:1px solid #CFCFCF;border-radius:6px;overflow:hidden}td{display:grid;grid-template-columns:92px minmax(0,1fr);gap:12px;padding:10px 12px;text-align:right}td::before{content:attr(data-label);color:#5D626A;font-weight:600;text-align:left}td:last-child{border:0}td.empty{display:block}.pagination{font-size:12px}h2{font-size:23px}}
@media(max-width:360px){.metrics{grid-template-columns:1fr}.metrics strong{font-size:30px}header{flex-wrap:wrap}.toolbar{gap:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
.reportFilters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-top:20px}.reportFilters label{flex:1;min-width:140px}.reportFilters input,.reportFilters select{width:100%}.reportSummary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;border-top:1px solid #CFCFCF;border-bottom:1px solid #CFCFCF;padding:20px 0;margin:16px 0}.reportSummary dt{font-size:12px;color:#5D626A}.reportSummary dd{font-size:28px;margin:6px 0 0;color:#0B0F14;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.reportDays{max-height:360px}@media(max-width:650px){.reportFilters{display:grid;grid-template-columns:minmax(0,1fr)}.reportFilters label{min-width:0}.reportSummary{grid-template-columns:1fr;gap:16px}.reportDays{max-height:none}}
.report-download{display:inline-flex;align-items:center;justify-content:center;gap:7px}.report-download svg{flex-shrink:0}
.pagination>div{flex-wrap:wrap}.page-tabs{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;max-width:100%}.page-number{min-width:36px;padding:8px}.page-number[aria-current=page]:disabled{background:#0B0F14;color:white;opacity:1}
.products-heading{width:32%}.sale-products ul{list-style:none;margin:0;padding:0;display:grid;gap:12px}.sale-products strong,.sale-products span{display:block;line-height:1.5}.sale-products strong{font-weight:600}.sale-products span{color:#5D626A;margin-top:3px;font-size:11px}
@media(max-width:650px){td.sale-products{display:block;text-align:left}td.sale-products::before{display:block;margin-bottom:10px}.sale-products span{font-size:12px}}
.scroll{max-height:min(430px,55vh);overflow:auto}.scroll thead th{position:sticky;top:0;z-index:1}
/* Center the signed-out workspace; short screens can still scroll naturally. */
body:has(#login:not([hidden])) main{width:100%;max-width:none;min-height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 20px}
body:has(#login:not([hidden])) header{display:block;width:100%;max-width:520px;text-align:center;margin:0 0 24px}
body:has(#login:not([hidden])) header small{overflow-wrap:anywhere}
body:has(#login:not([hidden])) #login{width:100%;max-width:440px;flex-shrink:0;margin:0}
body:has(#login:not([hidden])) #message{width:100%;max-width:440px;margin:16px 0 0}
body:has(#login:not([hidden])) #demoNotice{width:100%;max-width:440px;margin:0 0 20px}

h1,h2,h3,.swal2-title {text-transform:uppercase;letter-spacing:.015em;}

header {background:#0B0F14;color:white;padding:22px;border-bottom:4px solid #C1080B;}
header>div::before {content:'';display:block;width:108px;height:42px;background:white var(--bilog-logo) center/88% auto no-repeat;margin-bottom:14px;}
header p,header small {color:white;}
body:has(#login:not([hidden])) header>div::before {margin-inline:auto;}
button {background:#C1080B;}button:hover:enabled {background:#980609;}
button.secondary {background:white;color:#0B0F14;}button.secondary:hover:enabled {background:#0B0F14;color:white;}

.inventory-product{display:flex;align-items:center;gap:8px;overflow-wrap:anywhere}.inventory-product img{width:40px;height:48px;object-fit:cover;border-radius:4px;flex:none}
.sale-products details{margin-top:10px;border-top:1px solid var(--bilog-silver);padding-top:8px}.sale-products summary{cursor:pointer;font-weight:700;color:var(--bilog-red)}.sale-products details p{font-size:12px;margin:6px 0}

/* Bilog logo clear space and type hierarchy from the client guide. */
header { border-bottom-color: var(--bilog-red); padding: 28px; }
header > div::before { width: 180px; height: 54px; background: var(--bilog-logo-dark) center / contain no-repeat; margin: 0 0 20px; }
header h1 { color: white; }
header small { font-weight: 700; letter-spacing: .06em; }
h1, h2, .metrics strong { font-family: Anton, Impact, sans-serif; font-weight: 400; letter-spacing: .015em; }
.metrics article:first-child { background: var(--bilog-black); border-color: var(--bilog-black); }
.metrics article:first-child small, .metrics article:first-child strong, .metrics article:first-child p { color: white; }
.metrics strong { font-variant-numeric: tabular-nums; }
.reportSummary dd { color: var(--bilog-black); }
button { background: var(--bilog-red); border-color: var(--bilog-red); }
button.secondary { border-color: var(--bilog-muted); }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline-color: var(--bilog-muted); }

.password-field{display:grid;gap:8px;min-width:0}
.password-control{display:block;position:relative;min-width:0;width:100%}
.password-control input{width:100%;min-height:46px;padding-right:54px}
.password-control .password-toggle{position:absolute;right:1px;top:1px;bottom:1px;width:44px;min-height:44px;padding:0;display:flex;align-items:center;justify-content:center;border:0;border-radius:5px;background:transparent;color:var(--bilog-muted)}
.password-control .password-toggle:hover:enabled{background:#F2F1EE;color:var(--bilog-black)}
.password-control .password-toggle:focus-visible{outline:2px solid var(--bilog-muted);outline-offset:-3px}
.password-toggle .eye-hide,.password-toggle[aria-pressed=true] .eye-show{display:none}
.password-toggle[aria-pressed=true] .eye-hide{display:block}
.swal2-input:focus,.swal2-textarea:focus,.swal2-select:focus{border-color:var(--bilog-muted)!important;box-shadow:none!important;outline:2px solid var(--bilog-muted);outline-offset:2px}
th { color: var(--bilog-black); }
.bbp-owner-popup .swal2-title { color: var(--bilog-black); letter-spacing: .015em; }
@media (max-width: 650px) { header { padding: 22px 18px; } }
.sale-payment{font-size:12px;line-height:1.6;margin:8px 0;overflow-wrap:anywhere}


#profitCurrent,#profitTotals{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));margin-top:20px}#profitCurrent small{display:block;line-height:1.6;color:#5D626A}#profitMessage{line-height:1.7}#profitForm button{align-self:end}#profitTitle~p{line-height:1.7}
.stock-state{display:inline-block;padding:5px 9px;border:1px solid;font-size:12px;font-weight:600}.stock-state.green,.branchCard .status{color:#14532D;background:#DCF3E5;border-color:#4A8060}.stock-state.red{color:#8E1116;background:#FDE4E3;border-color:#BA5458}.stock-state.orange,.branchCard .stale{color:#7C3907;background:#FFF0D6;border-color:#B36A19}.stock-state.neutral{color:#39424E;background:#ECEFF2;border-color:#78838E}
@media(max-width:1000px){#profitCurrent{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){#profitCurrent{grid-template-columns:1fr}}
.void-summary{border-left:3px solid #C1080B;background:#F2F1EE;color:#0B0F14;padding:12px 14px;line-height:1.65;overflow-wrap:anywhere}.void-flag{color:#C1080B;font-weight:700}.sale-products details summary{min-height:44px;cursor:pointer;padding:10px 0}#sales td>small{display:block;color:#5D626A;margin-top:6px}
.salesHistory h3{font-family:Anton,Impact,sans-serif;font-weight:400;font-size:24px;line-height:1.25;margin:0}
.salesHistory .reportHeading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:24px}
.report-help{min-height:44px;background:transparent;border-color:transparent;font-weight:500}
.reportFinancial{grid-template-columns:repeat(4,minmax(0,1fr))}
.reportFinancial small{display:block;margin-top:8px;font-size:11px;line-height:1.6}
.report-stock-details{font-size:12px;margin:16px 0}
.report-stock-details summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:600}
.report-stock-details summary::before{content:'+';margin-right:10px;font-size:18px}
.report-stock-details[open] summary::before{content:'−'}
.report-stock-details .reportSummary{grid-template-columns:repeat(2,minmax(0,1fr))}
.report-cost-warning{padding:12px;background:#FFF0D6;color:#7C3907;border:1px solid #B36A19;border-radius:6px}
.recent-transactions{border-top:1px solid #CFCFCF;margin-top:24px;padding-top:24px}
@media(max-width:1000px){.reportFinancial{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.reportFinancial,.report-stock-details .reportSummary{grid-template-columns:minmax(0,1fr)}}
