:root {
  --blue: #173f78;
  --blue-2: #1f5299;
  --blue-soft: #e8eef8;
  --red: #c4372d;
  --road: #8a929c;
  --bg: #f2f4f7;
  --card: #ffffff;
  --text: #17202a;
  --muted: #5f6b78;
  --border: #dbe1e8;
  --ok: #17804a;
  --ok-soft: #e3f3ea;
  --warn: #a35d00;
  --warn-soft: #fff1dc;
  --bad: #b42318;
  --bad-soft: #fde8e6;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --nav-h: 64px;
  --primary: var(--blue);
  --line: var(--border);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px);
}
a { color: var(--blue-2); }
h1 { font-size: 1.45rem; margin: .2rem 0 .8rem; line-height: 1.2; }
h2 { font-size: 1.12rem; margin: 1.2rem 0 .6rem; }
h3 { font-size: 1rem; margin: .2rem 0 .6rem; }
.card h2:first-child, .card h1:first-child { margin-top: 0; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
[hidden] { display: none !important; }

/* header */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: var(--blue); color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.logo {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 9px;
  background: #fff; color: var(--blue); font-weight: 900; letter-spacing: -.5px; font-size: 15px;
}
.logo.big { width: 56px; height: 56px; font-size: 21px; border-radius: 12px; background: var(--blue); color: #fff; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { opacity: .75; font-size: .75rem; }
.stripe { height: 5px; background: var(--red); position: sticky; top: 58px; z-index: 19; }
.stripe span { display: block; height: 2px; background: var(--road); position: relative; top: 5px; }
.brand { flex: none; }
.top-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.me { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: .9rem; min-width: 0; }
.me-name { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 420px) { .me-name { display: none; } .topbar { gap: 8px; } }
.lang { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: #fff; }
.lang button { border: 0; background: transparent; padding: 6px 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.lang button.on { background: var(--blue); color: #fff; }

/* nav */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex;
  background: #fff; border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom); height: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
.nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-decoration: none; color: var(--muted); font-size: .74rem; font-weight: 600;
}
.nav a.on { color: var(--blue); }
.nav a.on .ic { stroke-width: 2.5; }
.ic { width: 22px; height: 22px; flex: none; vertical-align: -5px; }
.btn .ic { width: 20px; height: 20px; }
.chip .ic { width: 14px; height: 14px; vertical-align: -2px; }

@media (min-width: 900px) {
  body { padding-bottom: 32px; }
  .nav { position: sticky; top: 65px; bottom: auto; height: 52px; border-top: 0; border-bottom: 1px solid var(--border); justify-content: center; padding: 0; }
  .nav a { flex: 0 0 auto; flex-direction: row; gap: 8px; padding: 0 18px; font-size: .92rem; }
  .nav a.on { box-shadow: inset 0 -3px 0 var(--blue); }
}

/* layout */
.view { max-width: 760px; margin: 0 auto; padding: 16px; }
.loading { padding: 40px 0; text-align: center; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 0 0 12px; box-shadow: var(--shadow); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; margin: 0 0 6px; flex-wrap: nowrap; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-width: 0; }
.section-head h1 { min-width: 0; overflow-wrap: anywhere; }
.section-head .btn { flex: none; }
.section-head h1, .section-head h2 { margin-bottom: .6rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .grid2 { grid-template-columns: 1fr; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent;
  border-radius: 12px; padding: 12px 18px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
  min-height: 48px; transition: transform .05s ease, filter .15s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.success { background: var(--ok); color: #fff; }
.btn.danger { background: var(--red); color: #fff; }
.btn.ghost { background: #fff; color: var(--blue); border-color: var(--border); }
.btn.small { min-height: 38px; padding: 7px 12px; font-size: .9rem; }
.btn.block { display: flex; width: 100%; margin: 10px 0; }
.btn.icon { min-height: 40px; width: 40px; padding: 0; }
.btn.huge { width: 100%; min-height: 76px; font-size: 1.3rem; border-radius: 16px; margin: 14px 0 6px; }
.btn.huge .ic { width: 28px; height: 28px; }
.link { background: none; border: 0; color: var(--blue-2); font: inherit; font-weight: 600; cursor: pointer; padding: 4px 0; text-decoration: underline; }
.btn.file { position: relative; overflow: hidden; }
.btn.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* forms */
.form label { display: block; font-weight: 600; font-size: .92rem; margin: 0 0 12px; }
.form input:not([type=checkbox]), .form select, .form textarea, select, .search {
  display: block; width: 100%; margin-top: 5px; padding: 12px; border: 1px solid var(--border); border-radius: 10px;
  font: inherit; font-weight: 400; background: #fff; color: var(--text); min-height: 48px;
}
select { width: auto; }
.form select { width: 100%; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(31, 82, 153, .25); border-color: var(--blue-2); }
.pw { display: flex; gap: 8px; align-items: center; }
.pw input { flex: 1; }
.form-error { color: var(--bad); background: var(--bad-soft); padding: 10px 12px; border-radius: 10px; font-weight: 600; }
fieldset { border: 1px solid var(--border); border-radius: 12px; margin: 0 0 12px; padding: 10px 12px; }
legend { font-weight: 700; padding: 0 6px; }
.check { display: flex !important; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.check input { width: 22px; height: 22px; }
.checks { display: grid; gap: 6px; }
.inline { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.search { margin: 0 0 12px; }
.kt-msg.good { color: var(--ok); font-weight: 700; }
.kt-msg.bad { color: var(--bad); font-weight: 700; }

/* auth */
.auth { max-width: 460px; margin: 8px auto; }
.auth-brand { display: flex; gap: 14px; align-items: center; margin: 6px 0 14px; }
.auth-brand h1 { margin: 0 0 2px; }
.auth-brand p { margin: 0; }
.photo-pick { display: flex; gap: 14px; align-items: center; margin: 4px 0 14px; }

/* avatar */
.avatar {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none;
  background: var(--blue-soft); color: var(--blue); font-weight: 800; font-size: .9rem; vertical-align: middle;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 30px; height: 30px; font-size: .72rem; }
.avatar.lg { width: 72px; height: 72px; font-size: 1.3rem; }
.avatar .ic { width: 60%; height: 60%; }
.topbar .avatar { background: #fff; }
.profile-head { display: flex; gap: 14px; align-items: center; }

/* chips */
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: #eef1f5; color: #3c4753; text-decoration: none; white-space: nowrap;
}
.chip.loc { background: var(--blue-soft); color: var(--blue); }
.chip.warn, .chip.pending, .chip.pay-to_invoice, .chip.pay-unpaid { background: var(--warn-soft); color: var(--warn); }
.chip.on, .chip.st-started { background: var(--blue-soft); color: var(--blue); }
.chip.approved, .chip.pay-paid, .chip.pay-invoiced, .chip.st-finished { background: var(--ok-soft); color: var(--ok); }
.chip.rejected, .chip.st-cancelled { background: var(--bad-soft); color: var(--bad); }
.chip.st-planned { background: #e9f0ff; color: #2849a0; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-weight: 800; text-decoration: none; }
.pill.warn { background: var(--warn-soft); color: var(--warn); }

/* clock */
.clock-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 22px 18px 16px; text-align: center; box-shadow: var(--shadow); }
.clock-card.on { border-color: #b9cdee; background: linear-gradient(180deg, #f3f7fe, #fff); }
.clock-now { font-size: 3.2rem; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; line-height: 1; }
.clock-date { color: var(--muted); margin: 4px 0 10px; }
.clock-state { font-size: 1.05rem; }
.notice { background: var(--blue-soft); color: #1c355e; border-radius: 10px; padding: 10px 12px; margin: 10px 0; text-align: left; }
.notice.warn { background: var(--warn-soft); color: #6b3d00; }

/* lists */
.list { display: grid; gap: 8px; margin-bottom: 12px; }
.row-item { display: flex; justify-content: space-between; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.ri-main { min-width: 0; flex: 1; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.ri-main > div { min-width: 0; }
.row-item.user .ri-main, .ri-main.who { flex-direction: row; gap: 10px; align-items: center; }
.ri-name { font-weight: 800; }
.ri-title { font-weight: 600; }
.ri-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.hist { margin-top: 6px; }
/* On a phone a user row stacks: who they are on top, the role and the button underneath. */
@media (max-width: 560px) {
  .row-item.user { flex-wrap: wrap; }
  .row-item.user .ri-main { flex: 1 1 100%; }
  .row-item.user .ri-side { flex: 1 1 100%; flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
}
.hist summary { cursor: pointer; color: var(--muted); font-size: .85rem; }
.month-nav { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 10px; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 12px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.stat span { display: block; color: var(--muted); font-size: .85rem; }
.stat strong { font-size: 1.5rem; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl td { padding: 8px 4px; border-top: 1px solid var(--border); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 12px; padding-bottom: 2px; }
.tabs a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--border); text-decoration: none; color: var(--text); font-weight: 600; white-space: nowrap; }
.tabs a.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.tabs small { opacity: .7; }

/* jobs */
a.card.job { display: block; color: inherit; text-decoration: none; }
.card.job { border-left: 5px solid #2849a0; }
.card.job.started { border-left-color: var(--blue-2); }
.card.job.finished { border-left-color: var(--ok); }
.card.job.cancelled { border-left-color: var(--bad); opacity: .7; }
.job-title { font-weight: 800; font-size: 1.05rem; margin: 2px 0; }
.job-price { font-weight: 800; color: var(--blue); margin-top: 4px; }
.back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 8px; text-decoration: none; font-weight: 600; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #eef1f4; align-items: center; }
.kv > span:first-child { color: var(--muted); }
.kv > *:last-child { text-align: right; }
.crew { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.notes { white-space: pre-wrap; background: #f7f8fa; border-radius: 10px; padding: 10px 12px; }
.ev { padding: 6px 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.price { width: 100%; border-collapse: collapse; }
.price td { padding: 8px 0; border-top: 1px solid #eef1f4; vertical-align: top; }
.price td small { display: block; color: var(--muted); }
.price tr.total td { font-weight: 800; font-size: 1.15rem; border-top: 2px solid var(--text); }
.price tr.vat td { color: var(--muted); font-size: .85rem; border-top: 0; padding-top: 0; }
.quote { background: #f7f8fa; border-left: 3px solid var(--road); padding: 8px 12px; border-radius: 6px; }

/* overview */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.tile { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.tile strong { display: block; font-size: 1.8rem; line-height: 1.1; }
.tile span { color: var(--muted); font-size: .88rem; font-weight: 600; }
.tile.warn { border-color: #f3c98b; background: var(--warn-soft); }
.menu-list { display: grid; background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.menu-list a { display: flex; align-items: center; gap: 12px; padding: 16px; text-decoration: none; color: var(--text); font-weight: 600; border-top: 1px solid var(--border); }
.menu-list a:first-child { border-top: 0; }
.menu-list .end { margin-left: auto; color: var(--muted); }
.empty { text-align: center; }
.error-card { text-align: center; }
.lead { font-size: 1.05rem; }

/* modal & toast */
.modal-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(15, 23, 42, .5); display: flex; align-items: flex-end; justify-content: center; padding: 12px; }
.modal { background: #fff; border-radius: 18px; padding: 18px; width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.modal h2 { margin-top: 0; }
@media (min-width: 600px) { .modal-wrap { align-items: center; } }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 14px); z-index: 60;
  background: #17202a; color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 600; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.toast.warn { background: #7a4600; }
.toast.bad { background: var(--bad); }
@media (min-width: 900px) { .toast { bottom: 24px; } }

.chip.cal { background: #e7f4ee; color: #1b6b45; }
.help summary { cursor: pointer; color: var(--blue-2); font-weight: 600; margin: 0 0 8px; }
.help ol { margin: 0 0 12px; padding-left: 20px; }
.card ul { padding-left: 20px; margin: 0; }
.card li { margin: 4px 0; }
.break { overflow-wrap: anywhere; word-break: break-word; }
.card.job .job-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.job-detail h1 { overflow-wrap: anywhere; }
.view { overflow-wrap: break-word; }

/* job photos */
.sr-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.card.photos { position: relative; }
.card.photos h2 .ic { width: 22px; height: 22px; vertical-align: -3px; color: var(--blue); }
.photo-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0 4px; }
.photo-actions .btn { flex-direction: column; gap: 3px; padding: 10px 4px; min-height: 64px; font-size: .9rem; line-height: 1.15; }
.photo-actions .btn .ic { width: 24px; height: 24px; }
.photo-actions .btn.kind-damage { color: var(--warn); border-color: #efcf9f; background: #fffaf1; }
.photo-progress { margin: 8px 0 0; color: var(--blue); font-weight: 700; }
.photo-h { font-size: .95rem; margin: 16px 0 6px; }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 600px) { .pgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.ptile { display: flex; flex-direction: column; min-width: 0; padding: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ptile.damage { border-color: #efcf9f; background: #fffaf1; }
.ptile:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 1px; }
.pimg { display: block; aspect-ratio: 1 / 1; background: #e6eaef; }
.pimg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pimg.broken { background: repeating-linear-gradient(45deg, #eef1f5 0 8px, #e2e6eb 8px 16px); }
.pcap { padding: 4px 6px 5px; font-size: .75rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.pnote { margin: -3px 6px 6px; padding: 0; line-height: 1.3; max-height: 2.6em; font-size: .75rem; color: #6b3d00; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.modal.wide { max-width: 880px; }
.pv-img { display: flex; align-items: center; justify-content: center; min-height: 240px; margin-bottom: 10px; background: #0f172a; border-radius: 12px; overflow: hidden; touch-action: pan-y; }
.pv-img img { display: block; max-width: 100%; max-height: 66vh; }
.pv-img img.blurry { filter: blur(2px); width: 100%; }
.pv-img .muted { color: #cbd5e1; }
.pv-meta .chips { align-items: center; gap: 8px; }
.pv-meta .notes { margin: 8px 0 4px; }
.btn.danger-text { color: var(--bad); }
.btn.icon:disabled { opacity: .35; }
#afterNudge .ic { width: 16px; height: 16px; vertical-align: -3px; }

/* today-only list, past jobs, calendar setup */
.day-line { margin: -6px 0 12px; font-weight: 600; }
.sub-h { font-size: 1rem; margin: 6px 0 8px; color: var(--warn); }
.month-h { font-size: 1rem; margin: 18px 0 8px; }
#jobSearch { margin: 2px 0 6px; }
.copybox { display: grid; gap: 6px; background: #f6f8fb; border: 1px dashed var(--border); border-radius: 10px; padding: 10px 12px; margin: 10px 0 12px; }
.copybox code { font-size: .85rem; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 8px; }
.copybox .btn { justify-self: start; }

/* lager: the old lager screens live in a frame between the top bar and the menu */
.lager-host { position: fixed; left: 0; right: 0; top: 63px; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); z-index: 10; background: var(--bg); }
.lager-host iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--bg); }
body.lager-on { overflow: hidden; }
.card.ship { border-left: 5px solid var(--road); }
.card.ship.st-bill { border-left-color: var(--blue-2); }
.card.ship.st-hus { border-left-color: var(--warn); }
.card.ship.st-afhent { border-left-color: var(--ok); }
.chip.ship-bill { background: var(--blue-soft); color: var(--blue); }
.chip.ship-hus { background: var(--warn-soft); color: var(--warn); }
.chip.ship-afhent { background: var(--ok-soft); color: var(--ok); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* in-house tasks */
.card.task { border-left: 5px solid var(--road); }
.card.task.late { border-left-color: var(--warn); }
.card.task.done { border-left-color: var(--ok); opacity: .8; }
.task-title { font-weight: 800; font-size: 1.05rem; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.card.task.done .task-title { text-decoration: line-through; color: var(--muted); }
.task-notes { margin: 4px 0 6px; white-space: pre-wrap; }
.tasks-box .card.task { box-shadow: none; }
.task-done-line { gap: 8px; margin: 6px 0 0; flex-wrap: nowrap; }
.tthumb { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; background: #e6eaef; flex: none; }
.tthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.task-prev img { max-width: 160px; border-radius: 10px; display: block; margin: 0 0 10px; }
.task-full { display: block; width: 100%; padding: 0; border: 0; background: #0f172a; border-radius: 12px; overflow: hidden; cursor: zoom-in; min-height: 80px; }
.task-full img { display: block; width: 100%; max-height: 70vh; object-fit: contain; }
.task-full .muted { color: #cbd5e1; display: block; padding: 20px; }
.form input[type=radio], .check input[type=radio] { display: inline-block; width: 22px; height: 22px; min-height: 0; margin: 0; padding: 0; flex: none; }

/* a job that is in progress keeps employees on its screen */
.nav.locked a, .top-right.locked a { pointer-events: none; opacity: .35; }
.lock-note { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; margin: 0 0 12px; }
.chip.st-awaitingPay { background: var(--warn-soft); color: var(--warn); }
.card.job.started .chip.st-awaitingPay { }

/* one employee's day: a timeline */
.stat-row { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.card.day h2 { margin: 0; font-size: 1.02rem; }
.tl { display: grid; gap: 2px; margin: 10px 0 6px; border-left: 3px solid var(--border); padding-left: 10px; }
.tl-item { display: grid; grid-template-columns: 92px 1fr; gap: 8px; align-items: start; padding: 7px 0; color: var(--text); text-decoration: none; border-bottom: 1px solid #eef1f4; }
.tl-item:last-child { border-bottom: 0; }
.tl-time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--muted); }
.tl-body { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.tl-body .small { flex-basis: 100%; }
.tl-job .tl-time { color: var(--blue); }
.tl-task .tl-time { color: var(--ok); }
.tl-in .tl-body, .tl-out .tl-body { font-weight: 600; }
.day-sum { border-top: 1px solid var(--border); padding-top: 8px; }

/* ---------- notifications ---------- */
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; }
.bell .ic { width: 24px; height: 24px; }
.bell.on, .bell:focus-visible { background: rgba(255, 255, 255, .16); }
.bell .badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: .7rem; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--blue); }
.notes { display: grid; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.note { display: flex; gap: 12px; padding: 14px; text-decoration: none; color: var(--text); border-top: 1px solid var(--border); }
.note:first-child { border-top: 0; }
.note.unread { background: #f4f8ff; box-shadow: inset 4px 0 0 var(--blue); }
.note-ic { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.note-ic .ic { width: 20px; height: 20px; }
.note-main { display: grid; gap: 2px; min-width: 0; }
.note-main span { overflow-wrap: anywhere; }
.note:not(.unread) strong { font-weight: 600; }
.push-card p { margin: 0 0 10px; }

/* ---------- ordering ---------- */
.card.choice { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.card.choice > .ic:first-child { flex: none; width: 34px; height: 34px; color: var(--blue); }
.card.choice > span { display: grid; gap: 2px; }
.card.choice .end { margin-left: auto; color: var(--muted); flex: none; }
.order-form fieldset.fs { border: 1px solid var(--border); margin: 0 0 12px; display: grid; gap: 12px; }
.order-form legend { font-weight: 800; font-size: 1.05rem; padding: 0 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .grid2 { grid-template-columns: 1fr; } }
.oline { display: grid; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.oline:first-child { padding-top: 0; }
.grid-line { display: grid; grid-template-columns: 1fr 88px auto; gap: 8px; align-items: end; }
.grid-line .rm { height: 44px; }
.radios { display: grid; gap: 6px; }
.order-form .radio { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.card.quote { position: sticky; bottom: calc(var(--nav-h) + 8px); z-index: 2; border-color: var(--blue); }
.card.quote p { margin: 6px 0 0; }
.card.quote .price tr.sub td { border-top: 1px solid var(--border); font-weight: 700; }
.card.quote .price tr.neg td:last-child { color: var(--ok); }
.chip.ship-pending { background: var(--warn-soft); color: var(--warn); }
.chip.ship-planned { background: var(--blue-soft); color: var(--blue); }
.chip.req-new { background: var(--warn-soft); color: var(--warn); }
.chip.req-in_progress, .chip.req-quoted { background: var(--blue-soft); color: var(--blue); }
.chip.req-booked { background: var(--ok-soft); color: var(--ok); }
.chip.req-declined, .chip.req-cancelled { background: var(--bad-soft); color: var(--bad); }
.card.req .reply { background: var(--blue-soft); border-radius: 10px; padding: 8px 12px; margin-top: 8px; }
.card.req .reply p { margin: 2px 0 0; white-space: pre-wrap; }
.card.req .form { margin-top: 10px; }
.card.req .row input[type=date], .card.req .row input[type=time] { width: auto; flex: 1 1 120px; }
.danger-link { color: var(--bad); margin-top: 8px; }

/* payouts */
.pay-grid{display:grid;grid-template-columns:1fr 1.3fr 1fr;gap:10px;align-items:end;margin:8px 0}
.pay-grid > div, .pay-grid > label{display:flex;flex-direction:column;gap:2px;margin:0}
.pay-grid input{width:100%;min-height:44px;padding:8px 10px;border:1px solid var(--border);border-radius:10px;font:inherit;font-size:16px}

/* messages */
.msg-list{display:flex;flex-direction:column;gap:8px;max-height:360px;overflow-y:auto;padding:4px 2px;margin-bottom:10px}
.msg{max-width:82%;align-self:flex-start;background:var(--bg);border-radius:14px 14px 14px 4px;padding:8px 12px}
.msg.mine{align-self:flex-end;background:var(--primary);color:#fff;border-radius:14px 14px 4px 14px}
.msg.mine .msg-meta{color:rgba(255,255,255,.8)}
.msg-text{white-space:pre-wrap;overflow-wrap:anywhere}
.msg-meta{font-size:11.5px;color:var(--muted);margin-top:2px}
.chips.quick{margin:6px 0}
.chips.quick{display:flex;flex-wrap:wrap;gap:8px}
.chips.quick .chip{cursor:pointer;border:1px solid var(--line);background:#fff;color:var(--blue);padding:9px 14px;font-size:.88rem;min-height:40px}
.msg-form textarea{width:100%}

/* reviews */
.review-page{max-width:560px;margin:0 auto}
.stars{display:flex;gap:6px}
.star{font-size:38px;line-height:1;background:none;border:0;color:var(--line);cursor:pointer;padding:2px}
.star.on{color:#E8B923}
.rev-stars{color:#E8B923;letter-spacing:1px;white-space:nowrap}
.clamp2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* working without signal */
#offbar{position:fixed;left:12px;right:12px;margin:0 auto;width:fit-content;top:calc(70px + env(safe-area-inset-top));z-index:60;background:var(--primary);color:#fff;border-radius:99px;padding:5px 12px;font-size:12.5px;font-weight:600;line-height:1.3;box-shadow:0 4px 14px rgba(0,0,0,.18);max-width:calc(100% - 24px);text-align:center;cursor:default}
#offbar.off{background:#5F6B78}
#offbar.bad{background:var(--bad, #B42318);cursor:pointer}

/* Taxi meter on a running job, and hours + minutes in the end-of-job report */
.meter { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--blue); color: #fff; }
.meter-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.meter-time { font-variant-numeric: tabular-nums; font-size: 1.15rem; opacity: .9; }
.meter-price { font-variant-numeric: tabular-nums; font-size: 1.9rem; line-height: 1.1; }
.meter .muted { color: rgba(255, 255, 255, .8); margin-top: 4px; }
.hm { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.form .hm input { flex: 1 1 0; min-width: 0; margin-top: 0; }
.hm span { color: var(--muted); font-size: .9rem; line-height: 1; align-self: center; margin: 0; }

/* Km from addresses in the end-of-job report */
.kmcalc { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin: 4px 0 12px; }
.kmcalc summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.kmcalc[open] summary { margin-bottom: 8px; }
.kmstop { display: grid; grid-template-columns: 1.6em 1fr 2.4em; align-items: center; gap: 6px; margin-bottom: 6px; }
.kmstop .kmn { color: var(--muted); font-variant-numeric: tabular-nums; }
.form .kmstop input { margin-top: 0; }
.kmstop .kmx { border: 0; background: none; font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; height: 2.4em; }
.kmstop .kmhit { grid-column: 2 / 4; margin-top: -2px; }
.kmhit.warn { color: var(--warn); }
.kmhit.error, #kmOut.error { color: var(--bad); }
#kmGo { margin-top: 6px; }
#kmOut { margin: 8px 0 0; font-weight: 600; }
.kmadd { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin: 2px 0 8px; padding: 12px; border: 2px dashed var(--border); border-radius: 12px; background: none; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; }
.kmadd:hover, .kmadd:focus-visible { border-color: var(--blue); background: var(--blue-soft); }
.kmadd[hidden] { display: none; }
.kmstop .kmx[hidden] { display: block; visibility: hidden; }

/* Packing in the end-of-job report, and its prices in Verðskrá */
.packq { border: 0; padding: 0; margin: 4px 0 10px; }
.packq legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg2 label { position: relative; margin: 0; }
.seg2 input { position: absolute; opacity: 0; pointer-events: none; }
.seg2 span { display: block; text-align: center; padding: 11px; border: 2px solid var(--border); border-radius: 12px; font-weight: 600; cursor: pointer; }
.seg2 input:checked + span { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.seg2 input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.packbox { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; }
.packbox[hidden] { display: none; }
.packbox h3 { margin: 6px 0 8px; font-size: 1rem; }
.packrow { display: grid; grid-template-columns: minmax(0, 1fr) 4.4em 5.6em; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--border); }
.packrow .pl { overflow-wrap: anywhere; }
.packrow .pl small { display: block; color: var(--muted); }
.form .packrow input { margin-top: 0; text-align: right; }
.packrow .pt { text-align: right; font-variant-numeric: tabular-nums; }
.packsum { font-weight: 700; text-align: right; margin: 10px 0 2px; }
.packedit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 2em; grid-template-areas: "l l l x" "u c p ."; gap: 4px 8px; align-items: end; padding: 8px 0; border-bottom: 1px solid var(--border); }
.packedit .pe-l { grid-area: l; font-weight: 600; }
.packedit .pe-x { grid-area: x; align-self: center; border: 0; background: none; padding: 0; font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; }
.packedit .pe-f { font-size: .8rem; color: var(--muted); margin: 0; }
.packedit .pe-f:nth-of-type(1) { grid-area: u; } .packedit .pe-f:nth-of-type(2) { grid-area: c; } .packedit .pe-f:nth-of-type(3) { grid-area: p; }
.form .packedit input { margin-top: 2px; padding-left: 8px; padding-right: 8px; }
.form .packedit .pe-l { margin-top: 0; }
.packedit { margin-bottom: 6px; }
.form .packedit input { margin-top: 0; }

/* ---------- owner dashboard: dark control room ---------- */
body[data-view="dashboard"] { background: #070b14; }
body[data-view="dashboard"] .view { max-width: 1700px; padding: 12px; }
.menu-list a.menu-dash { background: linear-gradient(90deg, #0b1a33, #10264a); color: #fff; }
.menu-list a.menu-dash small { margin-left: auto; margin-right: 8px; font-weight: 500; color: #9fd8ff; }
.dash {
  --d-bg: #0b1220; --d-tile: #101a2e; --d-line: #1e2c47; --d-text: #e6eefc; --d-muted: #8fa3c7; --d-acc: #4cc9f0; --d-hot: #ff9f1c; --d-ok: #2ecc71; --d-warn: #f5c242; --d-bad: #ff5d5d;
  color: var(--d-text); font-variant-numeric: tabular-nums;
  background: radial-gradient(1200px 400px at 10% -10%, #14305a 0%, transparent 60%), radial-gradient(900px 400px at 100% 0%, #2a1e4d 0%, transparent 60%), var(--d-bg);
  border-radius: 16px; padding: 14px; box-shadow: 0 0 0 1px var(--d-line), 0 30px 80px rgba(0,0,0,.5);
}
.dash a { color: inherit; }
.dash h1, .dash h2 { margin: 0; color: var(--d-text); }
.dash h1 { font-size: 1.35rem; letter-spacing: .02em; text-transform: uppercase; }
.dash h2 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--d-muted); }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 4px 6px 12px; }
.dash-clock { font: 700 2.2rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--d-acc); text-shadow: 0 0 18px rgba(76,201,240,.55); }
.dash-live { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .12em; color: var(--d-bad); font-size: .8rem; }
.dash-live .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--d-bad); box-shadow: 0 0 0 0 rgba(255,93,93,.7); animation: dpulse 1.4s infinite; }
@keyframes dpulse { 0% { box-shadow: 0 0 0 0 rgba(255,93,93,.7); } 70% { box-shadow: 0 0 0 10px rgba(255,93,93,0); } 100% { box-shadow: 0 0 0 0 rgba(255,93,93,0); } }
.dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; }
.dtile { grid-column: span 3; background: linear-gradient(180deg, #121d33, var(--d-tile)); border: 1px solid var(--d-line); border-radius: 12px; padding: 12px; min-width: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.dtile.dkpi { grid-column: span 2; }
.dtile.dwide { grid-column: span 6; }
.dtile.dmap { grid-column: span 8; }
.dtile.dlive { grid-column: span 4; max-height: 620px; overflow: auto; }
.dtile.dfeed { grid-column: span 12; }
.dtile.acc { border-color: #2a6f9a; box-shadow: 0 0 24px rgba(76,201,240,.15) inset; }
.dtile.warn { border-color: #6b5a1a; }
.dt-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.dt-h a { text-decoration: none; }
.dkpi { display: flex; flex-direction: column; gap: 4px; }
.dk-l { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--d-muted); }
.dk-v { font: 800 1.9rem/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #fff; }
.dk-v small { font: 600 .8rem/1 inherit; color: var(--d-muted); margin-left: 4px; }
.dkpi.acc .dk-v { color: var(--d-acc); text-shadow: 0 0 14px rgba(76,201,240,.5); }
.dkpi.warn .dk-v { color: var(--d-warn); }
.dkpi.bad .dk-v { color: #ff5c5c; }
.dtile.bad { border-color: #7a2a2a; }
.dkpi.ok .dk-v { color: #2ecc71; }
.dk-s { font-size: .76rem; color: var(--d-muted); line-height: 1.4; }
.d-up { color: var(--d-ok); } .d-down { color: var(--d-bad); }
.d-muted { color: var(--d-muted); font-size: .8rem; margin: 0; }
.d-note { color: var(--d-muted); font-size: .72rem; margin: 10px 0 0; }
.dash .dash-map, .dash .dash-map.lgm { height: 560px; border-radius: 10px; overflow: hidden; background: #0a1628;
  --sea: #0a1628; --land: #16223a; --coast: #2a3f66; --road: #3c5584; --roadc: #27385c; --roadm: #c79a2d; --roadmc: #8a6a1c; --ink: #e6eefc; --muted: #8fa3c7; --surface: #101a2e; --line: #1e2c47; --primary: #4cc9f0; --err: #ff5d5d;
  --map-glacier: #2c3f61; --map-glacier-edge: #3b5480; --map-urban: #1d2b47; --map-industrial: #1f2a44; --map-park: #1a3a35; --map-forest: #183a30; --map-wetland: #1a3140; --map-sand: #2a2e3e; --map-rock: #1c2640; --map-scrub: #1a3030; --map-farm: #1b2c3b;
  --map-airport: #1d2740; --map-runway: #2f3c5a; --map-building: #243352; --map-building-edge: #324469; --map-institution: #22304e; --map-river: #1f4a6e; --map-thin: #33476d; --map-thin2: #3d5480; --map-major: #c79a2d; --map-majorc: #8a6a1c; --map-froad: #5a6c8f; --map-track: #3a4a6a; --map-path: #3a4a6a;
  --map-ferry: #4b86b4; --map-tunnel: #2b3a5a; --map-water-label: #7fb6d9; --map-glacier-label: #9fb7d9; --map-halo: #0a1628; --map-place: #e6eefc; --map-place2: #b9c8e6; --map-suburb: #8fa3c7; --map-peak: #b7a98a; --map-shield: #1e2c47; --map-shield-edge: #4c6189; --map-poi-halo: #0a1628; }
.dash-map .lgm-pop { color: #17202A; }
.d-legend { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .72rem; color: var(--d-muted); align-items: center; }
.d-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.d-run { display: flex; justify-content: space-between; gap: 10px; align-items: center; text-decoration: none; padding: 10px 12px; border-radius: 10px; background: linear-gradient(90deg, rgba(255,159,28,.18), rgba(255,159,28,.04)); border: 1px solid rgba(255,159,28,.45); margin-bottom: 8px; }
.d-run-t { font-weight: 700; min-width: 0; } .d-run-t small { display: block; font-weight: 500; color: var(--d-muted); font-size: .74rem; margin-top: 2px; }
.d-run-m { text-align: right; flex: none; } .d-run-m b { display: block; font: 800 1.1rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; } .d-run-m .dr-time { color: var(--d-hot); } .d-run-m .dr-price { color: #fff; font-size: 1.25rem; }
.d-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.d-chip { font-size: .78rem; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--d-line); background: #0d1628; color: var(--d-text); }
.d-chip.on { border-color: #1f7a4a; color: #9ff0c2; } .d-chip.truck { border-color: #6b5a1a; color: #ffe08a; } .d-chip small { color: var(--d-muted); }
.d-list { list-style: none; margin: 0; padding: 0; }
.d-list li { border-top: 1px solid var(--d-line); } .d-list li:first-child { border-top: 0; }
.d-list li a { display: block; padding: 8px 6px 8px 10px; text-decoration: none; border-left: 3px solid var(--d-line); font-size: .86rem; }
.d-list li a small { display: block; color: var(--d-muted); font-size: .74rem; }
.d-list li.ok a { border-left-color: var(--d-ok); } .d-list li.hot a { border-left-color: var(--d-hot); } .d-list li.warn a { border-left-color: var(--d-warn); }
.d-up { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; height: 120px; align-items: end; }
.d-up-d { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; text-decoration: none; font-size: .64rem; color: var(--d-muted); gap: 3px; }
.d-up-d i { display: block; width: 100%; min-height: 2px; background: var(--d-acc); border-radius: 3px 3px 0 0; opacity: .85; } .d-up-d i.un { background: var(--d-warn); }
.d-up-d b { color: #fff; font-size: .72rem; } .d-up-d.today span { color: var(--d-acc); font-weight: 700; }
.dbars { display: block; width: 100%; height: 120px; } .dbars rect { transition: opacity .2s; } .dbars rect:hover { opacity: .7; }
.dbars-l { display: grid; font-size: .62rem; color: var(--d-muted); text-align: center; margin-top: 2px; } .dbars-l span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hb { display: grid; gap: 6px; }
.hb-row { display: grid; grid-template-columns: minmax(70px, 34%) 1fr auto; gap: 8px; align-items: center; font-size: .78rem; }
.hb-l { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .hb-bar { height: 10px; background: #0d1628; border-radius: 5px; overflow: hidden; } .hb-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--d-acc), #7b5cff); border-radius: 5px; }
.hb-v { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap; } .hb-v small { color: var(--d-muted); }
.d-mini { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: baseline; font-size: .8rem; }
.d-mini b { font: 800 1.2rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-align: right; } .d-mini b.hot { color: var(--d-hot); } .d-mini b.warn { color: var(--d-warn); }
.d-mini span { color: var(--d-muted); } .d-mini a { text-decoration: none; color: var(--d-text); }
.d-rev { padding: 6px 0; border-top: 1px solid var(--d-line); font-size: .82rem; } .d-rev:first-of-type { border-top: 0; } .d-rev b { color: var(--d-warn); letter-spacing: .1em; margin-right: 6px; } .d-rev small { display: block; color: var(--d-muted); }
.d-feed { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 20px; font-size: .76rem; } .d-feed li { break-inside: avoid; padding: 3px 0; border-bottom: 1px dashed var(--d-line); } .d-feed a { text-decoration: none; color: var(--d-muted); } .d-feed a:hover { color: #fff; }
.dash-ticker { margin-top: 10px; overflow: hidden; white-space: nowrap; border-top: 1px solid var(--d-line); border-bottom: 1px solid var(--d-line); padding: 6px 0; font: 600 .74rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--d-warn); }
.dash-ticker span { display: inline-block; padding-left: 100%; animation: dticker 60s linear infinite; }
@keyframes dticker { to { transform: translateX(-100%); } }
@media (max-width: 1100px) { .dtile { grid-column: span 4; } .dtile.dkpi { grid-column: span 4; } .dtile.dmap { grid-column: span 12; grid-row: auto; } .dtile.dlive { grid-column: span 12; grid-row: auto; } .dtile.dwide { grid-column: span 6; } }
@media (max-width: 700px) { .dash { padding: 10px; } .dtile, .dtile.dwide, .dtile.dkpi { grid-column: span 6; } .dk-v { font-size: 1.4rem; } .dash-clock { font-size: 1.5rem; } .d-feed { columns: 1; } .dash .dash-map, .dash .dash-map.lgm { height: 400px; } }
@media (max-width: 460px) { .dtile, .dtile.dwide { grid-column: span 12; } .dash .dash-map, .dash .dash-map.lgm { height: 340px; } }
@media (prefers-reduced-motion: reduce) { .dash-ticker span, .dash-live .pulse { animation: none; } }

/* ---------- Skilaboð (chat) ---------- */
.nav a { position: relative; min-width: 0; padding: 0 2px; }
.nav a span { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nav .nbadge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red, #c62828); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.conv-h { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 16px 4px 6px; }
.conv-list { padding: 0; overflow: hidden; }
.conv { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; text-decoration: none; color: var(--text); border-top: 1px solid var(--border); }
.conv:first-child { border-top: 0; }
.conv.unread { background: #f3f7fd; }
.conv-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--blue); }
.conv-ic.team { background: var(--blue); color: #fff; } .conv-ic.job { background: #fff4e0; color: #b26a00; } .conv-ic.cust { background: #e8f5ee; color: #1f7a4a; }
.conv-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.conv-t { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.conv-n { background: var(--red, #c62828); color: #fff; border-radius: 9px; font-size: 11px; padding: 0 6px; line-height: 18px; }
.conv-sub { font-size: .76rem; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.conv-last { font-size: .84rem; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .conv.unread .conv-last { color: var(--text); font-weight: 600; }
.conv-at { font-size: .72rem; color: var(--muted); white-space: nowrap; align-self: start; padding-top: 2px; }
.chat-sub { margin: -6px 0 10px; } .chat-actions { margin-bottom: 10px; }
.msg-list.tall { max-height: min(60vh, 560px); }
.pick-list { display: flex; flex-direction: column; margin-bottom: 10px; }
.pick { display: flex; align-items: center; gap: 10px; padding: 10px 6px; text-decoration: none; color: var(--text); border-top: 1px solid var(--border); font-weight: 600; }
.pick:first-child { border-top: 0; } .pick small { display: block; font-weight: 400; color: var(--muted); font-size: .76rem; }
.pick-search { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; font: inherit; font-size: 16px; margin-bottom: 6px; }
@media (max-width: 400px) { .nav a span { font-size: .62rem; } }

/* ---------- Óstaðfest ---------- */
.tabs .tabn { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; line-height: 18px; text-align: center; margin-left: 2px; }
.card.unconf { border-left: 4px solid #e8b400; }
.card.unconf.green { border-left-color: #2e9e5b; }
.card.unconf .row { margin-top: 10px; gap: 8px; }
.card.unconf details summary { cursor: pointer; color: var(--muted); }
.card.unconf-note { border-left: 4px solid #e8b400; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; } .card.unconf-note p { margin: 0; }
.chip.ok { background: #e8f5ee; color: #1f7a4a; }
.row.wrap { flex-wrap: wrap; }
.bad { color: var(--red); }
.stack { display: grid; gap: 8px; margin: 10px 0; }

.crew-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--card); color: var(--blue); border-radius: 999px; padding: 3px 10px 3px 4px; font: inherit; cursor: pointer; }
.crew-btn:active { background: var(--bg); }
.crew-card { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.crew-card h2 { margin: 0; }
.day-h { font-size: 0.95rem; color: var(--muted); margin: 14px 0 6px; font-weight: 600; }

/* dashboard map filter */
.mapf { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 0 0 8px; font-size: .78rem; }
.mapf select, .mapf input[type=date] { background: #0f1a30; color: #dbe4f3; border: 1px solid #27395c; border-radius: 8px; padding: 4px 8px; font: inherit; font-size: .78rem; min-height: 30px; }
.mapf .mf-dates { display: inline-flex; gap: 4px; align-items: center; color: var(--d-muted); }
.mapf .mf-chk { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border: 1px solid #27395c; border-radius: 999px; color: var(--d-muted); cursor: pointer; user-select: none; }
.mapf .mf-chk.on { color: #e8eefc; border-color: #4a6aa8; background: #15264a; }
.mapf .mf-chk input { display: none; }
.mapf .mf-chk i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.mapf .mf-count { margin-left: auto; }

/* Verkefni as tiles: square cards, 2 per line on phones, 3 on wider screens */
body:has(.tilegrid) .view { max-width: 920px; }
.layout-row { margin: 4px 0 10px; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--card); }
.seg button { border: 0; background: none; padding: 7px 10px; color: var(--muted); cursor: pointer; display: inline-flex; }
.seg button.on { background: var(--blue); color: #fff; }
.seg button svg { width: 18px; height: 18px; }
.tilegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
@media (min-width: 720px) { .tilegrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
.tilegrid > .month-h, .tilegrid > p { grid-column: 1 / -1; margin-bottom: 0; }
.tilegrid > .card.job { margin: 0; aspect-ratio: 1 / 1; display: flex; flex-direction: column; gap: 4px; padding: 12px; border-left-width: 1px; border-top: 5px solid #2849a0; overflow: visible; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.tilegrid > .card.job:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(20, 40, 90, .14); }
.tilegrid > .card.job.started { border-top-color: var(--blue-2); }
.tilegrid > .card.job.finished { border-top-color: var(--ok); }
.tilegrid > .card.job.cancelled { border-top-color: var(--bad); }
.tilegrid .card.job > .row.between { flex-wrap: wrap; gap: 4px 6px; align-items: flex-start; }
.tilegrid .card.job > .row.between strong { font-size: .95rem; }
.tilegrid .card.job .chips { gap: 4px; flex-wrap: wrap; }
.tilegrid .card.job .chip { font-size: .66rem; padding: 2px 7px; }
.tilegrid .card.job .job-title { font-size: .98rem; line-height: 1.25; -webkit-line-clamp: 3; margin: 2px 0 0; }
.tilegrid .card.job .small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .78rem; }
.tilegrid .card.job .job-crew { margin-top: auto; padding-top: 6px; border-top: 1px solid var(--border); -webkit-line-clamp: 1; }
.tilegrid .card.job .job-crew ~ .job-price { margin-top: 0; }
.tilegrid .card.job .job-price { margin-top: auto; }
@media (max-width: 480px) {
  .tilegrid > .card.job { padding: 10px; aspect-ratio: auto; min-height: 44vw; }
  .tilegrid .card.job .job-title { font-size: .9rem; }
  .tilegrid .card.job > .row.between strong { font-size: .86rem; }
}

/* Óstaðfest as tiles */
.tilegrid > .card.unconf { border-top-color: #e8b400; }
.tilegrid > .card.unconf.green { border-top-color: #2e9e5b; }
.tilegrid > .card.unconf details { display: none; }
.tilegrid > .card.unconf > .row:last-child { margin-top: auto; padding-top: 8px; gap: 6px; flex-wrap: wrap; }
.tilegrid > .card.unconf .btn { padding: 8px 12px; font-size: .85rem; min-height: 38px; }
.tilegrid > .card.unconf a[href^="tel:"] { position: relative; z-index: 1; }
/* job window on top of the Verkefni list */
body.sheet-open { overflow: hidden; }
.sheet-wrap { position: fixed; inset: 0; z-index: 40; background: rgba(15, 23, 42, .55); display: flex; align-items: center; justify-content: center; padding: 20px; animation: sheetFade .15s ease; }
.sheet { position: relative; background: var(--bg); border-radius: 18px; width: 100%; max-width: 780px; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); overflow: hidden; animation: sheetUp .18s ease; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 56px 18px 24px; -webkit-overflow-scrolling: touch; }
.sheet-body > section > .back, .sheet-body .back:first-child { display: none; }
.sheet-x { position: absolute; top: 10px; right: 10px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); color: var(--text, #1b2333); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow); }
.sheet-x:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.sheet-x svg { width: 20px; height: 20px; }
.sheet .card.quote { position: static; }
@keyframes sheetFade { from { opacity: 0; } }
@keyframes sheetUp { from { transform: translateY(14px); opacity: .6; } }
@media (max-width: 560px) {
  .sheet-wrap { padding: 0; align-items: flex-end; }
  .sheet { max-width: none; border-radius: 18px 18px 0 0; max-height: 94vh; max-height: 94dvh; }
  .sheet-body { padding: 54px 12px calc(20px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .sheet-wrap, .sheet { animation: none; } }

/* Tímar & laun */
.pay-tbl { margin-top: 6px; font-size: .86rem; }
.pay-head, .pay-p > summary, .pay-total { display: grid; grid-template-columns: minmax(120px, 1.5fr) minmax(56px, .6fr) repeat(4, minmax(88px, 1fr)); gap: 8px; align-items: center; padding: 8px 10px; }
.pay-head { color: var(--d-muted, var(--muted)); font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--d-line, var(--border)); }
.pay-p { border-bottom: 1px solid var(--d-line, var(--border)); }
.pay-p > summary { cursor: pointer; list-style: none; }
.pay-p > summary::-webkit-details-marker { display: none; }
.pay-p > summary .pay-name::before { content: "▸"; display: inline-block; width: 1em; color: var(--d-muted, var(--muted)); transition: transform .12s; }
.pay-p[open] > summary .pay-name::before { transform: rotate(90deg); }
.pay-p > summary:hover { background: rgba(120, 150, 220, .08); }
.pay-tbl .n, .pay-days .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pay-tbl .b { font-weight: 700; }
.pay-tbl .debt.owed { color: #ffb347; font-weight: 700; }
.pay-total { font-weight: 700; border-top: 2px solid var(--d-line, var(--border)); }
.pay-detail { padding: 4px 10px 12px 26px; }
.pay-calc, .pay-foot, .pay-at, .pay-none, .pay-ign { color: var(--d-muted, var(--muted)); font-size: .76rem; }
.pay-calc { margin: 2px 0 8px; } .pay-foot { margin: 10px 0 0; } .pay-none { margin: 8px 0; }
.pay-at.bad { color: #ff8a8a; }
.pay-open { margin: 0 0 8px; }
.pay-days { width: 100%; border-collapse: collapse; font-size: .82rem; }
.pay-days th { text-align: left; font-weight: 600; color: var(--d-muted, var(--muted)); font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; padding: 4px 6px; }
.pay-days td { padding: 5px 6px; border-top: 1px solid var(--d-line, var(--border)); vertical-align: top; }
.pay-src { display: inline-block; border-radius: 999px; padding: 1px 8px; font-size: .72rem; font-weight: 600; }
.pay-src.app { background: rgba(46, 204, 113, .16); color: #2ea866; }
.pay-src.report { background: rgba(76, 201, 240, .16); color: #2b8fb3; }
.pay-src.app_over_report { background: rgba(255, 159, 28, .18); color: #c97a00; }
.dash .pay-src.app { color: #5be39a; } .dash .pay-src.report { color: #7fd8f5; } .dash .pay-src.app_over_report { color: #ffb347; }
.pay-warn { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 6px 0 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid #7a5a1a; background: rgba(255, 179, 71, .1); font-size: .84rem; }
.card.paybox .pay-warn { border-color: #e8c98a; }
.card.paybox h2 { margin: 0; }
.pay-own-days summary { cursor: pointer; color: var(--blue); font-size: .88rem; margin-top: 4px; }
.pay-own-days[open] summary { margin-bottom: 8px; }
.ok-t { color: var(--ok); }
@media (max-width: 720px) {
  .pay-head { display: none; }
  .pay-p > summary, .pay-total { grid-template-columns: repeat(3, 1fr); row-gap: 4px; }
  .pay-p > summary .pay-name, .pay-total .pay-name { grid-column: 1 / -1; font-weight: 700; }
  .pay-tbl [data-l] { text-align: left; }
  .pay-tbl [data-l]::before { content: attr(data-l); display: block; font-size: .64rem; text-transform: uppercase; letter-spacing: .04em; color: var(--d-muted, var(--muted)); font-weight: 400; }
  .pay-detail { padding-left: 10px; overflow-x: auto; }
}

/* clock alerts (dashboard) */
.al-n { display: inline-block; min-width: 20px; text-align: center; padding: 1px 7px; border-radius: 999px; background: #ff5d5d; color: #fff; font-size: .72rem; letter-spacing: 0; vertical-align: middle; }
.al-list { list-style: none; margin: 4px 0 0; padding: 0; max-height: 420px; overflow-y: auto; }
.al { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: start; padding: 9px 4px; border-top: 1px solid var(--d-line); font-size: .86rem; line-height: 1.4; }
.al-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; background: var(--d-warn); }
.al.now .al-dot { background: var(--d-bad); box-shadow: 0 0 0 4px rgba(255, 93, 93, .18); }
.al-work_no_clock .al-dot, .al-early_in .al-dot { background: var(--d-acc); }
.al-text { color: var(--d-text); }
.al-times { display: block; font-size: .76rem; }
.al-act { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.al-act a, .al-act button { font: inherit; font-size: .76rem; color: var(--d-acc); background: none; border: 1px solid var(--d-line); border-radius: 999px; padding: 3px 10px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.al-act button { color: var(--d-ok); }
.al-act a:hover, .al-act button:hover { border-color: currentColor; }
.d-ok-line { color: var(--d-ok); margin: 8px 0; font-size: .9rem; }
@media (max-width: 720px) { .al { grid-template-columns: 12px 1fr; } .al-act { grid-column: 2; justify-content: flex-start; } }

/* backups: the three places */
.bk-h{font-size:15px;margin:18px 0 6px;padding-top:12px;border-top:1px solid var(--line,#e3e7ee)}
.sn-list{display:grid;gap:6px;margin-top:8px}
.sn-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid var(--line,#e3e7ee);font-size:14px}
.sn-row small{color:var(--muted,#667)}
.sn-btns{display:flex;gap:6px;flex-wrap:wrap}
.cp-line{color:inherit;text-decoration:none;display:inline}
.cp.ok{color:var(--d-ok,#1f8a4c)}
.cp.bad{color:var(--d-bad,#c0392b);font-weight:600}

/* crew on a job tile: the same pills as inside the job */
.card.job .crew-pills { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.crew-pill { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; border: 1px solid var(--border); background: var(--card); color: var(--blue); border-radius: 999px; padding: 2px 9px 2px 3px; font-size: .8rem; font-weight: 600; line-height: 1.2; }
.crew-pill > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tilegrid .card.job .job-crew.crew-pills { display: flex; -webkit-line-clamp: unset; overflow: visible; }
.tilegrid > .card.job { height: auto; }
@media (hover: hover) and (pointer: fine) { .crew-pill[data-crewtile] { cursor: pointer; } .crew-pill[data-crewtile]:hover { background: var(--bg); border-color: var(--blue); } }
@media (max-width: 480px) { .crew-pill { font-size: .72rem; padding: 2px 7px 2px 2px; gap: 4px; } }
.crew-pill .avatar { width: 22px; height: 22px; font-size: .6rem; flex: none; }
/* review fixes: nothing wider than the screen */
.pay-tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
#payTile, .dtile { min-width: 0; }
.pay-head, .pay-p > summary, .pay-total { min-width: 560px; }
.inline { flex-wrap: wrap; }
.inline select, .inline input { max-width: 100%; min-width: 0; }

/* Tölur */
.numbers .num-periods { flex-wrap: wrap; margin: 8px 0; }
.num-custom, .num-rate { align-items: end; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.num-custom label, .num-rate label { display: flex; flex-direction: column; font-size: .8rem; gap: 2px; margin: 0; }
.num-rate input { width: 110px; }
.num-card { min-width: 0; } .num-card h3 { font-size: .95rem; margin: 16px 0 6px; }
.num-at { color: var(--muted); font-size: .76rem; } .num-at.bad { color: var(--red, #c0392b); }
.num-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; margin: 8px 0; }
.num-kpis > div { border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; min-width: 0; }
.num-kpis b { font-size: 1.05rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; } .num-kpis small { color: var(--muted); font-size: .72rem; }
.num-kpis .ok b { color: #1f8a4c; } .num-kpis .warn b { color: #b9770e; } .num-kpis .bad b { color: #c0392b; }
.num-acts { display: flex; flex-wrap: wrap; gap: 6px; font-size: .8rem; margin: 4px 0; } .num-acts span { background: var(--bg); border-radius: 999px; padding: 2px 9px; }
.num-chart { display: flex; align-items: flex-end; gap: 3px; height: 130px; padding-top: 6px; }
.num-bar { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; }
.num-bar i { display: block; width: 100%; max-width: 34px; background: var(--blue); border-radius: 4px 4px 0 0; } .num-bar small { font-size: .62rem; color: var(--muted); }
.num-tbl { overflow-x: auto; font-size: .84rem; }
.num-head, .num-c > summary, .num-g { display: grid; grid-template-columns: minmax(150px, 2fr) repeat(6, minmax(64px, 1fr)); gap: 8px; align-items: center; padding: 7px 4px; min-width: 620px; }
.num-tbl.terms .num-head, .num-tbl.terms .num-g { grid-template-columns: minmax(150px, 2fr) repeat(3, minmax(64px, 1fr)); min-width: 380px; }
.num-tbl.unpaid .num-head, .num-tbl.unpaid .num-g { grid-template-columns: minmax(140px, 2fr) repeat(3, minmax(74px, 1fr)); min-width: 400px; }
.num-tbl.top .num-g { grid-template-columns: 1fr auto; min-width: 0; }
.num-head { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--border); }
.num-c { border-bottom: 1px solid var(--border); } .num-c > summary { cursor: pointer; list-style: none; font-weight: 700; } .num-c > summary::-webkit-details-marker { display: none; }
.num-g { border-top: 1px dashed var(--border); } .num-c .num-g .num-name { padding-left: 14px; }
.num-name { min-width: 0; overflow-wrap: anywhere; } .num-name small { display: block; color: var(--muted); font-weight: 400; font-size: .72rem; }
.num-tbl .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; } .num-tbl .b { font-weight: 700; }
.num-sub { padding: 0 4px 4px 14px; }
.num-g.waste { background: #fff7e0; } .num-g.overdue .n:last-child { color: #b9770e; font-weight: 700; } .num-g.collection .n:last-child { color: #c0392b; font-weight: 700; }
.num-warn { border: 1px solid #e8b4ae; background: #fdf1ef; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin: 6px 0; }
.num-warn small { color: var(--muted); overflow-wrap: anywhere; }

/* invoices waiting for approval */
.rv-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border, #e3e7ee); }
.dashboard .rv-row, .drv .rv-row { border-top-color: rgba(255,255,255,.12); }
.rv-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; } .rv-main a { color: inherit; } .rv-main small { color: var(--muted); font-size: .76rem; overflow-wrap: anywhere; }
.drv .rv-main small { color: var(--d-muted, #9fb0c8); }
.rv-amt { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 1.05rem; }
.rv-btns { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }

.rv-main small.rv-warn { color: #b9770e; }

/* Tilboð 1–4 in the price list */
.pkgrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: end; margin: 10px 0 14px; }
.pkgrow > strong { grid-column: 1 / -1; }
.pkgrow label { font-size: 12px; margin: 0; }
.pkgrow input { min-width: 0; width: 100%; }
@media (max-width: 560px) { .pkgrow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The balance (Staða): red with a minus = the company owes the employee, green with a plus = the employee owes the company, grey = 0 */
.bal { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }
.bal.neg { color: #d92d20; }
.bal.pos { color: #12894b; }
.bal.zero { color: var(--muted, #7a8699); font-weight: 400; }
.dtile .bal.neg { color: #ff6b5e; }
.dtile .bal.pos { color: #3ddc84; }
.dtile .bal.zero { color: var(--d-muted, #93a0b8); }
.paysheet .pay-tbl { margin-top: 10px; }
.stat strong .bal { font-size: inherit; }
@media (max-width: 720px) {
  .pay-p > summary, .pay-total { min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Sorpa / disposal fee on the job report */
.sorpaq { border: 1px solid var(--line, #dfe5ee); border-radius: 12px; padding: 10px 12px 4px; margin: 10px 0; }
.sorpaq legend { font-weight: 600; padding: 0 6px; }
.sorpaq label.inline { margin-top: 8px; }
@media (max-width: 400px) { .photo-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Fastir viðskiptavinir + the fee under an invoice amount */
.btn.nowrap { white-space: nowrap; flex: none; }
.card.reg h2 { margin: 0; font-size: 1.05rem; }
.card.reg p { margin: 0.25rem 0; overflow-wrap: anywhere; }
.card.reg .row.end { margin-top: 0.5rem; gap: 0.5rem; }

/* Innheimta on the dashboard */
.col-sum { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 2px 0 10px; }
.col-total { font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.col-tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.col-tbl table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.col-tbl th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--d-muted); font-weight: 600; padding: 4px 8px; border-bottom: 1px solid var(--d-line); white-space: nowrap; }
.col-tbl td { padding: 6px 8px; border-bottom: 1px solid var(--d-line); vertical-align: top; }
.col-tbl .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.col-tbl .b { font-weight: 700; white-space: nowrap; }
.col-tbl tr.paid td { opacity: .6; }
.col-st { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.col-st.unpaid { background: rgba(255,179,71,.16); color: #ffb347; }
.col-st.collection { background: rgba(255,99,99,.18); color: #ff8080; }
.col-st.paid { background: rgba(80,200,120,.16); color: #6fdc9a; }
.col-mail { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.col-mail .d-muted { flex: 1 1 220px; }
@media (max-width: 700px) {
  .col-tbl thead { display: none; }
  .col-tbl table, .col-tbl tbody { display: block; }
  .col-tbl tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid var(--d-line); }
  .col-tbl td { border: 0; padding: 0; text-align: left; white-space: normal; }
  .col-tbl td.n { text-align: left; }
  .col-tbl td[data-l]::before { content: attr(data-l); display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .04em; color: var(--d-muted); font-weight: 400; }
}
.col-note { display: block; color: var(--d-muted); font-size: .72rem; margin-top: 2px; }

/* several jobs on one invoice */
.bundle-list { max-height: 46vh; overflow-y: auto; border: 1px solid var(--line, #dfe3ea); border-radius: 12px; }
.bundle-row { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; padding: 8px 10px; border-bottom: 1px solid var(--line, #dfe3ea); flex-wrap: wrap; }
.bundle-row:last-child { border-bottom: 0; }
.bundle-row.on { background: rgba(35, 61, 115, .06); }
.bundle-row .check { flex: 1 1 220px; margin: 0; align-items: flex-start; }
.bundle-row .check small { display: block; color: var(--muted); font-weight: 400; overflow-wrap: anywhere; }
.bundle-kr { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bundle-amt { flex: 0 0 150px; margin: 0; font-size: .75rem; }
.bundle-amt input { text-align: right; font-variant-numeric: tabular-nums; }
.bundle-sum { margin: .2rem 0; }
.rv-bundle span { display: block; }
.rv-bundle em { font-style: normal; font-weight: 600; white-space: nowrap; }
