#procurement-os{max-width:none;min-width:0;background:#f7f8fa;padding:28px 32px;overflow:auto}.po-page{max-width:1580px;margin:0 auto;color:var(--ink)}.po-heading,.po-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.po-eyebrow{font-size:10px;color:var(--muted)}.po-heading h1{font-size:24px;margin:7px 0 8px}.po-heading p,.po-detail-heading p{font-size:12px;color:var(--muted);line-height:1.8;margin:0}.po-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.po-page button{font-size:12px;min-height:34px;padding:7px 12px}.po-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:0;background:white;border:1px solid var(--line);border-radius:12px;margin-bottom:24px}.po-summary>div{padding:20px 24px;border-right:1px solid var(--line)}.po-summary>div:last-child{border:0}.po-summary span,.po-detail-metrics span{display:block;font-size:11px;color:var(--muted);margin-bottom:12px}.po-summary strong{display:block;font-size:27px;font-variant-numeric:tabular-nums;line-height:1.3}.po-summary strong.po-summary-money{font-size:19px}.po-summary em{font-size:12px;font-style:normal;font-weight:400}.po-summary small{display:block;font-size:10px;color:var(--muted);margin-top:9px}.po-tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin-bottom:22px;overflow:auto}.po-tabs button{background:none;border:0;border-radius:0;padding:0 0 12px;color:var(--muted);white-space:nowrap}.po-tabs button[aria-selected=true]{color:var(--accent);box-shadow:inset 0 -2px var(--accent)}.po-panel{background:white;border:1px solid var(--line);border-radius:12px;margin-bottom:20px;padding:20px;min-width:0}.po-panel h2{font-size:15px;margin:0}.po-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.po-panel-heading>span{font-size:11px;color:var(--muted)}.po-panel-heading h3{font-size:13px}.po-scroll{overflow:auto}.po-scroll table{width:100%;border-collapse:collapse;font-size:12px;text-align:left;font-variant-numeric:tabular-nums}.po-scroll th{font-size:10px;color:var(--muted);font-weight:500;white-space:nowrap;background:#f7f9fb;padding:10px;border-bottom:1px solid var(--line)}.po-scroll td{padding:12px 10px;border-bottom:1px solid #edf0f3;vertical-align:middle;line-height:1.6}.po-scroll tr:last-child td{border-bottom:0}.po-scroll small{display:block;color:var(--muted);font-size:10px;max-width:260px;overflow-wrap:anywhere}.po-scroll button{min-height:28px;padding:4px 8px;font-size:11px;white-space:nowrap}.po-page .po-link{border:0;background:none;padding:0;color:var(--accent);font-weight:500;text-align:left}.po-badge{display:inline-block;background:#f1f4f7;padding:3px 7px;border-radius:5px;font-size:10px;font-weight:400;color:#647080;white-space:nowrap}.po-note{font-size:11px;line-height:1.8;color:var(--muted);overflow-wrap:anywhere}.po-empty{padding:35px 16px;text-align:center;color:var(--muted);font-size:12px}.po-empty strong{font-size:14px;font-weight:500;color:var(--ink)}.po-empty p{font-size:11px;line-height:1.8}.po-signals button{display:flex;justify-content:space-between;width:100%;padding:12px 0;border:0;border-bottom:1px solid var(--line);background:none;text-align:left}.po-signals button:last-child{border:0}.po-signals span{color:var(--accent)}.po-toolbar{display:flex;align-items:center;gap:16px;margin-bottom:14px;font-size:11px;color:var(--muted)}.po-toolbar>input{max-width:320px;min-width:0;font-size:12px}.po-check{display:flex;align-items:center;gap:7px;white-space:nowrap}.po-check input{width:14px;height:14px}.po-detail-heading>div>button{border:1px solid var(--line);background:#fff;font-size:11px;margin-bottom:16px}.po-detail-heading h2{font-size:22px;margin:0 0 8px}.po-detail-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:24px 0}.po-detail-metrics>div{border:1px solid var(--line);border-radius:10px;background:white;padding:16px}.po-detail-metrics strong{font-size:17px}.po-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.po-legacy{padding:16px 20px;background:#fff9ed;border:1px solid #eee3c8;border-radius:10px;font-size:12px;color:#806e4c;line-height:1.8}.po-legacy p{font-size:11px;margin:7px 0}.po-legacy pre{max-height:240px;overflow:auto;font-size:10px}.po-timeline{padding:14px 0;border-bottom:1px solid var(--line);font-size:12px}.po-timeline span{font-size:10px;color:var(--muted);margin-left:15px}.po-timeline p{font-size:11px;color:var(--muted)}.po-panel details{margin-top:16px;font-size:11px;color:var(--muted)}.po-modal{width:min(620px,calc(100vw - 32px));max-height:90dvh;padding:0;border:1px solid var(--line);border-radius:14px;color:var(--ink);box-shadow:0 24px 80px #17263826}.po-modal::backdrop{background:#17263850}.po-modal form{display:flex;flex-direction:column;max-height:90dvh}.po-modal header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--line);gap:20px}.po-modal h2{font-size:18px;margin:0}.po-modal header button{border:0;background:#f5f6f8;border-radius:50%;font-size:20px;padding:0;width:28px;height:28px}.po-modal-body{padding:20px 24px;overflow:auto;min-height:0}.po-modal label{display:block;font-size:12px;color:#596575;margin-bottom:16px}.po-modal input,.po-modal select{display:block;width:100%;min-width:0;margin-top:7px;padding:8px 10px;min-height:36px;font-size:12px}.po-modal input[type=checkbox]{width:15px;height:15px;min-height:0;margin:0}.po-modal footer{border-top:1px solid var(--line);padding:16px 24px;display:flex;justify-content:flex-end;gap:10px;background:#fafbfc}.po-modal footer button{font-size:12px;min-height:36px;padding:7px 14px}.po-modal [role=alert]{font-size:12px;line-height:1.8;color:#ad5146}.po-modal [role=alert]:empty{display:none}.po-order-modal{width:min(1050px,calc(100vw - 32px))}.po-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.po-item-editor{min-width:800px}.po-item-editor td{padding:6px}.po-item-editor td:nth-child(-n+3){min-width:145px}.po-item-editor td:nth-child(n+4){min-width:90px}.po-item-editor input{background:#f2f7fc;margin:0}.po-modal .po-scroll{max-height:380px}.po-modal .po-scroll input{max-width:200px}.po-modal .po-scroll th{position:sticky;top:0}.po-modal input[type=number]{-moz-appearance:textfield}.po-modal input::-webkit-inner-spin-button{appearance:none}@media(max-width:1000px){.po-detail-grid{grid-template-columns:1fr}.po-summary>div{padding:18px 16px}.po-summary strong{font-size:22px}}@media(max-width:700px){#procurement-os{padding:20px 16px}.po-heading,.po-detail-heading{align-items:flex-start;flex-direction:column;gap:16px}.po-heading h1{font-size:22px}.po-summary{grid-template-columns:1fr 1fr}.po-summary>div:nth-child(2){border-right:0}.po-summary>div:nth-child(-n+2){border-bottom:1px solid var(--line)}.po-detail-metrics{grid-template-columns:1fr 1fr;gap:10px}.po-detail-metrics strong{font-size:14px}.po-panel{padding:16px}.po-panel-heading{flex-wrap:wrap}.po-tabs{gap:20px}.po-toolbar{flex-wrap:wrap;gap:10px}.po-toolbar>input{max-width:none;width:100%}.po-modal header{padding:18px}.po-modal-body{padding:18px}.po-modal footer{padding:14px 18px}.po-form-grid{grid-template-columns:1fr}.po-modal .po-scroll table{min-width:500px}.po-detail-heading h2{font-size:20px}}

