/* Assignments module */
.muted { color: var(--muted); font-size: .86rem; }
.flip { transform: rotate(180deg); }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-wrap; margin: 2px 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Top bar claim search */
.topbar-tools { display: flex; align-items: center; gap: 10px; min-width: 0; }
.claim-search { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 520px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--muted); }
.page-head .claim-search { margin-left: auto; flex: 0 1 440px; }
@media (max-width: 700px) { .page-head .claim-search { flex: 1 1 100%; max-width: none; } }
.head-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; min-height: 36px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--teal); text-decoration: none; white-space: nowrap; }
.head-pill span { font-size: .78rem; font-weight: 600; color: var(--ink); }
.head-pill:hover { border-color: var(--teal); background: #f0fafa; }
@media (max-width: 700px) { .page-head .head-pill { flex: 1 1 100%; justify-content: center; } }
.claim-search .lbl-in { font-size: .78rem; font-weight: 600; color: var(--ink); padding-right: 8px; border-right: 1px solid var(--line-strong); white-space: nowrap; }
.claim-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: .88rem; color: var(--ink); }
.recent { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 1500; min-width: 280px; max-height: 360px; overflow: auto; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(11,42,69,.14); }
.menu a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .86rem; }
.menu a:hover { background: var(--head); }
.menu.cols { left: 0; right: auto; min-width: 220px; }
.menu .cb { padding: 4px 8px; font-size: .86rem; }
@media (max-width: 600px) { .claim-search .lbl-in { display: none; } }

