/* PunchPlus Web — Service Info-Rapide */
:root {
  --bg: #f2f5f9;
  --panel: #ffffff;
  --ink: #15202b;
  --ink-2: #334354;
  --muted: #637384;
  --line: #e2e8ef;
  --line-2: #d3dbe4;
  --accent: #1463b8;
  --accent-2: #0f4f95;
  --accent-soft: #e9f2fc;
  --teal: #20a597;
  --side: #0e2133;
  --side-2: #14304a;
  --side-ink: #c8d6e3;
  --side-muted: #7f97ad;
  --ok: #17804a;
  --ok-bg: #e5f5ec;
  --warn: #9a5a00;
  --warn-bg: #fff2d9;
  --err: #bf3328;
  --err-bg: #fdecea;
  --info: #1463b8;
  --info-bg: #e9f2fc;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 32, 48, .06), 0 2px 8px rgba(16, 32, 48, .04);
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 14px/1.5 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--ink);
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
        stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
svg.i.sm { width: 15px; height: 15px; vertical-align: -3px; }
svg.i.lg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- sidebar */
nav.side {
  background: linear-gradient(180deg, var(--side) 0%, var(--side-2) 100%);
  color: var(--side-ink);
  padding: 18px 12px 24px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 1px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 18px; color: #fff; }
a.brand { text-decoration: none; border-radius: 10px; }
a.brand:hover b { text-decoration: underline; }
.brand .mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
               background: linear-gradient(135deg, var(--teal), #1a7fd1); box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.brand .mark svg { width: 22px; height: 22px; stroke: #fff; }
.brand b { display: block; font-size: 16px; letter-spacing: .1px; white-space: nowrap; }
.brand small { display: block; font-size: 11px; color: var(--side-muted); }
nav.side h4 { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--side-muted);
              margin: 16px 10px 5px; font-weight: 600; }
nav.side a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px;
             color: var(--side-ink); text-decoration: none; }
