/* Redesigned Customers and locations screen (redesign track S5). Scope every rule under .screen[data-screen="<page id>"] and use --rt-* tokens only. */
/* The three pages (Customers & brokers, Shippers, Receivers) share one layout. The edit window (dialog.pt-window) is
   on <body>, outside the screen's box, so a page refresh cannot remove it while it is open. */
:where(.screen[data-screen="iw-customers"],.screen[data-screen="iw-shippers"],.screen[data-screen="iw-receivers"]) .pt .ui-list{padding:12px;max-height:none;overflow:visible}
:where(.screen[data-screen="iw-customers"],.screen[data-screen="iw-shippers"],.screen[data-screen="iw-receivers"]) .pt .ui-search{max-width:none;margin-bottom:8px}
:where(.screen[data-screen="iw-customers"],.screen[data-screen="iw-shippers"],.screen[data-screen="iw-receivers"]) .pt .ui-chips{margin-bottom:8px}
:where(.screen[data-screen="iw-customers"],.screen[data-screen="iw-shippers"],.screen[data-screen="iw-receivers"]) .pt-az{display:flex;flex-wrap:wrap;gap:2px;margin-bottom:6px}
:where(.screen[data-screen="iw-customers"],.screen[data-screen="iw-shippers"],.screen[data-screen="iw-receivers"]) .pt-az button{min-width:24px;min-height:26px;border:0;border-radius:4px;background:none;color:var(--rt-muted);font-size:calc(var(--v2-size,16px)*.75);font-weight:700;padding:3px 5px;cursor:pointer}
:where(.screen[data-screen="iw-customers"],.screen[data-screen="iw-shippers"],.screen[data-screen="iw-receivers"]) .pt-az button:not([disabled]):hover{background:var(--rt-brand-tint);color:var(--rt-brand-ink)}
:where(.screen[data-screen="iw-customers"],.screen[data-screen="iw-shippers"],.screen[data-screen="iw-receivers"]) .pt-az button[disabled]{opacity:.35;cursor:default}
:where(.screen[data-screen="iw-customers"],.screen[data-screen="iw-shippers"],.screen[data-screen="iw-receivers"]) .pt-count{margin:0 0 6px;color:var(--rt-muted);font-size:calc(var(--v2-size,16px)*.78125)}
:where(.screen[data-screen="iw-customers"],.screen[data-screen="iw-shippers"],.screen[data-screen="iw-receivers"]) .pt-rows{list-style:none;margin:0;padding:4px;max-height:62vh;overflow:auto}
:where(.screen[data-screen="iw-customers"],.screen[data-screen="iw-shippers"],.screen[data-screen="iw-receivers"]) .pt-row{display:grid;grid-template-columns:1fr auto;gap:2px 10px;width:100%;text-align:left;border:0;border-bottom:1px solid var(--rt-line-soft);border-radius:var(--rt-r-sm);background:none;color:var(--rt-ink);padding:10px 12px;cursor:pointer;scroll-margin-top:4px}
:where(.screen[data-screen="iw-customers"],.screen[data-screen="iw-shippers"],.screen[data-screen="iw-receivers"]) .pt-row:hover{background:var(--rt-brand-tint)}
:where(.screen[data-screen="iw-customers"],.screen[data-screen="iw-shippers"],.screen[data-screen="iw-receivers"]) .pt-row[aria-current="true"]{background:var(--rt-brand-tint);box-shadow:inset 3px 0 var(--rt-brand)}
:where(.screen[data-screen="iw-customers"],.screen[data-screen="iw-shippers"],.screen[data-screen="iw-receivers"]) .pt-name{font-weight:650}
:where(.screen[data-screen="iw-customers"],.screen[data-screen="iw-shippers"],.screen[data-screen="iw-receivers"]) .pt-place{display:flex;align-items:center;gap:4px;color:var(--rt-muted)}
:where(.screen[data-screen="iw-customers"],.screen[data-screen="iw-shippers"],.screen[data-screen="iw-receivers"]) .pt-place .ui-icon{width:13px;height:13px;flex:none}
:where(.screen[data-screen="iw-customers"],.screen[data-screen="iw-shippers"],.screen[data-screen="iw-receivers"]) .pt-last{grid-row:1/3;grid-column:2;align-self:center;text-align:right;font-size:calc(var(--v2-size,16px)*.78125);color:var(--rt-muted)}
:where(.screen[data-screen="iw-customers"],.screen[data-screen="iw-shippers"],.screen[data-screen="iw-receivers"]) .pt-tag{display:inline-block;padding:0 6px;border:1px solid var(--rt-line);border-radius:4px;font-size:calc(var(--v2-size,16px)*.71875);color:var(--rt-muted)}
:where(.screen[data-screen="iw-customers"],.screen[data-screen="iw-shippers"],.screen[data-screen="iw-receivers"]) .pt-muted{color:var(--rt-muted)}
:where(.screen[data-screen="iw-customers"],.screen[data-screen="iw-shippers"],.screen[data-screen="iw-receivers"]) .pt-note{padding:20px;color:var(--rt-muted)}
:where(.screen[data-screen="iw-customers"],.screen[data-screen="iw-shippers"],.screen[data-screen="iw-receivers"]) .pt-detail-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
:where(.screen[data-screen="iw-customers"],.screen[data-screen="iw-shippers"],.screen[data-screen="iw-receivers"]) .pt-detail-head h2{margin:0 0 2px;font-size:calc(var(--v2-size,16px)*1.375)}
:where(.screen[data-screen="iw-customers"],.screen[data-screen="iw-shippers"],.screen[data-screen="iw-receivers"]) .pt-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:flex-start}
:where(.screen[data-screen="iw-customers"],.screen[data-screen="iw-shippers"],.screen[data-screen="iw-receivers"]) .pt-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;margin:14px 0 20px}
:where(.screen[data-screen="iw-customers"],.screen[data-screen="iw-shippers"],.screen[data-screen="iw-receivers"]) .pt-fact dt{color:var(--rt-muted);font-size:calc(var(--v2-size,16px)*.78125)}
:where(.screen[data-screen="iw-customers"],.screen[data-screen="iw-shippers"],.screen[data-screen="iw-receivers"]) .pt-fact dd{margin:0;font-weight:600;overflow-wrap:anywhere}
:where(.screen[data-screen="iw-customers"],.screen[data-screen="iw-shippers"],.screen[data-screen="iw-receivers"]) .pt-detail h3{margin:0 0 6px}
:where(.screen[data-screen="iw-customers"],.screen[data-screen="iw-shippers"],.screen[data-screen="iw-receivers"]) .pt-recent{width:100%;border-collapse:collapse;font-size:calc(var(--v2-size,16px)*.875)}
:where(.screen[data-screen="iw-customers"],.screen[data-screen="iw-shippers"],.screen[data-screen="iw-receivers"]) .pt-recent th{text-align:left;font-size:calc(var(--v2-size,16px)*.78125);font-weight:600;color:var(--rt-muted);border-bottom:1px solid var(--rt-line)}
:where(.screen[data-screen="iw-customers"],.screen[data-screen="iw-shippers"],.screen[data-screen="iw-receivers"]) .pt-recent th,:where(.screen[data-screen="iw-customers"],.screen[data-screen="iw-shippers"],.screen[data-screen="iw-receivers"]) .pt-recent td{padding:8px 6px;border-bottom:1px solid var(--rt-line-soft)}
:where(.screen[data-screen="iw-customers"],.screen[data-screen="iw-shippers"],.screen[data-screen="iw-receivers"]) .pt-recent .num{text-align:right;font-variant-numeric:tabular-nums}
:where(.screen[data-screen="iw-customers"],.screen[data-screen="iw-shippers"],.screen[data-screen="iw-receivers"]) .pt-more{margin-top:8px;font-size:calc(var(--v2-size,16px)*.8125)}
@media (max-width:1100px){:where(.screen[data-screen="iw-customers"],.screen[data-screen="iw-shippers"],.screen[data-screen="iw-receivers"]) .pt-rows{max-height:45vh}}
/* The Ironworks record form in a window (New / Edit). */
dialog.pt-window{width:min(980px,calc(100vw - 32px));height:min(860px,calc(100vh - 32px));padding:0;border:1px solid var(--rt-line);border-radius:var(--rt-r-lg);background:var(--rt-panel);color:var(--rt-ink);box-shadow:var(--rt-shadow-float);overflow:hidden}
dialog.pt-window[open]{display:flex;flex-direction:column}
dialog.pt-window::backdrop{background:rgba(0,0,0,.35)}
dialog.pt-window .pt-window-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--rt-line)}
dialog.pt-window .pt-window-head h2{margin:0;font-size:var(--rt-text-lg)}
dialog.pt-window .pt-frame{flex:1;width:100%;min-height:0;border:0;background:var(--rt-panel)}
