.pc-workspace{max-width:1180px;margin:auto;padding:24px}.pc-workspace header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.pc-workspace h1{margin:6px 0}.pc-actions{display:flex;gap:8px;flex-wrap:wrap}.pc-items{display:grid;gap:12px;margin:20px 0}.pc-card{padding:18px;border:1px solid var(--line,#d5dae0);border-radius:var(--radius-surface);background:var(--panel,var(--card,#fff));color:var(--ink,#18252b);overflow-wrap:anywhere}.pc-card h2,.pc-card h3{margin:0 0 8px}.pc-card p{margin:8px 0}.pc-record{text-align:left;display:grid;gap:10px;width:100%}.pc-dialog{width:min(640px,100%);max-width:100%;color:var(--ink,#18252b)}.pc-dialog form{display:grid;gap:14px}.pc-dialog label{display:grid;gap:6px}.pc-dialog input,.pc-dialog textarea,.pc-dialog select{max-width:100%;min-width:0;width:100%;box-sizing:border-box}.pc-dialog input[type=checkbox]{width:auto}.pc-dialog fieldset{min-width:0;border:1px solid var(--line,#d5dae0);border-radius:var(--radius-control)}.pc-dialog .pc-supplier-options label,.pc-dialog .pc-recipient label{display:flex;align-items:center;gap:10px}.pc-supplier-options{max-height:200px;overflow:auto;display:grid;gap:8px}.pc-error,.pc-photo-error{color:var(--danger,#a83232)}.pc-reference{font-size:clamp(24px,7vw,42px);font-weight:750;overflow-wrap:anywhere}.pc-photo-preview{display:flex;gap:8px;flex-wrap:wrap}.pc-photo-preview img,.pc-thumb{width:110px;height:90px;object-fit:cover;border-radius:var(--radius-control)}.pc-photo-preview>div{display:grid;gap:4px}.pc-pre{white-space:pre-wrap;overflow-wrap:anywhere}.pc-wide .pc-card{margin:12px 0}.pc-dialog details{margin:12px 0}html[data-theme=dark] .pc-card,body.dark .pc-card{background:#17252b;color:#e8eff2;border-color:#35434a}@media(max-width:700px){.pc-workspace{padding:14px}.pc-workspace header{display:block}.pc-workspace header .pc-actions{margin-top:14px}.pc-workspace .pc-actions button{flex:1}.pc-card{padding:14px}.pc-dialog{width:100%}}

.pc-workspace.pc-integrated{max-width:100%;margin:0}.pc-integrated .pw-header{margin-bottom:20px}

/* Order workspace. */
.pc-integrated .pc-order-overview{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:24px}
.pc-integrated .pc-order-overview button{display:flex;flex-direction:column;align-items:start;gap:10px;padding:18px 20px;border:1px solid var(--pw-line);border-radius:var(--radius-surface);background:var(--pw-surface);color:var(--pw-muted);text-align:left}
.pc-order-overview button span{font-size:12px}.pc-order-overview button strong{font-size:30px;line-height:1;color:var(--pw-ink);font-variant-numeric:tabular-nums}.pc-integrated .pc-order-overview button[aria-pressed=true]{border-color:var(--pw-accent);box-shadow:inset 0 3px var(--pw-accent)}
.pc-order-filters{display:flex;gap:16px;align-items:end;margin:0 0 16px;flex-wrap:wrap}.pc-order-filters label{display:grid;gap:6px;font-size:12px;color:var(--pw-muted)}.pc-order-search{flex:1;min-width:180px}.pc-order-filters input,.pc-order-filters select{height:44px;border:1px solid var(--pw-line);border-radius:var(--radius-control);padding:10px 12px;background:var(--pw-surface);color:var(--pw-ink);width:100%}.pc-order-filters [data-order-count]{font-size:12px;color:var(--pw-muted);padding:14px 0}.pc-order-filters [data-existing]{font-size:12px;min-height:44px}
.pc-integrated .pc-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.pc-integrated .pc-items:has(>.pc-order-layout){display:block}
.pc-integrated .pc-card{background:var(--pw-surface);border-color:var(--pw-line);color:var(--pw-ink);box-shadow:none;border-radius:var(--radius-surface);padding:20px}
.pc-order-heading,.pc-order-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.pc-order-heading small{color:var(--pw-muted);font-size:10px;letter-spacing:.05em;text-transform:uppercase}.pc-order-card h2{font-size:22px;margin:4px 0 0;letter-spacing:-.02em}.pc-order-card h3{font-size:15px;margin:18px 0 5px}.pc-order-card .pc-destination{font-size:13px;color:var(--pw-muted);margin:0}.pc-order-card .pc-order-note{font-size:13px;line-height:1.5;white-space:pre-wrap}.pc-status{font-size:11px;border-radius:99px;padding:6px 10px;background:var(--pw-selected);color:var(--pw-link);white-space:nowrap}.pc-status-cancelled{background:var(--pw-field);color:var(--pw-muted)}.pc-order-footer{margin-top:20px;flex-wrap:wrap}.pc-order-footer small{font-size:11px;color:var(--pw-muted)}.pc-order-footer .pc-actions{margin:0;gap:6px}.pc-order-footer button{font-size:12px;min-height:40px}.pc-order-more{border-top:1px solid var(--pw-line);margin-top:14px;padding-top:10px}.pc-order-more summary{font-size:12px;cursor:pointer;color:var(--pw-muted);padding:5px 0}.pc-order-more .pc-actions{margin:8px 0 0}.pc-order-more button{font-size:12px}.pc-cancel-reason{font-size:12px;color:var(--pw-muted)}.pc-empty{grid-column:1/-1;text-align:center;padding:48px 20px;border:1px dashed var(--pw-line);border-radius:var(--radius-surface)}.pc-empty h2{font-size:18px}.pc-empty p{font-size:13px;color:var(--pw-muted)}.pc-order-pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:20px}
@media(max-width:700px){.pc-integrated .pc-items{grid-template-columns:1fr}.pc-integrated .pc-order-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-bottom:18px}.pc-integrated .pc-order-overview button{padding:12px 10px;gap:10px}.pc-order-overview button span{font-size:11px}.pc-order-overview button strong{font-size:25px}.pc-order-filters{gap:10px}.pc-order-search{flex-basis:100%}.pc-order-filters label:not(.pc-order-search){flex:1}.pc-order-filters [data-existing]{flex-basis:100%;text-align:left;padding:0}.pc-integrated .pc-card{padding:16px}.pc-order-footer .pc-actions{flex-wrap:wrap}.pc-order-footer button{min-height:44px}.pc-workspace header .pc-actions{margin-top:8px}.pc-order-filters input{font-size:16px}}

.pc-order-tools{margin-top:20px;border-top:1px solid var(--pw-line);padding-top:12px}.pc-order-tools button{font-size:12px}
@media(max-width:700px){.pc-integrated .pc-order-overview{grid-template-columns:repeat(3,minmax(0,1fr))}.pc-integrated .pc-order-overview button{padding:10px 7px;gap:6px}.pc-order-overview button span{font-size:10px;min-height:28px;line-height:1.3}.pc-order-overview button strong{font-size:23px}.pc-order-filters [data-order-count]{padding:0}.pc-order-filters{margin-bottom:12px}.pc-order-pagination:empty{display:none}}
/* Shared date-entry controls retain ISO form values behind their visible field. */
.date-entry{display:flex;align-items:center;gap:4px;position:relative;min-width:0;width:100%}
.date-entry .date-entry-text{flex:1;min-width:0;width:100%}
.date-entry .date-entry-iso{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;padding:0!important;pointer-events:none}
.date-entry-picker{flex:none;padding:8px!important;min-width:36px}
.pc-job-context{display:block;color:var(--muted,#526b82);overflow-wrap:anywhere}
.pc-destination a{font-weight:700;text-decoration:underline;overflow-wrap:anywhere}
