* { box-sizing: border-box; }
body {
  font-family: -apple-system, Segoe UI, Arial, sans-serif;
  margin: 0;
  background: #f5f6f8;
  color: #1c1c1e;
}
.page-header {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
header {
  background: #1c2530;
  color: white;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
header h1 { font-size: 18px; margin: 0; font-weight: 600; }
header .sub { font-size: 12px; opacity: 0.7; }
nav {
  display: flex;
  gap: 4px;
  background: white;
  padding: 0 20px;
  border-bottom: 1px solid #ddd;
}
nav button {
  border: none;
  background: none;
  padding: 12px 16px;
  font-size: 14px;
  cursor: pointer;
  color: #555;
  border-bottom: 3px solid transparent;
}
nav button.active {
  color: #1c2530;
  border-bottom-color: #2b6cb0;
  font-weight: 600;
}
main {
  padding: 20px;
  max-width: 1320px;
  margin: 0 auto;
}
section.tab { display: none; }
section.tab.active { display: block; }
.card {
  background: white;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 18px;
}
.card h2 { margin-top: 0; font-size: 16px; }
.card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: #666; margin-bottom: 8px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
label { font-size: 12px; color: #444; display: block; margin-bottom: 3px; }
input, select {
  width: 100%;
  padding: 7px 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 13px;
}
button.action {
  background: #2b6cb0;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 5px;
  font-size: 13px;
  cursor: pointer;
  margin-top: 8px;
}
button.action.secondary { background: #6b7280; }
button.action.danger { background: #b03030; }
button.action:hover { opacity: 0.9; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 8px;
}
th, td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid #eee;
}
th { color: #666; font-weight: 600; font-size: 11px; text-transform: uppercase; }
.flag {
  display: inline-block;
  background: #fff3cd;
  color: #7a5b00;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  margin-left: 6px;
}
.flag.bad { background: #fde2e1; color: #9b1c1c; }
.status-badge {
  display: inline-block;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.status-badge.unassigned { background: #f1f1f1; color: #666; }
.status-badge.assigned { background: #e8eefd; color: #2a4ba0; }
.status-badge.in_process { background: #fff3cd; color: #7a5b00; }
.status-badge.completed { background: #e0f3e6; color: #1b6b3a; }
.status-badge.done { background: #e0f3e6; color: #1b6b3a; }
.status-badge.passed { background: #e0f3e6; color: #1b6b3a; }
.status-badge.failed { background: #fde2e1; color: #9b1c1c; }
.status-badge.automated_pending { background: #f1eaff; color: #5a3d99; }
.status-badge.automated_processing { background: #fff3cd; color: #7a5b00; }
.status-badge.automated_done { background: #e0f3e6; color: #1b6b3a; }
.status-badge.automated_failed { background: #fde2e1; color: #9b1c1c; }
.flag.overdue { background: #fde2e1; color: #9b1c1c; font-weight: 600; }
.flag.ontime { background: #e0f3e6; color: #1b6b3a; }
.automation-note { font-size: 11px; color: #9b1c1c; display: block; margin-top: 2px; }
.step-tracker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 8px 0 4px;
}
.step-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: 8px;
  padding: 6px 10px;
  min-width: 96px;
  border: 2px solid transparent;
  background: #f1f1f1;
  color: #666;
}
.step-chip .step-chip-name { font-size: 12px; font-weight: 600; }
.step-chip .step-chip-sub { font-size: 10px; opacity: 0.85; }
.step-chip.unassigned { background: #f1f1f1; color: #666; }
.step-chip.assigned { background: #e8eefd; color: #2a4ba0; }
.step-chip.in_process { background: #fff3cd; color: #7a5b00; }
.step-chip.completed, .step-chip.done, .step-chip.passed, .step-chip.automated_done { background: #e0f3e6; color: #1b6b3a; }
.step-chip.failed, .step-chip.automated_failed { background: #fde2e1; color: #9b1c1c; }
.step-chip.automated_pending { background: #f1eaff; color: #5a3d99; }
.step-chip.automated_processing { background: #fff3cd; color: #7a5b00; }
.step-chip.active { border-color: #333; }
.step-chip.step-overdue { box-shadow: inset 0 0 0 2px #9b1c1c; }
.step-arrow { color: #ccc; font-size: 16px; }
.msg {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 13px;
  white-space: pre-wrap;
}
.msg.ok { background: #e6f6ec; color: #1b6b3a; }
.msg.err { background: #fde2e1; color: #9b1c1c; }
.row { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.row > div { flex: 1; min-width: 160px; }
.small { font-size: 12px; color: #777; }
.checkbox-row { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.checkbox-row input { width: auto; }
.widget-card h2 { display: flex; align-items: center; justify-content: space-between; }
.widget-card .btn-move-up, .widget-card .btn-move-down { padding: 4px 8px; margin: 0 2px; }
.flags-list { list-style: none; padding: 0; margin: 0; }
.flags-list li { padding: 6px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.flags-list li:last-child { border-bottom: none; }

/* Searchable select (22 Sep 2026): typing filters a dropdown of the same
   options the underlying <select> already had -- for any list long enough
   that scrolling a plain dropdown is annoying (customers, services,
   freelancers). The real <select> stays in the DOM (hidden) so every
   existing form/read-the-value code keeps working unchanged. */
.searchable-select { position: relative; }
.searchable-select-input { cursor: text; }
.searchable-select-input.unmatched { color: #b03030; }
.searchable-select-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  margin-top: 2px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.searchable-select-dropdown.open { display: block; }
.searchable-select-dropdown .opt {
  padding: 7px 10px;
  font-size: 13px;
  cursor: pointer;
}
.searchable-select-dropdown .opt:hover,
.searchable-select-dropdown .opt.active { background: #eaf1fb; }
.searchable-select-dropdown .opt.empty { color: #888; font-style: italic; cursor: default; }
.searchable-select-dropdown .opt.empty:hover { background: none; }

input[readonly], select.locked-by-service {
  background: #f0f0f0;
  color: #555;
  cursor: not-allowed;
}

/* ---- Work an order redesign (26 Sep 2026, from the approved mockup) ----
   Four colours = Noam's four statuses. Grey/blue/amber/green also differ
   in lightness, and every box carries its status in words too. */
:root {
  --wo-u-bg: #f1f2f4; --wo-u-bd: #a3a9b3; --wo-u-tx: #454b55; --wo-u-pill: #dde0e5;
  --wo-a-bg: #eaf1fd; --wo-a-bd: #3d6fd1; --wo-a-tx: #1d4796; --wo-a-pill: #d3e1fa;
  --wo-p-bg: #fff4de; --wo-p-bd: #d98a0b; --wo-p-tx: #7a4a00; --wo-p-pill: #fce3b0;
  --wo-c-bg: #e4f4ea; --wo-c-bd: #2e8b53; --wo-c-tx: #1b5e36; --wo-c-pill: #c9ead5;
  --wo-late: #9b1c1c;
}
#tab-work { color: #141a24; }
.wo-h1 { margin: 0; font-size: 24px; font-weight: 700; }
.wo-sub { font-size: 14px; color: #5b6270; }
.wo-muted { color: #454b55; }
.wo-strong { font-weight: 600; }
.wo-hint { font-size: 12.5px; color: #5b6270; margin-top: 6px; }
.wo-empty { padding: 18px; color: #5b6270; font-size: 14px; }

.wo-list-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.wo-list-head > div:first-child { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.wo-search { width: 340px; }
.wo-card-flush { padding: 0; overflow: hidden; }
table.wo-orders { margin-top: 0; font-size: 14px; }
table.wo-orders th { background: #f7f8fa; padding: 12px 14px; }
table.wo-orders td { padding: 12px 14px; vertical-align: middle; }

.wo-now-chip, .wo-pill { display: inline-block; font-weight: 600; border-radius: 7px; }
.wo-now-chip { font-size: 13px; padding: 4px 9px; border: 2px solid; }
.wo-pill { font-size: 11.5px; letter-spacing: 0.03em; text-transform: uppercase; padding: 3px 8px; }
.wo-now-chip.unassigned { background: var(--wo-u-bg); border-color: var(--wo-u-bd); color: var(--wo-u-tx); }
.wo-now-chip.assigned { background: var(--wo-a-bg); border-color: var(--wo-a-bd); color: var(--wo-a-tx); }
.wo-now-chip.in_process { background: var(--wo-p-bg); border-color: var(--wo-p-bd); color: var(--wo-p-tx); }
.wo-now-chip.completed { background: var(--wo-c-bg); border-color: var(--wo-c-bd); color: var(--wo-c-tx); }
.wo-pill.unassigned { background: var(--wo-u-pill); color: var(--wo-u-tx); }
.wo-pill.assigned { background: var(--wo-a-pill); color: var(--wo-a-tx); }
.wo-pill.in_process { background: var(--wo-p-pill); color: var(--wo-p-tx); }
.wo-pill.completed { background: var(--wo-c-pill); color: var(--wo-c-tx); }

.wo-segs { display: flex; gap: 4px; margin: 6px 0 4px; }
.wo-segs i { flex: 1; height: 8px; border-radius: 4px; background: var(--wo-u-bd); }
.wo-segs.small { gap: 3px; min-width: 90px; }
.wo-segs i.assigned { background: var(--wo-a-bd); }
.wo-segs i.in_process { background: var(--wo-p-bd); }
.wo-segs i.completed { background: var(--wo-c-bd); }
.wo-tile-small { font-size: 12px; color: #5b6270; }

.wo-timing { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.wo-timing.big { font-size: 15px; padding: 6px 14px; align-self: flex-start; }
.wo-timing.ontime { background: var(--wo-c-bg); color: var(--wo-c-tx); }
.wo-timing.overdue { background: var(--wo-late); color: #fff; }

.wo-legend { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; font-size: 13px; color: #454b55; margin: 4px 0 16px; }
.wo-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wo-legend-title { font-weight: 600; }
.wo-legend-in { border-top: 1px solid #eef0f3; padding-top: 12px; margin: 16px 0 0; }
.wo-sw { width: 14px; height: 14px; border-radius: 4px; border: 2px solid; display: inline-block; }
.wo-sw.unassigned { background: var(--wo-u-bg); border-color: var(--wo-u-bd); }
.wo-sw.assigned { background: var(--wo-a-bg); border-color: var(--wo-a-bd); }
.wo-sw.in_process { background: var(--wo-p-bg); border-color: var(--wo-p-bd); }
.wo-sw.completed { background: var(--wo-c-bg); border-color: var(--wo-c-bd); }

.wo-back { display: inline-block; font-size: 14px; font-weight: 500; color: #1d4796; text-decoration: none; margin-bottom: 12px; }
.wo-summary { padding: 22px 24px; }
.wo-summary-top { display: flex; align-items: flex-start; gap: 24px; }
.wo-title-block { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.wo-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wo-chip { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 999px; background: #eef0f3; color: #454b55; }
.wo-next { display: flex; flex-direction: column; align-items: flex-end; max-width: 340px; text-align: right; }
.wo-next-btn { font-size: 16px; font-weight: 600; padding: 12px 22px; min-height: 46px; border-radius: 10px; border: none; background: #2458c6; color: #fff; cursor: pointer; }
.wo-next-btn:disabled { background: #e1e4e9; color: #5b6270; cursor: not-allowed; }
.wo-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.wo-tile { background: #f7f8fa; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.wo-tile-label, .wo-eyebrow { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: #5b6270; }
.wo-tile-value { font-size: 19px; font-weight: 700; }

.wo-section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.card .wo-section-head h3 { margin: 0; font-size: 17px; text-transform: none; letter-spacing: 0; color: #141a24; }
.wo-steps { display: flex; align-items: stretch; gap: 8px; padding-top: 12px; }
.wo-step-wrap { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.wo-arrow { flex-shrink: 0; color: #9aa1ac; }
.wo-arrow.last { visibility: hidden; }
.wo-step {
  flex: 1; min-width: 0; min-height: 172px; position: relative; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 10px; padding: 20px 14px 14px; border-radius: 12px;
  border: 2px solid; font: inherit; color: inherit;
}
.wo-step.unassigned { background: var(--wo-u-bg); border-color: var(--wo-u-bd); }
.wo-step.assigned { background: var(--wo-a-bg); border-color: var(--wo-a-bd); }
.wo-step.in_process { background: var(--wo-p-bg); border-color: var(--wo-p-bd); }
.wo-step.completed { background: var(--wo-c-bg); border-color: var(--wo-c-bd); }
.wo-step.selected { border: 3px solid #141a24; box-shadow: 0 6px 18px rgba(20, 26, 36, 0.16); }
.wo-here { position: absolute; top: -12px; left: 12px; background: #141a24; color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; }
.wo-step-tags { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.wo-step-name { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.wo-step-person { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: #2b313b; }
.wo-step-due { font-size: 12.5px; color: #4b5260; }
.wo-avatar { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; background: #fff; border: 2px solid; }
.wo-avatar.unassigned { border-color: var(--wo-u-bd); color: var(--wo-u-tx); }
.wo-avatar.assigned { border-color: var(--wo-a-bd); color: var(--wo-a-tx); }
.wo-avatar.in_process { border-color: var(--wo-p-bd); color: var(--wo-p-tx); }
.wo-avatar.completed { border-color: var(--wo-c-bd); color: var(--wo-c-tx); }
.wo-auto { font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; padding: 3px 7px; border-radius: 6px; background: #ede7fb; color: #4b2e91; }
.wo-overdue-tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: var(--wo-late); color: #fff; }

#wo-detail { padding: 22px 24px; }
.wo-detail-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.card .wo-detail-head h3 { margin: 0; font-size: 20px; text-transform: none; letter-spacing: 0; color: #141a24; }
.wo-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.wo-field { margin-bottom: 16px; font-size: 14px; }
.wo-field-label { font-size: 13px; font-weight: 600; color: #141a24; margin-bottom: 6px; display: block; }
.wo-field select, .wo-field input[type="date"] { font-size: 14px; padding: 9px 10px; max-width: 340px; }
.wo-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wo-inline input { width: auto; }
.wo-link { background: none; border: none; color: #1d4796; text-decoration: underline; cursor: pointer; font-size: 13px; padding: 6px 2px; }
.wo-situation { font-size: 14px; color: #2b313b; background: #f7f8fa; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
.wo-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.wo-act { font-size: 15px; font-weight: 600; padding: 11px 18px; min-height: 44px; border-radius: 10px; border: none; color: #fff; cursor: pointer; }
.wo-act.amber { background: #b36f00; }
.wo-act.green { background: #2e8b53; }
.wo-act.red { background: #a32121; }
.wo-act.blue { background: #2458c6; }
.wo-act.plain { background: #fff; color: #2b313b; border: 1px solid #c9ced6; font-weight: 500; }
.wo-act.dashed { background: #f7f8fa; color: #5b6270; border: 1px dashed #a3a9b3; font-weight: 500; cursor: not-allowed; }
.wo-checks { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 12px; }
.wo-check { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 14px; }
.wo-check.ok { background: #f2faf5; color: var(--wo-c-tx); }
.wo-check.no { background: #fdf0ef; color: #8a1a1a; }
.wo-check-label { flex: 1; }
.wo-check .wo-inline input { width: 150px; padding: 6px 8px; }
#wo-override { margin-top: 10px; }
.wo-more { padding: 12px 24px; }
.wo-more-toggle { background: none; border: none; font-size: 14px; font-weight: 600; color: #2b313b; cursor: pointer; padding: 8px 0; }
.wo-more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 10px 0 8px; }
.wo-token { font-family: ui-monospace, Menlo, monospace; font-size: 13px; word-break: break-all; }

/* Step picker (26 Sep 2026): tick-box list of steps for a service */
.step-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; margin: 6px 0 10px; }
.step-pick { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #e1e4e9; border-radius: 8px; background: #fff; font-size: 13px; color: #141a24; margin: 0; cursor: pointer; }
.step-pick input { width: auto; }
.step-pick.riding { background: #f7f8fa; color: #5b6270; cursor: default; }
.step-pick-rank { font-size: 11px; font-weight: 700; color: #5b6270; min-width: 22px; }
.step-pick .small { margin-left: auto; }

/* Setup sub-tabs (27 Sep 2026): one part of Setup at a time */
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.subtab { font: inherit; font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 999px; border: 1px solid #c9ced6; background: #fff; color: #2b313b; cursor: pointer; }
.subtab.active { background: #1b2230; border-color: #1b2230; color: #fff; }
.setup-panel { display: none; }
.setup-panel.active { display: block; }
.step-picker > .small { grid-column: 1 / -1; }

/* Work materials widget (27 Sep 2026): New Order, Ingest step, More */
.mw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mw label.small { display: block; margin: 2px 0 4px; }
.mw-table { font-size: 13px; }
.wo-ingest-files { border-top: 1px solid #eef0f3; margin-top: 18px; padding-top: 16px; }
.wo-more-files { border: 1px solid #e1e4e9; border-radius: 10px; padding: 14px 16px; margin: 6px 0 12px; background: #fafbfc; }
.wo-check.missing { background: #fdf0ef; color: #8a1a1a; }
.wo-check.waiting { background: #f4f5f7; color: #4b5260; }

/* One-click files on the order page (28 Sep 2026) */
.wo-files { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #eef0f3; }
.wo-files-title { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: #5b6270; margin-right: 4px; }
.wo-file-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; min-height: 40px; border-radius: 10px; border: 1px solid #3d6fd1; background: #fff; color: #1d4796; text-decoration: none; font-size: 14px; font-weight: 600; }
.wo-file-btn:hover { background: #eaf1fd; color: #123066; }
.wo-file-kind { font-size: 12px; font-weight: 500; color: #5b6270; }
.wo-file-btn.rules { border-color: #7a5bc4; color: #4b2e91; }
.wo-file-btn.rules:hover { background: #f1eaff; }

/* 28 Sep 2026: Google sign-in */
header .whoami { margin-left: auto; font-size: 13px; }
header .whoami a { color: inherit; text-decoration: underline; }
.wo-mine { font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; padding: 3px 7px; border-radius: 6px; background: #dce8fb; color: #1d4796; }
.role-freelancer .wo-more { display: none; }

/* 29 Sep 2026: downloads on the Step details card */
.wo-step-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

/* 29 Sep 2026: order headline on New Order */
.order-headline-box { background: #f5f8fe; border: 1px solid #d6e2f7; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.order-headline-label { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #5b6270; }
.order-headline { font-size: 20px; font-weight: 700; color: #141a24; margin-top: 2px; unicode-bidi: plaintext; }
.order-headline.empty { color: #8a919c; font-weight: 500; font-size: 15px; }

/* 29 Sep 2026: duplicates */
.dup-group { border: 1px solid #e1e4e9; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.dup-group ul { margin: 6px 0 8px 18px; }

/* 30 Sep 2026: order flags and complete orders */
.wo-flags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.wo-flags:empty { display: none; }
.wo-flag { font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid; }
.wo-flag.attention { background: #fff6e5; border-color: #f0c36d; color: #7a4b00; }
.wo-flag.info { background: #f1f3f6; border-color: #d5dae1; color: #4a5260; }
.wo-flag-badge { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; cursor: help; white-space: nowrap; }
.wo-flag-badge.attention { background: #fff6e5; color: #7a4b00; border: 1px solid #f0c36d; }
.wo-flag-badge.info { background: #f1f3f6; color: #4a5260; border: 1px solid #d5dae1; }
tr.wo-row-complete td { background: #eef8f0; }

/* 30 Sep 2026: calculated price on New Order */
.price-quote { font-size: 13px; margin-top: 4px; color: #1d4796; }
.price-quote.muted { color: #8a919c; }
.price-quote.warn { color: #7a4b00; }
.price-quote.overridden { color: #5b6270; text-decoration: none; }

/* 30 Sep 2026: Mux upload progress */
.mw-progress { margin-top: 12px; padding: 10px 12px; border: 1px solid #d6e2f7; border-radius: 10px; background: #f5f8fe; }
.mw-progress-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; }
.mw-progress-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: plaintext; }
.mw-progress-bar { height: 10px; background: #dfe6f2; border-radius: 999px; overflow: hidden; margin: 8px 0 6px; }
.mw-progress-bar i { display: block; height: 100%; width: 0; background: #2458c6; border-radius: 999px; transition: width .2s; }
.mw-progress.done .mw-progress-bar i { background: #2f8f4e; }

/* 30 Sep 2026: bulk orders */
.mode-switch { display: inline-flex; border: 1px solid #c9d0da; border-radius: 10px; overflow: hidden; margin: 0 0 12px; }
.mode-btn { border: 0; background: #fff; padding: 9px 16px; font-size: 14px; font-weight: 600; color: #4a5260; cursor: pointer; }
.mode-btn.active { background: #1c2530; color: #fff; }
.series-hint { font-size: 13px; margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.series-hint .chip { border: 1px solid #3d6fd1; color: #1d4796; background: #fff; border-radius: 999px; padding: 3px 10px; cursor: pointer; font-size: 13px; }
.series-hint .warn { color: #7a4b00; }
.bulk-preview { margin-top: 8px; font-size: 13px; background: #fff; border: 1px solid #e1e4e9; border-radius: 10px; padding: 8px 12px; }
.bulk-preview ol { margin: 4px 0 0 18px; padding: 0; }
.bulk-preview li.exists { color: #7a4b00; }
.bulk-table td { vertical-align: middle; }
.bulk-table input[type=file] { width: 220px; }
.bulk-status { min-width: 180px; font-size: 13px; }
.bulk-status .mw-progress-bar { margin: 4px 0; }

/* 30 Sep 2026: edit order */
.apply-batch { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.apply-batch input { width: auto; margin: 0; }
.apply-batch label { margin: 0; font-weight: 600; }

/* 30 Sep 2026: Next order */
.wo-topnav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* 30 Sep 2026: new orders stand out in All orders (first 24 hours) */
tr.wo-row-new td { background: #eef4ff; }
tr.wo-row-new td:first-child { box-shadow: inset 4px 0 0 #2458c6; }
.wo-new-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 2px 6px; border-radius: 6px; background: #2458c6; color: #fff; vertical-align: middle; }

/* 30 Sep 2026: the latest file stands out */
.wo-file-btn.latest { border-width: 2px; border-color: #2458c6; background: #eef4ff; box-shadow: 0 1px 4px rgba(36,88,198,.18); }
.wo-latest { font-size: 10px; font-weight: 800; letter-spacing: .05em; background: #2458c6; color: #fff; border-radius: 5px; padding: 2px 5px; }
tr.mw-latest td { background: #eef4ff; }

/* 30 Sep 2026: drag and drop */
.drop-hover { outline: 2px dashed #2458c6; outline-offset: 3px; background: #eef4ff !important; border-radius: 8px; }
input[type=file] { cursor: pointer; }

/* 30 Sep 2026: order page navigation, two rows */
.wo-topnav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.wo-topnav.second { justify-content: flex-start; margin-bottom: 12px; }
.wo-topnav-right { display: flex; gap: 8px; }
.wo-navbtn { display: inline-flex; align-items: center; padding: 7px 14px; border: 1px solid #c9d0da; border-radius: 9px; background: #fff; color: #1d4796; font-weight: 600; font-size: 14px; text-decoration: none; }
.wo-navbtn:hover { border-color: #2458c6; background: #f5f8fe; }

/* 30 Sep 2026: branding */
header h1.brand { display: inline-flex; align-items: center; gap: 8px; }
header h1.brand img { border-radius: 6px; }

/* 1 Oct 2026: delete order (Noam only), comments, rate warning */
.wo-topnav.second .wo-navbtn.danger { margin-left: auto; color: #b42318; border-color: #f0b8b2; }
.wo-topnav.second .wo-navbtn.danger:hover { background: #fdecea; border-color: #b42318; }
.wo-comments { display: flex; flex-direction: column; gap: 10px; margin: 10px 0 14px; }
.wo-comment { background: #f7f8fa; border: 1px solid #e1e4e9; border-radius: 10px; padding: 9px 12px; }
.wo-comment-head { margin-bottom: 3px; }
.wo-comment-text { white-space: pre-wrap; font-size: 14px; }
.wo-comment-form { display: flex; gap: 10px; align-items: flex-end; }
.wo-comment-form textarea { flex: 1; font: inherit; padding: 8px 10px; border: 1px solid #c9d0da; border-radius: 8px; resize: vertical; }
.wo-rate-box { margin-top: 10px; background: #fff6e5; border: 1px solid #f0c36d; color: #5f3b00; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
tr.dash-overdue td { background: #fdf1f1; }

/* Freelancer fees */
.fees-month-box { display: flex; align-items: flex-end; gap: 8px; }
.fees-month-box input { width: auto; }
.fees-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.fees-tab { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 8px 14px; border: 1px solid #c9d0da; border-radius: 10px; background: #fff; cursor: pointer; font: inherit; }
.fees-tab.active { border-color: #2458c6; box-shadow: 0 0 0 2px #d3e1fa; }
.fees-tab-name { font-weight: 600; }
.fees-status { font-size: 12px; font-weight: 600; border-radius: 6px; padding: 2px 7px; background: var(--wo-u-pill); color: var(--wo-u-tx); }
.fees-status.sent { background: var(--wo-a-pill); color: var(--wo-a-tx); }
.fees-status.returned { background: var(--wo-p-pill); color: var(--wo-p-tx); }
.fees-status.approved { background: var(--wo-c-pill); color: var(--wo-c-tx); }
.fees-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.fees-name { font-size: 19px; font-weight: 700; margin: 0 0 4px; }
.fees-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fees-actions a.action { text-decoration: none; display: inline-flex; align-items: center; }
.fees-note { margin: 12px 0 0; background: #fff6e5; border: 1px solid #f0c36d; border-radius: 10px; padding: 9px 12px; font-size: 14px; }
.fees-table { margin-top: 14px; font-size: 14px; }
.fees-table td { vertical-align: top; }
.fees-how { color: #454b55; font-size: 13px; max-width: 260px; }
.fees-fee { white-space: nowrap; }
.fee-input { width: 100px; }
.fees-edited { font-size: 12px; color: #7a4a00; margin-top: 4px; white-space: normal; }
.fees-comments { min-width: 200px; }
.fees-comment { font-size: 13px; margin-bottom: 4px; }
.fees-comment.manager strong { color: #1d4796; }
.fees-plus { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #2458c6; background: #fff; color: #2458c6; font-weight: 700; font-size: 16px; cursor: pointer; line-height: 1; }
.fees-plus:hover { background: #eaf1fd; }
.fees-comment-form { gap: 6px; margin-top: 6px; align-items: flex-end; }
.fees-comment-form textarea { flex: 1; font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid #c9d0da; border-radius: 8px; }
.fees-table tfoot td { border-top: 2px solid #c9d0da; }
.fees-approve-box { margin-top: 16px; padding: 12px 14px; background: #eaf1fd; border: 1px solid #b9cdf3; border-radius: 10px; }
.fees-approve-box.done { background: var(--wo-c-bg); border-color: #9fd3b2; }
.fees-approve-box p { margin: 0 0 8px; }

/* Customer approval before invoicing */
.br-actions { display: flex; gap: 8px; align-items: flex-end; }
.br-table tfoot td { border-top: 2px solid #c9d0da; }
.br-approved { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 6px; padding: 2px 7px; background: var(--wo-c-pill); color: var(--wo-c-tx); }

/* 2 Oct 2026: Setup -> Go live */
.setup-panel[data-setup-panel="golive"] { background: none; border: 0; padding: 0; }
.gl-danger { border: 2px solid #f0b8b2; }
.gl-rows tr.gl-skip td { color: #8a919c; }
.gl-map-table { max-width: 760px; }
.gl-map-table select { width: 100%; }
