/* Theme: every color the site uses. Change the palette here only. Based on 1.0's colors. */
:root {
  --ink: #1d2433; --muted: #5d6677; --line: #dfe3ea; --bg: #f5f6f8; --card: #fff;
  --brand: #5589c5; --brand-ink: #fff;            /* 1.0 header bar, selected folder, folder icons */
  --brand-dark: #2f5f93;                           /* 1.0 round menu button in the header */
  --accent: #3f72ad; --accent-ink: #fff;          /* links and buttons: 1.0's blue, a shade darker to stay readable */
  --go: #75b666; --go-ink: #fff; --go-dark: #377e22; /* 1.0 Place Order button, count badges, timers */
  --side-ink: #555; --side-line: #e7e7e7;          /* 1.0 folder pane text and dividers */
  --ok: #1d7a46; --warn: #8a5a00; --err: #b3261e;
  --orange: #f0ad4e; --orange-ink: #fff;  /* 1.0's orange No Refund button (Heath, Oct 24) */
  --vacation: #d9534f;               /* 1.0's red header while vacation mode is on (owner only) */
  --disabled: #e8ecf3;                /* grey = can't be used (Heath, Oct 22) */
  --info-bg: #eaf2fb; --info-line: #cfe0f4;   /* pale blue notes (Heath, Oct 23) */
  --sch-on: #8dc63f; --sch-soon: #f0a500; --sch-vacation: #357ebd;   /* 1.0 schedule: on shift now, starting within 4 h, on vacation */
  --sch-cap-bg: #d9f2dd; --sch-high-bg: #fff3cd; --sch-high: #856404; --sch-full-bg: #f8d7da; --sch-full: #dc3545;   /* 1.0 open/capacity badge */
  --dash-gross: #3f72ad; --dash-refunds: #d9534f; --dash-net: #5cb85c;   /* 1.0 dashboard sales tiles */
  --err-bg: #fbe9e8; --warn-bg: #eaf2fb; --warn-line: #cfe0f4;        /* set-aside items: pale blue too (Heath, Oct 24) */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink);
}
[hidden] { display: none !important; }  /* hidden always wins over a display: rule */
tr.row-link { cursor: pointer; }
tr.row-link:hover > td { background: #eef3fa; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); font-size: 15px; line-height: 1.5; }
a { color: var(--accent); }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; padding: 8px 20px; min-height: 56px;
  background: var(--brand); color: var(--brand-ink); }
.brand { font-weight: 700; text-decoration: none; color: var(--brand-ink); font-size: 18px; white-space: nowrap; }
.brand span { opacity: .85; }
.topbar nav { display: flex; gap: 18px; flex: 1; }
.topbar nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.topbar nav a:hover { color: var(--ink); }
.who { display: flex; gap: 12px; align-items: center; color: var(--muted); }
.who form { margin: 0; }
.page { max-width: 1100px; margin: 0 auto; padding: 28px 24px; }
.narrow { max-width: 420px; margin: 8vh auto; padding: 0 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
h1 { font-size: 22px; margin: 0 0 16px; }
h2 { font-size: 17px; margin: 24px 0 10px; }
p.muted, .muted { color: var(--muted); }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=url] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
ul.checks { list-style: none; padding: 0; margin: 0; columns: 2; }
ul.checks li label { font-weight: 400; display: flex; gap: 8px; margin: 4px 0; }
button, .btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px;
  padding: 10px 16px; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; }
