/* KREL shared workspace theme */
:root{--brand:#c51e2e;--brand-dark:#9f1725;--brand-soft:#fff0f1;--accent:#ffcf32;--accent-soft:#fff9e6;--canvas:#f6f5f7;--surface:#fff;--ink:#24242a;--muted:#74717c;--line:#e7e3e8;--shell:#151b29;--radius:12px;--shadow:0 3px 18px #25202a06;--focus:0 0 0 3px #c51e2e18;color-scheme:light}
body{background:var(--canvas);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.5}h1,h2,h3{color:var(--ink);letter-spacing:-.025em}h1{font-weight:780}h2,h3{font-weight:700}p,footer,.small{color:var(--muted)}a{color:var(--brand-dark);text-underline-offset:3px}a:hover{color:var(--brand)}section,.card,.auth-box{background:var(--surface);border-color:var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.cards .card{border-top-color:var(--brand)}.metric{color:var(--ink);font-variant-numeric:tabular-nums}.topbar{border-color:var(--line)}.topbar h1{color:var(--ink)}#breadcrumb{color:var(--brand-dark);font-size:10px;letter-spacing:1.5px;font-weight:700}.identity span{color:var(--muted)}
button{background:var(--brand);color:#fff;border-radius:9px;min-height:40px;padding:10px 16px;font-weight:600;transition:background .15s,box-shadow .15s}button:hover:not(:disabled){background:var(--brand-dark)}button.secondary,.secondary{background:#f1eef2;color:#51434b;border:1px solid var(--line)}button.secondary:hover:not(:disabled){background:var(--brand-soft);border-color:#eec7cd;color:var(--brand-dark)}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--brand);outline-offset:3px}button:disabled{opacity:.45;cursor:not-allowed}td button{background:var(--brand-soft);color:var(--brand-dark);border-radius:7px;min-height:32px;font-weight:600;padding:6px 10px;margin:2px}td button:hover:not(:disabled){background:var(--brand);color:#fff}
label{color:#68616b;font-weight:550;font-size:12px}input,select,textarea{font:inherit;color:var(--ink);background:var(--surface);border:1px solid #dcd5df;border-radius:8px;padding:10px 12px;width:100%;min-height:42px;line-height:1.4;accent-color:var(--brand)}textarea{resize:vertical}input:hover,select:hover,textarea:hover{border-color:#c9bdcd}input:focus,select:focus,textarea:focus{outline:0;border-color:var(--brand);box-shadow:var(--focus)}input:disabled,select:disabled,textarea:disabled{background:#f7f5f8;color:#8e8491;cursor:not-allowed}input::placeholder,textarea::placeholder{color:#a39aa6;font-size:12px}input[type=checkbox],input[type=radio]{width:auto;min-height:0;accent-color:var(--brand)}input[type=file]{background:#faf8fb;border:1px dashed #cfc3d2}input[type=file]::file-selector-button{background:var(--brand-soft);border:0;border-radius:6px;color:var(--brand-dark);padding:8px 12px;margin-right:12px;font:inherit;font-weight:600}
.notice,.order-tracking-box{background:var(--accent-soft);color:#6d4e00;border:1px solid #f0dfa3;border-radius:10px}.notice p{color:inherit}.warn{color:#8a5509}.error{color:#a71528!important}.success{color:#216644!important}.badge,.role-chip{background:var(--accent-soft);color:#735716;border:1px solid #f0dfa3;font-weight:650}.permission-box,.permission-editor{border-color:var(--line);border-radius:var(--radius)}.permission-choice{color:#51434b}.form-message{color:var(--muted)}#status{background:#efecf1;color:#766b7a;border:1px solid var(--line)}
th{background:#f8f5f8;color:#827582;font-weight:650;font-size:10px;letter-spacing:.065em;padding:12px 10px;border-bottom:1px solid var(--line)}td{border-color:var(--line);padding:11px 10px;color:#423b46}tr:hover>td{background:#fdfafb}td input,td select{background:#fff}table{border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums}.scroll{border-radius:9px}summary{cursor:pointer;color:#60505b;font-weight:600;padding:10px 0}summary:hover{color:var(--brand)}details[open]>summary{color:var(--brand-dark)}
dialog,dialog.order-dialog{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:16px;box-shadow:0 28px 90px #1b142c30}dialog::backdrop{background:#15132099;backdrop-filter:blur(3px)}dialog h2{color:var(--brand-dark)}.order-step{border-color:var(--line)}.order-item-card,.return-item,.return-order,.order-quick-product,.import-payment-card{border-color:var(--line);border-radius:var(--radius);background:var(--surface)}.order-totals{background:#f6f2f6;border:1px solid var(--line);border-radius:var(--radius)}.order-totals span{color:#867887;font-size:11px;font-weight:600}.order-totals strong{color:var(--ink);font-variant-numeric:tabular-nums}.order-totals>div:last-child strong,.order-line-net strong{color:var(--brand-dark)}.order-checkout-bar,.return-summary,.import-plan-actions{background:var(--accent-soft);border-color:#f0dfa3}.return-steps span{background:var(--accent-soft);color:#72551b;border:1px solid #f0dfa3}.return-item.selected{background:var(--brand-soft);border-color:var(--brand)}.order-inline-search{background:#f8f5f8;border:1px solid var(--line)}.order-discount-options,.import-card-fees{border-color:var(--line)}.import-card-result{background:#f8f4f7;border:1px solid var(--line)}.import-card-result strong{color:var(--brand-dark)}.import-card-result>div>span{color:#847584}.import-overview{border-top-color:var(--brand)}
.auth-screen{background:radial-gradient(ellipse at top right,#663144 0%,#202031 45%,#151b29 100%)}.auth-box{border:1px solid #ffffff30;border-top:5px solid var(--accent);box-shadow:0 28px 90px #0004}.auth-logo{color:var(--brand);font-weight:800}.auth-note{color:var(--muted)}.auth-box button{background:var(--brand)}
aside{background:linear-gradient(165deg,#242131 0%,var(--shell) 100%);border-right-color:#302b3e}.sidebar-mark{background:linear-gradient(145deg,#df3546,var(--brand-dark));border-bottom-color:var(--accent)}.sidebar-brand h2{color:#fff}.sidebar-brand h2 span{color:var(--accent)}.sidebar-brand p{color:#a69bae}.sidebar-group-label{color:#918397!important}aside nav button{background:transparent;color:#c8bed0;font-weight:500;border:0}aside nav button:hover:not(:disabled){background:#ffffff0b;color:#fff}aside nav button.active,aside nav button.active:hover:not(:disabled){background:linear-gradient(100deg,#a52034,#802039);box-shadow:inset 3px 0 var(--accent),0 3px 12px #0002;color:#fff;font-weight:700}aside nav button.active:after,.sidebar-access-dot{background:var(--accent)}aside nav button:focus-visible{outline-color:var(--accent)}.sidebar-icon{color:#a393b0}.active .sidebar-icon{color:var(--accent)}.sidebar-foot-label{color:#a394ac}.aside-foot strong{color:#e3dbe8}.sidebar-brand .sidebar-mark{color:white}
@media(prefers-reduced-motion:reduce){button{transition:none}.page{animation:none}}
@media(max-width:760px){th{padding:10px 7px}td{padding:9px 7px}.topbar h1{font-size:23px}.auth-box{padding:27px}}

#appProductButtons{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.app-product-choice{display:flex;flex-direction:column;gap:10px;padding:16px;border:1px solid #ecd9d6;border-radius:14px;background:#fffdf8}.app-product-choice strong{min-height:40px}.app-product-choice button{text-align:left}

#piItems .order-item-card{display:grid;grid-template-columns:2fr 1fr 100px 150px auto;align-items:end;gap:12px;margin-bottom:12px}#piProductResults{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}@media(max-width:900px){#piItems .order-item-card{grid-template-columns:1fr 1fr}#piItems .order-item-card label:first-child{grid-column:1/-1}}