nav.side a svg { opacity: .8; }
nav.side a:hover { background: rgba(255,255,255,.07); color: #fff; }
nav.side a.on { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 3px 0 0 var(--teal); }
nav.side a.on svg { opacity: 1; color: #6fe0d2; }
nav.side .foot { margin-top: auto; padding: 18px 10px 0; font-size: 11px; color: var(--side-muted); }

/* ---------------------------------------------------------------- main */
main { padding: 0 32px 48px; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 14px; }
.topbar h1 { margin: 0; }
h1 { font-size: 23px; font-weight: 650; margin: 6px 0 16px; letter-spacing: -.2px; display: flex; align-items: center; gap: 10px; }
h1 .sub, h2 .sub { font-weight: 400; color: var(--muted); font-size: 15px; }
h2 { font-size: 15.5px; font-weight: 650; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
h2 svg { color: var(--accent); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 18px 0 14px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

/* filter */
.filter { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
          padding: 10px 14px; margin: 16px 0 6px; display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap;
          position: sticky; top: 8px; z-index: 6; }
.filter .ttl { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); padding-bottom: 7px; margin-right: 4px; }
.filter label { font-size: 11px; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; gap: 3px;
                text-transform: uppercase; letter-spacing: .5px; }
.filter select, .filter input, .toolbar select, .toolbar input { width: auto; min-width: 0; text-transform: none; letter-spacing: 0;
  font-weight: 400; font-size: 13.5px; color: var(--ink); }
.filter label { flex: 1 1 110px; min-width: 0; }
.filter label.br { flex: 0 0 86px; }
.filter label.dt { flex: 0 1 140px; min-width: 124px; }
.filter select, .filter input { width: 100%; }
.filter button { flex: none; }
.filter .ttl { padding-bottom: 9px; }
.filter .sep { color: var(--muted); padding-bottom: 8px; }
.filter .grow { flex: 1; }

/* ---------------------------------------------------------------- cards */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
         padding: 18px 20px; margin-bottom: 16px; }
.panel.flush { padding: 0; overflow: hidden; }
.panel.flush > h2 { padding: 16px 20px 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.grid2 > .panel, .grid3 > .panel { margin-bottom: 0; }
.stack > * + * { margin-top: 16px; }

.tile { display: flex; gap: 14px; align-items: flex-start; }
.tile .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex: none;
            background: var(--accent-soft); color: var(--accent); }
.tile .ic.ok { background: var(--ok-bg); color: var(--ok); }
.tile .ic.err { background: var(--err-bg); color: var(--err); }
.tile .ic.warn { background: var(--warn-bg); color: var(--warn); }
.tile .lbl { color: var(--muted); font-size: 12.5px; }
.stat { font-size: 26px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.2; margin: 2px 0; }
.stat.err { color: var(--err); }

a.card-link { display: flex; gap: 14px; align-items: flex-start; color: inherit; text-decoration: none;
              transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card-link:hover { border-color: #b9cfe6; box-shadow: 0 4px 16px rgba(20, 99, 184, .12); transform: translateY(-1px); }
a.card-link b { display: block; margin-bottom: 2px; }
a.card-link span.d { color: var(--muted); font-size: 13px; }

/* ---------------------------------------------------------------- forms */
input, select, textarea {
  font: inherit; color: inherit; background: #fff;
  border: 1px solid var(--line-2); border-radius: 7px; padding: 6px 9px; width: 100%; min-height: 34px;
  transition: border-color .15s, box-shadow .15s;
}
select { padding-right: 26px; }
input:hover, select:hover { border-color: #b8c4d0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(20, 99, 184, .15); }
input[type=checkbox] { width: 17px; height: 17px; min-height: 0; accent-color: var(--accent); margin: 0; }
input[readonly] { background: #f6f8fa; color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px 16px; }
.fields label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.fields label.wide { grid-column: span 2; }
.fields input, .fields select { font-weight: 400; font-size: 14px; }
.fields label.check { flex-direction: row; align-items: center; gap: 9px; font-weight: 400; font-size: 14px; color: var(--ink);
                      background: #f7f9fb; border: 1px solid var(--line); border-radius: 7px; padding: 7px 10px; align-self: end; min-height: 34px; }
.fields label .hint { font-weight: 400; color: var(--muted); }
.fields label > .lt { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fields label > .lt .hint { font-size: inherit; }
.hint { font-size: 12.5px; color: var(--muted); }

button, .btn {
  font: inherit; font-weight: 600; cursor: pointer; border-radius: 7px; padding: 7px 15px; min-height: 34px;
  border: 1px solid var(--accent); background: var(--accent); color: #fff;
  text-decoration: none; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
button:hover, .btn:hover { background: var(--accent-2); border-color: var(--accent-2); text-decoration: none; }
button.secondary, .btn.secondary { background: #fff; color: var(--ink-2); border-color: var(--line-2); }
button.secondary:hover, .btn.secondary:hover { background: #f4f7fa; border-color: #b8c4d0; }
button.danger, .btn.danger { background: #fff; color: var(--err); border-color: #eab3ad; }
button.danger:hover { background: var(--err-bg); }
button.ghost { background: transparent; border-color: transparent; color: var(--accent); padding: 4px 8px; }
button.ghost:hover { background: var(--accent-soft); }
button.sm, .btn.sm { padding: 4px 10px; min-height: 28px; font-size: 13px; }
button:disabled { opacity: .5; cursor: default; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.actions .right { margin-left: auto; }

/* ---------------------------------------------------------------- tables */
.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
              overflow: auto; margin-bottom: 16px; }
.table-wrap.tall { max-height: calc(100vh - 230px); }
table { border-collapse: separate; border-spacing: 0; width: 100%; }
th, td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 650;
     background: #f7f9fb; position: sticky; top: 0; z-index: 2; white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
td.c, th.c { text-align: center; }
td.t { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
tr.clickable { cursor: pointer; }
tbody tr:hover td { background: #f5f9fd; }
tr.total td { font-weight: 650; background: #f4f7fa; border-top: 1px solid var(--line-2); }
tr.rejected td { background: #fff8f7; }
table.compact td, table.compact th { padding: 5px 9px; }
table input, table select { min-height: 30px; padding: 4px 7px; }
.empty { padding: 28px; text-align: center; color: var(--muted); }

/* ---------------------------------------------------------------- badges */
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 650; padding: 2px 9px;
        border-radius: 20px; white-space: nowrap; line-height: 1.6; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.plain::before { display: none; }
.st-orig, .pill.ok { background: var(--ok-bg); color: var(--ok); }
.st-mod, .pill.warn { background: var(--warn-bg); color: var(--warn); }
.st-err, .pill.err { background: var(--err-bg); color: var(--err); }
.st-auth, .pill.info { background: var(--info-bg); color: var(--info); }
.st-pre { background: #eef1f5; color: #516173; }
.st-man { background: #f6efff; color: #6a3fb0; }
.pill.grey { background: #eef1f4; color: var(--muted); }
.muted { color: var(--muted); }
.late { color: var(--err); font-weight: 650; }
.mono { font-family: var(--mono); }

.flash { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 9px; margin: 14px 0 0;
         background: var(--ok-bg); color: #0f5d35; border: 1px solid #bfe3cd; }
.flash.error { background: var(--err-bg); color: #8f231a; border-color: #f2c2bd; }
.flash.warn { background: var(--warn-bg); color: #7a4700; border-color: #f0d59e; }
.flash svg { margin-top: 2px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 9px;
          background: var(--info-bg); color: #0f4a8a; margin-bottom: 14px; font-size: 13.5px; }
.notice.warn { background: var(--warn-bg); color: #7a4700; }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tabs { display: inline-flex; gap: 2px; background: #e8edf2; padding: 3px; border-radius: 9px; margin-bottom: 12px; }
.tabs a { padding: 5px 13px; border-radius: 7px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 13px; }
.tabs a:hover { background: rgba(255,255,255,.6); }
.tabs a.on { background: #fff; color: var(--accent); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.toolbar { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar label { font-size: 11px; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; gap: 3px;
                 text-transform: uppercase; letter-spacing: .5px; }
.toolbar select, .toolbar input { width: auto; }
.toolbar label.check { flex-direction: row; align-items: center; gap: 7px; text-transform: none; letter-spacing: 0;
                       font-size: 14px; font-weight: 400; color: var(--ink); padding-bottom: 7px; }

/* COM ports */
.ports { display: flex; gap: 8px; flex-wrap: wrap; }
.port { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: #fff;
        border-radius: 9px; padding: 6px 11px; }
.port b { font-family: var(--mono); font-size: 13px; }
.port .d { color: var(--muted); font-size: 12px; }
.port.used { border-color: #9fd6b8; background: #f3fbf6; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #aab6c2; flex: none; }
.dot.ok { background: #22a55b; box-shadow: 0 0 0 3px rgba(34,165,91,.18); }
.dot.missing { background: #d9412f; box-shadow: 0 0 0 3px rgba(217,65,47,.18); }
.portstate { font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.portstate.ok { color: var(--ok); }
.portstate.missing { color: var(--err); }
.portstate.unknown { color: var(--muted); }
select.port-missing { border-color: #e6968d; background: #fff7f6; }
select.port-ok { border-color: #8fd0ab; background: #f6fcf8; }

/* punch day */
.punchtable td, .punchtable th { text-align: center; padding: 6px 5px; }
.punchtable th:first-child, .punchtable td:first-child { text-align: left; padding-left: 14px; white-space: nowrap; }
.punchtable input.tm { text-align: center; font-family: var(--mono); min-width: 62px; padding: 5px 3px; }
.punchtable td.slot { position: relative; }
.punchtable td.slot:last-child { padding-right: 18px; }
.punchtable td.slot button.ins, .punchtable td.slot button.rem {
  position: absolute; z-index: 2; width: 18px; height: 18px; min-height: 0; padding: 0; border-radius: 50%;
  font: 600 13px/16px var(--sans, system-ui); display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); cursor: pointer; box-shadow: none; }
.punchtable td.slot button.ins { left: -9px; top: 50%; transform: translateY(-50%); opacity: .35; }
.punchtable td.slot button.ins.after { left: auto; right: -9px; }
.punchtable td.slot button.rem { right: -2px; top: -4px; width: 16px; height: 16px; font-size: 12px; line-height: 14px; opacity: 0; }
.punchtable tr:hover td.slot button.ins { opacity: .8; }
.punchtable td.slot:hover button.rem, .punchtable td.slot:focus-within button.rem { opacity: .85; }
.punchtable td.slot button.ins:hover, .punchtable td.slot button.ins:focus-visible { opacity: 1; background: var(--accent); color: #fff; border-color: var(--accent); }
.punchtable td.slot button.rem:hover, .punchtable td.slot button.rem:focus-visible { opacity: 1; background: var(--err, #c0392b); color: #fff; border-color: transparent; }
@media (hover: none) { .punchtable td.slot button.ins { opacity: .7; } .punchtable td.slot button.rem { opacity: .6; } }
.punchtable .calc { font-family: var(--mono); color: var(--ink-2); font-size: 13px; }
.bigtotal { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; color: var(--accent); }
.daybar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.who { font-size: 17px; font-weight: 650; }

/* login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; background:
              radial-gradient(1200px 600px at 10% -10%, #1d4f7a 0%, transparent 60%),
              linear-gradient(160deg, #0e2133, #14304a); grid-column: 1 / -1; }
.login { width: 360px; background: #fff; border-radius: 14px; padding: 30px 30px 26px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.login .brand { color: var(--ink); padding: 0 0 18px; }
.login .brand small { color: var(--muted); }

/* reports */
.report-meta { color: var(--muted); margin: -6px 0 16px; display: flex; gap: 16px; flex-wrap: wrap; }
.report-meta span { display: inline-flex; gap: 6px; align-items: center; }
.group { margin-bottom: 18px; }
.group h2 { margin: 0 0 8px; }
.legend { color: var(--muted); font-size: 12.5px; }
.print-head { display: none; }

@media print {
  @page { margin: 0.5in; }
  body { display: block; background: #fff; font-size: 10.5px; }
  nav.side, .filter, .noprint, .flash, .topbar .actions { display: none !important; }
  main { padding: 0; }
  .panel, .table-wrap { border: none; box-shadow: none; padding: 0; overflow: visible; }
  .table-wrap.tall { max-height: none; }
  th { position: static; background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  th, td { padding: 3px 5px; }
  tr { page-break-inside: avoid; }
  .group { page-break-inside: avoid; }
  .print-head { display: block; font-size: 11px; color: #555; margin-bottom: 4px; }
  h1 { font-size: 18px; margin: 0 0 6px; }
}
@media (max-width: 900px) {
  body { grid-template-columns: 1fr; }
  nav.side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 10px; }
  nav.side h4, nav.side .foot { display: none; }
  .brand { width: 100%; padding-bottom: 8px; }
  main { padding: 0 16px 40px; }
  .filter { position: static; }
  .fields label.wide { grid-column: auto; }
}
nav.side a .badge { margin-left: auto; background: var(--teal); color: #fff; font-size: 11px; font-weight: 700;
                    border-radius: 10px; padding: 0 7px; line-height: 18px; }

/* new version banner */
.updbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 16px 0 0; padding: 12px 16px;
          border-radius: 12px; background: linear-gradient(90deg, #0b5cad, #1a7fd1); color: #fff;
          box-shadow: 0 4px 14px rgba(11, 92, 173, .22); }
.updbar-ic { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.16); display: grid; place-items: center; flex: none; }
.updbar-ic svg { stroke: #fff; width: 20px; height: 20px; }
.updbar-txt { flex: 1 1 280px; min-width: 0; }
.updbar-date { opacity: .8; }
.updbar-notes { opacity: .9; font-size: 13px; margin-top: 2px; }
.updbar-btns { display: flex; gap: 8px; flex: none; }
.updbar-btns form { margin: 0; }
.updbar button.updbar-now { background: #fff; color: #0b5cad; border: 0; font-weight: 700; }
.updbar button.updbar-later { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); box-shadow: none; }
.updbar button.updbar-later:hover { background: rgba(255,255,255,.12); }

/* all branches (Home) */
table.dash td { vertical-align: middle; }
table.dash tr.current td { background: var(--info-bg); }
table.dash a.brlink { color: inherit; text-decoration: none; display: inline-flex; gap: 8px; align-items: baseline; }
table.dash a.brlink span { color: var(--muted); }
table.dash a.brlink:hover span { text-decoration: underline; }
.ok-t { color: var(--ok, #1f7a4d); }
h2.section-title { margin: 22px 0 12px; font-size: 18px; display: flex; align-items: center; gap: 8px; }
h2.section-title .sub { color: var(--muted); font-weight: 500; }
table.dash td:first-child { min-width: 170px; }
table.dash a.brlink span { white-space: nowrap; }
th .thsub { text-transform: none; letter-spacing: 0; font-weight: 500; }

/* original hours on the day screen */
details.orig { margin-top: 8px; font-size: 13.5px; }
details.orig summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
tr.origrow td { color: var(--muted); font-size: 13px; }
tr.origrow .chg { background: #fff3c4; color: var(--ink); border-radius: 4px; padding: 1px 4px; }

/* report options and "one per sheet" printing */
.report-opts { display: flex; gap: 10px; flex-wrap: wrap; margin: -6px 0 14px; }
.typechecks { gap: 12px; flex-wrap: wrap; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.grid4 > .panel { margin-bottom: 0; }
.sheet-head { display: none; }
.report-body.sheets .group + .group { border-top: 2px dashed var(--line-2, #c9d3dd); padding-top: 14px; }
@media print {
  .report-body.sheets .group { page-break-after: always; break-after: page; page-break-inside: auto; }
  .report-body.sheets .group:last-child { page-break-after: auto; break-after: auto; }
  .report-body.sheets .group + .group { border-top: 0; padding-top: 0; }
  .report-body.sheets .group + .group .sheet-head { display: none; }   /* the page heading repeats on every page */
}
table.orighist { width: auto; margin-top: 8px; font-size: 12.5px; }
table.orighist th, table.orighist td { padding: 3px 10px 3px 0; border-bottom: 1px solid var(--line); background: none; position: static; }
table.orighist tr.cur td { font-weight: 600; }
form.stale { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; justify-content: flex-end; margin-top: 4px; }
form.stale span.late { white-space: normal; text-align: right; }

/* days list: one day at a time */
.dayview { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 0 0 12px; }
.daynav { display: flex; gap: 6px; align-items: center; }
.daynav .dayname { padding: 0 10px; white-space: nowrap; }
.btn.disabled { opacity: .35; pointer-events: none; }
input.tm.bad { border-color: var(--err, #c0392b); background: #fdecea; }

/* undo and the "changes not saved" box */
.flash form.undo-inline { margin-left: auto; }
.undobar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px;
           padding: 6px 12px; border: 1px dashed var(--line-2, #c9d3dd); border-radius: 10px; font-size: 13px; color: var(--ink-2); }
.undobar form { margin: 0; }
dialog.guard { border: 0; border-radius: 14px; padding: 20px 22px; max-width: 560px; width: calc(100% - 32px);
               box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog.guard::backdrop { background: rgba(15, 25, 35, .45); }
dialog.guard h3 { margin: 0 0 8px; display: flex; gap: 8px; align-items: center; }
dialog.guard p { margin: 0 0 16px; color: var(--ink-2); }

/* reports: numbers the same size, totals 1 pt bigger and bold, aligned under their column */
.report-body td.t, .report-body td.n { font-size: 13px; }
.report-body tr.total td { font-size: 13px; }
.report-body tr.total td.n { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.report-body .grandtotal { font-size: 14.5px; }
.report-body .grandtotal b.n { font-variant-numeric: tabular-nums; }
p.legend.noprint { margin: -4px 0 14px; }
@media print {
  .report-screen-head, .report-meta { display: none !important; }
  .report-body { font-size: 8.5pt; line-height: 1.25; }
  .report-body table th, .report-body table td { padding: 2pt 5pt; white-space: nowrap; }
  .report-body .legend.noprint, .report-body .panel.empty { margin: 0; }
  .report-body th { font-size: 7pt; }
  .report-body td { font-size: 8.5pt; }
  .report-body td.t, .report-body td.n { font-size: 9pt; }
  .report-body tr.total td { font-size: 9pt; }
  .report-body tr.total td.n { font-size: 10pt; font-weight: 700; }
  .report-body .grandtotal { font-size: 10pt; }
  .report-body .group h2 { font-size: 11pt; margin: 0 0 4pt; break-after: avoid; page-break-after: avoid; }
  .report-body .group { break-inside: avoid; page-break-inside: avoid; margin-bottom: 10pt; }
  .report-body.sheets .group { padding-top: 0; }
  .report-body .table-wrap { display: block; overflow: visible; }
  .report-body table { break-inside: auto; }
  .report-body thead { display: table-header-group; }
}

/* a button in a narrow card wraps its label instead of overflowing */
.panel form > button.wrap { white-space: normal; text-align: left; max-width: 100%; }

#hrs.pending { color: var(--muted); }

/* printed report sheets (built by report.html just before printing): US Letter, 0.5 in margins,
   so 7.5 x 10 in per sheet; the same rules are used to measure them on screen and to print */
.pp-pages { position: absolute; left: -30000px; top: 0; width: 7.5in; background: #fff; }
.pp-page { width: 7.5in; height: 9.94in; padding-top: 4pt; box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden; background: #fff; color: #111;
           font: 8.5pt/1.25 system-ui, "Segoe UI", Roboto, Arial, sans-serif; break-after: page; page-break-after: always; }
.pp-page:last-child { break-after: auto; page-break-after: auto; }
.pp-head { flex: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 12pt;
           border-bottom: .75pt solid #777; padding-bottom: 5pt; margin-bottom: 8pt; }
.pp-title { font-size: 13pt; font-weight: 700; }
.pp-meta { font-size: 9pt; text-align: right; color: #222; }
.pp-content { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.pp-foot { flex: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 14pt;
           border-top: .5pt solid #aaa; padding-top: 4pt; margin-top: 4pt; font-size: 7.5pt; color: #333; }
.pp-no { white-space: nowrap; font-size: 8pt; }
.pp-content .panel, .pp-content .table-wrap { border: 0; box-shadow: none; padding: 0; margin: 0; overflow: visible; background: none; max-height: none; }
.pp-content .group { margin: 0 0 9pt; }
.pp-content .group h2 { font-size: 10.5pt; margin: 0 0 3pt; }
.pp-content .group h2 svg { width: 11pt; height: 11pt; }
.pp-content .group + .group .sheet-head, .pp-content .sheet-head { display: none; }
.pp-content table { width: 100%; border-collapse: collapse; }
.pp-content table th, .pp-content table td { padding: 1.8pt 5pt; white-space: nowrap; font-size: 8.5pt; line-height: 1.25;
                                              border-bottom: .5pt solid #ddd; position: static; }
.pp-content table th { font-size: 7pt; background: #eee; color: #444; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pp-content table td.t, .pp-content table td.n { font-size: 9pt; }
.pp-content table td:not(.n):not(.t) { white-space: normal; }
.pp-content table td.t, .pp-content table td.n { white-space: nowrap; }
.pp-content table tr.total td { font-size: 9pt; background: #f4f4f4; border-top: .75pt solid #999; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.pp-content table tr.total td.n { font-size: 10pt; font-weight: 700; }
.pp-content .grandtotal { font-size: 10pt; margin-top: 4pt; }
.pp-content .grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6pt; margin-bottom: 8pt; }
.pp-content .tile .stat { font-size: 14pt; }
.pp-content .muted { color: #555; }
.pp-content .late { color: #b3261e; }
dialog#printask ul.printask-list { margin: 0 0 16px; padding-left: 20px; color: var(--ink-2); }
@media print {
  @page { size: letter portrait; margin: 0.5in; }
  html.paged body { display: block; background: #fff; }
  html.paged body > *:not(.pp-pages) { display: none !important; }
  html.paged .pp-pages { position: static; left: auto; width: auto; }
}

[hidden] { display: none !important; }

/* automatic corrections (teal) */
.st-auto { background: #e2f4f1; color: #0f6e63; }
.st-autoq { background: #fff; color: #0f6e63; box-shadow: inset 0 0 0 1.5px #3aa396; }
.st-cal { background: #eef0ff; color: #3d3fa8; margin-left: 4px; }
.punchtable input.tm.autocell { border-color: #3aa396; background: #e2f4f1; font-weight: 700; }
td.autot, .autot { color: #0f6e63; font-style: italic; text-decoration: underline dotted; text-underline-offset: 2px; }
.autobar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 14px;
           border-radius: 10px; background: #e2f4f1; color: #0b4f47; margin: 0 0 12px; border: 1px solid #b7e1da; }
.autobar.suggest { background: #fff8e8; color: #6b4a00; border-color: #f1dca8; }
.autobar form { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.autobar .what { font-weight: 650; }
.aseq { font-family: var(--mono); font-size: 13px; white-space: normal; min-width: 150px; max-width: 260px; }
.aseq span { white-space: nowrap; }
.aseq .add { color: #0f6e63; font-weight: 700; background: #e2f4f1; border-radius: 4px; padding: 0 3px; }
.aseq .rem { color: var(--err, #b3261e); text-decoration: line-through; }
.pp-content td.autot { color: #0f6e63; font-style: italic; text-decoration: underline dotted; }

table.styles td:first-child { white-space: nowrap; }
table.styles select { min-width: 240px; width: auto; }

/* Home: recent activity, 8 lines then it scrolls */
.activity { max-height: calc(8 * 33px + 2px); overflow-y: auto; border-top: 1px solid var(--line); }
.activity table td { padding: 6px 9px; height: 33px; box-sizing: border-box; }

/* late arrivals report: its own branch and date picker */
.report-pick { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: 0 0 14px; padding: 10px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.report-pick label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.report-pick select, .report-pick input { width: auto; }
.report-pick .presets { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; }
.report-pick .presets .btn.on { background: var(--info-bg); color: var(--info); border-color: currentColor; }

/* printed across the sheet (work schedules): 10 x 7.5 in of printable area */
html.land .pp-pages { width: 10in; }
html.land .pp-page { width: 10in; height: 7.44in; page: land; }
@page land { size: letter landscape; margin: 0.5in; }

/* work schedules */
.sched-tabs { margin: 0 0 14px; }
.schedpanel { padding-bottom: 12px; }
table.sched { border-collapse: separate; border-spacing: 0; width: 100%; table-layout: fixed; }
table.sched th:first-child { width: 150px; }
table.sched th:nth-child(9) { width: 58px; }
table.sched.edit th:nth-child(10) { width: 40px; }
table.sched th { white-space: nowrap; overflow: hidden; }
table.sched th, table.sched td { padding: 6px 7px; vertical-align: top; }
table.sched td.who { font-weight: 650; font-size: 13.5px; overflow-wrap: anywhere; }
table.sched .from { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); }
table.sched .dnum { color: var(--muted); font-weight: 400; }
.shift { font-size: 12.5px; line-height: 1.3; min-width: 0; }
.shift .hrs { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
.shift sup { color: var(--warn); font-weight: 700; }
.shift .bks { display: flex; flex-direction: column; gap: 1px; margin-top: 2px; }
.shift .bk { font-size: 11px; color: var(--ink-2); }
.shift .bk.meal { color: #8a5a00; }
.shift .bk.unpaid::after { content: ""; }
.shift .note { display: block; font-size: 11px; color: var(--muted); font-style: italic; }
.shift.conflict { outline: 2px solid var(--err); outline-offset: 1px; border-radius: 4px; }
table.sched.edit td.cell { padding: 3px; }
.cellbtn { all: unset; box-sizing: border-box; display: block; width: 100%; min-height: 46px; padding: 5px 6px; border-radius: 7px;
  cursor: pointer; border: 1px dashed transparent; }
.cellbtn:hover, .cellbtn:focus-visible { border-color: var(--line-2); background: #f6f9fc; }
.cellbtn:has(.shift) { background: #eef5fc; border: 1px solid #d4e5f6; }
.cellbtn .plus { display: grid; place-items: center; min-height: 34px; color: var(--muted); font-size: 18px; opacity: .45; }
.cellbtn:hover .plus { opacity: 1; }
td.who .wk { display: flex; flex-wrap: wrap; gap: 2px 6px; margin-top: 3px; font-weight: 400; font-size: 11px; color: var(--muted); font-family: var(--mono); }
td.who .wk .on { color: var(--ink); font-weight: 700; }
.weekbar { margin: 4px 0 6px; gap: 10px; flex-wrap: wrap; }
.weekbar .wdate { font-weight: 400; color: var(--muted); font-size: 11.5px; margin-left: 4px; }
.rotset summary { cursor: pointer; }
.shiftdlg, .pickdlg { width: min(640px, 94vw); }
.bklist { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.bkrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 6px 8px; border-radius: 8px; background: #f4f7fa; }
.bkrow.meal { background: #fbf4e6; }
.bkrow .kind { font-weight: 650; font-size: 12.5px; min-width: 52px; }
.bkrow select { width: auto; flex: 1 1 160px; }
.bkrow .at { width: 80px; }
.bkrow .mins input { width: 64px; }
.bkrow label { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; }
.shiftdlg .fl { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; }
.shiftdlg .also { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; font-size: 12.5px; }
.shiftdlg .also > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.shiftdlg .also label.check { display: inline-flex; gap: 4px; align-items: center; font-weight: 400; }
.pklist { max-height: 46vh; overflow: auto; display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.pklist .pk { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 6px; cursor: pointer; }
.pklist .pk:hover { background: #f4f7fa; }
.pklist .pk .from { margin-left: auto; color: var(--muted); font-size: 12px; }
.pklist .pk[hidden] { display: none; }
.depchecks { display: flex; flex-wrap: wrap; gap: 6px 12px; flex-basis: 100%; }
.depchecks .check { display: inline-flex; flex-direction: row; gap: 5px; align-items: center; font-weight: 400; font-size: 13px; }
.report-pick .btn.on { background: var(--info-bg); color: var(--info); }
.pp-page table.sched td, .pp-page table.sched th { padding: 3px 5px; }
.pp-page .shift, .pp-page .shift .hrs { font-size: 10.5px; }
.pp-page .shift .bk { font-size: 9.5px; }
table.sched tr.wsub td { background: #f7f9fb; font-weight: 600; }
table.sched td.off { color: var(--muted); }

/* work schedules: changes just this once, the choice of the dialog */
.oncetag { display: inline-block; margin-top: 3px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px;
  color: #8a4b00; background: #fdebd0; border-radius: 4px; padding: 1px 5px; }
.offonce { display: block; font-size: 12px; color: var(--muted); font-style: italic; }
.cellbtn:has(.oncetag) { background: #fff7ec; border-color: #f3d3a6; }
fieldset.scope { border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 12px 10px; margin: 12px 0 0; display: flex; flex-direction: column; gap: 6px; }
fieldset.scope legend { font-size: 12.5px; font-weight: 650; color: var(--ink-2); padding: 0 4px; }
fieldset.scope label.check { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.danger-text { color: var(--err) !important; }
fieldset.scope input[type=radio] { width: auto; min-height: 0; height: auto; margin: 0; padding: 0; flex: none; box-shadow: none; }
fieldset.scope label.check { flex-direction: row; background: none; border: 0; padding: 2px 0; min-height: 0; font-weight: 400; }
/* the work schedule of the employee (employee page) */
.fmtchecks { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 8px 0 4px 26px; }
.fmtchecks.off { opacity: .45; }
.calsub { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
fieldset.endpick { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
fieldset.endpick legend { font-weight: 600; font-size: 13px; padding: 0; margin-bottom: 6px; width: 100%; float: left; }
fieldset.endpick label.check, .ppsupport label.check { flex-direction: row; background: none; border: 0; padding: 2px 0; min-height: 0; font-weight: 400; display: inline-flex; align-items: center; gap: 6px; }
fieldset.endpick input[type=radio], .ppsupport input[type=radio] { width: auto; min-height: 0; height: auto; margin: 0; padding: 0; flex: none; box-shadow: none; }
fieldset.endpick input[type=date] { width: auto; }
/* technical support: the screen printed, saved as PDF or sent */
.supportbtn { margin: 14px 2px 0; background: rgba(255,255,255,.08); color: var(--side-muted, #c9d3dd); border: 1px solid rgba(255,255,255,.14);
              font-size: 12px; padding: 6px 10px; border-radius: 7px; display: flex; align-items: center; gap: 8px; cursor: pointer; width: calc(100% - 4px); }
.supportbtn:hover { background: rgba(255,255,255,.14); color: #fff; }
dialog.ppsupport { width: min(560px, 92vw); }
.ppsupport #sp-pick label.check { display: flex; align-items: flex-start; margin: 6px 0; }
.ppsupport #sp-pick input[type=radio] { margin-top: 3px; }
.ppsupport .sp-acts { gap: 8px; flex-wrap: wrap; margin: 12px 0 6px; }
.ppsupport form label { display: block; margin: 8px 0; }
.ppsupport textarea, .ppsupport form input { width: 100%; box-sizing: border-box; }
.sp-msg { margin: 8px 0 0; padding: 8px 10px; border-radius: 7px; background: #e2f4f1; color: #0f6e63; }
.sp-msg.bad { background: #fdecea; color: #8a1c13; }
.pp-busy { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); z-index: 2147483000; background: #102a43; color: #fff;
           padding: 10px 18px; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.25); font-size: 14px; }
#shotprint { display: none; }
@media print {
  html.shotprint body > *:not(#shotprint) { display: none !important; }
  html.shotprint body { display: block !important; background: #fff; }
  html.shotprint #shotprint { display: block; }
  html.shotprint #shotprint img { display: block; width: 100%; break-after: page; page-break-after: always; }
  html.shotprint #shotprint img:last-child { break-after: auto; page-break-after: auto; }
}
/* reports: favorites and the report builder */
div.card-link.favcard { display: flex; gap: 10px; align-items: flex-start; padding-right: 8px; }
div.card-link.favcard:hover { border-color: #b9cfe6; box-shadow: 0 4px 16px rgba(20, 99, 184, .12); }
div.card-link.favcard a.fill { flex: 1; display: flex; gap: 14px; align-items: flex-start; color: inherit; text-decoration: none; min-width: 0; }
div.card-link.favcard b { display: block; margin-bottom: 2px; }
div.card-link.favcard span.d { color: var(--muted); font-size: 13px; }
button.star { font-size: 18px; line-height: 1; color: #9aa5b1; padding: 4px 8px; }
button.star.on { color: #e0a100; }
form.inline { display: inline; margin: 0; }
h2.sectionh { font-size: 15px; margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; color: var(--ink-2, #334); }
nav.side a.favlink { font-size: 13px; padding: 5px 10px 5px 14px; }
nav.side a.favlink .favstar { color: #e0a100; width: 16px; text-align: center; }
.builder .colpick { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; }
.builder .pklist { max-height: 320px; min-height: 120px; }
.builder .pkitem { text-align: left; background: #f4f7fa; border: 1px solid var(--line); border-radius: 6px; padding: 5px 9px; font-size: 13px; cursor: pointer; color: inherit; font-weight: 500; }
.builder .pkitem:hover { background: #e7f0fa; }
.builder .pkrow { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.builder .pkrow .pkname { flex: 1; font-weight: 600; font-size: 13px; }
.builder .pkrow select { width: auto; min-height: 0; padding: 3px 6px; font-size: 12.5px; }
.builder .condrow { display: flex; gap: 8px; align-items: center; margin: 6px 0; flex-wrap: wrap; }
.builder .condrow select, .builder .condrow input { width: auto; min-width: 140px; }
.builder .checkrow { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0; }
.builder .checkrow label.check, .builder .fields label.check { flex-direction: row; background: none; border: 0; padding: 2px 0; min-height: 0; font-weight: 400; display: inline-flex; align-items: center; gap: 6px; }
.builder .checkrow label.check input, .builder .fields label.check input { width: auto; min-height: 0; margin: 0; }
.builder label.off { opacity: .45; }
.builder details.deps { margin: 10px 0; }
.builder h3 { font-size: 14px; margin: 14px 0 4px; }
.panel.preview { margin-top: 16px; }
table.custom .aggn { font-weight: 400; text-transform: none; }
@media (max-width: 800px) { .builder .colpick { grid-template-columns: 1fr; } }
/* help: the "?" bubbles and the help screens */
.helpq-main { position: sticky; top: 8px; z-index: 30; height: 0; display: flex; justify-content: flex-end; }
.helpq-main .helpq-wrap { margin-top: 10px; margin-right: -18px; }
.helpq-wrap { position: relative; display: inline-flex; }
.helpq-wrap.inbar { position: absolute; right: 8px; top: 8px; }
form.filter { position: relative; }
.helpq-wrap.dialog { position: absolute; right: 14px; top: 14px; }
dialog { position: fixed; }
dialog .helpq-wrap.dialog { z-index: 2; }
.login { position: relative; }
button.helpq { width: 28px; height: 28px; min-height: 0; padding: 0; border-radius: 50%; border: 1.5px solid #1a7fd1; background: #fff; color: #1a7fd1;
               font-weight: 800; font-size: 15px; line-height: 1; cursor: pointer; box-shadow: 0 2px 6px rgba(20, 60, 110, .15); display: inline-flex; align-items: center; justify-content: center; }
button.helpq:hover { background: #1a7fd1; color: #fff; }
.helppop { position: absolute; right: 0; top: 34px; width: min(340px, 80vw); background: #fff; border: 1px solid var(--line); border-radius: 10px;
           box-shadow: 0 10px 30px rgba(15, 40, 70, .18); padding: 12px 14px; z-index: 40; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; text-align: left; font-weight: 400; color: var(--ink, #111); }
.helppop[hidden] { display: none; }
.helppop b { font-size: 14px; }
.helppop .helptipt { color: #333; line-height: 1.45; }
.helppop a { font-weight: 600; }
.helppop a.muted { font-weight: 400; font-size: 12.5px; }
.helpsearch { display: flex; gap: 8px; max-width: 720px; }
.helpsearch input { flex: 1; }
.helptoc { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; }
.helptoc ol { margin: 0; padding-left: 20px; }
.helptoc li { margin: 6px 0; line-height: 1.4; }
.helptoc li .muted { font-size: 12.5px; }
.helpindex .letters { display: flex; flex-wrap: wrap; gap: 4px 10px; font-weight: 700; }
.helpindex h3 { border-bottom: 1px solid var(--line); margin: 16px 0 6px; }
.helpindex ul { list-style: none; padding: 0; margin: 0; columns: 2 320px; }
.helpindex li { margin: 3px 0; break-inside: avoid; }
.helpindex li > span { font-weight: 600; }
.helphit { padding: 8px 0; border-bottom: 1px solid var(--line); }
.helphit p { margin: 2px 0 0; font-size: 13px; }
.helplayout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; margin-top: 18px; }
.helpside { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; font-size: 13px; }
.helpside h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin: 14px 0 4px; }
.helpside a { display: block; padding: 3px 6px; border-radius: 5px; color: inherit; text-decoration: none; }
.helpside a.on { background: #e7f0fa; color: #1463b8; font-weight: 600; }
.helpside a:hover { background: #f1f5f9; }
.helpdoc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 30px 30px; max-width: 900px; line-height: 1.6; }
.helpdoc h1 { margin: 0 0 6px; }
.helpdoc h2 { margin: 28px 0 8px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 19px; }
.helpdoc h3 { margin: 18px 0 6px; font-size: 16px; }
.helpdoc .helptip { font-size: 15px; color: #344; background: #f2f7fc; border-left: 4px solid #1a7fd1; padding: 8px 12px; border-radius: 4px; }
.helpdoc .helpnote { background: #fff8e5; border-left: 4px solid #e0a100; padding: 8px 12px; border-radius: 4px; margin: 10px 0; }
.helpdoc table.helptable td, .helpdoc table.helptable th { white-space: normal; vertical-align: top; }
.helpdoc .helpmini { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; margin: 10px 0; padding: 8px 12px; background: #f7f9fb; border-radius: 8px; }
.helpdoc code { background: #f1f3f5; padding: 1px 5px; border-radius: 4px; }
.helpnav { margin-top: 26px; gap: 8px; }
@media (max-width: 900px) { .helplayout { grid-template-columns: 1fr; } .helpside { position: static; max-height: none; } }
@media print { .helplayout { display: block; } .helpdoc { border: 0; padding: 0; } .helpq-main, .helpq-wrap { display: none !important; } }
/* import from other clocks */
.convmap .fields label.check { flex-direction: row; background: none; border: 0; padding: 2px 0; min-height: 0; font-weight: 400; display: inline-flex; align-items: center; gap: 6px; }
.convmap .fields label.check input { width: auto; min-height: 0; margin: 0; }
.cvgrid { display: flex; flex-direction: column; gap: 10px; }
.cvrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cvrow > b { width: 190px; }
.cvrow select, .cvrow input { width: auto; min-width: 150px; }
.cvrow [hidden] { display: none !important; }
.cvrow span { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
table.sample td { white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
tr.cvbad td { background: #fdf3f2; }

/* Today's punches (1.23) */
.toolbar .grow { flex: 1; }
.tp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.tp-kpis > .panel { margin: 0; padding: 12px 16px; }
.tp-chip { display: inline-block; font-family: var(--mono); font-size: 12.5px; padding: 1px 7px; margin: 1px 4px 1px 0;
           border-radius: 6px; border: 1px solid var(--line-2); background: #fff; white-space: nowrap; }
.tp-chip.in { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.tp-chip.out { background: #eef1f4; border-color: transparent; color: var(--ink-2); }
table tfoot td { border-top: 2px solid var(--line-2); background: #f7f9fb; }
@media print {
  .tp-kpis { grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 8px; }
  .tp-kpis > .panel { padding: 4px 6px; border: 1px solid #ccc; }
  .tp-kpis .stat { font-size: 15px; }
  .tp-chip { border: 1px solid #999 !important; background: #fff !important; color: #000 !important; }
}
/* Clocks: PunchClock program updates (1.26) */
.pc-upd { margin: 0 20px 14px; padding: 10px 14px; border: 1px solid var(--line, #dde3ec); border-radius: 8px; background: var(--panel2, rgba(0,0,0,.02)); }
.pc-upd form { margin: 0; }
@media print { .pc-upd { display: none; } }
nav.side a .badge.warn { background: #c77700; }
/* Punches on hold (1.26) */
.hold-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 10px 0 14px; }
.hold-why > div { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.hold-why .big { font-size: 22px; font-weight: 700; }
.hold-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.hold-acts form { margin: 0; display: flex; gap: 8px; align-items: flex-end; }
/* PunchClock health (1.27) */
svg.hspark { width: 100%; max-width: 620px; height: auto; display: block; margin-top: 4px; }
svg.hspark path { fill: none; stroke: var(--teal, #0f766e); stroke-width: 2; }
svg.hspark line { stroke-dasharray: 4 4; stroke-width: 1; }
svg.hspark line.g70 { stroke: #d39b20; } svg.hspark line.g80 { stroke: #c0392b; }
svg.hspark text { font-size: 10px; fill: #7a8696; }
/* PunchClock display: settings and preview (1.28) */
.cd-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.cd-set { min-width: 0; overflow-x: auto; }
@media (max-width: 1250px) { .cd-wrap { grid-template-columns: 1fr; } .cd-wrap > :last-child { max-width: 640px; } }
.cd-table input[type=color] { width: 46px; height: 30px; padding: 2px; border-radius: 6px; }
.cd-table input[type=color].cd-bad { outline: 3px solid #c0392b; }
.cd-table select { min-width: 0; }
.cd-screen { position: relative; width: 100%; aspect-ratio: 800 / 480; background: #000; border: 10px solid #1d1f22;
  border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.25); font-family: "DejaVu Sans", Arial, sans-serif; }
.cd-night { position: absolute; color: #5a5a5a; font-weight: 700; white-space: nowrap; }
.cd-line { position: absolute; left: 2%; right: 2%; display: flex; align-items: center; overflow: hidden; }
.cd-line span { white-space: nowrap; font-weight: 700; line-height: 1.05; }
.cd-line[data-it=location] span, .cd-line[data-it=date] span, .cd-line[data-it=name] span, .cd-line[data-it=clock] span, .cd-line[data-it=version] span { font-weight: 400; }
/* Getting started, company (1.29) */
.start-steps { list-style: none; margin: 0; padding: 0; }
.start-steps li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.start-steps li:last-child { border-bottom: none; }
.start-steps .st { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  background: #e8eef7; color: #1f3a6b; }
.start-steps li.done .st { background: #d9f2e3; color: #137a3a; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 22px; }
tr.newrow td { background: #f7faf8; }