#procurement-os .po-heading{height:auto;min-height:0;background:transparent;border:0;padding:0;position:static;max-width:none}#procurement-os .po-tabs{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;padding:0;background:transparent;min-height:0;height:auto;border-right:0}#procurement-os .po-tabs button{width:auto;flex:none;min-height:34px;display:block}.po-modal header{height:auto;min-height:0;position:static}

.po-factory-toolbar{display:flex;gap:12px;align-items:center;margin:22px 0 16px}.po-factory-toolbar input{width:300px;height:38px;font-size:12px;border-radius:8px}.po-factory-toolbar select{height:38px;font-size:12px;border-radius:8px;min-width:110px}.po-factory-toolbar>span{margin-left:auto;color:#8b96a3;font-size:12px}.po-factories .po-panel{padding:0;overflow:hidden;border:1px solid #e5eaf0;border-radius:12px}.po-factories table{font-size:12px;min-width:760px}.po-factories th{font-size:11px;background:#f8f9fb;font-weight:500;color:#8a95a3}.po-factories td,.po-factories th{padding:16px 20px;vertical-align:top}.po-factories td strong{font-size:13px;font-weight:500}.po-factories td small{font-size:11px;color:#8c97a5;line-height:1.7}.po-factories td:last-child button{border:0;background:transparent;color:#3d7ca5;font-size:12px}.po-factory-badge{display:inline-block;font-size:11px;color:#5a846d;background:#eff7f2;padding:3px 8px;border-radius:5px;white-space:nowrap}.po-factory-badge.is-off{color:#98a1ad;background:#f3f5f7}.po-factory-editor{max-width:660px}.po-factory-editor .po-modal-body label{font-size:12px}.po-factory-editor input,.po-factory-editor select,.po-factory-editor textarea{font-size:13px;border-radius:8px}.po-form-grid label>small{display:block;color:#99a3af;font-size:10px;margin-top:4px}.po-form-grid input[readonly]{background:#f6f8fa;color:#8190a0;border-color:#e6ebf0}@media(max-width:700px){.po-factory-toolbar{flex-wrap:wrap}.po-factory-toolbar input{width:100%}.po-factories .po-heading{align-items:flex-start}.po-factories .po-actions{flex-wrap:wrap;gap:6px}.po-factory-editor{width:calc(100vw - 24px)}}

.po-factory-toolbar [data-product-filter]{min-width:210px;max-width:280px}.po-supply-editor{margin:18px 0}.po-supply-editor h3{font-size:13px}.po-supply-row{display:flex;align-items:center;gap:8px;margin:8px 0}.po-supply-row input{flex:1;min-width:0}.po-supply-row button{height:32px;width:32px;padding:0;color:#8c98a4}.po-factory-editor .po-note{font-size:11px;line-height:1.7}.po-factory-toolbar{flex-wrap:wrap}.po-factories th:nth-child(4),.po-factories th:nth-child(5){width:105px}
.po-modal.po-factory-editor{width:min(720px,calc(100vw - 32px));border-radius:16px;box-shadow:0 24px 90px #20344d26;max-height:92dvh}.po-factory-editor form>header{padding:18px 24px;min-height:64px}.po-factory-editor form>header h2{font-size:18px;letter-spacing:-.25px;font-weight:600}.po-factory-editor form>header button{width:28px;height:28px;border-radius:8px;background:#f4f6f8;font-size:20px}.po-factory-editor .po-modal-body{padding:20px 24px;display:flex;flex-direction:column;gap:16px}.po-factory-editor .po-factory-section{padding:0 0 16px;border-bottom:1px solid #edf0f3}.po-factory-editor .po-factory-section h3,.po-factory-editor .po-supply-editor h3{font-size:12px;font-weight:600;letter-spacing:.1px;color:#475769;margin:0 0 12px}.po-factory-editor .po-form-grid{gap:12px 16px}.po-factory-editor .po-factory-basic{grid-template-columns:1.1fr 1.5fr .85fr}.po-factory-editor label{font-size:11px;line-height:1.5;gap:6px;margin:0;color:#7b8795}.po-factory-editor input,.po-factory-editor select{height:36px;padding:7px 10px;font-size:12px;border-radius:7px;border-color:#e1e7ed;background:#fbfcfe}.po-factory-editor textarea{padding:9px 11px;font-size:12px;line-height:1.65;min-height:65px;border-radius:8px;border-color:#e1e7ed;background:#fbfcfe}.po-factory-editor input:focus,.po-factory-editor select:focus,.po-factory-editor textarea:focus{outline:none;border-color:#9bbdd5;box-shadow:0 0 0 3px #0073bd09;background:#fff}.po-factory-editor .po-supply-editor{margin:0}.po-factory-editor .po-panel-heading{margin:0 0 6px}.po-factory-editor .po-panel-heading h3{margin:0}.po-factory-editor [data-supply-add]{font-size:11px;border:0;background:#f3f7fa;color:#57758c;padding:5px 8px;min-height:28px}.po-factory-editor .po-note{font-size:10px;margin:7px 0 0;color:#97a2af}.po-factory-editor .po-supply-row{margin:8px 0 0}.po-factory-editor form>footer{padding:13px 24px;background:#fafbfd;border-top:1px solid #e9edf1}.po-factory-editor form>footer button{font-size:12px;min-height:32px;padding:6px 16px}.po-factory-editor [role=alert]:empty{display:none}@media(max-width:600px){.po-modal.po-factory-editor{width:calc(100vw - 20px);max-height:94dvh}.po-factory-editor .po-factory-basic{grid-template-columns:1fr}.po-factory-editor .po-modal-body{padding:16px}.po-factory-editor form>header,.po-factory-editor form>footer{padding:14px 16px}}

.po-supply-tags{display:flex;flex-wrap:wrap;gap:6px;max-width:560px}.po-supply-tag{display:inline-flex;align-items:center;padding:4px 9px;border:1px solid #dce6ee;border-radius:7px;background:#f3f7fa;color:#496276;font-size:12px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
