@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* =====================================================================
   NOLA GeauxPost design system
   Brand: Montserrat · gray #6d6e71 · lime #b3d337 (accent for selected
   states and primary actions only). Class names used by existing pages
   are kept; only their look changes.
   ===================================================================== */
:root {
  --ngp-gray: #6d6e71;
  --ngp-lime: #b3d337;
  --on-accent: #2b2c2e;      /* text on accent-colored buttons (white for dark accents) */
  --lime-600: #9dbb2a;
  --lime-tint: #f3f8e3;
  --lime-tint-2: #e8f1c6;
  --lime-ink: #55700f;
  --ink: #2b2c2e;
  --ink-2: #48494c;
  --muted: #66676b;          /* supporting text — readable on white and on the gray page */
  --line: #e1e2e5;
  --line-2: #eef0f1;
  --bg: #f1f2f3;            /* neutral light gray (no warm/yellow cast) */
  --surface: #ffffff;
  --danger: #b3261e;
  --danger-tint: #fbece9;
  --warn-ink: #8a6a12;
  --warn-tint: #fdf5dc;
  --info-ink: #2f5877;
  --info-tint: #e9f0f7;
  --radius: 10px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 22, 18, .05);
  --shadow-lg: 0 18px 48px rgba(20, 22, 18, .16);
  --sidebar-w: 252px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Montserrat', system-ui, sans-serif; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
.disp { font-weight: 800; }

/* ---------- App shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; z-index: 50; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 14px; }
.brand-logo img { display: block; height: 44px; width: auto; }
.sidebar-close { display: none; background: none; border: none; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; }
.new-order-btn { display: flex; align-items: center; gap: 10px; margin: 4px 14px 12px; padding: 11px 14px; border-radius: 12px; background: var(--lime-tint); color: var(--lime-ink); font-weight: 700; font-size: 13.5px; border: 1px solid var(--lime-tint-2); transition: background .15s; }
.new-order-btn svg { background: var(--ngp-lime); color: #fff; border-radius: 6px; padding: 2px; width: 20px; height: 20px; }
.new-order-btn:hover, .new-order-btn.active { background: var(--lime-tint-2); }
.sidenav { flex: 1; overflow-y: auto; padding: 4px 10px 12px; }
.navlink { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); font-size: 13.5px; font-weight: 500; margin-bottom: 1px; position: relative; cursor: pointer; }
.navlink svg { width: 18px; height: 18px; color: var(--ngp-gray); flex-shrink: 0; }
.navlink:hover { background: var(--lime-tint); color: var(--ink); }
.navlink:hover svg { color: var(--lime-ink); }
.navlink.active { background: var(--lime-tint); color: var(--ink); font-weight: 700; }
.navlink.active::before { content: ''; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ngp-lime); }
.navlink.active svg { color: var(--lime-ink); }
.navbadge { margin-left: auto; background: var(--ngp-lime); color: var(--on-accent); font-size: 10.5px; font-weight: 800; border-radius: 999px; padding: 1px 7px; }
.navgroup-summary { list-style: none; user-select: none; }
.navgroup-summary::-webkit-details-marker { display: none; }
.navgroup-link { flex: 1; color: inherit; text-decoration: none; align-self: stretch; display: flex; align-items: center; }
.navgroup-link:hover { color: var(--ink); }
.navgroup-chevron { display: inline-flex; transition: transform .15s; padding: 4px; margin: -4px -4px -4px 0; border-radius: 6px; }
.navgroup-chevron:hover { background: var(--lime-tint-2); }
.navgroup-chevron svg { width: 15px; height: 15px; }
.navgroup[open] > summary .navgroup-chevron { transform: rotate(180deg); }
.navgroup.current > summary { color: var(--ink); font-weight: 700; }
.navgroup.current > summary svg { color: var(--lime-ink); }
.navgroup-items { margin: 2px 0 6px 21px; padding-left: 10px; border-left: 1px solid var(--line); }
.navsub { font-size: 12.8px; padding: 7px 10px; color: var(--ngp-gray); }
.navsub.active { background: transparent; color: var(--lime-ink); }
.navsub.active::before { left: -11px; top: 6px; bottom: 6px; }
.sidebar-foot { border-top: 1px solid var(--line); padding: 12px 14px; }
.whoami { display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 999px; background: var(--ngp-gray); color: #fff; font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.who-name { font-size: 13px; font-weight: 700; }
.who-role { font-size: 11px; color: var(--muted); }
.nav-scrim { display: none; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: 64px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 28px; }
.topbar-menu { display: none; background: none; border: none; color: var(--ink); padding: 6px; cursor: pointer; }
.topbar-logo { display: none; }
.topbar-logo img { height: 34px; display: block; }
.topbar-search { flex: 0 1 420px; margin-left: auto; display: flex; align-items: center; gap: 8px; background: #f2f3f4; border: 1px solid transparent; border-radius: 12px; padding: 0 12px; color: var(--muted); }
.topbar-search:focus-within { border-color: var(--ngp-lime); background: #fff; }
.topbar-search input { border: none; background: transparent; outline: none; height: 40px; flex: 1; font-size: 13.5px; color: var(--ink); min-width: 0; }
.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 4px 6px 4px 4px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover { background: #f2f3f4; }
.usermenu summary svg { width: 14px; height: 14px; color: var(--muted); }
.um-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 60; }
.um-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; display: flex; flex-direction: column; font-size: 13px; }
.um-head span { font-size: 11.5px; color: var(--muted); }
.um-panel a, .um-panel button, .um-toggle { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; font-size: 13px; color: var(--ink-2); background: none; border: none; cursor: pointer; font-weight: 500; }
.um-panel a:hover, .um-panel button:hover, .um-toggle:hover { background: #f4f5f6; }

.content { flex: 1; width: 100%; max-width: 1320px; padding: 26px 32px 48px; }
.section-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 18px; padding-bottom: 2px; }
.section-tabs::-webkit-scrollbar { display: none; }
.section-tab { white-space: nowrap; padding: 7px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--ngp-gray); background: #fff; border: 1px solid var(--line); }
.section-tab:hover { color: var(--lime-ink); background: var(--lime-tint); border-color: var(--ngp-lime); }
.section-tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.bottomnav { display: none; }

/* public pages (login, emailed pay links) */
body.public { background: var(--bg); }
.public-head { display: flex; justify-content: center; padding: 34px 16px 10px; }
.public-head img { height: 54px; }
.public-main { max-width: 680px; margin: 0 auto; padding: 16px 16px 48px; }

/* ---------- Page elements ---------- */
.pagehead { margin-bottom: 20px; }
.pagehead h1 { font-size: 24px; margin: 0 0 3px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.pagehead p { margin: 0; font-size: 13px; color: var(--ngp-gray); }
.pagehead-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ngp-gray); font-weight: 700; margin-bottom: 10px; }
.section-title { font-size: 15px; font-weight: 800; margin: 0 0 12px; color: var(--ink); }
.field { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; gap: 14px; }
.field:last-child { border-bottom: none; }
.fval { font-weight: 600; text-align: right; }
.small { font-size: 12px; color: var(--muted); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.err { color: var(--danger); font-size: 12.5px; font-weight: 600; margin-top: 6px; }
.ok { color: var(--lime-ink); font-size: 12.5px; font-weight: 600; margin-top: 6px; }
.pass { color: var(--lime-ink); font-weight: 800; } .fail { color: var(--danger); font-weight: 800; } .info { color: var(--ngp-gray); font-weight: 700; }
code.src { font-size: 11px; background: #f2f3f4; border-radius: 4px; padding: 1px 5px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius-sm); padding: 10px 18px; font-size: 13.5px; font-weight: 700; cursor: pointer; border: 1px solid transparent; font-family: inherit; line-height: 1.2; transition: background .15s, border-color .15s, box-shadow .15s; text-decoration: none; }
.btn:focus-visible { outline: 3px solid var(--lime-tint-2); outline-offset: 1px; }
.btn-lime { background: var(--ngp-lime); color: var(--on-accent); }
.btn-lime:hover { background: var(--lime-600); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #3c3d40; }
.btn-outline { background: #fff; border-color: #dcdcd7; color: var(--ink); }
.btn-outline:hover { border-color: var(--ngp-lime); background: var(--lime-tint); }
.btn-danger { background: #fff; border-color: #efcac2; color: var(--danger); }
.btn-danger:hover { background: var(--danger-tint); }
.btn-sm { padding: 7px 12px; font-size: 12px; border-radius: 9px; }
.bigbtn { display: flex; width: 100%; padding: 14px; font-size: 15px; }

/* statuses */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; text-transform: capitalize; }
.badge-green { background: var(--lime-tint-2); color: var(--lime-ink); }
.badge-amber { background: var(--warn-tint); color: var(--warn-ink); }
.badge-red { background: var(--danger-tint); color: var(--danger); }
.badge-gray { background: #edeef0; color: #58595b; }
.badge-blue { background: var(--info-tint); color: var(--info-ink); }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--lime-tint-2); color: var(--lime-ink); padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.flash { border-radius: 12px; padding: 11px 15px; margin-bottom: 14px; font-size: 13px; font-weight: 600; }
.flash-ok { background: var(--lime-tint); color: var(--lime-ink); border: 1px solid var(--lime-tint-2); }
.flash-err { background: var(--danger-tint); color: #8e2a17; border: 1px solid #efcac2; }

/* tables */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ngp-gray); font-weight: 700; padding: 0 12px 10px; }
td { padding: 12px; font-size: 13px; border-top: 1px solid var(--line-2); }
tr.rowlink { cursor: pointer; }
tr.rowlink td { transition: background .12s; }
tr.rowlink:hover td { background: var(--lime-tint-2); }
tr.rowlink:hover td:first-child { box-shadow: inset 4px 0 0 var(--ngp-lime); }
.table-wrap { width: 100%; overflow-x: auto; }
.rtable td { vertical-align: top; }

/* forms */
.input, select.input, textarea.input { border: 1px solid #dcdcd7; border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13.5px; font-family: inherit; width: 100%; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--ngp-lime); box-shadow: 0 0 0 3px var(--lime-tint-2); }
.flabel { font-size: 12px; font-weight: 600; margin-bottom: 5px; display: block; color: var(--ink-2); }
.chk-row { display: flex; align-items: flex-start; gap: 9px; padding: 7px 0; cursor: pointer; font-size: 13px; }
.chk-row input { margin-top: 2px; accent-color: var(--ngp-lime); }
input[type=checkbox], input[type=radio] { accent-color: var(--lime-600); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; }
.form-field { display: flex; flex-direction: column; gap: 3px; }
.form-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.filterbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 14px; }
.fb-item { display: flex; flex-direction: column; min-width: 130px; flex: 0 1 170px; }
.fb-item .input { padding: 8px 10px; }
.fb-grow { flex: 1 1 240px; }
.fb-check { flex-direction: row; align-items: center; gap: 6px; font-size: 12.5px; min-width: 0; padding-bottom: 8px; }
.fb-actions { display: flex; gap: 8px; align-items: center; }
.fb-actions .btn { padding: 9px 14px; }
.fb-more { flex-basis: 100%; }
.fb-more > summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--ngp-gray); padding: 2px 0; }
.fb-more-items { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 10px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 10px; }
.chip { display: inline-flex; padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; }
.chip.active { background: var(--lime-tint); color: var(--lime-ink); border-color: var(--ngp-lime); }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
details.card > summary { cursor: pointer; font-weight: 700; font-size: 13.5px; }

/* layout helpers */
.grid2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tab { padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--ngp-gray); white-space: nowrap; border-bottom: 2.5px solid transparent; }
.tab.active { color: var(--ink); border-bottom-color: var(--ngp-lime); }
.tab-count { background: #edeef0; border-radius: 999px; padding: 1px 7px; font-size: 11px; margin-left: 4px; }
.kv { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 7px 14px; font-size: 13px; }
.kv dt { color: var(--ngp-gray); } .kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 8px 0 8px 14px; border-left: 2px solid var(--line); font-size: 12.5px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: -5px; top: 13px; width: 8px; height: 8px; border-radius: 999px; background: var(--ngp-lime); }
.empty { text-align: center; padding: 30px 16px; border: 1.5px dashed #e0e0dc; border-radius: 12px; background: #fbfbfc; }
.empty-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }

