/*
 * NEXORA live page styles. Mobile-first:
 *   base            phones (320–767px)
 *   min-width 768   tablets (768–1023px)
 *   min-width 1024  laptops and desktops (content max 1000px, centred)
 * One page for every device; only the layout changes, never the content.
 */

/* ------------------------------------------------------------------ design tokens (unchanged identity) */
:root {
  color-scheme: light;
  --navy-900: #0b1b33; --teal-600: #0e8c8c; --teal-700: #0b6f70; --teal-300: #5fd4cf;
  --bg: #f6f8fb; --card: #fff; --ink: #13233c; --muted: #55647a; --line: #dde3ec;
  --ok: #17693f; --ok-bg: #e3f4ea; --warn: #8a5200; --warn-bg: #fdf0d9; --bad: #a62626; --bad-bg: #fbe6e6;
  --on-primary: #fff;
  --radius: 12px; --radius-sm: 8px;
  --gutter: 12px;          /* page side padding */
  --gap: 12px;             /* space between blocks */
  --content: 1000px;       /* desktop content width */
  --touch: 44px;           /* minimum touch target */
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --bg: #0d1829; --card: #14233a; --ink: #e8eef7; --muted: #a3b2c7; --line: #26384f;
    --teal-700: #5fd4cf; --teal-600: #5fd4cf; --on-primary: #06202a;
    --ok: #7fdca6; --ok-bg: #14382a; --warn: #f3c779; --warn-bg: #3d2e12; --bad: #f59a9a; --bad-bg: #421e22; }
}
@media (min-width: 768px)  { :root { --gutter: 20px; --gap: 16px; } }
@media (min-width: 1024px) { :root { --gutter: 24px; --gap: 18px; } }

/* ------------------------------------------------------------------ base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; }
body { font: 15px/1.5 Inter, "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif; color: var(--ink);
  background: var(--bg); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal-300); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 17px; line-height: 1.3; }
h3 { font-size: 15px; line-height: 1.3; }
@media (min-width: 768px) { h2 { font-size: 19px; } h3 { font-size: 16px; } }
a { color: var(--teal-700); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hint { font-weight: 400; font-size: 12px; color: var(--muted); }
.empty { color: var(--muted); padding: 8px 0; }
.warnline { color: var(--warn); font-weight: 600; }
/* long names, emails and links wrap instead of pushing the page wider than the screen */
.small, .item, .msg, .summary, .balance, td { overflow-wrap: anywhere; }
/* tables from tablet up: words like «Υπεύθυνος» are not cut in two (long emails still wrap) */
@media (min-width: 768px) {
  table.report td { overflow-wrap: break-word; }
  table.report td[data-label="Email"], table.report td[data-label="Υπεύθυνος"] { overflow-wrap: anywhere; }
}

/* ------------------------------------------------------------------ header */
.top { background: var(--navy-900); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: max(10px, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) 10px max(var(--gutter), env(safe-area-inset-left)); }
.brand { font-weight: 700; letter-spacing: .08em; flex: none; }
.brand::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--teal-300); margin-right: 8px; }
.who { display: flex; align-items: center; justify-content: flex-end; gap: 10px; font-size: 13px; flex: 1; min-width: 0; }
.person { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; min-width: 0; }
.person-name { font-weight: 600; max-width: 100%; text-align: right; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.person-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; opacity: .9; justify-content: flex-end; min-width: 0; }
.person-meta .org { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .role { background: rgba(255,255,255,.12); padding: 1px 8px; border-radius: 99px; white-space: nowrap; }
.who button { flex: none; background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 6px;
  padding: 6px 12px; min-height: 40px; cursor: pointer; }
@media (min-width: 768px) {
  .top { padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: 12px; }
  .person { flex-direction: row; align-items: center; gap: 10px; }
}

/* ------------------------------------------------------------------ page frame */
.main { flex: 1; width: 100%; max-width: var(--content); margin: 0 auto;
  padding: var(--gutter) max(var(--gutter), env(safe-area-inset-right)) calc(var(--gutter) * 2) max(var(--gutter), env(safe-area-inset-left));
  display: grid; gap: var(--gap); align-content: start; }
.foot { text-align: center; padding: 16px var(--gutter) max(16px, env(safe-area-inset-bottom)); font-size: 13px; color: var(--muted); }
/* grid and flex children may shrink below their content width (the cause of most overflow bugs) */
.main > *, .card > *, .list > *, .item > *, form > *, label, .row > *, .nav > * { min-width: 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 12px; }
@media (min-width: 768px)  { .card { padding: 20px; gap: 14px; } }
@media (min-width: 1024px) { .card { padding: 24px; gap: 16px; } }
.auth { max-width: 440px; width: 100%; margin: 0 auto; }
@media (min-width: 768px) { .auth { margin-top: 24px; } }

/* ------------------------------------------------------------------ navigation
   phones: a "menu" button that opens the list of pages
   tablets and desktops: horizontal tabs */
.nav { display: grid; gap: 8px; }
.menu-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: var(--touch);
  padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); cursor: pointer; font-weight: 600; }