/* Grey means "can't be used" (Heath, Oct 22): working secondary buttons are green; Cancel is plain white */
button.secondary, .btn.secondary { background: var(--go); color: var(--go-ink); }
button.plain, .btn.plain { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
button.danger, .btn.danger { background: var(--err); color: #fff; }
button.link { background: none; color: var(--accent); padding: 0; font-weight: 500; }
.actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; align-items: center; }
.errorlist { color: var(--err); list-style: none; padding: 0; margin: 6px 0; }
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; background: #e8f1fb; }
.flash-success { background: #e6f4ec; color: var(--ok); }
.flash-warning { background: var(--info-bg); color: var(--ink); border: 1px solid var(--info-line); }  /* notes are pale blue, not brown (Heath, Oct 24) */
.flash-error { background: #fbe9e8; color: var(--err); }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f0f2f6; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.tag { display: inline-block; background: #e8ecf3; border-radius: 999px; padding: 1px 10px; font-size: 13px; margin: 0 4px 4px 0; }
.tag.off { background: #fbe9e8; color: var(--err); }
.head { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.head h1 { margin: 0; }
.tabs a { margin-right: 14px; }
.roletabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 2px solid var(--line); margin: 0 0 14px; }
.roletabs a { padding: 9px 14px; margin-bottom: -2px; border-bottom: 3px solid transparent; color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; }
.roletabs a:hover { color: var(--ink); }
.roletabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
.roletabs a span { font-weight: 500; font-size: 13px; background: #e8ecf3; border-radius: 999px; padding: 0 7px; margin-left: 4px; }
.tabs a.on { font-weight: 700; color: var(--ink); text-decoration: none; }
.qr { background: #fff; padding: 12px; border: 1px solid var(--line); border-radius: 8px; display: inline-block; }
.qr svg { width: 200px; height: 200px; display: block; }
.codes { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 18px; columns: 2; padding-left: 18px; }
.pager { margin-top: 14px; display: flex; gap: 12px; }
.danger-zone { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 16px; }
.danger-zone form { display: inline; }
@media (max-width: 700px) {
  ul.checks, .codes { columns: 1; }
}

/* Roles grid (1.0 style) */
.wide { max-width: 1400px; }
.page.full { max-width: none; }  /* 1.0's full-width screens (Proofread) */
.grid-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table.grid { border: 0; border-radius: 0; }
table.grid th { position: sticky; top: 0; z-index: 1; white-space: nowrap; }
table.grid td.c, table.grid th:not(:first-child) { text-align: center; }
table.grid tbody tr:hover { background: #f7f9fc; }
table.grid input[type=checkbox] { width: 18px; height: 18px; }
.actions.sticky { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; margin: 0; }
/* Staff permissions: green outline marks role defaults */
.perm-card { margin-top: 16px; }
ul.perms li.is-default label, .key-default { color: #1d7a46; font-weight: 700; }
.card + .card { margin-top: 16px; }

/* Top-right menu (1.0 layout) */
.topbar .spacer { flex: 1; }
details.menu { position: relative; }
details.menu > summary { list-style: none; cursor: pointer; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; background: var(--brand-dark); color: var(--brand-ink); }
details.menu > summary svg { width: 12px; height: 18px; fill: currentColor; }
.menu-who { display: flex; align-items: center; gap: 10px; padding: 8px 12px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line);
  font-weight: 600; color: var(--ink); font-size: 15px; text-decoration: none; border-radius: 6px 6px 0 0; }
.menu-list a.menu-who { display: flex; padding: 8px 12px 10px; border-radius: 6px 6px 0 0; }
.menu-who img, .menu-who .avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.menu-who .avatar { display: grid; place-items: center; background: var(--accent); }
.menu-who .avatar svg { width: 15px; height: 15px; fill: #fff; }
.profile-actions { display: flex; gap: 8px; align-items: center; }
.profile-actions form { margin: 0; }
.server-time { font-size: 18px; white-space: nowrap; color: var(--brand-ink); margin-left: 8px; }
.topsearch { position: relative; width: 260px; }
.topsearch svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; fill: var(--muted); }
.topsearch input { width: 100%; border-radius: 999px; padding: 8px 14px 8px 36px; border: 0; font-size: 15px; }
@media (max-width: 900px) { .server-time { display: none; } .topsearch { width: 160px; } }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu[open] > summary, details.menu > summary:hover { filter: brightness(1.15); }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 240px; max-height: calc(100vh - 80px);
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(20,30,50,.12); padding: 6px; }
.menu-list a, .menu-list button.link { display: block; width: 100%; text-align: left; padding: 8px 12px; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.menu-list a:hover, .menu-list button.link:hover { background: #f0f3f8; }
.menu-list a.sub { padding-left: 26px; color: var(--muted); }
details.menu-sub > summary { list-style: none; cursor: pointer; padding: 8px 12px; border-radius: 6px; font-weight: 500; font-size: 15px; color: var(--ink); }
details.menu-sub > summary::-webkit-details-marker { display: none; }
details.menu-sub > summary::after { content: " ▸"; color: var(--muted); }
details.menu-sub[open] > summary::after { content: " ▾"; }
details.menu-sub > summary:hover { background: #f0f3f8; }
.menu-items { overflow-y: auto; min-height: 0; }  /* the list scrolls; My Profile and Logout stay at the bottom */
.menu-list form { margin: 0; }

/* Left folder pane (1.0 order and look). Desktop: shown, ☰ hides it. Phone: hidden, ☰ slides it out. */
.sidetoggle { background: none; border: 2px solid rgba(255,255,255,.6); border-radius: 50%; width: 42px; height: 42px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; color: var(--brand-ink); }
.sidetoggle svg { width: 18px; height: 18px; fill: currentColor; }
.shell { display: flex; align-items: flex-start; }
.shell > main { flex: 1; min-width: 0; }
.side { width: 280px; flex: none; background: var(--card); border-right: 1px solid var(--side-line);
  position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; }
.side .place { display: block; margin: 16px; padding: 12px; text-align: center; background: var(--go); color: var(--go-ink);
  border-radius: 4px; text-decoration: none; text-transform: uppercase; font-weight: 500; letter-spacing: .02em; }
.side nav { border-top: 1px solid var(--side-line); }
.side nav a { display: flex; align-items: center; gap: 14px; padding: 13px 20px; border-bottom: 1px solid var(--side-line);
  color: var(--side-ink); text-decoration: none; font-size: 16px; font-weight: 500; }
.side nav a svg { width: 20px; height: 20px; flex: none; fill: var(--brand); }
.side nav a:hover { background: #f4f7fb; }
.side nav a.on { background: var(--brand); color: var(--brand-ink); }
.side nav a.on svg { fill: var(--brand-ink); }
body.side-toggled .side { display: none; }
@media (max-width: 900px) {
  .side { display: none; position: fixed; left: 0; top: 56px; z-index: 25; box-shadow: 4px 0 18px rgba(20,30,50,.18); }
  body.side-toggled .side { display: block; }
  .page { padding: 20px 16px; }
  table { display: block; overflow-x: auto; }
  th, td { white-space: nowrap; }
}

/* EVE */
select { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; background: var(--card); }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.row3 label { margin-top: 10px; }
.row3 label input, .row3 label select { margin-top: 6px; font-weight: 400; }
.title-row { display: flex; align-items: center; gap: 10px; }
.title-row .title-input { flex: 1; font-size: 22px; font-weight: 700; border: 1px solid transparent; background: transparent; padding: 2px 6px; }
.title-row .title-input:hover, .title-row .title-input:focus { border-color: var(--line); background: var(--card); }
.title-row .tag { font-size: 13px; font-weight: 500; }
.rule-cols { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.rule-cols > div { min-width: 220px; }
#eve-form label { font-weight: 500; color: var(--muted); }
#eve-form label input[type=text], #eve-form label input[type=url], #eve-form label select { margin-top: 6px; color: var(--ink); }
.lbl { color: var(--muted); margin-right: 10px; }
label.radio { display: inline-flex; align-items: center; gap: 6px; margin: 4px 14px 4px 0; font-weight: 400; color: var(--ink) !important; }
label.radio.block { display: flex; }
label.radio input { width: 18px; height: 18px; }
.eve-tabs { display: flex; gap: 2px; background: #eceef1; border: 1px solid var(--line); border-radius: 8px 8px 0 0; padding: 6px 6px 0; overflow-x: auto; }
.eve-tabs button { background: none; color: var(--ink); font-weight: 500; border-radius: 6px 6px 0 0; padding: 12px 22px; white-space: nowrap; }
.eve-tabs button[aria-selected=true] { background: var(--card); border: 1px solid var(--line); border-bottom-color: var(--card); margin-bottom: -1px; }
.eve-panel { background: var(--card); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; padding: 20px; margin-bottom: 80px; }
.info-grid { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 12px 20px; align-items: end; margin-bottom: 18px; }
.info-grid.four { grid-template-columns: repeat(4, 1fr); }
.info-grid .span2 { grid-column: span 2; }
.info-main { display: grid; grid-template-columns: 200px 200px 1fr; gap: 20px; }
.info-main fieldset { border: 0; padding: 0; margin: 0; }
.info-main legend { color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.info-fields { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12px 16px; align-content: start; }
.months { width: 110px !important; margin-top: 4px; }
.tx-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.tx-toolbar select { width: auto; min-width: 260px; flex: 1; max-width: 420px; }
.tx-toolbar .narrow-select { min-width: 150px; flex: 0; }
.tx-toolbar .factor { width: 90px; }
button.small { padding: 8px 12px; font-size: 14px; }
.tx-methods { margin-bottom: 12px; }
.tx-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.tx-head, .tx-row { display: grid; grid-template-columns: 18px 26px minmax(160px, 1fr) repeat(4, auto) 34px 64px 44px 64px 22px; gap: 6px; align-items: center; }
.tx-head { background: #eceef1; padding: 8px 6px; border-radius: 6px; font-weight: 600; font-size: 14px; }
.tx-head .c-sub { grid-column: 1 / 4; padding-left: 40px; }
.tx-head .c-out { grid-column: 9 / 11; text-align: center; }
.tx-row { background: #f3f4f6; margin-top: 6px; padding: 8px 6px 4px; border-radius: 6px; }
.tx-row input { padding: 7px 8px; font-size: 14px; }
.tx-row .c-in { width: 64px; }
.c-credit, .c-mark, .c-max, .c-grade { display: none; }
.show-credit .c-credit, .show-mark .c-mark, .show-mark .c-max, .show-grade .c-grade { display: block; }
.tx-row.heading .f-title { grid-column: 3 / 8; }
.tx-row.heading .del { grid-column: 8; }
.tx-row .handle { cursor: grab; color: var(--muted); }
.tx-row .num { color: var(--muted); font-size: 13px; text-align: right; }
.tx-row .del { background: #d9534f; padding: 6px 0; width: 32px; font-size: 18px; line-height: 1; }
.tx-row output { background: #e6e8eb; border-radius: 6px; padding: 7px 4px; text-align: center; font-size: 14px; min-height: 34px; }
.tx-row input.o-credit, .tx-row input.o-grade { width: 100%; text-align: center; }
.tx-row .o-credit { grid-column: 9; } .tx-row .o-grade { grid-column: 10; } .tx-row .o-qp { grid-column: 11; }
.row-actions { grid-column: 3 / -1; display: flex; gap: 6px; margin: 2px 0; }
.row-actions button { background: var(--accent); font-size: 11px; padding: 3px 8px; font-weight: 600; }
.tx-row.nomatch { background: #fdecea; box-shadow: inset 4px 0 0 var(--err); }
.tx-row.nomatch .o-grade { background: #f8c9c4; }
.tx-row.dragging { opacity: .5; }
.tx-sum { display: flex; justify-content: flex-end; gap: 18px; align-items: center; margin-top: 10px; }
.tx-sum output { display: inline-block; background: #e6e8eb; border-radius: 6px; padding: 8px 14px; min-width: 70px; text-align: center; margin-left: 6px; color: var(--ink); font-weight: 700; }
.nomatch-note { color: var(--err); font-weight: 600; margin-right: auto; }
.tx-table h3 { font-size: 14px; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.tx-table table { font-size: 14px; }
.tx-table th, .tx-table td { text-align: center; padding: 7px 6px; }
.tx-table th label { color: var(--muted); font-weight: 500; }
.us-length { border: 0; border-top: 1px solid var(--line); margin: 20px 0 0; padding: 14px 0 0; }
.us-length legend { color: var(--muted); padding: 0; margin-bottom: 4px; }
.notes { margin: 6px 0 16px; font-size: 14px; }
.notes p { margin: 4px 0; }
table.equiv { font-size: 14px; }
table.equiv tbody th { background: none; text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 14px; white-space: nowrap; }
table.equiv tbody { border-top: 2px solid var(--line); }
.eve-footer { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; align-items: center; background: var(--card); border-top: 1px solid var(--line); padding: 10px 16px; margin: 0 -24px; }
.eve-footer { flex-wrap: wrap; }
.eve-footer > button, .eve-footer > .btn, .eve-footer summary { white-space: nowrap; }
.eve-footer .ev-note { flex: 1 1 260px; display: flex; gap: 8px; align-items: center; }
.eve-footer textarea { flex: 1; min-height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; font: inherit; }
button.go, .btn.go { background: var(--go); color: var(--go-ink); }
button:disabled, button:disabled.secondary, button:disabled.go { background: var(--disabled); color: var(--muted); cursor: not-allowed; }
@media (max-width: 1100px) { .tx-body { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .row3, .info-grid, .info-grid.four, .info-main, .info-fields { grid-template-columns: 1fr; }
  .info-grid .span2 { grid-column: auto; }
  .tx-rows { overflow-x: auto; }
  .tx-head, .tx-row { min-width: 640px; }
  .eve-footer { position: static; flex-wrap: wrap; margin: 0 -16px; }
  .eve-panel { margin-bottom: 16px; }
  .eve-footer .ev-note { flex-basis: 100%; }
}

/* EVE: compact layout so a tab fits on one screen */
#eve-form { font-size: 14px; }
#eve-form input[type=text], #eve-form input[type=url], #eve-form select, #eve-form textarea { padding: 6px 8px; font-size: 14px; border-radius: 6px; }
#eve-form label { margin: 0; font-size: 13px; }
#eve-form label input[type=text], #eve-form label input[type=url], #eve-form label select { margin-top: 3px; }
.crumb { margin: -10px 0 4px; font-size: 14px; }
#eve-form .title-row { margin: 0 0 8px; }
#eve-form .title-row .title-input { font-size: 19px; }
#eve-form .eve-tabs button { padding: 8px 18px; font-size: 14px; }
#eve-form .eve-panel { padding: 14px 16px; }
#eve-form label.radio { margin: 1px 10px 1px 0; font-size: 14px; gap: 5px; }
#eve-form label.radio input { width: 15px; height: 15px; }
.info-top { display: flex; gap: 14px; align-items: flex-end; margin-bottom: 12px; }
.info-top .field { display: flex; flex-direction: column; }
.info-top .grow { flex: 1; } .info-top .grow2 { flex: 2; }
.info-top .lbl { font-size: 13px; font-weight: 500; margin: 0 0 3px; }
.inline-radios { display: flex; align-items: center; height: 32px; }
.info-main { display: grid; grid-template-columns: auto auto; gap: 28px; justify-content: start; margin-bottom: 10px; }
.info-main legend { font-size: 13px; margin-bottom: 2px; }
.radio-cols { display: grid; grid-template-columns: repeat(4, auto); gap: 0 6px; }
.radio-cols.three { grid-template-columns: repeat(4, auto); }
.months { width: 90px !important; margin-top: 4px; }
#eve-form .info-fields { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px 14px; }
#eve-form .info-fields .span2 { grid-column: span 2; }
/* Information tab: same layout, but don't stretch across wide screens (Heath, Oct 21) */
#eve-form [data-panel=information] > * { max-width: 1120px; }
#eve-form .info-top .grow { flex: 0 1 230px; } #eve-form .info-top .grow2 { flex: 0 1 380px; }
@media (max-width: 900px) { #eve-form .info-top .grow, #eve-form .info-top .grow2 { flex: 1 1 100%; } }
#eve-form .radio-cols label.radio { white-space: nowrap; }
@media (max-width: 1400px) { #eve-form .radio-cols.three { grid-template-columns: repeat(3, auto); } }
#eve-form .eve-footer { padding: 6px 16px; }
#eve-form .eve-footer textarea { min-height: 32px; }
#eve-form .eve-footer .btn, #eve-form .eve-footer button { padding: 7px 14px; font-size: 14px; }
@media (max-width: 900px) {
  .info-top { flex-wrap: wrap; }
  .info-top .grow, .info-top .grow2 { flex-basis: 100%; }
  .info-main { grid-template-columns: 1fr; gap: 10px; }
  .radio-cols, .radio-cols.three { grid-template-columns: repeat(2, auto); }
  #eve-form .info-fields { grid-template-columns: 1fr 1fr; }
}
#eve-form .tx-toolbar { margin-bottom: 8px; gap: 6px; }
#eve-form .tx-toolbar button.small { padding: 6px 10px; font-size: 13px; }
#eve-form .tx-methods { margin-bottom: 8px; }
#eve-form .tx-head { padding: 5px 6px; font-size: 13px; white-space: nowrap; }
#eve-form .tx-row { margin-top: 3px; padding: 3px 6px; position: relative; }
#eve-form .tx-row input { padding: 4px 6px; font-size: 13px; }
#eve-form .tx-row .c-in { width: 100%; min-width: 0; }
#eve-form .tx-row output { padding: 4px 3px; min-height: 26px; font-size: 13px; }
#eve-form .tx-row .del { width: 26px; padding: 3px 0; font-size: 15px; }
#eve-form .tx-head, #eve-form .tx-row { grid-template-columns: 14px 22px minmax(180px, 1fr) var(--w-credit, 0px) var(--w-mark, 0px) var(--w-max, 0px) var(--w-grade, 0px) 28px 56px 40px 56px 22px; gap: 4px; }
/* fixed widths (not sized by content) so the header and every row line up */
#eve-form.show-credit { --w-credit: 56px; } #eve-form.show-mark { --w-mark: 56px; --w-max: 56px; } #eve-form.show-grade { --w-grade: 56px; }
#eve-form .row-actions { display: none; position: absolute; left: 46px; top: 100%; z-index: 3; margin: -2px 0 0; padding: 3px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 4px 10px rgba(20,30,50,.12); }
#eve-form .tx-row.open .row-actions { display: flex; left: auto; right: 0; }  /* opened by the row's ⋯ button, not by mouse-over */
#eve-form .tx-row .more { grid-column: 12; background: none; color: var(--muted); padding: 0; font-size: 18px; line-height: 1; width: 22px; }
#eve-form .tx-row .more:hover, #eve-form .tx-row.open .more { color: var(--ink); }
#eve-form .tx-sum { margin-top: 6px; }
#eve-form .tx-sum output { padding: 5px 12px; }
#eve-form .tx-body { grid-template-columns: minmax(0, 1fr) 400px; gap: 14px; }  /* fixed: rows don't move when the table changes */
@media (max-width: 1100px) { #eve-form .tx-body { grid-template-columns: minmax(0, 1fr); white-space: normal; } }  /* rows above the table */
#eve-form .tx-table { max-width: 400px; min-width: 0; overflow-x: auto; }
#eve-form .tx-table h3 { white-space: normal; }
#eve-form .tx-table h3 { font-size: 12px; margin-bottom: 4px; }
#eve-form .tx-table table { font-size: 13px; }
#eve-form .tx-table th, #eve-form .tx-table td { padding: 3px 5px; white-space: nowrap; }
#eve-form .tx-table th { font-size: 11px; }
#eve-form .us-length { margin-top: 10px; padding-top: 8px; }
.profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 24px; align-items: start; }
.profile-grid label { display: grid; gap: 4px; }
.profile-photo { display: flex; align-items: center; gap: 10px; }
.profile-photo img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.profile-save { grid-column: -2; display: flex; justify-content: flex-end; }
@media (max-width: 760px) { .profile-grid { grid-template-columns: 1fr; } .profile-save { grid-column: auto; } }
/* EVE: source pages beside the course rows (Transcripts tab, 'Show pages') */
.eve-panel.with-pages { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 38%); column-gap: 16px; align-items: start; }
#eve-form .eve-panel.with-pages .tx-body { grid-template-columns: minmax(0, 1fr); white-space: normal; }  /* pages shown: grading table below the rows */
.eve-panel.with-pages > * { grid-column: 1; }
.eve-panel.with-pages > .page-viewer { grid-column: 2; grid-row: 1 / span 8; position: sticky; top: 70px; }
.page-viewer { border: 1px solid var(--line); border-radius: 8px; background: var(--card); display: flex; flex-direction: column; max-height: calc(100vh - 160px); }
.pv-bar { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
.pv-bar #pv_label { flex: 1; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-frame { overflow: auto; flex: 1; min-height: 0; }
.pv-frame img { display: block; width: 100%; cursor: zoom-in; }
.pv-frame img.zoom { width: 200%; max-width: none; cursor: zoom-out; }
@media (max-width: 900px) {
  .eve-panel.with-pages { display: block; }
  .eve-panel.with-pages > .page-viewer { position: static; max-height: 70vh; margin-bottom: 12px; }
}
.docs-menu { position: relative; }
.docs-menu > summary { list-style: none; cursor: pointer; }
.docs-menu > summary::-webkit-details-marker { display: none; }
.docs-menu ul { position: absolute; bottom: calc(100% + 6px); right: 0; z-index: 30; min-width: 280px; max-width: min(520px, 90vw);
  max-height: 50vh; overflow-y: auto; list-style: none; margin: 0; padding: 6px; background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(20,30,50,.12); }
.docs-menu li { padding: 6px 8px; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; font-size: 14px; }
.docs-menu li span { flex: 1 1 100%; overflow-wrap: anywhere; font-weight: 500; }
.send-pr { border: 1px solid var(--line); border-radius: 8px; background: var(--card); padding: 12px 16px; margin: 10px 0 0;
  display: grid; gap: 8px; max-width: 640px; margin-left: auto; }
.send-pr h3 { margin: 0; }
.send-pr p { margin: 0; overflow-wrap: anywhere; }
.send-pr label { display: grid; gap: 4px; }
.send-pr-actions { display: flex; gap: 8px; justify-content: flex-end; }
#eve-form .key-subjects { display: grid; gap: 4px; margin-top: 14px; color: var(--muted); max-width: 720px; }
#eve-form .notes { margin: 2px 0 8px; font-size: 13px; }
#eve-form .notes p { margin: 2px 0; }
#eve-form .equiv-wrap { max-height: calc(100vh - 400px); min-height: 240px; overflow: auto; }
#eve-form table.equiv { font-size: 13px; border: 0; border-radius: 0; }
#eve-form table.equiv th, #eve-form table.equiv td { padding: 4px 8px; }
#eve-form table.equiv thead th { position: sticky; top: 0; z-index: 1; font-size: 13px; }
#eve-form .info-grid.four { margin-bottom: 8px; gap: 8px 14px; }
#eve-form .tx-head .c-out { grid-column: 9 / 11; }
#eve-form .tx-head .c-qp { grid-column: 11; text-align: center; }
.school-pick { position: relative; display: flex; flex-direction: column; }
.school-pick > label { margin: 0; }
.school-pick input[type=text] { margin-top: 3px; }
.school-pick small { font-size: 12px; margin-top: 2px; min-height: 14px; }
.pick-list { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; list-style: none; margin: -14px 0 0; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(20,30,50,.15); max-height: 300px; overflow-y: auto; }
.pick-list li { padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.pick-list li span { color: var(--muted); }
.pick-list li:hover, .pick-list li.on { background: #eef3fa; }

/* EVE Information tab, laid out as 1.0 (Heath, Oct 21) */
#eve-form .info .field { display: flex; flex-direction: column; }
#eve-form .info .lbl, #eve-form .info legend, #eve-form .info-grid12 > label, #eve-form .info-grid12 .school-pick > label, #eve-form .info .purpose { font-size: 13px; font-weight: 500; }
#eve-form .info-row { display: flex; gap: 24px; align-items: flex-end; margin-bottom: 14px; flex-wrap: wrap; }
#eve-form .info-row .purpose { width: 440px; max-width: 100%; }
#eve-form .info-row.names { gap: 16px; }
#eve-form .info-row.names input[type=text] { width: 300px; max-width: 100%; }
#eve-form .info-body { display: grid; grid-template-columns: 150px 150px minmax(0, 880px); gap: 18px; align-items: start; }
#eve-form .radio-list { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; }
#eve-form .radio-list legend { margin-bottom: 4px; padding: 0; white-space: nowrap; }
#eve-form .radio-list .radio { margin: 2px 0; white-space: nowrap; }
#eve-form .radio-list .months { margin-top: 6px; width: 90px !important; }
#eve-form .info-grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px 14px; }
#eve-form .info-grid12 .c2 { grid-column: span 2; } #eve-form .info-grid12 .c3 { grid-column: span 3; }
#eve-form .info-grid12 .c4 { grid-column: span 4; } #eve-form .info-grid12 .c5 { grid-column: span 5; }
#eve-form .info-grid12 .c6 { grid-column: span 6; } #eve-form .info-grid12 .row-start.c3 { grid-column: 1 / span 3; }
#eve-form .info-grid12 input { margin-top: 3px; }
#eve-form .info-grid12 .school-pick small:empty { display: none; }
@media (max-width: 1100px) {
  #eve-form .info-body { grid-template-columns: 150px 150px; }
  #eve-form .info-grid12 { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  #eve-form .info-grid12 { grid-template-columns: 1fr 1fr; }
  #eve-form .info-grid12 > * { grid-column: span 2 !important; }
  #eve-form .info-grid12 .c2, #eve-form .info-grid12 .c3 { grid-column: span 1 !important; }
  #eve-form .info-row.names input[type=text] { width: auto; flex: 1 1 140px; }
  #eve-form .info-row .purpose { width: 100%; }
}

/* One font everywhere: form controls don't inherit it by default (Heath, Oct 21) */
input, select, textarea, button, output { font-family: inherit; }
/* EVE: consistent sizes - labels 13px, values and choices 14px, table headers in normal case */
#eve-form { font-size: 14px; }
#eve-form input[type=text], #eve-form input[type=search], #eve-form input[type=url], #eve-form select,
#eve-form textarea, #eve-form output, #eve-form label.radio { font-size: 14px; }
#eve-form th, #eve-form .tx-head, #eve-form .tx-table h3 { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
#eve-form .notes, #eve-form table.equiv td, #eve-form table.equiv tbody th { font-size: 14px; }

/* EVE grading-table box: type to find, pick from the list */
#eve-form .table-pick { position: relative; flex: 1; min-width: 260px; max-width: 520px; }
#eve-form .table-pick input { width: 100%; }
#eve-form .table-pick .pick-list { margin-top: 2px; max-height: 360px; }
#eve-form .table-pick li.current { font-weight: 600; }
#eve-form .reset-wrap { position: relative; }
#eve-form .reset-confirm { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 30; display: flex; gap: 6px; align-items: center; white-space: nowrap; padding: 8px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px rgba(20,30,50,.18); font-size: 13px; }
/* Fixed column positions for the transcript header and rows, so hiding a column (e.g. Credit under Max Marks)
   never shifts the others (Heath, Oct 21) */
#eve-form .tx-head .c-credit, #eve-form .tx-row .c-credit { grid-column: 4; }
#eve-form .tx-head .c-mark, #eve-form .tx-row .c-mark { grid-column: 5; }
#eve-form .tx-head .c-max, #eve-form .tx-row .c-max { grid-column: 6; }
#eve-form .tx-head .c-grade, #eve-form .tx-row .c-grade { grid-column: 7; }
#eve-form .tx-head .c-del, #eve-form .tx-row:not(.heading) .del { grid-column: 8; }
#eve-form .tx-row .handle { grid-column: 1; } #eve-form .tx-row .num { grid-column: 2; } #eve-form .tx-row:not(.heading) .f-title { grid-column: 3; }
#eve-form .tx-head > span, #eve-form .tx-row > * { grid-row: 1; }
#eve-form .tx-row .row-actions { grid-row: auto; }
/* numbers right-aligned with a little room from the edge, so decimals line up (Heath, Oct 21) */
#eve-form .tx-row .f-credit, #eve-form .tx-row .f-mark, #eve-form .tx-row .f-max_mark, #eve-form .tx-row .o-qp,
#eve-form .tx-row output.o-credit, #eve-form .tx-row input.f-us_credit { text-align: right; padding-right: 8px; }
/* Equivalencies: same sizes as the other tabs - headers 13px, level names and rows 14px in the normal text colour */
#eve-form table.equiv tbody th { color: var(--ink); font-weight: 600; text-transform: none; }
#eve-form table.equiv thead th { text-transform: none; letter-spacing: 0; }
#eve-form .reset-confirm[hidden], #eve-form [hidden] { display: none !important; }

/* ---- Order Entry ---- */
.oe-top { padding: 16px; margin-bottom: 16px; }
.oe-row1 { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr auto .8fr .8fr 210px; gap: 10px; align-items: center; }
.oe-row1 input[type=date] { padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.oe-inline { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; color: var(--muted); white-space: nowrap; }
.oe-inline select { width: auto; min-width: 220px; color: var(--ink); }
.oe-total { background: var(--card); color: var(--go-dark); border: 1px solid var(--go); font-weight: 700; padding: 9px 14px; border-radius: 8px; white-space: nowrap; text-align: center; font-variant-numeric: tabular-nums; }
.oe-row2 { display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: center; margin-top: 12px; }
.yn { display: flex; align-items: center; gap: 4px; }
.yn > span { font-weight: 600; margin-right: 6px; }
.oe-name { position: relative; }
.oe-suggest { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.12); max-height: 300px; overflow-y: auto; }
.oe-suggest button { display: block; width: 100%; text-align: left; background: none; color: var(--ink); font-weight: 500; border-radius: 0; padding: 9px 12px; }
.oe-suggest button:hover { background: #f0f3f8; }
.oe-suggest small { color: var(--muted); margin-left: 6px; }
.oe-part { padding: 14px 16px; margin-bottom: 14px; background: #f7f7f7; }
.oe-part-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.oe-types { display: flex; gap: 10px; }
.oe-types button { background: var(--card); color: var(--accent); border: 2px solid var(--accent); padding: 8px 14px; }
.oe-types button.on { background: var(--accent); color: var(--accent-ink); }
.oe-part-title { font-size: 19px; color: var(--muted); }
.oe-remove { justify-self: end; padding: 2px 14px; font-size: 18px; line-height: 1.2; }
.oe-fields { margin-top: 6px; }
.oe-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr .7fr .7fr .7fr 1.4fr 1.2fr; gap: 0 14px; align-items: start; }
.oe-grid label, .oe-notes label { font-weight: 400; color: var(--ink); margin: 10px 0 0; }
.oe-grid label input, .oe-grid label select, .oe-notes textarea { margin-top: 5px; color: var(--ink); font-weight: 400; }
.oe-files { margin-top: 10px; align-self: start; min-width: 0; }
.oe-files-lbl { display: block; }
.oe-drop { position: relative; display: flex; align-items: center; gap: 10px; margin: 5px 0 0 !important; padding: 8px 12px; min-height: 42px;
  border: 1.5px dashed var(--accent); border-radius: 8px; background: var(--card); color: var(--accent) !important; cursor: pointer; }
.oe-drop:hover, .oe-drop.over { background: #eef3fa; border-style: solid; }
.oe-drop input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.oe-drop svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.oe-drop-text { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oe-drop-text small { font-weight: 400; color: var(--muted); }
/* chosen files: compact tags across the full width, so many files don't push the part down */
.oe-filelist { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.oe-filelist:empty { display: none; }
.oe-filelist li { display: inline-flex; align-items: center; gap: 6px; max-width: 240px; padding: 2px 2px 2px 9px; background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.oe-filelist li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oe-filelist li small { color: var(--muted); white-space: nowrap; }
.oe-filelist li button { background: none; color: var(--muted); padding: 0 7px; font-size: 17px; line-height: 1; }
.oe-filelist li button:hover { color: var(--err); }
.oe-lower { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 16px; align-items: flex-start; }
.oe-col { display: flex; flex-direction: column; min-width: 140px; }
.oe-col .lbl { margin-bottom: 6px; color: var(--ink); }
.oe-col label.radio { margin: 4px 0; }
.oe-notes { flex: 1; min-width: 300px; max-width: 650px; }
.oe-notes label:first-child { margin-top: 0; }
.oe-notes small { display: block; font-size: 13px; color: var(--muted); }
.oe-notes textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; resize: vertical; background: var(--card); }
.oe-part.is-tl .ev { display: none !important; }
button.go { background: var(--go); color: var(--go-ink); }
#oe-add { font-size: 20px; padding: 7px 16px; line-height: 1.2; }
.oe-breakdown { margin-top: 4px; padding: 12px 16px; }
.oe-bd-head { display: flex; align-items: center; gap: 14px; max-width: 520px; justify-content: space-between; }
.oe-breakdown table { border: 0; margin-top: 8px; max-width: 520px; }
.oe-breakdown td { padding: 5px 8px; }
.oe-breakdown td.amt { text-align: right; white-space: nowrap; }
.oe-breakdown tr.sum td { font-weight: 700; border-bottom: 0; }
.oe-actions { justify-content: flex-end; }
#errors ul { margin: 6px 0 0; padding-left: 20px; }
@media (max-width: 1300px) { .oe-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .oe-row1 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .oe-row1 { grid-template-columns: 1fr; }
  .oe-grid { grid-template-columns: 1fr 1fr; }
  .oe-files, .oe-title, .oe-country { grid-column: 1 / -1; }
  .oe-part-head { grid-template-columns: 1fr auto; }
  .oe-types { grid-column: 1 / -1; }
  .oe-lower { gap: 14px 24px; }
  .oe-notes { min-width: 100%; }
  .oe-inline select { min-width: 0; flex: 1; }
}

/* ---- Order page ---- */
.od-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 20px; }
/* one line per item, 'Label: value' (Heath, Oct 26: fits better) */
.od-grid div span { color: var(--muted); }
.od-grid div span::after { content: ":"; margin-right: 6px; }
.od-part { margin-top: 16px; }
.od-part h2 { margin-top: 0; }
.od-files { margin-top: 12px; }
.od-files table.grid th:not(:first-child) { text-align: left; }
.od-files td { white-space: nowrap; }
.od-price .amt { text-align: right; white-space: nowrap; }
/* the price in short lines beside the order's details (Heath, Oct 26) */
.od-top { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.od-top .od-grid { flex: 1 1 520px; }
table.od-price { width: auto; min-width: 220px; border: 0; border-radius: 0; background: none; font-size: 14px; }
table.od-price td { padding: 1px 0 1px 12px; border: 0; white-space: nowrap; }
table.od-price td:first-child { padding-left: 0; }
table.od-price tr.od-total td { border-top: 1px solid var(--line); font-weight: 700; padding-top: 3px; }
@media (max-width: 900px) { table.od-price { display: table; } }
#order-form [hidden] { display: none !important; }
@media (max-width: 640px) { .oe-source { width: 100%; white-space: normal; } }
.oe-types button { white-space: nowrap; }
@media (max-width: 640px) { .oe-types { width: 100%; } .oe-types button { flex: 1; padding: 8px 4px; font-size: 14px; } }

/* Type-to-find boxes (combo.js) */
.combo { position: relative; margin-top: 5px; }
.combo input[type=text] { width: 100%; margin: 0 !important; }
.combo .pick-list { margin: 2px 0 0; min-width: 100%; width: max-content; max-width: 360px; }
.oe-inline .combo { margin: 0; min-width: 220px; }
.oe-copy { width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; }
.oe-copy svg { width: 15px; height: 17px; fill: currentColor; }
.oe-copy.done { background: var(--go-dark); }

/* fields the server rejected (Order Entry) */
#eve-form input.field-error { border-color: var(--err); box-shadow: 0 0 0 2px rgba(200,40,40,.25); }
#order-form .invalid { outline: 2px solid var(--err); outline-offset: 2px; border-radius: 8px; }
#order-form input.invalid, #order-form select.invalid { border-color: var(--err); outline-offset: 0; }

/* ---- Search results ---- */
.srp-filters { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 14px; }
.srp-filters label { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; color: var(--muted); }
.srp-filters select, .srp-filters input[type=date] { width: auto; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; color: var(--ink); background: var(--card); }
.srp { background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.srp-head, .srp-row { display: grid; grid-template-columns: 110px minmax(260px, 2fr) minmax(220px, 1.4fr) 120px 120px 56px; gap: 12px; padding: 10px 14px; align-items: start; }
.srp-head { background: #f0f2f6; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); border-radius: 10px 10px 0 0; }
.srp-row { border-top: 1px solid var(--line); }
.srp-row.deleted { background: #fdf5f4; }
.srp-row small { display: block; color: var(--muted); font-size: 13px; }
.srp-parts > div { margin-bottom: 4px; }
.srp-parts .tag { font-size: 12px; margin: 0 2px; }
.tag.st { background: #e6eef8; color: var(--accent); text-decoration: none; }
.tag.ok { background: #e6f4ec; color: var(--ok); }
.srp-total { font-weight: 600; }
.srp-total .tag { display: block; width: max-content; margin-top: 4px; font-weight: 500; }
.srp-client .why { color: var(--accent); }
mark { background: #fff1a8; color: inherit; padding: 0 1px; border-radius: 2px; }
details.pop { position: relative; }
details.pop > summary { list-style: none; }
details.pop > summary::-webkit-details-marker { display: none; }
.pop-list { position: absolute; z-index: 15; top: calc(100% + 4px); left: 0; min-width: 220px; max-width: 360px; background: var(--card);
  border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(20,30,50,.15); padding: 4px; }
details.pop.right .pop-list { left: auto; right: 0; }
.pop-list a, .pop-list button.link { display: block; width: 100%; text-align: left; padding: 7px 10px; border-radius: 6px; text-decoration: none;
  color: var(--ink); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-list a:hover, .pop-list button.link:hover { background: #f0f3f8; }
.pop-list form { margin: 0; }
.pop-list small { color: var(--muted); }
.danger-text { color: var(--err) !important; }
@media (max-width: 900px) {
  .srp-head { display: none; }
  .srp-row { grid-template-columns: 1fr auto; }
  .srp-date { grid-column: 1; } .srp-more { grid-column: 2; grid-row: 1; }
  .srp-parts, .srp-client, .srp-total, .srp-files { grid-column: 1 / -1; }
}

/* a value 2.0 filled in as a suggestion: orange ring until the evaluator changes it or saves */
.oe-col.suggested { outline: 2px solid rgba(232,137,12,.6); outline-offset: 4px; border-radius: 6px; }
.oe-peek { display: block; margin-top: 6px; }
label.radio.suggested { outline: 2px solid rgba(232,137,12,.6); outline-offset: 2px; border-radius: 6px; }
.inline-radios.suggested { outline: 2px solid rgba(232,137,12,.6); outline-offset: 3px; border-radius: 6px; }
input.suggested, select.suggested { border-color: #e8890c !important; box-shadow: 0 0 0 2px rgba(232,137,12,.35); }

/* ---- EVE Imager (as 1.0: Source Documents left, To Be Parsed / Not to be Parsed right) ---- */
.imager-top { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-bottom: 8px; }
.imager-top .lbl { font-size: 16px; color: var(--muted); }
.imager-status { margin-right: auto; color: var(--accent); font-weight: 500; }
.imager-addbox { display: grid; gap: 6px; margin-bottom: 10px; }
.imager-addbox .oe-drop { justify-self: start; max-width: 100%; box-sizing: border-box; }  /* sized to its text, as the other Add pages boxes (Heath, Oct 25) */
.imager-addbox #imager_add_go { justify-self: start; }
.profile-pick { display: grid; gap: 6px; flex: 1; min-width: 220px; }
.imager-areas { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 8px 22px; }
.imager-area h3 { font-size: 16px; font-weight: 500; color: var(--muted); margin: 6px 0 8px; }
.imager-source { grid-row: 1 / span 2; }
.imager-drop { min-height: 300px; border: 3px solid var(--brand); border-radius: 14px; background: #f4f6f9; padding: 14px;
  display: flex; flex-wrap: wrap; gap: 14px; align-content: flex-start; transition: background .15s; }
.imager-source .imager-drop { min-height: 640px; }
.imager-drop.over { background: #a39bf7; }
.imager-page { position: relative; margin: 0; width: 150px; cursor: grab; }
.imager-page img { display: block; width: 150px; height: 190px; object-fit: contain; background: #fff; border: 4px solid #f6c667; }
.imager-parse .imager-page img { border-color: #5cb85c; }
.imager-skip .imager-page img { border-color: #b8bec8; }
.imager-page.dragging { opacity: .45; }
.imager-page figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 2px; }
.imager-rotate { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; padding: 0; border-radius: 50%; font-size: 17px;
  background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.25); opacity: 0; transition: opacity .15s; }
.imager-page:hover .imager-rotate, .imager-rotate:focus { opacity: 1; }
@media (max-width: 900px) { .imager-areas { grid-template-columns: 1fr; } .imager-source { grid-row: auto; } .imager-source .imager-drop { min-height: 300px; } .imager-rotate { opacity: 1; } }
.timer { display: inline-block; min-width: 46px; text-align: center; padding: 2px 8px; border-radius: 6px; background: #e6f4ec; color: var(--ok); font-weight: 600; }
.timer.t-amber { background: #fdf3e1; color: var(--warn); }
.timer.t-red { background: #fbe9e8; color: var(--err); }
.research-done { display: flex; align-items: center; gap: 4px; margin: 0; white-space: nowrap; }
.research-done label.radio { margin: 0 6px 0 0; }
.imager-gt { margin: 0 18px 0 0 !important; font-size: 16px; }

/* Duplicate files on the order page: set aside, not parsed (Heath, Oct 22) */
.od-dup td { color: var(--muted); }
.tag.dup { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; font-size: 12px;
  background: var(--warn-bg); color: var(--ink); border: 1px solid var(--warn-line); }

/* Question box beside the button that asked it (menu.js askNear/tellNear) */
.near-box { position: absolute; z-index: 1000; max-width: min(360px, calc(100vw - 16px)); padding: 12px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(20,30,50,.2); }
.near-box p { margin: 0 0 10px; font-size: 14px; }
.near-btns { display: flex; gap: 8px; justify-content: flex-end; }
.near-btns button { min-height: 36px; padding: 6px 14px; }

/* Document Templates (reports) */
.tpl-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.tpl-tabs a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); text-decoration: none; color: var(--ink); }
.tpl-tabs a.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.tpl-grid td { vertical-align: top; min-width: 220px; }
.tpl-grid th[scope=row] { text-align: left; font-weight: 600; white-space: nowrap; }
.tpl-missing { background: var(--err-bg); }
.tpl-na { color: var(--muted); font-size: .9em; }
.tpl-missing .tpl-when { color: var(--err); font-weight: 600; }
.tpl-when { font-size: 13px; color: var(--muted); }
.tpl-links { display: flex; gap: 10px; margin: 4px 0; }
.tpl-warn { font-size: 12px; color: var(--warn); }
.tpl-replace summary { list-style: none; display: inline-block; margin-top: 4px; }
.tpl-replace summary::-webkit-details-marker { display: none; }
.tpl-replace form { display: grid; gap: 8px; margin-top: 8px; }
.tpl-replace label { display: grid; gap: 4px; font-size: 13px; }
.tpl-replace label.oe-drop { display: flex; font-size: inherit; }
.tpl-replace label.oe-drop + .oe-filelist { margin-top: 0; }
@media (max-width: 700px) {  /* phone: each template row becomes a card */
  .tpl-grid, .tpl-grid tbody, .tpl-grid tr, .tpl-grid th, .tpl-grid td { display: block; width: auto; min-width: 0; }
  .tpl-grid thead { display: none; }
  .tpl-grid tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .tpl-grid th[scope=row] { white-space: normal; padding: 6px 12px; }
  .tpl-grid td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
}

/* Proofread folder list as 1.0 (Heath, Oct 22): plain table, normal-case headings, fits the page (long text wraps) */
table.pr-list { border: 0; border-radius: 0; background: transparent; table-layout: auto; }
.pr-list th { background: transparent; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); white-space: nowrap; padding: 10px 8px; border-bottom: 2px solid var(--line); }
.pr-scroll { overflow-x: auto; }
.pr-list td { vertical-align: top; white-space: normal; overflow-wrap: anywhere; background: transparent; padding: 10px 8px; }
.pr-list td:nth-child(-n+7) { overflow-wrap: normal; white-space: nowrap; }
.pr-list td:last-child { white-space: nowrap; }
.pr-list .pr-sub { white-space: normal; }
.pr-list td:nth-child(4) { white-space: normal; min-width: 90px; }
.pr-list td:nth-child(9) { min-width: 150px; }
.pr-list td:nth-child(10) { min-width: 140px; }
.pr-rush { display: inline-block; min-width: 28px; padding: 2px 8px; text-align: center; border-radius: 3px; background: var(--err); color: #fff; font-weight: 700; }
.pr-timer { display: inline-block; white-space: nowrap; padding: 2px 10px; border-radius: 3px; border: 2px solid var(--ok); background: var(--card); color: var(--ink); }  /* 1.0: green outline, red when late */
.pr-timer.t-amber { border-color: #c98a00; } .pr-timer.t-red { border-color: var(--err); background: var(--err); color: #fff; font-weight: 600; }
.rs-timer { display: inline-block; white-space: nowrap; padding: 3px 12px; border-radius: 3px; background: var(--ok); color: #fff; font-weight: 600; }  /* 1.0 Research: solid green, amber from 24 h, red from 48 h */
.rs-timer.t-amber { background: var(--warn); } .rs-timer.t-red { background: var(--err); }
.research .status-pop .radio { margin-right: 12px; }
.pr-sub { display: block; margin-top: 4px; font-size: 12px; }
.pr-checking { color: var(--warn); font-weight: 600; }
.pr-country { color: var(--ok); }
.s2c-timer { display: inline-block; min-width: 46px; text-align: center; padding: 3px 8px; border-radius: 3px; background: var(--ok); color: #fff; font-weight: 600; }  /* 1.0: solid green hours */
.s2c-list td:nth-child(n) { min-width: 0; white-space: nowrap; }
.s2c-list td:nth-child(5) { white-space: normal; }
.pr-ops form { margin: 0; }
.status-box { position: relative; }
.status-box > summary { list-style: none; cursor: pointer; } .status-box > summary::-webkit-details-marker { display: none; }
.status-pop { position: fixed; z-index: 40; display: grid; gap: 8px; min-width: 240px;
  padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px rgba(20,30,50,.15); white-space: normal; cursor: default; }
.status-pop .go { justify-self: end; }
/* Boxes beside a button: every field in the site's own look, label above it (Heath, Oct 25: no old-style fields) */
.status-pop label { margin: 4px 0 0; }
.status-pop label > input[type=number], .status-pop label > input[type=text], .status-pop label > input:not([type]),
.status-pop label > textarea, .status-pop label > select { display: block; width: 100%; margin-top: 6px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 8px; font-size: 15px; font-weight: 400; background: var(--card); color: var(--ink); }
.status-pop label > textarea { resize: vertical; min-height: 64px; }
.mp-accept { width: min(360px, 92vw); }
.mp-accept .mp-etc-type { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-weight: 600; }
.mp-accept .mp-etc-type label { display: inline-flex; gap: 6px; align-items: center; margin: 0; font-weight: 400; }
.pr-ops { display: flex; gap: 6px; align-items: center; }
.pr-ops .btn { white-space: nowrap; padding: 6px 10px; }
.pr-ops svg, .pr-ops .pr-icon svg { width: 14px; height: 14px; fill: currentColor; display: block; }
.pr-list .pr-url { font-size: 14px; }
.pr-list td > a > svg { width: 18px; height: 18px; fill: var(--accent); }
.timer.t-green { background: #e6f4ec; color: var(--ok); }
.seg { display: flex; gap: 0; } .seg .btn { border-radius: 0; } .seg .btn:first-child { border-radius: 8px 0 0 8px; } .seg .btn:last-child { border-radius: 0 8px 8px 0; }
.ops { display: flex; flex-wrap: wrap; gap: 6px; } .ops form { margin: 0; }
@media (max-width: 700px) {
  table.pr-list, .pr-list tbody, .pr-list tr, .pr-list td { display: block; width: auto; }
  .pr-list td:empty { display: none; }
  .pr-list thead { display: none; }
  .pr-list tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .pr-list td, .pr-list td:nth-child(n) { padding: 4px 12px; border: 0; white-space: normal; min-width: 0; }
  .pr-list td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
}

/* Proofread detail as 1.0: the report on the left, order details on the right, actions at the bottom right */
.pr-head { align-items: center; }
.pr-back { font-size: 20px; line-height: 1; padding: 6px 14px; }
.pr-detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.pr-report { align-self: start; }
.pr-pdf { width: 100%; height: calc(100vh - 230px); min-height: 480px; border: 8px solid #ddd; background: var(--card); }
.pr-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pr-dl { font-size: 14px; font-weight: 600; color: var(--muted); }
.pr-side .pr-label { font-size: 14px; font-weight: 600; color: var(--muted); margin: 26px 0 6px; }
.pr-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.pr-chip { display: inline-block; padding: 2px 8px; border-radius: 3px; background: #666; color: #fff; font-size: 13px; text-decoration: none; }
.pr-side h3 { font-size: 17px; color: var(--muted); margin: 22px 0 6px; }
.pr-side { display: flex; flex-direction: column; align-self: stretch; }
.pr-side .pr-actions { justify-content: flex-end; margin-top: auto; padding-top: 14px; }
.pr-side .pr-actions { gap: 6px; }
.pr-side .pr-actions button { padding: 6px 10px; font-size: 13px; white-space: nowrap; }
.pr-side h3.pr-ref { margin-top: 60px; }
.pr-side p { margin: 0; }
.pr-url { overflow-wrap: anywhere; }
.pr-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 20px; }
.pr-actions form { margin: 0; }
.pr-box { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-top: 10px; background: var(--card); }
.pr-box label { display: grid; gap: 4px; }
@media (max-width: 900px) {
  .pr-detail, .pr-detail.with-pages { grid-template-columns: 1fr; }
  .pr-pdf { height: 70vh; min-height: 0; }
}

.mail-body { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-top: 12px; }

/* Vacation mode: red header with a note, for the person who turned it on (as 1.0) */
.topbar.vacation { background: var(--vacation); }
.vacation-note { color: var(--brand-ink); font-weight: 700; text-decoration: none; margin-left: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vac-short { display: none; }
@media (max-width: 900px) { .vac-long { display: none; } .vac-short { display: inline; text-decoration: underline; }
  .vacation-note { white-space: normal; overflow: visible; font-size: 13px; line-height: 1.15; margin-left: 4px; flex: 0 1 auto; } }
.tpl-pdf { display: block; width: 100%; height: min(80vh, 1000px); border: 1px solid var(--line); border-radius: 8px; margin-top: 10px; background: var(--card); }

/* Client pages (ACCEPT / CHANGES links) */
body.client { background: var(--bg); }
.client-top { background: var(--accent); color: #fff; padding: 14px 20px; font-size: 18px; }
.client-main { max-width: 1100px; margin: 0 auto; padding: 20px 16px 40px; }
.client-foot { text-align: center; padding: 20px 16px; font-size: 13px; }
.client-form { display: grid; gap: 12px; }
.client-form h2 { margin: 8px 0 0; font-size: 18px; }
.client-form label { display: grid; gap: 4px; }
.client-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.client-grid .wide { grid-column: 1 / -1; }
.client-form .error { color: var(--err); font-size: 14px; }
.copy-row { display: flex; gap: 6px; margin-bottom: 6px; } .copy-row input { flex: 1; }
.client-changes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.client-draft { width: 100%; height: calc(100vh - 160px); min-height: 480px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.policy { background: var(--info-bg); border: 1px solid var(--info-line); border-radius: 8px; padding: 10px 12px; font-weight: 600; }
.client-form textarea { min-height: 240px; }
.client-attach { display: grid; gap: 6px; }
.client-quote { white-space: normal; background: var(--info-bg); border-radius: 8px; padding: 10px 12px; margin: 8px 0; }
@media (max-width: 800px) {
  .client-changes, .client-grid { grid-template-columns: 1fr; }
  .client-draft { height: 60vh; min-height: 0; }
}

/* Invalid Link (client), as 1.0: crest in a white box on a blue page; one font throughout (Heath, Oct 23) */
body.client-invalid { background: var(--brand); min-height: 100vh; margin: 0; display: flex; align-items: flex-start; justify-content: center; padding: 10vh 16px 28px; }
.invalid-card { background: var(--card); border-radius: 4px; max-width: 640px; width: 100%; padding: 40px 32px 32px; text-align: center; font-family: inherit; }
.invalid-card, .invalid-card * { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
/* client pages: text a shade darker than the staff pages' grey, easier to read (Heath, Oct 23) */
.invalid-card { --muted: #374151; color: var(--ink); }
.invalid-crest { width: auto; height: auto; max-width: min(280px, 100%); max-height: 140px; display: block; margin: 0 auto 16px; }  /* crest, square or wide logo */
.invalid-brand { font-size: 24px; font-weight: 700; letter-spacing: .08em; }
.invalid-card h1 { font-size: 22px; font-weight: 400; color: var(--muted); margin: 0 0 24px; }
.invalid-msg { text-wrap: balance; font-size: 17px; font-weight: 400; color: var(--muted); text-align: left; margin: 0 0 24px; }
.invalid-help { font-size: 14px; color: var(--muted); margin: 0; }
.invalid-msg p { margin: 0 0 10px; }
.invalid-card .client-quote { text-align: left; margin: 0 0 16px; color: var(--muted); font-size: 17px; }
.notice-small { font-size: 14px; color: var(--muted); margin: 0 0 24px; overflow-wrap: anywhere; }

/* Email editor (templates page, Email List box) */
.email-form { display: grid; gap: 12px; }
.email-form label { display: grid; gap: 4px; }
.editor { border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.editor-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); background: #f7f9fc; border-radius: 8px 8px 0 0; }
.editor-bar button { background: var(--card); color: var(--ink); border: 1px solid var(--line); padding: 4px 10px; font-size: 14px; }
.editor-area { min-height: 260px; padding: 10px 12px; font-family: Aptos, Calibri, "Segoe UI", Arial, sans-serif; font-size: 11pt; color: #000; line-height: 1.35; outline: none; overflow-wrap: anywhere; }
.editor-area p { margin: 0 0 10px; }
.field-lbl { font-weight: 600; margin-bottom: -6px; }

/* Edit folder (1.0 'Client Edit Requests') */
.edit-list th, .edit-list td { font-size: 14px; }
.edit-list td:nth-child(9), .edit-list td:nth-child(10) { min-width: 150px; }
.edit-list td:last-child { min-width: 84px; }
.edit-list .dl-label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin: 0 0 3px; }
.edit-list .pr-chips { margin-bottom: 8px; }
.edit-ops { display: grid; grid-template-columns: auto; gap: 4px; justify-items: start; }
.edit-ops .btn, .edit-ops button, .edit-ops summary { padding: 5px 9px; font-size: 13px; white-space: nowrap; }
.edit-ops svg { width: 14px; height: 14px; fill: currentColor; display: block; }
.email-row > td { background: var(--card) !important; }
.email-box { max-width: 680px; width: 100%; box-sizing: border-box; white-space: normal; }
/* an email looks like an email (Heath, Oct 25): one narrow column, even when the box opens under a wide list row */
.email-box input[type=text], .email-box .editor { width: 100%; max-width: 100%; box-sizing: border-box; }
.email-list { columns: 2; margin: 4px 0; padding-left: 18px; }
.email-list li { break-inside: avoid; }
button.linkish { background: none; border: 0; padding: 2px 0; color: var(--accent); font-weight: 400; text-align: left; cursor: pointer; }
button.linkish:hover { text-decoration: underline; }
.email-s2c { display: flex !important; align-items: center; gap: 8px; justify-content: flex-end; }
@media (max-width: 700px) { .email-list { columns: 1; } }
.editor-sig { padding: 6px 12px 10px; border-top: 1px dashed var(--line); color: #000; font-family: Aptos, Calibri, "Segoe UI", Arial, sans-serif; font-size: 11pt; line-height: 1.35; }
.editor-sig p { margin: 0; } .editor-sig .muted { font-size: 12px; }

/* ACCEPT page (Heath, Oct 23): the brand's notice layout, compact fields, Accept at the bottom right */
.invalid-card.form-card { max-width: 560px; }
.accept-form { text-align: left; display: grid; gap: 10px; margin: 0; }
.acc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
.acc-grid .wide { grid-column: 1 / -1; }
.acc-grid label, .acc-lbl { display: grid; gap: 3px; margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.acc-grid label small, .acc-lbl small { font-weight: 400; display: inline; }
.acc-grid label { align-content: end; }
.accept-form input { margin: 0; }
.acc-grid small, .acc-lbl small { font-size: 12px; }
.accept-form input[type=text], .accept-form input[type=email], .accept-form select { padding: 7px 10px; font-size: 15px; min-height: 36px; }
.acc-note { font-size: 13px; color: var(--muted); margin: 0; }
/* thank-you pages: the ACCEPT page's text style (Heath, Oct 24); each address in its own box, plain text */
.addr-box { border: 1px solid #b8c0cc; border-radius: 6px; padding: 8px 12px; margin: 0 0 8px; line-height: 1.45; }
.addr-head { font-weight: 600; margin-bottom: 2px; }
.client-body { font-size: 13px; color: var(--muted); text-align: left; margin: 0 0 20px; }
.client-body p { margin: 0 0 8px; }
.invalid-card .client-body + .client-quote, .client-body ~ .client-quote { font-size: 13px; }
.acc-copies { display: grid; gap: 4px; }
.acc-others { margin: 4px 0 8px; padding-left: 20px; }
.acc-note p { margin: 0 0 4px; }
.acc-email-only { display: flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 600; margin: 4px 0 10px; }
/* several addresses: each starts with a blue stripe (Heath, Oct 23) */
.acc-numbered { margin-top: 8px; }
.acc-head { background: var(--brand); color: var(--brand-ink); font-size: 15px; font-weight: 600; padding: 6px 12px;
  border-radius: 6px; margin: 0 0 10px; }
.accept-form .copy-row { display: flex; gap: 6px; margin: 0 0 6px; } .accept-form .copy-row input { flex: 1; }
.accept-form .copy-row button { white-space: nowrap; padding: 6px 12px; }
.acc-actions { display: flex; justify-content: flex-end; margin-top: 4px; }
.accept-form .error { color: var(--err); font-size: 13px; }
@media (max-width: 520px) { .acc-grid { grid-template-columns: 1fr; } }
.addr-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin: 2px 0 0 !important; }
.acc-check { background: var(--info-bg); border: 1px solid var(--info-line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 6px; font-size: 14px; }
.acc-check p { margin: 0; }
.acc-choice { display: flex !important; gap: 8px; align-items: flex-start; margin: 0 !important; font-weight: 400 !important; color: var(--ink) !important; }
.acc-choice input { margin-top: 3px; }

/* Sign in, as 1.0 (Heath, Oct 23): Reset Password smaller than Sign In */
.login-card { max-width: 540px; padding: 48px 56px 40px; }
.login-crest { width: 190px; height: auto; display: block; margin: 0 auto 48px; }
.login-form { display: grid; gap: 18px; text-align: left; }
.login-field { display: flex; border: 1px solid #ccd3dc; border-radius: 4px; overflow: hidden; }
.login-icon { display: flex; align-items: center; justify-content: center; width: 50px; flex: none; background: #f5f5f5;
  border-right: 1px solid #ccd3dc; color: #555; }
.login-field input { flex: 1; min-width: 0; border: 0; border-radius: 0; margin: 0; padding: 14px 12px; font-size: 17px; background: #e8f0fe; }
.login-field input:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--accent); }
.login-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 2px; }
.login-card .btn.login-reset { font-size: 14px; padding: 8px 14px; border-radius: 4px; }
.login-card .login-go { background: var(--go-dark); color: var(--go-ink); font-size: 18px; padding: 12px 20px; border-radius: 4px; }
.login-card .error { color: #b42318; font-size: 14px; margin-top: -10px; }
.login-card .flash { margin: 0 0 16px; text-align: left; }
@media (max-width: 480px) { .login-card { padding: 32px 20px 28px; } .login-crest { width: 150px; margin-bottom: 32px; } }

/* Mailing folder (Heath, Oct 24; 1.0 customer_mailing) */
.mail-list .pr-chip { white-space: nowrap; }
.mail-list .pr-ops { flex-wrap: wrap; max-width: 170px; }
.mail-list summary.pr-chip { cursor: pointer; list-style: none; }
.mail-sec { font-size: 20px; font-weight: 400; margin: 22px 0 6px; color: var(--muted); }
.mail-pop { min-width: 280px; max-width: 360px; }
.mail-addr { border-top: 1px solid var(--line); padding-top: 6px; display: grid; gap: 4px; line-height: 1.4; }
.mail-addr-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.mail-addr > button { justify-self: end; }
button.ia-btn { background: #fff; color: var(--err); border: 1px solid var(--err); font-weight: 700; }
.scan-issue { color: var(--err); display: inline-block; min-width: 180px; max-width: 260px; }  /* why the order waits in Scan */
.pr-chip.final-chip { background: var(--ok); color: #fff; }  /* 1.0: green final.pdf */
.scan-pick { min-width: 260px; }

/* File picker tags (Heath, Oct 24): blue dot while the file is copied in, green tick when ready, red if unreadable */
.oe-filelist:not(.pk-show) .pk-dot { display: none; }
.oe-filelist .pk-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); display: inline-block; }
.oe-filelist .pk-loading .pk-dot { animation: pk-pulse 0.9s ease-in-out infinite alternate; }
.oe-filelist .pk-ready .pk-dot { background: var(--go) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.oe-filelist .pk-error .pk-dot { background: var(--err); }
.oe-filelist .pk-error span { color: var(--err); }
@keyframes pk-pulse { from { opacity: .35; } to { opacity: 1; } }
.signed-out-banner { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 100; max-width: min(640px, calc(100vw - 32px)); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
/* ACCEPT street box is type=search (keeps Chrome's saved addresses off it): looks like the other boxes */
.accept-form input[type=search] { -webkit-appearance: none; appearance: none; }
.accept-form input[type=search]::-webkit-search-cancel-button, .accept-form input[type=search]::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.acc-note.error { color: var(--err); }  /* own email under Email copies (Heath, Oct 24) */
.accept-form .copy-row { flex-wrap: wrap; } .accept-form .copy-row .own-copy { flex-basis: 100%; order: 10; margin: 0; }
.invalid-card .close-note { text-align: center; font-size: 14px; color: var(--muted); margin: 16px 0 0; }
.scan-email-grid { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: end; margin-bottom: 8px; }
.scan-email-grid .scan-src { border: 0; padding: 0; margin: 0; white-space: nowrap; }
@media (max-width: 700px) { .scan-email-grid { grid-template-columns: 1fr; } }
#scan_email_box { max-width: 860px; position: sticky; left: 0; grid-template-columns: minmax(0, 1fr); white-space: normal; }  /* stays in view in the sideways-scrolling table */
.scan-email-grid .scan-src label { display: inline-flex; align-items: center; gap: 4px; margin-right: 14px; font-weight: 400; }
.scan-email-grid .scan-src input { width: auto; margin: 0; }
.scan-email-grid .scan-src legend { margin-bottom: 6px; }
/* Signatures page */
.sig-card h2 { margin-top: 0; }
.sig-who { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: end; margin-bottom: 12px; }
.sig-who label { display: grid; gap: 4px; }
.sig-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.sig-img { position: relative; margin: 0; width: 150px; height: 80px; border: 1px solid var(--line); border-radius: 6px; background: #fff; display: grid; place-items: center; }
.sig-img img { max-width: 140px; max-height: 70px; }
.sig-img form { position: absolute; top: 2px; right: 2px; }
.sig-img button { padding: 0 6px; line-height: 1.4; }
.sig-add { display: grid; gap: 8px; max-width: 520px; }
.sig-add > button { justify-self: start; }
.sig-add .oe-drop { box-sizing: border-box; max-width: 100%; }
/* Authenticate page (verify.<brand>; Heath, Oct 24) */
.invalid-card.auth-card { max-width: 640px; }
.invalid-card.auth-wide { max-width: 900px; }
.auth-title { font-size: 24px !important; color: var(--brand) !important; margin: 0 0 6px !important; }
.auth-note { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.auth-error { color: var(--err); margin: 0 0 14px; }
.auth-form { display: grid; gap: 14px; justify-items: center; margin-bottom: 22px; }
.auth-id { display: flex; width: 100%; max-width: 420px; }
.auth-prefix { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-right: 0; border-radius: 6px 0 0 6px; background: #f3f4f6; font-size: 16px; font-weight: 600; color: var(--ink); }
.auth-id input { flex: 1; min-width: 0; box-sizing: border-box; font-size: 16px; text-align: left; text-transform: uppercase; border-radius: 0 6px 6px 0; }
.auth-doc { display: grid; gap: 12px; }
.auth-doc img { display: block; width: 100%; height: auto; border: 1px solid var(--line); box-shadow: 0 1px 4px rgba(0,0,0,.12); background: #fff; }
.auth-new { text-align: center; margin: 16px 0 20px; }
/* Staff and role permission pages: Save beside Apply role defaults / New role, top right (Heath, Oct 24) */
.perm-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.perm-actions .perm-apply { order: 1; }
.perm-actions .perm-save { order: 2; }
.perm-actions .perm-cancel { order: 3; }
/* Role Default Permissions (Heath, Oct 24): the title and the column names stay put; only the permissions scroll */
.grid-wrap.grid-scroll { overflow: auto; max-height: calc(100vh - 250px); }
.grid-wrap.grid-scroll table.grid { overflow: visible; }  /* a hidden overflow stops the column names sticking */
.grid-wrap.grid-scroll table.grid th { box-shadow: inset 0 -1px 0 var(--line); }
@media (max-width: 700px) { .grid-wrap.grid-scroll { max-height: calc(100vh - 200px); } }

/* My Projects (1.0 'My Projects List'; Heath, Oct 23) */
.mp-head { font-size: 26px; font-weight: 400; color: var(--muted); margin: 26px 0 6px; }
.mp-timer, .mp-etc { display: inline-block; min-width: 46px; text-align: center; padding: 3px 8px; border: 2px solid var(--ok); border-radius: 3px; color: var(--ink); font-weight: 500; white-space: nowrap; }
.mp-timer.late { background: var(--err); border-color: var(--err); color: #fff; }  /* 1.0: red once past due */
.mp-list .pr-chips { display: grid; gap: 4px; justify-items: start; }
.mp-list button.pr-chip { border: 0; cursor: pointer; font: inherit; font-size: 13px; }
.mp-note { display: block; margin-top: 4px; color: var(--muted); }
.mp-radio { display: inline-flex; gap: 4px; align-items: center; margin-left: 10px; font-weight: 400; }
.mp-list td:nth-child(n) { min-width: 0; }
.mp-list td:nth-child(8) { min-width: 140px; white-space: normal; }
.mp-list td:last-child .btn, .mp-list td:last-child button { white-space: nowrap; }
.mp-list .pr-chip, .mp-list td:nth-child(4) { white-space: nowrap; }

/* Buttons under Order History (as 1.0; Heath, Oct 24): Add Note / RTS left, Block / No Refund middle, Request Refund right */
.oh-actions { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin: 14px 0 20px; }
.oh-actions > div { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.oh-actions form { margin: 0; }
button.warn { background: var(--orange); color: var(--orange-ink); border-color: var(--orange); }
.oh-pop { width: min(420px, 92vw); }
.oh-pop textarea, .oh-pop input[type=text] { width: 100%; }
.oh-radios { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.oh-radios > div { display: grid; gap: 4px; }
.oh-radios label { font-weight: 400; display: flex; gap: 6px; align-items: center; }
.oh-pop .err { color: var(--err); margin: 0; }
.oh-suggest { font-size: 13px; background: var(--info-bg); border: 1px solid var(--info-line); border-radius: 6px; padding: 6px 8px; color: var(--ink); }
.oh-suggest div:last-child { font-weight: 600; }
/* Users list: roles changed in place (Heath, Oct 24) */
/* tags on the left, Change always in the same place at the right of the cell (Heath, Oct 24) */
.role-cell { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; }
.role-tags { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 3px; }
.role-cell summary.btn { min-width: 84px; text-align: center; }
.role-pop label { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.role-pop .role-defaults { border-top: 1px solid var(--line); padding-top: 8px; font-size: 13px; color: var(--muted); }
.staff-del { text-align: right; width: 1%; white-space: nowrap; }
.staff-del form { margin: 0; }
.staff-del .pr-ops { justify-content: flex-end; }
.staff-del .pr-ops .btn, .staff-del .pr-ops button { padding: 9px 14px; } .staff-del .pr-ops svg { width: 16px; height: 16px; }  /* 1.0-sized, level with Change */
.emulate-bar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: center; padding: 8px 16px; background: var(--err); color: #fff; }  /* 'Login as' (Users list) */
.emulate-bar form { margin: 0; }
/* University Info (1.0's University Information pages; Heath, Oct 24) */
.uni-search { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 10px 0 16px; }
.uni-search input[type=search] { flex: 1 1 260px; max-width: 520px; }
.uni-search select { flex: 0 1 260px; }
.uni-logo { display: inline-flex; width: 64px; height: 64px; border: 2px solid var(--ok); border-radius: 3px; align-items: center; justify-content: center; background: #fff; }
.uni-logo img { max-width: 58px; max-height: 58px; }
.uni-list td:nth-child(2) { min-width: 240px; white-space: normal; }
.uni-pages { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 16px 0; }
table.uni-detail { width: 100%; border-collapse: collapse; background: var(--card); }
.uni-detail td, .uni-detail th { border: 1px solid var(--line); padding: 10px 12px; vertical-align: top; text-align: left; }
.uni-side { width: 22%; font-weight: 400; } .uni-side strong { display: block; margin-bottom: 40px; }
.uni-side img { display: block; max-width: 100%; margin: 0 auto; }
.uni-k { width: 160px; color: var(--muted); }
.uni-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.uni-cols label { display: block; margin-bottom: 14px; }
.uni-cols input:not([type=checkbox]):not([type=file]), .uni-cols select, .uni-cols textarea { width: 100%; font: inherit; }
.uni-list td:first-child { width: 80px; }
.uni-current { display: block; max-height: 70px; margin: 6px 0; }
.uni-save { display: flex; justify-content: flex-end; margin-top: 10px; }
.uni-notes { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; }
@media (max-width: 800px) { .uni-cols { grid-template-columns: minmax(0, 1fr); gap: 0; } .uni-side { width: auto; } }
.uni-cols > div { min-width: 0; }
.uni-form { max-width: 100%; overflow: hidden; }
.uni-notes span { overflow-wrap: anywhere; }
.uni-list .pr-ops svg { width: 14px; height: 14px; fill: currentColor; display: block; }
@media (max-width: 800px) {
  table.uni-detail, .uni-detail tbody, .uni-detail tr, .uni-detail td { display: block; width: auto; }
  .uni-detail .uni-k { border-bottom: 0; padding-bottom: 0; font-size: 13px; }
  .uni-side strong { margin-bottom: 10px; }
}
/* Country Info (Heath, Oct 24) */
.country-list td:last-child, .country-list th:last-child { width: 1%; white-space: nowrap; }
.country-list .pr-ops svg, .cust-list .pr-ops svg { width: 14px; height: 14px; fill: currentColor; display: block; }
.cust-form { max-width: 640px; } .cust-form label { display: block; margin-bottom: 12px; } .cust-form input { width: 100%; }
.cust-list td:last-child { width: 1%; white-space: nowrap; }
table.country-list { width: 100%; }
.lang-list td:first-child, .lang-list th:first-child { width: 40px; }
.lang-list input[type=checkbox] { width: 20px; height: 20px; }
/* FAQ Management (Heath, Oct 24) */
.faq-card h2 { margin-top: 0; }
.faq-tabs { margin: 10px 0 0; }
.faq-tabs button { background: transparent; color: var(--ink); border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 8px 16px; }
.faq-tabs button.on { border-bottom-color: var(--accent); color: var(--accent); }
.faq-bar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.faq-bar input[data-link-url] { width: 220px; padding: 4px 8px; }
.faq-area { min-height: 420px; max-height: 70vh; overflow: auto; background: #fff; border: 1px solid var(--line); padding: 12px; }
.faq-html { width: 100%; min-height: 460px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.faq-save { margin-top: 12px; }

/* User Activity (Heath, Oct 24) */
.act-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 14px; }
.act-form label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.act-form select { min-width: 220px; max-width: 100%; }
.act-btns { display: flex; gap: 8px; }
.act-list td { white-space: nowrap; }
.act-list td:nth-child(5) { white-space: normal; min-width: 220px; }

/* Order Search (Heath, Oct 24) */
.os-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 14px; align-items: end; margin-bottom: 14px; }
.os-form label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.os-form select, .os-form input { width: 100%; min-width: 0; }
.os-form .act-btns { grid-column: 1 / -1; }
.os-list td { vertical-align: top; }

/* Active Orders (Heath, Oct 24; 1.0's colors): Assigned = the person's name on green once accepted; otherwise a timer —
   waiting to be assigned, pending (assigned, not accepted: amber, red after 12 h), black once rejected. ETC red when late,
   amber on the due day. */
.ao-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.ao-tools select { min-width: 220px; max-width: 100%; }
.ao-assign { min-width: 96px; justify-content: center; white-space: nowrap; }
summary.ao-assign, span.ao-assign { background: #fff; color: var(--ink); border: 2px solid var(--line); }
.ao-assign.ao-accepted { background: var(--ok); border-color: var(--ok); color: #fff; }
.ao-assign.ao-pending { border-color: var(--ok); }  /* assigned, not accepted yet: green ring, as 1.0 (Heath, Oct 25) */
.ao-assign.ao-pending.late { border-color: var(--err); }
.ao-assign.ao-rejected { background: var(--ink); border-color: var(--ink); color: #fff; }
.ao-etc { display: inline-block; min-width: 46px; text-align: center; padding: 3px 10px; border: 2px solid var(--ok); border-radius: 3px; white-space: nowrap; }
.ao-etc.today { border-color: var(--orange); }
.ao-etc.late { background: var(--err); border-color: var(--err); color: #fff; }
.pr-chip.pr-final { background: var(--ok); color: #fff; border-color: var(--ok); }  /* 1.0: final.pdf in green */

/* Refund Requests (Heath, Oct 24; 1.0's look) */
.ref-yes { display: inline-block; padding: 1px 8px; border-radius: 3px; background: var(--err); color: #fff; font-size: 13px; font-weight: 600; }
.ref-ops { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.pr-list tr.ref-total td { background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 17px; }

/* Client Feedback (Heath, Oct 24; 1.0's look) */
.fb-on, .fb-off { display: inline-block; padding: 1px 10px; border-radius: 10px; color: #fff; font-size: 13px; font-weight: 600; }
.fb-on { background: var(--ok); }
.fb-off { background: var(--muted); }
.fb-pop { min-width: min(420px, 90vw); }
.fb-pop input, .fb-pop textarea { width: 100%; }
.fb-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: end; }

/* Client Information Update (ORDER DETAILS; Heath, Oct 21 screenshot of 1.0) */
.invalid-card.det-card { max-width: 860px; text-align: left; }
.det-card fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; min-width: 0; }
.det-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
.det-grid3 label, .det-notes { display: grid; gap: 3px; font-size: 14px; font-weight: 600; color: var(--muted); }
.det-head { font-weight: 700; margin: 4px 0 0; border-top: 1px solid var(--line); padding-top: 12px; }
.det-cols { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 10px 20px; align-items: start; }
.det-radios { display: grid; gap: 4px; font-size: 14px; }
.det-radios label, .det-radios-row label { font-weight: 400; display: flex; gap: 6px; align-items: center; }
.det-radios-row { display: flex; gap: 16px; font-size: 14px; }
.det-prefix { align-self: end; padding-bottom: 8px; }
.det-names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.det-fields { align-content: start; }
@media (max-width: 640px) {
  .det-grid3, .det-cols, .det-names { grid-template-columns: 1fr; }
}
/* EVE: what the client changed on ORDER DETAILS gets a blue ring (parsing's ring is orange; Heath, Oct 24) */
#eve-form .client-changed, #eve-form label.client-changed { outline: 2px solid var(--brand); outline-offset: 1px; border-radius: 4px; }
/* Order Status (1.0's customer Order History) */
.st-card { max-width: 980px; }
.st-h { font-size: 17px; margin: 14px 0 6px; }
.st-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 8px; }
.st-table th, .st-table td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.st-table th { background: var(--bg); font-weight: 600; }
.st-k { width: 140px; }
.st-scroll { overflow-x: auto; }
.st-part { border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; margin: 8px 0; }
.st-part summary { font-weight: 700; cursor: pointer; padding: 4px 0; }
.st-docs { margin: 0 0 6px; padding-left: 22px; font-size: 14px; }
.det-msg { text-align: center; margin: 4px 0; }
.oh-table td:nth-child(1), .oh-table td:nth-child(3) { white-space: nowrap; }

/* Staff Schedule (Heath, Oct 24; 1.0 TimeSheet List) */
.sch-user { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.sch-cap { display: inline-block; min-width: 46px; text-align: center; padding: 4px 8px; border-radius: 4px; background: var(--sch-cap-bg); color: var(--ok); font-weight: 700; }  /* 1.0's pale green */
.sch-shift { display: inline-block; padding: 6px 10px; border-radius: 16px; white-space: nowrap; color: var(--muted); }
.sch-shift.on { background: var(--sch-on); color: #fff; font-weight: 600; }  /* 1.0's lime green: on shift now */
.sch-shift.soon { background: var(--sch-soon); color: #fff; font-weight: 600; }  /* starts within 4 hours */
.sch-shift.vacation { background: var(--sch-vacation); color: #fff; font-weight: 600; }  /* on vacation */
.sch-cap.high { background: var(--sch-high-bg); color: var(--sch-high); }
.sch-cap.full { background: var(--sch-full-bg); color: var(--sch-full); }
.sch-pop { min-width: 300px; }
.sch-edit { width: 100%; font-size: 14px; }
.sch-edit td, .sch-edit th { padding: 3px 4px; }

/* Evaluator / translator settings on the staff page (Heath, Oct 24) */
.work-card { display: grid; gap: 12px; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 14px; align-items: end; }
.work-grid label { display: grid; gap: 3px; min-width: 0; }
.work-score { font-size: 20px; font-weight: 700; padding: 4px 0; }
.work-flags { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.work-country-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; padding: 8px; }
.work-country-list label { display: inline-flex; gap: 5px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 3px 8px; font-size: 14px; }
.work-pairs input:not([type=checkbox]) { width: 110px; }
.sch-user .pr-icon svg { width: 14px; height: 14px; fill: currentColor; display: block; }
.sch-list td, .sch-list th { padding: 8px 6px; }
@media (max-width: 700px) { .sch-list td.sch-off { display: none; } }
.sch-list .sch-shift { font-size: 13px; padding: 4px 8px; }
@media (min-width: 701px) {  /* 1.0's even day columns, the whole week on screen */
  table.pr-list.sch-list { table-layout: fixed; width: 100%; }
  .sch-list th:first-child { width: 19%; }
  .pr-list.sch-list td { overflow: hidden; }
  .sch-list td:not(:first-child) .sch-shift { white-space: normal; padding: 3px 4px; font-size: 12px; }  /* wraps rather than scrolls on narrow screens */
  .pr-list.sch-list td, .pr-list.sch-list th { padding-left: 2px; padding-right: 2px; }
  .sch-list th:not(:first-child), .sch-list td:not(:first-child) { text-align: center; }
}
.sch-list td, .sch-list th { padding: 8px 4px; }
.work-radios { display: flex; gap: 14px; padding: 6px 0; }
.work-radios.col { flex-direction: column; gap: 4px; }
.work-radios label { display: inline-flex; gap: 5px; align-items: center; font-weight: 400; }
.work-ticks > div { display: grid; gap: 4px; }
.work-langs { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.work-langs h3 { margin: 0 0 8px; }
.lang-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px 10px; align-items: end; padding: 8px 0; border-bottom: 1px solid var(--line); }
.lang-row label { display: grid; gap: 3px; min-width: 0; font-size: 13px; }
.lang-row.removing { opacity: .45; }
.lang-remove { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 36px; border-radius: 4px; background: var(--err); color: #fff; font-size: 22px; cursor: pointer; }
.lang-remove input { position: absolute; opacity: 0; width: 0; }
.lang-row.removing .lang-remove { background: var(--muted); }
input.acc-good { border: 2px solid var(--ok); }
input.acc-fair { border: 2px solid var(--orange); }
input.acc-poor { border: 2px solid var(--err); }

/* Payroll (1.0's Translator Payroll / Payment Details; Heath, Oct 24) */
.pay-total td { font-weight: 700; }
.pay-contact { display: inline-flex; gap: 10px; align-items: center; }
.pay-contact svg { width: 18px; height: 18px; fill: var(--brand); display: block; }
.pay-skype { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; text-align: center; line-height: 18px; text-decoration: none; }
.pay-info { border-collapse: collapse; margin: 8px 0 24px; } .pay-info td { border: 1px solid var(--line); padding: 10px 14px; min-width: 200px; }
.pay-qty { width: 90px; }
.pay-billed { display: inline-block; padding: 2px 8px; border-radius: 4px; border: 2px solid transparent; }
.pay-billed.over { border-color: var(--err); }  /* higher than 2.0's own count (Heath, Oct 24) */
.pay-foot { margin: 16px 0 32px; } .pay-warn { color: var(--err); }
.pay-foot-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.pay-total-line { font-size: 1.4rem; font-weight: 700; margin: 0; }
.pay-detail textarea { width: 260px; max-width: 70vw; }
.pay-detail { min-width: 1240px; } .pay-detail .btn, .pay-detail summary { white-space: nowrap; }

/* Dashboard (1.0's panels, Heath Oct 24): full width, compact */
.dash-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.dash-month { display: flex; align-items: center; gap: 8px; }
.dash-card { padding: 14px 18px; }
.dash-card h2 { margin: 0 0 6px; }
.sch-title { margin: 10px 0 2px; }
.dash-ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px 16px; }
.dash-ev-grid h3 { margin: 0 0 4px; font-size: 16px; }
.dash-ev { display: grid; gap: 6px; }
.dash-ev-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dash-ev-table th, .dash-ev-table td { padding: 3px 6px; border-bottom: 1px solid var(--line); text-align: right; }
.dash-ev-table thead th { font-size: 12px; }
.dash-ev-table tbody th { text-align: left; font-size: 12px; }
.dash-sum td, .dash-sum th { font-weight: 700; border-top: 2px solid var(--line); }
.dash-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dash-stat { border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; text-align: center; }
.dash-stat span, .dash-tile span { display: block; font-size: 11px; text-transform: uppercase; }
.dash-stat strong { font-size: 18px; color: var(--ok); }
.dash-sales { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 12px; }
.dash-tile { border-radius: 6px; padding: 10px 14px; color: #fff; }
.dash-tile strong { font-size: 24px; }
.dash-tile.gross { background: var(--dash-gross); }
.dash-tile.refunds { background: var(--dash-refunds); }
.dash-tile.net { background: var(--dash-net); }
.page.full .dash-card { margin: 0 0 12px; }
.dash-card .pr-list.sch-list td, .dash-card .pr-list.sch-list th { padding-top: 4px; padding-bottom: 4px; }
.dash-head h1 { margin: 0 0 8px; }
.dash-foot { padding: 12px 18px; }
.dash-foot p { margin: 0 0 8px; }
@media (max-width: 900px) { table.dash-ev-table { display: table; } }
@media (max-width: 700px) {  /* phone: 'Mon 09 AM - 01 PM' on one line */
  .sch-list td:not(:first-child)[data-label]::before { display: inline-block; width: 42px; }
  .pr-list.sch-list td:not(:first-child) { padding-top: 1px; padding-bottom: 1px; }
}

/* Split-language files: which pages need translating (Heath, Oct 24) */
.od-pagemap { color: var(--ok); font-weight: 600; }
.od-pagemap-edit { display: inline-block; margin-left: 6px; }
.od-pagemap-edit .status-pop { max-height: 70vh; overflow-y: auto; }
.od-pagerow { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.od-pagerow select { width: auto; padding: 4px 6px; font-size: 14px; }
.oe-pagemap { display: block; margin-top: 6px; color: var(--ok); font-weight: 600; }
.oe-pagemap-warn { color: var(--err); }

/* AI comparison (Heath, Oct 24) */
.aic-heads { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.aic-head-card { padding: 10px 14px; }
.aic-stats { font-size: 14px; margin-top: 4px; }
.aic-fail { color: var(--err); }
.aic-table th, .aic-table td { padding: 5px 8px; font-size: 14px; }
.pr-list.aic-table td { white-space: normal; }
.aic-table tbody th { text-align: left; white-space: nowrap; }
.aic-head { font-weight: 700; }
.aic-sep { border-left: 3px solid var(--line); }
.aic-saved { margin-top: 10px; }
/* AI Comparison at the bottom left, after RTS: a clear button with a dark grey ring (Heath, Oct 26) */
button.ai-cmp { background: var(--card); color: var(--ink); border: 1.5px solid var(--muted); }
button.ai-cmp:hover { background: var(--bg); }
@media (max-width: 700px) { .aic-heads { grid-template-columns: 1fr; } }
.aic-heads .card { margin: 0; }

.aic-ring { display: inline-block; border: 2px solid var(--err); border-radius: 6px; padding: 1px 5px; min-width: 1.5em; }
.aic-ring-key { border: 2px solid var(--err); border-radius: 6px; padding: 0 5px; }
.aic-differ td, .aic-differ th { vertical-align: top; }
.aic-verdict { display: grid; grid-template-columns: auto auto; gap: 2px 10px; font-size: 13px; white-space: nowrap; }
.aic-verdict label { display: inline-flex; align-items: center; gap: 3px; }
.aic-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.aic-body.with-pages { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 40%); gap: 14px; align-items: start; }
.aic-body.with-pages > .page-viewer { grid-column: 2; grid-row: 1; position: sticky; top: 70px; }
.aic-body.with-pages > .aic-main { grid-column: 1; grid-row: 1; }
.aic-save { display: flex; gap: 12px; align-items: end; }
.aic-save label { flex: 1; display: grid; gap: 4px; }
.aic-totals { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
@media (max-width: 900px) { .aic-body.with-pages { display: block; } .aic-body.with-pages > .page-viewer { position: static; max-height: 70vh; margin-bottom: 12px; } }
.aic-filter { display: flex; gap: 6px; } .aic-filter .pr-chip.on { background: var(--brand); color: var(--brand-ink); }
.aic-off { display: inline-block; border: 2px dashed var(--warn); border-radius: 6px; padding: 1px 5px; min-width: 1.5em; }
.aic-off-key { border: 2px dashed var(--warn); border-radius: 6px; padding: 0 5px; }
.aic-verdict.guessed { opacity: .75; }
.aic-courses td, .aic-courses th { font-size: 13px; }
.aic-eve { background: var(--info-bg); }
/* A part before its type is picked shows only the file box (Heath, Oct 24: drop the documents, 2.0 picks the type) */
.oe-part[data-type=""] .oe-grid > :not(.oe-files), .oe-part[data-type=""] .oe-lower { display: none; }
.oe-autotype { display: none; color: var(--muted); font-size: 13px; margin-top: 4px; }
.oe-part[data-type=""] .oe-autotype { display: block; }
.oe-types button.suggested { box-shadow: 0 0 0 3px var(--orange); }
/* Order Entry: the file box glows orange while 2.0 reads the documents (Heath, Oct 24) */
.oe-drop.reading { border-color: var(--orange); animation: oe-reading 1.2s ease-in-out infinite; }
@keyframes oe-reading { 0%, 100% { box-shadow: 0 0 0 0 rgba(240,173,78,.0); } 50% { box-shadow: 0 0 0 6px rgba(240,173,78,.55); } }
@media (prefers-reduced-motion: reduce) { .oe-drop.reading { animation: none; box-shadow: 0 0 0 4px rgba(240,173,78,.55); } }
.tag.oh-client { background: var(--info-bg); border: 1px solid var(--info-line); color: var(--ink); }  /* Order History: the client sees this entry (Heath, Oct 25) */
.client-send { justify-content: center; text-align: center; }  /* CHANGES page: Send changes centered (Heath, Oct 25) */
/* Folder counters (as 1.0, Heath Oct 25): green-outlined pill on the right; solid green when a folder that needs
   someone to act holds anything; a red ring when a Same Day evaluation is waiting in it */
.nav-counts { margin-left: auto; display: flex; gap: 4px; flex: none; }
.side nav a { padding-right: 14px; }
.side nav a > span:not(.nav-counts) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nav-count { min-width: 26px; padding: 1px 8px; border: 2px solid var(--ok); border-radius: 999px; color: var(--ok);
  background: var(--card); font-size: 13px; font-weight: 700; text-align: center; line-height: 18px; }
.nav-count.solid { background: var(--ok); color: #fff; }
.nav-count.rush { border-color: var(--err); box-shadow: 0 0 0 1px var(--err); }
.side nav a.on .nav-count { border-color: var(--brand-ink); }
.side nav a.on .nav-count.rush { border-color: var(--err); }
/* Active Orders: the three sections' columns line up (Heath, Oct 25): fixed widths, Name takes what's left, and the
   Edit section's extra Edits column comes out of Name's share */
/* fixed columns, Name takes the rest; at least ~180 px for Name even in Edit Orders (Heath, Oct 26: View overlapped it) */
table.ao-list { table-layout: fixed; width: 100%; min-width: 1260px; }
.ao-list col.c-rush { width: 64px; } .ao-list col.c-assigned { width: 124px; } .ao-list col.c-date { width: 76px; }
.ao-list col.c-num { width: 96px; } .ao-list col.c-type { width: 112px; } .ao-list col.c-country { width: 130px; }
.ao-list col.c-edits { width: 76px; } .ao-list col.c-email { width: 60px; } .ao-list col.c-etc { width: 156px; }
.ao-list col.c-op { width: 184px; }
.ao-list td { overflow-wrap: anywhere; }
/* Users list (Heath, Oct 25): email icon only; Translator tab as 1.0's list */
.staff-list td { vertical-align: top; }
.staff-list svg { width: 18px; height: 18px; fill: var(--brand); }
.staff-list .pr-ops svg { fill: currentColor; width: 14px; height: 14px; }
.staff-pic img, .staff-pic .avatar { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ok); object-fit: cover; display: inline-flex; align-items: center; justify-content: center; background: #eef2f8; }
.staff-pic .avatar svg { width: 26px; height: 26px; }
.staff-langs { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.lang-tag { background: var(--brand); color: #fff; border-radius: 3px; padding: 1px 8px; font-size: 13px; }
/* Left pane Users (as 1.0, Heath Oct 25): opens to All Users and each role */
.side nav details.nav-sub > summary { display: flex; align-items: center; gap: 14px; padding: 13px 14px 13px 20px; border-bottom: 1px solid var(--side-line);
  color: var(--side-ink); font-size: 16px; font-weight: 500; cursor: pointer; list-style: none; }
.side nav details.nav-sub > summary::-webkit-details-marker { display: none; }
.side nav details.nav-sub > summary svg { width: 20px; height: 20px; flex: none; fill: var(--brand); }
.side nav details.nav-sub > summary:hover { background: #f4f7fb; }
.side nav .nav-chev { margin-left: auto; color: var(--muted); transition: transform .15s; }
.side nav details.nav-sub[open] .nav-chev { transform: rotate(90deg); }
.side nav details.nav-sub a.sub { padding: 9px 20px 9px 54px; font-size: 15px; font-weight: 400; border-bottom: 0; }
.side nav details.nav-sub[open] { border-bottom: 1px solid var(--side-line); }
.pr-file { margin: 0 0 12px; overflow-wrap: anywhere; }  /* Proofread / Edit page: the file being checked (Heath, Oct 25) */
/* Operation buttons line up (Heath, Oct 25): a button inside a box (details/summary) or a form sits like the others */
.pr-ops { align-items: center; }
.pr-ops > details, .pr-ops > form { display: flex; margin: 0; }
.pr-ops > details > summary, .pr-ops > form > button, .pr-ops > .btn, .pr-ops > button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 32px; margin: 0; vertical-align: middle; }
.eve-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 8px; }
.eve-sources[hidden] { display: none; }
.eve-sources-label { font-weight: 600; margin-right: 4px; }
/* Imager 'Parse Images?' Submit glows orange while the AI reads, as Order Entry's file box (Heath, Oct 25) */
#imager_parse.reading, #imager_parse.reading:disabled { background: var(--card); color: var(--ink); border: 1px solid var(--orange); opacity: 1; cursor: progress; animation: oe-reading 1.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { #imager_parse.reading { animation: none; box-shadow: 0 0 0 4px rgba(240,173,78,.55); } }
/* Edit order (Heath, Oct 25): the part's files already on the order; × marks one to remove when saved */
.oe-oldlist li.removed span { text-decoration: line-through; color: var(--muted); }
.oe-part-num { font-weight: 400; color: var(--muted); }
.oe-kept { margin: 4px 0 8px; font-size: 13px; }
.oe-types button:disabled { border-color: var(--line); color: var(--muted); background: var(--bg); cursor: not-allowed; }
/* Edit order: a part added to an order under way (Heath, Oct 25) */
.oe-addon { display: grid; gap: 8px; margin: 10px 0; padding: 10px 12px; border: 1px solid var(--info-line); background: var(--info-bg); border-radius: 8px; }
.oe-addon[hidden], .oe-use[hidden] { display: none; }
.oe-part:not(.is-tl) .oe-for { display: none; }
.oe-for select { max-width: 260px; }
.oe-use-list { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.oe-addon-line td { color: var(--muted); font-style: italic; }
.oe-use.reading { border-radius: 6px; animation: oe-reading 1.2s ease-in-out infinite; }
.oe-use label.suggested { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.oe-use-note { display: block; }
/* The client's invoice (Heath, Oct 25; ServiceJoy's layout, branded) */
.inv-page { max-width: 900px; margin: 0 auto; color: #374151; }
.inv-others { background: var(--info-bg); border: 1px solid var(--info-line); padding: 8px 12px; border-radius: 6px; }
.inv-head-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.inv-head-row h1 { font-size: 22px; margin: 10px 0; }
.inv-pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding: 12px; margin: 8px 0 16px;
  background: #fff8dc; border: 1px solid #f0e2a8; border-radius: 6px; font-weight: 600; }
.inv-pay small { flex-basis: 100%; text-align: center; font-weight: 400; }
.inv-pay.paid { background: var(--info-bg); border-color: var(--info-line); }
.inv-sheet { background: #fff; border: 1px solid var(--line); box-shadow: 3px 3px 0 var(--line); padding: 32px 40px; }
.inv-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.inv-logo { width: 110px; height: auto; }
.inv-mid { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 28px 0 20px; flex-wrap: wrap; }
.inv-facts, .inv-totals { border-collapse: collapse; min-width: 300px; }
.inv-facts td, .inv-totals td { padding: 3px 10px; }
.inv-facts td + td, .inv-totals td + td { text-align: right; }
.inv-due { background: var(--bg); font-weight: 700; }
.inv-due td { padding: 8px 10px; border-top: 1px solid var(--line); }
.inv-lines { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.inv-lines th { background: var(--bg); text-align: left; padding: 10px; border-bottom: 1px solid var(--line); }
.inv-lines td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.inv-lines .amt { text-align: right; }
.inv-totals { margin-left: auto; }
@media (max-width: 640px) { .inv-sheet { padding: 18px 16px; } .inv-facts, .inv-totals { min-width: 0; width: 100%; } }
@media print { .client-top, .client-foot, .inv-pay, .inv-others, .inv-head-row button { display: none; } .inv-sheet { box-shadow: none; border: 0; } }
table.inv-facts, table.inv-totals { width: auto; min-width: 320px; }
@media (max-width: 640px) { .inv-sheet table { display: table; width: 100% !important; min-width: 0 !important; border: 0; overflow: visible; } }
@media (max-width: 640px) { .inv-lines th, .inv-lines td { padding: 8px 6px; } .inv-lines td:first-child { overflow-wrap: anywhere; } }
.inv-agree { flex-basis: 100%; justify-content: center; font-weight: 400; }
.inv-card { flex-basis: 100%; max-width: 520px; background: #fff; padding: 12px; border-radius: 6px; border: 1px solid var(--line); }
.inv-msg.bad { color: var(--err); }
label.inv-agree.needed { color: var(--err); }
label.inv-agree.needed input { outline: 2px solid var(--err); outline-offset: 2px; }
/* Heath, Oct 25: the pay box pale blue (not yellow), the T&Cs tick centered under Pay Online */
.inv-pay { background: var(--info-bg); border-color: var(--info-line); }
label.inv-agree { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; text-align: center; }
/* Heath, Oct 25: the card form across the box, Pay $… under it at the bottom right */
.inv-card { max-width: none; width: 100%; box-sizing: border-box; }
.inv-submit-row { flex-basis: 100%; display: flex; justify-content: flex-end; }
.inv-submit-row[hidden] { display: none; }
/* the invoice's tables stay tables at every width, printed too (Heath, Oct 26: printed, the totals didn't line up with the amounts) */
.inv-sheet table { display: table; }
.inv-sheet table.inv-lines { width: 100%; }
@media print { .inv-sheet table.inv-totals { margin-left: auto; } }

/* someone no longer on staff, kept in statistics (Heath, Oct 26): greyed out, never marked 'deleted' */
.gone, option.gone { color: var(--muted); }

/* the client's own translation differs from the original (Heath, Oct 26): minor in amber text, serious in red */
.oe-tl-diff { color: var(--warn); }
.oe-tl-diff.serious { color: var(--err); font-weight: 600; }

/* Authorize.net's hosted card form in the pay box (Heath, Oct 26) */
.inv-authnet-wrap { flex-basis: 100%; position: relative; }
.inv-authnet-wrap[hidden] { display: none; }
.inv-authnet-cover { display: none; position: absolute; inset: 0; background: rgba(255,255,255,.55); border-radius: 6px; cursor: not-allowed; }
.inv-authnet-wrap.locked .inv-authnet-cover { display: block; }
button.go.locked { background: var(--disabled); color: var(--muted); }
label.inv-agree[hidden] { display: none; }
iframe.inv-authnet { display: block; flex-basis: 100%; width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
/* Site Settings (Heath, Oct 26): one compact section */
.ss-card { max-width: 600px; padding: 16px 20px; }
.ss-card h2 { margin: 0 0 10px; }
.ss-table { width: 100%; }
.ss-table th small { font-weight: 400; text-transform: none; }
.ss-table td:nth-child(n+3), .ss-table th:nth-child(n+3) { text-align: right; }
.ss-table input { width: 52px; text-align: center; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.ss-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.ss-foot p { margin: 0; font-size: 13px; }
@media (max-width: 600px) { .ss-card { padding: 12px; } .ss-foot { flex-direction: column; align-items: stretch; } .ss-table input { width: 52px; }
  .ss-table td small { display: block; } .ss-table th, .ss-table td { padding: 8px 6px; font-size: 13px; } }
/* Self-serve order page (Heath, Oct 26; client/order.html) */
.op h1 { margin: 0 0 14px; }
.op-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.op-main { display: grid; gap: 16px; }
#op-cards { display: grid; gap: 16px; }
.op-card, .op-sec { padding: 16px 18px; }
.op-card h2, .op-sec h2, .op-summary h2 { font-size: 17px; margin: 0 0 12px; }
.op-card-head { display: flex; justify-content: space-between; align-items: center; }
.op-card-head h2 { margin: 0 0 12px; }
.op-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.op-kind { display: grid; gap: 2px; padding: 10px 12px 10px 36px; border: 1px solid var(--line); border-radius: 8px;
  cursor: pointer; position: relative; background: #fff; }
.op-kind input { position: absolute; left: 12px; top: 13px; }
.op-kind small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.op-kind.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--info-bg); }
.op-kinds.bad, .op-mail.bad { outline: 2px solid var(--err); outline-offset: 4px; border-radius: 8px; }
.op-body { margin-top: 14px; display: grid; gap: 12px; }
.op-body[hidden] { display: none; }
.op-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.op-grid label, .op-notes, .op-extras label { display: grid; gap: 4px; font-weight: 500; }
.op-grid label[hidden], .op .ev[hidden], .op .tl[hidden], .op-extras[hidden] { display: none; }
.op-wide { grid-column: 1 / -1; }
.op input[type=text], .op input[type=email], .op input[type=tel], .op input[type=number], .op select, .op textarea {
  font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; width: 100%; box-sizing: border-box; }
.op .combo input { font: inherit; padding: 8px 10px; }
.op .bad { border-color: var(--err) !important; box-shadow: 0 0 0 1px var(--err); }
.op-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.op-check input { margin-top: 3px; }
.op-small { font-size: 13px; margin: 0; }
.op-lbl { display: block; font-weight: 500; margin-bottom: 4px; }
.op-files .oe-drop { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 14px; }
.op-files small { display: block; margin-top: 4px; }
.op-add { justify-self: start; }
.op-mail { display: grid; gap: 6px; margin-bottom: 12px; }
.op-choice { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.op-choice.on { border-color: var(--accent); background: var(--info-bg); }
.op-c-name { flex: 1; }
.op-c-price { color: var(--muted); font-size: 14px; white-space: nowrap; }
.op-extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.op-extras input { max-width: 90px; }
.op-summary { position: sticky; top: 16px; padding: 16px 18px; display: grid; gap: 10px; }
.op-summary table { width: 100%; border-collapse: collapse; font-size: 14px; }
.op-summary td { padding: 4px 0; vertical-align: top; }
.op-summary td.amt { text-align: right; white-space: nowrap; padding-left: 10px; }
.op-total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; font-size: 18px; }
.op-go { width: 100%; padding: 12px; font-size: 16px; }
@media (max-width: 860px) { .op-layout { grid-template-columns: 1fr; } .op-summary { position: static; } }
@media (max-width: 600px) { .op-kinds, .op-grid, .op-extras { grid-template-columns: 1fr; } }
.op-summary table { display: table; border: 0; } .op-summary tbody { display: table-row-group; }
.op-summary tr { display: table-row; border: 0; } .op-summary td { display: table-cell; border: 0; }
.op-summary td::before { content: none; }
.op-notes small, .op-grid label small { font-weight: 400; }
.op-summary table { table-layout: fixed; } .op-summary td { white-space: normal; overflow-wrap: anywhere; }
.op-summary td.amt { width: 84px; white-space: nowrap; }
.dash-speed { font-size: 12px; margin: 4px 0 0; }
/* self-serve order page: the documents first (Heath, Oct 26) */
.op-kinds[hidden], .op-rec[hidden], .op-reading[hidden], .op-manual[hidden] { display: none; }
.op-card .op-files { display: grid; gap: 6px; }
.op-card .op-files .oe-drop { padding: 22px 14px; }
.op-rec { margin: 12px 0; }
.op-manual { justify-self: start; font-size: 13px; }
