.po-workspace{width:100%;min-width:0}.po-heading{margin-bottom:24px}.po-heading h1{margin:8px 0;font-size:30px}.po-heading p{margin:8px 0}.po-filters{border-top:3px solid #94618d}.po-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.po-filters label{display:block;font-weight:600;margin-bottom:6px}.po-filters input:not([type=checkbox]):not([type=submit]),.po-filters select{width:100%;min-width:0;box-sizing:border-box;padding:9px;border:1px solid var(--border);border-radius:5px;background:white;font:inherit;color:var(--text)}.po-date-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:16px}.po-date-grid fieldset{display:grid;grid-template-columns:1fr 1fr;gap:12px;border:1px solid var(--border);border-radius:6px;min-width:0;padding:12px}.po-date-grid legend{font-weight:600;font-size:14px}.po-filter-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:18px}.po-filter-actions label{margin:0}.po-filter-actions input[type=submit]{width:auto}.po-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:20px 0}.po-metrics>div{border:1px solid var(--border);border-top:3px solid #648db9;padding:18px;border-radius:8px;background:#edf4fc}.po-metrics>div:first-child{background:#f3e9f1;border-top-color:#94618d}.po-metrics>div:last-child{background:#fff5e1;border-top-color:#bf984c}.po-metrics span{display:block;font-size:13px;color:var(--muted)}.po-metrics strong{display:block;margin-top:7px;font-size:25px}.po-table-scroll{overflow-x:auto}.po-table{width:100%;border-collapse:collapse;font-size:14px}.po-table th{background:#f3e9f1;text-align:left;padding:12px;color:#62315b;font-size:12px;text-transform:uppercase}.po-table td{padding:14px 12px;border-bottom:1px solid var(--border);vertical-align:top;min-width:110px}.po-table small,.po-table strong{display:block;margin-top:5px}.po-table small{font-size:12px;color:var(--muted)}.po-table .po-flag{color:#805719}.po-number{font-weight:700;font-size:16px}.po-empty{padding:32px!important;text-align:center}.po-pagination{display:flex;justify-content:space-between;gap:12px;margin:18px 0;font-size:14px}.po-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:24px}.po-section{margin-bottom:24px;border-top:3px solid #94618d;min-width:0}.po-section>h2{font-size:18px;background:#f3e9f1;color:#62315b;margin:-18px -18px 18px;padding:14px 18px}.po-section--blue{border-top-color:#648db9}.po-section--blue>h2{background:#e6f1fc;color:#315778}.po-section--teal{border-top-color:#4e9586}.po-section--teal>h2{background:#e4f3ef;color:#31665b}.po-properties{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:0}.po-properties dt{font-size:12px;color:var(--muted)}.po-properties dd{margin:5px 0 0;font-weight:600;overflow-wrap:anywhere}.po-issues{padding-left:24px;line-height:1.8;color:#805719}.po-section .task-form{margin-top:18px}
@media(max-width:900px){.po-filter-grid{grid-template-columns:1fr 1fr}.po-date-grid,.po-detail-grid{grid-template-columns:1fr}.po-metrics strong{font-size:20px}}
@media(max-width:550px){.po-filter-grid,.po-metrics{grid-template-columns:1fr}.po-properties{grid-template-columns:1fr}}
.po-filter-actions label{display:inline-flex;align-items:center;gap:8px;font-size:14px}
.po-filters input[type=checkbox]{display:inline-block;width:18px;height:18px;min-height:0;padding:0;margin:0;accent-color:var(--brand-primary);flex:none}

.po-task-link{display:block;font-weight:650;margin-bottom:8px}
.po-filter-label{display:block;font-weight:600;margin-bottom:6px}
.po-destination-filter{position:relative;min-width:0}
.po-destination-filter summary{padding:9px;border:1px solid var(--border);border-radius:5px;background:white;cursor:pointer}
.po-destination-options{position:absolute;z-index:20;top:100%;left:0;min-width:100%;width:max-content;max-width:85vw;max-height:330px;overflow:auto;box-sizing:border-box;padding:14px;background:white;border:1px solid var(--border);border-radius:6px;box-shadow:0 8px 24px #0002}
.po-destination-options label{display:flex;align-items:center;gap:10px;padding:7px 0;margin:0;font-weight:400}
.po-destination-options .button{margin:8px 0;width:auto}
.po-destination-options p{margin:0}
.po-date-tools{grid-column:1/-1;display:flex;align-items:center;gap:8px}
.po-date-tools select{flex:1}
.po-date-tools .button{width:auto;flex:none;padding:8px 12px}
.po-lines-toggle{display:inline-flex;align-items:center;gap:7px;width:auto;margin-top:10px;padding:4px 0;border:0;background:transparent;color:var(--brand-primary);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.po-lines-toggle:focus-visible{outline:2px solid var(--brand-primary);outline-offset:3px}
.po-lines-toggle[aria-expanded=true] .po-lines-caret{transform:rotate(90deg)}
.po-lines-row[hidden]{display:none}
.po-lines-row>td{padding:18px 24px;background:#f0f5fa;border-left:3px solid #648db9}
.po-expanded-lines h3{font-size:15px;color:#315778;margin:0 0 14px}
.po-expanded-lines h3 span{font-size:12px;font-weight:400;margin-left:12px;color:var(--muted)}
.po-line-table{background:white}.po-line-table th{background:#e2ecf6;color:#315778}.po-line-table td{padding:9px 12px}.po-lines-retry{width:auto;margin-top:12px;font-size:12px;padding:5px 10px}
.po-workspace .visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.po-workspace .po-number-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.po-workspace .po-number-row .po-number { margin: 0; }
.po-workspace .po-edi-badge { display: inline-block; padding: .15rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.po-workspace .po-edi-badge--yes { background: #e6f4eb; color: #216e3b; }
.po-workspace .po-edi-badge--missing { background: #fce8e8; color: #a52222; }

.po-edi-status { display: grid; gap: .35rem; }
.po-workspace .po-document { display: flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 650; color: var(--brand-primary); background: transparent; white-space: nowrap; text-decoration: none; }
.po-document:hover { text-decoration: underline; }
.po-document-dot { width: .65rem; height: .65rem; flex: 0 0 .65rem; border-radius: 50%; border: 1px solid #0002; }
.po-document--present .po-document-dot { background: #258447; }
.po-document--missing .po-document-dot { background: #c73535; }
.po-document--present { color: #216e3b; background: #e6f4eb; }
.po-document--missing { color: #a52222; background: #fce8e8; }
.po-edi-document { padding: .75rem; border: 1px solid #ded6e0; border-radius: .5rem; margin-top: .6rem; background: #fff; }
.po-edi-document > summary, .po-line-edi summary { cursor: pointer; font-weight: 650; padding: .3rem; }
.po-edi-records { font-size: .8rem; }
.po-line-edi { min-width: 150px; max-width: 380px; }
.po-line-edi .po-table-scroll { max-width: 380px; }

.po-workspace .po-rejection-warning { display: inline-block; color: #a52222; font-size: .8rem; font-weight: 700; }
.po-workspace .po-rejection-panel { margin: .75rem 0; padding: 1rem; border-left: 4px solid #c73535; border-radius: .4rem; background: #fff0f0; }
.po-rejection-panel h3 { color: #a52222; margin: 0 0 .5rem; }

.po-document-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

.po-filters .po-filter-section { padding: 10px 12px; margin-bottom: 8px; border: 1px solid #e2d7e5; border-radius: 8px; background: #f8f3f9; }
.po-filters .po-filter-section h2 { font-size: 14px; color: #70396b; margin: 0 0 8px; }
.po-filters .po-filter-section--destinations { background: #eef5fc; border-color: #d4e3f2; }
.po-filters .po-filter-section--destinations h2 { color: #355f86; }
.po-filters .po-filter-section--dates { background: #edf6f3; border-color: #cfe3dd; }
.po-filters .po-filter-section--dates h2 { color: #346c60; }
.po-filters .po-location-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(100px, .65fr) 220px; align-items:end; }
.po-filters .po-date-grid { margin-top: 0; }
.po-filters .po-date-grid fieldset { background: #fff; border-color: #ceddd8; }
.po-filters .po-filter-actions { padding: 9px 12px; margin-top: 8px; background: #f5f3f6; border-radius: 8px; border: 1px solid #e3dde6; }
@media (max-width: 550px) { .po-filters .po-location-grid { grid-template-columns: 1fr; } }

.po-open-tasks { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.po-open-task { display: block; padding: 5px 9px; border: 1px solid #cbaac8; border-left: 3px solid #94618d; border-radius: 4px; background: #f7eef6; color: #71336a; font-size: 12px; font-weight: 600; line-height: 1.35; text-decoration: none; max-width: 300px; overflow-wrap: anywhere; }
.po-open-task:hover { background: #eedfee; border-color: #94618d; }
.po-open-task:focus-visible { outline: 2px solid #71336a; outline-offset: 2px; }

.po-filter-section--documents { background:#fff8e9; border-color:#ead9ad; }
.po-filter-section--documents h2 { color:#795b24; }
.po-document-filters { display:grid; grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); gap:12px 24px; }
.po-filters .po-document-filters label { display:block; margin:0 0 4px; }

/* Keep the filter area compact while retaining readable controls and labels. */
.po-workspace .po-filters { padding:12px; }
.po-filters .po-filter-grid { gap:10px 14px; }
.po-filters label { margin-bottom:4px; }
.po-filters .po-date-grid fieldset { padding:8px; gap:6px 10px; }
.po-filters .po-date-tools { gap:6px; }
.po-filters .po-date-tools .button { padding:6px 10px; }
.po-filters input:not([type=checkbox]):not([type=submit]), .po-filters select { padding:7px 9px; }
.po-filters .po-destination-filter summary { padding:7px 9px; }
.po-filters .po-document-filters { gap:8px 20px; }
.po-filters .po-filter-actions label { margin-bottom:0; }

.po-cost-inputs { display:flex; gap:8px; max-width:220px; }
.po-cost-inputs > div { display:flex; align-items:center; gap:6px; min-width:0; flex:1; }
.po-filters .po-cost-inputs input::placeholder { color:var(--muted); opacity:1; }
@media (min-width:551px) and (max-width:850px) { .po-filters .po-location-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
