body.owner-view{background:#faf6f1;margin:0}
.owner-view :is(footer,#mode,.floating-contact),.owner-view>header{display:none}
.owner-view main#main{width:100%;max-width:none;padding:0;margin:0}
#ow{--line:#e9ddd2;--rose:#985e51;color:#382c27;font:12px/1.5 Arial,sans-serif;display:grid;grid-template-columns:226px minmax(0,1fr);min-height:100vh;text-align:left}
#ow *{box-sizing:border-box;letter-spacing:normal}
#ow :is(h1,h2,h3,p,small,button,aside,section,input,select,textarea,article,fieldset){all:revert;box-sizing:border-box;color:inherit;font:inherit;margin:0}
#ow :is(h1,h2){font:normal 36px Georgia,serif}
#ow h2{font-size:24px}
#ow h3{font:bold 17px Arial}
#ow p,#ow small{display:block;color:#826f66;margin:6px 0;font-size:12px}
#ow small{font-size:11px;margin:3px 0}
#ow aside{background:#f3ece4;padding:28px 16px;border-right:1px solid var(--line);position:sticky;top:0;height:100vh;display:flex;flex-direction:column;overflow:auto}
#ow aside h2{color:var(--rose);font-size:27px;margin-left:12px}
#ow aside>small,#ow aside h4{letter-spacing:2px;font-size:10px;margin-left:12px}
#ow aside h4{margin-top:36px;color:#907969}
#ow .base{margin:auto 12px 0;padding-top:20px;border-top:1px solid var(--line)}
#ow section{padding:0 32px 40px;min-width:0}
#ow :is(.heading,.bar,.tools,.notice,.identity,.end){display:flex;align-items:center;gap:10px}
#ow .bar{height:64px;border-bottom:1px solid var(--line);justify-content:space-between;color:#79675e}
#ow .bar strong,#ow i{background:#efe2d8;color:var(--rose);padding:7px;border-radius:50%}
#ow .heading{margin:26px 0 18px}
#ow .heading>div,#ow .tools select{margin-right:auto}
#ow button,#ow :is(input:not([type=checkbox]),select,textarea){border:1px solid var(--line);border-radius:7px;padding:9px 12px;background:#fffdfa;min-width:0}
#ow button{cursor:pointer;font-weight:bold}
#ow button:hover,#ow button.active{background:#eadacf;color:var(--rose)}
#ow button.primary{background:var(--rose);color:white;border-color:var(--rose)}
#ow button:disabled{opacity:.55}
#ow aside button,#ow .link,#ow .tabs button{background:transparent;border:none;color:#6b554b;text-align:left;font-weight:400}
#ow aside button{font-size:14px;padding:12px}
#ow aside button span{margin-right:12px}
#ow .metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
#ow .metric,#ow .box{background:#fffdfa;border:1px solid var(--line);border-radius:10px;overflow:hidden}
#ow .metric{text-align:left;padding:18px;font-weight:400;color:#806d64}
#ow .metric b{display:block;font-size:28px;color:#382c27;margin:8px 0 0}
#ow i{float:right;font:16px Arial;border-radius:6px}
#ow .notice{margin:22px 0;background:#f6ebd9;color:#81551c;border:1px solid #ebd9b7;border-radius:8px;padding:9px 16px;justify-content:space-between}
#ow .notice button,#ow .box button{padding:6px 10px;font-size:11px}
#ow .box .heading{margin:18px}
#ow .tabs{padding:0 18px;display:flex;overflow:auto;gap:18px}
#ow .tabs button{padding:12px 0;white-space:nowrap;font-size:12px;border-radius:0}
#ow .tabs button.active{border-bottom:2px solid var(--rose);background:transparent}
#ow .tools,#ow .pad{padding:14px 18px;border-top:1px solid var(--line)}
#ow .tools input{width:min(350px,45%)}
#ow .scroll{overflow:auto;max-height:65vh}
#ow table{border-collapse:collapse;width:100%;min-width:950px;text-align:left;font-size:12px}
#ow th,#ow td{padding:12px 9px;border-bottom:1px solid var(--line);text-align:left}
#ow th{background:#f6f1eb;position:sticky;top:0;color:#756459;font-size:11px}
#ow td:first-child,#ow th:first-child{padding-left:20px;width:5%}
#ow td:nth-child(2){width:32%}
#ow img{width:38px;height:44px;object-fit:contain;background:#efe6dd;border-radius:5px}
#ow .pill{display:inline-block;font:bold 10px Arial;padding:5px;background:#f8eada;color:#915612;border-radius:4px;white-space:nowrap}
#ow .s1{background:#e6f2e9;color:#26704f}
#ow .s4{background:#efe6f4;color:#754b87}
#ow .link{color:var(--rose);font-weight:bold}
#ow input[type=checkbox]{accent-color:var(--rose);width:15px;height:15px;vertical-align:middle}
#ow dialog{padding:0;border:none;border-radius:12px;background:#fffdfa;color:inherit;width:min(540px,96vw);max-height:95dvh}
#ow dialog::backdrop{background:#32261d55;backdrop-filter:blur(3px)}
#ow dialog.side{margin:0 0 0 auto;width:min(510px,100%);height:100dvh;max-height:100dvh;max-width:100%;border-radius:0}
#ow dialog form{display:flex;flex-direction:column;max-height:95dvh;margin:0}
#ow .side form{height:100%;max-height:100%}
#ow dialog .bar,#ow .end{padding:18px 24px;flex:none;height:auto}
#ow .end{justify-content:flex-end;border-top:1px solid var(--line)}
#ow .fields{padding:22px 24px;overflow:auto;flex:1}
#ow .pair{display:grid;grid-template-columns:1fr 1fr;gap:0 14px;padding:0;border:none;min-width:0}
#ow fieldset:disabled{opacity:.6}
#ow label{display:block;font-weight:bold;min-width:0;margin:8px 0}
#ow label :is(input:not([type=checkbox]),select,textarea){display:block;width:100%;margin-top:5px;font-weight:400}
#ow textarea{min-height:85px}
#ow .note{background:#f6eee6;padding:14px;border-radius:7px;margin:10px 0;overflow:auto}
#ow .note img{float:left;width:70px;height:80px;margin-right:14px}
#ow article{border-top:1px solid var(--line);padding:20px 0;overflow-wrap:anywhere}
#ow [role=alert]{color:#a23121}
@media(max-width:1100px){
#ow{display:block}
#ow aside{height:auto;flex-direction:row;position:static;align-items:center;padding:8px;white-space:nowrap}
#ow aside :is(h4,small,.base){display:none}
#ow section{padding:0 12px 20px}
#ow .heading,#ow .tools{flex-wrap:wrap}
#ow .metrics{grid-template-columns:1fr 1fr;gap:6px}
#ow .metric{padding:10px}
#ow .metric b{font-size:21px}
#ow .bar{height:44px}
#ow .heading{margin:14px 0}
#ow .tools input{width:100%}
#ow .pair{grid-template-columns:1fr}
}
@media(max-width:1100px){
#ow aside{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;overflow:visible}
#ow aside h2{grid-column:1/-1;margin:4px 8px 10px;font-size:23px}
#ow aside button{white-space:normal;padding:8px 3px;text-align:center;font-size:12px}
#ow aside button span{display:none}
#ow .tabs button{flex:none}
#ow .scroll{max-height:none}
}
@media(max-width:700px){
#ow table,#ow tbody{display:block;min-width:0}
#ow thead{display:block}
#ow thead th:not(:first-child){display:none}
#ow thead th:first-child{display:flex;width:100%;gap:8px}
#ow thead th:first-child:after{content:'Select all filtered products'}
#ow tbody tr{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:12px;align-items:center;border-bottom:1px solid var(--line)}
#ow tbody td{width:auto!important;padding:4px;border:none;overflow-wrap:anywhere}
#ow tbody td:first-child{grid-column:1;grid-row:1;text-align:center}
#ow tbody td:nth-child(2){grid-column:2/-1;grid-row:1}
#ow tbody td:nth-child(3){grid-column:2/-1;grid-row:2;font-weight:bold}
#ow tbody td:nth-child(4):before{content:'On hand'}
#ow tbody td:nth-child(5):before{content:'Reserved'}
#ow tbody td:nth-child(6):before{content:'Available'}
#ow tbody td:nth-child(7):before{content:'Incoming'}
#ow tbody td:before{display:block;font-size:10px;color:#826f66}
#ow tbody td:nth-child(8){grid-column:span 2}
#ow tbody td:last-child{display:flex}
#ow tbody td:last-child button{padding:6px}
#ow .metrics .metric{min-width:0;overflow-wrap:anywhere}
}
#ow .box button.quick-cell{display:inline-block;max-width:100%;background:transparent;color:inherit;font:inherit;text-align:left;border:1px solid transparent;padding:4px 5px;margin:-4px -5px;border-radius:4px;overflow-wrap:anywhere;cursor:pointer}
#ow .box button.quick-cell:is(:hover,:focus-visible){background:#f8eee7;border-color:#c49789;color:#733d34}
#ow [data-review]{font-weight:bold;overflow-wrap:anywhere}
@media(hover:none){#ow .box button.quick-cell{text-decoration:underline dotted #ad8478;text-underline-offset:4px}}
#main #sandbox-login{width:min(420px,92vw);margin:10vh auto;padding:28px;background:#fffcf8;border:1px solid #e8d7c8}
#sandbox-login h1{font:34px Georgia,serif;margin:0}
#sandbox-login :is(input,button){display:block;width:100%;margin:6px 0 16px;padding:12px}
#sandbox-login button{background:#824f42;color:white}
#ow #sandbox-exit{margin-left:auto}
#ow .filters{display:flex;gap:12px;flex-wrap:wrap;align-items:end}
#ow .filters label{display:grid;gap:6px;min-width:0;flex:1 1 145px}
#ow .filters :is(input,select){width:100%;min-width:0}
#ow .results{margin:16px 0;min-width:0}
#ow .ledger{overflow:auto}
#ow .ledger table{min-width:740px;width:100%}
#ow .ledger td{white-space:normal;overflow-wrap:anywhere}
#ow .brief{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:#f6ece3}
#ow .brief strong{font-size:24px}
#ow .trends{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:16px}
#ow .trends section{max-height:330px;overflow:auto}
#ow .trend{display:grid;grid-template-columns:78px minmax(30px,1fr) auto;align-items:center;gap:8px;font-size:12px;margin:10px 0}
#ow .trend meter{width:100%;height:15px}
#ow .trend meter::-webkit-meter-optimum-value{background:#985d4e}
