:root{--ink:#302c29;--muted:#716964;--accent:#dcad93;--line:#e4ded9;--paper:#fff;--bg:#f5f4f2;--dark:#272724;--focus:#925030;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-size:16px}*{box-sizing:border-box}body{margin:0}a{color:#794c32;text-decoration-thickness:1px;text-underline-offset:3px}a:hover{color:#38251b}button,.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;border:1px solid var(--ink);border-radius:8px;background:var(--ink);color:white;padding:12px 18px;font:inherit;font-weight:650;font-size:.9rem;cursor:pointer;text-decoration:none;line-height:1.4;min-height:44px}button:hover,.button:hover{background:#49423d;color:white}button.secondary,.button.secondary{border-color:#cfc5be;background:white;color:var(--ink)}button.secondary:hover,.button.secondary:hover{background:#f6eee7}.ghost{background:transparent;border-color:#696b65;color:#fff}.ghost:hover{background:#45463f}input{font:inherit;font-size:1rem;min-width:0;width:100%;min-height:46px;padding:11px 12px;border:1px solid #bfb7b0;border-radius:7px;color:var(--ink);background:#fff}input:focus,button:focus-visible,a:focus-visible{outline:3px solid var(--accent);outline-offset:3px}label{display:block;font-size:.9rem;font-weight:600;line-height:1.5;margin:16px 0}label input{display:block;margin-top:6px}p{line-height:1.65;color:var(--muted);margin:10px 0 18px}h1{font-size:2rem;letter-spacing:-.04em;font-weight:650;margin:5px 0 15px;line-height:1.18}h2{font-size:1.25rem;letter-spacing:-.025em;margin:0 0 10px;line-height:1.3}h3{font-size:1rem;margin:0 0 10px}small,.hint{font-size:.83rem;line-height:1.55;color:var(--muted)}small{display:block;margin-top:6px}strong{font-weight:650}hr{border:0;border-top:1px solid var(--line);margin:28px 0}.workspace{display:grid;grid-template-columns:226px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--dark);color:#f7f6f1;padding:28px 20px;display:flex;flex-direction:column;min-width:0}.brand{display:block;color:#fff;text-decoration:none;padding:0 12px 32px}.brand:hover{color:#fff}.brand img{display:block;width:142px;height:79px;object-fit:contain;background:#fff;border-radius:8px;margin:0 0 16px}.brand span{font-size:1.35rem;font-weight:600;letter-spacing:-.02em}.sidebar nav{display:flex;flex-direction:column;gap:7px}.sidebar nav a{padding:13px 14px;border-radius:8px;color:#ddded7;text-decoration:none;font-size:.95rem}.sidebar nav a[aria-current]{color:#252420;background:var(--accent);font-weight:650}.sidebar nav a:hover:not([aria-current]){background:#3e3f39}.sidebar-foot{margin-top:auto;padding:70px 12px 0}.sidebar-foot p,.sidebar-foot small{color:#bcbeb3}.test-tag{font-size:.72rem;letter-spacing:.11em;color:#e3bd99}.sidebar-foot small{margin-top:28px}.workspace main{padding:38px clamp(20px,4vw,62px);min-width:0;max-width:1700px;width:100%;margin:auto}.top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.eyebrow{font-size:.74rem;font-weight:650;letter-spacing:.13em;margin:0 0 8px;color:var(--muted)}.mode{border:1px solid #dbbfaa;color:#815537;background:#fff7ee;border-radius:30px;padding:8px 13px;font-size:.83rem;white-space:nowrap}.panel{padding:27px;background:var(--paper);border:1px solid var(--line);border-radius:12px;margin-bottom:24px;box-shadow:0 2px 3px #302c2903;min-width:0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.panel-head p{margin-bottom:0;font-size:.9rem}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:24px}.metrics>div{background:white;border:1px solid var(--line);border-radius:10px;padding:22px 25px}.metrics span{display:block;font-size:.9rem;color:var(--muted)}.metrics strong{display:block;font-size:2.1rem;margin-top:13px;letter-spacing:-.05em;font-variant-numeric:tabular-nums}.metrics>div:last-child{border-top:3px solid var(--accent);padding-top:20px}.notice,.error{padding:16px 20px;margin-bottom:22px;line-height:1.6;border-radius:8px;overflow-wrap:anywhere}.notice{background:#e9f2ed;border:1px solid #bbd5c4;color:#29503c}.error{background:#fff0e9;border:1px solid #dfad92;color:#85391e}.sync{display:flex;flex-wrap:wrap;align-items:end;gap:24px}.inline{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.inline label{margin:0}.sync .inline:last-child{margin-left:auto}.sync input{max-width:185px}.search{display:flex;gap:9px;min-width:0;max-width:390px}.search input{font-size:.9rem}.table-scroll{overflow:auto;max-width:100%;overscroll-behavior-inline:contain}table{width:100%;border-collapse:collapse;font-size:.9rem;text-align:left}th{font-size:.76rem;text-transform:uppercase;letter-spacing:.04em;font-weight:650;color:var(--muted);border-bottom:1px solid #cfc5bc;padding:15px 12px;white-space:nowrap}td{border-bottom:1px solid #eee8e3;padding:17px 12px;vertical-align:top;line-height:1.55;overflow-wrap:anywhere;min-width:90px}th:first-child,td:first-child{padding-left:0}td:first-child{min-width:145px}tbody tr:last-child td{border-bottom:0}.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.total{font-weight:650}.order-link{font-weight:650;text-decoration:none}.status{display:inline-block;border-radius:6px;padding:5px 8px;font-size:.79rem;line-height:1.4;max-width:240px}.status.ready{background:#edf3ee;color:#38523e}.status.waiting{background:#f4eee6;color:#765935}.pagination{display:flex;align-items:center;justify-content:flex-end;gap:20px;margin-top:22px;font-size:.9rem;flex-wrap:wrap}.pagination span{margin-right:auto;color:var(--muted)}.empty{padding:48px 20px;text-align:center}.empty h2,.empty h3{font-size:1.35rem}.empty p{max-width:460px;margin:12px auto 25px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.parties{display:grid;grid-template-columns:1fr 1fr;gap:25px;border-top:1px solid var(--line);padding-top:25px;margin-bottom:25px;line-height:1.7}.parties h3{font-size:.8rem;text-transform:uppercase;letter-spacing:.07em;color:var(--muted)}.totals{margin:28px 0 0 auto;width:min(100%,390px);border:1px solid #d9c8ba;border-radius:8px;overflow:hidden}.totals>div{display:flex;justify-content:space-between;gap:15px;padding:15px 20px;font-size:.95rem}.totals .grand{background:#f1dfd1;font-size:1.08rem}.totals strong{white-space:nowrap}.document-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:17px 0;border-top:1px solid var(--line)}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.settings-grid .panel{margin:0}.auth{max-width:600px;margin:42px auto;padding:0 20px}.auth-brand{display:block;text-align:center;margin:0 auto 20px}.auth-brand img{width:215px;height:108px;object-fit:contain}.auth .panel{padding:34px}.auth form>button{width:100%;margin-top:12px}.auth-note{text-align:center;font-size:.85rem}.checks{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:.8rem;margin:23px 0}.checks span{padding:7px 9px;border-radius:5px;background:#f5f5f1}.ok{color:#376047}.bad{color:#a32c22}.data-box{padding:14px;background:#f6f4f1;line-height:1.7;font-size:.9rem;overflow-wrap:anywhere}footer{color:var(--muted);font-size:.8rem;margin:32px 0 0}form{margin:0}@media(min-width:1100px){.sidebar{position:sticky;top:0;height:100vh}}@media(max-width:1050px){.workspace{grid-template-columns:185px minmax(0,1fr)}.sidebar{padding:24px 12px}.workspace main{padding:28px 23px}.settings-grid{grid-template-columns:1fr}.panel-head{align-items:start;flex-wrap:wrap}.metrics>div{padding:17px}.metrics span{font-size:.84rem}.sync .inline:last-child{margin-left:0}.panel{padding:22px}}@media(max-width:720px){.workspace{display:block}.sidebar{padding:14px 18px;display:block}.brand{padding:0;margin-bottom:12px;display:flex;align-items:center;gap:14px}.brand img{width:76px;height:43px;margin:0}.brand span{font-size:1.1rem}.sidebar nav{flex-direction:row;overflow:auto;gap:5px}.sidebar nav a{white-space:nowrap;padding:10px 12px;font-size:.86rem}.sidebar-foot{display:flex;align-items:center;gap:12px;padding:12px 0 0;flex-wrap:wrap}.sidebar-foot p{margin:0;font-size:.8rem}.sidebar-foot small{display:none}.sidebar-foot form{margin-left:auto}.sidebar-foot .ghost{padding:5px 10px;font-size:.8rem;min-height:36px}.workspace main{padding:24px 16px}.top{align-items:start;gap:10px}.mode{font-size:.72rem;padding:7px 10px}h1{font-size:1.7rem}.eyebrow{font-size:.65rem}.metrics{gap:9px}.metrics>div{padding:15px 11px}.metrics strong{font-size:1.8rem}.metrics span{font-size:.77rem;line-height:1.4}.metrics>div:last-child{padding-top:13px}.panel{padding:18px}.parties{grid-template-columns:1fr}.search{max-width:100%;width:100%}.toolbar{flex-wrap:wrap}.document-row{flex-wrap:wrap}.inline{width:100%}.inline label{flex:1;min-width:110px}.inline input{max-width:100%}.inline button{flex-shrink:0}.auth{margin-top:25px}.auth .panel{padding:24px}.checks{grid-template-columns:1fr}.num{min-width:90px}footer{line-height:1.6}}@media print{.sidebar,.toolbar,form,.top .mode,footer{display:none!important}.workspace{display:block}.workspace main{padding:0}.panel{border:0;box-shadow:none}.table-scroll{overflow:visible}}

/* 0.2.0: cutover, automatic import and live catalog. */
.scope-line{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 23px;padding:0 2px;line-height:1.5}.scope-line strong{font-size:.95rem}.scope-line>a{font-size:.9rem;flex-shrink:0}.sync-main small{max-width:350px}.sync-progress{width:100%;display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:17px 0 0;border-top:1px solid var(--line)}.sync-progress>div:first-child{margin-right:auto}.sync-progress form{flex-shrink:0}.stock-search{display:flex;align-items:end;gap:16px;flex-wrap:wrap}.stock-search label{margin:0;min-width:150px}.stock-query{flex:1}.stock-search>a{padding:12px 0}.stock-search select{display:block;width:100%;margin-top:6px;min-height:46px;border:1px solid #bfb7b0;border-radius:7px;padding:10px 30px 10px 12px;background:white;color:var(--ink);font:inherit}.stock-search select:focus{outline:3px solid var(--accent);outline-offset:3px}.stock-table td:first-child{min-width:230px;max-width:500px}.stock-quantity{min-width:120px;max-width:210px}.space-top{margin-top:20px}.workspace main{margin:0 auto}.empty{padding:30px 20px}.sidebar nav a{font-size:.9rem}@media(max-width:720px){.scope-line{align-items:start;flex-wrap:wrap;gap:12px}.scope-line>a{flex-shrink:1}.stock-search label{flex:1;min-width:140px}.stock-search .stock-query{flex-basis:100%}.sync-progress{gap:10px}.sync-progress>div:first-child{width:100%}.stock-table td:first-child{min-width:190px}.stock-quantity{white-space:normal}}

.inventory-phases{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:22px 0}.inventory-phases>div{background:#f7f5f2;border:1px solid #e5ddd6;border-radius:12px;padding:18px}.inventory-phases p{margin:8px 0 0}.inventory-phases strong{font-size:1.1rem}.toolbar label:has(input[type=checkbox]){display:flex;align-items:center;gap:10px}.toolbar input[type=checkbox]{width:18px;height:18px;margin:0}.stock-table td{overflow-wrap:anywhere}@media(max-width:760px){.inventory-phases{grid-template-columns:1fr}.inventory-phases>div{padding:14px}}

.ownership-cell{min-width:255px;max-width:310px;vertical-align:top}.ownership-edit{display:grid;gap:8px}.ownership-edit label{font-size:.77rem;margin:0}.ownership-edit select,.ownership-edit input{margin:3px 0 0;min-height:36px;padding:8px;font-size:.82rem}.ownership-edit button{padding:8px 12px;margin:0;justify-self:start}.ownership-edit details,.ownership-history{font-size:.77rem;margin:5px 0}.ownership-select{display:flex;align-items:center;gap:8px;margin-bottom:8px;font-size:.8rem}.ownership-select input,.ownership-bulk input[type=checkbox]{width:17px;height:17px;margin:0}.ownership-bulk{display:flex;flex-wrap:wrap;align-items:end;gap:14px;padding:16px;background:#f7f5f2;border:1px solid #e5ddd6;border-radius:10px;margin:16px 0}.ownership-bulk label{margin:0;font-size:.85rem}.ownership-bulk label:first-of-type{display:flex;align-items:center;gap:8px;padding-bottom:14px}.ownership-help details p{font-size:.9rem}.ownership-edit details[open]{padding:8px;border:1px solid #e5ddd6;border-radius:8px}.ownership-help summary,.ownership-history summary,.ownership-edit summary{cursor:pointer}@media(max-width:760px){.ownership-bulk{display:grid;grid-template-columns:1fr}.ownership-bulk label:first-of-type{padding-bottom:0}}

/* Classification controls share the catalog form styling. */
.ownership-edit select,.ownership-bulk select{display:block;width:100%;margin-top:5px;border:1px solid #bfb7b0;border-radius:7px;background:white;color:var(--ink);font:inherit;line-height:1.4;min-height:40px;padding:8px 28px 8px 10px}.ownership-edit select:focus,.ownership-bulk select:focus{outline:3px solid var(--accent);outline-offset:3px}.ownership-bulk label{flex:1;min-width:210px}.ownership-bulk label:first-of-type{flex-basis:100%;padding-bottom:0}.ownership-select{margin-top:0}.ownership-select input,.ownership-bulk input[type=checkbox]{min-height:17px;flex-shrink:0}.stock-table td:nth-child(2){min-width:155px}.stock-table td:nth-last-child(2){min-width:115px}@media(max-width:760px){.ownership-bulk label{min-width:0}}

.supplier-search{display:flex;align-items:end;gap:16px;flex-wrap:wrap;margin-bottom:24px}.supplier-search label{display:grid;gap:8px;flex:1;min-width:200px;max-width:650px}.supplier-actions{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto;gap:16px;align-items:end;margin:24px 0}.supplier-actions label{display:grid;gap:8px}.supplier-actions select{width:100%;font:inherit;border:1px solid #cbbcb2;border-radius:8px;background:#fff;color:#352e2a;padding:12px;min-height:48px}.supplier-form input[type=checkbox]{width:20px;height:20px;min-height:0;padding:0;margin:0;accent-color:#352e2a}.supplier-form th:first-child,.supplier-form td:first-child{width:44px;padding-left:8px;padding-right:8px}.supplier-form td small{max-width:450px}@media(max-width:1000px){.supplier-actions{grid-template-columns:1fr}.supplier-actions button{justify-self:start}}

/* 0.4.0-beta1: business master data, procurement and inventory foundation. */
.sidebar nav{overflow-y:auto;min-height:0;padding-right:3px}.nav-group{display:block;margin:15px 14px 4px;color:#9fa096;font-size:.62rem;font-weight:700;letter-spacing:.13em}.nav-group:first-child{margin-top:0}.sidebar-foot{padding-top:24px;flex-shrink:0}.quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.quick-grid>a{display:block;border:1px solid var(--line);border-radius:10px;padding:18px;text-decoration:none;color:var(--ink);background:#faf9f7}.quick-grid>a:hover{background:#f6eee7}.quick-grid strong{display:block;margin-bottom:7px}.business-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.metrics.compact{margin:20px 0;grid-template-columns:repeat(3,minmax(0,1fr))}.metrics.compact>div{padding:16px 18px}.metrics.compact strong{font-size:1.6rem}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.business-form select,.business-inline select,textarea{display:block;width:100%;margin-top:6px;border:1px solid #bfb7b0;border-radius:7px;background:#fff;color:var(--ink);font:inherit;padding:11px 12px;min-height:46px}textarea{resize:vertical;line-height:1.5}.business-form fieldset{border:1px solid var(--line);border-radius:9px;padding:14px 16px;margin:18px 0}.business-form legend{font-size:.9rem;font-weight:650;padding:0 7px}.role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 18px}.role-grid label,.toggle-line{display:flex;align-items:center;gap:9px;margin:7px 0;font-weight:500}.role-grid input,.toggle-line input{width:18px;height:18px;min-height:18px;flex:0 0 auto}.business-inline{align-items:end}.business-inline label{margin:0;flex:1;min-width:150px}.product-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.product-summary>div{border:1px solid var(--line);border-radius:9px;padding:15px;background:#faf9f7}.product-summary span{display:block;color:var(--muted);font-size:.78rem;margin-bottom:7px}.product-summary strong{display:block;line-height:1.4}.business-form input[type=checkbox]{min-height:18px}.business-form select:focus,.business-inline select:focus,textarea:focus{outline:3px solid var(--accent);outline-offset:3px}@media(max-width:1100px){.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.role-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.nav-group{display:none}.quick-grid,.form-grid,.product-summary,.role-grid,.business-metrics,.metrics.compact{grid-template-columns:1fr}.sidebar nav{overflow-x:auto;overflow-y:hidden}.business-inline{display:grid;grid-template-columns:1fr;width:100%}.business-inline label{min-width:0}.quick-grid>a{padding:15px}}

/* 0.4.0-beta2: registry-assisted partners and business document drafts. */
.registry-box{display:grid;grid-template-columns:minmax(260px,1fr) minmax(330px,1fr);gap:18px;align-items:end;padding:16px 18px;margin:0 0 22px;background:#f7f5f2;border:1px solid var(--line);border-radius:10px}.registry-box p{margin:6px 0 0;font-size:.88rem;line-height:1.5}.registry-box small{grid-column:1/-1;color:var(--muted)}.registry-form{display:flex;gap:10px;align-items:end}.registry-form input{margin:0;flex:1}.registry-form button{flex-shrink:0}.form-grid .wide{grid-column:1/-1}.doc-type-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.doc-type-tabs a{display:inline-flex;padding:9px 12px;border:1px solid var(--line);border-radius:8px;text-decoration:none;color:var(--ink);background:#faf9f7}.doc-type-tabs a[aria-current="page"]{background:var(--ink);color:#fff}.item-add{margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}@media(max-width:850px){.registry-box{grid-template-columns:1fr}.registry-form{align-items:stretch}.registry-box small{grid-column:auto}}@media(max-width:520px){.registry-form{display:grid;grid-template-columns:1fr}.registry-form button{width:100%}}

/* 0.4.0-beta6: resilient order import and complete parcel timeline. */
.summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}.summary-grid>div{border:1px solid var(--line);border-radius:9px;background:#faf9f7;padding:15px 17px;min-width:0}.summary-grid span{display:block;color:var(--muted);font-size:.78rem;margin-bottom:7px}.summary-grid strong{display:block;line-height:1.45;overflow-wrap:anywhere}.shipment-timeline td:first-child{white-space:nowrap;min-width:150px}.shipment-timeline td:nth-child(2){min-width:105px}.event-source{display:inline-block;padding:4px 7px;border-radius:5px;background:#f1ece7;color:#624936;font-size:.76rem;font-weight:650}.import-issues td:last-child{width:1%;white-space:nowrap}.import-issues button{min-height:38px;padding:8px 12px}@media(max-width:850px){.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.summary-grid{grid-template-columns:1fr}.shipment-timeline td:first-child{white-space:normal}.import-issues td:last-child{white-space:normal}}

/* 0.4.0-beta7: Woo-style order overview and guarded postal refresh. */
/* 0.4.0-beta8: resilient Tracking JSON parser and safe response-shape diagnostics. */

/* 0.4.0-beta12: postal state is integrated into the WooCommerce order view. */
.posta-overview .panel-head{align-items:start}.posta-auto-state{display:inline-block;max-width:430px;padding:8px 11px;border-radius:7px;background:#edf3ee;color:#38523e;font-size:.8rem;line-height:1.45}.postal-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}.postal-metrics>div{border:1px solid var(--line);border-radius:9px;background:#faf9f7;padding:15px 17px}.postal-metrics span{display:block;color:var(--muted);font-size:.78rem}.postal-metrics strong{display:block;font-size:1.55rem;margin-top:7px;font-variant-numeric:tabular-nums}.postal-problems{margin-top:18px;padding:17px 19px;border:1px solid #dfad92;border-radius:9px;background:#fff8f3}.postal-problems h3{font-size:1rem;margin:0 0 5px;color:#76351f}.postal-problems>p{font-size:.85rem;margin:0 0 12px}.postal-problems>div{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(230px,1fr);gap:3px 16px;padding:10px 0;border-top:1px solid #edd8cb}.postal-problems small{grid-column:1/-1;margin:0}.fulfillment-cell{min-width:390px}.shipment-inline{margin-top:12px;padding:12px 13px;border:1px solid #ddd5ce;border-radius:8px;background:#fff}.shipment-inline-head{display:flex;align-items:start;justify-content:space-between;gap:12px}.shipment-inline-head>strong{font-size:.8rem;overflow-wrap:anywhere}.shipment-inline dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 14px;margin:12px 0 0}.shipment-inline dl>div{min-width:0}.shipment-inline dt{font-size:.7rem;color:var(--muted)}.shipment-inline dd{margin:2px 0 0;font-size:.78rem;font-weight:650;overflow-wrap:anywhere}.shipment-latest{font-size:.78rem;margin:11px 0 0;line-height:1.5}.shipment-inline details{margin-top:9px;font-size:.76rem}.shipment-inline summary{cursor:pointer;color:var(--accent-dark);font-weight:650}.shipment-inline ol{margin:9px 0 0;padding-left:20px}.shipment-inline li{padding:7px 0;border-top:1px solid #eee8e3}.shipment-inline li time,.shipment-inline li strong,.shipment-inline li small{display:block}.shipment-inline li time{color:var(--muted)}.shipment-inline li small{margin-top:2px}.orders-table td:nth-child(5){vertical-align:top}@media(max-width:850px){.posta-overview .panel-head{display:block}.posta-auto-state{margin-top:14px}.postal-problems>div{grid-template-columns:1fr}.postal-problems small{grid-column:auto}}@media(max-width:620px){.postal-metrics{grid-template-columns:1fr}.fulfillment-cell{min-width:310px}.shipment-inline dl{grid-template-columns:1fr}}
.order-overview{padding-left:0;padding-right:0}.order-overview>.panel-head,.order-overview>.empty,.order-overview>.pagination{margin-left:27px;margin-right:27px}.order-tabs{display:flex;gap:0;overflow-x:auto;padding:0 27px;border-bottom:1px solid var(--line);white-space:nowrap}.order-tabs a{padding:10px 11px 13px;text-decoration:none;color:var(--muted);border-bottom:3px solid transparent;font-size:.83rem}.order-tabs a:hover{color:var(--ink)}.order-tabs a[aria-current]{color:var(--ink);border-color:var(--accent);font-weight:650}.order-tabs span{color:#8a817b;font-variant-numeric:tabular-nums}.order-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:18px 27px;background:#faf9f7;border-bottom:1px solid var(--line)}.order-filters label{margin:0;min-width:190px}.order-filters label:first-of-type{flex:1;max-width:460px}.order-filters select{display:block;width:100%;margin-top:6px;min-height:46px;border:1px solid #bfb7b0;border-radius:7px;padding:10px 30px 10px 12px;background:white;color:var(--ink);font:inherit}.order-filters>a{padding:12px 2px}.orders-table th:first-child,.orders-table td:first-child{padding-left:27px;min-width:245px}.orders-table th:last-child,.orders-table td:last-child{padding-right:27px}.orders-table tbody tr:nth-child(odd){background:#fafafa}.orders-table tbody tr:hover{background:#fff8f2}.orders-table .order-link{display:block}.order-state,.fulfillment-state,.config-state{display:inline-block;border-radius:5px;padding:5px 9px;font-size:.78rem;font-weight:650;line-height:1.4}.order-state.processing,.fulfillment-state.processing{background:#dcefdc;color:#275d35}.order-state.completed,.fulfillment-state.delivered{background:#dceaf2;color:#244f67}.order-state.pickup,.fulfillment-state.pickup{background:#eee4f5;color:#624679}.order-state.hold{background:#fde5b7;color:#724b08}.order-state.problem,.fulfillment-state.problem{background:#f7d9d5;color:#7b2c24}.order-state.neutral,.fulfillment-state.neutral{background:#ece9e6;color:#5e5650}.fulfillment-link{text-decoration:none;color:inherit}.configuration-warning{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 20px;margin-bottom:22px;border:1px solid #dfad92;border-radius:9px;background:#fff0e9;color:#85391e}.configuration-warning strong,.configuration-warning span{display:block}.configuration-warning span{font-size:.87rem;margin-top:5px}.configuration-warning a{font-weight:650;white-space:nowrap}.posta-settings .panel-head{align-items:start}.config-state.configured{background:#e3f0e7;color:#2e5d3d}.config-state.missing{background:#f7d9d5;color:#7b2c24}@media(max-width:1050px){.order-overview>.panel-head,.order-overview>.empty,.order-overview>.pagination{margin-left:22px;margin-right:22px}.order-tabs,.order-filters{padding-left:22px;padding-right:22px}.orders-table th:first-child,.orders-table td:first-child{padding-left:22px}.orders-table th:last-child,.orders-table td:last-child{padding-right:22px}}@media(max-width:720px){.order-overview>.panel-head,.order-overview>.empty,.order-overview>.pagination{margin-left:18px;margin-right:18px}.order-tabs,.order-filters{padding-left:18px;padding-right:18px}.orders-table th:first-child,.orders-table td:first-child{padding-left:18px}.orders-table th:last-child,.orders-table td:last-child{padding-right:18px}.order-filters label,.order-filters label:first-of-type{min-width:100%;max-width:none}.order-filters button{width:100%}.configuration-warning{align-items:start;flex-direction:column;gap:9px}.orders-table th:first-child,.orders-table td:first-child{min-width:210px}}

/* beta11: explicit Pošta confirmation and full order-level timeline. */
.postal-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.confirmation-state{display:inline-block;border-radius:5px;padding:4px 7px;font-size:.72rem;font-weight:700;line-height:1.35}.confirmation-state.confirmed{background:#dcefdc;color:#275d35}.confirmation-state.delivered{background:#dceaf2;color:#244f67}.confirmation-state.neutral{background:#ece9e6;color:#5e5650}.shipment-inline dd>.confirmation-state{margin-bottom:3px}.shipment-inline dd>small{display:block;font-weight:500;line-height:1.4}.order-shipping-detail{scroll-margin-top:20px}.shipping-detail-status{display:flex;align-items:flex-end;flex-direction:column;gap:8px}.shipping-detail-status .posta-auto-state{max-width:360px}.order-shipment-card{margin-top:20px;padding:20px;border:1px solid var(--line);border-radius:10px;background:#fff}.order-shipment-card+.order-shipment-card{margin-top:16px}.order-shipment-card .shipment-inline-head h3{margin:4px 0 0;overflow-wrap:anywhere}.order-shipment-card .shipment-inline-head small{color:var(--muted);font-size:.69rem;letter-spacing:.08em}.shipment-summary-grid{margin-top:17px}.shipment-summary-grid small{display:block;margin-top:4px}.timeline-head{margin-top:22px;margin-bottom:8px}.timeline-head h3{margin-bottom:3px}@media(max-width:1050px){.postal-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.shipping-detail-status{align-items:flex-start;margin-top:13px}.order-shipping-detail .panel-head{display:block}.order-shipment-card{padding:15px}.order-shipment-card .shipment-inline-head{display:block}.order-shipment-card .confirmation-state{margin-top:10px}.postal-metrics{grid-template-columns:1fr}}

@media(max-width:720px){.order-overview .table-scroll{overflow:visible;padding:0 18px 18px}.orders-table,.orders-table tbody,.orders-table tr,.orders-table td{display:block;width:100%}.orders-table thead{display:none}.orders-table tr{margin:16px 0 0;border:1px solid var(--line);border-radius:9px;background:#fff!important;overflow:hidden}.orders-table td,.orders-table td:first-child,.orders-table td:last-child{min-width:0!important;padding:11px 13px!important;border:0;text-align:left}.orders-table td+td{border-top:1px solid #eee8e3}.orders-table td::before{display:block;margin-bottom:5px;color:var(--muted);font-size:.65rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase}.orders-table td:nth-child(1)::before{content:'Naročilo'}.orders-table td:nth-child(2)::before{content:'Datum'}.orders-table td:nth-child(3)::before{content:'Stanje / plačilo'}.orders-table td:nth-child(4)::before{content:'Znesek'}.orders-table td:nth-child(5)::before{content:'Prevzem / pošiljka'}.orders-table td:nth-child(6)::before{content:'Izvor'}.fulfillment-cell{min-width:0}.shipment-inline{padding:11px}.shipment-inline dl{grid-template-columns:1fr}.shipment-inline-head{align-items:flex-start}.orders-table .num{text-align:left}.orders-table td>small{display:block;margin-top:5px}}

@media(max-width:520px){.import-issues table,.import-issues tbody,.import-issues tr,.import-issues td{display:block;width:100%}.import-issues thead{display:none}.import-issues tr{padding:9px 0;border-top:1px solid var(--line)}.import-issues td{padding:5px 0;border:0}.import-issues td:last-child{white-space:normal}.import-issues td:last-child button{width:100%;white-space:nowrap}}

@media(max-width:620px){.order-shipment-card .table-scroll{overflow:visible}.order-shipment-card .shipment-timeline,.order-shipment-card .shipment-timeline tbody,.order-shipment-card .shipment-timeline tr,.order-shipment-card .shipment-timeline td{display:block;width:100%}.order-shipment-card .shipment-timeline thead{display:none}.order-shipment-card .shipment-timeline tr{padding:9px 0;border-top:1px solid var(--line)}.order-shipment-card .shipment-timeline td,.order-shipment-card .shipment-timeline td:first-child,.order-shipment-card .shipment-timeline td:nth-child(2){min-width:0;padding:4px 0;border:0;white-space:normal}.order-shipment-card .shipment-timeline td:first-child::before{content:'Čas: ';color:var(--muted);font-size:.72rem}.order-shipment-card .shipment-timeline td:nth-child(2){display:inline-block;width:auto}.order-shipment-card .shipment-timeline td:nth-child(3){margin-top:3px}.order-shipment-card .shipment-timeline td:nth-child(3) strong,.order-shipment-card .shipment-timeline td:nth-child(3) small{display:block;overflow-wrap:anywhere}}
:root{--pos-border:#ded3cb}
.pos-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(330px,1fr);gap:24px;align-items:start}
.pos-layout .panel{min-width:0}.pos-search,.pos-item-edit{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.pos-search .grow{flex:1;min-width:180px}.pos-search label{margin:0}.pos-search button{margin-bottom:0}.pos-product{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 0;border-bottom:1px solid var(--pos-border)}.pos-product h3,.pos-cart-item h3{margin:0 0 6px;font-size:16px}.pos-product p{margin:8px 0 0}.pos-product form{flex:none}.pos-cart-item{padding:16px 0;border-bottom:1px solid var(--pos-border);margin-bottom:16px}.pos-item-edit label{flex:1;min-width:70px;max-width:130px}.pos-review .totals{margin-left:auto}.pos-final-form{max-width:640px}.pos-final-form label{display:block}.pos-consent{padding:16px;border:1px solid var(--pos-border);border-radius:10px;background:#fff8ed;line-height:1.6}.pos-consent input{width:auto;display:inline;margin-right:8px}.pos-new{margin-top:24px}.pos-cancel{margin-top:28px;padding:20px;border:1px solid #ca876d;border-radius:10px;max-width:760px}.pos-cancel summary{font-weight:700;cursor:pointer;color:#873c20}.pos-cancel textarea,.pos-document-cancel textarea{width:100%;min-height:80px}.pos-document-cancel{margin-top:12px;max-width:420px;font-size:13px}.pos-document-cancel summary{cursor:pointer;color:#873c20;font-weight:600}.pos-document-cancel form{padding:12px 0}.pos-pending-link{display:block;margin:8px 0;overflow-wrap:anywhere}
@media(max-width:1050px){.pos-layout{grid-template-columns:minmax(0,1fr)}}
.pos-search select,.pos-final-form select,.pos-cancel select{display:block;width:100%;max-width:100%;min-height:46px;border:1px solid #c7bdb6;border-radius:7px;padding:10px 12px;background:#fff;color:var(--ink);font:inherit;margin-top:6px}.pos-cart .ghost{color:#873c20;background:transparent;border:0;padding:8px 0;min-height:36px}.pos-final-form .pos-consent{display:flex;align-items:flex-start;gap:10px}.pos-consent input{flex:none;width:18px;height:18px;margin:3px 0 0}.pos-cancel label{display:block}.pos-search label:first-of-type{min-width:140px}

.pos-product-info{display:flex;align-items:center;gap:14px;min-width:0;flex:1}.pos-product-info>div{min-width:0}.pos-product-info h3{overflow-wrap:anywhere}.pos-thumbnail{display:flex;align-items:center;justify-content:center;width:64px;height:88px;flex:0 0 64px;border:1px solid var(--line);border-radius:6px;background:#faf8f5;overflow:hidden}.pos-thumbnail img{width:64px;height:88px;object-fit:contain}.pos-no-image{font-size:10px;text-align:center;color:var(--muted);padding:5px}.pos-cart-thumbnail{float:left;width:42px;height:58px;object-fit:contain;margin:0 12px 10px 0}.pos-cart-item .pos-item-edit{clear:both}.pos-search-status{min-height:1.4em;margin:12px 0 0}.pos-product>.button{flex:0 0 auto}
@media(max-width:620px){.pos-product{gap:10px;flex-wrap:wrap}.pos-product-info{flex-basis:100%}.pos-product>form,.pos-product>.button{margin-left:78px}.pos-thumbnail{width:56px;height:78px;flex-basis:56px}.pos-thumbnail img{width:56px;height:78px}}

.pdf-print-page{margin:0;background:#e8e5e1}.pdf-print-toolbar{padding:16px;background:#fff;display:flex;align-items:center;gap:16px;flex-wrap:wrap}.pdf-print-toolbar p{width:100%;margin:0;font-size:13px}.pdf-print-page iframe{display:block;width:100%;height:calc(100vh - 150px);border:0}.panel input[type=checkbox]{width:auto;min-height:auto}.panel td input[type=number]{min-width:70px;max-width:100px}.panel td select{min-width:165px}

.receipt-form select{display:block;width:100%;min-height:44px;padding:10px;border:1px solid #c7bdb6;border-radius:7px;background:white;color:var(--ink);font:inherit;margin-top:6px}.receipt-form label:has(input[type=checkbox]){display:flex;gap:10px;align-items:flex-start;margin:15px 0}.receipt-form input[type=checkbox]{flex:0 0 18px;width:18px;height:18px;margin-top:3px}

.return-coupon { margin-top: 16px; padding: 14px; border: 1px solid var(--line, #ddd); border-radius: 8px; overflow-wrap: anywhere; }
.return-coupon form { display: inline-block; margin: 4px 8px 4px 0; }
[data-return-credit][hidden] { display: none; }

.catalog-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px}.catalog-tabs a{padding:12px 18px;border:1px solid var(--line);border-radius:8px;background:#fff;text-decoration:none;color:var(--ink)}.catalog-tabs a[aria-current=page]{background:var(--ink);color:#fff}.ownership-edit select{max-width:100%}

.pos-row-actions{display:flex;gap:8px;flex-wrap:nowrap;justify-content:flex-end}.pos-row-actions .button{padding:7px 11px;white-space:nowrap}#return-form{scroll-margin-top:20px}

/* Store colour, alternating columns on screen. Printed documents stay unchanged. */
@media screen{.table-scroll>table>thead>tr>th:nth-child(even),.table-scroll>table>tbody>tr>td:nth-child(even){background-color:rgba(220,173,147,.15)}.table-scroll>table>tbody>tr:hover>td{background-color:rgba(220,173,147,.23)}}
/* Purchasing: one readable row per manually entered book. */
[data-procurement-test-email][hidden]{display:none}
.procurement-manual-lines [data-procurement-manual]{grid-template-columns:1.2fr 2fr .65fr 1.2fr;gap:0 14px;padding:12px 0;border-bottom:1px solid var(--line)}
@media(max-width:1000px){.procurement-manual-lines [data-procurement-manual]{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.procurement-manual-lines [data-procurement-manual]{grid-template-columns:1fr}}
.supplier-overview-table{min-width:1250px;font-size:.85rem}.supplier-overview-table td{vertical-align:top;overflow-wrap:anywhere}.supplier-overview-table td:first-child{min-width:220px;max-width:280px}.supplier-overview-table td:nth-child(2){min-width:170px;max-width:220px}.supplier-overview-table td:nth-child(5),.supplier-overview-table td:nth-child(6){min-width:190px}.supplier-overview-table ul{padding-left:18px;margin:10px 0;line-height:1.5}
