/* Aton CTRL, frumgerð. Aton-útlit (docs/aton-utlit.md) lagað að viðmóti:
   svart, hvítt og grátt sem grunnur, einn gagnalitur á hvern hluta kerfisins,
   appelsínugult aðeins fyrir það sem þarf athygli. Monument í texta, Bureau Serif í síðuheitum. */

@font-face { font-family: "Monument"; src: url("/fonts/ABCMonumentGrotesk-Variable.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Bureau Serif"; src: url("/fonts/STKBureau-SerifLight.woff2") format("woff2"); font-weight: 300; font-display: swap; }

:root {
  /* attention, on the scale of the Bradford factor (Agnar 15.11.2026): yellow to watch, orange when
     its time has come, red when it is serious; these colours mean nothing else */
  --att1: #FFD048; --att2: #FF8A66; --att3: #D7192F; --att1-dot: #E0A800; --att2-dot: #FF3C00; --att3-ink: #B3261E;
  --black: #000; --white: #fff;
  --g5: #FAFAFA; --g4: #F2F3F4; --g3: #E1E3E8; --g2: #C7C9D1; --g1: #95979F;
  --text: #000; --text-2: #63666C; --text-3: #4C4E52;  /* text-2: 4.95:1 on the page grey #ECEEF1 (QA3 I31) */
  --orange: #FF3C00; --orange-soft: #FDE3DA; --orange-ink: #C22E00;  /* orange as text (F3) */
  --mint: #AAF7CF; --green: #22A56A;
  --teal: #029393; --teal-soft: #A0DBDE;
  --purple: #6168D9; --purple-soft: #B0BBFF;
  --steel: #1F5F8F; --steel-soft: #CEE1EA;
  --mustard: #D6A20A; --yellow: #FFD048;
  --rose: #D1528B; --rose-soft: #FEC5C5; --rose-ink: #A8336A;  /* red days as text */
  --salmon: #F59985;
  --section: var(--teal); --section-soft: var(--teal-soft);
  --radius: 6px;
  --font: "Monument", "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Bureau Serif", "Newsreader", Georgia, serif;
  color-scheme: light;
}
[data-section="vika"] { --section: var(--teal); --section-soft: var(--teal-soft); }
[data-section="verkefni"] { --section: var(--purple); --section-soft: var(--purple-soft); }
[data-section="vidskiptavinir"] { --section: var(--steel); --section-soft: var(--steel-soft); }
[data-section="fjarvera"] { --section: var(--green); --section-soft: var(--mint); }
/* the overview is grey, so the yellow and orange of what needs attention stand out on it (QA3 I35) */
[data-section="yfirsyn"] { --section: var(--text-3); --section-soft: var(--g2); }
[data-section="stjornun"] { --section: var(--rose); --section-soft: var(--rose-soft); }
[data-section="claude"] { --section: var(--text-3); --section-soft: var(--g3); }
[data-section="reikningar"] { --section: #245558; --section-soft: #CFE3E0; }
[data-section="verdskra"] { --section: #245558; --section-soft: #CFE3E0; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--g5); color: var(--text); font: 400 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
.num, td.num, th.num { font-variant-numeric: normal; text-align: right; white-space: nowrap; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
[hidden] { display: none !important; }  /* .check and others set display, which would beat hidden (QA3 I24) */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header: fixed height, nothing moves between sections ---------- */
.top { position: sticky; top: 0; z-index: 30; background: var(--black); color: var(--white); }
.top-inner { max-width: 1320px; margin: 0 auto; height: 56px; padding: 0 20px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { height: 20px; display: block; }
.brand span { font-family: var(--serif); font-weight: 300; font-size: 19px; color: var(--white); }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; height: 100%; }
.nav a { display: flex; align-items: center; padding: 0 12px; text-decoration: none; color: #C7C9D1; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--mint); }
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn { position: relative; background: none; border: 1px solid rgba(255,255,255,.25); color: var(--white); border-radius: var(--radius); height: 34px; min-width: 34px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; }
.icon-btn:hover { border-color: var(--white); }
.badge { position: absolute; top: -6px; right: -6px; background: var(--orange); color: var(--black); border-radius: 9px; font-size: 11px; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; }
.menu { position: absolute; right: 0; top: 42px; background: var(--white); color: var(--text); border: 1px solid var(--g3); border-radius: var(--radius); min-width: 240px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 6px; z-index: 40; }
.menu > button, .menu > a { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 4px; text-decoration: none; }
.menu > button:hover, .menu > a:hover { background: var(--g4); }
.menu hr { border: 0; border-top: 1px solid var(--g3); margin: 6px 0; }
.menu .label { padding: 6px 10px; color: var(--text-2); font-size: 13px; }
.viewas { background: var(--yellow); color: var(--black); text-align: center; padding: 8px 16px; font-size: 14px; }
.viewas button { margin-left: 10px; }

/* ---------- page ---------- */
main { max-width: 1320px; margin: 0 auto; padding: 24px 20px 80px; }
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .titles { flex: 1; min-width: 240px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; margin-bottom: 4px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--section); display: inline-block; }
.eyebrow a { color: var(--text-2); }
h1 { font-family: var(--serif); font-weight: 300; font-size: 34px; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
h1 .num-prefix { color: var(--text-2); margin-right: 10px; }
.subtitle { color: var(--text-2); margin-top: 6px; }
h2 { font-size: 16px; font-weight: 500; margin: 0 0 12px; }
h3 { font-size: 14px; font-weight: 500; margin: 0 0 8px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
@media (max-width: 900px) { .grid.two { grid-template-columns: minmax(0, 1fr); } }  /* a wide table scrolls in its card, the page does not */
.card { background: var(--white); border: 1px solid var(--g3); border-radius: 10px; padding: 18px; min-width: 0; }
.card.tight { padding: 0; overflow: hidden; }
.stack > * + * { margin-top: 16px; }
.stat { background: var(--white); border: 1px solid var(--g3); border-top: 4px solid var(--section); border-radius: 10px; padding: 14px 16px; }
.stat .k { color: var(--text-2); font-size: 13px; }
.stat .v { font-size: 26px; font-weight: 500; font-variant-numeric: normal; margin-top: 2px; }
.stat .s { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.stat.warn { border-top-color: var(--mustard); }
.stat.over { border-top-color: var(--att3); }

/* ---------- buttons, inputs ---------- */
.btn { border: 1px solid var(--g2); background: var(--white); border-radius: var(--radius); height: 36px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; text-decoration: none; }
.btn:hover { border-color: var(--black); }
/* the one action that matters most on a page, in Aton's mint (Agnar 15.11.2026); yellow, orange
   and red are kept for what needs attention */
.btn.primary { background: var(--mint); color: var(--black); border-color: var(--black); font-weight: 500; }
.btn.primary:hover { background: #8EEFBC; }
.btn.danger { color: #B3261E; }
.btn.small { height: 30px; padding: 0 10px; font-size: 14px; }
.btn.link { border: 0; background: none; padding: 0; height: auto; text-decoration: underline; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
/* help is quiet, beside the title, so it does not compete with the page's actions (Agnar 15.11.2026) */
.help-btn { border: 1px solid var(--g1); background: transparent; color: var(--text-3); width: 22px; height: 22px; padding: 0; border-radius: 50%;
  font-size: 12px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.help-btn:hover { color: var(--black); border-color: var(--black); background: rgba(255, 255, 255, .5); }
.help-btn:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
.folder-page .page-head .help-btn { color: rgba(255, 255, 255, .85); border-color: rgba(255, 255, 255, .6); }
.folder-page .page-head .help-btn:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .12); }
.seg { display: inline-flex; border: 1px solid var(--g2); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.seg button { border: 0; background: none; padding: 0 12px; height: 34px; }
.seg button[aria-pressed="true"] { background: var(--black); color: var(--white); }
.seg-apart { margin-left: auto; }
.tab-groups { gap: 16px; margin-bottom: 14px; }
.seg.seg-link { background: var(--steel-soft); border-color: var(--steel-soft); }
.seg.seg-link button:not([aria-pressed="true"]) { color: var(--steel); }
.seg.seg-link button:not([aria-pressed="true"]):hover { background: #BBD4E0; }
.seg-arrow { margin-right: 6px; }
.tab-pill { margin-left: 6px; font-size: 11.5px; padding: 1px 7px; }
.period-pick { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.date-range { display: inline-flex; align-items: center; gap: 6px; }
.date-range input[type=date] { width: auto; }
/* a row of tabs wider than a phone scrolls sideways; its labels never break (Agnar 15.11.2026) */
.seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { white-space: nowrap; flex: none; }
/* Column widths: a grip on the right edge of each heading (Agnar 15.11.2026) */
th.resizable { position: relative; }
.col-grip { position: absolute; top: 0; right: 0; width: 8px; height: 100%; cursor: col-resize; touch-action: none; z-index: 1; }
.col-grip::after { content: ""; position: absolute; top: 22%; bottom: 22%; right: 3px; width: 2px; border-radius: 1px; background: var(--g3); opacity: 0; transition: opacity .15s ease; }
thead:hover .col-grip::after { opacity: .7; }
.col-grip:hover::after, .col-grip.dragging::after { opacity: 1; background: var(--black); }
body.col-resizing, body.col-resizing * { cursor: col-resize !important; user-select: none; }
td .plink { white-space: nowrap; }
label.field { display: block; }
label.field > span { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], input[type=url], input[type=tel], select, textarea {
  width: 100%; border: 1px solid var(--g2); border-radius: var(--radius); background: var(--white); padding: 8px 10px; min-height: 38px; }
textarea { min-height: 72px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--black); outline-offset: -1px; border-color: var(--black); }
.check { display: flex; align-items: center; gap: 8px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.form-stack > * + * { margin-top: 12px; }
.err { color: #B3261E; }
.note { background: var(--g4); border-radius: var(--radius); padding: 10px 12px; font-size: 14px; }
.note.warn { background: #FFF4D6; }
.note.attn { background: var(--orange-soft); }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 1px 9px; font-size: 12.5px; background: var(--g4); color: var(--text-3); white-space: nowrap; }
.chip.proposal { background: var(--purple-soft); color: var(--black); }
.chip.active { background: var(--mint); color: var(--black); }
.chip.ceo-mark { margin-left: 8px; vertical-align: 1px; }   /* framkvæmdastjóri by the name (Agnar 23.11.2026) */
.ceo-row { align-items: flex-start !important; }
.ceo-block > p { margin: 2px 0 6px; }
.ceo-block .list-plain li { padding: 6px 0; }
.chip.done { background: var(--steel-soft); color: var(--black); }
.chip.closed, .chip.lost { background: var(--g3); color: var(--text-3); }
.chip.internal { background: var(--g4); }
.chip.conf { background: var(--black); color: var(--white); }
.chip.unconfirmed, .chip.unlinked { background: var(--att1); color: #000; }
.chip.k-vacation, .day.k-vacation { background: var(--mint); }
/* kinds of absence are kinds, not warnings: no yellow, orange or red (Agnar 15.11.2026) */
.chip.k-sick, .day.k-sick { background: var(--steel-soft); }
.chip.k-child_sick, .day.k-child_sick { background: var(--teal-soft); }
.chip.k-leave_with_permission, .day.k-leave_with_permission, .chip.k-prenatal, .day.k-prenatal { background: #DCE1FF; }
.chip.k-unpaid_leave, .day.k-unpaid_leave, .chip.k-parental, .day.k-parental, .chip.k-force_majeure, .day.k-force_majeure { background: var(--purple-soft); }
.chip.k-away_leave, .day.k-away_leave { background: var(--mint); }
.chip.k-away, .day.k-away { background: var(--g3); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--g4); text-align: left; vertical-align: middle; }
th { font-weight: 500; font-size: 13px; color: var(--text-2); border-bottom: 1px solid var(--g3); background: var(--white); }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover { background: var(--g5); }
tfoot td { font-weight: 500; border-top: 1px solid var(--black); border-bottom: 0; }
td .sub { display: block; color: var(--text-2); font-size: 13px; }
.bar { height: 8px; background: var(--g4); border-radius: 4px; position: relative; min-width: 80px; overflow: visible; }
.bar > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--section); border-radius: 4px; max-width: 100%; }
.bar.warn > i { background: var(--mustard); }
.bar.over > i { background: var(--att3); }
.bar > b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--black); opacity: .35; }
.hbars { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: 6px 10px; align-items: center; font-size: 14px; }
.hbars .bar { height: 10px; }
.cols { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-top: 8px; }
.cols .c { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.cols .c i { width: 100%; max-width: 28px; background: var(--section); border-radius: 3px 3px 0 0; display: block; }
.cols .c i.nb { background: var(--section-soft); }
.cols .c span { font-size: 11px; color: var(--text-2); margin-top: 4px; }

/* ---------- week view ---------- */
.week-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.week-nav .label { font-weight: 500; min-width: 210px; text-align: center; }
.week { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; min-width: 860px; }
.week th, .week td { border-bottom: 1px solid var(--g4); padding: 0; height: 52px; }
.week th { padding: 8px; height: auto; text-align: center; font-size: 13px; }
.week th.proj, .week td.proj { width: 32%; text-align: left; padding: 8px 12px; }
.week th.tot, .week td.tot { width: 80px; }
.week th.today { color: var(--black); box-shadow: inset 0 -3px 0 var(--section); }
.week th.weekend, .week td.weekend { background: var(--g5); }
.week th.holiday { color: var(--rose-ink); }
.week td.cell button { width: 100%; height: 100%; border: 0; background: none; font-variant-numeric: normal; font-size: 15px; }
.week td.cell button:hover:not(:disabled) { background: var(--section-soft); }
.week td.cell button:disabled { cursor: default; }
.week td.cell button:disabled:not(.has) { color: var(--g2); }
.week td.cell button.has { font-weight: 500; }
.week td.cell button .plus { color: var(--g2); }
.week td.proj .name { font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.week td.proj .meta { color: var(--text-2); font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.week tr.absence td { height: 34px; }
.week tr.absence td.cell { text-align: center; font-size: 12.5px; }
.week tfoot td { height: 40px; text-align: center; font-variant-numeric: normal; }
.week tfoot td.proj { text-align: left; }
.week td.missing { color: var(--orange-ink); font-weight: 500; }
.week td.tot { text-align: center; font-variant-numeric: normal; font-weight: 500; }
.add-row { display: flex; gap: 10px; align-items: flex-start; padding: 12px; flex-wrap: wrap; border-top: 1px solid var(--g3); }
.picker { position: relative; flex: 1; min-width: 260px; max-width: 520px; }
.picker-list { position: absolute; left: 0; right: 0; top: 42px; background: var(--white); border: 1px solid var(--g3); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 340px; overflow: auto; z-index: 20; }
.picker-list button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 12px; border-bottom: 1px solid var(--g4); }
.picker-list button:hover, .picker-list button.sel { background: var(--section-soft); }
.picker-list .meta { color: var(--text-2); font-size: 13px; }
/* a long list chosen by typing (pickSelect): looks like a select, the list under it */
.pick-select { position: relative; min-width: 200px; }
.pick-select .pick-input { padding-right: 30px; text-overflow: ellipsis; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23555' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center; }
.pick-select .pick-input:focus { cursor: text; }
.pick-select .picker-list { top: calc(100% + 4px); min-width: 100%; width: max-content; max-width: min(460px, 92vw); }
.pick-select .picker-list button.cur { font-weight: 600; }
.suggest { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.suggest .btn { height: 30px; font-size: 13.5px; }

/* ---------- drawer, dialog, toast, help ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.28); z-index: 50; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(500px, 100vw); background: var(--white); z-index: 51; display: flex; flex-direction: column; box-shadow: -8px 0 32px rgba(0,0,0,.15); }
.drawer header { padding: 18px 20px 14px; border-bottom: 1px solid var(--g3); display: flex; gap: 12px; align-items: flex-start; }
.drawer header .t { flex: 1; min-width: 0; }
.drawer header h2 { font-family: var(--serif); font-weight: 300; font-size: 24px; margin: 0; }
.drawer header .sub { color: var(--text-2); font-size: 14px; margin-top: 2px; }
.drawer .body { padding: 18px 20px; overflow: auto; flex: 1; }
.drawer footer { padding: 14px 20px; border-top: 1px solid var(--g3); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.close { border: 0; background: none; font-size: 22px; line-height: 1; padding: 4px 8px; }
.entry { border: 1px solid var(--g3); border-radius: var(--radius); padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; }
.entry + .entry { margin-top: 8px; }
.entry .h { font-weight: 500; font-variant-numeric: normal; min-width: 52px; }
.entry .d { flex: 1; min-width: 0; }
.entry .d .meta { color: var(--text-2); font-size: 13px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--black); color: var(--white); padding: 11px 16px; border-radius: var(--radius); z-index: 60; display: flex; gap: 14px; align-items: center; max-width: calc(100vw - 32px); }
.toast.err { background: #8A1C14; }
.toast button { background: none; border: 1px solid rgba(255,255,255,.4); color: var(--white); border-radius: 4px; padding: 3px 10px; }
.toast.persist { border-left-color: var(--yellow); }  /* a warning that stays until it is closed (N17) */
/* messages stack at the foot of the screen: a new one never covers one with Afturkalla (QA3 I20) */
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.toasts .toast { position: static; transform: none; max-width: 100%; pointer-events: auto; }
.help ul { padding-left: 18px; margin: 0; }
.help li + li { margin-top: 8px; }
.warnings { margin-top: 10px; }
.warnings p { margin: 6px 0 0; }

/* ---------- absence calendar ---------- */
.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.month h3 { margin: 0 0 6px; font-weight: 500; }
.month .dow, .month .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.month .dow span { font-size: 11px; color: var(--text-2); text-align: center; }
.day { border: 0; background: none; height: 28px; border-radius: 4px; font-size: 13px; font-variant-numeric: normal; padding: 0; }
.day.off { color: var(--text-2); }  /* not --g1, 2.9:1 (QA3 I31) */
.day.holiday { color: var(--rose-ink); }
.day.today { outline: 2px solid var(--black); outline-offset: -2px; }
.day.sel { outline: 2px solid var(--section); outline-offset: -2px; }
.day.half { background-image: linear-gradient(135deg, transparent 50%, var(--white) 50%); }
.day:hover:not(:disabled) { outline: 1px solid var(--black); outline-offset: -1px; }
.legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.team { min-width: 900px; table-layout: fixed; }
.team td, .team th { padding: 0; height: 30px; text-align: center; font-size: 12px; border-bottom: 1px solid var(--g4); }
.team td.name, .team th.name { width: 200px; text-align: left; padding: 0 10px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team td.name, .team th.name { position: sticky; left: 0; z-index: 1; background: var(--white); }  /* QA3 I32 */
.team tr.cov-head th.name { position: static; }
.team td span.sr { height: 1px; margin: 0; }
.team td.off, .team th.off { background: var(--g5); }
.team td:not(.name) span { display: block; height: 22px; margin: 0 1px; border-radius: 3px; }

/* ---------- misc ---------- */
.empty { color: var(--text-2); padding: 28px; text-align: center; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 8px 0; border-bottom: 1px solid var(--g4); display: flex; gap: 10px; align-items: center; }
.list-plain li:last-child { border-bottom: 0; }
.list-plain li .grow { flex: 1; min-width: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--g3); margin-bottom: 16px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button[aria-selected="true"] { border-bottom-color: var(--section); font-weight: 500; }
.code { font-family: ui-monospace, Menlo, monospace; background: var(--g4); padding: 10px 12px; border-radius: var(--radius); word-break: break-all; }
.notif { padding: 10px; border-bottom: 1px solid var(--g4); font-size: 14px; }
.notif:last-child { border-bottom: 0; }
.notif.unread { background: #FFFBEA; }
.notif .when { color: var(--text-2); font-size: 12px; }
.notif .acts { display: flex; gap: 6px; margin-top: 6px; }
.menu.notifs { width: min(420px, calc(100vw - 24px)); max-height: 70vh; overflow: auto; padding: 0; }
.loading { color: var(--text-2); padding: 40px; text-align: center; }
@media (max-width: 640px) {
  main { padding: 16px 16px 80px; }
  h1 { font-size: 28px; }
  .top-inner { padding: 0 12px; gap: 10px; }
  .brand span { display: none; }
}
.team td span.k-vacation, .team td span.k-away_leave { background: var(--mint); }
.team td span.k-sick { background: var(--steel-soft); }
.team td span.k-child_sick { background: var(--teal-soft); }
.team td span.k-leave_with_permission, .team td span.k-prenatal { background: #DCE1FF; }
.team td span.k-unpaid_leave, .team td span.k-parental, .team td span.k-force_majeure { background: var(--purple-soft); }
.team td span.k-away { background: var(--g2); }
.legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }

.user-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
@media (max-width: 760px) {
  .top-inner { flex-wrap: wrap; height: auto; padding-top: 8px; gap: 6px 10px; }
  .brand { order: 1; }
  .top-actions { order: 2; margin-left: auto; }
  .nav { order: 3; flex-basis: 100%; height: 42px; }
  .icon-btn .label-text { display: none; }
  .user-name { max-width: 110px; }
}

/* ---------- Litir og hreyfing (Agnar 14.11.2026: 25% app, 75% Aton) ----------
   Hver hluti kerfisins er eins og kafli í Aton-kynningu: síðuhausinn liggur á
   fleti hlutans, línur og merki eru í sterka litnum og ljósari útgáfa flatarins
   fer í lykiltölur, daginn í dag og það sem er skráð. Allur texti er svartur. */
[data-section] { --tint: color-mix(in srgb, var(--section-soft) 32%, #fff); --tint-2: color-mix(in srgb, var(--section-soft) 60%, #fff); }

/* navigation: each section keeps its colour */
.nav a[data-sec="vika"] { --c: var(--teal-soft); }
.nav a[data-sec="verkefni"] { --c: var(--purple-soft); }
.nav a[data-sec="vidskiptavinir"] { --c: var(--steel-soft); }
.nav a[data-sec="fjarvera"] { --c: var(--mint); }
.nav a[data-sec="yfirsyn"] { --c: var(--g2); }
.nav a[data-sec="stjornun"] { --c: var(--rose-soft); }
.nav a[data-sec="verdskra"] { --c: #CFE3E0; }
.nav a::before { content: ""; width: 8px; height: 8px; margin-right: 8px; flex: none; background: var(--c, var(--g2)); opacity: .75; transition: opacity .15s, transform .15s; }
.nav a:hover::before, .nav a[aria-current="page"]::before { opacity: 1; transform: scale(1.2); }
.nav a[aria-current="page"] { border-bottom-color: var(--c, var(--mint)); }

/* page head on the section's tint, full width */
.page-head { background: var(--section-soft); box-shadow: 0 0 0 100vmax var(--section-soft); clip-path: inset(0 -100vmax); margin: -24px 0 22px; padding: 26px 0 24px; }
.page-head .eyebrow, .page-head .eyebrow a, .page-head .subtitle, .page-head .subtitle a { color: rgba(0, 0, 0, .72); }
.page-head .eyebrow::before { background: var(--black); }
.page-head h1 .num-prefix { color: rgba(0, 0, 0, .45); }
@media (max-width: 640px) { .page-head { margin-top: -16px; padding: 20px 0 18px; } }

/* cards, key figures, tables */
.card h2::before { content: ""; display: inline-block; width: 9px; height: 9px; background: var(--section); margin-right: 8px; vertical-align: 1px; }
/* Cards (Agnar 15.11.2026): white cards on a grey ground with space between them, and each
   card's heading on a band in the page's colour with a line under it, so that cards do not run
   together. A card with a purpose of its own may take another colour (below). */
body { background: #ECEEF1; }
.card { border-color: #DCDFE4; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.card > h2:first-child, .card > .actions:first-child:has(> h2), .card.tight > div:first-child:has(> h2) {
  background: var(--head, var(--tint, var(--g5))); border-bottom: 1px solid var(--g3); border-radius: 9px 9px 0 0; }
.card:not(.tight) > h2:first-child, .card:not(.tight) > .actions:first-child:has(> h2) { margin: -18px -18px 16px; padding: 12px 18px; }
.card.tight > div:first-child:has(> h2) { padding: 12px 18px !important; }
.card > h2:first-child, .card > .actions:first-child > h2, .card.tight > div:first-child > h2 { font-size: 18px; }
.card > .actions:first-child > h2, .card.tight > div:first-child > h2 { margin: 0; }
.card.mock, .card.internal { --head: var(--g4); }
.folder-page { --head: var(--tint-2); }  /* the folder page's ground is already its tint */
/* cards with a purpose of their own take another colour (Agnar 15.11.2026): invoicing and prices
   (Samningur og rukkun, Reikningar, Verð) in the colour of Reikningar; a card that needs attention
   on the attention scale */
.card.money { --section: #245558; --head: #245558; }
.card.money > h2:first-child, .card.money > .actions:first-child > h2 { color: #fff; }
.card.money > h2:first-child::before, .card.money > .actions:first-child > h2::before { background: var(--mint); }
.card.money > .actions:first-child:has(> h2) { border-bottom-color: #245558; }
.card.attn { --head: color-mix(in srgb, var(--att2) 22%, #fff); }
/* a card in parts (Samningur og rukkun): a slightly larger subheading and a faint line between parts */
.card > h3, .card > .actions > h3 { font-size: 15px; }
.card > h3:not(:nth-child(2)), .card > .actions:has(> h3):not(:nth-child(2)) { border-top: 1px solid var(--g3); padding-top: 14px; margin-top: 18px; }
.stat { background: var(--tint); border-color: var(--tint-2); }
thead th, .week thead th, .team thead th { border-bottom: 2px solid var(--section); }
tbody tr.click:hover { background: var(--tint); }
.tabs button:hover { background: var(--tint); }
.list-plain li { transition: background-color .15s; }

/* week: today and what has been logged */
.week th.today { background: var(--tint-2); }
.week td.today { background: var(--tint); }
.week td.cell button.has { background: color-mix(in srgb, var(--section-soft) 45%, transparent); }
.week td.cell button.has:hover:not(:disabled) { background: var(--section-soft); }

/* people */
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #000; font-size: 11.5px; font-weight: 500; line-height: 1; flex: none; }
/* A portrait: the square stored with the photo fills the circle (Agnar 15.11.2026) */
.avatar.photo { position: relative; overflow: hidden; background: var(--g3); }
.avatar.photo img { position: absolute; max-width: none; max-height: none; display: block; user-select: none; -webkit-user-drag: none; }
.person { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; vertical-align: middle; }
.person .pname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td > .person .pname .sub { white-space: nowrap; }
.user-btn { padding-left: 4px; }
.user-btn .avatar, .team td.name .avatar { width: 26px; height: 26px; font-size: 10.5px; }

/* small meter beside a percentage */
.meter { display: inline-block; width: 46px; height: 6px; border-radius: 3px; background: var(--g4); margin-right: 8px; vertical-align: middle; overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--teal); border-radius: 3px; }
.meter.low > i { background: var(--orange); }

/* drawer and toast pick up the colour too */
.drawer header { background: var(--tint); border-bottom-color: var(--tint-2); }
.toast { border-left: 4px solid var(--mint); }
.toast.err { border-left-color: var(--orange); }

/* movement: short and only when moving to another screen */
.btn, .icon-btn, .seg button, .tabs button, tbody tr.click, .day { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
@media (prefers-reduced-motion: no-preference) {
  main.enter > * { animation: av-rise .24s ease-out both; }
  .drawer { animation: av-slide .2s ease-out; }
  .toast { animation: av-pop .18s ease-out; }
  @keyframes av-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  @keyframes av-slide { from { opacity: .6; transform: translateX(28px); } to { opacity: 1; transform: none; } }
  @keyframes av-pop { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
}

/* ---------- Heiti, hausar, möppur og leit (Agnar 14.11.2026) ----------
   Heiti verkefna, mappa og viðskiptavina eru fyrirsagnir í Monument og verknúmer eru smá.
   Möppur hafa eigin lit, dökka grænbláa flötinn úr Aton-litunum, með hvítum texta í hausnum. */
.brand span { font-family: var(--font); font-weight: 500; font-size: 16px; }
h1.entity { font-family: var(--font); font-weight: 500; font-size: 30px; line-height: 1.15; letter-spacing: -.015em; }
@media (max-width: 640px) { h1.entity { font-size: 25px; } }
.title-row { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.title-row .badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 16px 0 0; }
.facts > div { min-width: 0; }
.facts dt { font-size: 12.5px; color: rgba(0, 0, 0, .62); margin: 0 0 2px; }
.facts dd { margin: 0; font-weight: 500; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.facts dd a { color: inherit; }
.facts dd .muted { font-weight: 400; }
.facts .num-fact dd { font-weight: 400; font-size: 13px; color: rgba(0, 0, 0, .62); }
.drawer header h2 { font-family: var(--font); font-weight: 500; font-size: 19px; line-height: 1.25; }
.pname-link { font-weight: 500; }

/* the page head can have its own colour (folders) */
.page-head { background: var(--band, var(--section-soft)); box-shadow: 0 0 0 100vmax var(--band, var(--section-soft)); }

/* folders */
.folder-page { --band: #245558; --section: #029393; --section-soft: #A0DBDE;
  --tint: color-mix(in srgb, #A0DBDE 30%, #fff); --tint-2: color-mix(in srgb, #A0DBDE 60%, #fff); }
.folder-page .page-head { color: #fff; }
.folder-page .page-head .eyebrow, .folder-page .page-head .eyebrow a, .folder-page .page-head .subtitle,
.folder-page .page-head .facts dt, .folder-page .page-head .num-fact dd { color: rgba(255, 255, 255, .78); }
.folder-page .page-head .eyebrow::before { background: #fff; }
.folder-page .page-head .chip.folder { background: rgba(255, 255, 255, .18); color: #fff; }
.folder-page .page-head :focus-visible { outline-color: #fff; }
.chip.folder { background: #245558; color: #fff; }
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.folder-card { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--g3); border-top: 6px solid #245558; border-radius: 10px; padding: 14px 18px 16px; text-decoration: none; color: inherit; transition: box-shadow .15s ease, transform .15s ease; }
.folder-card:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .08); transform: translateY(-1px); }
.fc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 22px; }
.fc-kind { font-size: 12.5px; color: var(--text-2); }
.fc-name { font-weight: 500; font-size: 17px; line-height: 1.25; }
.fc-client { color: var(--text-2); font-size: 13.5px; margin-top: -6px; }
.fc-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: var(--tint); border-radius: 8px; padding: 10px 12px; }
.fc-nums b { display: block; font-size: 18px; font-weight: 500; }
.fc-nums span { font-size: 12px; color: var(--text-2); }
.fc-contract { display: grid; gap: 4px; }
.fc-contract .bar > i { background: #029393; }
.fc-contract .bar.warn > i { background: var(--mustard); }
.fc-contract .bar.over > i { background: var(--att3); }
.fc-owner { font-size: 13.5px; margin-top: auto; }
td.group-row { background: var(--g5); font-size: 13px; color: var(--text-2); }

/* search: a list while typing */
.search-box { flex: 1; min-width: 240px; max-width: 420px; }
.picker-list .pick-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 500; }
.picker-list .meta { display: flex; justify-content: space-between; gap: 10px; }
.pick-num { color: var(--text-2); font-size: 12px; flex: none; }  /* 4.9:1 on white (N21) */

.folder-page .page-head .btn, .folder-page .page-head select { color: var(--text); }

/* ---------- Viðskiptavinir í lit og sýnidæmi (Agnar 14.11.2026) ---------- */
.cmark { display: inline-block; width: 10px; height: 10px; border-radius: 2px; flex: none; }
.client { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; min-width: 0; max-width: 100%; }
.client a { color: inherit; }
.eyebrow .client { color: var(--text); font-size: 15px; }
.eyebrow .client .cmark { width: 12px; height: 12px; }
.eyebrow:has(.client)::before { display: none; }
.folder-page .page-head .eyebrow .client { color: #fff; }
.week td.proj { box-shadow: inset 4px 0 0 var(--cc, transparent); padding-left: 16px; }
.week td.proj .client-line { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-where { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.fc-client .client { color: var(--text); }
.card.mock { border-style: dashed; border-color: var(--g2); }
.chip.mock-chip { background: var(--g4); color: var(--text-2); }
.note.mock-note { background: none; border: 1px dashed var(--g2); color: var(--text-2); margin: 0; }
.chip.comm-meeting { background: var(--purple-soft); }
.chip.comm-email { background: var(--steel-soft); }
.chip.comm-note { background: var(--g4); }
.chip.inv-draft { background: var(--g4); }
.chip.inv-approved { background: var(--att2); }
.chip.inv-sent { background: var(--mint); }
.color-field .flabel { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 4px; }
input[type=color] { width: 56px; height: 38px; padding: 2px; border: 1px solid var(--g2); border-radius: var(--radius); background: #fff; cursor: pointer; }

/* ---------- Fólk, tengiliðir, verð og Bradford (Agnar 14.11.2026) ---------- */
a.person { color: inherit; text-decoration: none; }
a.person:hover .pname { text-decoration: underline; }
.plink { color: inherit; }
.avatar.big { width: 64px; height: 64px; font-size: 22px; margin-right: 14px; vertical-align: middle; }
h1.entity .avatar.big { display: inline-grid; }
.chip.casual { background: var(--steel-soft); }
.chip.brad-ok { background: var(--steel-soft); }
.chip.brad-high { background: var(--yellow); }
.chip.brad-very_high { background: var(--salmon); }

/* ---------- Yfirverkefni og Vikan mín (Agnar 14.11.2026) ---------- */
body:has(.folder-page) { background: color-mix(in srgb, #A0DBDE 26%, #fff); }
.part-of { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 5px 14px 5px 6px; border-radius: 999px; background: #245558; color: #fff; text-decoration: none; font-size: 14px; }
.part-of .po-label { background: rgba(255, 255, 255, .16); border-radius: 999px; padding: 2px 9px; font-size: 12.5px; }
.part-of .po-name { font-weight: 500; }
.part-of:hover .po-name { text-decoration: underline; }
.page-head .subtitle .part-of { color: #fff; }
.meet { align-items: flex-start; }
.meet-when { min-width: 92px; font-weight: 500; font-size: 13.5px; padding-top: 1px; }
.meet-title { font-weight: 500; }

/* project links by kind (Agnar 14.11.2026) */
.chip.link-teams { background: var(--purple-soft); }
.chip.link-figma { background: var(--rose-soft); }
.chip.link-sharepoint, .chip.link-onedrive { background: var(--teal-soft); }
.chip.link-miro { background: var(--g3); }
.chip.link-gdrive { background: var(--mint); }
.chip.link-jira, .chip.link-github { background: var(--steel-soft); }
.list-plain li.link-missing { border-bottom-style: dashed; }
.link-missing .chip { opacity: .65; }

/* search in the header; the week card lets the search list out (Agnar 14.11.2026) */
.top-search { width: 250px; }
.top-search .search-box { min-width: 0; max-width: none; }
.top-search input { height: 34px; min-height: 34px; padding: 5px 10px; background: #1B1B1D; border-color: rgba(255, 255, 255, .25); color: #fff; }
.top-search input::placeholder { color: #95979F; }
.top-search input:focus { outline-color: var(--white); border-color: var(--white); }
.top-search .picker-list { left: auto; right: 0; width: min(420px, calc(100vw - 24px)); top: 40px; color: var(--text); }
.picker-list .pick-type { font-size: 11.5px; color: var(--text-2); background: var(--g4); border-radius: 999px; padding: 1px 7px; }
.picker-list .pick-title .avatar { width: 24px; height: 24px; font-size: 9.5px; }
.card.week-card { overflow: visible; }
.card.week-card .table-wrap { border-radius: 10px 10px 0 0; }
@media (max-width: 760px) {
  /* on a phone the search gets its own row under the bell and the name */
  .top-row .top-search { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
}

/* icons in the header */
.icon { display: inline-grid; place-items: center; line-height: 0; }
.icon-btn .icon svg { display: block; }

/* header in two rows (Agnar 14.11.2026) */
.top-row { height: 52px; }
.top-row .top-search { flex: 1; width: auto; max-width: 460px; margin: 0 auto; }
.top-row .top-search .picker-list { left: 0; right: auto; width: 100%; min-width: 320px; }
.top-row .top-actions { margin-left: 0; }
.nav-row { height: 42px; border-top: 1px solid rgba(255, 255, 255, .08); }
.nav-row .nav { margin-left: -12px; flex: 0 1 auto; }
/* ☰ at the end of the menu bar, with what is not used every day (Agnar 15.11.2026) */
.nav-more { position: relative; height: 100%; flex: none; order: 4; }   /* after the menu on a phone too */
.nav-more-btn { position: relative; display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 12px; background: none; border: 0; color: #C7C9D1; cursor: pointer; white-space: nowrap; }
.nav-more-btn:hover, .nav-more-btn[aria-expanded="true"], .nav-more-btn[aria-current="page"] { color: var(--white); }
.nav-more-btn:focus-visible { outline: 2px solid var(--white); outline-offset: -4px; }
.nav-menu { left: 0; right: auto; top: 42px; min-width: 220px; }
@media (max-width: 760px) { .nav-menu { left: auto; right: 0; } }   /* the button is at the right edge of a phone */
.nav-menu > a { display: flex; align-items: center; color: var(--text); }
.nav-menu > a::before { content: ""; width: 8px; height: 8px; margin-right: 10px; flex: none; background: var(--c, var(--g2)); }
.nav-menu > a[aria-current="page"] { font-weight: 500; background: var(--g4); }
[data-sec="vika"] { --c: var(--teal-soft); }
[data-sec="verkefni"] { --c: var(--purple-soft); }
[data-sec="vidskiptavinir"] { --c: var(--steel-soft); }
[data-sec="fjarvera"] { --c: var(--mint); }
[data-sec="yfirsyn"] { --c: var(--g2); }
[data-sec="stjornun"] { --c: var(--rose-soft); }
[data-sec="reikningar"] { --c: #8FC1BA; }
[data-sec="kostnadur"] { --c: var(--steel-soft); }
@media (max-width: 760px) {
  .top-row { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 8px; gap: 8px 10px; }
  .top-row .top-actions { margin-left: auto; }
  .top-row .top-search { order: 3; flex: 0 0 100%; max-width: none; margin: 0; }
  .nav-row { flex-wrap: nowrap; height: 42px; padding-top: 0; }
  .nav-row .nav { margin-left: 0; height: 42px; flex-basis: auto; }
}

/* search next to the bell; a colour for each kind of parent project (Agnar 14.11.2026) */
.top-row { gap: 8px; }
.top-row .brand { margin-right: 12px; }
.top-row .top-search { margin: 0 0 0 auto; }
.folder-card { --k: #245558; --k-soft: #A0DBDE; border-top-color: var(--k); }
.kind-contract { --k: #1F5F8F; --k-soft: #CEE1EA; }
.kind-campaign { --k: #D1528B; --k-soft: #FEC5C5; }
.kind-production { --k: #6168D9; --k-soft: #B0BBFF; }
.kind-internal { --k: #6F7278; --k-soft: #E1E3E8; }
.kind-other { --k: #245558; --k-soft: #A0DBDE; }
.chip.kind { background: var(--k-soft, var(--g4)); color: #000; }
.chip.kind::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--k); margin-right: 2px; }
.folder-page .page-head .chip.kind { background: var(--k-soft); color: #000; }



/* absence and holidays stay inside their own day in the week (Agnar 14.11.2026) */
.week tr.absence td.cell { padding: 3px 4px; overflow: hidden; }
.week tr.absence td.cell .chip { display: block; white-space: normal; text-align: center; line-height: 1.25; padding: 3px 4px; border-radius: 6px; font-size: 12px; overflow-wrap: anywhere; }
.week tr.absence td.cell .chip + .chip { margin-top: 2px; }

/* purchased costs (Sýnidæmi) */
.chip.rebill { background: var(--mint); }

/* hours by task */
tr.no-task td { color: var(--text-2); font-style: normal; background: var(--g5); }

/* ---------- Hreyfing milli skjáa: View Transitions (Agnar 14.11.2026) ----------
   Nýr skjár: síðan dofnar upp, merkið í valmyndinni rennur á nýja staðinn og nafnið sem var
   smellt á flyst upp í fyrirsögnina. Sami skjár (vistun, sía): línur renna á nýjan stað.
   Ekkert af þessu ef stýrikerfið biður um minni hreyfingu. */
.nav a { position: relative; }
.nav a[aria-current="page"] { border-bottom-color: transparent; }
.nav-mark { position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--mint); view-transition-name: nav-mark; }
html[data-vt] header.top { view-transition-name: app-header; }
html[data-busy] body::after { content: ""; position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--mint); z-index: 70; transform-origin: left; }

@media (prefers-reduced-motion: no-preference) {
  html[data-busy] body::after { animation: av-busy 1.1s cubic-bezier(.4, 0, .2, 1) infinite; }
  ::view-transition-group(*) { animation-duration: .26s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
  html[data-vt="page"]::view-transition-old(root) { animation: av-out .12s ease-in both; }
  html[data-vt="page"]::view-transition-new(root) { animation: av-in .26s cubic-bezier(.2, .7, .2, 1) .04s both; }
  html[data-vt="update"]::view-transition-old(root),
  html[data-vt="update"]::view-transition-new(root) { animation-duration: .16s; }
  /* The clicked name grows into the heading without being stretched */
  ::view-transition-group(vt-title), ::view-transition-group(vt-mark) { animation-duration: .34s; }
  ::view-transition-old(vt-title), ::view-transition-new(vt-title),
  ::view-transition-old(vt-mark), ::view-transition-new(vt-mark) { height: 100%; width: auto; }

  .scrim { animation: av-fade .18s ease-out; }
  .scrim.out { animation: av-fade-out .17s ease-in forwards; pointer-events: none; }
  .drawer.out { animation: av-slide-out .17s ease-in forwards; pointer-events: none; }
  .toast.out { animation: av-pop-out .17s ease-in forwards; }
  .toasts .toast { animation: av-in .18s ease-out; }
  .toasts .toast.out { animation: av-toast-out .17s ease-in forwards; }
  @keyframes av-toast-out { to { opacity: 0; transform: translateY(8px); } }

  @keyframes av-out { to { opacity: 0; } }
  @keyframes av-in { from { opacity: 0; transform: translateY(8px); } }
  @keyframes av-fade { from { opacity: 0; } }
  @keyframes av-fade-out { to { opacity: 0; } }
  @keyframes av-slide-out { to { opacity: 0; transform: translateX(36px); } }
  @keyframes av-pop-out { to { opacity: 0; transform: translate(-50%, 8px); } }
  @keyframes av-busy { 0% { transform: scaleX(0); opacity: 1; } 70% { transform: scaleX(.9); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
}

/* ---------- Röðun eftir dálkfyrirsögnum (Agnar 14.11.2026) ---------- */
th.sortable { padding: 0; }
.th-sort { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 4px; width: 100%; padding: 9px 12px; cursor: pointer; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; white-space: nowrap; }
th.num .th-sort { justify-content: flex-end; }
.th-sort:hover { color: var(--text); background: rgba(0, 0, 0, .03); }
.th-sort:focus-visible { outline: 2px solid var(--black); outline-offset: -2px; }
.sort-ind { display: inline-block; min-width: .8em; font-size: 12px; color: var(--text); }
.th-sort:hover .sort-ind:empty::after { content: "↕"; opacity: .35; }
th.sorted { color: var(--text); }


/* ---------- Aðgengi, sími og prentun (QA-yfirferð Fable, F2–F6, 14.11.2026) ---------- */
/* F2: the keyboard focus shows on the black header */
.top :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* F3: muted text on the dark parent-project head, and the "+" in empty cells, readable */
.folder-page .page-head .muted, .folder-page .page-head .small { color: rgba(255, 255, 255, .78); }
.week td.cell button .plus { color: var(--text-2); }  /* 3.5:1 before (QA3 I31) */
/* F5: on a phone the project column stays put while the days scroll, the menu wraps instead of
   hiding items, and the notifications fit the screen */
.week td.proj, .week thead th:first-child { position: sticky; left: 0; z-index: 2; background: var(--white); }
.week tr.absence td.proj { background: var(--g5); }
@media (max-width: 640px) {
  /* V17: on a phone the header is two short rows, the logo, the search and the person on top
     and the menu on one line that scrolls sideways with the current section in view (main.js) */
  .top-row { flex-wrap: nowrap; height: 52px; padding-top: 0; padding-bottom: 0; gap: 8px; }
  .top-row .brand { order: 0; margin-right: 0; }
  .top-row .top-search { order: 1; flex: 1 1 auto; min-width: 0; max-width: none; margin: 0; }
  .top-row .top-actions { order: 2; }
  .top-row .top-search .picker-list { position: fixed; left: 8px; right: 8px; top: 52px; width: auto; min-width: 0; }
  .user-btn .user-name { display: none; }
  .nav-row, .nav-row .nav { height: 40px; }
  .nav { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; }
  .nav a { padding: 0 10px; }
  /* the project column takes a share of a phone, so two or three days fit beside it */
  .week th.proj, .week td.proj { width: 140px; min-width: 140px; max-width: 140px; }
  .week td.proj .client-line, .week td.proj .name { white-space: normal; }
  .menu.notifs { position: fixed; left: 8px; right: 8px; top: 56px; width: auto; max-height: 75vh; }
}
/* F6: printing gives the content in black on white, with chart and calendar colours kept */
@media print {
  .top, .viewas, .drawer, .scrim, .toast, .toasts, .help-btn, .page-head .actions, .seg, .col-grip, .tabs, .search-box, .btn { display: none !important; }
  body, main { background: #fff !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .folder-page .page-head, .folder-page .page-head * { color: #000 !important; }
  .card { break-inside: avoid; box-shadow: none; }
  a { color: inherit; text-decoration: none; }
}

/* Earlier descriptions to pick from in the entry form (V1) */
.desc-suggest { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: -4px; }
.chip.suggest { border: 1px solid var(--g3); background: var(--white); cursor: pointer; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.suggest:hover { border-color: var(--text-2); }
.actions .grow { flex: 1; }

/* Change log lines (E3) */
.change-log li.change { align-items: flex-start; }
.change-log .changes { list-style: none; margin: 4px 0 4px; padding: 0 0 0 2px; font-size: 14px; }
.change-log .changes li { padding: 1px 0; border: 0; display: block; }
.change-log .changes .was { text-decoration: line-through; color: var(--text-2); }

/* Logging status (Skráningaryfirlit) */
.missing-h { font-weight: 500; }
.of-h { color: var(--text-2); font-size: 12.5px; }
/* the week under way is shown but not counted until it is over */
th.cur-week, td.cur-week, td.cur-week .missing-h { color: var(--text-2); font-weight: 400; }
td.cur-week .of-h { color: var(--text-2); }
.logging-lead { display: grid; gap: 8px; color: var(--text-2); }
.logging-lead p { margin: 0; max-width: 72ch; }
.logging-legend { align-items: center; }
.all-logged { color: var(--teal, #245558); }
a.plain-link { text-decoration: none; color: inherit; display: block; }
a.plain-link:hover .missing-h { text-decoration: underline; }

/* A heading with a small "i" beside its sort button */
th.has-extra .th-wrap { display: flex; align-items: center; justify-content: flex-end; gap: 2px; padding-right: 8px; }
th.has-extra .th-sort { width: auto; padding-right: 4px; }
.info-btn { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--g1); background: var(--white); color: var(--text-2);
  font: italic 600 11px/1 Georgia, serif; display: inline-grid; place-items: center; padding: 0; cursor: pointer; flex: none; }
.info-btn:hover, .info-btn:focus-visible { border-color: var(--text); color: var(--text); }
.prose p { margin: 0 0 12px; line-height: 1.5; }

/* ---------- Reikningar (Agnar 14.11.2026) ---------- */
.nav a[data-sec="reikningar"] { --c: #8FC1BA; }
.warn-text { color: var(--orange-ink); }
.inv-lines td { vertical-align: top; }
.inv-lines input.line-desc { width: 100%; min-width: 260px; margin-top: 4px; display: block; }
.inv-lines td:first-child { width: 32px; }
.inv-lines td:nth-child(2) { width: 50%; }
.inv-lines .line-text { display: block; margin-top: 4px; }
.inv-lines tbody.totals td, table tbody.totals td { font-weight: 500; border-bottom: 0; }
.inv-lines tbody.totals tr:first-child td, table tbody.totals tr:first-child td { border-top: 1px solid var(--black); }
.inv-lines tbody.totals tr.grand td { font-size: 17px; border-top: 2px solid var(--black); }
.chip[class*="line-"] { font-size: 11.5px; background: var(--g4); }
.chip.line-hours { background: var(--section-soft); }
.chip.line-cost { background: var(--steel-soft); }
.chip.line-retainer { background: var(--purple-soft); }
.inline-field { display: inline-flex; gap: 4px; align-items: center; margin-left: 8px; }
.card.internal { background: var(--g5); }
details.card > summary { cursor: pointer; padding: 2px 0; }
details.card[open] > summary { margin-bottom: 10px; }
.cost-pick .list-plain li { align-items: center; }
.invoice-preview .paper { background: #fff; max-width: 820px; margin: 0 auto; padding: 48px; border: 1px solid var(--g3); border-radius: var(--radius); }
.paper-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 32px; gap: 16px; }
.paper-logo { height: 30px; }
.paper-title { text-align: right; }
.paper-title h1 { margin: 0; font-size: 30px; font-weight: 500; }
.paper-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.paper-lines { width: 100%; }
.paper-lines tbody.totals td { border-bottom: 0; }
.paper-lines tbody.totals tr.grand td { font-weight: 600; border-top: 2px solid #000; }
.paper-text { margin-top: 24px; white-space: pre-wrap; font-size: 12px; line-height: 1.45; color: #4a4f57; }   /* under the lines, not over them (verkefnastjóri 23.11.2026) */
@media (max-width: 640px) { .invoice-preview .paper { padding: 20px; } .paper-meta { grid-template-columns: 1fr; } }
@media print { .no-print { display: none !important; } .invoice-preview .paper { border: 0; padding: 0; max-width: none; }
  /* the edit page prints as text, not as input boxes (N21) */
  .invoice-page input, .invoice-page select { border: 0 !important; background: none !important; padding: 0 !important; box-shadow: none !important; }
  .invoice-page .card.builder, .invoice-page .link-btn, .invoice-page .small-seg, .invoice-page label.check { display: none !important; } }

/* Reikningar v2: tilboð, reikningsáætlun, samsetning og yfirferð */
.billing-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 16px; margin: 0 0 14px; }
.billing-facts dt { color: var(--text-2); font-size: 12.5px; }
.billing-facts dd { margin: 2px 0 0; font-weight: 500; }
.sub-head { font-size: 14px; font-weight: 500; margin: 14px 0 4px; color: var(--text-3); }
.inline-form { background: var(--g5); border: 1px solid var(--g3); border-radius: 8px; padding: 12px; margin-top: 10px; }
.inline-form .form-row { margin-bottom: 10px; }
.chip.method-hours { background: var(--section-soft); }
.chip.method-fixed { background: var(--teal-soft); }
.chip.method-monthly, .chip.method-contract { background: var(--purple-soft); }
.chip.method-mixed { background: var(--steel-soft); }
.chip.q-draft { background: var(--g4); }
.chip.q-sent { background: var(--steel-soft); }
.chip.q-approved { background: var(--mint); }
.chip.q-declined { background: var(--g3); color: var(--text-3); text-decoration: line-through; }
.chip.qk-fixed { background: var(--teal-soft); }
.chip.qk-hours { background: var(--section-soft); }
.chip.qk-monthly { background: var(--purple-soft); }
.chip.qk-cost { background: var(--steel-soft); }
.chip.qk-free { background: var(--g4); }
.chip.ms-planned { background: var(--g4); }
.chip.ms-invoiced { background: var(--mint); }
.chip.ms-skipped { background: var(--g3); color: var(--text-3); }
.chip.att-1 { background: var(--att1); color: #000; }
.chip.att-2 { background: var(--att2); color: #000; }
.chip.att-3 { background: var(--att3); color: #fff; }
.due-item { font-size: 13.5px; color: var(--text-3); padding: 2px 0; }
.due-item[class*="att-"]::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--att2-dot); margin-right: 6px; vertical-align: 1px; }
.due-item.att-1::before { background: var(--att1-dot); }
.due-item.att-3::before { background: var(--att3); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid.three { grid-template-columns: 1fr; } }
.card.attn { border-color: var(--orange); }
.review-card { border-left: 4px solid var(--section); }
.chip.sev-high { background: var(--att3); color: #fff; }
.chip.sev-medium { background: var(--att1); color: var(--black); }
.chip.sev-low { background: var(--g4); }
.chip.ai-chip { background: var(--black); color: var(--white); margin-left: 6px; font-size: 11px; }
.review-card .list-plain li { align-items: flex-start; }
.line-diff { font-size: 13px; color: var(--text-2); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.seg.small-seg button { height: 26px; padding: 0 9px; font-size: 12.5px; }
.amount-cell { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; }
input.overridden { border-color: var(--mustard); background: var(--g5); }
.link-btn { border: 0; background: none; padding: 0; color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.link-btn:hover { color: var(--text); }
.card.builder { border-top: 4px solid var(--section); }
.src-project { padding: 12px 0; border-bottom: 1px solid var(--g3); }
.src-project:last-of-type { border-bottom: 0; }
.src-project .list-plain li { flex-wrap: wrap; }
.work-src .actions { flex-wrap: wrap; }
.split-row { align-items: end; grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) 90px; }
.chip.line-monthly { background: var(--purple-soft); }
.chip.line-milestone, .chip.line-fixed { background: var(--teal-soft); }
.chip.line-held { background: var(--steel-soft); }
.chip.line-advance { background: var(--mint); }
.chip.line-advance_deduction { background: var(--g3); }
.chip.line-discount { background: var(--rose-soft); }
.paper-appendix { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--g3); break-before: page; }
.paper-appendix h2 { font-size: 18px; font-weight: 500; margin: 0 0 12px; }
.paper-appendix h2::before { display: none; }

/* Reikningar, QA round 2 */
.chip.line-overage { background: var(--purple-soft); }
tr.muted-row td { color: var(--text-2); }
.review-card.stale { border-left-color: var(--g2); }
.review-card.stale .list-plain { opacity: .75; }
button[aria-busy="true"] { cursor: progress; }
button[aria-busy="true"]::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 8px; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; vertical-align: -1px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { button[aria-busy="true"]::after { animation: none; } }
@media (max-width: 640px) { .inv-lines input.line-desc { min-width: 0; } .lines-card .table-wrap { overflow-x: auto; } }

/* Reikningar: actions now and then, new lines, moving lines, months not to invoice, attachments (Agnar 14.11.2026) */
.more-wrap { position: relative; display: inline-block; }
.more-wrap .menu { top: 40px; right: 0; }
.menu > button.danger-text { color: var(--orange-ink); }
.chip.inv-ready { background: var(--att1); }
.move-btns { display: inline-flex; flex-direction: column; margin-left: 4px; vertical-align: middle; }
.move-btns .link-btn { text-decoration: none; line-height: 1; padding: 0 2px; font-size: 13px; }
.move-btns .link-btn:disabled { opacity: .3; cursor: default; }
.inv-lines tr.new-line td { background: var(--g5); border-top: 1px dashed var(--g2); }
.inv-lines tr.new-line select { margin-bottom: 4px; }
.month-pick { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.people-pick { display: flex; flex-wrap: wrap; gap: 4px 14px; max-width: 360px; justify-content: flex-end; }
@media print { .inv-lines tr.new-line, .move-btns { display: none !important; } }

/* The invoice on a sheet the shape of an A4 page, on a desk of its own (Agnar 14.11.2026) */
.inv-desk { display: grid; grid-template-columns: minmax(0, 820px) minmax(300px, 1fr); gap: 24px; align-items: start;
  background: #E4E6EA; border-radius: 10px; padding: 28px; margin-bottom: 18px; }
.paper.sheet { background: #fff; aspect-ratio: 210 / 297; padding: 56px 56px 44px; border-radius: 2px; min-width: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 12px 32px rgba(0,0,0,.10); display: flex; flex-direction: column; }
.inv-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.inv-side .card { margin: 0; }
.inv-side .problems-holder:empty { display: none; }
.sheet .paper-head { margin-bottom: 30px; }
.sheet .paper-meta { margin-bottom: 26px; }
.paper-date { display: flex; flex-direction: column; align-items: flex-end; margin-top: 10px; gap: 2px; }
.sheet .paper-pair { display: block; margin-top: 6px; }
.sheet .paper-pair > span { display: block; }
.sheet-hint { display: block; font-size: 12px; color: var(--text-2); max-width: 220px; text-align: right; }
/* fields on the sheet read as its text, and show they can be changed when touched */
.sheet .paper-input { width: calc(100% + 14px); min-height: 0; margin: 0 -7px; padding: 3px 6px; border: 1px solid transparent; border-radius: 4px; background: transparent; }
.sheet .paper-input:hover { border-color: var(--g2); border-style: dashed; }
.sheet .paper-input:focus { border-color: var(--black); border-style: solid; background: #fff; }
.sheet .paper-input::placeholder { color: var(--text-2); }
.sheet .paper-input.strong { font-weight: 600; }
.sheet .paper-date-in { width: auto; margin: 0 -7px 0 0; text-align: right; }
.sheet .paper-area { resize: none; overflow: hidden; display: block; }
.sheet .paper-desc { font-size: 16px; line-height: 1.5; margin: 0 0 22px; white-space: pre-wrap; }
.sheet textarea.paper-desc { margin: 0 -7px 22px; }
.sheet .paper-text { margin-top: 22px; }
.sheet textarea.paper-text { margin: 22px -7px 0; }
.sheet .sheet-add { align-self: flex-start; margin-top: 18px; }
.sheet .paper-attach { margin-top: auto; padding-top: 24px; }
.sheet .inv-lines { width: 100%; }
.sheet .inv-lines th { font-size: 13px; font-weight: 500; color: var(--text-2); border-bottom: 1px solid var(--black); }
.sheet .inv-lines td { border-bottom: 1px solid var(--g3); }
.sheet .inv-lines .paper-input { margin: 0; }
.sheet .inv-lines input.line-desc { width: calc(100% + 7px); min-width: 0; margin: 0 0 0 -7px; }
.sheet .inv-lines td.num .paper-input { text-align: right; }
.sheet .inv-lines .line-main { width: 100%; min-width: 180px; }
.sheet .inv-lines .line-n { width: 22px; padding-left: 0; padding-right: 4px; }
.sheet .inv-lines .line-act { width: 40px; text-align: right; padding-right: 0; }
.sheet .paper-input.overridden { border-color: var(--mustard); border-style: solid; }
.line-tie { font-size: 12.5px; color: var(--text-2); margin-top: 2px; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: center; }
.line-tie .inline-field { margin-left: 0; }
.line-tie .inline-field input { min-height: 0; padding: 1px 4px; height: 24px; }
.btn.line-menu { height: 28px; padding: 0 8px; border-color: transparent; background: transparent; color: var(--text-2); font-weight: 600; }
.inv-lines tr:hover .btn.line-menu, .btn.line-menu[aria-expanded="true"], .btn.line-menu:focus-visible { border-color: var(--g2); color: var(--text); background: #fff; }
.sheet .inv-lines tr.new-line td { background: var(--g5); }
.sheet .kind-pick { width: auto; min-height: 0; height: 26px; padding: 0 6px; margin-top: 4px; font-size: 12.5px; color: var(--text-2); border-color: var(--g3); }
.src-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.src-form input[type=text]:not([inputmode]) { flex: 1 1 140px; min-width: 0; width: auto; }
.src-form .inline-field { margin-left: 0; }
.inv-side .card.builder .src-project .list-plain li { gap: 6px; }
@media (max-width: 1180px) { .inv-desk { grid-template-columns: minmax(0, 1fr); } .paper.sheet { width: 100%; max-width: 820px; margin: 0 auto; } }
@media (max-width: 640px) {
  .inv-desk { padding: 10px; margin: 0 -16px 18px; border-radius: 0; }
  .paper.sheet { aspect-ratio: auto; padding: 22px 16px; }
  .sheet .paper-meta { grid-template-columns: 1fr; }
  .sheet .lines-card .table-wrap { overflow-x: auto; }
  /* a line on two rows on a phone, so nothing is off the screen: what it says on top, its numbers
     with their names and its menu below (QA3 I34) */
  .sheet .lines-card .table-wrap { overflow-x: visible; }
  .sheet .inv-lines, .sheet .inv-lines tbody { display: block; }
  .sheet .inv-lines thead { display: none; }
  .sheet .inv-lines tbody tr { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, .7fr) minmax(0, 1.3fr) minmax(0, 1.4fr) 36px;
    column-gap: 6px; align-items: end; padding: 8px 0; border-bottom: 1px solid var(--g3); }
  .sheet .inv-lines tbody tr td { border: 0; padding: 0; min-width: 0; }
  .sheet .inv-lines td.line-n { display: none; }
  .sheet .inv-lines td.line-main { grid-column: 1 / -1; min-width: 0; margin-bottom: 6px; }
  .sheet .inv-lines td .paper-input { width: 100% !important; }
  .sheet .inv-lines td[data-label]::before { content: attr(data-label); display: block; font-size: 11.5px; color: var(--text-2); text-align: left; }
  .sheet .inv-lines tbody.totals tr { grid-template-columns: minmax(0, 1fr) auto; padding: 6px 0; border: 0; }
  .sheet .inv-lines tbody.totals tr td { border: 0 !important; }
  .sheet .inv-lines tbody.totals td:empty { display: none; }
  .sheet .inv-lines tbody.totals tr:first-child { border-top: 1px solid var(--black); }
  .sheet .inv-lines tbody.totals tr.grand { border-top: 2px solid var(--black); }
}
@media print {
  .inv-desk { display: block; background: none; padding: 0; margin: 0; }
  .paper.sheet { box-shadow: none; aspect-ratio: auto; padding: 0; }
  .inv-side, .line-tie, .sheet-hint, .sheet-add, .line-menu, .line-n, .line-act, .kind-pick { display: none !important; }
  .invoice-page textarea { border: 0 !important; background: none !important; padding: 0 !important; }
  /* the edit page prints the sheet only, as the preview does: no page head, notes or what it is
     made from, no placeholders, dates as the invoice writes them and the contact by name (QA3 I34) */
  .invoice-page .page-head, .invoice-page > .note, .invoice-page > p, .invoice-page > details, .basis-holder { display: none !important; }
  .invoice-page ::placeholder { color: transparent !important; }
  .invoice-page input[type=date], .invoice-page .paper-pair select { display: none !important; }
  .print-only { display: inline !important; }
}
.print-only { display: none; }
/* printed, a line or the totals do not break across two pages (QA3 I34) */
@media print {
  .paper-lines tr, .inv-lines tr { break-inside: avoid; }
  .paper-lines tbody.totals, .inv-lines tbody.totals { break-inside: avoid; }
}
.sheet .paper-area { field-sizing: content; }
/* in the narrow column beside the sheet, what is due reads top to bottom */
.inv-side .src-project .list-plain li { flex-direction: column; align-items: stretch; gap: 6px; }
.inv-side .src-project .list-plain li > .actions { justify-content: flex-start; flex-wrap: wrap; }
.inv-side .src-project .sub { display: block; }
.inv-side .src-project .list-plain li > .num { text-align: left; }
.sheet .inv-lines tr.new-line .paper-input { border-color: var(--g3); background: #fff; }
.sheet .inv-lines th, .sheet .inv-lines td { padding-left: 5px; padding-right: 5px; }

/* What the invoice is made from, below the sheet (Agnar 14.11.2026) */
.inv-basis { margin-bottom: 18px; }
.inv-basis .basis-title { font-size: 20px; font-weight: 500; margin: 6px 0 12px; }
.basis-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.basis-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.basis-card h2 { margin: 0; }
.basis-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.basis-sub { margin: 4px 0 10px; }
.basis-task { border-top: 1px solid var(--g3); padding: 9px 0; }
.task-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px 96px 74px; gap: 10px; align-items: baseline; }
.task-row > .btn { justify-self: end; }
.task-name strong { display: block; }
.task-entries { margin-top: 8px; max-height: 340px; overflow: auto; }
.basis-table { width: 100%; font-size: 14px; }
.basis-table th, .basis-table td { padding: 5px 6px; }
.hist-item { border-top: 1px solid var(--g3); padding: 9px 0; }
.hist-item:first-child { border-top: 0; }
.hist-row { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.hist-item .basis-table { margin-top: 6px; }
@media (max-width: 1000px) { .basis-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .task-row { grid-template-columns: minmax(0, 1fr) auto; } .task-row > .num.muted { display: none; } }
@media print { .inv-basis { display: none !important; } }
.basis-card { overflow-x: auto; }
@media (max-width: 640px) { .basis-table th, .basis-table td { padding: 5px 4px; } }

/* Where the invoice is on its way: Drög › Til samþykktar › Samþykktur › Í bókhaldi (Agnar 14.11.2026) */
.inv-flow { margin-top: 10px; }
.flow-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; }
.flow-steps li { display: inline-flex; align-items: center; color: rgba(0, 0, 0, .5); }
.flow-steps li + li::before { content: "›"; margin: 0 10px; color: rgba(0, 0, 0, .35); }
.flow-steps li.done { color: rgba(0, 0, 0, .72); }
.flow-steps li.done::after { content: "✓"; margin-left: 5px; font-size: 12px; }
.flow-steps li.now { color: #000; font-weight: 600; }
.flow-next { margin: 6px 0 0; font-size: 14px; color: rgba(0, 0, 0, .72); max-width: 560px; }
@media print { .inv-flow { display: none; } }

/* Projects that open to their kinds of work, to tick and put on (Agnar 14.11.2026) */
.src-toggle { display: flex; width: 100%; justify-content: space-between; align-items: baseline; gap: 10px; background: none; border: 0; padding: 4px 0; text-align: left; cursor: pointer; }
.src-toggle strong::before { content: "▸"; display: inline-block; width: 16px; color: var(--text-2); transition: transform .15s; }
.src-toggle[aria-expanded="true"] strong::before { transform: rotate(90deg); }
.src-toggle:hover strong { text-decoration: underline; text-underline-offset: 2px; }
.src-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 2px 0 6px 16px; }
.src-body { padding-left: 0; }
.work-picker { margin-top: 8px; border-top: 1px solid var(--g3); }
.pick-item, .pick-group { border-bottom: 1px solid var(--g3); }
.pick-items .pick-item:last-child { border-bottom: 0; }
.pick-items { padding-left: 22px; border-top: 1px solid var(--g4); }
.pick-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: baseline; padding: 6px 0; }
.pick-name { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; min-width: 0; cursor: pointer; }
.pick-name input { margin: 0; position: relative; top: 2px; }
.pick-row .num.muted { min-width: 84px; }
.pick-more { margin: -2px 0 6px 24px; }
.pick-item .task-entries { margin: 0 0 8px 24px; }
.pick-open { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.pick-open strong::before { content: "▸"; display: inline-block; width: 14px; color: var(--text-2); transition: transform .15s; }
.pick-open[aria-expanded="true"] strong::before { transform: rotate(90deg); }
.pick-open:hover strong { text-decoration: underline; text-underline-offset: 2px; }
.pick-foot { display: flex; gap: 10px; align-items: center; padding: 8px 0 2px; position: sticky; bottom: 0; background: var(--white); }
.chip.on-draft { background: var(--section-soft); font-size: 11.5px; }
.work-once { margin-top: 6px; }
.inv-side .work-picker .pick-row .num.muted { display: none; }
.inv-side .work-picker .pick-row { grid-template-columns: minmax(0, 1fr) auto; }
@media (prefers-reduced-motion: reduce) { .src-toggle strong::before, .pick-open strong::before { transition: none; } }
.basis-project { border-top: 1px solid var(--g3); padding: 6px 0; }
.basis-project-body { padding: 0 0 6px 16px; }

/* The projects at the side, tidied (Agnar 14.11.2026: "tætingslegt"): a head with the name and how
   much, the kinds of work below it at one indent, small print at the foot */
.src-project { border-top: 1px solid var(--g3); border-bottom: 0; padding: 2px 0; }
.src-project:first-of-type { border-top: 0; }
.src-toggle, .pick-open { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 0; border-radius: 6px; }
.src-toggle strong, .pick-open strong { flex: 1; min-width: 0; }
.src-toggle strong::before, .pick-open strong::before { content: none; }
.src-toggle:hover strong, .pick-open:hover strong { text-decoration: none; }
.src-toggle:hover .chev, .pick-open:hover .chev { border-color: var(--text); }
.src-toggle:focus-visible, .pick-open:focus-visible { outline-offset: 2px; }
.chev { flex: none; width: 7px; height: 7px; margin: 0 3px 0 2px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2);
  transform: rotate(-45deg); transition: transform .15s; }
[aria-expanded="true"] > .chev { transform: rotate(45deg); }
.src-sum { white-space: nowrap; }
.src-body { padding: 0 0 12px 22px; }
.src-body p { margin: 4px 0 0; }
.src-hours .work-picker { margin-top: 0; border-top: 0; }
.src-due { margin-top: 6px; }
.src-meta { margin: 10px 0 0 !important; display: block; }
.work-picker .pick-item { border-bottom: 1px solid var(--g4); }
.work-picker .pick-row { grid-template-columns: minmax(0, 1fr) 84px 110px; padding: 7px 0; }
.inv-side .work-picker .pick-row .num.muted { display: inline; }
.inv-side .work-picker .pick-row { grid-template-columns: minmax(0, 1fr) 74px 100px; }
.pick-foot { padding: 10px 0 0; flex-wrap: wrap; }
.pick-extra .link-btn { white-space: nowrap; }
.pick-sum { text-align: right; }
.work-once { margin-top: 10px; padding: 10px 12px; background: var(--g5); border-radius: 6px; }
.pick-group .pick-items { padding-left: 22px; }
@media (max-width: 1180px) { .inv-side { width: 100%; max-width: 820px; margin: 0 auto; } }
@media (max-width: 640px) { .work-picker .pick-row, .inv-side .work-picker .pick-row { grid-template-columns: minmax(0, 1fr) auto; } .work-picker .pick-row .num.muted { display: none; } }
@media (prefers-reduced-motion: reduce) { .chev { transition: none; } }
.paper-title .paper-date + .paper-date { margin-top: 6px; }
.pick-foot .pick-sum { flex: 1; }
.sheet-hint[hidden], .work-once[hidden], .src-body[hidden], .pick-items[hidden], .basis-project-body[hidden] { display: none; }

/* Photo editor (Agnar 15.11.2026): the circle, the zoom, and how the photo looks in lists */
.photo-editor { align-items: stretch; }
.photo-edit { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.photo-edit[hidden], .photo-empty[hidden] { display: none; }
.photo-stage { position: relative; width: 220px; height: 220px; border-radius: 50%; overflow: hidden; background: var(--g3); cursor: grab; touch-action: none; box-shadow: 0 0 0 1px var(--g3); }
.photo-stage.dragging { cursor: grabbing; }
.photo-stage:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
.photo-stage img { position: absolute; max-width: none; max-height: none; display: block; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.photo-zoom { display: flex; align-items: center; gap: 10px; width: 220px; }
.photo-zoom input[type="range"] { flex: 1; min-width: 0; }
.photo-smalls { display: flex; align-items: center; gap: 12px; }
.photo-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0; }
.photo-empty .avatar.photo-placeholder { width: 120px; height: 120px; font-size: 40px; }
.photo-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.photo-actions .btn[hidden] { display: none; }
/* The big face on a person's page is a button for whoever may change it */
.avatar-btn { border: 0; padding: 0; background: none; border-radius: 50%; cursor: pointer; margin-right: 14px; vertical-align: middle; display: inline-block; line-height: 0; }
.avatar-btn .avatar.big { margin-right: 0; }
.avatar-btn:hover .avatar { box-shadow: 0 0 0 3px var(--section-soft, #CEE1EA); }
.avatar-btn:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
/* Hours by person with each face, and a project's team with faces large enough to know them by */
.hbars.people { grid-template-columns: minmax(150px, 220px) 1fr auto; gap: 8px 10px; }
.hbars .hb-label { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hbars .hb-label > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .list-plain .person .avatar { width: 34px; height: 34px; font-size: 12.5px; }
.photo-zoom input[type="range"] { border: 0; padding: 0; height: 20px; background: none; box-shadow: none; accent-color: var(--black); }

/* Samningar og arðsemi (Agnar 15.11.2026) */
.kind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.kind-card { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px 14px; border: 1px solid var(--g3); border-radius: 8px;
  background: var(--white); color: var(--text); font: inherit; cursor: pointer; }
.kind-card:hover, .kind-card:focus-visible { border-color: var(--black); }
.kind-card.read { background: var(--g5); border-style: dashed; }
.agr-total { margin: 0; font-weight: 500; min-height: 1.2em; }
.agr-doc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.agr-claude ul { font-size: 13px; }
.chip.agr-fixed { background: var(--teal-soft); }
.chip.agr-monthly_fee, .chip.agr-monthly_hours, .chip.agr-monthly_line { background: var(--purple-soft); }
.chip.agr-hourly { background: var(--section-soft); }
.chip.agr-mixed { background: var(--steel-soft); }
.list-plain.agreements li { align-items: flex-start; }
.spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--g2); border-top-color: var(--black); border-radius: 50%;
  vertical-align: -2px; animation: av-spin .8s linear infinite; }
@keyframes av-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
.profit-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 16px; margin: 0; }
.profit-facts dt { color: var(--text-2); font-size: 12.5px; }
.profit-facts dd { margin: 2px 0 0; font-weight: 500; font-size: 17px; }
.profit-facts dd .sub { display: block; font-weight: 400; font-size: 12.5px; margin-top: 2px; }
.profit-card .pos { color: #13764A; }  /* green as text, readable on white */
.profit-card .neg { color: var(--att3-ink); }
.profit-notes { margin: 12px 0 0; padding-left: 18px; }
.profit-notes li + li { margin-top: 3px; }

/* Orlofsbeiðnir (Sif, Agnar 22.11.2026): vacation awaiting approval is striped */
.day.pending, .team td span.pending, .chip.pending { background-image: repeating-linear-gradient(135deg, transparent 0 4px, rgba(255, 255, 255, .75) 4px 7px); }
.chip.pending { border: 1px dashed var(--teal, #2c6e6a); }
/* Who is away by group and large client, week by week */
.team.coverage { min-width: 1000px; }
.team.coverage td.cov { padding: 0 2px; }
.team.coverage td.cov .chip { font-size: 11.5px; padding: 1px 6px; white-space: nowrap; }
.team.coverage td.has-pending .chip { border-style: dashed; }
/* "3 af 8" is a button that shows the names, for a keyboard and a finger too (QA3 I32) */
.team.coverage td.cov .cov-btn { border: 1px solid transparent; font-family: inherit; color: var(--black); cursor: pointer; }
.team.coverage td.has-pending .cov-btn { border: 1px dashed currentColor; }
.team.coverage th.name .sub { font-weight: 400; }
.team.coverage tr.cov-head th { text-align: left; padding: 14px 10px 4px; font-size: 13px; font-weight: 600; background: var(--g5); }
/* Groups and the managing director under Administration */
.group-list li { align-items: flex-start; }
.member-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.member-chips .chip { font-size: 12px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 14px; }

/* A cell just saved shows its new hours at once, faintly, until the week is fetched again (Agnar 22.11.2026) */
.week td.cell button.saving { opacity: .6; transition: opacity .2s; }
/* A new version is out (Agnar 22.11.2026) */
/* a strip at the top of the page, in the flow: it covers nothing and is not printed (QA3 I21) */
.new-version { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  background: var(--white); color: var(--black); border-bottom: 1px solid var(--g2); padding: 8px 16px; font-size: 14px; }
.new-version .nv-close { background: none; border: 0; font-size: 18px; line-height: 1; cursor: pointer; color: var(--text-2); padding: 0 4px; }
@media print { .new-version { display: none !important; } }
/* A field that did not save keeps its text and says so (Agnar 22.11.2026) */
.paper-input.unsaved, input.unsaved, textarea.unsaved { outline: 2px solid var(--orange, #E8833A); outline-offset: 1px; background: color-mix(in srgb, var(--orange, #E8833A) 8%, #fff); }
/* Signing in again over the page, when the session ran out (Agnar 22.11.2026) */
.login-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(236, 238, 241, .92); backdrop-filter: blur(3px); overflow: auto; padding: 16px; }
.login-overlay .login-wrap { min-height: 0; }
/* The sign-in over the page has its own look here: login.css is for the sign-in page alone (QA3 I1).
   It hides the page under it entirely, so nothing of the last person's screen shows (QA3 I5) */
.login-overlay { background: #ECEEF1; backdrop-filter: none; }
.login-overlay .login { background: #fff; border-radius: 12px; padding: 32px; width: min(440px, 100%); box-shadow: 0 10px 40px rgba(0,0,0,.12); }
.login-overlay .logo { height: 26px; display: block; margin-bottom: 22px; }
.login-overlay h1 { font-family: "Bureau Serif", Georgia, serif; font-weight: 300; font-size: 28px; line-height: 1.15; margin: 0 0 10px; }
.login-overlay .lead { color: #4C4E52; margin: 0 0 14px; }
.login-overlay label { display: block; font-size: 13px; color: #6F7278; margin-top: 12px; }
.login-overlay input { display: block; width: 100%; margin-top: 4px; }
.login-overlay .err { color: #B3261E; }
.login-overlay button[type=submit] { margin-top: 18px; width: 100%; height: 42px; border: 0; border-radius: 6px; background: #000; color: #fff; font: inherit; font-weight: 500; cursor: pointer; }