/* Dashboard tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
@media (max-width: 1180px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
.tile-t { min-width: 0; overflow-wrap: anywhere; }
.tile { display: flex; align-items: center; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: 0 2px 8px rgba(11,42,69,.04); transition: box-shadow .15s, transform .15s; }
.tile:hover { box-shadow: 0 8px 24px rgba(11,42,69,.10); transform: translateY(-1px); }
.tile-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--grad); color: #fff; flex: none; }
.tile-ic span, .tile-ic svg { width: 22px; height: 22px; }
.tile-t { display: flex; flex-direction: column; flex: 1; }
.tile-t small { color: var(--muted); font-size: .8rem; }
.chev { color: var(--muted); }
.quick { max-width: 560px; }

/* Search */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 10px 14px; margin-bottom: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.filter-bar .grow { flex: 1; }
.fb { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; }
.fb > span { font-weight: 600; color: var(--ink); }
.fb input, .fb select { padding: 5px 6px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; font-size: .85rem; max-width: 170px; }
.icon-btn.on { background: var(--head); color: var(--ink); }
.search-layout { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.search-layout.with-panel { grid-template-columns: 250px 1fr; }
@media (max-width: 860px) { .search-layout.with-panel { grid-template-columns: 1fr; } }
.filter-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; }
.filter-panel h3 { font-size: .95rem; }
.results-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.results-bar select { padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; font-size: .85rem; margin-left: auto; }
.results td, .results th { white-space: nowrap; }
.results tr.sel td { background: #eef6ff; }
.th-sort { border: 0; background: none; padding: 0; font: inherit; color: var(--blue); cursor: pointer; }
.th-sort.on { color: var(--ink); }

/* Map views */
.map-layout { display: grid; grid-template-columns: 280px 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; height: calc(100vh - 190px); min-height: 420px; }
@media (max-width: 860px) { .map-layout { grid-template-columns: 1fr; height: auto; } .map-layout .big-map { height: 420px; } .pin-list { max-height: 240px; } }
.pin-list { list-style: none; margin: 0; padding: 0; overflow: auto; border-right: 1px solid var(--line); }
.pin-list button { display: grid; gap: 1px; width: 100%; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; font-size: .82rem; color: var(--text); }
.pin-list button:hover { background: var(--head); }
.pin-list strong { color: var(--ink); font-size: .88rem; }
.pin-list small { color: var(--muted); }
.big-map { height: 100%; min-height: 420px; z-index: 0; }
.big-map.single { height: 480px; border-radius: 12px; border: 1px solid var(--line); }
.pin-pop { font-size: .82rem; line-height: 1.45; }
.pin-pop a { color: var(--teal); }

/* Detail */
.summary .sum-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; align-items: start; }
@media (max-width: 760px) { .summary .sum-grid { grid-template-columns: 1fr 1fr; } }
.sum-i { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sum-i > span { font-size: .72rem; font-weight: 600; color: var(--muted); }
.sum-i strong { color: var(--ink); overflow-wrap: anywhere; }
.asg-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 10px; }
.asg-top .back { margin-bottom: 0; }
.asg-top .grow { flex: 1; }
.sum-action { display: flex; gap: 8px; align-items: center; width: 100%; max-width: 380px; }
@media (max-width: 560px) { .asg-top .grow { display: none; } .sum-action { max-width: none; } }
.sum-action select { flex: 1; min-width: 0; width: 100%; max-width: 320px; padding: 7px 8px; border: 0; border-bottom: 1.5px solid var(--line-strong); background: transparent; }
/* File sections bar: across the top of an open file, above the summary. */
.dtabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; padding: 6px; margin: 0 0 16px; border-radius: 14px; background: linear-gradient(135deg, #0b2f4e, #0f4f6e); box-shadow: 0 6px 18px rgba(11, 47, 78, .18); }
.dtabs button { flex: 1 1 auto; justify-content: center; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border: 0; border-radius: 10px; background: none; color: #d5e6f1; font-family: var(--display); font-size: .88rem; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.dtabs button:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.dtabs button.on { background: #fff; color: #0b2f4e; font-weight: 600; }
.dtab-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: rgba(255, 255, 255, .18); color: #fff; font-family: var(--font); font-size: .72rem; font-weight: 700; }
.dtabs button.on .dtab-count { background: #e6f4f4; color: var(--teal); }
.dtab-body { padding-top: 8px; }
.print-row { margin-bottom: 6px; }
.detail-grid { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.kv { display: flex; flex-direction: column; gap: 1px; margin-bottom: 10px; min-width: 0; }
.kv > span { font-size: .72rem; font-weight: 600; color: var(--muted); }
.kv > strong { font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 20px; }
.kv-table td:first-child { color: var(--ink); }
.kv-table tfoot td { border-bottom: 0; }

/* Notes */
.milestones { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ms { display: grid; gap: 2px; padding: 12px 14px; text-align: left; border: 1.5px dashed var(--line-strong); border-radius: 12px; background: #fff; cursor: pointer; }
.ms strong { color: var(--ink); font-size: .9rem; }
.ms small { color: var(--muted); }
.ms.done { border-style: solid; border-color: #9fd9bb; background: #f1fbf5; }
.ms.done small { color: #11744a; font-weight: 600; }
.ms:hover { border-color: var(--teal); }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.notes li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdfe; }
.notes li.rev { border-color: #f0c5c2; background: #fff7f6; }
.note-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .86rem; }
.note-head span { color: var(--muted); }
.f textarea[name=body] { min-height: 100px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px; }

/* Files */
.upload-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin-bottom: 14px; }
.upload-row select, .upload-row input:not(.sr) { padding: 7px 2px; border: 0; border-bottom: 1.5px solid var(--line-strong); background: transparent; }
.drop { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 1.5px dashed var(--line-strong); border-radius: 12px; color: var(--teal); font-weight: 600; font-size: .88rem; cursor: pointer; background: #fff; }
.drop small { color: var(--muted); font-weight: 400; }
.drop.over, .drop:hover { border-color: var(--teal); background: #f0fafa; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.photo-grid figure { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.photo-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--head); }
.photo-grid figcaption { display: grid; grid-template-columns: 1fr auto; gap: 0 6px; padding: 8px 10px; font-size: .8rem; }
.photo-grid figcaption small { color: var(--muted); grid-column: 1; }
.photo-grid figcaption .icon-btn { grid-row: 1 / span 2; grid-column: 2; }
.fineprint { text-align: right; font-size: .74rem; font-style: italic; color: var(--muted); margin: 10px 0 0; }

/* Activity log */
details.day { margin-bottom: 12px; }
details.day > summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 4px 0 8px; }
.ev-kind { display: inline-block; padding: 1px 7px; border-radius: 6px; font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; background: var(--head); color: var(--muted); }
.k-note { background: #eef6ff; color: var(--blue); }
.k-milestone { background: #e3f6ec; color: #11744a; }
.k-status { background: #fff2cf; color: #8a6100; }
.k-email { background: #f3eefe; color: #6b46c1; }
.k-file { background: #e6f4f4; color: var(--teal); }

/* Edit form */
.cov-table input, .cov-table select { width: 100%; min-width: 90px; padding: 6px 4px; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; }
.sticky-actions { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(to top, var(--bg) 70%, transparent); }

/* Reports */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.kpi > span { font-size: .76rem; font-weight: 600; color: var(--muted); }
.kpi strong { font-family: var(--display); font-size: 1.6rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi small { color: var(--muted); font-size: .74rem; }

/* Dialog */
.dlg { width: min(520px, calc(100vw - 32px)); border: 0; border-radius: 16px; padding: 22px; box-shadow: 0 24px 60px rgba(11,42,69,.25); }
.dlg::backdrop { background: rgba(11, 42, 69, .35); }
.dlg h2 { font-size: 1.1rem; margin-bottom: 8px; }
.dlg-body { display: grid; gap: 14px; }
.dlg-body .actions { margin-top: 4px; }

@media print {
  .topbar, .side, .dtabs, .print-row, .sum-action, .actions, .upload-row, .back { display: none !important; }
  .layout { display: block; } .main { padding: 0; } .sec { break-inside: avoid; }
}
.detail-grid > *, .search-layout > *, .wrap > * { min-width: 0; }
.kv-table td { overflow-wrap: anywhere; }
.fb { flex-wrap: wrap; max-width: 100%; }
@media (max-width: 600px) { .fb input[type=date] { max-width: 140px; } .filter-bar { gap: 8px 12px; } }

/* Create from document */
.drop.big { display: flex; flex-wrap: wrap; justify-content: center; padding: 22px; font-size: .95rem; }
.drop.big small { flex-basis: 100%; text-align: center; }
.f.filled input, .f.filled select, .f.filled textarea { background: #f0fbf6; }

/* First Report */
.iir-status { margin: 0 0 10px; font-size: .9rem; }
.file-mini { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; font-size: .88rem; }

/* Carrier page */
.carrier-wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px 40px; }
.carrier-top { display: flex; align-items: center; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.carrier-top img { height: 32px; }
.carrier-top span { font-family: var(--display); font-weight: 600; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line-strong); }
.carrier-page h1 { font-size: 1.4rem; margin: 6px 0 6px; }
.carrier-page .ms { cursor: default; }

/* Efficient routing */
.route-panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 14px 16px; margin-bottom: 14px; }
.route-head h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 1.05rem; }
.route-form { align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.route-sum { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--head); }
.route-sum p { margin: 6px 0 0; }
.route-sum .btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.route-stops { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.route-stops li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.route-stops li > div { display: grid; gap: 2px; min-width: 0; }
.route-stops small { color: var(--text); font-size: .8rem; overflow-wrap: anywhere; }
.route-stops small.muted { color: var(--muted); }
.route-stops .flags { color: #9a5b00; }
.route-stops .why { color: var(--teal); }
.route-stops .num, .route-pin { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #1f6fe0; color: #fff; font-weight: 700; font-size: .8rem; }
.route-stops .start .num, .route-pin.start { background: #0b2f4e; }
.route-pin { border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.pin-col { display: flex; flex-direction: column; min-height: 0; overflow: auto; border-right: 1px solid var(--line); }
.pin-col .pin-list { border-right: 0; }
.pin-list li.pickable { display: flex; align-items: center; gap: 0; border-bottom: 1px solid var(--line); }
.pin-list li.pickable input { margin: 0 0 0 12px; flex: none; }
.pin-list li.pickable button { border-bottom: 0; }
@media (max-width: 860px) { .claim-search { min-width: 0; } .topbar a.btn[href="#/account"] { display: none; } }

/* Website requests and Contact us messages */
.sub-h { margin: 14px 0 6px; font-size: .9rem; }
.kv-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .8rem; width: 34%; vertical-align: top; }
.msg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.msg-list li { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.msg-list li.done { opacity: .7; }
.msg-list p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.msg-top .grow { flex: 1; }
.msg-contact { display: flex; flex-wrap: wrap; gap: 14px; font-size: .86rem; overflow-wrap: anywhere; }
.msg-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }

/* Table / Map view switch on Search */
.view-toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: #fff; }
.view-toggle button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; background: none; color: var(--muted); font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; }
.view-toggle button + button { border-left: 1px solid var(--line); }
.view-toggle button.on { background: #e6f4f4; color: var(--teal); }

/* Workflow Status steps */
.set-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 99px; background: #fff; color: var(--ink); font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.set-btn:hover { background: var(--head); }
.set-btn.done { border-color: #bfe3e3; background: #e6f4f4; color: var(--teal); }
tr.step.done td:first-child { color: var(--ink); font-weight: 600; }

/* Red ! on the Checklist tile and rows: something is due within 24 hours (or late). */
.tile-ic { position: relative; }
.tile-alert, .due-alert { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #d93025; color: #fff; font-size: .74rem; font-weight: 800; line-height: 1; box-shadow: 0 0 0 2px #fff; }
.tile-alert { position: absolute; top: -6px; right: -6px; }
.due-alert { margin-right: 8px; vertical-align: 1px; box-shadow: none; }

/* AI document review (Details tab) */
.ai-review { display: grid; gap: 12px; font-size: .9rem; }
.ai-review p { margin: 0; }
.ai-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ai-meta .grow { flex: 1; }
.ai-block { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.ai-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ai-total { margin-left: auto; font-weight: 700; color: var(--ink); }
.ai-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.ai-items td { padding: 6px 4px; vertical-align: top; }
.ai-review details summary { cursor: pointer; color: var(--teal); font-weight: 600; }
.ai-disclaimer { font-size: .72rem; color: var(--muted); font-style: italic; }
.ai-warning { margin: 0; padding: 8px 10px; border: 1px solid #f3c7c2; border-left: 4px solid var(--bad); border-radius: 6px; background: #fdf2f1; color: #7a1d14; font-size: .8rem; line-height: 1.4; }
.ai-drafts td { vertical-align: middle; }
.ai-drafts td:first-child { overflow-wrap: anywhere; }
.ai-drafts td:last-child { width: 1%; white-space: nowrap; }
.ai-draft-st { margin-top: 2px; font-size: .84rem; }
.ai-running { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.spin { width: 14px; height: 14px; border: 2px solid var(--line-strong); border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-items td.num { white-space: nowrap; text-align: right; }

/* E-signature (Documents tab, Status column) */
.esign { display: grid; gap: 4px; margin-top: 6px; justify-items: start; font-size: .8rem; }
.esign .chip svg { margin-right: 2px; }
.esign-who { list-style: none; margin: 0; padding: 0; color: var(--muted); }
.esign-who li { overflow-wrap: anywhere; }
.esign-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.esign-btn { white-space: nowrap; }
.esign-who small { color: var(--muted); }
.esign-dlg { max-width: 560px; width: calc(100% - 32px); }
.esign-hist { border-top: 1px solid var(--line); padding: 10px 0; display: grid; gap: 4px; font-size: .88rem; overflow-wrap: anywhere; }
.esign-views { margin: 2px 0 0; padding-left: 20px; font-size: .82rem; max-height: 180px; overflow: auto; }
.esign-hash { overflow-wrap: anywhere; }
.esign-send { width: min(560px, calc(100vw - 32px)); }
.esign-send .f input, .esign-send .f select, .esign-send .f textarea { width: 100%; }
.es-mine { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px 12px; display: grid; gap: 8px; margin: 0; }
.es-mine legend { font-weight: 700; font-size: .88rem; padding: 0 4px; }
.es-sigprev { font: italic 1.6rem "Times New Roman", Times, serif; color: #0b2f4e; border-bottom: 1.5px solid #0b2f4e; padding: 2px 4px 4px; min-height: 2.2rem; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-sigprev.empty { color: var(--muted); opacity: .5; }
.esign-trail summary { cursor: pointer; }
.esign-trail .esign-views { max-height: 260px; }
.esign-note { max-width: 220px; line-height: 1.35; }

/* Workload */
.kpi.warn strong { color: var(--bad); }
.assign-ctl { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.assign-ctl select { max-width: 280px; min-width: 0; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; font-size: .85rem; }
.wl-table td { vertical-align: top; }
.wl-table .chip { margin-left: 6px; }
.wl-files { display: grid; gap: 10px; }
.wl-file { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; min-width: 0; }
.wl-file.late { border-left: 4px solid var(--bad); }
.wl-file-h { display: flex; gap: 6px 8px; align-items: center; flex-wrap: wrap; }
.wl-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.wl-steps li { display: flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--muted); padding-right: 14px; position: relative; }
.wl-steps li small { color: var(--muted); }
.wl-steps .dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-strong); background: #fff; flex: none; }
.wl-steps li.done { color: var(--ink); }
.wl-steps li.done .dot { background: var(--teal); border-color: var(--teal); }
.wl-next { margin: 0; font-size: .85rem; }
.wl-next.late { color: var(--bad); font-weight: 600; }
.client-steps li { padding-right: 0; }
.notes li.mine { border-left: 3px solid var(--teal); padding-left: 10px; }
.contact-add { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 12px; display: grid; gap: 10px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* Send a file: AI suggestions */
.sg-dlg { max-width: 760px; width: calc(100% - 24px); }
.sg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sg-body { display: grid; gap: 12px; }
.sg-ai { border: 1px solid #bcd6f7; background: #f2f7ff; border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; justify-items: start; }
.sg-ai-h { display: flex; align-items: center; gap: 6px; color: var(--ink); }
.sg-ai p { margin: 0; }
.sg-list { display: grid; gap: 8px; max-height: 52vh; overflow: auto; padding-right: 2px; }
.sg-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; }
.sg-card.picked { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal) inset; }
.sg-card.dim { opacity: .7; }
.sg-top { display: flex; align-items: center; gap: 10px; }
.sg-rank { width: 24px; height: 24px; border-radius: 50%; background: var(--head); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; flex: none; }
.sg-name { flex: 1; min-width: 0; }
.sg-name .chip { margin-left: 6px; }
.sg-score { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink); min-width: 2.2em; text-align: right; }
.sg-score.sm { font-size: .9rem; margin-left: 8px; min-width: 0; color: var(--teal); }
.sg-why { margin: 0; font-size: .85rem; color: #123d6b; display: flex; gap: 4px; align-items: flex-start; }
.sg-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8rem; color: var(--muted); }
.sg-facts .bad, .hint.bad { color: var(--bad); }
.sg-flags { margin: 0; padding-left: 18px; font-size: .8rem; color: var(--bad); }
.aq-list { display: grid; gap: 12px; }
.aq-file { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; min-width: 0; }
.aq-h { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.aq-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; }
.aq-pick { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; min-width: 0; }
.aq-pick.dim { opacity: .65; }
.aq-pick > div { min-width: 0; }
.aq-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Deadline record and other label/value tables stack on phones. */
@media (max-width: 560px) {
  .kv-table, .kv-table tbody, .kv-table tr, .kv-table th, .kv-table td { display: block; width: auto; }
  .kv-table tr { padding: 6px 0; border-bottom: 1px solid var(--line); }
  .kv-table th, .kv-table td { border: 0; padding: 2px 0; }
  .kv-table thead { display: none; }
}
.dispute-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.dispute-chips .chip { font-size: .74rem; padding: 2px 8px; }
/* Workflow Status pipeline: always two rows of six step buttons */
.pipeline { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 0; }
.pipeline li { position: relative; display: flex; min-width: 0; }
.pipeline li::before { content: ""; position: absolute; top: 21px; left: -50%; width: 100%; height: 2px; background: var(--line-strong); z-index: 0; }
.pipeline li:nth-child(6n + 1)::before { display: none; }
.pipeline li.past::before, .pipeline li.now::before { background: var(--teal); }
.pl-btn { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 3px 8px; margin: 0 3px; border: 1px solid transparent; border-radius: 12px;
  background: transparent; font: inherit; text-align: center; color: var(--muted); cursor: pointer; }
.pl-btn.static { cursor: default; }
button.pl-btn:hover { border-color: var(--line-strong); background: #fff; box-shadow: 0 2px 8px rgba(15, 30, 45, .06); }
button.pl-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.pl-btn .pl { font-size: .72rem; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; }
.pl-btn .pd { font-size: .66rem; color: var(--muted); }
.pipeline .pip { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .74rem; background: #fff; border: 2px solid var(--line-strong); color: var(--muted); flex: none; }
.pipeline li.past .pip { background: var(--teal); border-color: var(--teal); color: #fff; }
.pipeline li.now .pip { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 4px rgba(31, 111, 224, .16); }
.pipeline li.now .pl-btn { color: var(--ink); font-weight: 700; background: #f5f9ff; border-color: #cfe0f7; }
.pipeline li.past .pl-btn { color: var(--ink); }
.pipeline .pip .i16 { width: 14px; height: 14px; }
.pl-lock { position: absolute; top: 4px; right: 6px; color: var(--muted); }
.pl-lock .i16 { width: 12px; height: 12px; }
@media (max-width: 520px) {
  .pl-btn { margin: 0; padding: 4px 0 6px; border-radius: 8px; }
  .pl-btn .pl { font-size: .52rem; letter-spacing: -.02em; }
  .pipeline li.now .pl-btn { font-weight: 600; }
  .pl-btn .pd { font-size: .5rem; }
  .pipeline .pip { width: 24px; height: 24px; font-size: .68rem; }
  .pipeline li::before { top: 17px; }
}
.chip.now-chip { background: #e8f0fd; color: #1a56b0; }
.wf-table tr.now td:first-child { font-weight: 700; color: var(--ink); }
.wf-table tr.now { background: #f5f9ff; }
.wf-table td .chip { margin-left: 6px; }
.notes li.wf { border-color: #cfe0f7; background: #f6f9ff; }
.stage-counts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) { .stage-counts { gap: 6px; } .stage-counts a { padding: 8px 6px; } .stage-counts a strong { font-size: 1.05rem; } .stage-counts a span { font-size: .64rem; overflow-wrap: anywhere; } }
.stage-counts a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; color: var(--ink); height: 100%; }
.stage-counts a:hover { border-color: var(--teal); background: #f0fafa; }
.stage-counts a strong { font-size: 1.3rem; color: var(--teal); }
.stage-counts a span { font-size: .8rem; color: var(--muted); }
.stage-counts a.zero strong { color: var(--muted); }
.client-filters { flex-wrap: wrap; gap: 10px; }
.client-filters .f { min-width: 140px; }
.lock-note { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font-size: .72rem; font-weight: 600; color: var(--muted); white-space: nowrap; vertical-align: middle; }
.lock-note .i16 { width: 13px; height: 13px; }
td.c .lock-note:first-child { margin-left: 0; }
/* Compact step lists (client file page, appraiser open claims): also two rows of five */
.wl-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px 8px; }
.wl-steps li { padding-right: 0; align-items: flex-start; min-width: 0; overflow-wrap: break-word; hyphens: auto; flex-wrap: wrap; }
.wl-steps li .dot { margin-top: 3px; }
@media (max-width: 520px) { .wl-steps { gap: 6px 4px; } .wl-steps li { font-size: .6rem; gap: 3px; letter-spacing: -.01em; } }
/* Award Finalized: final package checklist */
.pkg-list { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; gap: 6px; }
.pkg-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); }
.pkg-list li small { display: block; color: var(--muted); font-size: .76rem; overflow-wrap: anywhere; }
.pkg-list li.ok { background: #f0fbf6; border-color: #cdebdc; }
.pkg-list li.miss { background: #fff8f1; border-color: #f3dcc2; }
.pk-ic { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem; color: #fff; background: #c77a1b; }
.pkg-list li.ok .pk-ic { background: var(--teal); }
.pk-ic .i16 { width: 13px; height: 13px; }
/* Checklist: QA's review step strip (only the reviewed steps) */
.qa-strip { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.qa-step { padding: 4px 9px; font-size: .72rem; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; background: #fff; }
.qa-step + .qa-step { border-left: 1px solid var(--line-strong); }
.qa-step.on { background: var(--blue); color: #fff; }
@media (max-width: 640px) { .qa-strip { display: flex; flex-wrap: wrap; } .qa-step { flex: 1 1 auto; text-align: center; } }
.qa-strip-lg { margin: 0 0 14px; }
.qa-strip-lg .qa-step { padding: 7px 14px; font-size: .8rem; }
.qa-step.done { color: #11744a; background: #f0fbf6; }
/* Appraisal Withdrawn: after the ten steps, apart from them */
.withdraw-row { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin: -4px 0 12px; padding-top: 10px; border-top: 1px dashed var(--line-strong); font-size: .82rem; }
.btn.ghost.danger-text, .danger-text { color: #b42318; border-color: #f0c5c2; }
.withdrawn-box { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #f0c5c2; background: #fff7f6; border-radius: 10px; }
.withdrawn-box p { margin: 4px 0; }
/* Appraisal Withdrawn: the last step button */
.pipeline li.wd .pip { border-color: #f0c5c2; color: #b42318; }
.pipeline li.wd.now .pip, .pipeline li.wd.past .pip { background: #b42318; border-color: #b42318; color: #fff; }
.pipeline li.wd.now .pl-btn { background: #fff7f6; border-color: #f0c5c2; color: #b42318; }
.pipeline li.wd::before { background: var(--line-strong) !important; }
/* Status updates: who did it, and internal notes */
.note-by { font-size: .78rem; color: var(--text); margin: 2px 0 4px; }
.chip.internal-chip { margin-left: 8px; background: #fff4e5; color: #9a5b0b; font-size: .68rem; padding: 1px 8px; }

/* Photos tab: the photo manager (photos.js) */
.pm > .pm-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; background: linear-gradient(135deg, #0b2f4e, #0f4f6e); border-radius: var(--radius) var(--radius) 0 0; }
.pm-bar .btn.ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.pm-bar .grow { flex: 1; }
.pm-size { display: inline-flex; gap: 4px; }
.pm-size .icon-btn { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.12); color: #fff; font-weight: 700; border: 0; cursor: pointer; }
.pm-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; background: #f2f7ff; border-bottom: 1px solid var(--line); }
.pm-pick select { padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; }
.pm-main { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: 420px; }
.pm-tree { border-right: 1px solid var(--line); padding: 10px 6px 14px; background: #fafcfd; overflow: auto; max-height: 75vh; }
.pm-tree ul { list-style: none; margin: 0; padding: 0; }
.pm-th { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 12px 10px 4px; }
.pm-f { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: none; padding: 6px 10px; border-radius: 8px; font: inherit; font-size: .86rem; color: var(--ink); text-align: left; cursor: pointer; }
.pm-f span { flex: 1; min-width: 0; text-align: left; overflow-wrap: anywhere; }
.pm-f .i16 { flex: none; color: var(--muted); }
.pm-f em { font-style: normal; font-size: .76rem; color: var(--muted); font-weight: 600; }
.pm-f:hover { background: #eef5f8; }
.pm-f.on { background: #e6f4f4; color: var(--teal); font-weight: 600; }
.pm-tree .link { margin: 10px 10px 0; }
.pm-tree li { position: relative; display: flex; align-items: center; border-radius: 8px; }
.pm-tree li > .pm-f { flex: 1; min-width: 0; }
.pm-tree li.dragging { opacity: .4; }
.pm-tree li.drop-before { box-shadow: inset 0 2px 0 #1f6fe0; }
.pm-tree li.drop-after { box-shadow: inset 0 -2px 0 #1f6fe0; }
.pm-tree li.drop-inside > .pm-f { background: #e3eeff; outline: 2px dashed #1f6fe0; outline-offset: -2px; }
.pm-tree .pm-f[draggable=true] { cursor: grab; }
.pm-f-x { flex: none; width: 24px; height: 24px; margin-right: 4px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 1rem; line-height: 1; cursor: pointer; }
.pm-f-x:hover { background: #fdecec; color: var(--bad); }
.pm-tip { margin: 8px 10px 0; }
.pm-ed.pm-bulk { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; background: #f7faff; border-color: #bcd3f5; }
.dlg:has(.pm-updlg) { width: min(900px, calc(100vw - 32px)); }
.pm-ups { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; max-height: 55vh; overflow: auto; padding: 2px; }
.pm-up { display: grid; gap: 6px; }
.pm-up-img { position: relative; height: 120px; border: 2px solid transparent; border-radius: 10px; background: #e9eef3; padding: 0; overflow: hidden; cursor: pointer; display: grid; place-items: center; }
.pm-up-img img { width: 100%; height: 100%; object-fit: cover; }
.pm-up-img .pm-ck { color: transparent; }
.pm-up.on .pm-up-img, .pm-up-img:focus-visible { border-color: #1f6fe0; }
.pm-up.on .pm-up-img .pm-ck { color: #fff; background: #1f6fe0; }
.pm-up-name { font-size: .78rem; padding: 6px; overflow-wrap: anywhere; color: var(--muted); }
.pm-up select { font-size: .82rem; padding: 6px 8px; }
.pm-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pm-strip img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; background: #e9eef3; }
.pm-bulk input:not([type=checkbox]), .pm-bulk select, .pm-bulk textarea { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; font: inherit; }
.pm-bulk .pm-bulk-f { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pm-bulk .cb { margin-top: 4px; font-weight: 400; }
.pm-right { padding: 14px; min-width: 0; }
.pm-fsel { display: none; }
.pm-help { margin-top: 0; }
.pm-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.pm-card { border: 1px solid transparent; border-radius: 10px; padding: 6px; cursor: pointer; background: #fff; }
.pm-card:hover { background: #f4f8fb; }
.pm-card.on { border-color: var(--teal); background: #eef8f8; }
.pm-card.picked { border-color: #1f6fe0; background: #f2f7ff; }
.pm-card.over { box-shadow: -4px 0 0 #1f6fe0; }
.pm-card.dragging { opacity: .4; }
.pm-card.excl .pm-thumb img { opacity: .45; }
.pm-thumb { position: relative; display: grid; place-items: center; background: #e9eef3; border-radius: 8px; overflow: hidden; }
.pm-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pm-x { position: absolute; right: 6px; bottom: 6px; padding: 2px 6px; border-radius: 6px; background: #fff; color: var(--bad); font-size: .68rem; font-weight: 700; }
.pm-ck { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 6px; background: #fff; border: 2px solid #1f6fe0; color: #1f6fe0; font-weight: 800; display: grid; place-items: center; font-size: .8rem; }
.pm-ck { cursor: pointer; }
.pm-group-note { margin: 0; padding: 8px 10px; border-radius: 8px; background: #f2f7ff; border: 1px solid #bcd3f5; font-size: .84rem; }
.pm-del { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: var(--bad, #c62828); color: #fff; font-size: 1rem; font-weight: 700; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.pm-del:hover, .pm-del:focus-visible { background: #a11d1d; }
.pm-thumb:has(.pm-del) .pm-ck { right: 36px; }
.pm-ck::after { content: ""; position: absolute; inset: -10px; }
.pm-name { font-size: .8rem; margin-top: 6px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-fold { font-size: .7rem; color: var(--muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-ed { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.pm-view { position: relative; background: #1d2a35; display: grid; place-items: center; min-height: 320px; }
.pm-big { display: grid; place-items: center; width: 100%; height: 100%; padding: 12px 44px; }
.pm-big img { max-width: 100%; max-height: 420px; object-fit: contain; }
.pm-big img.turned { max-width: 420px; max-height: 100%; }
.pm-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 44px; border: 0; border-radius: 8px; background: #fff; color: #0b2f4e; cursor: pointer; display: grid; place-items: center; }
.pm-nav:disabled { opacity: .35; cursor: default; }
.pm-nav.prev { left: 6px; } .pm-nav.next { right: 6px; }
.pm-fields { padding: 14px; display: grid; gap: 10px; align-content: start; background: #fff; }
.pm-ed-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pm-ed-h .grow { flex: 1; }
.pm-ed-h .icon-btn { width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; cursor: pointer; font-size: 1rem; }
.pm-grid-f { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pm-fields input:not([type=checkbox]), .pm-fields select, .pm-fields textarea, .pm-dlg select, .pm-dlg input:not([type=checkbox]) { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; font: inherit; }
.pm-ed-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.pm-ed-foot .grow { flex: 1; }
.link.danger { color: var(--bad); }
@media (max-width: 900px) {
  .pm-main { grid-template-columns: 1fr; }
  .pm-tree { display: none; }
  .pm-fsel { display: block; width: 100%; margin-bottom: 10px; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; font: inherit; }
  .pm-ed { grid-template-columns: 1fr; }
  .pm-bulk .pm-bulk-f { grid-template-columns: 1fr 1fr; }
  .pm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pm-card { width: auto !important; padding: 4px; }
  .pm-thumb { height: auto !important; aspect-ratio: 1; }
}
@media (max-width: 560px) {
  .pm > .pm-bar .btn { flex: 1 1 auto; justify-content: center; }
  .pm-size { display: none; }
  .pm-grid-f { grid-template-columns: 1fr; }
}
.bad-t { color: var(--bad); font-weight: 600; }
.car-table td:first-child { min-width: 160px; }
.page-head .fb select { padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; font: inherit; max-width: 260px; min-width: 0; }
@media (max-width: 700px) { .page-head .fb { flex-wrap: wrap; max-width: 100%; } .page-head .fb select, .page-head .fb input { max-width: 100%; min-width: 0; flex: 1 1 140px; } }
/* File Reviewers: review pay rates */
.rates-table .rate-in { width: 100px; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; }
.rates-table .rates-default td { background: #f7faff; }
/* Client My Assignments: the tiles are tabs (Open files, Updates, Awaiting Award, Completed) */
.client-tabs .kpi { font: inherit; cursor: pointer; border: 1px solid var(--line); background: var(--card, #fff); text-align: center; justify-content: center; position: relative; transition: border-color .15s, box-shadow .15s; }
.client-tabs .kpi:hover { border-color: var(--teal); }
.client-tabs .kpi.on { border-color: var(--teal); box-shadow: inset 0 -3px 0 var(--teal); background: #f2fafa; }
.client-tabs .kpi.has-new::after { content: ""; position: absolute; top: 10px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: #1f6fe0; }
.chip.new { background: #e3eeff; color: #1f6fe0; font-weight: 700; }
tr.has-new td:first-child { box-shadow: inset 3px 0 0 #1f6fe0; }
.notes li.is-new { box-shadow: inset 3px 0 0 #1f6fe0; background: #f7faff; }