.menu-toggle .menu-label { display: flex; align-items: center; gap: 10px; min-width: 0; }
.menu-toggle .menu-label span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-icon { width: 18px; height: 12px; flex: none; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.menu-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
.menu-toggle .chev { flex: none; transition: transform .15s; }
.nav.open .menu-toggle .chev { transform: rotate(180deg); }

.tabs { display: none; flex-direction: column; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.nav.open .tabs { display: flex; }
.tabs button { display: flex; align-items: center; min-height: var(--touch); padding: 8px 12px; border: 0; border-radius: 6px; background: none;
  cursor: pointer; color: var(--ink); text-align: left; white-space: nowrap; }
.tabs button:hover { background: var(--bg); }
.tabs button[aria-selected="true"] { background: var(--teal-600); color: var(--on-primary); font-weight: 600; }

@media (min-width: 768px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
  .tabs, .nav.open .tabs { display: flex; flex-direction: row; gap: 2px; padding: 0; border: 0; border-bottom: 1px solid var(--line);
    border-radius: 0; background: none; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { border-bottom: 3px solid transparent; border-radius: 0; color: var(--muted); padding: 10px 14px; flex: none; }
  .tabs button:hover { background: none; color: var(--ink); }
  .tabs button[aria-selected="true"] { background: none; color: var(--ink); border-bottom-color: var(--teal-600); }
}

/* ------------------------------------------------------------------ forms */
form { display: grid; gap: 12px; }
label { display: grid; gap: 4px; font-size: 14px; font-weight: 500; }
/* 16px on fields: iPhone/iPad do not zoom in when a field is tapped */
input, select, textarea { width: 100%; max-width: 100%; min-height: var(--touch); padding: 9px 12px; font-size: 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
input[type="date"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; }
textarea { min-height: 88px; resize: vertical; }
/* fields in pairs: one under the other on phones, side by side from tablet up */
.row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 768px) { .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.checks { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.check, .days .day { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 400; min-height: var(--touch); }
.check input, .days .day input { width: 20px; height: 20px; min-height: 0; padding: 0; flex: none; accent-color: var(--teal-600); }
.days { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 12px 10px; display: flex; flex-wrap: wrap; gap: 0 16px; align-items: center; margin: 0; }
.days legend { font-size: 14px; font-weight: 500; padding: 0 4px; }
.days .hint { flex-basis: 100%; }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--touch);
  border: 1px solid var(--line); background: var(--card); border-radius: var(--radius-sm); padding: 9px 16px; cursor: pointer; font-weight: 600; text-align: center; }
.btn.primary { background: var(--teal-600); border-color: var(--teal-600); color: var(--on-primary); }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.link { border: 0; background: none; color: var(--teal-700); padding: 0 2px; min-height: 0; font-weight: 500; text-decoration: underline; display: inline; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* phones: buttons share the full width, easy to hit with a thumb */
.actions .btn { flex: 1 1 140px; }
@media (min-width: 768px) { .actions .btn { flex: 0 0 auto; } }

/* ------------------------------------------------------------------ messages */
.msg { padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; }
.msg.ok { background: var(--ok-bg); color: var(--ok); }
.msg.bad { background: var(--bad-bg); color: var(--bad); }
.msg.info { background: var(--warn-bg); color: var(--warn); }
.msg p + p { margin-top: 4px; }
.linkrow { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.linkrow input { flex: 1 1 240px; min-width: 0; font-size: 14px; }
.linkrow .btn { flex: 1 1 160px; }
@media (min-width: 768px) { .linkrow .btn { flex: 0 0 auto; } }

/* ------------------------------------------------------------------ lists and items */
.list { display: grid; gap: 8px; }
.item { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 6px; }
@media (min-width: 768px) { .item { padding: 14px 16px; } }
.item-head { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
@media (min-width: 768px) { .item-head { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 10px; } }
.item-head .badge { margin-left: 0; }
.badge { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 99px; font-weight: 600; white-space: nowrap; }
.badge.pending { background: var(--warn-bg); color: var(--warn); }
.badge.approved { background: var(--ok-bg); color: var(--ok); }
.badge.rejected { background: var(--bad-bg); color: var(--bad); }
.item-head span .badge { margin-left: 8px; }
.editor { margin-top: 8px; padding: 12px; border: 1px dashed var(--line); border-radius: 10px; }
.typerow { gap: 10px; }
/* desktop: people and leave types in two columns, so wide screens are used without huge empty space */
@media (min-width: 1024px) { .list.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }

/* ------------------------------------------------------------------ balance cards (dashboard figures) */
.summary { display: grid; gap: 4px; font-size: 14px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); }
.summary:empty { display: none; }
.balances { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.balance { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 6px; background: var(--bg); }
.balance-title { font-size: 13px; color: var(--muted); font-weight: 600; }
.balance-main { font-size: 15px; }
.balance-main strong { font-size: 24px; color: var(--teal-700); margin-right: 4px; }
@media (min-width: 768px) { .balance-main strong { font-size: 28px; } }
.bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--teal-600); border-radius: 99px; }
.balance-parts { display: flex; flex-wrap: wrap; gap: 4px 14px; }

/* two-column pages on desktop: form/list on the left, balance on the right */
.split { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
.split > * { min-width: 0; }
.split-main { display: grid; gap: 12px; align-content: start; }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 1fr) 300px; column-gap: 28px; align-items: start; }
  .split > .side { grid-column: 2; grid-row: 1; position: sticky; top: 16px; }
  .split > .split-main { grid-column: 1; grid-row: 1; }
  .split > .side .balances { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ report table
   tablets and desktops: a table (scrolls sideways inside its box if ever too wide)
   phones: one small card per person */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
table.report { width: 100%; border-collapse: collapse; font-size: 14px; }
table.report th, table.report td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.report th { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
@media (max-width: 767px) {
  table.report thead { display: none; }
  table.report, table.report tbody, table.report tr, table.report td { display: block; width: 100%; }
  table.report tr { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
  table.report td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  table.report td.who-cell { font-weight: 700; text-align: left; display: block; padding-bottom: 6px; }
  table.report td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 13px; text-align: left; flex: none; }
  table.report td .val { text-align: right; }
}

/* ------------------------------------------------------------------ leave days per type */
.bytype { background: var(--card); }
.typelist { list-style: none; margin: 0; padding: 0; display: grid; }
.typelist li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.typelist li:last-child { border-bottom: 0; }
.typename { min-width: 0; }
.typedays { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.typedays strong { white-space: nowrap; }
.member-types { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 9px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); white-space: nowrap; }
.chip.pending { background: var(--warn-bg); color: var(--warn); border-color: transparent; }

/* ------------------------------------------------------------------ year calendar */
:root { --c-annual: #0e8c8c; --c-sick: #c2410c; --c-other: #6d4fd1; --c-hol: #fdf0d9; --c-off: #eef1f6; }
@media (prefers-color-scheme: dark) { :root { --c-annual: #2bb5b0; --c-sick: #f08a5d; --c-other: #a493f2; --c-hol: #3d2e12; --c-off: #1b2b44; } }
.calbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; justify-content: space-between; }
.calbar > label { flex: 1 1 220px; max-width: 360px; }
.yearnav { display: flex; align-items: center; gap: 8px; flex: 1 1 220px; justify-content: space-between; }
@media (min-width: 768px) { .yearnav { flex: 0 0 auto; } }
.yearnow { font-size: 18px; min-width: 56px; text-align: center; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.calendar { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
@media (min-width: 768px) { .calendar { gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.cmonth { border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: var(--card); min-width: 0; }
@media (min-width: 768px) { .cmonth { padding: 10px; } }
.cmonth-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; gap: 8px; }
.cgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
@media (min-width: 768px) { .cgrid { gap: 3px; } }
.cday { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; font-size: 11px; border-radius: 5px; line-height: 1; min-width: 0; }
@media (min-width: 768px) { .cday { font-size: 12px; border-radius: 6px; } }
.cday.wh { color: var(--muted); font-weight: 600; aspect-ratio: auto; padding-bottom: 2px; }
.cday.off { background: var(--c-off); color: var(--muted); }
.cday.hol { background: var(--c-hol); color: var(--warn); font-weight: 600; }
.cday.leave { color: #fff; font-weight: 700; }
.cday.leave.annual { background: var(--c-annual); }
.cday.leave.sick { background: var(--c-sick); }
.cday.leave.other { background: var(--c-other); }
.cday.leave.pending { background: transparent; color: var(--ink); border: 2px dashed var(--c-annual); }
.cday.leave.sick.pending { border-color: var(--c-sick); }
.cday.leave.other.pending { border-color: var(--c-other); }
@media (prefers-color-scheme: dark) { .cday.leave:not(.pending) { color: #06202a; } }
.cday.today { outline: 2px solid var(--ink); outline-offset: -2px; }
.cday.swatch { width: 18px; height: 18px; aspect-ratio: auto; flex: none; }
.calhead { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.calinfo { display: grid; gap: 8px; align-content: start; }
@media (min-width: 768px) { .calhead { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 1024px) { .calendar { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ team calendar (admin/manager) */
.teamstats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.teamwrap { border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.teamwrap:focus-visible { outline: 2px solid var(--teal-300); }
table.teamcal { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; table-layout: fixed; font-size: 12px; }
table.teamcal th, table.teamcal td { padding: 2px 1px; text-align: center; border-bottom: 1px solid var(--line); }
table.teamcal tbody tr:last-child th, table.teamcal tbody tr:last-child td { border-bottom: 0; }
table.teamcal thead th { font-weight: 600; color: var(--muted); padding-top: 6px; padding-bottom: 6px; }
table.teamcal thead th span { display: block; line-height: 1.2; }
table.teamcal thead th .tc-wd { font-size: 11px; }
table.teamcal thead th.we { color: var(--muted); opacity: .7; }
table.teamcal thead th.hol { color: var(--warn); }
table.teamcal thead th.today { color: var(--ink); background: var(--bg); border-radius: 6px 6px 0 0; }
table.teamcal .tc-name { position: sticky; left: 0; z-index: 1; background: var(--card); width: 130px; text-align: left; padding: 6px 8px;
  border-right: 1px solid var(--line); font-weight: 600; color: var(--ink); }
table.teamcal .tc-name span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.teamcal .tc-role { font-weight: 400; color: var(--muted); font-size: 11px; }
table.teamcal .tc-sum { width: 42px; font-weight: 700; }
table.teamcal td .cday { aspect-ratio: auto; height: 22px; border-radius: 4px; }
.teamleave .item-head strong { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.teamleave .item-head strong > span:last-child { min-width: 0; }
.teamleave .cday.swatch { width: 14px; height: 14px; margin-top: 4px; }
@media (max-width: 767px) { table.teamcal .tc-name { width: 112px; padding: 6px; } table.teamcal { min-width: 700px; } }
.onlyphone { margin-top: -6px; }
@media (min-width: 1024px) { .onlyphone { display: none; } table.teamcal .tc-name { width: 175px; } }
.monthnav { display: grid; gap: 6px; flex: 1 1 300px; max-width: 440px; }
.monthnav-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); gap: 6px; }
.monthnav .btn { padding: 8px 6px; white-space: nowrap; }
.monthpick { text-align: center; text-align-last: center; font-weight: 700; }
@media (min-width: 768px) { .monthnav { flex: 0 1 440px; } }
@media (max-width: 479px) {
  .monthnav-row.months { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .monthnav-row.months .monthpick { grid-column: 1 / -1; order: -1; }
}

/* ------------------------------------------------------------------ cancel / reason / people who left */
.badge.cancelled { background: var(--c-off); color: var(--muted); }
.note { color: var(--ink); background: var(--bg); border-left: 3px solid var(--line); padding: 4px 8px; border-radius: 4px; }
.notebox { display: grid; gap: 8px; padding: 10px; border: 1px dashed var(--line); border-radius: 10px; margin-top: 4px; }
.item.left { opacity: .8; }
.badge.left { background: var(--c-off); color: var(--muted); }
.leftlist { border: 1px solid var(--line); border-radius: 10px; padding: 4px 12px; }
.leftlist summary { cursor: pointer; min-height: var(--touch); display: flex; align-items: center; font-weight: 600; color: var(--muted); }
.leftlist[open] summary { margin-bottom: 8px; }
.leftlist .list { margin-bottom: 12px; }
.auditbox { display: grid; gap: 10px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.auditlist { gap: 0; }
.audit { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; }
@media (min-width: 768px) { .audit { grid-template-columns: 140px minmax(0, 1fr); gap: 12px; } }
.importbox { display: grid; gap: 10px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.importbox input[type="file"] { padding: 10px; }
.importtable tr.bad td { background: var(--bad-bg); }
.importbox > * { min-width: 0; }   /* the check table scrolls inside its box instead of widening the page */
.okline { color: var(--ok); font-weight: 600; }

/* ------------------------------------------------------------------ notifications */
.tabs button .count, .menu-label .count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px;
  padding: 0 6px; margin-left: 6px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
@media (prefers-color-scheme: dark) { .tabs button .count, .menu-label .count { color: #1a0b0b; } }
.newsbox { display: grid; gap: 8px; padding: 12px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--teal-600);
  box-shadow: inset 4px 0 0 var(--teal-600); }
.newsbox ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.newsbox li { overflow-wrap: anywhere; }
.newsbox li .badge { margin-right: 4px; }
.item.isnew { border-color: var(--teal-600); box-shadow: inset 4px 0 0 var(--teal-600); }
.badge.newtag { background: var(--teal-600); color: var(--on-primary); }
.holidaylist { gap: 0; }
.holiday { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); grid-template-columns: minmax(0, 1fr); align-items: center; }
.holiday .chip { margin-left: 8px; }
@media (min-width: 768px) { .holiday { grid-template-columns: 190px minmax(0, 1fr) auto; } }
.endrow { align-items: end; }