/* stat tiles & home */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: block; }
.stat-tile .label { margin-bottom: 4px; }
.stat-tile .num { font-size: 24px; font-weight: 800; }
a.stat-tile { transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
a.stat-tile:hover { background: var(--lime-tint-2); border-color: var(--ngp-lime); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(85,112,15,.16); }
a.stat-tile:hover .num { color: var(--lime-ink); }
.stat-tile.tone-red .num { color: var(--danger); } .stat-tile.tone-green .num { color: var(--lime-ink); } .stat-tile.tone-amber .num { color: var(--warn-ink); }
.request-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.request-card { border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.request-card.primary { background: var(--ink); color: #fff; }
.request-card.primary .rc-title { color: #fff; }
.request-card.primary .rc-sub { color: #cfd0d2; }
.request-card:not(.primary) { background: #fff; border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow); }
.request-card .rc-icon { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.request-card.primary .rc-icon { background: var(--ngp-lime); color: var(--on-accent); }
.request-card:not(.primary) .rc-icon { background: #f1f1ee; color: var(--ink-2); }
.request-row.even { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.request-card:not(.primary) { transition: border-color .15s, box-shadow .15s; }
a.request-card:not(.primary) { transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
a.request-card:not(.primary):hover { background: var(--lime-tint-2); border-color: var(--ngp-lime); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(85,112,15,.16); }
a.request-card:not(.primary):hover .rc-icon { background: var(--ngp-lime); color: var(--on-accent); }
a.request-card:not(.primary):hover .rc-sub { color: var(--lime-ink); }
.request-card.featured .rc-icon { background: var(--ngp-lime); color: var(--on-accent); }
/* Agent, office manager and assistant views: no black buttons or tabs — the brand lime is the one action color. */
.role-agent .btn-dark, .role-office_manager .btn-dark, .role-delegate .btn-dark { background: var(--ngp-lime); color: var(--on-accent); }
.role-agent .btn-dark:hover, .role-office_manager .btn-dark:hover, .role-delegate .btn-dark:hover { background: var(--lime-600); }
.role-agent .section-tab.active, .role-office_manager .section-tab.active, .role-delegate .section-tab.active { background: var(--lime-tint-2); border-color: var(--lime-tint-2); color: var(--lime-ink); }
.role-agent .seg input:checked + label, .role-office_manager .seg input:checked + label, .role-delegate .seg input:checked + label { background: var(--ngp-lime); color: var(--on-accent); }
.role-agent .order-choice a.on, .role-office_manager .order-choice a.on, .role-delegate .order-choice a.on { border-color: var(--ngp-lime) !important; }
.order-choice a:hover { border-color: var(--ngp-lime) !important; background: var(--lime-tint-2) !important; }
.rc-title { font-weight: 700; font-size: 14px; }
.rc-sub { font-size: 12px; color: var(--muted); }
.install-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.install-row:first-child { border-top: none; }
.install-row.rowlink { margin: 0 -12px; padding: 12px; border-radius: 10px; transition: background .12s; }
.install-row.rowlink:hover { background: var(--lime-tint-2); }
.install-row.rowlink:hover + .install-row { border-top-color: transparent; }
/* keep green badges and icons readable on a highlighted row */
.install-row.rowlink:hover .install-icon, .install-row.rowlink:hover .badge-green, tr.rowlink:hover .badge-green { background: #fff; }
.install-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--lime-tint-2); color: var(--lime-ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.success-box { text-align: center; padding: 30px; }
.success-icon { width: 52px; height: 52px; border-radius: 999px; background: var(--lime-tint-2); color: var(--lime-ink); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 24px; }
.login-wrap { max-width: 380px; margin: 30px auto; }
.swatch { width: 44px; height: 34px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 800; text-align: center; line-height: 1.1; padding: 2px; flex-shrink: 0; }
.slotrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.slotrow:last-child { border-bottom: none; }

/* schedule, field work, misc */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-head { font-size: 11px; font-weight: 700; color: var(--ngp-gray); text-transform: uppercase; padding: 4px; }
.cal-day { background: #fff; border: 1px solid var(--line); border-radius: 10px; min-height: 104px; padding: 6px; font-size: 11.5px; overflow: hidden; }
.cal-day.other { background: #fafafb; color: #b0b0b2; }
.cal-day.today { border-color: var(--ngp-lime); box-shadow: inset 0 0 0 1px var(--ngp-lime); }
.cal-day.closed { background: repeating-linear-gradient(45deg, #fafafb, #fafafb 6px, #f1f2f3 6px, #f1f2f3 12px); }
.cal-num { font-weight: 800; margin-bottom: 4px; display: flex; justify-content: space-between; }
.cal-ev { display: block; border-radius: 6px; padding: 3px 5px; margin-bottom: 3px; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-install { background: var(--lime-tint-2); color: var(--lime-ink); } .ev-removal { background: var(--warn-tint); color: var(--warn-ink); } .ev-service { background: var(--info-tint); color: var(--info-ink); } .ev-late { background: var(--danger-tint); color: #8e2a17; }
.job-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; display: block; box-shadow: var(--shadow); }
.job-card .job-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.job-card .job-addr { font-weight: 800; font-size: 15px; }
.perm-table td, .perm-table th { padding: 6px 8px; font-size: 12px; text-align: center; }
.perm-table td:first-child, .perm-table th:first-child { text-align: left; }

/* legacy sign builder pieces (used by the installer swap screen) */
.post2-stage { position: relative; background: linear-gradient(180deg,#F4F5F2 0%,#F4F5F2 92%,#DCE6C4 92%,#DCE6C4 100%); border-radius: 10px; padding: 8px 4px 6px; overflow: hidden; }
.post2 { position: relative; width: 190px; height: 289px; margin: 0 auto; }
.post2-pole { position: absolute; left: 44px; top: 0; width: 14px; height: 289px; background: linear-gradient(90deg,#FFFFFF,#F4F4F5 55%,#DADADC); border: 1.5px solid #9A9B9D; border-radius: 5px 5px 2px 2px; z-index: 1; }
.post2-arm { position: absolute; left: 20px; top: 29px; width: 140px; height: 10px; background: linear-gradient(180deg,#FFFFFF,#F0F0F1); border: 1.5px solid #9A9B9D; border-radius: 2px; z-index: 2; }
.post2-hangcol { position: absolute; left: 66px; top: 39px; width: 84px; display: flex; flex-direction: column; align-items: center; z-index: 1; }
.post2-chainrow { display: flex; justify-content: center; gap: 60px; height: 10px; }
.post2-chainrow div { width: 2px; height: 10px; background: #A7A8AA; }
.slot { border: 1.5px dashed #dadad5; border-radius: 8px; text-align: center; cursor: pointer; background: #fafafb; display: flex; align-items: center; justify-content: center; }
.slot:hover { border-color: var(--ngp-lime); background: var(--lime-tint); }
.sign-filled { position: relative; border-radius: 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; cursor: pointer; box-shadow: 0 3px 8px rgba(0,0,0,.22); padding: 2px 4px; }
.sign-filled-text { color: #fff; font-weight: 800; font-size: 9.5px; text-shadow: 0 1px 2px rgba(0,0,0,.35); line-height: 1.15; }
.sign-remove { position: absolute; top: -8px; right: -8px; width: 19px; height: 19px; border-radius: 999px; background: #fff; border: 1px solid #dadad5; color: var(--danger); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 3; }
.sign-post-bar { width: 6px; background: #dadad5; border-radius: 3px; margin: 4px 0 0; align-self: center; height: 60px; }
.sign-ground { width: 100%; height: 8px; background: var(--lime-tint-2); border-radius: 3px 3px 0 0; margin-top: 4px; }

/* generic modal (used by inventory quick-add and older pickers) */
.modal-backdrop { position: fixed; inset: 0; background: rgba(28,29,26,.42); z-index: 80; }
.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 640px; max-width: calc(100vw - 24px); max-height: min(720px, calc(100vh - 40px)); background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); z-index: 81; display: flex; flex-direction: column; overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 0; }
.modal-title { font-size: 15px; font-weight: 800; color: var(--ink); padding-bottom: 12px; }
.modal-close { width: 28px; height: 28px; border-radius: 999px; border: 1px solid #dcdcd7; color: var(--muted); display: flex; align-items: center; justify-content: center; background: #fff; cursor: pointer; font-size: 15px; }
.modal-search { padding: 14px 22px; border-bottom: 1px solid var(--line-2); }
.modal-grid { flex: 1; overflow-y: auto; padding: 18px 22px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.modal-swatch { width: 100%; height: 96px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.modal-card-name { font-size: 12.5px; font-weight: 700; margin-top: 4px; }
.modal-card-meta { font-size: 11px; color: var(--ngp-gray); }
.modal-select-btn { margin-top: 6px; background: var(--ngp-lime); color: var(--on-accent); border-radius: 8px; padding: 8px; text-align: center; font-size: 12px; font-weight: 700; cursor: pointer; border: none; font-family: inherit; }

/* ---------- Sponsored & preferred vendors (always labelled, never animated) ---------- */
.vp-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 16px 0; box-shadow: var(--shadow); max-width: 760px; }
.vp-label { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.vp-body { display: flex; gap: 14px; align-items: center; }
.vp-img { width: 96px; height: 72px; object-fit: contain; border-radius: 10px; background: #f4f5f6; flex-shrink: 0; }
.vp-text { flex: 1; min-width: 0; }
.vp-headline { font-weight: 800; font-size: 14.5px; }
.vp-copy { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.vp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.vp-card[data-vp] { cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.vp-card[data-vp]:hover, .vp-card[data-vp]:focus-visible { border-color: var(--lime-tint-2, #c9dc8a); box-shadow: 0 4px 16px rgba(0,0,0,.08); outline: none; }
.vp-card[data-vp]:focus-visible { outline: 3px solid var(--lime-600); outline-offset: 2px; }
/* sizes */
.vp-small { padding: 10px 12px; }
.vp-small .vp-img { width: 64px; height: 48px; }
.vp-small .vp-headline { font-size: 13.5px; }
.vp-small .vp-copy { font-size: 12px; }
.vp-large { padding: 18px 20px; }
.vp-large .vp-img { width: 160px; height: 120px; }
.vp-large .vp-headline { font-size: 17px; }
.vp-large .vp-copy { font-size: 14px; }
.vp-xl { padding: 22px 24px; }
.vp-xl .vp-img { width: 240px; height: 170px; }
.vp-xl .vp-headline { font-size: 21px; }
.vp-xl .vp-copy { font-size: 15px; }
/* groups: several ads side by side; a bigger (paid) ad takes more of the row, extra large takes all of it */
.vp-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.vp-row > .vp-card { margin: 0; max-width: none; min-width: 0; }
.vp-row-card > .vp-small { flex: 1 1 220px; }
.vp-row-card > .vp-medium { flex: 1 1 300px; }
.vp-row-card > .vp-large { flex: 2 1 420px; }
.vp-row > .vp-xl { flex: 1 1 100%; }
.vp-row-card > .vp-card:only-child:not(.vp-xl) { max-width: 760px; }
/* banner: a full-width strip */
.vp-row-banner > .vp-card { flex: 1 1 100%; }
.vp-style-banner .vp-body { gap: 18px; }
.vp-style-banner .vp-text { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; }
.vp-style-banner .vp-foot { margin-top: 0; margin-left: auto; }
.vp-style-banner.vp-xl, .vp-style-banner.vp-large { background: linear-gradient(90deg, #fff, #f6f9ee); }
/* side column */
.vp-side-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.vp-rail { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 84px; padding-top: 16px; }
.vp-rail .vp-card { margin: 0; max-width: none; }
.vp-rail .vp-xl, .vp-rail .vp-large { padding: 16px; }
.vp-style-vertical .vp-body { flex-direction: column; align-items: stretch; }
.vp-style-vertical .vp-img { width: 100%; height: 120px; }
.vp-style-vertical.vp-small .vp-img { height: 80px; }
.vp-style-vertical.vp-large .vp-img, .vp-style-vertical.vp-xl .vp-img { height: 170px; }
@media (max-width: 980px) { .vp-side-wrap { grid-template-columns: minmax(0, 1fr); } .vp-rail { position: static; flex-direction: row; flex-wrap: wrap; } .vp-rail .vp-card { flex: 1 1 240px; } }
/* footer bar fixed to the bottom of the screen */
.vp-footer-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: rgba(241,242,243,.97); border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(0,0,0,.08); padding: 8px 48px 8px 16px; }
.vp-footer-bar .vp-row { margin: 0; flex-wrap: nowrap; overflow-x: auto; }
.vp-footer-bar .vp-card { flex: 1 1 0; min-width: 240px; padding: 8px 12px; }
.vp-footer-bar .vp-label { margin-bottom: 4px; }
.vp-footer-bar .vp-img { width: 56px; height: 42px; }
.vp-footer-close { position: absolute; right: 10px; top: 8px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 18px; line-height: 1; cursor: pointer; color: var(--ink-2); }
body.has-vp-footer { padding-bottom: 110px; }
.vp-preview .vp-footer-bar { position: relative; box-shadow: none; border: 1px dashed var(--line); border-radius: 10px; }
/* contact pop-up */
.vp-pop-scrim { position: fixed; inset: 0; background: rgba(20,22,24,.45); z-index: 120; }
.vp-pop { position: fixed; z-index: 121; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 16px; padding: 22px 22px 18px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.vp-pop-close { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.vp-pop-head { display: flex; gap: 14px; align-items: center; padding-right: 30px; }
.vp-pop-img { width: 84px; height: 64px; object-fit: contain; border-radius: 10px; background: #f4f5f6; }
.vp-pop-name { font-weight: 800; font-size: 18px; }
.vp-pop-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.vp-pop-actions .btn { justify-content: center; text-align: center; overflow-wrap: anywhere; }
/* Display settings page */
.po-side .vp-card { max-width: none; }
.po-side .vp-row { margin: 0; }
.vp-fields { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.vp-preview { background: var(--bg, #f1f2f3); border-radius: 12px; padding: 4px 12px; }
.vp-spot-grid { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 20px; align-items: start; }
.vp-map { padding-top: 6px; }
.vp-map-page { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 6px; height: 170px; display: flex; flex-direction: column; gap: 4px; }
.vp-map-bar { height: 10px; border-radius: 3px; background: #dfe1e3; }
.vp-map-body { flex: 1; display: flex; gap: 4px; min-height: 0; }
.vp-map-main { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.vp-map-block { flex: 1; border-radius: 3px; background: #eceeef; }
.vp-map-slot { height: 8px; border-radius: 3px; border: 1px dashed #d4d6d8; }
.vp-map-side { width: 26px; height: auto; }
.vp-map-foot { height: 12px; }
.vp-map-slot.on { background: var(--lime-600); border-color: var(--lime-ink, #5d7a12); }
@media (max-width: 700px) { .vp-spot-grid { grid-template-columns: 1fr; } .vp-map { display: none; } }
.vendor-group { margin-bottom: 18px; }
.vendor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.vendor-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.vendor-card.is-vp, .vendor-profile.is-vp { border-color: var(--lime-tint-2); background: linear-gradient(180deg, #fbfdf4, #fff 60%); }
.vendor-pref { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--lime-ink); margin-bottom: 8px; }
.vendor-row { display: flex; gap: 12px; align-items: flex-start; }
.vendor-logo { width: 52px; height: 52px; border-radius: 12px; object-fit: contain; background: #f4f5f6; flex-shrink: 0; }
.vendor-logo-empty { display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--ngp-gray); }
.vendor-name { font-weight: 800; font-size: 14.5px; }
.vendor-desc { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.vendor-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.econ-box { margin-top: 12px; background: #f6f7f1; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13px; }
.econ-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px 16px; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.email-preview { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; font-size: 13px; }
.pick-vp-head { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 14px 0 6px; }
.pick-item.is-vp { border-style: dashed; }
.pick-vp-note { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f6f7f8; font-size: 12.5px; color: var(--ink-2); }
.pick-vp-note ul { margin: 6px 0 0 18px; padding: 0; }
.ngp-slot-vp { position: absolute; left: 0; bottom: -16px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.pick-fee s { color: var(--muted); font-weight: 500; margin-left: 4px; }
@media (max-width: 600px) { .vp-body { flex-direction: column; align-items: flex-start; } .vp-img { width: 100%; height: 120px; } }

/* ---------- View as agent ---------- */
body.viewing-as { --viewas-h: 46px; }
.viewas-banner { position: sticky; top: 0; z-index: 70; height: var(--viewas-h); display: flex; align-items: center; gap: 12px; padding: 0 16px; background: var(--ink); color: #fff; font-size: 13px; }
.viewas-banner b { color: var(--ngp-lime); }
.viewas-dot { width: 9px; height: 9px; border-radius: 999px; background: var(--ngp-lime); box-shadow: 0 0 0 4px rgba(179,211,55,.25); flex-shrink: 0; }
.viewas-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewas-meta { color: #c9cacc; }
.viewas-banner form { margin: 0; flex-shrink: 0; }
body.viewing-as .sidebar { top: var(--viewas-h); height: calc(100vh - var(--viewas-h)); }
body.viewing-as .topbar { top: var(--viewas-h); }
.um-viewas { font-weight: 700 !important; color: var(--lime-ink) !important; }
.viewas-dialog { border: none; border-radius: 18px; padding: 18px; width: min(520px, calc(100vw - 24px)); box-shadow: var(--shadow-lg); color: var(--ink); }
.viewas-dialog::backdrop { background: rgba(28,29,26,.42); }
.viewas-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.viewas-results { max-height: 50vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.viewas-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-family: inherit; color: var(--ink); }
.viewas-item:hover, .viewas-item:focus-visible { border-color: var(--ngp-lime); background: var(--lime-tint); outline: none; }
.viewas-who { display: flex; flex-direction: column; min-width: 0; }
.viewas-who .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Order builder (place-order screens) ---------- */
.seg { display: inline-flex; border: 1px solid #dcdcd7; border-radius: 11px; overflow: hidden; background: #fff; flex-wrap: wrap; }
.seg label { padding: 9px 18px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg input { display: none; }
.seg input:checked + label { background: var(--ink); color: #fff; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.flabel-sm { font-size: 11px; font-weight: 600; color: var(--ngp-gray); margin-bottom: 4px; display: block; }
.input-sm { border: 1px solid #dcdcd7; border-radius: 9px; padding: 8px 10px; font-size: 13px; width: 100%; font-family: inherit; background: #fff; color: var(--ink); }
.input-sm:focus { outline: none; border-color: var(--ngp-lime); box-shadow: 0 0 0 3px var(--lime-tint-2); }

.po-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0 20px; align-items: start; }
.po-main, .po-more { grid-column: 1; min-width: 0; }
.po-side { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 80px; }
.po-addr { display: flex; gap: 8px; }
.po-addr .input { flex: 1; min-width: 0; }
.po-addr .btn { flex-shrink: 0; }
.po-addr-field { position: relative; flex: 1; min-width: 0; }
.po-addr-field .input { width: 100%; }
.po-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 1000; background: #fff; border: 1px solid #dcdcd7; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); overflow: hidden; }
.po-suggest-item { padding: 9px 12px; font-size: 13px; cursor: pointer; border-bottom: 1px solid #F2F2F3; }
.po-suggest-item:hover, .po-suggest-item.on { background: var(--lime-tint-2, #f3f8e6); }
.po-suggest-foot { padding: 6px 12px; font-size: 11px; color: #8a8b8d; background: #fafafb; }
.po-addr-status { font-size: 12px; margin-top: 6px; line-height: 1.4; }
.po-addr-status:empty { display: none; }
.po-addr-status.is-ok { color: #1E7B34; font-weight: 600; }
.po-addr-status.is-bad { color: #B3261E; font-weight: 600; }
.po-addr-status.is-pending { color: #6d6e71; }
.po-map-wrap { margin: 0 0 12px; }
.po-map { height: 250px; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; background: #eef0ea; z-index: 0; }
.po-map-note { margin-top: 6px; }
.po-map-note.err { color: var(--danger); font-weight: 600; }
.po-eyebrow { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.po-build { background: linear-gradient(180deg, #fafbfc 0%, #f1f2f4 100%); }
.po-build-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.po-posts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.po-post-col { text-align: center; flex: 1 1 260px; max-width: 340px; min-width: 0; }
.po-post-label { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--ngp-gray); letter-spacing: .06em; margin-bottom: 4px; }
.po-price-row { display: flex; align-items: center; gap: 14px; }
.po-price-note { margin-top: 8px; }
.po-info { width: 22px; height: 22px; border-radius: 999px; border: 1px solid #dcdcd7; background: #fff; color: var(--ngp-gray); font: italic 800 13px Georgia, serif; cursor: pointer; line-height: 1; }

/* the interactive post — white vinyl post, crossarm, hanging panel & riders */
/* Drawn to scale by layoutPost() in the order screen: it sets every left/top/width/height. */
.ngp-post { position: relative; width: 100%; max-width: 340px; height: 470px; margin: 0 auto; }
.ngp-post > * { position: absolute; }
.ngp-ground { border-radius: 6px; background: linear-gradient(180deg, #d9e6b4, #c7da93); }
.ngp-upright { background: linear-gradient(90deg, #ffffff, #f3f3f3 55%, #d8d8d8); border: 1.5px solid #9fa0a2; border-radius: 2px; z-index: 2; }
.ngp-arm { background: linear-gradient(180deg, #ffffff, #ececec); border: 1.5px solid #9fa0a2; border-radius: 1px; z-index: 3; }
.ngp-hook { background: #8f9092; border-radius: 2px; z-index: 1; min-width: 1.5px; }
.ngp-slot { border: 2px dashed #c3c6ba; border-radius: 4px; background: rgba(255,255,255,.8); color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font-family: inherit; padding: 2px 4px; overflow: visible; z-index: 4; transition: border-color .15s, background .15s, box-shadow .15s; }
.ngp-slot:hover, .ngp-slot:focus-visible { border-color: var(--ngp-lime); background: var(--lime-tint); outline: none; box-shadow: 0 0 0 3px var(--lime-tint-2); }
.ngp-slot-main { flex-direction: column; }
.ngp-slot-plus { width: 22px; height: 22px; border-radius: 999px; background: var(--ngp-lime); color: var(--on-accent); font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ngp-slot-rider .ngp-slot-plus { width: 16px; height: 16px; font-size: 12px; }
.ngp-slot-text { display: flex; flex-direction: column; font-size: 11px; line-height: 1.2; white-space: nowrap; }
.ngp-slot-main .ngp-slot-text { align-items: center; font-size: 12.5px; }
.ngp-slot-text small { font-size: 10px; color: var(--muted); font-weight: 600; }
.ngp-slot.filled { border: none; background: #fff; padding: 0; box-shadow: 0 3px 8px rgba(0,0,0,.2); border-radius: 2px; }
.ngp-slot.filled:hover, .ngp-slot.filled:focus-visible { box-shadow: 0 0 0 3px var(--ngp-lime), 0 3px 8px rgba(0,0,0,.2); }
.ngp-slot-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 2px; }
.ngp-swatch { display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 800; font-size: 11px; line-height: 1.1; padding: 2px; overflow: hidden; }
.ngp-slot-rider .ngp-swatch { font-size: 9.5px; }
.ngp-dim { transform: translateY(-50%); font-size: 10.5px; font-weight: 700; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; white-space: nowrap; z-index: 5; pointer-events: none; }
.ngp-post-caption { font-size: 10.5px; color: var(--muted); text-align: center; margin-top: 4px; }
.pick-size { color: var(--ink); font-weight: 700; }
.ngp-slot-remove { position: absolute; top: -9px; right: -9px; width: 22px; height: 22px; border-radius: 999px; background: #fff; border: 1px solid #dcdcd7; color: var(--danger); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }

/* inventory picker: drawer on desktop, bottom sheet on phones */
.picker-scrim { position: fixed; inset: 0; background: rgba(28,29,26,.42); z-index: 90; animation: fadeIn .15s ease; }
.picker { position: fixed; z-index: 91; background: #fff; display: flex; flex-direction: column; top: 0; right: 0; bottom: 0; width: 460px; max-width: 100vw; box-shadow: var(--shadow-lg); animation: slideIn .2s ease; }
.picker-grab { display: none; }
.picker-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 20px 20px 10px; }
.picker-title { font-size: 17px; font-weight: 800; }
.picker-close { width: 34px; height: 34px; border-radius: 999px; border: 1px solid #dcdcd7; background: #fff; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink-2); flex-shrink: 0; }
.picker-search { margin: 0 20px 10px; display: flex; align-items: center; gap: 8px; background: #f2f3f4; border-radius: 12px; padding: 0 12px; color: var(--muted); border: 1px solid transparent; }
.picker-search:focus-within { border-color: var(--ngp-lime); background: #fff; }
.picker-search input { border: none; background: transparent; outline: none; height: 42px; flex: 1; font-size: 14px; min-width: 0; color: var(--ink); }
.picker-add { padding: 0 20px 8px; }
.picker-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 20px 12px; -webkit-overflow-scrolling: touch; }
.pick-item { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1.5px solid var(--line); border-radius: 14px; margin-bottom: 8px; cursor: pointer; background: #fff; transition: border-color .12s, background .12s; }
.pick-item:hover { border-color: var(--ngp-lime); background: var(--lime-tint); }
.pick-item.selected { border-color: var(--ngp-lime); background: var(--lime-tint); }
.pick-item.disabled { opacity: .55; cursor: not-allowed; }
.pick-item input { position: absolute; opacity: 0; pointer-events: none; }
.pick-thumb { width: 84px; height: 64px; border-radius: 8px; object-fit: contain; background: #f3f4f5; flex-shrink: 0; border: 1px solid var(--line-2); }
.pick-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pick-name { font-weight: 700; font-size: 13.5px; }
.pick-meta { font-size: 11.5px; color: var(--ngp-gray); }
.pick-tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pick-tags .badge { text-transform: none; }
.pick-fee { font-size: 11px; font-weight: 700; color: var(--ink-2); }
.pick-radio { width: 20px; height: 20px; border-radius: 999px; border: 2px solid #c9cbc2; flex-shrink: 0; }
.pick-item.selected .pick-radio { border-color: var(--lime-600); box-shadow: inset 0 0 0 4px #fff; background: var(--lime-600); }
.picker-foot { display: flex; gap: 10px; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.picker-foot .btn { flex: 1; padding: 13px; }
.picker-foot .btn:disabled { opacity: .45; cursor: not-allowed; }
body.picker-open { overflow: hidden; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(30px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes sheetUp { from { transform: translateY(40%); } to { transform: none; } }

/* ---------- Tablet & phone ---------- */
@media (max-width: 1180px) {
  .po-grid { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 980px) {
  .po-grid { grid-template-columns: 1fr; }
  .po-side { grid-column: 1; grid-row: auto; position: static; }
  .po-more { grid-column: 1; }
  .po-form { padding-bottom: 96px; }
  .po-price { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; margin: 0; border-radius: 16px 16px 0 0; border-bottom: none; padding: 12px 16px; box-shadow: 0 -8px 24px rgba(20,22,18,.10); }
  .po-price .po-price-note { display: none; }
  #priceBreakdown { max-height: 40vh; overflow-y: auto; }
}
@media (max-width: 900px) {
  .po-price { bottom: calc(64px + env(safe-area-inset-bottom)); }
}
@media (max-width: 700px) {
  .picker { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 90vh; border-radius: 22px 22px 0 0; animation: sheetUp .22s ease; }
  .picker-grab { display: block; width: 44px; height: 5px; border-radius: 999px; background: #d6d7d2; margin: 10px auto 0; }
  .picker-head { padding: 12px 18px 8px; }
  .picker-search, .picker-add { margin-left: 18px; margin-right: 18px; padding-left: 12px; }
  .picker-add { padding: 0 0 8px; }
  .picker-list { padding: 4px 18px 10px; }
  .po-map { height: 190px; }
  .po-addr { flex-wrap: wrap; }
  .po-addr .btn { width: 100%; }
  .row3 { grid-template-columns: 1.5fr .7fr 1fr; }
  .row4 { grid-template-columns: 1fr 1fr; }
  .row2 { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  .content { padding: 22px 22px 48px; }
  .topbar { padding: 0 18px; }
}
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(86vw, 320px); transform: translateX(-104%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: translateX(0); }
  .sidebar-close { display: block; }
  body.nav-open .nav-scrim { display: block; position: fixed; inset: 0; background: rgba(28,29,26,.4); z-index: 45; }
  .topbar { height: auto; flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
  .topbar-menu { display: inline-flex; }
  body.viewing-as .sidebar { top: 0; height: auto; }
  body.viewing-as { --viewas-h: 52px; }
  .viewas-banner { font-size: 12px; padding: 0 12px; gap: 8px; }
  .viewas-meta { display: none; }
  .topbar-logo { display: block; }
  .topbar-search { order: 3; flex: 1 1 100%; margin: 0; }
  .usermenu { margin-left: auto; }
  .um-name, .usermenu summary > svg { display: none; }
  .content { padding: 16px 14px calc(92px + env(safe-area-inset-bottom)); }
  .pagehead h1 { font-size: 21px; }
  .card { padding: 16px; border-radius: 14px; }
  .bottomnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .bn-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--ngp-gray); padding: 5px 2px; background: none; border: none; font-family: inherit; cursor: pointer; }
  .bn-item svg { width: 22px; height: 22px; }
  .bn-item.active { color: var(--ink); }
  .bn-item.active svg { color: var(--lime-ink); }
  .bn-primary svg { background: var(--ngp-lime); color: var(--on-accent) !important; border-radius: 12px; padding: 5px; width: 34px; height: 34px; margin-top: -8px; box-shadow: 0 4px 12px rgba(157,187,42,.45); }
  .stat-row, .request-row { grid-template-columns: 1fr 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .modal-grid { grid-template-columns: 1fr; }
  .rtable thead { display: none; }
  .rtable, .rtable tbody, .rtable tr, .rtable td { display: block; width: 100%; }
  .rtable tr { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; padding: 6px 12px; background: #fff; }
  .rtable td { border: none; padding: 5px 0; display: flex; justify-content: space-between; gap: 10px; text-align: right !important; }
  .rtable td::before { content: attr(data-label); font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; text-align: left; }
  .cal { grid-template-columns: 1fr; }
  .cal-head { display: none; }
  .cal-day.other { display: none; }
  .cal-day { min-height: 0; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { margin-top: 6px; }
}
@media (max-width: 520px) {
  .request-row { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* Connected business workflows */
.business-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,480px),1fr));gap:16px;align-items:start; }
.business-grid .head-actions { flex-wrap:wrap;margin-bottom:16px; }
.sales-board { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:start; }
.sales-column { min-width:0; }
.sales-card { display:block;padding:14px;border:1px solid #ddd;border-radius:10px;margin-top:10px;color:inherit;text-decoration:none;overflow-wrap:anywhere; }
.sales-card:hover { border-color:#2a2b2d;background:#f8faf2; }
.dispatch-job h2 { font-size:18px; }
@media(max-width:800px) { .sales-board { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:520px) { .sales-board { grid-template-columns:1fr; } }
@media print { .dispatch-controls,.dispatch-actions,.head-actions,.section-tabs,.topbar,.sidebar,.bottomnav { display:none !important; } .dispatch-job { break-inside:avoid; } .business-grid,.sales-board { display:block; } }
/* Routing: map, accessible phase letters, selection and phone itineraries. */
.routing-workspace{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(320px,1fr);gap:18px;align-items:start}
.routing-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.routing-filters label,.routing-planner>label,.routing-planner #routeStock label,.routing-selected label{display:block;font-size:13px;margin-bottom:10px}
.routing-filters .input,.routing-planner .input{display:block;width:100%;margin-top:4px}
#routeMap{height:560px;min-height:300px;border-radius:12px;background:#e8eced;z-index:0}
.routing-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.routing-orders{max-height:650px;overflow:auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px}
.routing-order,.routing-selected{border:1px solid #d3d7d9;border-radius:8px;padding:12px;margin:5px 0;background:#fff}
.routing-order p,.routing-selected p{margin:6px 0}.routing-marker{background:transparent;border:0}.routing-marker span{display:block;border-radius:50%;width:28px;height:28px;text-align:center;line-height:28px;font-size:14px;font-weight:bold;color:#fff;border:2px solid #fff;box-shadow:0 1px 5px #555}
.routing-itinerary{list-style:none;padding:0}.routing-itinerary li{border-bottom:1px solid #ddd;padding:12px 0;break-inside:avoid}
#routeMessage{padding:12px;border-left:4px solid #155a9c;background:#eff5fa;white-space:pre-wrap}
#selectedStops{max-height:500px;overflow:auto}#shareResult{margin:15px 0}#shareResult .btn{margin:6px}
@media(max-width:950px){.routing-workspace{grid-template-columns:1fr}#routeMap{height:420px}.routing-orders{max-height:400px}}
@media print{.routing-no-print,#routeFilters,.routing-toolbar,.routing-orders{display:none!important}.routing-workspace{display:block}.routing-itinerary a{display:none}#routeMap{height:400px}}

/* Compact route lists and touch-friendly editing. */
.routing-orders{display:block}.routing-order,.routing-selected{border:0;border-bottom:1px solid #d3d7d9;border-radius:0;padding:12px 0;background:transparent}
.installer-route-settings{border:0;border-bottom:1px solid #d3d7d9;margin:12px 0;padding:12px 0}.installer-route-settings legend{font-weight:700}.installer-route-settings label{display:block;margin:8px 0}
.generated-route{border-top:2px solid #555;padding:12px 0}.route-error{color:#9b3500;font-weight:600}#generateMessage{font-weight:600;white-space:pre-wrap}#selectedStops .routing-toolbar{align-items:center}#selectedStops [data-position]{width:70px}
@media(max-width:600px){#selectedStops{max-height:none;overflow:visible}.routing-filters{grid-template-columns:1fr 1fr}.routing-planner{min-width:0}.routing-toolbar .btn{min-height:42px}.routing-selected select,.installer-route-settings input{min-height:42px}#routeMap{height:330px}}
/* Route colors, start/end pins and stop times. */
.route-swatch{display:inline-block;width:14px;height:14px;border-radius:4px;margin-right:8px;vertical-align:-1px}
.generated-route{border-top-width:4px}
.routing-stop-number span{font-size:13px}
.stop-time-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px;margin:8px 0}
.stop-time-grid .small{grid-column:1/-1}
.stop-times summary,.routing-planner details summary{cursor:pointer;font-weight:700;margin:10px 0}
#startMessage{margin:4px 0 10px;color:#155a9c;font-weight:600}
#startMessage:empty{display:none}
.quick-assign{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;margin:12px 0;padding:10px;background:#f5f6f7;border-radius:10px}
.quick-assign label{flex:1 1 180px;margin:0}.quick-assign .small{flex-basis:100%;margin:0}
.quick-assign-row{display:block;font-size:12px;margin:6px 0}.quick-assign-row select{min-height:34px}
#endTools[hidden],#endLabel[hidden]{display:none!important}

/* Scheduling & coverage */
.cap-table, .cov-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 12.5px; }
.cap-table th, .cov-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ngp-gray); padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cap-table td { padding: 8px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.cap-day { white-space: nowrap; }
.cap-cell { min-width: 150px; }
.cap-bar { height: 6px; background: #eeeee9; border-radius: 99px; overflow: hidden; margin: 5px 0 3px; }
.cap-bar span { display: block; height: 100%; background: var(--ngp-lime); }
.cap-full { background: #fdf0ee; }
.cap-full .cap-bar span { background: var(--danger); }
.cap-over { color: var(--danger); font-weight: 800; }
.cap-off { color: var(--ngp-gray); font-size: 12px; background: #fafafb; }
.cap-closed { background: repeating-linear-gradient(45deg, #f4f5f6, #f4f5f6 6px, #eeeff1 6px, #eeeff1 12px); }
.cov-table td { padding: 5px 8px; border-bottom: 1px solid var(--line-2); }
.cov-table th:not(:first-child), .cov-cell { text-align: center; width: 54px; }
.cov-cell input { width: 18px; height: 18px; accent-color: var(--lime-ink); cursor: pointer; }
.cov-nowork { background: #f2f3f4; }
.cov-name { background: none; border: none; padding: 0; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; text-align: left; }
.cov-name:hover { color: var(--lime-ink); text-decoration: underline; }
.day-picks { display: flex; gap: 6px; flex-wrap: wrap; }
.day-pick { position: relative; cursor: pointer; }
.day-pick input { position: absolute; opacity: 0; }
.day-pick span { display: inline-block; padding: 7px 11px; border-radius: 9px; border: 1px solid var(--line); font-weight: 700; font-size: 12.5px; background: #fff; color: var(--ngp-gray); }
.day-pick input:checked + span { background: var(--lime-tint-2); border-color: var(--ngp-lime); color: var(--lime-ink); }
.day-pick input:focus-visible + span { outline: 3px solid var(--lime-tint-2); }
/* order form: availability notice */
.sched-note { margin-top: 8px; padding: 12px 14px; border-radius: 10px; border: 1px solid #efd9a6; background: #fdf6e9; font-size: 12.5px; }
.sched-note b { display: block; margin-bottom: 4px; }
.sched-note .sched-opts { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 4px; }
.sched-note.ok { border-color: var(--lime-tint-2); background: var(--lime-tint); }
.limit-row { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 14px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-2); }
.limit-num { display: flex; align-items: center; gap: 10px; }
.limit-num .input { width: 90px; }
@media (max-width: 640px) { .limit-row { grid-template-columns: 1fr; } }
.mode-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.mode-pick { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; }
.mode-pick:hover { border-color: var(--ngp-lime); background: var(--lime-tint); }
.mode-pick:has(input:checked) { border-color: var(--ngp-lime); background: var(--lime-tint-2); }
.mode-pick input { margin-top: 3px; accent-color: var(--lime-ink); }
.mode-pick b { display: block; margin-bottom: 2px; }

/* ---------- Top navigation (desktop) ---------- */
.tnav, .topbar-new { display: none; }
@media (min-width: 901px) {
  .sidebar, .nav-scrim { display: none; }
  .main { width: 100%; }
  .topbar { height: 68px; padding: 0 24px; gap: 18px; box-shadow: 0 1px 0 var(--line), 0 6px 20px -18px rgba(0,0,0,.35); border-bottom: none; }
  .topbar-logo { display: block; flex-shrink: 0; }
  .topbar-logo img { height: 38px; }
  .tnav { display: block; flex: 1; min-width: 0; }
  .tnav-list { display: flex; align-items: center; justify-content: center; gap: 2px; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
  .tnav-item { position: relative; }
  .tnav-link { display: inline-flex; align-items: center; gap: 4px; padding: 9px 11px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); background: none; border: none; cursor: pointer; font-family: inherit; text-decoration: none; transition: background .15s, color .15s; }
  .tnav-link:hover, .tnav-item:focus-within > .tnav-link, .tnav-item.has-menu:hover > .tnav-link { background: var(--lime-tint); color: var(--ink); }
  .tnav-item.current > .tnav-link { background: var(--lime-tint-2); color: var(--lime-ink); }
  .tnav-caret { display: inline-flex; opacity: .55; }
  .tnav-caret svg { width: 13px; height: 13px; }
  .tnav-link .navbadge { margin-left: 2px; }
  /* dropdown: opens on hover or keyboard focus; a small bridge keeps it open while the pointer moves down */
  .tnav-menu { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: 10px; min-width: 230px; z-index: 80; }
  .tnav-menu::before { content: ''; position: absolute; inset: 10px 0 0 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: -1; }
  .tnav-item.has-menu:hover > .tnav-menu, .tnav-item.has-menu:focus-within > .tnav-menu { display: block; }
  .tnav-menu > a, .tnav-menu-title { display: block; margin: 0 6px; padding: 9px 12px; border-radius: 9px; font-size: 13.5px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
  .tnav-menu-title { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 12px 12px 6px; }
  .tnav-menu > a:last-child { margin-bottom: 6px; }
  .tnav-menu > a:hover { background: var(--lime-tint-2); color: var(--ink); }
  .tnav-menu > a.active { color: var(--lime-ink); font-weight: 700; }
  /* "More": sections that don't fit, each with its pages listed under it */
  .tnav-more .tnav-menu { left: auto; right: 0; transform: none; max-height: 75vh; overflow-y: auto; }
  .tnav-more-menu .tnav-item { display: block; margin: 0 6px; }
  .tnav-more-menu .tnav-link { display: flex; width: 100%; border-radius: 9px; font-weight: 700; }
  .tnav-more-menu .tnav-caret { display: none; }
  .tnav-more-menu .tnav-menu { display: block !important; position: static; transform: none; padding: 0 0 6px 10px; min-width: 0; }
  .tnav-more-menu .tnav-menu::before, .tnav-more-menu .tnav-menu-title { display: none; }
  .tnav-more-menu .tnav-menu > a { margin: 0; padding: 6px 10px; font-size: 13px; }
  .topbar-new { display: inline-flex; flex-shrink: 0; gap: 6px; }
  .topbar-new svg { width: 16px; height: 16px; }
  /* search: a compact icon that opens over the bar when clicked, so the sections keep the room */
  .topbar { position: sticky; }
  .topbar-search { flex: 0 0 40px; height: 40px; margin-left: 0; padding: 0 11px; cursor: pointer; position: relative; }
  .topbar-search input { width: 0; padding: 0; }
  .topbar-search input::placeholder { color: transparent; }
  .topbar-search:focus-within { position: absolute; right: 74px; top: 14px; width: min(420px, 50vw); z-index: 90; box-shadow: var(--shadow-lg); cursor: text; }
  .topbar-search:focus-within input { width: auto; flex: 1; }
  .topbar-search:focus-within input::placeholder { color: var(--muted); }
  .usermenu .um-name { display: none; }
  .content { margin: 0 auto; padding-top: 28px; }
  body.viewing-as .topbar { top: var(--viewas-h); }
}

/* ---------- Agent home: big action tiles + at a glance ---------- */
.action-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 6px 0 26px; }
.action-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; min-height: 196px; padding: 24px 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s; }
.action-tile:hover { background: var(--lime-tint-2); border-color: var(--ngp-lime); transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(85,112,15,.45); }
.action-icon { width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: var(--ngp-lime); color: var(--on-accent); margin-bottom: 6px; transition: transform .15s; }
.action-tile:hover .action-icon { transform: scale(1.06); }
.action-title { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.action-sub { font-size: 12.5px; color: var(--ngp-gray); }
.action-tile:hover .action-sub { color: var(--lime-ink); }
.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; align-items: start; }
.glance-col { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.glance-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.glance-head h2 { font-size: 15px; font-weight: 800; margin: 0; }
.glance-num { font-size: 30px; font-weight: 800; margin: 4px 0 10px; color: var(--ink); }
.glance-num.due { color: var(--danger); }
.glance-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line-2); min-width: 0; color: inherit; text-decoration: none; }
.glance-link { border-radius: 10px; padding: 8px; margin: 0 -8px; border-top-color: transparent; }
.glance-link:hover { background: var(--lime-tint-2); }
.glance-addr { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
@media (max-width: 980px) { .glance { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .action-tiles { grid-template-columns: 1fr 1fr; gap: 10px; } .action-tile { min-height: 140px; padding: 16px 10px; border-radius: 16px; } .action-icon { width: 48px; height: 48px; } .action-title { font-size: 15px; } .action-sub { display: none; } }

/* ---------- Row action buttons ---------- */
.act-row { display: flex; gap: 4px; flex-shrink: 0; align-items: center; }
.act-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; min-width: 32px; padding: 0 8px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.act-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.act-btn span { display: none; }
.act-btn:hover { background: var(--lime-tint-2); border-color: var(--ngp-lime); color: var(--lime-ink); }
.act-btn { position: relative; }
.act-btn[data-tip]:hover::after, .act-btn[data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 5px 9px; border-radius: 7px; font-size: 11.5px; font-weight: 700; white-space: nowrap; pointer-events: none; z-index: 20; }
.act-danger:hover { background: #fdf0ee; border-color: #f0c4b4; color: var(--danger); }
.act-wide .act-btn span { display: inline; }
td .act-row { justify-content: flex-end; }
.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 14px; max-height: 260px; overflow-y: auto; padding: 8px 0; }

/* ---------- Coupons ---------- */
.coupon-box { display: flex; gap: 6px; margin-top: 12px; }
.coupon-box .input { text-transform: uppercase; font-family: monospace; padding: 8px 10px; }
.coupon-ok { color: var(--lime-ink); font-weight: 700; margin-top: 4px; }
.coupon-bad { color: var(--danger); font-weight: 600; margin-top: 4px; }
.promo-banner { display: flex; align-items: center; gap: 16px; padding: 16px 20px; margin-bottom: 18px; border-radius: 18px; background: linear-gradient(110deg, var(--lime-tint-2), #fff 70%); border: 1px solid var(--ngp-lime); }
.promo-tag { width: 74px; height: 74px; border-radius: 18px; background: var(--ngp-lime); color: var(--on-accent); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; flex-shrink: 0; line-height: 1; }
.promo-tag span { font-size: 11px; font-weight: 700; text-transform: uppercase; margin-top: 3px; }
.promo-text { flex: 1; min-width: 0; }
.promo-text b { font-size: 15px; }
.promo-code { margin-top: 6px; font-size: 12.5px; }
.promo-code b { font-family: monospace; font-size: 14px; background: #fff; border: 1px dashed var(--lime-ink); border-radius: 7px; padding: 2px 8px; }
@media (max-width: 600px) { .promo-banner { flex-wrap: wrap; } .promo-banner .btn { width: 100%; justify-content: center; } }
.dir-card { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ---------- QR flyers & riders ---------- */
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-bottom: 14px; }
.qr-grid > .card { margin: 0; }
.qr-card { display: flex; gap: 14px; align-items: flex-start; }
.qr-img { width: 112px; flex-shrink: 0; background: #fff; border: 1px solid var(--line-2, #e6e6e8); border-radius: 10px; padding: 4px; }
.qr-img svg { display: block; width: 100%; height: auto; }
.qr-info { flex: 1; min-width: 0; }
.qr-stats { display: flex; gap: 14px; margin-top: 6px; font-size: 13px; }
.qr-stats b { font-size: 16px; }
.qr-move { display: flex; gap: 6px; margin-top: 8px; }
.qr-move select { flex: 1; min-width: 0; }
.qr-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 8px 0; }
.qr-photo { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-2, #e6e6e8); background: #f6f6f7; }
.qr-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.qr-photo span { display: flex; gap: 4px; align-items: center; font-size: 11px; padding: 4px 6px; }
.qr-order-card .pick-list .chk-row { align-items: flex-start; }
@media (max-width: 520px) { .qr-card { flex-direction: column; } .qr-img { width: 140px; } }

/* ---------- Live preview: product styles (lib/postPreview.js) — same flat look as the post ---------- */
.ngp-scene { left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; }
.ngp-scene > i { position: absolute; display: block; z-index: 1; }
.ngp-grass { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 10'%3E%3Cpath d='M1 10 2.2 3 3.2 10ZM5 10l2-6.5L7.6 10ZM9.5 10 10.2 1.5 11.4 10ZM14 10l-.8-6 2.3 6ZM17.5 10 19 4l.2 6ZM21 10l.6-7.5L22.8 10Z' fill='%23b2c97a'/%3E%3Cpath d='M3.2 10 4.4 5l.3 5ZM12 10l1.6-5.5.1 5.5ZM19.6 10 21 6.2l-.2 3.8Z' fill='%239fbb62'/%3E%3C/svg%3E") repeat-x left bottom / auto 100%; z-index: 1; }
.ngp-base { background: linear-gradient(180deg, #f1f1ef, #cfcfcb); border: 1.5px solid #9fa0a2; border-radius: 50% 50% 3px 3px / 85% 85% 3px 3px; z-index: 3 !important; }
.ngp-style-freestanding .ngp-ground, .ngp-concrete { background: linear-gradient(180deg, #e7e7e3, #d3d3ce); border-radius: 6px; }
.ngp-white { background: linear-gradient(90deg, #ffffff, #f3f3f3 55%, #d8d8d8); border: 1.5px solid #9fa0a2; border-radius: 2px; }
.ngp-white.ngp-bar { background: linear-gradient(180deg, #ffffff, #ececec); z-index: 1; }
.ngp-iron { background: #5b5c5e; border-radius: 1px; }
.ngp-arm-iron { background: #3d3e40; border-radius: 1px 3px 3px 1px; }
.ngp-scroll { border: 1.5px solid #3d3e40; border-radius: 50%; }
.ngp-finial { background: #3d3e40; border-radius: 50%; }
.ngp-wood2x4 { background: linear-gradient(90deg, #5a5b5d, #333436 60%, #2a2b2d); border: 1.5px solid #222325; border-radius: 1px; }
.ngp-balcony { background: linear-gradient(180deg, #f5f6f7, #dcdcd7); border: 1.5px solid #9fa0a2; border-radius: 2px; }
.ngp-chain { background: repeating-linear-gradient(180deg, #8f9092 0 4px, transparent 4px 6px); border-radius: 2px; min-width: 2px; }
.ngp-shook { background: #8f9092; border-radius: 2px; min-width: 1.5px; }
.ngp-brick { background: linear-gradient(180deg, #f1e3da, #e5d0c3); border: 1.5px solid #c9ab9a; border-radius: 2px; }
.ngp-pillar { border-radius: 3px 3px 2px 2px; }
.ngp-tie { background: #2f3032; border-radius: 1px; z-index: 6 !important; }
/* The order form's "Add new inventory item" window opens from the panel picker, so it sits above it. */
#quickAddModalRoot .modal-backdrop { z-index: 95; }
#quickAddModalRoot .modal { z-index: 96; }

/* Installation type dropdown + "see all" (order form) */
.itype-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.itype-dd { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.itype-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; text-align: left; }
.itype-btn:hover, .itype-btn[aria-expanded="true"] { border-color: var(--ngp-lime); background: var(--lime-tint); }
.itype-btn-name { flex: 1; }
.itype-caret { color: var(--muted); flex-shrink: 0; }
.itype-ico { width: 40px; height: 40px; flex-shrink: 0; border-radius: 8px; background: #f6f7f8; border: 1px solid var(--line-2, #ebecee); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.itype-ico svg { width: 36px; height: 36px; }
.itype-menu { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; width: min(560px, calc(100vw - 32px)); display: grid; grid-template-columns: 1fr 210px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.itype-menu[hidden] { display: none; }
.itype-list { max-height: 360px; overflow: auto; padding: 6px; }
.itype-opt { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 13px; }
.itype-opt:hover, .itype-opt:focus-visible { background: var(--lime-tint); outline: none; }
.itype-opt.selected { background: var(--lime-tint); box-shadow: inset 0 0 0 1.5px var(--ngp-lime); }
.itype-peek { border-left: 1px solid var(--line-2, #ebecee); background: #f6f7f8; padding: 12px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.itype-peek-art { width: 100%; height: 220px; display: flex; align-items: center; justify-content: center; }
.itype-peek-art svg { width: 100%; height: 100%; }
.itype-peek-name { font-weight: 800; font-size: 13px; }
@media (max-width: 560px) { .itype-menu { grid-template-columns: 1fr; } .itype-peek { display: none; } }
.itype-all[hidden] { display: none; }
.itype-all-modal { width: 860px; }
.itype-all-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; padding: 16px 20px 20px; overflow: auto; }
.itype-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; text-align: center; transition: border-color .15s, background .15s; }
.itype-card:hover, .itype-card:focus-visible { border-color: var(--ngp-lime); background: var(--lime-tint); outline: none; }
.itype-card.selected { border-color: var(--ngp-lime); box-shadow: 0 0 0 3px var(--lime-tint-2); }
.itype-card-art { width: 100%; height: 190px; display: flex; align-items: center; justify-content: center; background: #f6f7f8; border-radius: 10px; }
.itype-card-art svg { width: 100%; height: 100%; }
.ngp-drawing { background: var(--pv-img) center / 100% 100% no-repeat; }
/* Product edit: click where the sign hangs on the uploaded drawing */
.pv-placer { position: relative; display: inline-block; max-width: 260px; cursor: crosshair; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.pv-placer img { display: block; width: 100%; height: auto; }
.pv-mark { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--ngp-lime); border: 2px solid #fff; box-shadow: 0 0 0 1.5px #3d3e40; pointer-events: none; }

/* Admin › Branding & theme */
.brand-logo-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.brand-logo-box { width: 240px; height: 72px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 8px; }
.brand-logo-box img { max-width: 100%; max-height: 100%; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 12px; }
.theme-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.theme-card input { position: absolute; opacity: 0; pointer-events: none; }
.theme-card:has(input:checked) { border-color: var(--ngp-lime); box-shadow: 0 0 0 3px var(--lime-tint-2); }
.theme-card:hover { border-color: var(--ngp-lime); }
.theme-swatches { display: flex; gap: 4px; }
.theme-swatches i { width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgba(0,0,0,.12); }
.theme-name { font-weight: 700; font-size: 13px; }
.theme-custom { display: none; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.brand-form:has(input[name=theme][value=custom]:checked) .theme-custom { display: flex; }
.theme-custom input[type=color] { width: 64px; height: 40px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

/* Live preview: billboards (lib/postPreview.js) */
.ngp-wood { background: linear-gradient(90deg, #f3dfc8, #e4c19e 60%, #d6ae86); border: 1.5px solid #b98a5e; border-radius: 1px; }
.ngp-dim.ngp-dim-below { transform: translate(-50%, 0); font-size: 12px; padding: 3px 12px; }
.ngp-nodims .ngp-dim { display: none !important; }
.ngp-scene > i.ngp-sideb { z-index: 3; border: 2px dashed #c3c6ba; border-radius: 4px; background: rgba(255,255,255,.75); overflow: visible; }
.ngp-scene > i.ngp-sideb.filled { border: none; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.18); }
.ngp-sideb .ngp-slot-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 2px; }
.ngp-sideb-back { opacity: .6; }
.ngp-sideb-tag { position: absolute; top: -9px; right: 8px; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; background: #fff; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; font-style: normal; }

/* "Change the order" panels (Products & Pricing) */
.arrange { margin: 4px 0 10px; }
.arrange > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--ink-2); padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; list-style: none; }
.arrange > summary::-webkit-details-marker { display: none; }
.arrange > summary:hover, .arrange[open] > summary { border-color: var(--ngp-lime); background: var(--lime-tint); }
.arrange form { margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fafafb; max-width: 560px; }
.arrange-tools { display: flex; gap: 6px; margin-bottom: 8px; }
.arrange-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; counter-reset: arr; }
.arrange-list li { counter-increment: arr; display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; cursor: grab; }
.arrange-list li::before { content: counter(arr); width: 20px; text-align: right; font-size: 11px; font-weight: 800; color: var(--muted); }
.arrange-list li.dragging { opacity: .5; border-style: dashed; }
.arrange-list li:hover { border-color: var(--ngp-lime); }
.arrange-grip { color: var(--muted); letter-spacing: -2px; font-weight: 800; }
.arrange-label { flex: 1; font-weight: 600; font-size: 13px; }
.arrange-btn { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 800; color: var(--ink-2); }
.arrange-btn:hover, .arrange-btn:focus-visible { border-color: var(--ngp-lime); background: var(--lime-tint); outline: none; }

/* Install order form: quantity beside the installation type, inline calendar, notes, sign spot */
.po-type-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0; }
.po-type-sec { min-width: 0; }
.po-qty-sec { border-left: 1px solid var(--line); padding-left: 20px; margin-left: 20px; }
.po-qty .seg { margin: 0; }
.itype-row { align-items: flex-end; }
.itype-seeall { font: inherit; font-size: 12px; font-weight: 700; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer; white-space: nowrap; }
.itype-seeall:hover { border-color: var(--ngp-lime); background: var(--lime-tint); }
@media (max-width: 760px) { .po-type-card { grid-template-columns: 1fr; } .po-qty-sec { border-left: 0; padding-left: 0; margin-left: 0; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; } }
.ngp-cal-inline { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px 10px; max-width: 252px; margin-top: 4px; }
.ngp-cal-inline [data-date], .ngp-cal-inline button[disabled] { font-size: 11.5px !important; }
.ngp-cal-picked { font-weight: 800; font-size: 13px; color: var(--ink); margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line-2); }
.po-more .grid2 { align-items: start; }
.po-notes-card textarea { resize: vertical; overflow: hidden; min-height: 96px; }
.po-spot-note { margin: -2px 0 10px; padding: 8px 10px; border-radius: 10px; background: var(--info-tint); color: var(--info-ink); }
.po-spot-pick { display: flex; align-items: center; gap: 12px; padding: 16px; border: 2px dashed var(--line); border-radius: 12px; cursor: pointer; color: var(--ink-2); background: #fafafb; }
.po-spot-pick:hover { border-color: var(--ngp-lime); background: var(--lime-tint); }
.po-spot-pick svg { flex-shrink: 0; color: var(--lime-ink); }
.po-spot-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.po-spot-choices[hidden] { display: none; }
button.po-spot-pick { font: inherit; text-align: left; width: 100%; }
.po-spot-credit { margin-top: 4px; color: var(--muted); }
@media (max-width: 700px) { .po-spot-choices { grid-template-columns: 1fr; } }
.sv-modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sv-modal[hidden] { display: none; }
.sv-scrim { position: absolute; inset: 0; background: rgba(20,22,24,.5); }
.sv-box { position: relative; background: #fff; border-radius: 16px; width: min(900px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; gap: 10px; padding: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.sv-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.sv-x { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 20px; line-height: 1; cursor: pointer; flex-shrink: 0; }
.sv-pano { width: 100%; aspect-ratio: 16 / 10; max-height: 62vh; background: #e9eaec; border-radius: 10px; }
.sv-foot { display: flex; justify-content: flex-end; gap: 8px; }
.po-spot-photo { position: relative; display: block; max-width: 520px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); cursor: crosshair; line-height: 0; }
.po-spot-photo[hidden] { display: none; }
.po-spot-photo img { width: 100%; height: auto; display: block; }
.sign-spot-card .po-spot-photo { cursor: zoom-in; }
/* The sign spot pin on the house photo: the NOLA GeauxPost logo pin, its tip on the spot. */
.po-spot-pin { position: absolute; width: 34px; height: 51px; margin: -51px 0 0 -17px; background: url(/brand/ngp-pin.png) center bottom / contain no-repeat; filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 2px 4px rgba(0,0,0,.55)); pointer-events: none; }
.po-spot-pin[hidden] { display: none; }
.po-spot-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.po-spot-actions[hidden] { display: none; }
.po-spot-pick[hidden] { display: none; }
/* Sign spot: drawing on the house photo */
.po-spot-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.po-spot-tools[hidden] { display: none; }
.po-spot-mode { margin: 0; }
.po-spot-draw { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.po-spot-photo.drawing { cursor: crosshair; touch-action: none; -webkit-user-select: none; user-select: none; }
.po-spot-photo img { -webkit-user-drag: none; user-select: none; }

.po-spot-colors { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.po-spot-swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; padding: 0; position: relative; overflow: hidden; }
.po-spot-swatch.on { box-shadow: 0 0 0 2.5px var(--ink); }
.po-spot-custom { background: conic-gradient(#ff3b30, #ffd400, #00c853, #2f80ff, #b14cff, #ff3b30); display: inline-block; }
.po-spot-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }

/* QR analytics (agent QR page + listing page editor) */
.qa-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 8px 0 14px; }
.qa-tile { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.qa-num { font-size: 24px; font-weight: 800; line-height: 1.1; color: var(--ink); }
.qa-lbl { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.qa-all { font-size: 11px; color: var(--muted); }
.qa-chart-title { font-size: 12px; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }
.qa-chart { width: 100%; max-width: 720px; height: auto; display: block; }
.qa-chart text { font-size: 10px; fill: var(--muted); font-family: inherit; }
.qa-grid { stroke: var(--line-2); stroke-width: 1; }
.qa-base { stroke: var(--line); stroke-width: 1; }
.qa-bar path { fill: var(--ngp-lime); }
.qa-bar .qa-hit { fill: transparent; }
.qa-bar:hover .qa-hit { fill: var(--lime-tint); }
.qa-bar:hover path { fill: var(--lime-600); }
.qa-table summary { cursor: pointer; font-size: 12px; font-weight: 700; color: var(--ink-2); margin-top: 6px; }
.qa-table table { font-size: 12px; margin-top: 6px; }
@media (max-width: 600px) { .qa-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* QR listing page editor: fill in automatically (listing link / MLS) */
.qr-import-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qr-import-box { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qr-import-input { display: flex; gap: 8px; }
.qr-import-input .input { flex: 1; min-width: 0; }
#importMsg { margin-top: 8px; font-weight: 600; }
@media (max-width: 760px) { .qr-import-row { grid-template-columns: 1fr; } }
.mls-steps { margin: 6px 0 10px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.vp-preview .vp-rail { position: static; max-width: 280px; margin-left: auto; }
.vp-side-main { min-width: 0; }
/* phones: the footer ad sits just above the bottom menu, one ad at a time (swipe for more);
   on the order form the price bar owns the bottom, so the ad stays in the page instead */
@media (max-width: 980px) {
  .vp-footer-bar { bottom: calc(62px + env(safe-area-inset-bottom)); padding: 6px 44px 6px 10px; }
  .vp-footer-bar .vp-card { flex: 0 0 86%; min-width: 0; }
  .vp-footer-bar .vp-copy, .vp-footer-bar .vp-foot .small { display: none; }
  body.has-vp-footer { padding-bottom: 170px; }
  body:has(.po-price) .vp-footer-bar { position: relative; bottom: auto; margin: 0 0 12px; border-radius: 12px; border: 1px solid var(--line); box-shadow: none; }
  body.has-vp-footer:has(.po-price) { padding-bottom: 0; }
}
/* To Do: row Actions menu, bulk bar, approve-all */
.row-quick { display: inline-flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; margin: 0; }
.row-quick-sel.input { padding: 5px 6px; font-size: 12px; width: 112px; min-width: 0; }
.row-quick-date { display: inline-flex; gap: 4px; align-items: center; }
.row-quick-date[hidden] { display: none; }
.row-quick-date .input { padding: 4px 6px; font-size: 12px; }
.bulk-bar { position: sticky; top: 76px; z-index: 30; padding: 10px 16px; margin-bottom: 12px; background: var(--lime-tint); border-color: var(--lime-tint-2); }
.bulk-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.bulk-form .input { padding: 6px 10px; font-size: 12.5px; min-width: 150px; width: auto; }
.bulk-form [hidden] { display: none; }
.review-approve-all { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-color: #EFD9A6; background: #FDF6E9; }

/* ---------- NOLA GeauxPost Academy ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.academy { max-width: 1100px; }
.academy a:focus-visible, .academy button:focus-visible, .academy select:focus-visible, .academy input:focus-visible { outline: 3px solid var(--lime-600); outline-offset: 2px; }
.ac-rolebar { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 8px 14px; margin-bottom: 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.ac-rolebar.is-preview { background: var(--warn-tint); border-color: #EFD9A6; color: var(--warn-ink); }
.ac-rolebar-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ac-preview label { display: flex; align-items: center; gap: 6px; }
.ac-preview .input { padding: 5px 8px; font-size: 12.5px; width: auto; }
.ac-hero { background: linear-gradient(135deg, var(--lime-tint), var(--surface) 70%); border: 1px solid var(--lime-tint-2); border-radius: var(--radius); padding: 22px 22px 18px; margin-bottom: 22px; display: grid; gap: 14px; }
.ac-hero h1 { margin: 0 0 4px; font-size: 28px; }
.ac-hero p { margin: 0; color: var(--ink-2); max-width: 720px; }
.ac-search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 12px; margin-bottom: 14px; }
.ac-search svg { color: var(--muted); flex-shrink: 0; }
.ac-search .input { border: none; box-shadow: none; padding: 8px 4px; flex: 1; min-width: 0; background: transparent; }
.ac-search-big { margin: 0; padding: 8px 8px 8px 14px; box-shadow: var(--shadow); }
.ac-search-big .input { font-size: 16px; }
.ac-glossary-link { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); width: fit-content; }
.ac-glossary-link span { color: var(--muted); font-size: 13px; }
.ac-glossary-link:hover { border-color: var(--lime-600); }
.ac-h2 { font-size: 18px; margin: 22px 0 10px; }
.ac-start { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ac-start a { display: flex; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); text-decoration: none; color: var(--ink); height: 100%; box-sizing: border-box; }
.ac-start a:hover { border-color: var(--lime-600); box-shadow: var(--shadow); }
.ac-start a > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.ac-start-n { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--lime-600); color: var(--on-accent, #1d2410); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ac-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.ac-topic { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); text-decoration: none; color: var(--ink); }
.ac-topic:hover { border-color: var(--lime-600); box-shadow: var(--shadow); }
.ac-count { margin-top: auto; padding-top: 6px; font-size: 12px; font-weight: 700; color: var(--lime-ink); }
.ac-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; padding: 12px 16px; }
.ac-f { display: flex; flex-direction: column; min-width: 150px; flex: 1 1 150px; }
.ac-f-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ac-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.ac-chips .chip { text-decoration: none; }
.ac-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ac-item { padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.ac-item-title { font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; }
.ac-item-title:hover { text-decoration: underline; }
.ac-item-sum { color: var(--ink-2); font-size: 13.5px; margin: 3px 0 6px; }
.ac-item-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ac-list-compact .ac-item { padding: 10px 12px; }
.ac-empty { text-align: center; display: grid; gap: 8px; justify-items: center; padding: 24px; }
.ac-terms-hit { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13.5px; }
.ac-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.ac-crumbs li + li::before { content: '›'; margin-right: 6px; }
.ac-crumbs a { color: var(--ink-2); }
.ac-article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.ac-art-head h1 { margin: 0 0 6px; font-size: 26px; }
.ac-lead { font-size: 15.5px; color: var(--ink-2); margin: 0 0 10px; }
.ac-art-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; margin-top: 18px; }
.ac-art-grid > .ac-body:only-child { grid-column: 1 / -1; max-width: 760px; }
.ac-toc { position: sticky; top: 84px; align-self: start; font-size: 13px; border-left: 3px solid var(--lime-tint-2); padding-left: 12px; }
.ac-toc-title { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.ac-toc ol { margin: 0; padding-left: 16px; display: grid; gap: 6px; }
.ac-body { font-size: 15px; line-height: 1.6; color: var(--ink); max-width: 760px; }
.ac-body h2 { font-size: 19px; margin: 26px 0 8px; scroll-margin-top: 90px; }
.ac-body h3 { font-size: 16px; margin: 18px 0 6px; scroll-margin-top: 90px; }
.ac-body ol.ac-steps { padding-left: 22px; }
.ac-body ol.ac-steps > li { margin-bottom: 8px; padding-left: 4px; }
.ac-body ul { padding-left: 20px; }
.ac-body li { margin-bottom: 4px; }
.ac-body code { background: #f1f2f3; padding: 1px 5px; border-radius: 4px; font-size: .92em; }
.ac-body .ac-code { background: #f4f5f6; padding: 12px; border-radius: 8px; overflow-x: auto; }
.ac-body .ac-term { text-decoration: underline dotted; text-underline-offset: 3px; }
.ac-callout { border-left: 4px solid var(--info-ink, #33587A); background: var(--info-tint, #EEF4FA); padding: 10px 14px; border-radius: 0 8px 8px 0; margin: 12px 0; }
.ac-callout p { margin: 4px 0; }
.ac-callout-tip { border-color: var(--lime-600); background: var(--lime-tint); }
.ac-callout-important, .ac-callout-warning { border-color: #B7791F; background: var(--warn-tint); }
.ac-table { overflow-x: auto; margin: 12px 0; }
.ac-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ac-table th, .ac-table td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.ac-figure { margin: 14px 0; }
.ac-figure img, .ac-figure video { max-width: 100%; border: 1px solid var(--line); border-radius: 8px; }
.ac-figure figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; }
.ac-related { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 14px; }
.ac-related h2 { font-size: 16px; margin: 0 0 10px; }
.ac-art-foot { margin-top: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.ac-az { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 14px; position: sticky; top: 64px; background: var(--bg); padding: 6px 0; z-index: 5; }
.ac-az a, .ac-az span { min-width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; font-weight: 700; font-size: 13px; }
.ac-az a { background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.ac-az a:hover { border-color: var(--lime-600); }
.ac-az span { color: #c3c4c6; }
.ac-letter h2 { font-size: 20px; margin: 18px 0 6px; border-bottom: 2px solid var(--lime-tint-2); scroll-margin-top: 110px; }
.ac-gloss { margin: 0; display: grid; gap: 4px; }
.ac-gloss > div { padding: 8px 0; border-bottom: 1px solid var(--line-2, #eee); }
.ac-gloss dt a { font-weight: 700; }
.ac-gloss dd { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
@media (max-width: 860px) {
  .ac-art-grid { grid-template-columns: 1fr; gap: 12px; }
  .ac-toc { position: static; border-left: none; padding: 10px 12px; background: var(--bg); border-radius: 8px; }
  .ac-article { padding: 16px; }
  .ac-hero { padding: 16px; }
  .ac-hero h1 { font-size: 23px; }
  .ac-search .btn { padding: 8px 12px; }
  .ac-az { top: 56px; }
}
.ac-body a:not(.chip):not(.btn):not(.ac-item-title) { color: var(--lime-ink); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
/* Users › + Add */
.add-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.add-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); text-decoration: none; }
.add-card b { font-size: 15px; color: var(--lime-ink); }
.add-card:hover, .add-card:focus-visible { border-color: var(--lime-600); box-shadow: var(--shadow); }

/* ---- Lists: one search bar + Columns, and a filter under every column header (ui.js listTable,
   client.js enhanceTable). ---- */
.listbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 12px; }
.listbar-search { display: flex; gap: 8px; flex: 1 1 320px; margin: 0; }
.listbar-search .input { flex: 1; padding: 8px 12px; }
.listbar-tools { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.listbar-tools details { position: relative; }
.listbar-tools summary, .colspicker > summary { cursor: pointer; list-style: none; font-size: 12.5px; font-weight: 700; color: var(--ngp-gray, #58595B); padding: 6px 2px; }
.listbar-tools summary::-webkit-details-marker, .colspicker > summary::-webkit-details-marker { display: none; }
.listbar-panel, .colspicker-panel { position: absolute; top: 100%; right: 0; z-index: 500; background: #fff; border: 1px solid #DEDEE0; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.14); padding: 12px; min-width: 220px; margin-top: 4px; max-height: 360px; overflow-y: auto; }
.listbar-panel { min-width: 280px; }
.colspicker { position: relative; display: inline-block; }
.colspicker-panel label { display: flex; align-items: center; gap: 7px; padding: 4px 2px; cursor: pointer; white-space: nowrap; font-size: 12.5px; font-weight: 400; color: #2E2F31; }
.table-tools { display: flex; justify-content: flex-end; gap: 14px; margin-bottom: 6px; }
.cf-status { margin: 0 0 8px; }
.cf-sort { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; white-space: nowrap; }
.cf-sort:hover { text-decoration: underline; }
.colfilter-row th { padding: 2px 8px 8px; font-weight: 400; text-transform: none; letter-spacing: normal; }
.colfilter-trigger { border: 1px solid #DEDEE0; background: #fff; cursor: pointer; padding: 3px 8px; font-size: 11.5px; color: #6d6e71; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 6px; }
.colfilter-trigger.on { background: #EAF1CE; color: #2E2F31; font-weight: 700; border-color: #B9C98A; }
.colfilter-trigger .cf-caret { color: #9a9b9e; }
.colfilter-pop { z-index: 900; background: #fff; border: 1px solid #DEDEE0; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 10px; width: 240px; font-size: 12.5px; color: #2E2F31; display: flex; flex-direction: column; gap: 8px; }
.cf-pop-title { font-weight: 700; font-size: 12px; }
.colfilter-pop .input-sm { width: 100%; box-sizing: border-box; }
.cf-list { max-height: 220px; overflow-y: auto; }
.cf-list label { display: flex; align-items: center; gap: 7px; padding: 4px 2px; cursor: pointer; }
.cf-range { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: #6d6e71; }
.cf-row { display: flex; gap: 6px; }
.cf-row .btn { flex: 1; justify-content: center; }
@media (max-width: 760px) {
  /* phones: the column names are hidden (each row is a card), so the column filters show as a
     wrapped row of labelled buttons above the cards */
  .rtable thead { display: block; }
  .rtable thead tr:first-child { display: none; }
  .rtable thead tr.colfilter-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
  .rtable thead tr.colfilter-row th { display: flex; flex-direction: column; gap: 2px; padding: 0; border: 0; }
  .rtable thead tr.colfilter-row th:empty { display: none; }
  .rtable thead tr.colfilter-row th::before { content: attr(data-label); font-size: 10.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
}
.listbar-tools details.on > summary { color: var(--ink, #2E2F31); }
.listbar-panel .form-field { margin-bottom: 8px; }
.listbar-panel .chk-row { display: flex; align-items: center; gap: 7px; padding: 3px 0; font-size: 12.5px; }
.mf-form { display: flex; flex-direction: column; gap: 8px; }
.mf-form .fb-item { min-width: 0; flex: none; }
.mf-form .fb-check { padding: 0; }
/* a long dropdown (e.g. "More") scrolls instead of running off the bottom of the screen; the white
   panel is the menu's own background (not a ::before layer) so it stays behind the items while
   scrolling. The clear 10px top border keeps the hover bridge from the bar to the menu. */
@media (min-width: 761px) {
  .tnav-menu { max-height: calc(100vh - 84px); overflow-y: auto; overscroll-behavior: contain; padding: 0 0 6px; background: #fff padding-box;
    border: 1px solid var(--line); border-top: 10px solid transparent; border-radius: 14px; filter: drop-shadow(0 10px 22px rgba(0,0,0,.13)); }
  .tnav-menu::before { display: none; }
  .tnav-menu .tnav-menu { max-height: none; overflow: visible; padding: 0; background: none; border: 0; border-radius: 0; filter: none; }
}

/* Notifications: bell in the top bar, pop-up reminders bottom-right */
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; color: var(--ink-2, #4a4b4d); text-decoration: none; flex-shrink: 0; }
.bell:hover { background: var(--lime-tint, #f7fbeb); }
.bell-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #B23A1F; color: #fff; font-size: 10.5px; font-weight: 800; line-height: 18px; text-align: center; }
.ngp-popups { position: fixed; right: 16px; bottom: 16px; z-index: 950; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 32px)); }
.ngp-popup { background: #fff; border: 1px solid var(--line, #DEDEE0); border-left: 5px solid var(--ngp-lime, #b3d337); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: 14px 16px; }
.ngp-popup-title { font-weight: 800; font-size: 14px; color: var(--ink, #2a2b2d); }
.ngp-popup-body { font-size: 13px; color: var(--ink-2, #4a4b4d); margin-top: 4px; white-space: pre-wrap; }
.ngp-popup-actions { display: flex; gap: 8px; margin-top: 10px; }
@media (max-width: 760px) { .ngp-popups { bottom: 84px; } }

/* ---- Workflow Studio ---- */
.studio-bar { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.studio-co label { display: flex; align-items: center; gap: 8px; }
.studio-co select { min-width: 220px; padding: 7px 10px; }
.wf-card.off { opacity: .78; }
.wf-sum { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; font-size: 13.5px; }
.wf-k { display: inline-block; min-width: 44px; font-weight: 800; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--lime-ink, #5a6a1c); }
.wf-join { color: var(--muted, #6d6e71); font-weight: 700; }
.wf-acts { margin: 4px 0 0 18px; padding: 0; }
.wf-acts li { margin: 3px 0; }
.wf-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.wf-list li { padding: 6px 0; border-bottom: 1px solid var(--line, #eee); }
.linkbtn { background: none; border: 0; padding: 0 4px; color: var(--ink-2, #4a4b4d); text-decoration: underline; cursor: pointer; font: inherit; font-size: 12.5px; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.studio-side .card { margin-bottom: 14px; }
.studio-try { display: flex; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.studio-try .input { flex: 1; min-width: 140px; padding: 7px 10px; }
.wf-save { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.wf-save code { font-size: 11px; background: var(--lime-tint, #f7fbeb); padding: 1px 4px; border-radius: 4px; }
.wf-sec { padding: 14px 0; border-bottom: 1px solid var(--line, #eee); display: flex; flex-direction: column; gap: 10px; }
.wf-sec:last-child { border-bottom: 0; }
.wf-title { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wf-title select { width: auto; padding: 5px 8px; }
.wf-badge { display: inline-block; background: var(--ngp-lime, #b3d337); color: var(--on-accent, #2a2b2d); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.wf-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wf-line .form-field { flex: 1 1 200px; margin: 0; }
.wf-line > select, .wf-line > input { width: auto; }
.wf-cond { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: #FAFAFB; border: 1px solid var(--line, #eee); border-radius: 10px; padding: 8px; }
.wf-cond select, .wf-cond input { width: auto; flex: 1 1 160px; padding: 7px 9px; }
.wf-step { border: 1px solid var(--line, #DEDEE0); border-radius: 12px; overflow: hidden; }
.wf-step-head { display: flex; gap: 10px; align-items: center; background: var(--lime-tint, #f7fbeb); padding: 8px 12px; flex-wrap: wrap; }
.wf-step-head select { width: auto; flex: 1 1 220px; padding: 6px 9px; }
.wf-step-tools { margin-left: auto; display: flex; gap: 4px; }
.wf-step-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.wf-checks { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.wf-checks .chk-row { font-size: 13px; }
.wf-chk { font-size: 13px; }
.wf-more summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--ink-2, #4a4b4d); }
.wf-more[open] { display: flex; flex-direction: column; gap: 10px; }
.wf-timing { border-top: 1px dashed var(--line, #DEDEE0); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.wf-stop { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 980px) { .studio-grid { grid-template-columns: 1fr; } }
.trim-form { display: flex; flex-direction: column; gap: 12px; border-color: #EFD9A6; background: #FDF6E9; }
.trim-steps { display: grid; grid-template-columns: 200px minmax(200px, 280px) auto; gap: 14px; align-items: end; }
.trim-steps .form-field { margin: 0; }
@media (max-width: 760px) { .trim-steps { grid-template-columns: 1fr; } }
.section-subtabs { margin-top: -6px; }
.section-subtabs .section-tab { font-size: 12.5px; padding: 6px 12px; background: transparent; }
.section-subtabs .section-tab.active { background: var(--lime-tint-2, #eef5d3); color: var(--ink, #2a2b2d); border-color: var(--ngp-lime, #b3d337); }

/* ---- Page Builder: pages laid out from blocks in a 12-column grid ---- */
.pb-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 18px; }
.pb-cell { min-width: 0; }
.pb-12 { grid-column: span 12; } .pb-8 { grid-column: span 8; } .pb-6 { grid-column: span 6; } .pb-4 { grid-column: span 4; }
@media (max-width: 900px) { .pb-8, .pb-6, .pb-4 { grid-column: span 12; } }
.pb-plain { background: transparent; border: 0; box-shadow: none; padding-left: 0; padding-right: 0; }
.pb-h2 { font-size: 19px; margin: 0 0 6px; }
.pb-links { display: flex; gap: 10px; flex-wrap: wrap; }
.pb-bar { height: 12px; background: var(--lime-tint, #f7fbeb); border-radius: 6px; overflow: hidden; }
.pb-bar span { display: block; height: 100%; background: var(--ngp-lime, #b3d337); border-radius: 6px; }
.pb-form .form-actions { margin-top: 10px; }
.pb-filters { display: flex; flex-direction: column; gap: 8px; background: #FAFAFB; border: 1px dashed var(--line, #DEDEE0); border-radius: 10px; padding: 10px; }
.pb-sub { border: 1px solid var(--line, #eee); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.pb-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pb-filterbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pb-filterbar .input { flex: 1 1 180px; width: auto; padding: 8px 10px; }
.pb-editbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px dashed var(--ngp-lime, #b3d337); background: var(--lime-tint, #f7fbeb); border-radius: 10px; padding: 6px 10px; margin-bottom: 12px; }
.ngp-hidden { display: none !important; }
.ngp-editing .ngp-hidden { display: block !important; opacity: .35; }
.ngp-edit-banner { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: #FDF6E9; border: 1px solid #EFD9A6; border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; }
.ngp-edit-actions { margin-left: auto; display: flex; gap: 6px; }
.ngp-sec { position: relative; outline: 1px dashed rgba(157,187,42,.6); outline-offset: 2px; }
.ngp-sec-tools { position: absolute; top: -10px; right: 8px; z-index: 50; display: flex; gap: 2px; }
.ngp-sec-tools button { border: 1px solid #DEDEE0; background: #fff; border-radius: 6px; font-size: 11px; padding: 1px 6px; cursor: pointer; }
.ngp-editing main.content *:not(.ngp-sec-tools *)::selection { background: #EAF1CE; }
.um-edit { font-weight: 700; }
.plan-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 18px; }
.plan-features .chk-row { align-items: flex-start; }
.sa-toggle { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #DEDEE0; background: #F4F4F5; color: #6d6e71; border-radius: 999px; padding: 3px 10px 3px 4px; font-size: 12px; font-weight: 700; cursor: pointer; }
.sa-toggle .sa-knob { width: 14px; height: 14px; border-radius: 50%; background: #B9BABC; }
.sa-toggle.on { background: #EAF1CE; border-color: #B9C98A; color: #3F5211; }
.sa-toggle.on .sa-knob { background: #7FA21E; }
/* Bulk edit: row checkboxes show only while "Bulk edit" is on */
.bulk-col { display: none; width: 34px; }
body.bulk-on .bulk-col { display: table-cell; }
/* Logo library (Branding) */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 10px; }
.logo-card { margin: 0; }
.logo-sizes { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin: 10px 0 6px; }
.logo-size { margin: 0; }
.logo-size-box { max-width: 100%; padding: 6px; border: 1px dashed var(--line); border-radius: 8px; background: repeating-conic-gradient(#f2f2f3 0% 25%, #fff 0% 50%) 50% / 14px 14px; }
.logo-size-box img { display: block; max-width: 100%; height: auto; }
.logo-upload { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
/* Email editor: Design / Code views */
.ed-grid { grid-template-columns: 1.3fr 1fr; align-items: start; }
@media (max-width: 900px) { .ed-grid { grid-template-columns: 1fr; } }
.ed-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; gap: 8px; }
.seg-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg-toggle button { border: none; background: #fff; color: #5b5c5e; padding: 6px 14px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.seg-toggle button.on { background: var(--ngp-lime); color: var(--on-accent, #2a2b2d); }
.ed-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border: 1px solid var(--line); border-bottom: none; border-radius: 10px 10px 0 0; background: #f7f7f8; }
.ed-tool { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 4px 9px; font-size: 12.5px; cursor: pointer; color: #2a2b2d; }
.ed-tool:hover { border-color: var(--ngp-lime); background: var(--lime-tint); }
.ed-design { width: 100%; min-height: 380px; border: 1px solid var(--line); border-radius: 0 0 10px 10px; background: #fff; display: block; }
.ed-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.45; tab-size: 2; resize: vertical; white-space: pre; overflow-x: auto; }


/* =====================================================================
   Visual refresh (2026-10) — one consistent look on every screen.
   Bright lime = primary actions; dark gray = text and icons; selected
   tabs / toggles = pale lime with a lime border (never black fills);
   white cards on light gray, 8–10px corners, light borders, minimal
   shadow. Presentation only: no page changes what it does.
   ===================================================================== */
:root { --input-h: 40px; --sel-bg: var(--lime-tint); --sel-border: var(--ngp-lime); --sel-ink: var(--ink); }
body { color: var(--ink); }
.small, .muted, .pagehead p, .flabel { color: var(--ink-2); }
.small { color: var(--muted); }
.label, th, .kv dt { color: var(--ink-2); }

/* cards & page */
.card { border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.pagehead h1 { font-size: 26px; }
.section-title { font-size: 16px; font-weight: 800; color: var(--ink); }

/* buttons: lime = the main action; everything routine is outlined */
.btn { border-radius: var(--radius-sm); min-height: var(--input-h); padding: 9px 16px; }
.btn-sm { min-height: 32px; padding: 6px 12px; border-radius: 7px; }
.btn-dark { background: var(--ngp-lime); color: var(--on-accent); border-color: var(--ngp-lime); }
.btn-dark:hover { background: var(--lime-600); }
.btn-outline { border-color: #d6d7da; color: var(--ink); }
.btn-selected, .btn-selected:hover { background: var(--sel-bg); color: var(--sel-ink); border-color: var(--sel-border); box-shadow: inset 0 0 0 1px var(--sel-border); }
.btn:focus-visible, .chip:focus-visible, .section-tab:focus-visible, a:focus-visible, .seg input:focus-visible + label { outline: 3px solid var(--lime-ink); outline-offset: 2px; }
.btn:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; }

/* selected tabs, segmented controls and chips: pale lime + lime border */
.section-tab { border-radius: 8px; color: var(--ink-2); }
.section-tab.active { background: var(--sel-bg); border-color: var(--sel-border); color: var(--sel-ink); box-shadow: inset 0 0 0 1px var(--sel-border); }
.seg input:checked + label { background: var(--sel-bg); color: var(--sel-ink); box-shadow: inset 0 0 0 2px var(--sel-border); }
.chip { border-radius: 8px; }
.chip.active { background: var(--sel-bg); color: var(--sel-ink); border-color: var(--sel-border); box-shadow: inset 0 0 0 1px var(--sel-border); }
.tab.active { color: var(--ink); border-bottom-width: 3px; }

/* forms: one input height everywhere */
.input, select.input { min-height: var(--input-h); border-color: #d6d7da; border-radius: var(--radius-sm); }
textarea.input { min-height: 72px; }
.flabel { font-weight: 700; }

/* tiles & home cards */
.stat-tile, .request-card:not(.primary) { box-shadow: var(--shadow); border-radius: var(--radius); }
a.stat-tile:hover, a.request-card:not(.primary):hover { transform: none; box-shadow: 0 0 0 1px var(--ngp-lime); }
.stat-tile .label { text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.request-card.primary { background: var(--ngp-lime); color: var(--on-accent); }
.request-card.primary .rc-title { color: var(--on-accent); }
.request-card.primary .rc-sub { color: var(--ink-2); }
.request-card.primary .rc-icon { background: #fff; color: var(--ink); }
.empty { padding: 18px 14px; border-radius: var(--radius-sm); }
.flash { border-radius: var(--radius-sm); }
.um-panel { border-radius: var(--radius); }
/* segmented choices stay keyboard-reachable (the radio is hidden visually, not removed) */
.seg { position: relative; border-radius: var(--radius-sm); }
.seg input { display: inline; position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg-toggle button.on { background: var(--sel-bg); color: var(--sel-ink); box-shadow: inset 0 0 0 1px var(--sel-border); }

/* Business Center: metrics in one balanced row; panels with icon headings, quiet links at the bottom */
.bc-metrics .tiles { gap: 12px; margin-bottom: 14px; }
.bc-metrics .stat-tile { padding: 14px 16px; min-width: 0; }
.bc-metrics .stat-tile .num { font-size: 22px; }
@media (min-width: 1100px) {
  .bc-n7 .tiles { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .bc-n6 .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bc-n5 .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bc-n4 .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 640px) and (max-width: 1099px) {
  .bc-n7 .tiles, .bc-n6 .tiles, .bc-n5 .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bc-n4 .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) { .bc-metrics .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.business-grid { align-items: stretch; }
.bc-panel { display: flex; flex-direction: column; gap: 12px; margin-bottom: 0; }
.bc-panel > * { order: 2; }
.bc-panel > .bc-head { order: 1; }
.bc-panel > .bc-actions { order: 3; margin-top: auto; }
.bc-head { display: flex; align-items: flex-start; gap: 12px; }
.bc-icon { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 8px; background: var(--lime-tint); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.bc-icon svg { width: 18px; height: 18px; }
.bc-titles { flex: 1; min-width: 0; }
.bc-titles .section-title { margin: 0 0 2px; font-size: 17px; }
.bc-go { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); transform: rotate(-90deg); }
.bc-go:hover { background: var(--lime-tint); }
.bc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bc-actions .btn { min-height: 34px; padding: 6px 12px; font-size: 12.5px; }
.bc-actions .btn-outline { border-color: var(--line); }
.bc-panel .empty { padding: 14px; }
.bc-connect { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 16px; }
.bc-connect .bc-head { flex: 1 1 260px; }
.bc-connect .bc-actions .btn { background: none; border-color: transparent; color: var(--ink-2); }
.bc-connect .bc-actions .btn:hover { background: var(--lime-tint); color: var(--ink); }
.business-grid { align-items: start; }
.bc-panel .table-wrap { max-height: 430px; overflow: auto; }
.bc-panel .table-wrap thead th { position: sticky; top: 0; background: #fff; z-index: 1; }

/* Section headings inside cards: bold title case instead of small all-caps labels */
.card > .label, .card > div > .label:first-child, .po-type-sec > .label { font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--ink); font-weight: 800; margin-bottom: 10px; }
.card > .label .small { text-transform: none; letter-spacing: 0; font-weight: 400; }

/* Installation order form */
.po-side { align-self: start; }
.po-side .card { margin-bottom: 14px; }
/* related checkboxes in compact columns on desktop, stacked on phones */
.po-site-card .row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 4px 20px; }
.po-ug > div[style*="flex-wrap"] { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 18px !important; }
.qr-order-card .pick-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.qr-order-card .pick-list .chk-row { border: 1px solid transparent; border-radius: var(--radius-sm); padding: 8px 10px; }
.qr-order-card .pick-list .chk-row:has(input:checked) { background: var(--sel-bg); border-color: var(--sel-border); }
@media (max-width: 700px) {
  .po-site-card .row2, .po-ug > div[style*="flex-wrap"], .qr-order-card .pick-list { grid-template-columns: 1fr; }
}

/* Order form map: reset pin + "you moved the pin" check */
.po-map-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.po-map-bar .po-map-note { margin: 0; flex: 1 1 220px; }
.po-pin-moved { margin-top: 8px; padding: 10px 12px; border: 1.5px solid var(--ngp-lime); background: var(--lime-tint); border-radius: var(--radius-sm); color: var(--ink); font-size: 13px; }
.po-pin-moved-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.po-pin-moved.nudge { animation: pinNudge .9s ease 2; }
@keyframes pinNudge { 50% { box-shadow: 0 0 0 4px rgba(181, 211, 61, .55); } }
@media (prefers-reduced-motion: reduce) { .po-pin-moved.nudge { animation: none; outline: 3px solid var(--lime-ink); } }
#pinResetBtn[hidden], #pinMovedBox[hidden] { display: none !important; }

/* Unfinished orders: Home card + pop-up */
.wait-card { border: 1.5px solid var(--ngp-lime); }
.wait-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.wait-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wait-actions form, .wait-pop-actions form { margin: 0; }
.wait-pop { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: min(380px, calc(100vw - 32px)); background: var(--card, #fff); color: var(--ink); border: 1.5px solid var(--ngp-lime); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(20,22,18,.18); padding: 14px 16px; }
.wait-pop[hidden] { display: none !important; }
.wait-pop-title { font-weight: 800; margin-bottom: 4px; }
.wait-pop p { margin: 0 0 10px; font-size: 14px; }
.wait-pop-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 700px) { .wait-pop { bottom: 76px; } }

/* Saved views on any list (lib/ui.js savedViewsMenu) */
.saved-views-list { display: flex; flex-wrap: wrap; gap: 6px; }
.saved-view { display: inline-flex; align-items: center; gap: 2px; }
.saved-view form { margin: 0; }
.saved-view .linklike { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 2px 4px; }
.saved-view .linklike:hover { color: var(--danger); }
.saved-view-save { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.saved-view-save .input { flex: 1; min-width: 140px; }

/* Next step on an order (lib/nextStep.js) */
.next-step { border-left: 4px solid var(--ngp-lime); }
.next-step-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.next-step-label { font-weight: 800; font-size: 16px; }
.next-step-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== Routing planner (2026-10 refresh) ===== */
.routing-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.routing-head h1 { margin: 0 0 4px; }
.routing-head-side { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.route-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 12px 0; flex-wrap: wrap; counter-reset: rstep; }
.route-steps li { counter-increment: rstep; padding: 6px 12px 6px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--muted); background: #fff; }
.route-steps li::before { content: counter(rstep); display: inline-block; width: 20px; height: 20px; border-radius: 50%; text-align: center; line-height: 20px; margin-right: 6px; background: var(--line); color: var(--ink); font-weight: 700; font-size: 12px; }
.route-steps li.on { border-color: var(--ngp-lime); background: var(--lime-tint); color: var(--ink); font-weight: 600; }
.route-steps li.on::before { background: var(--ngp-lime); }
.route-topbar { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; padding: 12px 14px; }
.route-topbar label { font-size: 12px; font-weight: 600; color: var(--muted); }
.route-topbar .input { margin-top: 3px; }
.rt-date .input { width: 160px; }
.rt-shortcuts { display: flex; gap: 6px; flex-wrap: wrap; }
.rt-shortcuts .chip, .rt-chips .chip { cursor: pointer; }
.rt-search { flex: 1 1 220px; }
.rt-search .input { width: 100%; }
.rt-installers { position: relative; }
.rt-installers summary { list-style: none; }
.rt-installers summary::-webkit-details-marker { display: none; }
.rt-pop { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 280px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgba(20,22,18,.14); padding: 10px; }
.rt-checklist { max-height: 260px; overflow: auto; margin-top: 8px; }
.rt-more { flex-basis: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.rt-more[hidden] { display: none; }
.rt-more .input { width: 100%; }
.rt-chips { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rt-chips:empty { display: none; }
.chip-x { border: 0; background: none; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 0 0 4px; color: var(--ink); }
.route-summary { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 10px 2px; font-size: 14px; }
.route-summary b { font-size: 16px; }
.routing-workspace { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr); gap: 16px; align-items: start; }
.rw-left { min-width: 0; }
.rw-right { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; }
.rw-h { font-size: 17px; margin: 0 0 8px; }
.rw-map #routeMap { height: 460px; }
.route-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; margin-top: 8px; color: var(--muted); }
.route-legend span { display: inline-flex; align-items: center; gap: 5px; }
.lg { display: inline-block; width: 20px; height: 20px; line-height: 20px; text-align: center; font-style: normal; font-weight: 800; font-size: 11px; color: #fff; }
/* Work type is shown by letter AND shape, never by color alone. */
.rpin { display: inline-block; width: 28px; height: 28px; line-height: 26px; text-align: center; font-weight: 800; font-size: 13px; color: #fff; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.45); background: #155a9c; border-radius: 50%; }
.rpin-install, .lg-install { background: #155a9c; border-radius: 50%; }
.rpin-removal, .lg-removal { background: #a14a00; border-radius: 4px; }
.rpin-service, .lg-service { background: #6b3fa0; border-radius: 50% 50% 4px 50%; }
.rpin-return, .lg-return { background: #333; border-radius: 4px 50% 4px 50%; }
.rpin-installed, .lg-installed { background: #8a949b; border-radius: 50%; width: 20px; height: 20px; line-height: 18px; font-size: 10px; opacity: .85; }
.rpin-reload { background: #1e7b34; border-radius: 4px; }
.rpin-sel, .lg-sel { background: var(--ngp-lime); color: #1b1d17; border-color: #1b1d17; }
.lg-sel { border-radius: 50%; }
.rpin-hi { box-shadow: 0 0 0 4px rgba(181,211,61,.75), 0 1px 4px rgba(0,0,0,.45); transform: scale(1.15); }
.rpin-kind { position: absolute; right: -8px; top: -8px; min-width: 15px; height: 15px; line-height: 15px; text-align: center; background: #fff; color: #1b1d17; border: 1.5px solid #1b1d17; font-style: normal; font-size: 10px; font-weight: 800; border-radius: 4px; }
.routing-marker { position: relative; }
.routing-orders { max-height: 620px; overflow: auto; display: block; }
.routing-order { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; margin: 0 0 8px; background: #fff; }
.routing-order.sel { border-color: var(--ngp-lime); background: var(--lime-tint); }
.routing-order.hi, .route-stop.hi { outline: 3px solid var(--ngp-lime); outline-offset: 1px; }
.ro-top { display: flex; gap: 10px; align-items: flex-start; }
.ro-check input { width: 20px; height: 20px; margin-top: 4px; }
.ro-letter { flex: none; }
.ro-main { flex: 1; min-width: 0; font-size: 14px; }
.ro-warn { color: #8a4b00; margin-top: 3px; }
.ro-conflict { color: #8a3822; margin-top: 3px; }
.ro-missing { color: var(--danger); }
.ro-actions { margin-top: 6px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.linklike { background: none; border: 0; padding: 0; color: var(--lime-ink, #4f6a12); text-decoration: underline; cursor: pointer; font: inherit; }
.route-stops { margin: 6px 0; }
.route-stop { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; margin-bottom: 8px; background: #fff; }
.route-stop.locked { border-style: dashed; border-color: #1b1d17; }
.route-stop.dragging { opacity: .5; }
.rs-head { display: flex; gap: 8px; align-items: flex-start; }
.rs-handle { cursor: grab; color: var(--muted); font-size: 18px; line-height: 28px; }
.rs-title { flex: 1; min-width: 0; font-size: 14px; }
.rs-move { display: flex; gap: 4px; }
.rs-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px 10px; margin-top: 6px; }
.rs-fields label { font-size: 12px; }
.rs-fields .input { width: 100%; margin-top: 2px; min-height: 34px; }
.rs-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.route-setup { border-top: 1px solid var(--line); padding: 8px 0; }
.route-setup summary { cursor: pointer; padding: 4px 0; }
.route-setup label, .rw-right > label { display: block; font-size: 13px; margin: 8px 0; }
.route-setup .input, .rw-right > label .input { width: 100%; margin-top: 3px; }
.rt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rt-inline { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
.rt-inline .input { min-height: 34px; }
.rt-stockmode { border: 0; padding: 0; margin: 6px 0; }
.route-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.route-actions .btn { flex: 1 1 auto; justify-content: center; }
.route-why { color: #8a3822; min-height: 1em; }
.route-msg.ok { color: #2f5d0c; } .route-msg.err { color: var(--danger); }
.route-ready { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; margin: 8px 0; background: #fff; }
.route-ready.ok { border-color: var(--ngp-lime); background: var(--lime-tint); }
.route-ready.warn { border-color: #e6b07a; background: #fdf6ec; }
.route-ready ul { margin: 6px 0 0 18px; padding: 0; }
.route-approx { color: #8a3822; }
.route-totals { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.route-totals > div { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 10px; background: #fff; min-width: 88px; }
.route-totals b { display: block; font-size: 16px; }
.route-totals span { font-size: 12px; color: var(--muted); }
.route-plan-stops { padding-left: 20px; font-size: 14px; }
.route-plan-stops li { margin-bottom: 6px; }
.suggest-box { padding: 10px 12px; }
.empty-state { padding: 18px; text-align: center; }
.route-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 10px; }
.route-head h1 { margin: 0 0 4px; }
.route-stop-state { padding: 8px 0; }
.dispatch-panel { border: 2px solid var(--ngp-lime); }
.route-tabs, .route-mobile-bar { display: none; }
@media (max-width: 980px) {
  .routing-workspace { grid-template-columns: 1fr; }
  .rw-right { position: static; max-height: none; }
  .route-tabs { display: flex; gap: 6px; position: sticky; top: 64px; z-index: 20; background: var(--bg, #f1f2f4); padding: 6px 0; }
  .route-tabs [role="tab"] { flex: 1; min-height: 42px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-weight: 700; }
  .route-tabs [aria-selected="true"] { background: var(--lime-tint); border-color: var(--ngp-lime); }
  .route-count-badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--ngp-lime); color: #1b1d17; font-size: 12px; }
  .routing-workspace[data-view="work"] .rw-map, .routing-workspace[data-view="work"] .rw-right { display: none; }
  .routing-workspace[data-view="map"] .rw-work, .routing-workspace[data-view="map"] .rw-right { display: none; }
  .routing-workspace[data-view="route"] .rw-left { display: none; }
  .rw-map #routeMap { height: 60vh; }
  .route-mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 64px; z-index: 40; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(20,22,18,.08); }
  .routing-orders { max-height: none; }
  .rt-date .input { width: 100%; }
  .route-topbar > * { flex: 1 1 140px; }
}
@media print { .route-steps, .route-topbar, .route-tabs, .route-mobile-bar, .rw-left, .route-actions { display: none !important; } }
.route-today { border-left: 4px solid var(--ngp-lime); }
.route-today-stops { list-style: none; padding: 0; margin: 10px 0; }
.route-today-stops li { border-top: 1px solid var(--line); padding: 10px 0; }
.route-today-stops li.next { background: var(--lime-tint); margin: 0 -12px; padding: 10px 12px; border-radius: var(--radius-sm); }
.route-today-stops li.done { opacity: .65; }
.route-today-stops .badge { margin-left: 6px; }
.order-edit summary { cursor: pointer; }
.order-edit-group { border: 0; border-top: 1px solid var(--line); padding: 10px 0 4px; margin: 8px 0 0; }
.order-edit-group legend { font-weight: 800; padding-right: 8px; }
.ro-assign { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.ro-assign .input { min-height: 32px; padding: 2px 8px; }
.route-assign-bar { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.route-assign-bar .input { min-height: 34px; }

/* Dense lists (To Do): base styles; workspace overrides below keep controls readable. */
.dense-table th { padding: 0 7px 6px; font-size: 10.5px; }
.dense-table td { padding: 5px 7px; font-size: 12.5px; line-height: 1.3; vertical-align: middle; white-space: nowrap; }
.dense-table td .review-reasons { white-space: normal; min-width: 220px; }
.dense-table td .small, .dense-table td small { font-size: 11px; }
.dense-table td .badge { font-size: 10px; padding: 2px 7px; }
.dense-table td .badge + .badge { margin-top: 2px; }
.dense-table td select.input, .dense-table td .input, .dense-table td select { height: 28px !important; min-height: 0 !important; line-height: 1.2; padding: 2px 6px !important; font-size: 12px !important; min-width: 0 !important; border-radius: 6px; }
.dense-table td select.input { max-width: 150px; }
.dense-table td .row-quick-sel { max-width: 120px; }
.dense-table td input[type=checkbox] { width: 15px; height: 15px; }
/* Long address: one line with "…" (the full address shows on hover and on the order). */
.dense-table td.cell-addr { max-width: 230px; overflow: hidden; text-overflow: ellipsis; }
/* Phones: the row of section buttons is one line you swipe sideways instead of a stack of rows. */
@media (max-width: 760px) {
  .section-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 10px; scrollbar-width: none; }
  .section-tab { padding: 6px 11px; font-size: 12px; flex: 0 0 auto; }
}

/* UI redesign: presentation only. Existing permissions, menus, forms and actions stay intact. */
.workspace-ui { --sidebar-w: 236px; --radius: 12px; }
.workspace-ui .content { max-width: 1600px; margin-inline: auto; padding: 28px 28px 48px; }
.workspace-ui .card { box-shadow: 0 1px 3px rgba(25,30,35,.035); }
.workspace-ui .pagehead { margin-bottom: 24px; }
.workspace-ui .pagehead h1 { letter-spacing: -.035em; font-size: 27px; }
.workspace-ui .pagehead p { line-height: 1.6; }
.workspace-ui .sidebar-top { padding: 25px 20px 22px; }
.workspace-ui .brand-logo img { max-width: 178px; height: auto; max-height: 48px; object-fit: contain; }
.workspace-ui .new-order-btn { background: var(--ngp-lime); color: var(--on-accent); margin: 0 16px 20px; border: 0; border-radius: 9px; min-height: 43px; }
.workspace-ui .new-order-btn svg { color: var(--on-accent); background: transparent; }
.workspace-ui .sidenav { padding-inline: 12px; scrollbar-width: thin; }
.workspace-ui .navlink { font-size: 13px; min-height: 40px; border-radius: 8px; }
.workspace-ui .navgroup.current > summary { background: var(--lime-tint); }
.workspace-ui .navsub { min-height: 34px; padding-block: 7px; font-size: 12px; }
.workspace-ui .navgroup-items { margin-left: 21px; }
.workspace-ui .sidebar-foot { background: var(--surface); }
.workspace-ui .section-tabs { gap: 4px; margin: 0 0 24px; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.workspace-ui .section-tab { border-color: transparent; background: transparent; border-radius: 7px; padding: 8px 11px; color: var(--muted); }
.workspace-ui .section-tab:hover { background: var(--surface); border-color: var(--line); color: var(--ink); }
.workspace-ui .section-tab.active { background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: inset 0 -3px var(--ngp-lime); }
.workspace-ui .section-tabs-compact { overflow: visible; flex-wrap: wrap; align-items: center; }
.section-more { position: relative; }
.section-more > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.section-more > summary::-webkit-details-marker { display: none; }
.section-more svg { width: 13px; height: 13px; }
.section-more-panel { position: absolute; top: calc(100% + 6px); right: 0; width: min(285px, 80vw); max-height: 60vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 7px; z-index: 40; }
.workspace-ui .section-more-panel .section-tab { display: block; white-space: normal; }
.skip-content { position: fixed; top: -100px; left: 16px; padding: 12px 18px; background: var(--surface); border: 2px solid var(--ink); border-radius: 8px; z-index: 1200; }
.skip-content:focus { top: 12px; }
.workspace-ui :where(a,button,summary,input,select,textarea,[tabindex]):focus-visible { outline: 2px solid var(--info-ink); outline-offset: 3px; }
.workspace-ui :where([id^="install-"],[id^="order-"]) { scroll-margin-top: 96px; }
.page-jumps { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: -8px 0 22px; font-size: 12px; }
.page-jumps > span { color: var(--muted); font-weight: 600; margin-right: 8px; }
.page-jumps a { padding: 7px 11px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.page-jumps a:hover { background: var(--lime-tint); border-color: var(--ngp-lime); }
.workspace-section-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.workspace-section-heading h2 { margin: 0; font-size: 15px; font-weight: 700; }
.workspace-ui .home-current { margin-bottom: 26px; }
.workspace-ui .home-current .tiles { grid-template-columns: repeat(auto-fit, minmax(155px,1fr)); gap: 10px; }
.workspace-ui .stat-tile { padding: 16px; border-radius: 10px; min-height: 94px; }
.workspace-ui .stat-tile .num { margin-top: 6px; font-size: 26px; letter-spacing: -.035em; }
.workspace-ui .stat-tile .label { font-size: 11px; line-height: 1.5; }
.workspace-ui a.stat-tile:hover { border-color: var(--ngp-lime); box-shadow: 0 3px 12px rgba(25,30,35,.06); }
.workspace-ui .business-grid { gap: 18px; }
.workspace-ui .bc-panel { padding: 22px; }
.workspace-ui .bc-head { align-items: flex-start; }
.workspace-ui .bc-head .section-title { font-size: 15px; margin-bottom: 3px; }
.workspace-ui .bc-icon { border-radius: 9px; }
.workspace-ui .bc-panel .empty { padding: 24px 12px; border: 1px dashed var(--line); background: #fafbfc; border-radius: 9px; }
.workspace-ui .bc-panel .empty-title { font-size: 13px; font-weight: 600; }
.workspace-ui .bc-panel .empty .small { max-width: 350px; margin: 5px auto 0; line-height: 1.6; }
.workspace-ui .bc-actions { gap: 7px; padding-top: 8px; }
.workspace-ui .bc-actions .btn { font-size: 11px; min-height: 34px; padding: 7px 10px; }
.workspace-ui .home-period { margin-top: 22px; padding: 0; }
.home-period > summary { display: flex; align-items: center; gap: 14px; padding: 19px 22px; font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; }
.home-period > summary::-webkit-details-marker { display: none; }
.home-period > summary > svg { margin-left: auto; width: 16px; height: 16px; transition: transform .15s; }
.home-period[open] > summary > svg { transform: rotate(180deg); }
.home-period-body { padding: 0 22px 18px; }
.workspace-ui .home-period-body .period-bar { box-shadow: none; }
.workspace-ui .bc-connect { margin-top: 20px; }
.workspace-ui .detail-card-grid { gap: 18px !important; }
.workspace-ui .detail-card-grid > .card { margin-bottom: 0; }
.workspace-ui .detail-card-grid .field { padding-block: 10px; }
.workspace-ui .content[data-page="orders"] > .pagehead p { font-size: 16px; color: var(--ink-2); }
.workspace-ui .tasks-list-card { padding: 12px 14px 14px !important; }
.workspace-ui .tasks-table-scroll { max-width: 100%; overflow: auto; max-height: 68vh; scrollbar-width: auto; }
.workspace-ui #tasksTable { min-width: 1320px !important; border-collapse: separate; border-spacing: 0; }
.workspace-ui #tasksTable thead { position: sticky; top: 0; z-index: 2; background: var(--surface); }
.workspace-ui #tasksTable th { padding: 10px 12px; background: var(--surface); }
.workspace-ui #tasksTable td { padding: 12px; font-size: 12px; line-height: 1.5; border-bottom: 1px solid var(--line-2); }
.workspace-ui #tasksTable tbody tr:hover { background: #f8faf3; }
.workspace-ui #tasksTable td.cell-addr { min-width: 240px; max-width: 310px; white-space: normal; overflow: visible; }
.workspace-ui #tasksTable td select.input { height: 34px !important; min-width: 155px !important; max-width: 190px; padding: 5px 8px !important; }
.workspace-ui #tasksTable td .row-quick-sel { min-width: 125px !important; }
.workspace-ui .table-wrap { max-width: 100%; }
.workspace-ui .po-grid { gap: 0 22px; }
.workspace-ui .po-main > .card, .workspace-ui .po-more > .card { padding: 22px; }
.workspace-ui .po-main .label, .workspace-ui .po-more .label { font-size: 13px; text-transform: none; letter-spacing: 0; }
.workspace-ui .po-side { top: 88px; }
.workspace-ui .po-build { background: var(--surface); }
.workspace-ui .po-price { border-color: var(--ngp-lime); }
@media (min-width: 901px) {
  .workspace-ui .sidebar { display: flex; }
  .workspace-ui .main { width: calc(100% - var(--sidebar-w)); }
  .workspace-ui .tnav, .workspace-ui .topbar-logo, .workspace-ui .topbar-new { display: none; }
  .workspace-ui .topbar { height: 72px; padding-inline: 28px; gap: 16px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: none; }
  .workspace-ui .topbar-search, .workspace-ui .topbar-search:focus-within { position: static; flex: 1 1 420px; max-width: 540px; height: 40px; width: auto; margin-left: 0; border: 1px solid var(--line); background: var(--bg); box-shadow: none; cursor: text; }
  .workspace-ui .topbar-search input { width: 100%; }
  .workspace-ui .topbar-search input::placeholder { color: var(--muted); }
  .workspace-ui .topbar-search:focus-within { border-color: var(--ngp-lime); background: var(--surface); }
  .workspace-ui .topbar .ngp-bell-wrap { margin-left: auto; }
  .workspace-ui .usermenu { margin-left: auto; }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .workspace-ui { --sidebar-w: 210px; }
  .workspace-ui .content { padding: 24px 20px 40px; }
  .workspace-ui .business-grid { grid-template-columns: 1fr; }
  .workspace-ui .po-grid { grid-template-columns: minmax(0,1fr) 285px; gap: 0 16px; }
  .workspace-ui .po-type-card { grid-template-columns: 1fr; }
  .workspace-ui .po-qty-sec { border-left: 0; padding-left: 0; margin-left: 0; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
}
@media (max-width: 900px) {
  .workspace-ui .content { padding: 20px 14px calc(96px + env(safe-area-inset-bottom)); }
  .workspace-ui .pagehead h1 { font-size: 23px; }
  .workspace-ui .home-current .tiles { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workspace-ui .stat-tile { min-height: 86px; padding: 13px; }
  .workspace-ui .bc-panel { padding: 17px; }
  .workspace-ui .bc-metrics .tiles { gap: 9px; }
  .workspace-ui .home-period-body { padding: 0 14px 14px; }
  .home-period > summary { padding: 16px; flex-wrap: wrap; }
  .home-period > summary .small { font-weight: 500; }
  .workspace-ui .po-main > .card, .workspace-ui .po-more > .card { padding: 17px; }
  .workspace-ui .po-side { position: static; }
  .workspace-ui .section-more-panel { right: auto; left: 0; }
  .workspace-ui .page-jumps { gap: 5px; }
  .workspace-ui .page-jumps a { font-size: 11px; padding: 7px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .workspace-ui *, .workspace-ui *::before, .workspace-ui *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
  .workspace-ui .sidebar, .workspace-ui .topbar, .workspace-ui .page-jumps, .skip-content { display: none !important; }
  .workspace-ui .main { width: 100%; }
  .workspace-ui .content { max-width: none; padding: 0; }
  .workspace-ui .tasks-table-scroll { max-height: none; overflow: visible; }
  .workspace-ui #tasksTable { min-width: 0 !important; }
}

/* Workspace experience, second pass. Scoping leaves public payment and document pages alone. */
.workspace-v2 { font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif; font-size: 14px; line-height: 1.55; --sidebar-w: 224px; }
.workspace-v2 .content { max-width: 1536px; padding: 30px 36px 56px; }
.workspace-v2 .topbar { height: 70px; }
.workspace-context { display: flex; align-items: center; gap: 12px; min-width: 140px; font-size: 12px; color: var(--muted); flex: 1; }
.workspace-context b { color: var(--ink-2); font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.workspace-v2 .topbar .topbar-search { flex: 0 1 340px; max-width: 340px; border-radius: 8px; height: 38px; background: #fafbfc; }
.workspace-v2 .topbar-search input { font-size: 12px; height: 36px; }
.workspace-v2 .usermenu { margin-left: 0; }
.workspace-v2 .usermenu .um-name { display: inline; font-size: 12px; }
.workspace-v2 .sidebar { border-right-color: #e8eaed; }
.workspace-v2 .sidebar-top { padding: 26px 21px 24px; }
.workspace-v2 .brand-logo img { max-width: 162px; }
.workspace-v2 .new-order-btn { margin: 0 17px 24px; min-height: 42px; border-radius: 8px; font-size: 12px; justify-content: center; box-shadow: 0 3px 8px rgba(80,100,25,.08); }
.sidebar-section-label { padding: 0 23px 9px; font-size: 9px; letter-spacing: .13em; text-transform: uppercase; font-weight: 650; color: var(--muted); }
.workspace-v2 .sidenav { padding-inline: 12px; }
.workspace-v2 .navlink { padding: 10px 11px; font-size: 12px; font-weight: 500; min-height: 41px; margin-bottom: 3px; }
.workspace-v2 .navlink > svg { width: 17px; height: 17px; opacity: .8; }
.workspace-v2 .navgroup.current > summary, .workspace-v2 .navlink.active { color: var(--ink); font-weight: 650; background: var(--lime-tint); }
.workspace-v2 .navsub { min-height: 32px; font-size: 11px; padding-block: 7px; margin-bottom: 0; }
.workspace-v2 .navgroup-items { border-left-color: #e9ecef; }
.workspace-v2 .sidebar-foot { padding: 17px; }
.workspace-v2 .who-name { font-size: 12px; }
.workspace-v2 .who-role { font-size: 10px; }
.workspace-v2 .avatar { width: 32px; height: 32px; font-size: 11px; }
.workspace-v2 .section-tabs { margin-bottom: 28px; padding-bottom: 10px; gap: 8px; border-color: #e0e3e7; }
.workspace-v2 .section-tab { font-size: 12px; border-radius: 6px; padding: 7px 10px; }
.workspace-v2 .section-tab.active { box-shadow: none; border-color: var(--line); background: var(--surface); font-weight: 650; }
.workspace-v2 .btn { border-radius: 8px; min-height: 39px; padding: 10px 15px; font-size: 12px; font-weight: 600; box-shadow: none; }
.workspace-v2 .btn-sm { min-height: 32px; padding: 7px 11px; font-size: 11px; }
.workspace-v2 .btn-dark { background: var(--ngp-lime); color: var(--on-accent); }
.workspace-v2 .btn-outline { border-color: #dde1e6; background: var(--surface); }
.workspace-v2 .input, .workspace-v2 select.input, .workspace-v2 textarea.input { border-color: #dce1e6; border-radius: 8px; font-size: 13px; min-height: 40px; }
.workspace-v2 .small { font-size: 12px; line-height: 1.6; }
.workspace-v2 .pagehead h1 { font-size: 27px; font-weight: 650; letter-spacing: -.035em; }
.workspace-v2 .card { border-radius: 13px; border-color: #e2e5e9; box-shadow: none; padding: 22px; }
.workspace-v2 .section-title, .workspace-v2 .card > .label, .workspace-v2 .card > div > .label:first-child { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.workspace-eyebrow { font-size: 10px; font-weight: 650; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.workspace-heading h1 { font-size: clamp(26px,2.4vw,34px); font-weight: 650; letter-spacing: -.045em; line-height: 1.18; margin: 0 0 10px; }
.workspace-heading p { font-size: 13px; margin: 0; color: var(--muted); max-width: 650px; line-height: 1.65; }
.workspace-heading-actions { display: flex; flex-wrap: wrap; flex-shrink: 0; gap: 8px; }
.workspace-v2 .workspace-section-heading { margin-bottom: 14px; }
.workspace-v2 .workspace-section-heading h2 { font-size: 14px; font-weight: 600; }
.workspace-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: 14px; margin: 0 0 28px; }
.workspace-metric { display: flex; flex-direction: column; background: var(--surface); border: 1px solid #e1e5e9; border-radius: 13px; padding: 19px 21px 13px; transition: border-color .15s; min-width: 0; }
.workspace-metric:hover { border-color: var(--ngp-lime); }
.workspace-metric-top { display: flex; justify-content: space-between; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; font-weight: 500; }
.workspace-metric-icon { display: grid; place-items: center; width: 31px; height: 31px; background: #f5f7f8; border-radius: 8px; color: var(--ink-2); flex-shrink: 0; }
.workspace-metric-icon svg { width: 16px; height: 16px; }
.workspace-metric strong { display: block; font-size: 31px; font-weight: 600; letter-spacing: -.05em; line-height: 1.2; margin: 10px 0 16px; }
.workspace-metric-bottom { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #edf0f2; padding-top: 10px; color: var(--muted); font-size: 10px; }
.workspace-metric-bottom > span { font-size: 15px; }
.workspace-panel { background: var(--surface); border: 1px solid #e1e5e9; border-radius: 13px; overflow: hidden; min-width: 0; }
.workspace-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 23px 19px; }
.workspace-panel-head h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.025em; }
.workspace-panel-head .workspace-eyebrow { font-size: 9px; margin-bottom: 4px; }
.workspace-panel-head p { margin: 5px 0 0; font-size: 12px; color: var(--muted); }
.workspace-text-link { font-size: 11px; font-weight: 600; white-space: nowrap; color: var(--ink-2); }
.workspace-text-link:hover { text-decoration: underline; }
.workspace-panel-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; background: #fafbfc; border-top: 1px solid #edf0f2; padding: 13px 23px; font-size: 11px; color: var(--muted); }
.workspace-panel-foot a { color: var(--ink); font-weight: 600; }
.workspace-v2 .home-current { margin-bottom: 0; }
.home-workspace-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 20px; align-items: start; margin-bottom: 28px; }
.home-workspace-grid > :only-child { grid-column: 1 / -1; }
.home-work-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; border-block: 1px solid #edf0f2; background: #fcfdfd; padding: 12px 23px; }
.home-work-toolbar a { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 550; }
.home-work-toolbar svg { width: 14px; height: 14px; }
.home-work-toolbar a:hover { color: var(--lime-ink); }
.home-job-list { container-type: inline-size; }
.home-job { display: grid; grid-template-columns: 38px minmax(0,1fr) 125px 12px; align-items: center; gap: 13px; padding: 18px 23px; border-bottom: 1px solid #edf0f2; }
.home-job:last-child { border-bottom: 0; }
.home-job:hover { background: #fafcf5; }
.home-job-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: #f2f5f7; color: var(--ink-2); }
.home-job-icon svg { width: 18px; height: 18px; }
.home-job-property, .home-job-schedule { min-width: 0; }
.home-job-property b { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; overflow-wrap: anywhere; }
.home-job-property > span, .home-job-schedule > span { display: block; color: var(--muted); font-size: 10px; line-height: 1.6; }
.home-job-schedule { text-align: right; }
.home-job-schedule b { display: block; font-size: 11px; font-weight: 550; margin-bottom: 4px; }
.home-job-chevron { font-size: 21px; color: #929aa3; }
.home-overdue { color: var(--danger); }
.home-focus > .workspace-panel-head > svg { width: 20px; height: 20px; color: var(--muted); }
.home-focus-items { padding: 0 22px 12px; }
.home-focus-items > a { display: grid; grid-template-columns: minmax(0,1fr) auto 10px; align-items: center; gap: 9px; padding: 18px 0; border-top: 1px solid #edf0f2; }
.home-focus-items > a > span:first-child { font-size: 12px; color: var(--muted); }
.home-focus-items > a > b { font-size: 20px; font-weight: 550; letter-spacing: -.04em; }
.home-focus-items > a > span:last-child { color: #929aa3; }
.home-focus-items > a:hover > span:first-child { color: var(--ink); }
.home-focus-note { display: flex; gap: 9px; align-items: flex-start; margin: 0 20px 20px; padding: 12px; background: #f6f8fa; color: var(--muted); font-size: 10px; line-height: 1.6; border-radius: 8px; }
.home-focus-note svg { flex-shrink: 0; width: 15px; height: 15px; margin-top: 1px; }
.workspace-shortcuts { display: grid; grid-template-columns: repeat(auto-fit,minmax(205px,1fr)); gap: 13px; margin-bottom: 28px; }
.workspace-shortcuts > a { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid #e1e5e9; border-radius: 11px; padding: 18px; min-width: 0; }
.workspace-shortcuts > a:hover { border-color: var(--ngp-lime); }
.workspace-shortcut-icon { width: 35px; height: 35px; display: grid; place-items: center; background: var(--lime-tint); color: var(--lime-ink); border-radius: 9px; flex-shrink: 0; }
.workspace-shortcut-icon svg { width: 18px; height: 18px; }
.workspace-shortcuts b { display: block; font-size: 12px; font-weight: 600; margin-bottom: 3px; }
.workspace-shortcuts > a > span:nth-child(2) > span { display: block; font-size: 10px; color: var(--muted); }
.workspace-shortcut-arrow { margin-left: auto; color: var(--muted); }
.workspace-v2 .home-period { margin-top: 0; }
.workspace-v2 .home-period > summary, .home-all-tools > summary { font-size: 13px; font-weight: 600; padding: 19px 22px; }
.home-all-tools { margin-top: 16px; border: 1px solid #e1e5e9; border-radius: 13px; background: var(--surface); }
.home-all-tools > summary { cursor: pointer; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; list-style: none; }
.home-all-tools > summary::-webkit-details-marker { display: none; }
.home-all-tools > summary > svg { width: 16px; height: 16px; margin-left: auto; }
.home-all-tools[open] > summary > svg { transform: rotate(180deg); }
.home-all-tools > .business-grid { padding: 0 20px 20px; }
.home-all-tools > .bc-connect { margin: 0 20px 20px; }
.workspace-empty { text-align: center; padding: 38px 22px; }
.workspace-empty > svg { width: 30px; height: 30px; color: var(--muted); margin-bottom: 9px; }
.workspace-empty h3 { margin: 0 0 7px; font-size: 14px; font-weight: 600; }
.workspace-empty p { font-size: 12px; color: var(--muted); max-width: 330px; margin: 0 auto 15px; }
.jobs-workspace-tools > .workspace-section-heading { margin-top: 4px; }
.workspace-v2 .listbar { box-shadow: none; border-radius: 11px; padding: 14px 16px; }
.workspace-v2 #tasksTable { min-width: 1220px !important; }
.workspace-v2 #tasksTable td { padding: 15px 11px; }
.workspace-v2 #tasksTable th { font-size: 9px; font-weight: 650; color: var(--muted); letter-spacing: .06em; padding: 12px 11px; }
.workspace-v2 #tasksTable td.cell-addr { min-width: 225px; max-width: 290px; }
.job-address-primary { display: block; font-weight: 600; font-size: 12px; }
.job-address-secondary { display: block; margin-top: 3px; font-size: 10px; font-weight: 400; color: var(--muted); }
.workspace-v2 .badge { font-size: 10px; font-weight: 550; border-radius: 5px; padding: 3px 7px; }
.workspace-v2 .order-heading { margin-bottom: 22px; }
.workspace-v2 .order-heading h1 { font-size: 12px; font-weight: 550; color: var(--muted); letter-spacing: 0; margin-bottom: 7px; }
.workspace-v2 .content[data-page="orders"] > .order-heading p { font-size: clamp(23px,2.3vw,31px); font-weight: 650; letter-spacing: -.04em; color: var(--ink); line-height: 1.3; }
.workspace-v2 .page-jumps { padding-bottom: 15px; border-bottom: 1px solid #e0e3e7; gap: 8px; }
.workspace-v2 .page-jumps a { background: transparent; border: 0; border-radius: 6px; color: var(--muted); font-weight: 550; padding: 6px 9px; }
.workspace-v2 .page-jumps a:hover { background: var(--surface); color: var(--ink); }
.order-workspace { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 22px; align-items: start; }
.order-workspace-main, .order-workspace-side { min-width: 0; }
.order-workspace .card { margin-bottom: 19px; }
.order-workspace .field { padding-block: 11px; gap: 14px; font-size: 12px; }
.order-workspace-side .field { flex-wrap: wrap; }
.order-workspace-side .field > span:first-child { color: var(--muted); }
.workspace-v2 .next-step { background: var(--surface); border: 1px solid #dce5c7; border-left: 4px solid var(--ngp-lime); padding: 18px 22px; }
.workspace-v2 .next-step-label { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.order-tools { margin: 0 0 20px; }
.order-tools > summary { display: inline-flex; gap: 14px; cursor: pointer; font-size: 12px; font-weight: 550; color: var(--muted); padding: 4px 0; list-style: none; }
.order-tools-list { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; padding: 15px 19px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; font-size: 12px; }
.workspace-v2 .po-grid { grid-template-columns: minmax(0,1fr) 310px; gap: 0 24px; }
.workspace-v2 .po-main > .card, .workspace-v2 .po-more > .card { padding: 25px; margin-bottom: 22px; }
.workspace-v2 .po-type-card { grid-template-columns: minmax(0,1fr) auto; }
.form-step-heading { display: flex; align-items: flex-start; gap: 13px; margin: 0 0 22px; grid-column: 1 / -1; }
.form-step-heading > span { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #dfe5d3; border-radius: 9px; background: var(--lime-tint); color: var(--lime-ink); font-size: 11px; font-weight: 650; flex-shrink: 0; }
.form-step-heading h2 { margin: 0 0 4px; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.form-step-heading p { margin: 0; font-size: 11px; color: var(--muted); }
.extras-step-heading { padding: 8px 3px 0; }
.workspace-v2 .po-main .label { font-size: 11px; font-weight: 550; }
.workspace-v2 .po-side .po-build { background: var(--surface); padding: 20px; }
.workspace-v2 .po-side .section-title { font-size: 16px; font-weight: 600; }
.workspace-v2 .po-post-col { max-width: 245px; flex-basis: 200px; }
.workspace-v2 .po-build .small { font-size: 10px; }
.workspace-v2 .po-side .po-price { background: var(--surface); border-color: #dbe4c2; border-top: 3px solid var(--ngp-lime); padding: 20px; }
.workspace-v2 .po-map { height: 220px; border-radius: 9px; }
.workspace-v2 .po-more > .grid2 { grid-template-columns: 1fr; }
.workspace-v2 .new-order-choices { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; max-width: 1050px; }
.workspace-v2 .new-order-choices .action-tile { display: grid; grid-template-columns: 56px minmax(0,1fr) 20px; grid-template-rows: auto auto; align-content: center; align-items: center; text-align: left; column-gap: 20px; row-gap: 6px; border-radius: 14px; min-height: 156px; padding: 27px; box-shadow: none; }
.workspace-v2 .new-order-choices .action-icon { grid-column: 1; grid-row: 1 / 3; width: 55px; height: 55px; background: var(--lime-tint); color: var(--lime-ink); border-radius: 13px; }
.workspace-v2 .new-order-choices .action-title { grid-column: 2; grid-row: 1; align-self: end; font-size: 18px; font-weight: 600; letter-spacing: -.025em; }
.workspace-v2 .new-order-choices .action-sub { grid-column: 2; grid-row: 2; align-self: start; font-size: 12px; }
.workspace-v2 .new-order-choices .action-tile::after { content: '↗'; grid-column: 3; grid-row: 1 / 3; color: var(--muted); font-size: 22px; }
.workspace-v2 .action-tile:hover { transform: none; border-color: var(--ngp-lime); background: var(--surface); }
.dispatch-workspace { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 22px; align-items: start; }
.dispatch-workspace-main, .dispatch-workspace-side { min-width: 0; }
.workspace-v2 .dispatch-controls { padding: 18px; gap: 12px; align-items: end; }
.workspace-v2 .dispatch-workspace-main > .tiles { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; margin-bottom: 24px; }
.workspace-v2 .dispatch-workspace-main .stat-tile { min-height: 78px; padding: 12px; }
.workspace-v2 .dispatch-workspace-main .stat-tile .num { font-size: 24px; font-weight: 600; }
.workspace-v2 .dispatch-job { border-left: 3px solid #dce6c6; }
.workspace-v2 .dispatch-job > .section-title { font-size: 10px; font-weight: 550; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.workspace-v2 .dispatch-job > h2 { font-size: 19px; font-weight: 600; letter-spacing: -.025em; margin: 8px 0; }
.workspace-v2 .dispatch-job > p { font-size: 12px; color: var(--ink-2); }
.workspace-v2 .dispatch-signs { border-block: 1px solid #edf0f2; padding-block: 10px; margin-block: 14px; }
.workspace-v2 .dispatch-actions { border-top: 1px solid #edf0f2; padding-top: 13px; }
.dispatch-load-item { display: flex; align-items: center; gap: 10px; border-top: 1px solid #edf0f2; padding: 15px 20px; }
.dispatch-load-item > a, .dispatch-load-item > div:first-child { flex-shrink: 0; }
.dispatch-load-item > div:nth-child(2) { min-width: 0; }
.dispatch-load-item b { display: block; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.dispatch-load-item span { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; }
.dispatch-load-item strong { margin-left: auto; font-weight: 600; font-size: 18px; }
.dispatch-load-summary .home-focus-note { margin-top: 17px; }
.dispatch-full-loading { margin-top: 16px; }
.dispatch-full-loading > summary { cursor: pointer; padding: 13px 2px; font-size: 11px; font-weight: 600; }
.dispatch-full-loading .card { padding: 14px; }
.dispatch-full-loading .table-wrap table { min-width: 850px; }
@container (max-width: 570px) {
  .home-job { grid-template-columns: 36px minmax(0,1fr) 12px; gap: 10px; padding: 16px 20px; }
  .home-job-schedule { grid-column: 2; text-align: left; display: flex; flex-wrap: wrap; gap: 5px 12px; }
  .home-job-schedule b, .home-job-schedule > span { margin: 0; font-size: 10px; }
  .home-job-chevron { grid-column: 3; grid-row: 1 / 3; }
}
@media (min-width: 901px) and (max-width: 1250px) {
  .workspace-v2 .content { padding: 26px 24px 48px; }
  .home-workspace-grid { grid-template-columns: minmax(0,1fr) 250px; gap: 16px; }
  .workspace-v2 .po-type-card { grid-template-columns: 1fr; }
  .workspace-v2 .po-qty-sec { border-left: 0; padding-left: 0; margin-left: 0; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
  .workspace-v2 .po-grid { grid-template-columns: minmax(0,1fr) 280px; gap: 0 18px; }
  .order-workspace, .dispatch-workspace { grid-template-columns: minmax(0,1fr) 280px; gap: 18px; }
  .workspace-heading { align-items: flex-start; }
  .workspace-heading-actions { max-width: 155px; justify-content: end; }
  .workspace-v2 .topbar .topbar-search { max-width: 280px; }
  .workspace-v2 .workspace-context { min-width: 80px; }
}
@media (max-width: 1050px) {
  .home-workspace-grid { grid-template-columns: 1fr; }
  .home-focus-items { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: 0 24px; }
  .workspace-v2 .new-order-choices .action-tile { column-gap: 13px; padding: 23px; }
  .workspace-v2 .new-order-choices .action-title { font-size: 16px; }
}
@media (max-width: 900px) {
  .workspace-v2 .content { padding: 22px 16px calc(100px + env(safe-area-inset-bottom)); }
  .workspace-context { display: none; }
  .workspace-v2 .topbar { height: auto; }
  .workspace-v2 .topbar .topbar-search { flex: 1 1 100%; max-width: none; }
  .workspace-v2 .usermenu .um-name { display: none; }
  .workspace-heading { align-items: flex-start; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
  .workspace-heading h1 { font-size: 28px; }
  .workspace-heading-actions { flex-shrink: 1; }
  .workspace-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .workspace-metric { padding: 15px 15px 11px; }
  .workspace-metric strong { font-size: 28px; }
  .workspace-metric-top { font-size: 11px; }
  .workspace-metric-icon { width: 26px; height: 26px; }
  .workspace-shortcuts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workspace-shortcuts > a { padding: 15px; align-items: flex-start; }
  .workspace-shortcut-arrow { display: none; }
  .order-workspace, .dispatch-workspace { grid-template-columns: 1fr; }
  .workspace-v2 .po-grid { grid-template-columns: 1fr; }
  .workspace-v2 .po-type-card { grid-template-columns: 1fr; }
  .workspace-v2 .po-main > .card, .workspace-v2 .po-more > .card { padding: 20px; }
  .workspace-v2 .po-side .po-price { padding: 13px 16px; }
  .workspace-v2 .po-post-col { max-width: 280px; }
  .workspace-v2 .section-tabs { margin-bottom: 23px; }
  .workspace-v2 .new-order-choices { grid-template-columns: 1fr; }
  .workspace-v2 .new-order-choices .action-tile { min-height: 124px; }
  .workspace-panel-head { padding: 20px; }
  .workspace-v2 .dispatch-workspace-main > .tiles { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 540px) {
  .workspace-v2 .workspace-heading h1 { font-size: 26px; }
  .workspace-shortcuts { grid-template-columns: 1fr; }
  .workspace-shortcuts > a { align-items: center; }
  .workspace-shortcut-arrow { display: inline; }
  .home-work-toolbar { gap: 13px; padding-inline: 20px; }
  .home-work-toolbar a { font-size: 10px; }
  .workspace-panel-head { flex-wrap: wrap; gap: 10px; }
  .workspace-v2 .home-period > summary, .home-all-tools > summary { padding: 17px; }
  .home-all-tools > summary .small { display: block; width: 85%; font-size: 11px; }
  .workspace-v2 .po-type-sec .seg { flex-wrap: wrap; }
}
@media print {
  .workspace-context, .workspace-heading-actions, .order-tools, .home-work-toolbar, .workspace-v2 .workspace-metrics, .workspace-shortcuts { display: none !important; }
  .order-workspace, .dispatch-workspace, .home-workspace-grid { display: block; }
  .dispatch-workspace-side { break-before: page; }
  .workspace-v2 .content { padding: 0; }
  .workspace-v2 .dispatch-job { break-inside: avoid; }
  .dispatch-load-summary, .dispatch-full-loading > summary { display: none !important; }
  .dispatch-full-loading .table-wrap { overflow: visible; }
  .dispatch-full-loading .table-wrap table { min-width: 0; }
  .dispatch-full-loading th, .dispatch-full-loading td { font-size: 9px; padding: 5px; white-space: normal; overflow-wrap: anywhere; }
}
