.po-list,.po-record{padding:0 0 var(--space-4);gap:var(--space-4);min-width:0;display:grid}.po-record>fieldset{gap:var(--space-4);border:0;min-width:0;margin:0;padding:0;display:grid}.po-card{background:var(--surface-raised);border:1px solid var(--border-subtle);box-shadow:var(--shadow-xs);border-radius:12px;min-width:0;overflow:hidden}.po-card-head{align-items:center;gap:var(--space-3);padding:var(--space-3) var(--space-4);border-bottom:1px solid var(--border-subtle);display:flex}.po-card-head h3,.po-card h4{font-size:var(--text-sm);color:var(--text-primary);margin:0;font-weight:650}.po-card>h4,.po-card>section>h4{padding:var(--space-3) var(--space-4) 0}.po-search{max-width:360px}.po-count{white-space:nowrap;color:var(--text-muted);font-size:var(--text-xs);margin-left:auto}.po-figures{gap:var(--space-3);grid-template-columns:repeat(4,minmax(0,1fr));display:grid}.po-figure{justify-content:flex-start;align-items:center;gap:var(--space-3);height:auto;padding:var(--space-3) var(--space-4);background:var(--surface-raised);border:1px solid var(--border-subtle);box-shadow:var(--shadow-xs);text-align:left;cursor:pointer;border-radius:12px;transition:border-color .15s,box-shadow .15s;display:flex}.po-figure:hover{border-color:var(--border-default)}.po-figure.is-on{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-subtle,#dc26261a)}.po-figure>span:last-child{line-height:1.2;display:grid}.po-figure small{color:var(--text-muted);font-size:var(--text-xs)}.po-figure b{font-size:var(--text-2xl,24px);color:var(--text-primary);font-variant-numeric:tabular-nums;font-weight:700}.po-figure-icon{background:var(--surface-page);width:36px;height:36px;color:var(--text-secondary);border-radius:10px;flex:none;place-items:center;display:grid}.po-figure.tone-red .po-figure-icon{background:var(--danger-subtle,#fef2f2);color:var(--danger-subtle-fg,#b91c1c)}.po-figure.tone-red b{color:var(--danger-subtle-fg,#b91c1c)}.po-figure.tone-amber .po-figure-icon{background:var(--warning-subtle,#fffbeb);color:var(--warning-subtle-fg,#b45309)}.po-table td,.po-lines td{vertical-align:middle}.po-table .num,.po-lines .num{text-align:right}.po-lines td small{color:var(--text-muted)}.po-table td small,.po-lines td:first-child small{font-size:var(--text-2xs);margin-top:1px;display:block}.po-code{font-variant-numeric:tabular-nums;letter-spacing:.01em}.po-supplier{align-items:center;gap:10px;min-width:0;display:flex}.po-avatar{background:var(--accent-subtle,#fdecec);width:32px;height:32px;color:var(--accent-subtle-fg,#b42318);letter-spacing:.02em;border-radius:9px;flex:none;place-items:center;font-size:11px;font-weight:700;display:grid}.po-avatar-lg{border-radius:12px;width:48px;height:48px;font-size:15px}.po-project{color:var(--text-secondary)}.po-progress{gap:4px;min-width:110px;display:grid}.po-progress small{color:var(--text-muted)}.po-bar{background:var(--surface-page);border-radius:999px;height:6px;display:block;overflow:hidden}.po-bar>span{border-radius:inherit;background:var(--success,#16a34a);height:100%;display:block}.po-empty{padding:var(--space-6,32px) var(--space-4);color:var(--text-muted);justify-items:center;gap:6px;display:grid}.po-empty p{margin:0}.po-record-head{align-items:end;gap:var(--space-2) var(--space-4);grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"back back""title actions";display:grid}.po-record-head .record-back{grid-area:back;justify-self:start}.po-record-title{align-items:center;gap:var(--space-3);grid-area:title;min-width:0;display:flex}.po-record-title small{color:var(--text-muted);font-size:var(--text-2xs);letter-spacing:.08em;font-weight:600}.po-record-title h2{font-size:var(--text-xl);font-variant-numeric:tabular-nums;align-items:center;gap:10px;margin:0;display:flex}.po-record-title p{color:var(--text-secondary);font-size:var(--text-sm);margin:2px 0 0}.po-record-actions{flex-wrap:wrap;grid-area:actions;justify-content:flex-end;gap:8px;display:flex}.po-record-actions button{align-items:center;gap:6px;display:inline-flex}.po-tiles{gap:var(--space-3);grid-template-columns:repeat(auto-fit,minmax(180px,1fr));display:grid}.po-tile{padding:var(--space-3) var(--space-4);background:var(--surface-raised);border:1px solid var(--border-subtle);box-shadow:var(--shadow-xs);border-radius:12px;align-content:start;gap:2px;min-width:0;display:grid}.po-tile small{color:var(--text-muted);font-size:var(--text-xs)}.po-tile b{font-size:var(--text-lg);color:var(--text-primary);font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.po-tile>span{color:var(--text-secondary);font-size:var(--text-xs);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.po-tile .po-bar{margin-top:6px}.po-record-body{gap:var(--space-4);grid-template-columns:minmax(0,1fr) 320px;align-items:start;display:grid}.po-record-main,.po-record-side{gap:var(--space-4);min-width:0;display:grid}.po-record-main form{gap:var(--space-4);display:grid}.po-line-desc{letter-spacing:.02em;font-weight:600;display:block}.po-line-desc-inline{font-weight:600}.po-sku{font-size:var(--text-2xs);color:var(--accent-subtle-fg,#b42318);letter-spacing:.02em;font-weight:600;display:block}.po-lines .po-line-done td{color:var(--text-muted)}.po-left{color:var(--warning-subtle-fg,#b45309)}.po-lines tfoot td{color:var(--text-primary);border-top:1px solid var(--border-default);font-weight:600}.po-qtys{gap:6px;display:flex}.po-qty{gap:2px;display:grid}.po-qty small{font-size:var(--text-2xs);color:var(--text-muted)}.po-qty input{width:58px}.po-receive-body{padding:var(--space-4);gap:var(--space-3);display:grid}.po-receive-body .storage-photos{margin:0}.po-note{padding:var(--space-3) var(--space-4) var(--space-4);white-space:pre-wrap;margin:0}.po-record-side .po-card>section,.po-record-side .po-card>details{padding:0 var(--space-4) var(--space-4);box-shadow:none;background:0 0;border:0;margin:0}.po-record-side .po-card>section>h4{padding:var(--space-3) 0 var(--space-2)}.po-timeline h4{padding:var(--space-3) var(--space-4) var(--space-2)}.po-timeline ol{padding:0 var(--space-4) var(--space-4) calc(var(--space-4) + 12px);font-size:var(--text-xs);color:var(--text-secondary);gap:10px;margin:0;list-style:none;display:grid;position:relative}.po-timeline li{position:relative}.po-timeline li:before{content:"";background:var(--border-default);border-radius:50%;width:7px;height:7px;position:absolute;top:5px;left:-14px}.po-timeline li:first-child:before{background:var(--accent)}.po-timeline b{color:var(--text-primary);font-weight:600}.po-danger{border-color:var(--danger-subtle,#fecaca)}.po-danger>details{padding-top:var(--space-3)!important}@media (width<=1279px){.po-record-body{grid-template-columns:minmax(0,1fr)}}@media (width<=760px){.po-figures,.po-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.po-figure{padding:var(--space-3)}.po-record-head{grid-template-columns:minmax(0,1fr);grid-template-areas:"back""title""actions"}.po-record-actions{justify-content:stretch}.po-record-actions button{flex:1;justify-content:center}.po-search{max-width:none}}.storage-workspace>.po-list,.storage-workspace>.po-record{flex:none}.po-table td:first-child,.po-table th:first-child,.po-lines td:first-child,.po-lines th:first-child{background:0 0;position:static}.storage-workspace:not(.storage-worker){flex:none}.po-lines tbody td,.po-table tbody td{background:0 0}.po-table tbody tr:hover td{background:var(--surface-hover,var(--surface-page))}.storage-workspace:not(.storage-worker) .storage-editor{background:var(--surface-raised);border:1px solid var(--border-subtle);box-shadow:var(--shadow-xs);padding:var(--space-4) var(--space-5);border-radius:12px}.storage-workspace:not(.storage-worker) .storage-editor fieldset{border:0;margin:0;padding:0}.storage-workspace:not(.storage-worker) .storage-editor h3{margin:0 0 var(--space-3);font-size:var(--text-lg)}.storage-workspace:not(.storage-worker) .storage-edit-line{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) 130px 150px auto;align-items:end;margin:8px 0}.storage-workspace:not(.storage-worker) .storage-edit-line>button{width:auto;height:var(--control-h,36px)}.po-edit-foot{margin-top:var(--space-3);padding-top:var(--space-3);border-top:1px solid var(--border-subtle);justify-content:flex-end;align-items:center;gap:8px;display:flex}.po-edit-foot .storage-total{margin:0 auto 0 0}@media (width<=760px){.storage-workspace:not(.storage-worker) .storage-edit-line{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.storage-workspace:not(.storage-worker) .storage-edit-line>:first-child,.storage-workspace:not(.storage-worker) .storage-edit-line>:nth-child(2),.storage-workspace:not(.storage-worker) .storage-edit-line>button{grid-column:1/-1}.po-edit-foot{flex-wrap:wrap}.po-edit-foot .storage-total{flex-basis:100%}}.purchase-page{min-height:0;padding-bottom:var(--space-4);flex:1;overflow-y:auto}.app-shell .po-list .po-figure{--kpi:var(--border-strong);--kpi-ink:var(--text-primary);border-radius:14px;align-items:center;gap:12px;padding:12px 16px;display:flex;position:relative;overflow:hidden}.app-shell .po-list .po-figure.tone-red{--kpi:var(--danger);--kpi-ink:var(--danger-subtle-fg,#b91c1c)}.app-shell .po-list .po-figure.tone-amber{--kpi:var(--warning);--kpi-ink:var(--warning-subtle-fg,#b45309)}.app-shell .po-list .po-figure:before{content:"";background:var(--kpi);width:4px;display:none;position:absolute;inset:0 auto 0 0}.app-shell .po-list .po-figure:after{content:"";pointer-events:none;border-radius:50%;width:124px;height:124px;display:none;position:absolute;top:-34px;right:-34px}.app-shell .po-list .po-figure-icon{background:color-mix(in srgb, var(--kpi) 12%, var(--surface-raised));width:38px;height:38px;color:var(--kpi-ink);border-radius:10px;flex:none;place-items:center;display:grid}.app-shell .po-list .po-figure small{color:var(--text-muted);font-size:12px;font-weight:400}.app-shell .po-list .po-figure b{color:var(--kpi-ink);margin:3px 0;font-size:21px;font-weight:650;line-height:1.25}.app-shell .po-list .po-card{border-radius:14px}.app-shell .po-list .po-card-head .po-search{border-radius:8px;flex:1;max-width:none;height:32px;font-size:12px}.app-shell .po-list .po-card-head .po-search input{font-size:12px}@media (width>=761px){.app-shell .po-list table.po-table{font-size:12.5px}.app-shell .po-list table.po-table th{letter-spacing:0;text-transform:none;height:36px;font-size:11px;font-weight:600}.app-shell .po-list table.po-table td{height:40px;font-size:12.5px}}.app-shell .po-list table.po-table .po-code{font-family:var(--font-mono);color:var(--text-secondary);font-size:11.5px;font-weight:500}
