/* 360 HR - same look as 360 EP (colours, top bar, cards) so the intranet feels like one site */
:root {
  --ink: #16202b; --muted: #5d6b7a; --line: #dfe4ea; --bg: #f4f6f8; --card: #ffffff;
  --brand: #1f4268; --brand-2: #2b6299; --accent: #c8a24a;
  --green: #3e8e1d; --green-bg: #e8f5df; --red: #b3261e; --red-bg: #fbe9e7; --amber: #8a5a00; --amber-bg: #fff4d6; --blue-bg: #e3f0fb;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand-2); }
header.top { background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(10,25,45,.25); border-bottom: 3px solid var(--accent); }
header.top .bar { max-width: 1800px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 6px; }
.brand .logo img { display: block; width: 45px; height: 44px; }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: .02em; }
details.branch { position: relative; }
details.branch > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 17px; letter-spacing: .02em; padding: 6px 8px; border-radius: 8px; border: 1px solid transparent; user-select: none; }
details.branch > summary::-webkit-details-marker { display: none; }
details.branch > summary:hover, details.branch[open] > summary { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); }
details.branch .caret { opacity: .85; transition: transform .15s; }
details.branch[open] .caret { transform: rotate(180deg); }
.branch-list, .acct-list { position: absolute; top: calc(100% + 8px); background: #fff; color: var(--ink); border-radius: 10px; box-shadow: 0 10px 30px rgba(10,25,45,.28); min-width: 250px; padding: 6px; z-index: 60; }
.branch-list { left: 0; }
.branch-head { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 6px 10px 4px; }
.branch-list a { display: grid; grid-template-columns: 1fr auto; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.branch-list a small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.branch-list a:hover { background: var(--blue-bg); }
.branch-list a.on { background: #f1f4f8; }
.branch-list .tick { color: var(--green); font-weight: 700; }
header.top nav { display: flex; gap: 4px; flex: 1; align-items: center; }
header.top nav a { color: #d6e2ee; text-decoration: none; padding: 6px 11px; font-size: 14px; border-bottom: 2px solid transparent; }
header.top nav a:hover { color: #fff; border-bottom-color: rgba(200,162,74,.5); }
header.top nav a.on { color: #fff; border-bottom-color: var(--accent); }
.nav-head, .nav-close, .hamb { display: none; }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--brand); font-size: 12px; font-weight: 700; text-align: center; }
details.acct { position: relative; margin-left: auto; }
details.acct > summary { list-style: none; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--brand); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }
details.acct > summary::-webkit-details-marker { display: none; }
.acct-list { right: 0; }
.acct-name { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: flex; flex-direction: column; }
.acct-name small { color: var(--muted); }
.acct-list a, .acct-list button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); background: none; border: 0; font: inherit; cursor: pointer; }
.acct-list a:hover, .acct-list button:hover { background: var(--blue-bg); }
main { max-width: 1800px; margin: 0 auto; padding: 18px 16px 60px; }
main.narrow { max-width: 760px; }
@media (min-width: 1024px) { header.top .bar, main { padding-left: 24px; padding-right: 24px; } }
h1 { font-size: 22px; margin: 4px 0 14px; }
h2 { font-size: 17px; margin: 22px 0 10px; }
h3 { font-size: 15px; margin: 0 0 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.flash { background: var(--green-bg); border: 1px solid #b9dca5; color: #24520f; padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; }
.flash.bad, .errors { background: var(--red-bg); border: 1px solid #f0b8b2; color: var(--red); }
.errors { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }
.errors ul { margin: 0; padding-left: 18px; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; } .row > * { flex: 1 1 180px; }
label { display: block; font-weight: 600; font-size: 13px; margin: 0 0 4px; color: #2e3b49; }
.field { margin-bottom: 12px; } .field .help { font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 3px; }
input[type=text], input[type=email], input[type=tel], input[type=search], input[type=number], input[type=date], input[type=file], select, textarea {
  width: 100%; padding: 10px 11px; border: 1px solid #c8d0d9; border-radius: 8px; font: inherit; background: #fff; color: var(--ink); min-height: 42px; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid #8bb8e0; border-color: #5d95c7; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; margin: 6px 0 12px; } .check input { width: 20px; height: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--brand-2); background: var(--brand-2); color: #fff; padding: 10px 16px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 42px; }
.btn.secondary { background: #fff; color: var(--brand-2); }
.btn.danger { background: #fff; color: var(--red); border-color: #e3a9a4; }
.btn.small { padding: 5px 10px; min-height: 32px; font-size: 13px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.head-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 10px; }
.head-row h1 { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink); border-top: 4px solid var(--brand-2); }
.tile b { display: block; font-size: 28px; line-height: 1.1; } .tile span { color: var(--muted); font-size: 13px; }
.tile.red { border-top-color: var(--red); } .tile.amber { border-top-color: var(--accent); } .tile.green { border-top-color: var(--green); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 14px; }
table.list { width: 100%; border-collapse: collapse; background: var(--card); }
table.list th, table.list td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px; }
table.list th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #f8fafc; }
table.list tr:hover td { background: #fafcfe; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.pill { display: inline-block; padding: 1px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #eef2f6; color: #3a4a5a; }
.pill.active, .pill.ok, .pill.no_expiry, .pill.verified { background: var(--green-bg); color: var(--green); }
.pill.onboarding, .pill.applicant { background: var(--blue-bg); color: var(--brand-2); }
.pill.leave, .pill.expiring, .pill.pending { background: var(--amber-bg); color: var(--amber); }
.pill.terminated, .pill.expired, .pill.rejected { background: var(--red-bg); color: var(--red); }
.pill.inactive { background: #eef0f2; color: #6b7785; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 6px 0 16px; overflow-x: auto; }
.tabs a { padding: 9px 14px; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; font-weight: 600; font-size: 14px; }
.tabs a.on { color: var(--brand); border-bottom-color: var(--accent); }
.tabs a .n { color: var(--muted); font-weight: 400; }
dl.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 18px; margin: 0; }
dl.facts div { padding: 7px 0; border-bottom: 1px dashed var(--line); }
dl.facts dt { font-size: 12px; color: var(--muted); } dl.facts dd { margin: 0; font-weight: 600; }
.person-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; flex: 0 0 auto; }
.person-head h1 { margin: 0; } .person-head .sub { color: var(--muted); font-size: 14px; }
.note { border-left: 4px solid var(--brand-2); padding: 10px 12px; background: #fbfcfe; border-radius: 0 8px 8px 0; margin-bottom: 10px; white-space: pre-wrap; }
.note.disciplinary, .note.termination { border-left-color: var(--red); } .note.commendation { border-left-color: var(--green); } .note.attendance, .note.performance { border-left-color: var(--accent); }
.note .meta { font-size: 12px; color: var(--muted); margin-bottom: 4px; white-space: normal; }
.task { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); }
.task form { margin: 0; } .task button.box { width: 24px; height: 24px; border-radius: 6px; border: 2px solid #9fb0c2; background: #fff; cursor: pointer; padding: 0; color: #fff; font-weight: 700; }
.task.done button.box { background: var(--green); border-color: var(--green); }
.task.done .t { color: var(--muted); text-decoration: line-through; }
.task .who { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.bar-prog { height: 8px; background: #e6ebf0; border-radius: 6px; overflow: hidden; min-width: 80px; } .bar-prog i { display: block; height: 100%; background: var(--green); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; } .filters > * { flex: 0 1 200px; } .filters input[type=search] { flex: 1 1 260px; }
.empty { color: var(--muted); padding: 14px; text-align: center; }
.login-box { max-width: 420px; margin: 8vh auto; } .login-logo { display: block; width: 96px; margin: 0 auto 14px; } .login-box h1 { text-align: center; }
.key-box { font-family: ui-monospace, Consolas, monospace; background: #fffbea; border: 1px dashed var(--accent); padding: 10px; border-radius: 8px; word-break: break-all; }
details.add > summary { cursor: pointer; font-weight: 600; color: var(--brand-2); margin-bottom: 10px; }
.inline-form { display: inline; }
@media (max-width: 900px) {
  .hamb { display: inline-flex; background: none; border: 0; color: #fff; padding: 4px; cursor: pointer; }
  header.top .bar { gap: 8px; padding: 6px 10px; }
  header.top nav { position: fixed; top: 0; left: 0; bottom: 0; width: 280px; max-width: 85vw; background: var(--brand); flex-direction: column; align-items: stretch; padding: 14px; transform: translateX(-105%); transition: transform .2s; z-index: 70; }
  header.top nav.open { transform: none; box-shadow: 4px 0 20px rgba(0,0,0,.3); }
  header.top nav a { padding: 12px 10px; border-bottom: 0; border-radius: 8px; font-size: 16px; }
  header.top nav a.on { background: #2b5a8a; box-shadow: inset 3px 0 0 var(--accent); }
  .nav-head { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #b9c8d8; padding: 6px 10px 10px; }
  .nav-close { display: block; position: absolute; right: 10px; top: 8px; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }
  body.nav-open header.top { z-index: 80; } /* the menu sits above the dimmed page */
  .nav-back { position: fixed; inset: 0; background: rgba(10,20,35,.4); z-index: 65; }
  .brand .logo img { width: 38px; height: 37px; }
  .grid2 { grid-template-columns: 1fr; }
  table.list.stack thead { display: none; }
  table.list.stack tr { display: block; border-bottom: 1px solid var(--line); padding: 6px 0; }
  table.list.stack td { display: block; border: 0; padding: 3px 12px; }
  table.list.stack td.nil { display: none; }
  table.list.stack td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); font-size: 12px; }
}

/* ---- like 360 EP (Vlad 11/14): back button, refresh, settings gear, save bar, sortable columns ---- */
.backbtn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px 6px 10px; margin: 0 0 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--brand-2); font-weight: 600; font-size: .92em; line-height: 1.2; text-decoration: none; box-shadow: 0 1px 2px rgba(16,24,40,.06); max-width: 100%; }
.backbtn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.backbtn:hover { background: #eef3f8; border-color: #b9cadb; }
.backbtn:hover svg { transform: translateX(-2px); } .backbtn svg { transition: transform .12s; }
.soft-refresh { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex: 0 0 auto; }
.soft-refresh:hover { background: rgba(255,255,255,.12); }
.soft-refresh.spin svg { animation: srSpin .8s linear infinite; } .soft-refresh.done { color: #9be37a; }
@keyframes srSpin { to { transform: rotate(360deg); } }
details.gearmenu { position: relative; margin-left: -14px; } /* sits right after Incidents in the menu */
header.top .soft-refresh { margin-left: auto; }
details.gearmenu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 2px; color: #d6e2ee; padding: 8px; border-radius: 8px; }
details.gearmenu > summary::-webkit-details-marker { display: none; }
details.gearmenu > summary:hover, details.gearmenu[open] > summary, details.gearmenu > summary.on { color: #fff; background: rgba(255,255,255,.1); }
.gear-caret { font-size: 10px; opacity: .8; }
.gear-list { position: absolute; left: 0; top: calc(100% + 8px); background: #fff; color: var(--ink); border-radius: 10px; box-shadow: 0 10px 30px rgba(10,25,45,.28); min-width: 230px; padding: 6px; z-index: 60; }
.gear-list a { display: block; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.gear-list a small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.gear-list a:hover { background: var(--blue-bg); }
details.acct { margin-left: 2px; }
.nav-sub, .nav-set { display: none; }
.sr-toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; font-size: 14px; z-index: 220; box-shadow: 0 6px 20px rgba(10,25,45,.3); }
.save-bar { position: sticky; bottom: 10px; z-index: 30; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff8e8; border: 1px solid #e2b04a; border-radius: 10px; padding: 8px 12px; margin-top: 12px; box-shadow: 0 6px 18px -8px rgba(10,25,45,.35); }
.save-bar[hidden], .actions.sb-hide { display: none; }
.save-bar > .small { flex: 1 1 auto; color: #8a5300; font-weight: 600; }
th.sortable a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
th.sortable a:hover { color: var(--brand-2); }
th.sortable .sort-ind { font-size: 10px; opacity: .45; } th.sortable.on .sort-ind { opacity: 1; color: var(--brand-2); } th.sortable.on { color: var(--ink); }
.note-body { white-space: pre-wrap; line-height: 1.5; }
.card.disc { border-left: 4px solid var(--brand-2); } .card.disc.final, .card.disc.suspension, .card.disc.termination { border-left-color: var(--red); } .card.disc.written { border-left-color: var(--accent); }
.pill.inc-open { background: var(--red-bg); color: var(--red); } .pill.inc-review { background: var(--amber-bg); color: var(--amber); } .pill.inc-closed { background: var(--green-bg); color: var(--green); }
@media (max-width: 900px) {
  details.gearmenu { display: none; } /* phones: the settings links are in the slide-in menu */
  .soft-refresh { margin-left: auto; }
  .nav-sub { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #b9c8d8; padding: 14px 10px 4px; border-top: 1px solid rgba(255,255,255,.15); margin-top: 8px; }
  header.top nav a.nav-set { display: block; font-size: 15px; padding: 9px 10px; }
}

/* ---- top menu: same as 360 EP ---- */
header.top nav { gap: 30px; align-items: center; margin-left: 22px; }
header.top nav a { background: none; color: #c9d6e3; border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 4px 1px 5px; font-size: 14.5px; font-weight: 600; letter-spacing: .01em; }
header.top nav a:hover { background: none; color: #fff; border-bottom-color: rgba(200,162,74,.45); }
header.top nav a.on, header.top nav a.on:hover { background: none; color: #fff; border-bottom-color: var(--accent); }
@media (max-width: 900px) {
  header.top nav { width: min(300px, 82vw); padding: 64px 14px 20px; gap: 8px; margin-left: 0; align-items: stretch; }
  header.top nav a { padding: 12px 16px; font-size: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; color: #e6eef6; }
  header.top nav a:hover { background: rgba(255,255,255,.14); border-bottom-color: rgba(255,255,255,.14); }
  header.top nav a.on, header.top nav a.on:hover { background: #3f6690; border: 1px solid #6d90b5; border-left: 4px solid var(--accent); color: #fff; }
  .nav-close { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; }
}

/* ---- undo bar ---- */
.undo-bar { position: fixed; left: 16px; bottom: 16px; z-index: 65; display: flex; align-items: center; gap: 12px; max-width: min(640px, calc(100vw - 32px)); background: #1d2a39; color: #fff; border-radius: 10px; padding: 10px 10px 10px 16px; box-shadow: 0 8px 24px rgba(10,20,35,.35); font-size: 14px; transition: opacity .35s, transform .35s; }
.undo-bar.gone { opacity: 0; transform: translateY(10px); }
.undo-bar .ut-txt { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.undo-bar form { margin: 0; }
.undo-btn { background: var(--accent); color: #13283f; border: 0; border-radius: 7px; padding: 7px 14px; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.undo-x { background: none; border: 0; color: #c9d6e3; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }
@media (max-width: 600px) { .undo-bar { left: 10px; right: 10px; bottom: 10px; max-width: none; } }

/* ---- contractors ---- */
.pill.con-active { background: #e3f3e6; color: #1e6b33; }
.pill.con-approved { background: #e6eef8; color: #2a5585; }
.pill.con-review { background: #fff4d6; color: #7a5a00; }
.pill.con-inactive { background: #eceef1; color: #5b6470; }
.pill.con-do_not_use { background: #fbe4e4; color: #9b2424; }
.avatar.con-av { border-radius: 10px; background: #2c4a6b; }


/* search / filter bar stays on top while scrolling (under the menu bar) */
.filters { position: sticky; top: var(--hdr, 62px); z-index: 40; background: var(--bg); padding: 10px 0; margin: -4px 0 8px; }
.filters > select { flex: 0 1 150px; min-width: 0; } .filters input[type=search] { flex: 1 1 200px; } .filters > .btn { flex: 0 0 auto; padding-left: 18px; padding-right: 18px; }
/* column headings stick under the search bar too (wide screens, where the table fits without side-scrolling) */
@media (min-width: 901px) {
  .filters + .tablewrap, .filters ~ .tablewrap { overflow: visible; }
  .filters ~ .tablewrap table.list thead th { position: sticky; top: calc(var(--hdr, 62px) + var(--fh, 60px)); z-index: 30; box-shadow: 0 1px 0 var(--line); }
  .filters ~ .tablewrap table.list thead th:first-child { border-top-left-radius: var(--radius); } .filters ~ .tablewrap table.list thead th:last-child { border-top-right-radius: var(--radius); }
}
.pill.dnc { background: #fbe4e4; color: #9b2424; font-weight: 700; }
.pill.pos { background: #e8eef6; color: #23466e; font-weight: 600; margin: 0 2px 2px 0; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 4px 0; }
#results.loading { opacity: .55; transition: opacity .15s .1s; }
/* the count after a page title (Employees 140) - gold circle like the menu badges */
h1 .count { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 9px; margin-left: 6px; border-radius: 15px; background: var(--accent); color: var(--brand); font-size: 14px; font-weight: 800; vertical-align: middle; line-height: 1; }
/* quick summary after the title: green active, gray inactive / good to use, red terminated / do not use */
.sumchips { display: inline-flex; gap: 8px; margin-left: 14px; vertical-align: middle; flex-wrap: wrap; }
.sumchip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; border: 1px solid transparent; line-height: 1.2; }
.sumchip b { font-weight: 800; }
.sumchip.g { background: #e3f3e6; color: #1e6b33; } .sumchip.x { background: #eceef1; color: #4d5663; } .sumchip.r { background: #fbe4e4; color: #9b2424; }
.sumchip:hover { filter: brightness(.96); text-decoration: none; } .sumchip.on { border-color: currentColor; }
@media (max-width: 600px) { .sumchips { display: flex; margin: 8px 0 0; } }
/* the gear's list sits inside the top menu now - keep its links dark on white */
header.top nav .gear-list a, header.top nav .gear-list a:hover { display: block; color: var(--ink); background: none; border: 0; border-radius: 8px; padding: 9px 10px; font-size: 14px; font-weight: 600; letter-spacing: 0; }
header.top nav .gear-list a:hover { background: var(--blue-bg); }
header.top nav .gear-list a small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }

/* Compact controls, same sizes as 360 EP (Vlad 11/15): search / filter bars 34px, page-top buttons 32px */
.filters input[type=search], .filters input[type=text], .filters input[type=date], .filters select { padding: 5px 8px; min-height: 34px; height: 34px; font-size: 14px; }
.filters .btn { padding: 0 14px; min-height: 34px; height: 34px; font-size: 14px; }
.filters { gap: 8px; padding: 8px 0; }
.head-row .btn, .head-row .actions .btn { padding: 5px 12px; min-height: 32px; font-size: 13px; }
h1 .count { min-width: 26px; height: 26px; padding: 0 8px; font-size: 13px; }
.sumchip { padding: 3px 10px; font-size: 12.5px; }

/* Admin phone preview (like 360 EP) */
.menu-device { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.seg-toggle { display: inline-flex; border: 1px solid #c8d0d9; border-radius: 7px; overflow: hidden; }
.acct-list .seg-toggle a { display: inline-block; padding: 4px 10px; font-size: 13px; color: var(--ink); text-decoration: none; background: #fff; border-radius: 0; width: auto; margin: 0; }
.acct-list .seg-toggle a + a { border-left: 1px solid #c8d0d9; }
.acct-list .seg-toggle a.on-desktop, body.in-frame .acct-list .seg-toggle a.on-phone { background: var(--brand-2); color: #fff; }
body.in-frame .acct-list .seg-toggle a.on-desktop { background: #fff; color: var(--ink); }
body.phone-preview-page { background: #2b3a4a; margin: 0; min-height: 100vh; }
.pp-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 6px 16px; background: var(--brand); color: #fff; }
.pp-bar select { width: auto; min-height: 34px; padding: 4px 8px; }
.pp-form { margin: 0; }
.pp-hint { font-size: 13px; color: #b9c8d8; flex: 1 1 260px; }
.pp-stage { display: flex; justify-content: center; padding: 24px 12px 40px; }
.pp-phone { background: #0d141c; border-radius: 38px; padding: 14px 12px; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.pp-phone iframe { display: block; border: 0; border-radius: 26px; background: #fff; }
/* phones: filters in two even columns, search on its own line, and not pinned (it would cover half the screen) */
@media (max-width: 600px) {
  .filters { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .filters > * { min-width: 0; width: 100%; }
  .filters input[type=search] { grid-column: 1 / -1; }
}
