/* TimeSplit – colours derived from the logo of Gemeng Reckeng op der Mess
   (petrol blue #034D69, olive gold #9D911A, grey #616264). */
:root {
  --petrol: #034d69; --petrol-dark: #02384d; --petrol-light: #e3eef2;
  --olive: #9d911a; --olive-dark: #6b6310; --olive-light: #f3f1dd;
  --grey: #616264; --bg: #f4f6f7; --card: #fff; --text: #17242c; --muted: #4f5b63; --line: #d5dde1;
  --ok: #1e7a3c; --ok-bg: #e4f3e8; --warn: #a35200; --warn-bg: #fff0dc; --danger: #b3261e; --danger-bg: #fde8e6;
  --radius: 14px; --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 14px rgba(0,0,0,.05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.4; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 4px solid var(--olive); outline-offset: 2px; }
.ic { display: inline-flex; align-items: center; justify-content: center; flex: none; }
h1, h2, h3 { line-height: 1.2; }
a { color: var(--petrol); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header ---------- */
.app-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; background: #fff; border-bottom: 4px solid var(--petrol); flex-wrap: wrap; }
.app-header .brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.app-title { font-weight: 800; font-size: 1.5rem; color: var(--petrol); letter-spacing: .2px; }
.version { font-size: .8rem; color: var(--muted); font-weight: 600; background: var(--petrol-light); padding: 2px 7px; border-radius: 999px; }
.org-logo { height: 46px; width: auto; margin-left: 12px; }
.app-header.compact { padding: 6px 12px; }
.app-header.compact .app-title { font-size: 1.25rem; }
.app-header.compact .org-logo { height: 38px; }
.header-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.who { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 1.1rem; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 10px; border: 2px solid var(--line); background: #fff; font-weight: 600; text-decoration: none; color: var(--text); }
.btn:hover { border-color: var(--petrol); }
.btn.primary { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.btn.primary:hover { background: var(--petrol-dark); }
.btn.danger { color: var(--danger); border-color: #e7b5b0; background: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.small { min-height: 36px; padding: 4px 10px; font-size: .95rem; }
.btn.big { min-height: 60px; font-size: 1.1rem; padding: 10px 18px; }
.btn.huge { min-height: 76px; font-size: 1.4rem; width: 100%; border-radius: var(--radius); }
.btn.logout { min-height: 56px; min-width: 56px; background: var(--olive-light); border-color: var(--olive); color: var(--olive-dark); font-size: 1.05rem; }

/* ---------- toasts / notices / modal ---------- */
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 1000; width: min(560px, calc(100% - 24px)); }
.toast { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; background: #17242c; color: #fff; font-size: 1.1rem; box-shadow: var(--shadow); }
.toast.ok .ic { color: #7fe0a0; } .toast.warn { background: #6b3600; }
.toast-action { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 6px 14px; border-radius: 10px; border: 2px solid #fff; background: transparent; color: #fff; font-weight: 700; }
.notice { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 10px; margin: 10px 0; }
.notice.ok { background: var(--ok-bg); color: var(--ok); } .notice.warn { background: var(--warn-bg); color: var(--warn); } .notice.info { background: var(--petrol-light); color: var(--petrol-dark); }
.overlay { position: fixed; inset: 0; background: rgba(10, 25, 33, .55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 900; }
.modal { background: #fff; border-radius: 16px; padding: 22px; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.modal.wide { width: min(980px, 100%); }
.modal:focus { outline: none; }
.modal-title { margin: 0 0 14px; color: var(--petrol); font-size: 1.3rem; }
.about-modal { border-top: 8px solid var(--petrol); }
.about { text-align: center; }
.about-logos { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.about-logos img { height: 96px; width: auto; }
.about-name { color: var(--petrol); margin: 14px 0 4px; font-size: 1.6rem; }
.about-desc { color: var(--text); margin: 6px 0 12px; }
.about hr { border: 0; border-top: 2px solid var(--olive); margin: 14px 0; }
.about-credit { font-weight: 600; color: var(--petrol-dark); }
.about-actions { margin-top: 16px; }

/* =====================================================================
   WORKER INTERFACE (large, simple, touch + mouse + keyboard)
   ===================================================================== */
body.worker-app { font-size: 20px; }
main.worker, main.login { max-width: 860px; margin: 0 auto; padding: 14px 14px 60px; }
.screen-title { font-size: 1.6rem; margin: 6px 0 14px; color: var(--petrol-dark); }
.center-msg { text-align: center; padding: 30px 10px; color: var(--muted); }
.big-text { font-size: 1.3rem; }
.login-top { display: flex; justify-content: center; margin: 8px 0 4px; }
.lang-switch { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.lang-btn { min-height: 56px; min-width: 56px; padding: 6px 16px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-size: 1rem; font-weight: 600; }
.lang-btn.active { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.name-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.name-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 10px; min-height: 160px; border-radius: var(--radius); border: 2px solid var(--line); background: #fff; box-shadow: var(--shadow); font-size: 1.2rem; font-weight: 700; }
.name-tile:hover { border-color: var(--petrol); }
.avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.avatar.initials { display: flex; align-items: center; justify-content: center; background: var(--petrol-light); color: var(--petrol); font-size: 2rem; font-weight: 800; }
.pin-box { max-width: 380px; margin: 0 auto; text-align: center; }
.pin-box.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.pin-label { font-size: 1.3rem; font-weight: 600; margin: 4px 0 10px; }
.pin-dots { display: flex; justify-content: center; gap: 16px; margin: 8px 0; }
.pin-dots .dot { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--petrol); }
.pin-dots .dot.filled { background: var(--petrol); }
.pin-msg { min-height: 1.6em; color: var(--danger); font-weight: 600; }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pin-key { min-height: 76px; font-size: 2rem; font-weight: 700; border-radius: 16px; border: 2px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.pin-key:active { background: var(--petrol-light); }
.pin-key.muted { color: var(--muted); }
.btn.back { min-height: 56px; font-size: 1.1rem; background: #fff; }
.menu-btn { min-height: 56px; font-size: 1.05rem; }

.day-nav { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; gap: 8px; margin-bottom: 10px; }
.day-nav.small { grid-template-columns: 60px 1fr 60px; }
.nav-arrow { min-height: 72px; border-radius: var(--radius); border: 2px solid var(--line); background: #fff; color: var(--petrol); display: flex; align-items: center; justify-content: center; }
.day-title { text-align: center; }
.day-title h1 { font-size: 1.45rem; margin: 0; color: var(--petrol-dark); }
.day-title h2 { font-size: 1.3rem; margin: 0; }
.day-chips { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.chip { min-height: 56px; padding: 6px 18px; border-radius: 999px; border: 2px solid var(--petrol); background: #fff; color: var(--petrol); font-weight: 700; font-size: 1rem; display: inline-flex; align-items: center; }
.chip.current { background: var(--petrol); color: #fff; }
.day-note { margin: 6px 0 0; color: var(--olive-dark); font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; }
.progress { background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); margin-bottom: 14px; }
.progress-bar { height: 22px; border-radius: 999px; background: #e7ecee; overflow: hidden; }
.progress-fill { height: 100%; background: var(--petrol); border-radius: 999px; transition: width .3s; }
.progress.done .progress-fill { background: var(--ok); }
.progress.warn .progress-fill { background: #e08600; }
.progress-text { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 8px 0 0; }
.progress.done .progress-text span { color: var(--ok); font-weight: 600; }
.progress.warn .progress-text span { color: var(--warn); font-weight: 600; }
.cards { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.empty { color: var(--muted); text-align: center; padding: 18px; background: #fff; border-radius: var(--radius); border: 2px dashed var(--line); }
.entry-card, .shortcut, .chosen, .domain-total { --dc: var(--petrol); display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; min-height: 80px; padding: 12px 16px; border-radius: var(--radius); border: 2px solid var(--line); border-left: 12px solid var(--dc); background: #fff; box-shadow: var(--shadow); }
.entry-card:hover:not(:disabled), .shortcut:hover { border-color: var(--dc); }
.entry-card:disabled { opacity: 1; cursor: default; }
.card-icon { width: 54px; height: 54px; border-radius: 12px; background: var(--dc); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.card-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.card-domain, .shortcut small, .chosen small { font-size: .85rem; color: var(--muted); font-weight: 600; }
.card-task, .shortcut strong, .chosen strong { font-size: 1.15rem; font-weight: 700; overflow-wrap: anywhere; }
.card-hours { font-size: 1.6rem; font-weight: 800; color: var(--petrol-dark); white-space: nowrap; }
.card-hours small { font-size: .9rem; font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-top: 4px; width: fit-content; }
.badge.ot { background: var(--olive-light); color: var(--olive-dark); }
.add-btn { margin: 6px 0 14px; }
.secondary-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; flex-wrap: wrap; }
.step-head .screen-title { margin: 0; }
.step-n { margin: 0; color: var(--muted); font-weight: 700; font-size: .95rem; }
.step-question { font-size: 1.25rem; font-weight: 700; margin: 6px 0 10px; }
.section-title { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; color: var(--olive-dark); margin: 16px 0 8px; }
.shortcuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.shortcut span:last-child { display: flex; flex-direction: column; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.tile { --dc: var(--petrol); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 140px; padding: 14px 8px; border-radius: var(--radius); border: 2px solid var(--line); border-top: 10px solid var(--dc); background: #fff; box-shadow: var(--shadow); font-weight: 700; font-size: 1.05rem; text-align: center; }
.tile:hover { border-color: var(--dc); }
.tile-icon { width: 70px; height: 70px; border-radius: 50%; background: var(--dc); color: #fff; display: flex; align-items: center; justify-content: center; }
.tile.absence { background: #fffaf2; }
.tiles.villages .tile { min-height: 120px; }
.task-list { display: flex; flex-direction: column; gap: 8px; }
.task-item { --dc: var(--petrol); display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px; border-radius: 12px; border: 2px solid var(--line); background: #fff; text-align: left; font-size: 1.15rem; font-weight: 600; }
.task-item > span:nth-child(2) { flex: 1; }
.task-item:hover, .task-item.selected { border-color: var(--dc); }
.task-item.selected { background: var(--petrol-light); }
.task-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--dc); flex: none; }
.search { display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 10px; }
.search input { border: 0; outline: 0; min-height: 56px; flex: 1; font-size: 1.1rem; background: transparent; }
.chosen { margin: 6px 0 16px; }
.chosen span:last-child { display: flex; flex-direction: column; }
.stepper { display: grid; grid-template-columns: 96px 1fr 96px; gap: 12px; align-items: center; }
.step-btn { min-height: 96px; border-radius: 18px; border: 2px solid var(--petrol); background: #fff; color: var(--petrol); display: flex; align-items: center; justify-content: center; }
.step-btn:active { background: var(--petrol-light); }
.hours-value { text-align: center; font-size: 3rem; font-weight: 800; color: var(--petrol-dark); }
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin: 16px 0; }
.preset { min-height: 64px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font-size: 1.2rem; font-weight: 700; }
.preset.selected { background: var(--petrol); color: #fff; border-color: var(--petrol); }
.preset.rest { grid-column: span 2; }
.ot-toggle { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 72px; margin: 0 0 16px; border-radius: var(--radius); border: 3px dashed var(--olive); background: #fff; color: var(--olive-dark); font-size: 1.2rem; font-weight: 700; }
.ot-toggle.on { background: var(--olive); color: #fff; border-style: solid; }
.delete-btn { width: 100%; margin-top: 12px; }
.date-range { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.date-range label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.date-input { min-height: 60px; font-size: 1.2rem; padding: 6px 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
.summary-total { font-size: 1.2rem; }
.day-rows { display: flex; flex-direction: column; gap: 6px; }
.day-row { display: grid; grid-template-columns: 130px 1fr 90px; align-items: center; gap: 10px; min-height: 56px; padding: 6px 12px; border-radius: 10px; border: 2px solid var(--line); background: #fff; text-align: left; }
.day-row .day-name { font-weight: 700; display: flex; flex-direction: column; }
.day-row .day-name small { font-weight: 500; color: var(--olive-dark); font-size: .8rem; }
.day-bar { height: 14px; background: #edf1f2; border-radius: 99px; overflow: hidden; }
.day-bar span { display: block; height: 100%; background: var(--petrol); border-radius: 99px; }
.day-row.done .day-bar span { background: var(--ok); }
.day-row.empty { border-color: #e7b97f; background: #fffaf2; }
.day-row.off { background: #f1f3f4; color: var(--muted); }
.day-hours { text-align: right; font-weight: 700; }
.domain-totals { display: flex; flex-direction: column; gap: 8px; }
.domain-total { min-height: 64px; }
.domain-total span:nth-child(2) { flex: 1; font-weight: 600; }
.menu-list { display: flex; flex-direction: column; gap: 10px; }
.menu-item { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 14px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font-size: 1.15rem; font-weight: 600; text-align: left; }
.menu-item.small { min-height: 56px; font-size: 1rem; color: var(--muted); }
.menu-lang p { display: flex; align-items: center; gap: 6px; margin: 6px 0; font-weight: 600; }
.hint { color: var(--muted); font-size: .95rem; }

@media (max-width: 560px) {
  body.worker-app { font-size: 18px; }
  .app-header.compact .org-logo { height: 30px; margin-left: 4px; }
  .app-header.compact .version { display: none; }
  .app-header.compact { gap: 6px; }
  .who { font-size: 1rem; }
  .btn.logout span:last-child, .menu-btn { font-size: .95rem; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .stepper { grid-template-columns: 76px 1fr 76px; }
  .hours-value { font-size: 2.4rem; }
  .day-row { grid-template-columns: 96px 1fr 72px; }
  .date-range { grid-template-columns: 1fr; }
}

/* =====================================================================
   OFFICE INTERFACE (worker manager, municipality manager, administrator)
   ===================================================================== */
body.office-app { font-size: 15px; }
.office-nav { display: flex; gap: 4px; padding: 0 16px; background: var(--petrol); overflow-x: auto; }
.office-nav a, .office-nav button { display: inline-flex; align-items: center; gap: 6px; color: #e6f0f3; text-decoration: none; padding: 12px 14px; border: 0; background: transparent; font-weight: 600; white-space: nowrap; border-bottom: 4px solid transparent; }
.office-nav a.active { color: #fff; border-bottom-color: var(--olive); }
.office-nav a:hover, .office-nav button:hover { color: #fff; background: rgba(255,255,255,.08); }
.office-nav .spacer { flex: 1; }
main.office { max-width: 1500px; margin: 0 auto; padding: 16px 20px 60px; }
.page-title { color: var(--petrol-dark); margin: 4px 0 14px; font-size: 1.5rem; }
.toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-bottom: 14px; padding: 12px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea, .inp { min-height: 40px; padding: 6px 10px; border: 1.5px solid #b9c5cb; border-radius: 8px; background: #fff; color: var(--text); font-weight: 400; }
.field input[type=checkbox] { min-height: auto; width: 20px; height: 20px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; min-height: 40px; }
.check input { width: 20px; height: 20px; }
.panel { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px; }
.panel h2 { margin: 0 0 12px; font-size: 1.15rem; color: var(--petrol-dark); }
.panel h3 { color: var(--petrol); font-size: 1rem; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.table-wrap { overflow: auto; max-width: 100%; }
table.data { border-collapse: collapse; width: 100%; font-size: .9rem; background: #fff; }
table.data th { background: var(--petrol); color: #fff; text-align: left; padding: 7px 8px; position: sticky; top: 0; z-index: 1; font-weight: 600; white-space: nowrap; }
table.data td { padding: 6px 8px; border-bottom: 1px solid #e6ebee; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tr.total td { font-weight: 700; background: var(--petrol-light); }
table.data tr.absence td { font-style: italic; color: var(--muted); background: #fafafa; }
table.data tr:hover td { background: #f4f8f9; }
table.data tr.inactive td { color: #8a959b; }
.chart-box { position: relative; height: 340px; margin: 12px 0 4px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: .8rem; font-weight: 700; background: var(--petrol-light); color: var(--petrol-dark); }
.tag.warn { background: var(--warn-bg); color: var(--warn); } .tag.ok { background: var(--ok-bg); color: var(--ok); } .tag.grey { background: #eceff1; color: var(--muted); }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: middle; margin-right: 6px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.subnav a { padding: 8px 12px; border-radius: 8px; background: #fff; border: 1.5px solid var(--line); text-decoration: none; color: var(--text); font-weight: 600; }
.subnav a.active { background: var(--petrol); color: #fff; border-color: var(--petrol); }
.login-box { max-width: 420px; margin: 40px auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.right { text-align: right; }
.row-actions { white-space: nowrap; display: flex; gap: 4px; }
.icon-btn { min-height: 34px; min-width: 34px; padding: 4px 8px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; display: inline-flex; align-items: center; gap: 4px; }
.drag { cursor: grab; color: var(--muted); }
tr.dragging { opacity: .4; }

/* month grid */
.grid-table { border-collapse: separate; border-spacing: 0; font-size: .85rem; background: #fff; }
.grid-table th, .grid-table td { border-right: 1px solid #e2e8eb; border-bottom: 1px solid #e2e8eb; padding: 0; text-align: center; }
.grid-table th { background: var(--petrol); color: #fff; padding: 4px 2px; font-weight: 600; position: sticky; top: 0; z-index: 2; min-width: 38px; }
.grid-table th.task-col, .grid-table td.task-col { position: sticky; left: 0; z-index: 3; background: #fff; text-align: left; padding: 4px 8px; min-width: 260px; max-width: 320px; }
.grid-table th.task-col { background: var(--petrol); }
.grid-table .we { background: #eef1f3; }
.grid-table th.we { background: #2f6b82; }
.grid-table .hol { background: #f4eccd; }
.grid-table th.hol { background: #7d7414; }
.grid-table input { width: 40px; height: 32px; border: 0; text-align: center; background: transparent; font: inherit; }
.grid-table input:focus { outline: 3px solid var(--olive); background: #fffde8; }
.grid-table td.tot { font-weight: 700; padding: 4px 6px; background: var(--petrol-light); }
.grid-table tr.day-total td { font-weight: 700; background: var(--petrol-light); padding: 4px 2px; }
.grid-table td.over { background: var(--warn-bg); color: var(--warn); }
.grid-table td.under { color: var(--warn); }
.grid-table .ot-cell { padding: 2px 4px; }
.task-name { display: flex; align-items: center; gap: 6px; }
.task-name .dom { font-size: .75rem; color: var(--muted); display: block; }

/* completeness */
.comp-table td.c { width: 26px; height: 26px; padding: 0; }
.comp-table td.c { border: 1px solid #fff; }
.comp-table td.cs-full { background: #4caf6e; } .comp-table td.cs-partial { background: #f0a43a; } .comp-table td.cs-empty { background: #c9d1d5; }
.comp-table td.cs-off { background: #f6f7f8; } .comp-table td.cs-extra { background: #9ad4ac; } .comp-table td.cs-future { background: #fff; }
.comp-table td.cs-abs { box-shadow: inset 0 -5px 0 rgba(3,77,105,.55); }
.comp-table tr:hover td.c { filter: brightness(.95); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .85rem; margin: 8px 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; width: 16px; height: 16px; border-radius: 4px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.team-card { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 12px; border-left: 8px solid #c9d1d5; }
.team-card.ok { border-left-color: #4caf6e; } .team-card.partial { border-left-color: #f0a43a; } .team-card.too_high { border-left-color: var(--danger); } .team-card.off { border-left-color: #eceff1; }
.team-card h3 { margin: 0 0 6px; display: flex; justify-content: space-between; gap: 8px; font-size: 1.05rem; }
.team-card ul { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.team-card li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; border-bottom: 1px dotted #e3e8ea; }
.qr { max-width: 260px; margin: 0 auto; }
.qr svg { width: 100%; height: auto; }

@media print {
  .office-nav, .toolbar, .app-header .header-right, .no-print { display: none !important; }
  body { background: #fff; }
  .panel { box-shadow: none; }
}
