:root {
  --red: #EF2134; --red-d: #C8102E; --red-bg: #FDE7EA; --red-ink: #B0102A;
  --ink: #1D1F24; --muted: #5E616A; --line: #E2E2DE; --line2: #EDEDEA; --bg: #F3F3F1; --card: #fff;
  --side: #16181D; --side2: #2A2D35; --side-ink: #C9CBD1;
  --amber: #E0A030; --amber-bg: #FFF1DC; --amber-ink: #8A4B00;
  --blue: #5B84C8; --blue-bg: #E6EEFB; --blue-ink: #1F4E9C;
  --green: #3E8E56; --green-bg: #E3F2E6; --green-ink: #1E6B34;
  --grey-bg: #EEEEEB; --grey-ink: #4A4D55; --pending: #D7D7D2;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-text-size-adjust: 100%; }
a { color: var(--red-d); } a:hover { color: #9E0C24; }
button, input, select, textarea { font: inherit; color: inherit; }
.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg, #F4F3F0); color: var(--muted); z-index: 50; }
.boot-in { display: grid; justify-items: center; gap: 18px; text-align: center; padding: 24px; }
.boot-logo { max-height: 64px; max-width: 220px; object-fit: contain; }
.boot-spin { width: 44px; height: 44px; border-radius: 50%; border: 4px solid rgba(239,33,52,.18); border-top-color: #EF2134; animation: bootspin .8s linear infinite; }
.boot-t { font-size: 18px; font-weight: 600; color: var(--ink, #1a1a1a); }
.boot-slow p { margin: 0 0 10px; }
@keyframes bootspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .boot-spin { animation-duration: 2.4s; } }

/* Uppsetning */
.shell { display: flex; min-height: 100vh; background: linear-gradient(90deg, var(--side) 228px, transparent 228px); }
.side { flex: 0 0 228px; background: var(--side); padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 20px; color: #fff; }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--red); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.brand b { display: block; font-size: 15px; } .brand span { color: #8D9099; font-size: 11.5px; }
.side a { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 8px; color: var(--side-ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.side a:hover { background: #23262D; color: #fff; }
.side a.on { background: var(--side2); color: #fff; box-shadow: inset 3px 0 0 var(--red); }
.side .grow { flex: 1; }
.side .me { color: #8D9099; font-size: 12px; padding: 12px 10px 0; border-top: 1px solid var(--side2); margin-top: 8px; }
.side .me b { color: #fff; display: block; font-size: 13px; }
.side .me a { padding: 0; display: inline; color: #8D9099; text-decoration: underline; font-size: 12px; }
main { flex: 1; min-width: 0; padding: 22px 28px 40px; display: flex; flex-direction: column; gap: 18px; }

.head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.head h1 { margin: 0; font-size: 24px; font-weight: 700; }
.head .sub { font-size: 13.5px; color: var(--muted); }
.grow { flex: 1; }
.crumb { font-size: 13px; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 8px; border: 1px solid #D7D7D2; background: #fff; color: var(--ink); font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { border-color: #B9BAB4; color: var(--ink); }
.btn.pri { background: var(--red); border-color: var(--red); color: #fff; } .btn.pri:hover { background: var(--red-d); }
.btn.sm { height: 30px; font-size: 12.5px; padding: 0 10px; }
.btn.icon { width: 38px; padding: 0; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn[disabled] { opacity: .55; cursor: default; }
.search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid #D7D7D2; border-radius: 8px; background: #fff; min-width: 240px; position: relative; }
.search input { border: 0; outline: 0; flex: 1; background: transparent; min-width: 0; }
.search .res { position: absolute; top: 42px; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.1); z-index: 30; overflow: hidden; }
.search .res a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line2); }
.search .res a:hover, .search .res a:focus { background: var(--bg); }
.search .res .empty { padding: 10px 12px; color: var(--muted); }

.plate { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; font-size: 13px; letter-spacing: .08em; border: 1.5px solid var(--ink); border-radius: 4px; padding: 1px 6px; background: #fff; white-space: nowrap; }
.plate.lg { font-size: 18px; border-width: 2px; padding: 2px 10px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.c-wait { background: var(--grey-bg); color: var(--grey-ink); }
.c-work { background: var(--red-bg); color: var(--red-ink); }
.c-part { background: var(--amber-bg); color: var(--amber-ink); }
.c-appr { background: var(--blue-bg); color: var(--blue-ink); }
.c-done { background: var(--green-bg); color: var(--green-ink); }

.stats { display: flex; flex-wrap: wrap; gap: 12px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; flex: 1 1 150px; }
.stat b { font-size: 22px; } .stat span { font-size: 12.5px; color: var(--muted); }

/* Dálkar */
.cols { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; align-items: flex-start; }
.col { flex: 1 1 220px; min-width: 220px; display: flex; flex-direction: column; gap: 10px; border-radius: 12px; }
.col.un { background: #EAEAE6; padding: 10px; }
.colh { display: flex; align-items: center; gap: 10px; padding: 4px 2px 8px; }
.colh .t { display: flex; flex-direction: column; flex: 1; gap: 4px; min-width: 0; }
.colh .t div { display: flex; justify-content: space-between; gap: 6px; }
.colh b { font-size: 14px; } .colh span { font-size: 12px; color: var(--muted); }
.av { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cap { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; } .cap span { display: block; height: 100%; background: var(--ink); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); cursor: pointer; }
.card:hover { border-color: #C9CBD1; color: var(--ink); }
.card.live { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.card .top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.card .car { font-size: 12.5px; color: var(--muted); }
.card .meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); gap: 6px; }
.card[draggable=true] { cursor: grab; }
.emptycol { font-size: 12.5px; color: var(--muted); padding: 8px 2px; }

/* Tímalína */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.ph { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line2); }
.ph h2 { margin: 0; font-size: 15px; font-weight: 700; }
.ph .note { font-size: 12.5px; color: var(--muted); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.tl { overflow-x: auto; padding: 12px 18px 16px; }
.tlg { min-width: 820px; display: grid; grid-template-columns: 130px 1fr; row-gap: 8px; font-size: 12px; }
.hours { display: flex; color: var(--muted); } .hours span { flex: 1; }
.tlrow { position: relative; height: 34px; border-radius: 6px; background: #F6F6F3; }
.tlrow .grid { position: absolute; inset: 0; display: flex; pointer-events: none; } .tlrow .grid span { flex: 1; border-right: 1px solid #E8E8E4; }
.tlrow.over { background: #FCEFF1; outline: 2px dashed var(--red); }
.tlname { font-size: 13px; font-weight: 600; align-self: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.blk { position: absolute; top: 3px; bottom: 3px; border-radius: 5px; padding: 0 8px; display: flex; align-items: center; overflow: hidden; white-space: nowrap; font-size: 12px; font-weight: 600; text-decoration: none; cursor: grab; }
.blk.s-pending { background: var(--pending); color: var(--ink); }
.blk.s-in_progress { background: var(--red); color: #fff; }
.blk.s-on_hold { background: #8D9099; color: #fff; }
.blk.s-finished { background: var(--green); color: #fff; }
.blk.h-parts { background: var(--amber); color: #3D2400; }
.blk.h-approval { background: var(--blue); color: #fff; }
.blk.ev { background: repeating-linear-gradient(135deg, #DCDCD7 0 6px, #E8E8E4 6px 12px); color: var(--grey-ink); }
.now { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); pointer-events: none; }

/* Verkbeiðni */
.layout2 { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.layout2 > .main { flex: 3 1 620px; min-width: 0; }
.layout2 > .aside { flex: 1 1 300px; min-width: 280px; display: flex; flex-direction: column; gap: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 8px; border-bottom: 1px solid var(--line2); }
td { padding: 6px 8px; border-bottom: 1px solid #F1F1EE; vertical-align: middle; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.sec td { background: #FAFAF8; font-weight: 700; font-size: 12.5px; color: var(--grey-ink); padding: 8px; }
td input.cell { width: 100%; border: 1px solid transparent; border-radius: 6px; padding: 5px 6px; background: transparent; }
td input.cell:hover { border-color: var(--line); } td input.cell:focus { border-color: var(--red); outline: 0; background: #fff; }
td input.cell[data-f=description] { min-width: 240px; }
td input.num { text-align: right; width: 84px; font-variant-numeric: tabular-nums; }
.src { font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; margin-left: 4px; white-space: nowrap; }
.kind { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.addline { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line2); align-items: flex-end; }
.addline label, .form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.inp { height: 36px; border: 1px solid #D7D7D2; border-radius: 8px; padding: 0 10px; background: #fff; min-width: 0; }
.inp:focus { outline: 2px solid var(--red); border-color: transparent; }
textarea.inp { height: auto; padding: 8px 10px; min-height: 70px; resize: vertical; }
.totals { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; padding: 16px 18px; }
.totals .facts { display: flex; gap: 18px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.totals .facts b { color: var(--ink); }
.sum { margin-left: auto; display: grid; grid-template-columns: auto auto; gap: 4px 28px; font-size: 14px; font-variant-numeric: tabular-nums; }
.sum span:nth-child(odd) { color: var(--muted); } .sum span:nth-child(even) { text-align: right; }
.sum .tot { font-size: 17px; font-weight: 700; color: var(--ink) !important; }
.kv { display: flex; flex-direction: column; } .kv > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid #F1F1EE; font-size: 13.5px; }
.kv > div:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }
.form { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; }
.form .row { display: flex; gap: 10px; flex-wrap: wrap; } .form .row > label { flex: 1 1 140px; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.switch input { width: 36px; height: 20px; appearance: none; background: #CFCFCA; border-radius: 999px; position: relative; cursor: pointer; margin: 0; }
.switch input::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; top: 2px; left: 2px; transition: left .15s; }
.switch input:checked { background: var(--green); } .switch input:checked::after { left: 18px; }
.msg { border-radius: 10px; padding: 10px 14px; font-size: 13.5px; }
.msg.err { background: #FDECEA; color: #8B1A12; } .msg.ok { background: var(--green-bg); color: var(--green-ink); } .msg.info { background: var(--blue-bg); color: var(--blue-ink); }
.card-form { max-width: 640px; }
.list a.rowlink { display: flex; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid #F1F1EE; color: var(--ink); text-decoration: none; }
.list a.rowlink:hover { background: #FAFAF8; }

/* Sími */
.phone { max-width: 480px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 12px; }
.task { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.task.live { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.task .clock { font-family: 'JetBrains Mono', monospace; font-size: 28px; font-weight: 700; }
.task .acts { display: flex; gap: 8px; } .task .acts .btn { flex: 1; height: 48px; font-size: 15px; border-radius: 12px; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }

.login { max-width: 420px; margin: 12vh auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }

/* Valmynd efst á mjóum skjám og spjaldtölvum á rönd (t.d. Samsung Galaxy Tab 800 px) */
@media (max-width: 900px) {
  .shell { flex-direction: column; background: none; }
  .side { position: static; height: auto; flex: none; flex-direction: row; align-items: center; gap: 4px; padding: 10px 12px; overflow-x: auto; }
  .brand { padding: 0 8px 0 0; } .brand div { display: none; }
  .side a { padding: 8px 10px; white-space: nowrap; font-size: 13px; }
  .side .grow, .side .me { display: none; }
  main { padding: 16px 16px 32px; }
  .search { min-width: 0; flex: 1 1 100%; }
  .head h1 { font-size: 21px; }
}

/* Verkþættir, pakkar, skilaboð */
.sub2 { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 2px 6px 0; }
.sub2:empty { display: none; }
.mini { height: 26px; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; font-size: 12px; background: #fff; }
.mini.num { width: 80px; text-align: right; }
.mini-l { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); font-weight: 500; }
tr.sec td { vertical-align: middle; }
tr.sec .grpname { font-weight: 700; max-width: 360px; background: transparent; }
.grpacts { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; }
.pkpick { border-bottom: 1px solid var(--line2); background: #FAFAF8; }
.pklist { display: flex; flex-direction: column; max-height: 320px; overflow: auto; padding: 0 12px 12px; gap: 6px; }
.pkrow { display: flex; align-items: center; gap: 10px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.pkrow:hover, .pkrow:focus { border-color: var(--red); outline: 0; }
.pkrow .n { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 100px; text-align: right; }
.mnotes { margin: 0; padding: 10px 18px 0 38px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.mnotes:empty { display: none; }
.mnotes li > div { display: inline; }
.mnotes li { position: relative; padding-right: 30px; }
.mnotes li .btn { position: absolute; right: 0; top: -4px; }
.mnotes li.imp { color: var(--red-ink); font-weight: 600; }
.phone-notes { background: var(--red-bg); border-radius: 10px; padding: 10px 12px 10px 30px; }
.phone-notes li { padding-right: 0; color: var(--ink); font-weight: 500; }

/* Útprent */
.printwrap { background: #E9E9E5; min-height: 100vh; padding: 20px 16px 40px; }
.printbar { max-width: 800px; margin: 0 auto 14px; display: flex; gap: 10px; }
.paper { max-width: 800px; margin: 0 auto; background: #fff; padding: 44px 48px; box-shadow: 0 2px 12px rgba(0,0,0,.08); color: #111; font-size: 13px; }
.ph2 { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 2px solid #111; padding-bottom: 14px; }
.ph2 .tn { font-size: 20px; font-weight: 700; } .ph2 .tm { color: #555; font-size: 12px; }
.ph2 .dn { text-align: right; } .ph2 .dn b { font-size: 17px; display: block; }
.pbl { display: flex; gap: 40px; flex-wrap: wrap; margin: 18px 0 12px; line-height: 1.5; }
.pbl .lbl { display: block; font-size: 10.5px; color: #666; text-transform: uppercase; letter-spacing: .05em; }
.pdesc { background: #F4F4F1; padding: 8px 10px; border-radius: 4px; margin: 0 0 12px; }
.ptab th { border-bottom: 1.5px solid #111; padding: 6px 0 6px 10px; color: #555; font-size: 10.5px; }
.ptab th:first-child, .ptab td:first-child { padding-left: 0; }
.ptab td { padding: 5px 0 5px 10px; border-bottom: 1px solid #EEE; }
.ptab .pgh td { font-weight: 700; padding-top: 14px; border-bottom: 1px solid #CCC; }
.ptab .compressed .pgh td { padding-top: 10px; }
.ptab .pgs td { font-weight: 600; color: #333; border-bottom: 0; }
.ptab .pn { color: #777; font-size: 11px; }
.psum { margin: 16px 0 0 auto; width: 300px; display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; font-variant-numeric: tabular-nums; }
.psum span:nth-child(even), .psum b:nth-child(even) { text-align: right; }
.psum b { font-size: 16px; border-top: 1.5px solid #111; padding-top: 6px; }
.pnotes { margin-top: 22px; font-size: 12.5px; } .pnotes ol { margin: 4px 0 0; padding-left: 18px; }
@media print {
  .noprint { display: none !important; }
  .printwrap { background: #fff; padding: 0; }
  .paper { box-shadow: none; padding: 0; max-width: none; }
  @page { margin: 16mm; }
}

.form label.mini-l { flex-direction: row; flex: 0 0 auto; }
select.mini.ord-to_order { background: var(--amber-bg); color: var(--amber-ink); border-color: #F0D6A8; font-weight: 600; }
select.mini.ord-ordered { background: var(--blue-bg); color: var(--blue-ink); border-color: #C9D8F2; font-weight: 600; }
select.mini.ord-arrived { background: var(--green-bg); color: var(--green-ink); border-color: #BFE0C7; font-weight: 600; }
select.mini.ord-stock { background: var(--grey-bg); color: var(--grey-ink); font-weight: 600; }
.psum { column-gap: 0; } .psum > * { padding-left: 20px; } .psum > :nth-child(odd) { padding-left: 0; }

/* Áfangi 2: verkstæðisgólfið */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip.big { font-size: 13px; padding: 4px 10px; }
.c-key { background: #F1ECFB; color: #4B2F8F; }
.c-ret { background: #FDECEA; color: #8B1A12; }
.c-urg { background: #FBE3E3; color: #A1121F; }
.badge { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 700; align-items: center; justify-content: center; margin-left: auto; }
.badge[hidden] { display: none; }
.blk .os { display: inline-flex; width: 15px; height: 15px; border-radius: 50%; background: rgba(0,0,0,.18); color: #fff; font-size: 10px; align-items: center; justify-content: center; margin-right: 5px; flex-shrink: 0; }
.blk .os.on { background: var(--green-ink); }
.tip { position: absolute; z-index: 50; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: 12px 14px; font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.tip-h { display: flex; align-items: center; gap: 8px; } .tip-r { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--grey-ink); }
.tip-g { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; } .tip-g li.done { color: var(--green-ink); } .tip-g small { color: var(--muted); }
.tip-c { background: var(--bg); border-radius: 8px; padding: 6px 8px; } .tip-c small { color: var(--muted); }
.done-tag { font-size: 12px; font-weight: 600; color: var(--green-ink); background: var(--green-bg); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
tr.unused td { color: #9A9DA5; } tr.unused input.cell { text-decoration: line-through; }
.thumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.thumb { position: relative; display: block; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .x { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
.comments { list-style: none; margin: 0; padding: 8px 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.comments small { color: var(--muted); }
.cform { display: flex; gap: 8px; padding: 8px 18px 14px; align-items: center; } .cform .inp { flex: 1; min-width: 0; }
.finding { gap: 6px; }
.keypick .keyloc { padding: 10px 18px; } .keypick .keyloc b { display: block; margin-bottom: 6px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; }
.slot { height: 50px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.slot:hover { border-color: var(--red); } .slot small { font-size: 9.5px; font-weight: 600; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.slot.taken { background: #EDEDEA; color: #9A9DA5; cursor: not-allowed; } .slot.mine { background: var(--green-bg); border-color: var(--green); }
.muted-link { font-size: 13px; }
.photo-in { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px; border: 2px dashed #C9CBD1; border-radius: 12px; cursor: pointer; font-weight: 600; background: #fff; align-self: flex-start; }
.photo-in.sm { height: 40px; padding: 0 12px; }
.photo-in input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rowlink.unread { background: #FFF7F8; } .rowlink.unread b { font-weight: 800; }

/* Spjaldtölva */
.tablet { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 18px; align-items: start; }
.tablet .tlist { display: flex; flex-direction: column; gap: 12px; }
.task.sel { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.task .acts { flex-wrap: wrap; } .task .acts .btn { min-width: 110px; }
.tdetail { min-width: 0; }
.tjob { display: flex; flex-direction: column; gap: 14px; }
.thead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.thead h2 { margin: 0; font-size: 20px; }
.tgroup { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.tgroup.is-done { border-color: #BFE0C7; background: #FAFDFB; }
.tg-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .tg-h h3 { margin: 0; font-size: 17px; }
.tlines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid #F1F1EE; }
.tline .tl-d { flex: 1 1 260px; font-size: 15px; } .tline .tl-a { display: flex; gap: 8px; }
.tline.unused .tl-d { color: #9A9DA5; }
.btn.big-t { height: 52px; min-width: 120px; font-size: 16px; border-radius: 12px; padding: 0 18px; }
.tgroup .cform, .tgroup .comments { padding-left: 0; padding-right: 0; }
.tgroup .form label { font-size: 13px; }
@media (max-width: 900px) { .tablet { grid-template-columns: 1fr; } .tablet.has-job .tlist { order: 2; } }

/* Ástandsskoðun */
.iitem { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 8px 14px; padding: 12px 18px; border-bottom: 1px solid #F1F1EE; border-left: 5px solid transparent; }
.iitem.st-ok { border-left-color: var(--green); } .iitem.st-check { border-left-color: var(--amber); } .iitem.st-urgent { border-left-color: #D0182A; }
.ii-l { display: flex; flex-direction: column; justify-content: center; } .ii-l b { font-size: 15px; } .ii-l small { color: var(--muted); }
.ii-s { display: flex; gap: 6px; }
.sbtn { height: 48px; min-width: 92px; border-radius: 10px; border: 2px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.sbtn.s-ok.on { background: var(--green); border-color: var(--green); color: #fff; }
.sbtn.s-check.on { background: var(--amber); border-color: var(--amber); color: #3D2400; }
.sbtn.s-urg.on { background: #D0182A; border-color: #D0182A; color: #fff; }
.ii-f { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.iitem .thumbs { grid-column: 1 / -1; }
@media (max-width: 700px) { .iitem { grid-template-columns: 1fr; } .sbtn { flex: 1; min-width: 0; } }

/* Áfangi 3: stillingar */
.mark.logo { object-fit: contain; background: #fff; padding: 2px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; }
.tabs a.on { color: var(--ink); border-color: var(--red); }
.logo-box { width: 160px; height: 64px; border: 1px dashed #C9CBD1; border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; }
.logo-box img { max-width: 100%; max-height: 100%; }
.logo-box.dark { background: #111317; border-color: #3A3F49; }
.logo-box.dark .muted { color: #9A9EA8; }
tr.inactive td, .inactive { opacity: .6; }
.resrow { display: flex; flex-direction: column; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line2); }
.resrow label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.resrow .row { display: flex; gap: 10px; flex-wrap: wrap; }
.hours7 { display: grid; grid-template-columns: repeat(7, minmax(96px, 1fr)); gap: 6px; overflow-x: auto; }
.hday { border: 1px solid var(--line); border-radius: 8px; padding: 6px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.hday.closed { background: #F6F6F3; } .hday .mini { width: 100%; }
.pkgset { border-bottom: 1px solid var(--line2); }
.pkghead { display: flex; gap: 10px; flex-wrap: wrap; padding: 12px 18px; }
.pkghead label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.setup { border-color: var(--red); }
.setup-list { list-style: none; margin: 0; padding: 12px 18px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.setup-list li { display: flex; align-items: center; gap: 10px; }
.setup-list .tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #C9CBD1; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; }
.setup-list li.done .tick { background: var(--green); border-color: var(--green); }
.setup-list li.done a { color: var(--muted); text-decoration: line-through; }
.carinfo { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #FAFAF8; display: flex; flex-direction: column; gap: 8px; }
.ci-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .ci-f { font-size: 13px; color: var(--grey-ink); }
.custpick { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.custpick legend { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.person { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; cursor: pointer; }
.person.on { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.person input { margin-top: 3px; accent-color: var(--red); }

/* Tímalína: rist í skrefum, draga, valmynd og bókunargluggi */
.tlg { grid-template-columns: 130px 1fr; }
.hours { position: relative; height: 18px; display: block; }
.hours span { position: absolute; transform: translateX(-2px); }
.tlrow { height: 46px; touch-action: none; user-select: none; cursor: crosshair; }
.tlrow .grid span { border-right: 1px solid #EDEDE9; } .tlrow .grid span.hr { border-right-color: #D3D3CE; }
.blk { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; padding: 0 12px 0 6px; line-height: 1.2; cursor: grab; touch-action: none; }
.blk .bl1, .blk .bl2 { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blk .bl1 { font-size: 12px; } .blk .bl2 { font-size: 11px; font-weight: 500; opacity: .85; }
.blk .bk { font-size: 11px; margin-right: 4px; }
.blk .os { width: 13px; height: 13px; font-size: 9px; margin-right: 4px; display: inline-flex; vertical-align: -2px; }
.blk.dragging { opacity: .35; }
.blk .rz { position: absolute; right: 0; top: 0; bottom: 0; width: 9px; cursor: ew-resize; background: linear-gradient(90deg, transparent 3px, rgba(0,0,0,.25) 3px, rgba(0,0,0,.25) 5px, transparent 5px); border-radius: 0 5px 5px 0; }
.tlghost { position: absolute; top: 3px; bottom: 3px; border: 2px dashed var(--red); background: rgba(239,33,52,.10); border-radius: 6px; font-size: 11.5px; font-weight: 700; color: var(--red-ink); display: flex; align-items: center; padding: 0 6px; white-space: nowrap; overflow: visible; pointer-events: none; z-index: 5; }
.tlghost.mv { border-color: var(--ink); background: rgba(29,31,36,.08); color: var(--ink); }
.popwrap { position: fixed; inset: 0; z-index: 60; background: rgba(22,24,29,.25); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; overflow: auto; }
.pop { background: #fff; border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.25); width: min(560px, 100%); display: flex; flex-direction: column; }
.pop-h { display: flex; justify-content: space-between; gap: 10px; padding: 14px 16px 6px; } .pop-h .muted { font-size: 13px; }
.pop-tabs { display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.pop-tabs button { border: 0; background: none; padding: 10px 10px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; }
.pop-tabs button.on { color: var(--ink); border-color: var(--red); }
.typegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 14px 16px; }
.popform .typegrid { padding: 0; }
.tbtn { min-height: 48px; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 10px; font-weight: 600; text-align: left; cursor: pointer; }
.tbtn:hover, .tbtn:focus { border-color: var(--red); outline: 0; } .tbtn.ev { background: #F6F6F3; }
.popform { padding: 12px 16px 16px; gap: 10px; }
.linkbtn { border: 0; background: none; color: var(--red-d); text-decoration: underline; cursor: pointer; padding: 0; font: inherit; }
.carline { font-size: 13px; color: var(--grey-ink); }
.joblist { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow: auto; }
.jobpick { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.jobpick:hover, .jobpick:focus { border-color: var(--red); outline: 0; }
.ctxmenu { position: fixed; z-index: 70; max-height: calc(100vh - 16px); overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.18); min-width: 220px; padding: 6px; display: flex; flex-direction: column; }
.ctxmenu button { text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.ctxmenu button:hover, .ctxmenu button:focus { background: var(--bg); outline: 0; }
.ctxmenu .mh { font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 6px 10px 2px; text-transform: uppercase; letter-spacing: .04em; }
.ctxmenu hr { border: 0; border-top: 1px solid var(--line2); margin: 4px 0; }
.form label.person, .custpick label.person { flex-direction: row; font-size: 14px; color: var(--ink); font-weight: 400; }

/* Staðfesting neðst á skjánum (t.d. eftir Vista) */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #1D1F24; color: #fff; font-weight: 600; font-size: 15px; padding: 12px 20px; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.18); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 1000; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.btn.saved { background: #1E6B34 !important; border-color: #1E6B34 !important; color: #fff !important; }

/* Tákn (favicon) í stillingum og merki á útprenti */
.icon-box { width: 64px; height: 64px; border: 1px dashed var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; }
.icon-box img { width: 100%; height: 100%; object-fit: contain; }
.paper .plogo { max-height: 56px; max-width: 240px; object-fit: contain; display: block; margin-bottom: 6px; }
/* Línur eins og í Business Central */
.lnwrap { overflow-x: auto; }
table.lines { font-size: 13px; }
table.lines th { white-space: nowrap; font-size: 11.5px; padding: 6px 4px; }
table.lines td { padding: 3px 3px; vertical-align: top; }
table.lines td input.cell { padding: 4px 5px; }
table.lines td input.cell[data-f=description] { min-width: 190px; }
table.lines td input.pn { width: 92px; }
table.lines td input.sup { width: 110px; }
table.lines td input[data-f=qty] { width: 54px; }
table.lines td input[data-f=discount_pct] { width: 46px; }
table.lines td input[data-f=unit_cost], table.lines td input[data-f=unit_price], table.lines td input[data-f=unit_price_gross] { width: 84px; }
table.lines td.amt { white-space: nowrap; padding-top: 8px; font-weight: 600; }
table.lines td.st { white-space: nowrap; }
table.lines td.st .mini { max-width: 104px; }
table.lines td.st .grpmv { max-width: 90px; margin-left: 2px; }
table.lines td.desc .sub2 { padding-left: 5px; }
table.lines td.pc { position: relative; cursor: pointer; }
.pcw { display: flex; align-items: center; gap: 1px; }
.calcb { border: 0; background: transparent; color: var(--muted); font-size: 13px; padding: 2px 3px; border-radius: 5px; cursor: pointer; line-height: 1; opacity: .45; }
td.pc:hover .calcb, .calcb:focus { opacity: 1; background: var(--line2); }
.mg { display: block; margin: 0 22px 0 auto; border: 0; background: none; padding: 0 5px; font-size: 11px; color: var(--muted); cursor: pointer; text-align: right; }
.mg.low { color: var(--red); font-weight: 600; } .mg.high { color: var(--green-ink); font-weight: 600; }
table.lines tr.addrow td { padding: 6px 3px; background: #FAFAF8; border-top: 1px solid var(--line2); }
.inp.sm { height: 30px; padding: 0 6px; font-size: 13px; width: 100%; min-width: 0; }
.inp.sm.num { text-align: right; }
table.lines tr.addrow td:nth-child(3) .inp { min-width: 160px; }
.hiddenform { display: none; }
input.bad, input.cell.bad { border-color: var(--red) !important; background: #FFF1F1 !important; }
.fxerr { position: absolute; z-index: 5; margin-top: 2px; background: var(--red); color: #fff; font-size: 11.5px; padding: 3px 7px; border-radius: 6px; white-space: nowrap; right: 4px; }
table.lines td { position: relative; }
.calc { padding: 18px 20px; gap: 12px; width: min(460px, 100%); }
.calc h2 { font-size: 18px; margin: 0; }
.calcinfo { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; font-size: 13.5px; }
.calcinfo dt { color: var(--muted); } .calcinfo dd { margin: 0; font-weight: 600; }
.calcgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.calcgrid label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); position: relative; }
.calcgrid .inp { text-align: right; font-size: 15px; }
.calc .popbtns { display: flex; gap: 8px; justify-content: flex-end; }
/* Verkbeiðni: línurnar fá alla breiddina, aðrir hlutar fara í raðir fyrir neðan */
.layout2.jobl > .main { flex: 1 1 100%; }
.layout2.jobl > .aside { flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); align-items: start; }
.calcgrid .inp { width: 100%; min-width: 0; box-sizing: border-box; }
/* Ný verkbeiðni: tveir dálkar af spjöldum, stöðustika neðst */
.njform { display: flex; flex-direction: column; gap: 0; }
.njgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.njcol { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 1100px) { .njgrid { grid-template-columns: minmax(0, 1fr); } }
.njcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 1px 2px rgba(20,22,28,.04); }
.njcard h2 { margin: 0 0 2px; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.njcard h2 .n { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12.5px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.njcard label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); font-weight: 600; flex: 0 0 auto; min-width: 0; }
.njcard .row > label { flex: 1 1 160px; }
.njcard label.mini-l, .njcard label.switch, .njcard label.person, .njcard label.ct { flex-direction: row; flex: 0 0 auto; }
.njcard .row { display: flex; gap: 12px; flex-wrap: wrap; }
.njcard .inp { width: 100%; }
.njcard textarea.inp { resize: vertical; min-height: 44px; padding: 8px 10px; }
.njcard .hint { font-weight: 400; font-size: 12px; color: var(--muted); }
.platerow { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.platerow .platebox { flex: 1 1 200px; }
.plateinp.inp { height: 56px; font: 700 28px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; text-align: center; border: 2.5px solid var(--ink); border-radius: 9px; background: #fff; }
.plateinp.inp.bad { border-color: var(--red); }
.platerow .btn { height: 56px; padding: 0 18px; white-space: nowrap; }
.lkwrap { display: inline-flex; }
.lkwrap .btn[disabled] { opacity: .5; cursor: not-allowed; }
.carinfo.empty { padding: 12px 14px; border: 1px dashed var(--line); border-radius: 10px; font-size: 13px; }
.ci-car { font-size: 16px; }
.ci-dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin: 4px 0 0; font-size: 13px; }
.ci-dl dt { color: var(--muted); } .ci-dl dd { margin: 0; font-weight: 500; }
.msg.warn { background: var(--amber-bg); color: var(--amber-ink); border: 1px solid #F0D6A8; }
.ferr { color: var(--red-ink); font-size: 12.5px; font-weight: 600; }
.inp.bad, .inp[aria-invalid=true] { border-color: var(--red); background: #FFF6F6; }
.search-in .inp { background: #FAFAF8; }
.cres { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cresi { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--line2); padding: 8px 12px; cursor: pointer; }
.cresi:hover, .cresi:focus { background: #F7F7F4; outline: 0; } .cresi:last-child { border-bottom: 0; }
.custpick { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.custpick:empty { display: none; }
.ctlist { border: 1px solid var(--line2); border-radius: 10px; padding: 8px 10px 10px; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.ctlist legend { font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 0 4px; }
label.ct { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 13.5px; color: var(--ink); font-weight: 400; cursor: pointer; }
label.ct.on { background: var(--green-bg); }
label.ct > span:not(.ctacts) { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; flex: 1; }
label.ct .ctacts { display: flex; gap: 2px; margin-left: auto; }
.ctform { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; padding: 10px; border: 1px solid var(--line2); border-radius: 10px; background: #FAFAF8; }
.ctform label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.ctform .ctbtns, .ctform .ferr { grid-column: 1 / -1; display: flex; gap: 8px; }
.switches { display: flex; gap: 18px; flex-wrap: wrap; }
.njbar { position: sticky; bottom: 0; z-index: 20; margin: 16px -4px 0; padding: 12px 18px; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; gap: 10px; box-shadow: 0 -6px 18px rgba(20,22,28,.06); flex-wrap: wrap; }
.njbar .grow { flex: 1; }
.custpanel .form { gap: 10px; }
/* Dagsetningarreitur dd.mm.áááá með dagatali */
.datef { position: relative; display: flex; align-items: center; width: 100%; }
.datef .datetxt { padding-right: 34px; width: 100%; font-variant-numeric: tabular-nums; }
.datef .datebtn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; cursor: pointer; font-size: 15px; padding: 3px 5px; border-radius: 6px; line-height: 1; }
.datef .datebtn:hover { background: var(--line2); }
.datef .datetxt.bad { border-color: var(--red); background: #FFF6F6; }
.mini-l .datef { width: 150px; } .mini-l .datef .inp { height: 32px; }
.datepop { position: absolute; z-index: 200; width: 262px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 36px rgba(0,0,0,.18); padding: 10px; font-size: 13px; }
.datepop .dph { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.datepop .dph b { font-weight: 700; }
.datepop button { border: 0; background: transparent; cursor: pointer; border-radius: 7px; font: inherit; color: var(--ink); }
.datepop .dph button { width: 30px; height: 28px; font-size: 18px; }
.datepop .dpw, .datepop .dpg { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.datepop .dpw span { color: var(--muted); font-size: 11.5px; font-weight: 600; padding: 3px 0; }
.datepop .dpg button { height: 30px; }
.datepop .dpg button:hover { background: var(--line2); }
.datepop .dpg button.today { font-weight: 700; color: var(--red-d); }
.datepop .dpg button.on { background: var(--ink); color: #fff; }
.datepop .dpf { display: flex; justify-content: space-between; margin-top: 8px; border-top: 1px solid var(--line2); padding-top: 6px; }
.datepop .dpf button { padding: 4px 8px; color: var(--red-d); font-weight: 600; }
/* Verkþættir á verkbeiðni (spjöld) */
.wmain { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.wband { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .9fr); gap: 18px; padding: 14px 18px; }
@media (max-width: 1100px) { .wband { grid-template-columns: 1fr; } }
.wband h3 { margin: 0 0 6px; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.wband ol, .wband ul { margin: 0; padding-left: 20px; font-size: 13.5px; }
.wband .concerns li { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.wband .concerns li > span:first-child { flex: 1; }
.wband .concerns .cnlink { max-width: 170px; }
.wb-n { background: #FFF8EC; border: 1px solid #F3E2BF; border-radius: 10px; padding: 10px 12px; }
.wb-n .imp { color: var(--red-ink); }
.wb-s ul { list-style: none; padding: 0; } .wb-s li { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 2px 0; }
.wb-s a { color: var(--ink); text-decoration: none; } .wb-s a:hover { text-decoration: underline; }
.wb-s .note { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.tag { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 600; border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--muted); background: #fff; white-space: nowrap; }
.witems { display: flex; flex-direction: column; gap: 14px; }
.witem { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; scroll-margin-top: 16px; }
.witem.st-proposal, .witem.st-awaiting_approval { border-style: dashed; background: #FCFCFA; }
.witem.st-declined { opacity: .7; border-style: dashed; }
.witem.st-done { border-color: #CFE6D5; }
.wi-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line2); }
.wi-no { width: 26px; height: 26px; border-radius: 7px; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.witem.st-proposal .wi-no, .witem.st-awaiting_approval .wi-no, .witem.st-declined .wi-no { background: #9EA1A8; }
.wi-name { font-weight: 700; font-size: 15.5px; }
input.wi-name { max-width: 300px; }
.wi-hrs { font-size: 12.5px; color: var(--muted); }
.wi-sum { white-space: nowrap; } .wi-sum b { font-size: 15px; } .wi-sum small { color: var(--muted); }
.wi-acts { display: inline-flex; gap: 0; }
.wi-3c { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 10px 16px; border-bottom: 1px solid var(--line2); }
.wi-3c label { display: flex; flex-direction: column; gap: 2px; }
.wi-3c label > span { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.cell3 { border: 1px solid transparent; border-radius: 6px; padding: 4px 6px; margin-left: -6px; font: inherit; font-size: 13.5px; resize: vertical; min-height: 28px; background: transparent; }
.cell3:hover { border-color: var(--line); } .cell3:focus { border-color: var(--red); outline: 0; background: #fff; }
.cell3::placeholder { color: #A5A8AF; }
.witem .lnwrap { border-bottom: 1px solid var(--line2); }
.wi-ck { padding: 10px 16px; border-bottom: 1px solid var(--line2); }
.wi-ck h4 { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.wi-ck ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.wi-ck li { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.wi-ck li label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.wi-ck li input { width: 17px; height: 17px; accent-color: var(--green-ink); }
.wi-ck li small { color: var(--muted); font-size: 11.5px; }
.req { color: var(--red-ink); font-weight: 700; }
.ckform { margin-top: 8px; flex-wrap: wrap; }
.wi-f { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 16px; background: #FAFAF8; }
.wi-f .note { color: var(--muted); font-size: 12.5px; }
.wi-last { font-size: 13px; color: var(--muted); } .wi-last b { color: var(--ink); font-weight: 600; }
.witem .thumbs { padding: 8px 16px; }
.wi-other .note { color: var(--muted); font-size: 12.5px; }
.wi-addbar { display: flex; justify-content: flex-start; }
.wtotals .pend { color: var(--blue-ink); }
.waddp .wa-src { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; padding: 14px 18px; }
.wa-s { display: flex; gap: 10px; align-items: flex-start; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 10px 12px; cursor: pointer; font: inherit; color: var(--ink); }
.wa-s:hover { border-color: #C9CBD1; } .wa-s.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.wa-s[aria-disabled=true] { opacity: .6; }
.wa-s .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--grey-bg); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wa-s b { display: block; font-size: 13.5px; } .wa-s small { color: var(--muted); font-size: 12px; }
.wa-body { padding: 0 18px 16px; display: flex; flex-direction: column; gap: 6px; }
.wa-cn { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); max-width: 360px; margin-bottom: 4px; }
.wa-row { display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 9px 12px; cursor: pointer; font: inherit; color: var(--ink); flex-wrap: wrap; }
.wa-row:hover { background: #F7F7F4; } .wa-row .muted { font-size: 12.5px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; } .dot.red { background: var(--red); } .dot.amber { background: var(--amber); }
.p3c td { font-size: 12px; color: #444; padding: 2px 6px 6px !important; } .p3c div { margin: 1px 0; }
/* Spjaldtölva: verkþættir */
.ti-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .ti-grid { grid-template-columns: 1fr; } }
.ti-list { display: flex; flex-direction: column; gap: 10px; }
.ti-i { display: flex; flex-direction: column; gap: 4px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; font: inherit; color: var(--ink); }
.ti-i.sel { border: 2px solid var(--ink); padding: 11px 13px; }
.ti-i.off { background: #F6F6F3; color: var(--muted); }
.ti-i.off small { color: var(--blue-ink); }
.ti-t { display: flex; justify-content: space-between; gap: 8px; align-items: center; } .ti-t b { font-size: 15px; }
.ti-i small { color: var(--muted); font-size: 12.5px; }
.ti-i .bar { height: 5px; border-radius: 3px; background: var(--line2); overflow: hidden; } .ti-i .bar span { display: block; height: 100%; background: var(--green-ink); }
.ti-d { display: flex; flex-direction: column; gap: 12px; }
.ti-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .ti-h h2 { margin: 0; font-size: 21px; }
.ti-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.ti-box .lbl, .ti-cc .lbl { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ti-ck { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.ti-ck li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line2); }
.ti-ck li:last-child { border-bottom: 0; }
.ti-ck label { display: flex; align-items: center; gap: 14px; flex: 1; cursor: pointer; font-size: 16px; }
.ti-ck input { width: 34px; height: 34px; accent-color: var(--green-ink); flex-shrink: 0; }
.ti-ck small { color: var(--muted); }
.ti-parts { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.ti-parts li { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line2); flex-wrap: wrap; font-size: 15px; }
.ti-parts li:last-child { border-bottom: 0; }
.btn.okb { background: var(--green-bg); border-color: #BFE0C7; color: var(--green-ink); }
.ti-cc { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ti-cc label { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.ti-cc textarea { border: 0; padding: 0; min-height: 52px; font-size: 15px; }
.ti-cc textarea:focus { outline: 0; }
.ti-ph { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ti-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; }
.btn.done-b { background: #1E6B34; border-color: #1E6B34; color: #fff; height: 52px; font-size: 16px; }
.ack { color: var(--green-ink); font-weight: 600; }
.tjob-extra { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.tablet.has-job { grid-template-columns: 1fr; } .tablet.has-job .tlist { display: none; }
/* Tímar */
.hrs-card .htab th, .hrs-card .htab td { padding: 7px 12px; }
.hrs-card .htab tfoot th { border-top: 2px solid var(--line); font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.hrs-card tr.lv-warn td:nth-child(3), .hrs-card tr.lv-warn th:nth-child(3) { color: var(--amber-ink); font-weight: 700; }
.hrs-card tr.lv-over td:nth-child(3), .hrs-card tr.lv-over th:nth-child(3) { color: var(--red-ink); font-weight: 700; }
.hrs-card tr.lv-ok td:nth-child(3), .hrs-card tr.lv-ok th:nth-child(3) { color: var(--green-ink); font-weight: 700; }
.hpeople { display: flex; flex-direction: column; gap: 10px; padding: 12px 18px 16px; }
.hp { border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.hp-h { display: flex; align-items: center; gap: 8px; }
.hp-g { display: flex; flex-wrap: wrap; gap: 6px; }
.hp-m { font-size: 12.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hentries { font-size: 13px; }
.hform { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 12px; padding: 10px; background: #FAFAF8; border: 1px solid var(--line2); border-radius: 10px; }
.hform label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.hform .dt { display: grid; grid-template-columns: 1fr 96px; gap: 6px; }
.hform .wide { grid-column: 1 / -1; } .hbtns { display: flex; gap: 8px; }
.hnew { padding: 12px 18px 0; }
.hrs-b { font-size: 12.5px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.hrs-b.lv-ok { color: var(--green-ink); background: var(--green-bg); }
.hrs-b.lv-warn { color: var(--amber-ink); background: var(--amber-bg); }
.hrs-b.lv-over { color: var(--red-ink); background: var(--red-bg); }
/* Verk dagsins: dagsetningarval og Óráðstafað röð */
.daynav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.daynav .btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.dcalwrap { position: relative; }
.datebtn-l { font-weight: 700; }
.daycal { position: absolute; z-index: 80; top: calc(100% + 6px); left: 0; width: 330px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.18); padding: 12px; font-size: 13px; }
.daycal .dph { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.daycal button { border: 0; background: transparent; cursor: pointer; font: inherit; color: var(--ink); border-radius: 8px; }
.daycal .dph button { width: 32px; height: 30px; font-size: 18px; }
.daycal .dpw, .daycal .dpg { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.daycal .dpw span { color: var(--muted); font-size: 11.5px; font-weight: 600; padding: 3px 0; }
.daycal .dpg button { height: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; position: relative; }
.daycal .dpg button:hover { background: var(--line2); }
.daycal .dpg button.closed { color: #B4B6BC; background: #F6F6F3; }
.daycal .dpg button.today .dn { color: var(--red-d); font-weight: 800; }
.daycal .dpg button.today { box-shadow: inset 0 0 0 1.5px var(--red); }
.daycal .dpg button.on { background: var(--ink); color: #fff; } .daycal .dpg button.on .cnt { color: #fff; }
.daycal .cnt { font-size: 10.5px; color: var(--blue-ink); font-weight: 700; display: inline-flex; align-items: center; gap: 2px; }
.daycal .cnt i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; display: inline-block; }
.daycal .web { position: absolute; top: 2px; right: 4px; font-size: 8px; color: var(--green-ink); }
.daycal .dpf { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; border-top: 1px solid var(--line2); padding-top: 8px; }
.daycal .dpf button { padding: 4px 8px; color: var(--red-d); font-weight: 700; }
.daycal .dpf .muted { font-size: 11.5px; }
.ustrip { margin-bottom: 14px; }
.urow { display: flex; gap: 10px; overflow-x: auto; padding: 12px 16px 14px; scroll-snap-type: x proximity; }
.ucard { flex: 0 0 250px; scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); cursor: grab; }
.ucard:hover { border-color: #C9CBD1; color: var(--ink); }
.ucard .top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ucard .car { font-size: 12.5px; color: var(--muted); }
.ucard .what { font-size: 13.5px; line-height: 1.3; }
.ucard .meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 6px; font-size: 12px; color: var(--muted); align-items: center; }
.ucard .icons { display: inline-flex; gap: 8px; align-items: center; }
.ucard .os { width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; background: var(--grey-bg); color: var(--grey-ink); }
.ucard .os.on { background: var(--green-bg); color: var(--green-ink); }
.clip-pill { position: fixed; z-index: 70; left: 50%; bottom: 18px; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 10px 8px 16px; font-size: 13.5px; box-shadow: 0 8px 24px rgba(0,0,0,.25); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.clip-pill button { border: 0; background: rgba(255,255,255,.15); color: #fff; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; margin-left: 6px; }
.clipbox { border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; background: #FAFAF8; }
/* Tillögur að ráðstöfun */
.sugbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 18px; background: #F5F3FF; border-bottom: 1px solid #E4DEFB; }
.sugbar .muted { font-size: 12.5px; }
.sugnone { flex-basis: 100%; font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--red-ink); }
.blk.sug { opacity: .55; border: 2px dashed #6B5BD2; background: #EEEAFE; color: #2E2470; z-index: 2; cursor: grab; display: flex; flex-direction: column; justify-content: center; padding-left: 24px; }
.blk.sug.on { opacity: .8; }
.blk.sug.open { opacity: 1; box-shadow: 0 0 0 3px rgba(107,91,210,.35); }
.blk.sug input[type=checkbox] { position: absolute; left: 5px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; accent-color: #6B5BD2; margin: 0; cursor: pointer; }
.blk.sug .tagt { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; background: #6B5BD2; color: #fff; border-radius: 4px; padding: 0 4px; }
.sugpanel { position: fixed; z-index: 75; right: 24px; top: 90px; width: 360px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.22); padding: 14px 16px; }
.sugmove { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.sugmove label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.sugmove label:first-child { grid-column: 1 / -1; }
.sugmove button { grid-column: 1 / -1; }
/* „Núna“ lína yfir alla tímalínuna */
.tl { position: relative; }
.nowline { position: absolute; width: 2px; margin-left: -1px; background: #EF2134; z-index: 6; pointer-events: none; }
.nowline::before { content: ''; position: absolute; top: 14px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: #EF2134; }
.nowline .nl-t { position: absolute; top: -4px; left: 8px; font: 700 11px/1 Inter, system-ui, sans-serif; color: #fff; background: #EF2134; border-radius: 4px; padding: 2px 5px; white-space: nowrap; }
.tlname { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.capl { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); font-weight: 600; }
.capb { width: 42px; height: 5px; border-radius: 3px; background: var(--line2); overflow: hidden; display: inline-block; }
.capb i { display: block; height: 100%; background: var(--green); }
.capl.over { color: var(--red-ink); } .capl.over .capb i { background: var(--red); }
.cap0 { font-size: 11px; color: #A5A8AF; }
.blk .late { background: var(--amber); color: #fff; font-size: 10px; font-weight: 800; text-transform: uppercase; border-radius: 4px; padding: 0 4px; margin-right: 4px; letter-spacing: .03em; }
.blk.ovr { box-shadow: inset 0 0 0 2px #B0102A; }
/* Umframtími: frá því bókaði tíminn átti að enda þar til stimplað er út (í gangi: núna) */
.blk .ovrpart { position: absolute; top: 0; bottom: 0; right: 0; background: repeating-linear-gradient(135deg, #7A0A1C 0 6px, #A50E27 6px 12px); z-index: 0; pointer-events: none; }
.blk .bl1, .blk .bl2 { position: relative; z-index: 1; }
.blk .rz { z-index: 2; }
/* Fært til eftir stimplun eða ýtt aftur fyrir tíma á undan */
.blk.mvd:not(.s-in_progress):not(.s-finished) { outline: 1px dashed rgba(0,0,0,.35); outline-offset: -2px; }
.blk[data-started] { cursor: default; }
.ucard .uarr { align-self: flex-start; }
.uarrp { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; padding: 10px 16px; background: #F3FAF5; border-bottom: 1px solid #D5EBDC; }
.uarrp label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }

/* Æfingaverkstæði: alltaf sýnilegt að ekkert hér er raunverulegt */
.msg.practice { background: #FFF1DC; color: #8A4B00; font-weight: 600; margin-bottom: 4px; }

/* Spjaldtölva: Lesið-takki fylgir textanum, varahlutalínur halda tökkunum saman, haus brotnar ekki í mjóa súlu */
.phone-notes li .btn { position: static; margin-left: 8px; vertical-align: middle; }
.ti-parts li > span:first-child { flex: 1 1 200px; min-width: 0; }
.ti-parts li > .grow { display: none; }
.thead > div[style*="flex:1"] { min-width: 220px; }
@media (max-width: 900px) {
  .side .langsw { flex: 0 0 auto; padding: 0 0 0 8px !important; }
  .side .tenantsw select { max-width: 180px; }
}

/* Finna verkefni á spjaldtölvu */
.findwork { margin-top: 6px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.findwork.big { background: #fff; border: 1px dashed var(--line); border-radius: 14px; padding: 18px; align-items: stretch; text-align: center; }
.findwork.big p { margin: 0; font-weight: 600; }
.findwork.open { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; align-items: stretch; }
.fw-h { display: flex; align-items: center; justify-content: space-between; } .fw-h h2 { margin: 0; font-size: 18px; }
.fw-item { border: 1px solid var(--line2); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.fw-why { display: flex; gap: 6px; flex-wrap: wrap; }

/* Leit að verki á spjaldtölvu */
.jsearch { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; align-items: stretch; }
.jsearch .jlist { display: flex; flex-direction: column; }
.jsearch .rowlink { padding: 10px 4px; }
/* Kílómetragluggi */
.pop[data-form=km] { padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.pop[data-form=km] label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }

/* Sölureikningur: uppsetning til hliðar, reikningur eins og hann prentast */
.inv-layout { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.inv-side { flex: 0 1 340px; }
.inv-doc { flex: 1 1 560px; min-width: 0; }
.inv-doc .paper { max-width: none; }

/* Móttaka bíls */
.ck-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.fuel { display: flex; gap: 4px; flex-wrap: wrap; }
.fuel button { min-width: 48px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 8px; font: 600 14px Inter, sans-serif; cursor: pointer; }
.fuel button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.ck-spots { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.ck-spot { justify-content: center; min-height: 54px; }
.ck-dmg { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ck-dmg select { width: auto; }
.sigpad { width: 100%; height: 180px; border: 2px dashed var(--line); border-radius: 10px; background: #fff; touch-action: none; cursor: crosshair; }
.sigdone { display: flex; gap: 10px; align-items: center; } .sigdone img { max-height: 90px; border: 1px solid var(--line2); border-radius: 8px; background: #fff; }
.thumbs .thumb img, a.thumb img { width: 88px; height: 66px; object-fit: cover; border-radius: 6px; }
/* Skýrslur */
.rep-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.rep-tile { padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; } .rep-tile small { color: var(--muted); } .rep-tile b { font-size: 22px; }
.rep-bars { display: flex; align-items: flex-end; gap: 4px; height: 200px; padding: 12px 16px; }
.rep-bars .rb { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.rep-bars .rb i { width: 100%; max-width: 28px; background: var(--red); border-radius: 4px 4px 0 0; display: block; }
.rep-bars .rb small { font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.hbar { height: 8px; background: var(--line2); border-radius: 4px; overflow: hidden; margin-top: 4px; } .hbar i { display: block; height: 100%; background: var(--red); }

/* Bíll og viðskiptavinur efst á verkbeiðni */
.ovgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; }
.ovcard .ovtop { display: flex; gap: 14px; align-items: center; padding: 14px 18px 6px; }
.ovcard .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.ovcontact { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; margin-top: 2px; } .ovcontact a { color: var(--ink); text-decoration: none; font-weight: 600; }
.ovchips { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px 18px; }
.ovboxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 18px 16px; }
.ovbox { background: var(--bg, #F6F6F3); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; min-width: 0; }
.ovbox b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ovbox small { color: var(--muted); font-size: 12px; }
.ovbox.warn { background: var(--amber-bg); border-color: #F0D6A8; } .ovbox.warn b { color: var(--amber-ink); }
.ovdecl { padding: 0 18px 14px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; } .ovdecl a { text-decoration: none; }
.ovmore { border-top: 1px solid var(--line2); padding: 6px 18px 16px; } .ovmore h3 { font-size: 14px; margin: 12px 0 6px; }
.ovdl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; font-size: 13.5px; } .ovdl dt { color: var(--muted); } .ovdl dd { margin: 0; }
.ovhist { width: 100%; font-size: 13px; } .ovhist td, .ovhist th { padding: 5px 6px; }
@media (max-width: 900px) { .ovgrid { grid-template-columns: 1fr; } .ovboxes { grid-template-columns: repeat(2, 1fr); } }
.ovplate { font-size: 17px; padding: 2px 8px; }

/* ---------- Samskipti ---------- */
.cv-layout { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.cv-list .list { max-height: calc(100vh - 220px); overflow: auto; }
.cv-row { flex-direction: column; align-items: stretch !important; gap: 4px; }
.cv-row.on { background: var(--bg); box-shadow: inset 3px 0 0 var(--red); }
.cv-prev { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; }
.cv-none { padding: 40px 20px; text-align: center; }
.cv-thread { display: flex; flex-direction: column; }
.cv-back { display: none; }
.cv-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 16px; padding: 12px 18px; border-bottom: 1px solid var(--line2); background: #FAFAF8; font-size: 13px; }
.cv-links > div { display: flex; flex-direction: column; gap: 3px; }
.cv-msgs { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; max-height: calc(100vh - 470px); min-height: 160px; overflow: auto; }
.cv-msg { display: flex; flex-direction: column; max-width: 78%; gap: 3px; }
.cv-msg.in { align-self: flex-start; }
.cv-msg.out { align-self: flex-end; align-items: flex-end; }
.cv-msg.note { align-self: center; max-width: 90%; }
.cv-bub { padding: 9px 12px; border-radius: 12px; background: var(--bg); white-space: normal; overflow-wrap: anywhere; font-size: 13.5px; }
.cv-msg.out .cv-bub { background: #1D1F24; color: #fff; border-bottom-right-radius: 4px; }
.cv-msg.in .cv-bub { border-bottom-left-radius: 4px; }
.cv-msg.note .cv-bub { background: var(--amber-bg); color: var(--amber-ink); border: 1px dashed #E7C98F; }
.cv-meta { font-size: 11.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cv-comp { border-top: 1px solid var(--line2); padding: 12px 18px 16px; display: flex; flex-direction: column; gap: 8px; }
.cv-comp textarea { width: 100%; box-sizing: border-box; resize: vertical; font: inherit; }
.cv-ai { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.cv-hook { font-size: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; overflow-wrap: anywhere; flex: 1 1 300px; }
@media (max-width: 900px) {
  .cv-layout { grid-template-columns: minmax(0, 1fr); }
  .cv-layout.has-one .cv-list { display: none; }
  .cv-back { display: inline-flex; }
  .cv-msgs { max-height: none; }
  .cv-msg { max-width: 92%; }
}
.cv-plateinp { text-transform: uppercase; font-family: 'JetBrains Mono', ui-monospace, monospace; } .cv-plateinp::placeholder { text-transform: none; font-family: Inter, system-ui, sans-serif; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; } .tbl th, .tbl td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line2); }

/* ---------- Staðan ---------- */
.st-sum { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 22px; overflow: hidden; }
.st-s { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-left: 1px solid var(--line2); }
.st-s:first-child { border-left: 0; }
.st-sn { font-size: 28px; font-weight: 750; line-height: 1.1; font-variant-numeric: tabular-nums; }
.st-sl { font-size: 12.5px; color: var(--muted); }
.st-s-ok .st-sn { color: #2E7D4F; }
.st-s-warn { background: var(--amber-bg); } .st-s-warn .st-sn { color: var(--amber-ink); }
.st-s-alert { background: var(--red-bg); } .st-s-alert .st-sn { color: var(--red-ink); }
.st-hz { white-space: nowrap; }
.st-sec { margin-bottom: 24px; }
.st-g { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 9px; }
.st-gc { background: var(--red); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 11.5px; letter-spacing: 0; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.st-tile { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 8px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font: inherit; color: var(--ink); min-height: 112px; transition: border-color .12s, box-shadow .12s, transform .12s; }
.st-tile:hover { border-color: #C9CAC4; box-shadow: 0 2px 8px rgba(20, 22, 28, .06); transform: translateY(-1px); }
.st-tile.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.st-top { display: flex; align-items: center; gap: 8px; }
.st-i { width: 26px; height: 26px; flex: none; padding: 5px; border-radius: 8px; background: var(--bg); stroke: var(--muted); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; box-sizing: border-box; }
.st-l { font-size: 13px; font-weight: 600; line-height: 1.25; }
.st-mid { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.st-n { font-size: 32px; font-weight: 750; line-height: 1; font-variant-numeric: tabular-nums; }
.st-a { font-size: 12px; color: var(--muted); }
.st-pl { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.st-p { font: 600 10.5px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .04em; border: 1px solid #C9CAC4; border-radius: 4px; padding: 3px 5px; background: #fff; }
.st-more { font-size: 11.5px; color: var(--muted); }
.st-zero { min-height: 0; background: transparent; border-style: dashed; color: var(--muted); }
.st-zero .st-mid { margin-top: 0; }
.st-zero .st-n { font-size: 18px; color: #B4B5AF; }
.st-zero .st-i { background: transparent; stroke: #B4B5AF; }
.st-ok .st-i { background: #E3F1E8; stroke: #2E7D4F; }
.st-warn { border-color: #EBCB8E; background: linear-gradient(180deg, #FFF8EC, #fff 70%); }
.st-warn .st-i { background: var(--amber-bg); stroke: var(--amber-ink); }
.st-warn .st-a { color: var(--amber-ink); font-weight: 600; }
.st-alert { border-color: #F1A9B2; background: linear-gradient(180deg, #FFF1F2, #fff 70%); }
.st-alert .st-i { background: var(--red-bg); stroke: var(--red-ink); }
.st-alert .st-n, .st-alert .st-a { color: var(--red-ink); }
.st-alert .st-a { font-weight: 600; }
.st-list { margin-top: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px 8px; }
.st-lh { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 10px 0 8px; border-bottom: 1px solid var(--line2); font-size: 13px; }
.st-row { display: flex; gap: 10px; align-items: center; padding: 8px 6px; margin: 0 -6px; border-bottom: 1px solid var(--line2); border-radius: 6px; color: inherit; text-decoration: none; font-size: 13.5px; }
.st-row:last-child { border-bottom: 0; }
.st-row:hover { background: var(--bg); color: inherit; }
.st-lab { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-age { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.st-age.red { color: var(--red-ink); font-weight: 600; }
@media (max-width: 900px) {
  .st-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-s { border-left: 0; border-top: 1px solid var(--line2); }
  .st-s:nth-child(-n+2) { border-top: 0; }
  .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Varahlutafyrirspurnir (#/varahlutir) ---------- */
.pr-row { align-items: center; gap: 10px; }
.pr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pr-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-sups { display: flex; flex-wrap: wrap; gap: 4px; }
.pr-sup { font-size: 11.5px; padding: 1px 7px; border-radius: 6px; background: var(--grey-bg); color: var(--grey-ink); }
.pr-sup.ok { background: var(--blue-bg); color: var(--blue-ink); }
.pr-sup.ord { background: var(--green-bg); color: var(--green-ink); }
.pr-sup.bad { background: var(--red-bg); color: var(--red-ink); }
.pr-count { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--muted); min-width: 34px; text-align: right; }
.pr-lines td { vertical-align: top; }
.pr-lines .inp { width: 100%; }
.pr-gh { margin: 4px 0 8px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pr-supgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.pr-supbox { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--card, #fff); }
.pr-supbox span { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.pr-supbox small { color: var(--muted); font-size: 12px; font-weight: 400; }
.pr-supbox small.red { color: var(--red-ink); }
.pr-supbox.on { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
.pr-supbox.match { background: var(--green-bg); }
.pr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 16px; }
.pr-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--card, #fff); display: flex; flex-direction: column; gap: 6px; }
.pr-card p { margin: 0; font-size: 13.5px; }
.pr-ch { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.pr-ca { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.pr-scroll { overflow-x: auto; }
.pr-cmp th, .pr-cmp td { vertical-align: top; min-width: 170px; }
.pr-cmp tbody th { text-align: left; font-weight: 400; min-width: 220px; }
.pr-off { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; padding: 8px 10px; margin: 0 0 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--card, #fff); font: inherit; color: inherit; cursor: pointer; }
.pr-off:hover:not([disabled]) { border-color: var(--ink); }
.pr-off[disabled] { cursor: default; opacity: .75; }
.pr-off small { color: var(--muted); font-size: 12px; }
.pr-op { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 15px; }
.pr-off.best { border-color: var(--green-ink); }
.pr-best { position: absolute; top: 6px; right: 8px; font-size: 10.5px; font-weight: 700; color: var(--green-ink); }
.pr-off.sel { border-color: var(--red); box-shadow: 0 0 0 2px var(--red) inset; background: var(--red-bg); }
.pr-off.na { cursor: default; color: var(--muted); background: var(--grey-bg); border-style: dashed; }
.pr-order .pr-oi { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.pr-msgs { display: flex; flex-direction: column; }
.pr-msg { border-top: 1px solid var(--line2); padding: 8px 16px; }
.pr-msg summary { display: flex; gap: 8px; align-items: center; cursor: pointer; flex-wrap: wrap; }
.pr-msg pre { white-space: pre-wrap; font-family: inherit; font-size: 13px; margin: 8px 0 0; color: var(--ink); }
@media (max-width: 700px) { .pr-row { flex-wrap: wrap; } .pr-main { flex-basis: 100%; order: 5; } }
.pr-quick { border-top: 1px solid var(--line2); padding: 12px 18px; display: flex; flex-direction: column; gap: 8px; }
.pr-qh { display: flex; align-items: baseline; gap: 10px; }
.pr-qrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pr-ql { font-size: 12px; color: var(--muted); margin-right: 4px; }
.pr-qb, .pr-qcat { font: inherit; font-size: 13px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.pr-qb:hover, .pr-qcat:hover { border-color: var(--ink); }
.pr-qb.on { background: var(--green-bg); border-color: var(--green-ink); color: var(--green-ink); }
.pr-qcat { background: var(--grey-bg); font-weight: 600; }
.pr-qcat.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pr-rel { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0 18px 12px; font-size: 13px; }
.pr-need { border-color: var(--red) !important; background: var(--red-bg); }
.pr-pics { display: flex; flex-wrap: wrap; gap: 8px; }
.pr-pic { position: relative; width: 96px; height: 72px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--grey-bg); cursor: pointer; opacity: .55; }
.pr-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pr-pic.on { border-color: var(--red); opacity: 1; }
.pr-pic .btn { position: absolute; top: 2px; right: 2px; padding: 0 6px; background: rgba(255,255,255,.9); }

/* ---------- Að utan (#/erlent) ---------- */
.er-row { align-items: center; gap: 10px; }
.er-name { font-size: 20px; font-weight: 700; max-width: 360px; }
.er-opts { flex-direction: row !important; flex-wrap: wrap; align-items: flex-end; gap: 12px !important; }
.er-opts label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.er-tbl th, .er-tbl td { white-space: nowrap; vertical-align: top; }
.er-tbl .inp.mini { padding: 4px 6px; font-size: 13px; }
.er-tbl td.n .inp { text-align: right; }
.er-desc { font-size: 11.5px; white-space: normal; max-width: 220px; }
.er-recv td { background: var(--green-bg); }
.er-cost { font: inherit; font-weight: 700; background: none; border: 0; border-bottom: 1px dashed var(--muted); padding: 0; cursor: pointer; color: inherit; }
.er-bd td { background: var(--grey-bg); }
.er-bdgrid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 24px; max-width: 560px; font-size: 13px; }
.er-bdgrid .bdrow { display: contents; }
.er-bdgrid .bdrow span { color: var(--muted); }
.er-bdgrid .bdrow.sub b, .er-bdgrid .bdrow.sub span { color: var(--ink); font-weight: 700; }
.er-bdgrid .bdrow.neg b { color: var(--red-ink); }
.er-bdgrid .bdrow.ok b { color: var(--green-ink); }
.pr-abroad { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; font-weight: 400; }
.plate.sm { font-size: 12px; padding: 1px 6px; }

/* Hleðsla: rauð rönd efst, bið-merki á hnappnum sem var ýtt á (app.js busyStart) */
#hledsla { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9999; overflow: hidden; background: rgba(239,33,52,.15); pointer-events: none; }
#hledsla::before { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; background: #EF2134; animation: hledsla 1s ease-in-out infinite; }
@keyframes hledsla { from { left: -40%; } to { left: 100%; } }
body.hledur, body.hledur a, body.hledur button { cursor: progress; }
[aria-busy="true"].btn, button[aria-busy="true"] { opacity: .75; position: relative; }
[aria-busy="true"].btn::after, button[aria-busy="true"]::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 8px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: snuningur .7s linear infinite; }
@keyframes snuningur { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #hledsla::before { animation: none; left: 0; width: 100%; opacity: .6; } [aria-busy="true"].btn::after, button[aria-busy="true"]::after { animation: none; } }

/* Varahlutir: tafla (kanban) */
.pr-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; }
.pr-bar .tabs { margin: 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--card); }
.seg a { padding: 7px 14px; font-weight: 600; color: var(--muted); text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.seg a + a { border-left: 1px solid var(--line); }
.seg a.on { background: var(--ink); color: #fff; }
.kb { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.kb-col { background: var(--line2); border-radius: 10px; padding: 10px; min-height: 160px; scroll-snap-align: start; }
.kb-h { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin: 0; text-transform: uppercase; letter-spacing: .03em; }
.kb-hint { margin: 2px 0 10px; font-size: 12px; color: var(--muted); }
.kb-col { border-top: 4px solid var(--line); }
.kb-waiting { border-top-color: var(--amber); } .kb-answered { border-top-color: var(--blue); } .kb-chosen { border-top-color: var(--red); } .kb-ordered { border-top-color: var(--side2); } .kb-arrived { border-top-color: var(--green); }
.kb-cards { display: flex; flex-direction: column; gap: 8px; }
.kb-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px; color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.kb-card:hover, .kb-card:focus-visible { border-color: var(--ink); }
.kb-card.urg { border-left: 4px solid var(--red); }
.kb-card.old .kb-top small { color: var(--red-ink); font-weight: 600; }
.kb-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kb-top .grow { flex: 1; }
.kb-car { font-size: 12px; margin-top: 4px; }
.kb-lines { margin: 6px 0; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kb-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.kb-empty { font-size: 13px; color: var(--muted); padding: 10px 2px; }
@media (max-width: 900px) { .kb { grid-template-columns: repeat(5, 78vw); } }

/* Dregið á tímalínu: útlínur sýna hvar verkið lendir, vistað verk sést strax */
.tlghost.drop { border-color: var(--ink); background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.12); color: var(--ink); transition: left .06s linear; }
.blk.saving { opacity: .65; outline: 2px dashed var(--ink); outline-offset: -2px; }
.ucard.dragsrc { opacity: .45; }
@media (prefers-reduced-motion: reduce) { .tlghost.drop { transition: none; } }

/* Næsti vinnudagur (dregið út fyrir hægri brún), klippa og glugginn „Breyta tíma“ */
.tlrow .tlnext { position: absolute; left: 100%; top: 0; bottom: 0; width: 16px; display: flex; align-items: center; justify-content: center; color: #6B4FBB; font-weight: 800; opacity: 0; transition: opacity .15s; cursor: default; }
.tl:hover .tlnext { opacity: .45; }
.tlghost.next { left: auto; right: 0; width: auto; min-width: 42%; max-width: 100%; justify-content: flex-end; gap: 4px; border-color: #6B4FBB; background: rgba(107,79,187,.16); color: #4B3590; }
.tlghost.next .nxa { font-size: 15px; line-height: 1; }
.blk .cutt, .blk .contt { font-size: 10px; font-weight: 800; border-radius: 4px; padding: 0 4px; margin-right: 4px; letter-spacing: .02em; background: rgba(255,255,255,.85); color: var(--ink); }
.blk.cut { background-image: repeating-linear-gradient(135deg, transparent 0 8px, rgba(255,255,255,.18) 8px 12px); }
.blk.cont { box-shadow: inset 3px 0 0 #6B4FBB; }
.cutsum { display: flex; flex-direction: column; gap: 2px; font-size: 14px; padding: 4px 0 6px; }
.cutwhere { display: flex; flex-direction: column; gap: 6px; }
.form .cutopt { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; text-align: left; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; cursor: pointer; flex-direction: row; font-size: 14px; font-weight: 600; color: var(--ink); }
.form .cutopt input[type=radio] { margin: 0; flex: 0 0 auto; width: auto; }
.form .cutopt.on { border-color: #6B4FBB; box-shadow: 0 0 0 1px #6B4FBB; }
.cutopt input[type=radio] { accent-color: #6B4FBB; }
.cutdate { flex-basis: 100%; padding-left: 24px; display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cutdate .inp { min-width: 0; }

/* Óráðstafað sem efsta röð tímalínunnar (breiður skjár) */
.tluname { align-self: start; padding: 6px 8px 0 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.tluname .tln { font-weight: 700; }
.tlu { position: relative; border-radius: 6px; background: #FFF8EC; border: 1px dashed #E2C58E; user-select: none; touch-action: none; margin-bottom: 4px; min-height: 46px; }
.tlu .grid { position: absolute; inset: 0; display: flex; pointer-events: none; } .tlu .grid span { flex: 1; border-right: 1px solid #F1E5CC; } .tlu .grid span.hr { border-right-color: #E6D3AC; }
.tlu .tlnext { position: absolute; left: 100%; top: 0; bottom: 0; width: 16px; display: flex; align-items: center; justify-content: center; color: #6B4FBB; font-weight: 800; opacity: 0; transition: opacity .15s; }
.tlu .ublk { height: 38px; top: 3px; bottom: auto; background: #fff; color: var(--ink); border: 1px solid #D9C59B; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.tlu .ublk:hover { border-color: #B99A5B; color: var(--ink); }
.tlu .ublk.uweb { box-shadow: inset 3px 0 0 var(--blue); }
.tlu .ublk .os { background: var(--grey-bg); color: var(--grey-ink); }
.tlu .ublk .os.on { background: var(--green-ink); color: #fff; }
.tlu .ublk .ubadge { font-size: 10px; font-weight: 800; border-radius: 4px; padding: 0 4px; margin-left: 4px; background: var(--blue); color: #fff; }
.tlu .ublk .ubadge.urg { background: var(--red); }
.tlu .ublk.dragging { opacity: .35; }
.tlu .tlghost { top: 3px; bottom: auto; height: 38px; }
.uarrbox { margin-bottom: 14px; padding: 4px 0; }
.gpick .gpl, [data-editdlg] .gpl { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
[data-editdlg] .gpl legend { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.form .gpi { display: flex; flex-direction: row; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; cursor: pointer; font-size: 14px; color: var(--ink); }
.form .gpi input { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; accent-color: var(--red); }
.ti-i.notmine { opacity: .55; filter: grayscale(.6); }
.ti-i .nm { display: block; font-size: 11.5px; font-weight: 700; color: var(--grey-ink); }
.yourtime { font-weight: 700; }

/* ---------- Í bið (Verk dagsins) ---------- */
.ibid { margin-top: 16px; }
.ibcols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 12px 16px 16px; }
.ibcol { background: var(--bg, #F6F6F7); border-radius: 10px; padding: 10px; min-width: 0; }
.ibcol h3 { margin: 0 0 8px; font-size: 14px; display: flex; gap: 6px; align-items: baseline; }
.ibcol[data-ibcol=approval] h3 { color: var(--blue-ink); } .ibcol[data-ibcol=parts] h3 { color: var(--amber-ink); } .ibcol[data-ibcol=ready] h3 { color: var(--green-ink, #1D6B3A); }
.ibcol .note { font-size: 12px; margin: -4px 0 8px; }
.iblist { display: flex; flex-direction: column; gap: 8px; }
.ibnone { font-size: 13px; padding: 4px 2px; }
.ibcard { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 10px; padding: 9px 11px; text-decoration: none; color: var(--ink); }
.ibcard:hover { border-color: #C9CBD1; color: var(--ink); }
.ibcol[data-ibcol=approval] .ibcard { border-left-color: var(--blue); }
.ibcol[data-ibcol=parts] .ibcard { border-left-color: var(--amber); }
.ibcard.ready { border-left-color: var(--green); cursor: grab; touch-action: pan-y; user-select: none; }
.ibcard.ready.dragging { opacity: .45; }
.ibcard.onsite { background: #FFFBF3; }
.ibtop { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ibtop .car { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ibsite { font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: #EEF0F3; color: #4A4D55; white-space: nowrap; }
.ibsite.on { background: var(--amber-bg); color: var(--amber-ink); border: 1px solid #F0D6A8; }
.ibg { list-style: none; margin: 0; padding: 0; font-size: 13px; display: flex; flex-direction: column; gap: 3px; }
.ibg li { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ibparts { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ibmeta { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
@media (max-width: 1100px) { .ibcols { grid-template-columns: 1fr 1fr; } .ibcol[data-ibcol=ready] { grid-column: 1 / -1; } }
@media (max-width: 700px) { .ibcols { grid-template-columns: 1fr; padding: 10px; } }
/* Merki á tíma á tímalínu: bíður samþykkis / varahluta */
.nspop .mh { font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.wbadge { display: inline-block; margin-right: 3px; font-size: 10px; font-weight: 700; line-height: 1; padding: 2px 4px; border-radius: 4px; background: rgba(255,255,255,.85); color: #222; }
.wbadge.appr { color: var(--blue-ink); } .wbadge.parts { color: var(--amber-ink); }
/* Næsta skref */
.nspop { width: min(640px, 100%); max-height: calc(100vh - 40px); overflow: auto; }
.nsfound { background: #F6F6F7; border-radius: 8px; padding: 8px 10px; font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.nsg .pre { white-space: pre-line; }
.nsrows { display: flex; flex-direction: column; gap: 6px; }
.nsrow { display: flex; gap: 6px; align-items: center; } .nsrow .inp:first-child { flex: 1; min-width: 0; } .nsrow .nsh { width: 80px; flex: 0 0 80px; }
.nscar { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px; } .nscar legend { font-weight: 600; font-size: 13px; padding: 0; margin-bottom: 4px; }
.nscar label { flex-direction: row; gap: 6px; align-items: center; }
/* Mæting starfsmanna */
.att-panel { border: 1px solid var(--line, #E2E0DA); border-radius: 12px; padding: 12px 14px; background: #fff; display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.att-panel.att-in { border-color: #9BD3A8; background: #F2FBF4; }
.att-panel.att-break { border-color: #F0D6A8; background: #FFF8EC; }
.att-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.att-st { color: var(--muted); }
.att-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.att-nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.att-tbl td.num, .att-tbl th.num { text-align: right; white-space: nowrap; }
.att-tbl tr.att-forgot > td { background: var(--amber-bg, #FFF4DD); }
.att-edit { display: flex; flex-direction: column; gap: 8px; padding: 6px 0; }
.att-ef { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.att-ef label { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.att-ef label select + select { margin-top: 4px; }

/* Æfingadagur og tímahermir (app/sim.js, aðeins æfingaverkstæði) */
.simbar { background: #FFF8EC; border: 1px solid #F1D9AE; border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; color: #5C3B00; }
.simbar summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; }
.simbar .simclock { font-variant-numeric: tabular-nums; }
.simbar .simclock.on b { color: #B3261E; }
.simbar .simrow { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 8px; }
.simbar .simrow label { display: inline-flex; align-items: center; gap: 6px; }
.simbar .simlbl { min-width: 110px; }
.simbar small { display: block; margin-top: 6px; }
/* Inni núna á #/maeting (stimpilklukka) */
.att-now .att-now-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px 14px; }
.att-np { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line, #E2E0DA); border-radius: 999px; padding: 6px 12px; background: #fff; cursor: pointer; font: inherit; min-height: 40px; }
.att-np small { color: var(--muted, #6B6A64); }
.att-np .att-dot { width: 10px; height: 10px; border-radius: 50%; background: #B8B6AF; flex: none; }
.att-np-in { border-color: #9BD3A8; background: #F2FBF4; } .att-np-in .att-dot { background: #2F9E57; }
.att-np-break { border-color: #F0D6A8; background: #FFF8EC; } .att-np-break .att-dot { background: #E3A21A; }
.att-np-forgot { border-color: #F0D6A8; } .att-np-forgot .att-dot { background: #E3A21A; }
.att-tbl tr.att-focus > td { outline: 2px solid #2F9E57; outline-offset: -2px; }

/* --- A --- Verkbeiðnalisti (#/verkbeidnir, app/joblist.js) */
.jl { display: flex; flex-direction: column; gap: 12px; --teal-bg: #DFF3EF; --teal-ink: #11655A; --violet-bg: #EEE8FB; --violet-ink: #5B3A9E; }
.jl .mono, .jl-vin { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.jl .muted { color: var(--muted); }
.jl-head { gap: 14px; }
.jl-search { flex: 0 1 400px; min-width: 240px; }
.jl-search svg { color: var(--muted); flex: none; }
.jl-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(29,31,36,.08); }
.jl kbd { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10.5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; background: #fff; color: var(--muted); line-height: 16px; }
.jl-qx { border: 0; background: var(--grey-bg); color: var(--grey-ink); width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.jl-qx:hover { background: #E0E0DB; }

/* Sýnir */
.jl-views { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-top: 2px; }
.jl-views::-webkit-scrollbar { display: none; }
.jl-views a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px 10px; font-weight: 600; font-size: 13.5px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; border-radius: 6px 6px 0 0; }
.jl-views a:hover { color: var(--ink); background: rgba(0,0,0,.03); }
.jl-views a.on { color: var(--ink); border-color: var(--red); }
.jl-views a small { background: var(--grey-bg); border-radius: 9px; padding: 0 7px; font-size: 11.5px; line-height: 18px; color: var(--grey-ink); font-weight: 700; font-variant-numeric: tabular-nums; min-width: 22px; text-align: center; }
.jl-views a.hot small { background: var(--amber-bg); color: var(--amber-ink); }
.jl-views a.ok small { background: var(--green-bg); color: var(--green-ink); }
.jl-views a.info small { background: var(--blue-bg); color: var(--blue-ink); }
.jl-views a.on small { background: var(--ink); color: #fff; }
.jl-vx { border: 0; background: transparent; color: var(--muted); width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; margin-left: -2px; }
.jl-vx:hover { background: var(--grey-bg); color: var(--ink); }

/* Síur */
.jl-fbar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.jl-fw { position: relative; display: inline-flex; }
.jl-fchip { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px 0 12px; border-radius: 16px; border: 1px solid var(--line); background: #fff; font-size: 12.8px; font-weight: 500; white-space: nowrap; cursor: pointer; color: var(--ink); }
.jl-fchip:hover { border-color: #B9BAB4; }
.jl-fchip b { font-weight: 600; }
.jl-fchip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.jl-fchip .jl-car { display: inline-flex; opacity: .55; }
.jl-fchip.jl-save { padding: 0 12px 0 9px; color: var(--muted); border-style: dashed; }
.jl-fchip.jl-save:hover { color: var(--ink); }
.jl-clear { border: 0; background: none; color: var(--red-d); font-weight: 600; font-size: 12.8px; cursor: pointer; padding: 4px 6px; }
.jl-clear:hover { text-decoration: underline; }
.jl-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 45; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.14); min-width: 210px; max-height: 60vh; overflow: auto; padding: 5px; display: flex; flex-direction: column; }
.jl-right .jl-menu { left: auto; right: 0; }
.jl-menu button { display: flex; align-items: center; gap: 8px; text-align: left; border: 0; background: none; padding: 7px 10px 7px 6px; border-radius: 6px; cursor: pointer; font-size: 13.5px; white-space: nowrap; }
.jl-menu button:hover, .jl-menu button:focus { background: var(--bg); outline: 0; }
.jl-menu button.on { font-weight: 600; }
.jl-menu hr { border: 0; border-top: 1px solid var(--line2); margin: 4px 0; width: 100%; }
.jl-ck { width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; color: var(--red-d); flex: none; }
.jl-savebox { padding: 12px; width: 280px; gap: 6px; }
.jl-savebox label { font-size: 12px; font-weight: 600; color: var(--muted); }
.jl-savebox p { margin: 2px 0 6px; font-size: 12px; white-space: normal; line-height: 1.4; }
.jl-savebox .btn { padding: 0 12px; }
.jl-savebox .jl-row2 { justify-content: flex-end; }
.jl-row2 { display: flex; gap: 6px; flex-wrap: wrap; }
.jl-only-narrow { display: none; }

/* Listi og spjald */
.jl-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.jl-list { overflow: hidden; min-width: 0; }
.jl-tbl { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.jl-tbl th { background: #FAFAF8; text-transform: none; letter-spacing: 0; text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.jl-tbl th button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 4px; width: 100%; padding: 10px 9px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; }
.jl-tbl th.n button { justify-content: flex-end; }
.jl-tbl th button:hover, .jl-tbl th.sorted button { color: var(--ink); }
.jl-tbl th button:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.jl-tbl th:first-child button, .jl-tbl td:first-child { padding-left: 16px; }
.jl-tbl th:last-child button, .jl-tbl td:last-child { padding-right: 16px; }
.jl-ar { font-size: 11px; }
.jl-tbl td { padding: 8px 9px; border-bottom: 1px solid var(--line2); vertical-align: top; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 20px; }
.jl-tbl td.n { text-align: right; font-variant-numeric: tabular-nums; }
.jl-tbl tbody tr { cursor: default; }
.jl-tbl tbody tr:hover td { background: #FAFAF7; }
.jl-tbl tbody tr.sel td { background: #FFF4F5; }
.jl-tbl tbody tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.jl-tbl tbody tr:last-child td { border-bottom: 0; }
.jl-tbl tr.closed td { color: var(--muted); }
.jl-nr { color: var(--red-d); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.jl-nr:hover, a.jl-cn:hover { text-decoration: underline; }
.jl a.plate { color: var(--ink); text-decoration: none; display: inline-block; line-height: 17px; font-size: 12.5px; }
.jl a.plate:hover { background: var(--ink); color: #fff; }
.jl-l2, .jl-sub { display: block; color: var(--muted); font-size: 12px; line-height: 17px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 17px; }
.jl-cn { font-weight: 600; color: var(--ink); text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; }
.jl-cut { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.jl-d { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .75; flex: none; }
.jl .chip { line-height: 16px; }
.jl .c-late { background: var(--red); color: #fff; } .jl .c-late .jl-d { opacity: 1; }
.jl .c-teal { background: var(--teal-bg); color: var(--teal-ink); }
.jl .c-vio { background: var(--violet-bg); color: var(--violet-ink); }
.jl-also { font-weight: 600; }
.jl-a-appr { color: var(--blue-ink); } .jl-a-part { color: var(--amber-ink); } .jl-a-teal { color: var(--teal-ink); }
.jl-flags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 3px; }
.jl-site { display: inline-flex; vertical-align: -3px; color: #A9A9A3; }
.jl-site.on { color: var(--green); }
.jl-key { font: 700 11.5px/18px 'JetBrains Mono', ui-monospace, monospace; background: var(--grey-bg); border-radius: 4px; padding: 0 5px; margin-left: 6px; display: inline-block; vertical-align: 1px; }
.jl-age.zero { color: var(--muted); }
.jl-age.warn { color: var(--amber-ink); font-weight: 700; } .jl-age.alert { color: var(--red-ink); font-weight: 700; }
.jl-none { color: var(--muted); font-size: 12px; }
.jl-vin { font-size: 11.5px; font-weight: 600; letter-spacing: .02em; }
.jl-foot { display: flex; align-items: center; gap: 14px; padding: 10px 16px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line2); flex-wrap: wrap; }
.jl-pager { display: inline-flex; align-items: center; gap: 8px; }
.jl-size { display: inline-flex; align-items: center; gap: 6px; }
.jl-keys kbd { margin: 0 1px; }
.jl-empty { padding: 44px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.jl-empty b { font-size: 15px; } .jl-empty p { margin: 0 0 8px; max-width: 460px; }

.jl-info { overflow: auto; }
.jl-ih { padding: 14px 16px 12px; border-bottom: 1px solid var(--line2); }
.jl-r1 { display: flex; align-items: center; gap: 10px; }
.jl-r1 .plate.lg { font-size: 19px; line-height: 26px; padding: 2px 10px; }
.jl-jobno { font-size: 12.5px; }
.jl-r1 .btn.icon { width: 30px; }
.jl-ih h2 { margin: 9px 0 0; font-size: 15.5px; line-height: 1.3; }
.jl-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.jl-next { margin: 12px 16px 2px; background: var(--grey-bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 11px; }
.jl-next-part { background: var(--amber-bg); border-color: #F1D29C; } .jl-next-part .jl-lbl { color: var(--amber-ink); }
.jl-next-late, .jl-next-work { background: var(--red-bg); border-color: #F5C2C9; } .jl-next-late .jl-lbl, .jl-next-work .jl-lbl { color: var(--red-ink); }
.jl-next-appr { background: var(--blue-bg); border-color: #C5D6F2; } .jl-next-appr .jl-lbl { color: var(--blue-ink); }
.jl-next-done { background: var(--green-bg); border-color: #BFE0C7; } .jl-next-done .jl-lbl { color: var(--green-ink); }
.jl-next-teal { background: var(--teal-bg); border-color: #B5E0D8; } .jl-next-teal .jl-lbl { color: var(--teal-ink); }
.jl-lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--grey-ink); }
.jl-next p { margin: 3px 0 0; font-size: 13px; line-height: 1.45; }
.jl-next .jl-row2 { margin-top: 9px; }
.jl-sec { padding: 12px 16px; border-bottom: 1px solid var(--line2); }
.jl-sec h3 { margin: 0 0 7px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.jl-sec h3 span { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 11.5px; }
.jl-sec h4 { margin: 10px 0 3px; font-size: 12px; color: var(--muted); font-weight: 600; }
.jl-sec dl { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 4px 10px; margin: 0; font-size: 12.8px; }
.jl-sec dt { color: var(--muted); } .jl-sec dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.jl-sec dd a { text-decoration: none; font-weight: 600; } .jl-sec dd a:hover { text-decoration: underline; }
.jl-dl2 { margin-top: 10px !important; align-items: center; }
.jl-copy { border: 0; background: none; padding: 0; font-size: 11.5px; color: var(--red-d); font-weight: 600; margin-left: 8px; cursor: pointer; }
.jl-copy:hover { text-decoration: underline; }
.jl-desc { margin: 0 0 8px; font-size: 13px; }
.jl-nodata { margin: 0; font-size: 12.5px; }
.jl-pl { display: flex; gap: 8px; align-items: flex-start; font-size: 12.8px; padding: 3px 0; }
.jl-pl .jl-t { flex: 1; min-width: 0; } .jl-pl.sm { font-size: 12.3px; }
.jl-advsel { max-width: 100%; height: 28px; }
.jl-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 12px 16px 2px; }
.jl-tile { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.jl-tile b { display: block; font-size: 17px; line-height: 1.2; font-variant-numeric: tabular-nums; } .jl-tile span { font-size: 11px; color: var(--muted); line-height: 1.25; display: block; }
.jl-tile.warn { border-color: #F1D29C; background: #FFFBF2; }
.jl-act { display: flex; gap: 6px; padding: 12px 16px 16px; flex-wrap: wrap; }
.jl-act .btn { height: 36px; }
.jl-skel { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.jl-skel i { display: block; height: 12px; border-radius: 6px; background: var(--grey-bg); } .jl-skel i:nth-child(2) { width: 70%; } .jl-skel i:nth-child(4) { width: 45%; }

/* Breiður skjár: spjaldið við hlið listans. Miðlungs: flýtur yfir hægra megin. */
@media (min-width: 1440px) {
  .jl.has-sel .jl-layout { grid-template-columns: minmax(0, 1fr) 350px; }
  .jl-info { position: sticky; top: 14px; max-height: calc(100vh - 28px); }
}
@media (min-width: 901px) and (max-width: 1439.98px) {
  .jl-info { position: fixed; top: 0; right: 0; bottom: 0; width: 380px; z-index: 50; border-radius: 0; border-width: 0 0 0 1px; box-shadow: -12px 0 32px rgba(0,0,0,.12); }
}
/* Spjaldtölva og sími: spjöld í stað töflu, upplýsingar koma neðan frá */
@media (max-width: 900px) {
  .jl-hide-narrow { display: none !important; }
  .jl-only-narrow { display: inline-flex; }
  .jl-head h1 { flex: 1; }
  .jl-search { order: 3; flex: 1 1 100%; height: 42px; }
  .jl-search input { font-size: 16px; }
  .jl-views { border-bottom: 0; gap: 6px; margin: 0 -16px; padding: 0 16px 2px; }
  .jl-views a { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 6px 12px; margin: 0; font-size: 13px; }
  .jl-views a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
  .jl-views a.on small { background: rgba(255,255,255,.18); color: #fff; }
  .jl-views a.on .jl-vx { color: #fff; }
  .jl-fchip { height: 34px; }
  .jl-menu { max-height: 50vh; }
  .jl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
  .jl-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; min-width: 0; cursor: pointer; }
  .jl-card.sel { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
  .jl-r { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; }
  .jl-r b { flex: 1; font-size: 14.5px; } .jl-r .jl-cust { flex: 1; }
  .jl-r .jl-nr { color: var(--muted); font-weight: 500; font-size: 12.5px; }
  .jl-r .jl-sub { flex: 1; margin: 0; }
  .jl-r .jl-key { margin: 0; }
  .jl-r .jl-age { font-size: 12.5px; color: var(--muted); }
  .jl-foot { border: 0; padding: 12px 2px; }
  .jl-back { position: fixed; inset: 0; background: rgba(22,24,29,.32); z-index: 55; }
  .jl-info { position: fixed; left: 0; right: 0; bottom: 0; z-index: 56; max-height: 84vh; border-radius: 18px 18px 0 0; border-width: 1px 0 0; box-shadow: 0 -12px 36px rgba(0,0,0,.2); padding-bottom: env(safe-area-inset-bottom); }
  .jl-info::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 2px; background: #D0D0CB; margin: 8px auto 0; }
  .jl-ih { padding-top: 10px; }
  .jl-act { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line2); padding: 10px 16px 12px; }
  .jl-act .btn { flex: 1; height: 46px; } .jl-act .btn.pri { order: 3; }
}
@media (min-width: 620px) and (max-width: 900px) { .jl-info { left: 50%; right: auto; transform: translateX(-50%); width: min(560px, 100%); } }
@media (max-width: 480px) { .jl-tiles { grid-template-columns: repeat(2, 1fr); } }
/* --- B --- Verkbeiðnisíðan (jobpage.js): haus, aðgerðir, bílaspjald, hliðardálkur, valmyndir */
.lnk { border: 0; background: none; padding: 0; color: var(--red-d); font-weight: 600; font-size: 12.5px; cursor: pointer; text-decoration: none; }
.lnk:hover { text-decoration: underline; } .lnk[aria-expanded="true"], .lnk[aria-pressed="true"] { color: var(--ink); }
.jp-links { display: inline-flex; gap: 14px; }

/* Valmyndir (details): aðgerðir efst og ⋯ í verkþáttum */
.mnu { position: relative; display: inline-block; }
.mnu > summary { list-style: none; user-select: none; } .mnu > summary::-webkit-details-marker { display: none; }
.mnu > summary .car { font-size: 10px; color: var(--muted); margin-left: -2px; }
.mnu[open] > summary { border-color: var(--ink); }
.mnu > summary.dots { padding: 0 11px; font-size: 17px; line-height: 1; letter-spacing: .04em; }
.mnu-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(20, 22, 28, .14), 0 2px 6px rgba(20, 22, 28, .06); padding: 6px; display: flex; flex-direction: column; }
.mnu.right .mnu-pop { left: auto; right: 0; } .mnu.up .mnu-pop { top: auto; bottom: calc(100% + 6px); }
.mnu-i { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font-size: 13.5px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; }
.mnu-i:hover, .mnu-i:focus-visible { background: var(--bg); color: var(--ink); outline: none; }
.mnu-i.danger { color: var(--red-ink); } .mnu-i.danger:hover { background: var(--red-bg); color: var(--red-ink); }
.mnu-i.chk { font-weight: 500; }
.mnu-h { display: block; font-size: 12px; color: var(--muted); padding: 0 10px 6px; margin-top: -5px; white-space: normal; } .mnu-h.solo { margin: 0; padding: 8px 10px; }
.mnu-pop hr { border: 0; border-top: 1px solid var(--line2); margin: 5px 4px; width: auto; align-self: stretch; }
.mnu-pop [data-slot]:empty { display: none; }

/* Haus og aðgerðir í einu spjaldi */
.jp-top { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.jp-head { display: block; }
.jp-id { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 16px 20px 14px; }
.jp-head h1 { font-size: 21px; line-height: 1.25; letter-spacing: -.01em; }
.jp-head .sub { margin-top: 2px; } .jp-head .sub b { color: var(--ink); font-weight: 600; } .jp-head .sub a { color: inherit; }
.jp-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; } .jp-chips [data-slot]:empty { display: none; }
.jp-facts { display: flex; flex-wrap: wrap; row-gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line2); }
.jp-f { padding: 0 20px; border-left: 1px solid var(--line2); min-width: 0; } .jp-f:first-child { padding-left: 0; border-left: 0; }
.jp-f .lbl { display: block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.jp-f .v { display: flex; align-items: center; gap: 8px; min-height: 30px; font-size: 14px; white-space: nowrap; } .jp-f .v a { font-weight: 600; text-decoration: none; }
.jp-f.late .v b { color: var(--red-ink); }
.jp-km { width: 96px; height: 30px; padding: 0 8px; font-variant-numeric: tabular-nums; font-weight: 600; }
.jp-prom { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .jp-prom .datef { width: 140px; } .jp-prom .inp { height: 30px; } .jp-prom select.inp { width: 86px; }
.jp-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line2); background: #FAFAF8; border-radius: 0 0 13px 13px; }
.jp-acts .btn { height: 36px; } .jp-acts .jp-pri { padding: 0 18px; box-shadow: 0 1px 2px rgba(176, 16, 42, .25); }
.jp-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }

/* Tveir dálkar á breiðum skjá, hliðardálkur undir á mjórri */
.jp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.jp-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; container: jpmain / inline-size; }
.jp-aside { min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
@media (min-width: 1280px) { .jp-grid { grid-template-columns: minmax(0, 1fr) 336px; } .jp-aside { display: flex; flex-direction: column; align-items: stretch; } }
@media (max-width: 900px) { .jp-aside { grid-template-columns: minmax(0, 1fr); } .jp-id, .jp-facts, .jp-acts { padding-left: 14px; padding-right: 14px; } .jp-f { padding: 0 14px; } }
.jp-aside .ph { padding: 12px 16px; } .jp-aside .form { padding: 14px 16px; } .jp-aside .kv > div { padding: 9px 16px; }
.jp-aside .ph h2 { font-size: 14.5px; }
.jp-mainbar { display: flex; align-items: center; gap: 10px; padding: 2px 2px 0; } .jp-mainbar h2 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.jp-cols { display: none; }
.wband.slim { grid-template-columns: minmax(0, 1fr); }
/* Þröngur aðaldálkur: kostnaðarverð og verð með VSK falin nema beðið sé um þau („Sýna alla dálka“) */
@container jpmain (max-width: 1040px) {
  .jp-cols { display: inline; }
  .jp-grid:not(.allcols) table.lines tr > :is(th, td):nth-child(6):not([colspan]), .jp-grid:not(.allcols) table.lines tr > :is(th, td):nth-child(8):not([colspan]) { display: none; }
  .jp-grid:not(.allcols) table.lines { width: 100%; } .jp-grid:not(.allcols) table.lines td.desc { width: 34%; }
  .jp-grid:not(.allcols) table.lines :is(th, td) { padding-left: 2px; padding-right: 2px; }
  .jp-grid:not(.allcols) table.lines td input.cell[data-f=description], .jp-grid:not(.allcols) table.lines tr.addrow td:nth-child(3) .inp { min-width: 120px; }
  .jp-grid:not(.allcols) table.lines td input.pn { width: 82px; } .jp-grid:not(.allcols) table.lines td input.sup { width: 92px; }
  .jp-grid:not(.allcols) table.lines td input[data-f=unit_price] { width: 74px; } .jp-grid:not(.allcols) table.lines td input[data-f=qty] { width: 46px; }
  .jp-grid:not(.allcols) table.lines td.st .mini { max-width: 92px; } .jp-grid:not(.allcols) table.lines td.st .grpmv { display: none; }
  .jp-grid:not(.allcols) table.lines .kind { font-size: 10.5px; }
  .jp-grid:not(.allcols) table.lines th { white-space: normal; vertical-align: bottom; line-height: 1.25; font-size: 10.5px; } .jp-grid:not(.allcols) table.lines th.n { max-width: 70px; }
}

/* Verkþættir: rólegri haus og fótur, ⋯ má standa út fyrir spjaldið */
.jp-main .witems { gap: 12px; }
.jp-main .witem { overflow: visible; }
.jp-main .wi-h { padding: 12px 16px; gap: 10px; }
.jp-main .wi-3c { background: #FCFCFB; }
.jp-main .wi-f { border-radius: 0 0 11px 11px; padding: 9px 16px; }
.jp-main .wi-f .btn.sm, .jp-main .wi-f select.mini { height: 30px; }
.jp-main .witem .lnwrap:last-child { border-bottom: 0; }
.witem [data-slot]:empty { display: none; }

.jp-alloc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border-top: 1px solid var(--line2); } .jp-alloc .wide { grid-column: 1 / -1; }
.jp-alloc .row > label { flex: 1 1 100px; }

.jp-main input.wi-name { border-color: transparent; background: transparent; flex: 1 1 160px; min-width: 140px; max-width: none; } .jp-main input.wi-name:hover { border-color: var(--line); } .jp-main input.wi-name:focus { border-color: var(--ink); background: #fff; }
.jp-aside .form label.ct { flex-direction: row; align-items: center; }

/* Bílaspjald */
.jp-car .jp-cartop { display: flex; align-items: center; gap: 12px; padding: 14px 16px 4px; }
.jp-cartop b { display: block; font-size: 15px; line-height: 1.3; } .jp-cartop small { display: block; color: var(--muted); font-size: 12.5px; }
.jp-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 0; padding: 12px 16px 4px; }
.jp-specs dt { font-size: 11.5px; color: var(--muted); } .jp-specs dd { margin: 1px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.jp-specs .late dd { color: var(--red-ink); }
.jp-vin { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; padding: 10px 16px 4px; }
.jp-vin .lbl { font-size: 11.5px; color: var(--muted); flex-basis: 100%; } .jp-vin code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.jp-boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px 16px 4px; } .jp-boxes.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .jp-boxes.n1 { grid-template-columns: minmax(0, 1fr); }
.jp-box { background: var(--bg); border-radius: 10px; padding: 9px 11px; min-width: 0; text-decoration: none; color: var(--ink); display: block; }
a.jp-box:hover { background: #ECECE8; color: var(--ink); }
.jp-box b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; } .jp-box small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.jp-decl { list-style: none; margin: 12px 16px 0; padding: 0; background: var(--amber-bg); border-radius: 10px; color: var(--amber-ink); font-size: 13px; }
.jp-decl li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 11px; } .jp-decl li + li { border-top: 1px solid #F0D6A8; }
.jp-decl a { color: inherit; font-weight: 600; text-decoration: none; } .jp-decl a:hover { text-decoration: underline; } .jp-decl small { opacity: .85; white-space: nowrap; } .jp-decl .btn { flex: none; }
.jp-carnotes { margin: 10px 16px 0; padding: 8px 11px; background: var(--blue-bg); color: var(--blue-ink); border-radius: 10px; font-size: 13px; }
.jp-car > :last-child:not(.jp-more) { margin-bottom: 16px; } .jp-car > .jp-cartop:last-child { padding-bottom: 0; }
.jp-empty { margin: 8px 16px 0; color: var(--muted); font-size: 13px; }
.jp-more { margin-top: 14px; border-top: 1px solid var(--line2); padding: 4px 16px 16px; overflow-x: auto; } .jp-more h3 { font-size: 13.5px; margin: 12px 0 6px; } .jp-more h3 small { font-weight: 400; color: var(--muted); }
.jp-more .jp-empty { margin: 8px 0 0; } .jp-more .ovdl { font-size: 13px; } .jp-more > div { margin-top: 10px; }
.jp-more.flat { margin: 0; padding: 0; border-top: 0; }
.jp-custfacts { font-size: 12.5px; color: var(--muted); padding-top: 10px; border-top: 1px solid var(--line2); }
.jp-chiprow { display: flex; gap: 6px; flex-wrap: wrap; }

/* Sama bílasamantekt á útprenti og spjaldtölvu */
.pcar { font-size: 11.5px; color: #555; margin-top: 2px; max-width: 420px; }
.tcar { display: flex; flex-wrap: wrap; gap: 6px; } .tcar span { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; font-size: 13px; font-weight: 600; }
@media print { .jp-acts, .mnu { display: none !important; } }
.jp-main table.lines tr > :first-child { padding-left: 14px; } .jp-main table.lines tr > :last-child { padding-right: 10px; }
/* --- C --- */
.cs-pop { position: fixed; z-index: 400; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 38px rgba(20,22,28,.18); max-height: 340px; overflow: auto; padding: 4px 0 0; font-size: 13.5px; }
.cs-pop[hidden] { display: none; }
.cs-h { padding: 8px 14px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cs-i { display: flex; gap: 12px; align-items: center; padding: 8px 14px; cursor: pointer; border-top: 1px solid var(--line2); }
.cs-h + .cs-i { border-top: 0; }
.cs-i:hover, .cs-i.on { background: #F6F6F3; }
.cs-i.on { box-shadow: inset 3px 0 0 var(--red); }
.cs-no { font-weight: 700; min-width: 74px; font-variant-numeric: tabular-nums; }
.cs-d { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-d small { display: block; color: var(--muted); font-size: 12px; }
.cs-p { color: var(--muted); font-variant-numeric: tabular-nums; }
.cs-f { padding: 7px 14px; font-size: 11.5px; color: var(--muted); background: #FAFAF8; border-top: 1px solid var(--line2); position: sticky; bottom: 0; }
.addrow .cs-in { font-weight: 600; }
.addrow .cs-in:focus { box-shadow: 0 0 0 2px rgba(239,33,52,.25); border-color: var(--red); }
.addrow td.mo { padding: 0; }
.cs-more { white-space: nowrap; } .cs-more.on { background: var(--red-bg); color: var(--red-ink); border-color: transparent; }
tr.addmore[hidden] { display: none; }
.cs-more-row { display: flex; gap: 12px; flex-wrap: wrap; padding: 4px 4px 8px; background: #FAFAF8; border-radius: 8px; }
.cs-more-row label { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--muted); font-weight: 600; flex: 1 1 130px; max-width: 220px; }
.cd-panel { max-width: 1040px; margin-bottom: 16px; }
.cd-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cd-table th { text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.cd-table th.n, .cd-table td.n { text-align: right; }
.cd-table td { padding: 6px 8px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.cd-table tr.cd-off td { opacity: .55; }
.cd-table tr.cd-new td { background: #FAFAF8; }
.cd-table tr.cd-sum td { background: #F6F6F3; }
.cd-table tr.on > td { background: #FAFAF8; }
.cd-code { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--red-bg); color: var(--red-ink); letter-spacing: .03em; }
.cd-rate { display: block; font-size: 11.5px; margin-top: 3px; justify-content: flex-end; }
.cd-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; }
.cd-cat { display: flex; gap: 6px; align-items: center; }
.cd-fixed { font-size: 12px; padding: 0 8px; }
.cd-filter { display: flex; gap: 8px; flex-wrap: wrap; } .cd-filter .inp:first-child { flex: 1 1 260px; }
.cd-itemedit { padding: 8px 4px; display: flex; flex-direction: column; gap: 10px; }
.cd-hist ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--red-d); font: inherit; }
.chipbtn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 12.5px; cursor: pointer; color: var(--ink); }
.chipbtn.on { background: var(--ink); color: #fff; border-color: var(--ink); } .chipbtn small { opacity: .7; margin-left: 2px; }
.pi-src { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 12px; }
.srcbadge { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: #ECECE8; color: #3B3E45; }
.srcbadge.src-pdf { background: #FDE7EA; color: var(--red-ink); } .srcbadge.src-photo { background: #E6EEFB; color: #1F4E9E; }
.srcbadge.src-einvoice { background: #E4F4EA; color: #1B6B38; } .srcbadge.src-avpartar { background: #1D1F24; color: #fff; } .srcbadge.src-foreign { background: #FFF1D6; color: #8A5A00; }
.pairbar { display: inline-flex; align-items: center; gap: 8px; min-width: 120px; }
.pairbar .pb-t { width: 56px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; display: inline-block; } .pairbar .pb-t i { display: block; height: 100%; background: #E3A21A; }
.pairbar.full .pb-t i { background: #2F9E57; } .pairbar small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.cs-cat, .cs-fix { max-width: 170px; } .cs-corrno { width: 110px; }
@media (max-width: 760px) { .cs-pop { left: 8px !important; right: 8px; width: auto !important; } .cs-more-row label { max-width: none; } }

/* --- D --- Textahjálp */
.th-btn { border: 0; background: transparent; cursor: pointer; padding: 0 4px; font-size: 13px; opacity: .55; vertical-align: middle; } .th-btn:hover, .th-btn:focus-visible { opacity: 1; }
.th-menu { display: inline-flex; gap: 4px; margin-left: 6px; flex-wrap: wrap; }
.th-out { margin-top: 4px; padding: 6px 8px; background: var(--blue-bg); color: var(--blue-ink); border-radius: 6px; font-size: 13px; }
.th-err { color: var(--red-ink); }
.th-orig { font-size: 12.5px; color: var(--muted); margin-top: 2px; } .th-orig summary { cursor: pointer; }
.th-panel { margin: 8px 0; display: grid; gap: 8px; }
.th-row { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; }
.th-sugg { margin-top: 6px; padding: 8px 10px; background: var(--amber-bg); border-radius: 8px; display: grid; gap: 6px; }
.th-lbl { font-size: 11.5px; color: var(--amber-ink); text-transform: uppercase; letter-spacing: .03em; }
.th-text { font-size: 14px; } .th-acts, .th-rule { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.th-pop { padding: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.2); background: #fff; display: grid; gap: 6px; }
.th-rules-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.th-r { display: flex; justify-content: space-between; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; } .th-r.off { opacity: .6; }
.th-r > div:first-child { flex: 1; } .th-r .inp { width: 100%; } .th-racts { display: flex; gap: 6px; align-items: center; }

/* --- E --- */
.blk.rdy { background: #2F9E4F; color: #fff; }
.blk.rdy.chk { box-shadow: inset 0 0 0 3px #0B3D1F; }
.jl-chk { background: #2F9E4F; color: #fff; box-shadow: 0 0 0 2px #0B3D1F; }
.chip.pay-partial { background: var(--amber-bg, #FFF1D6); color: #7A4B00; }
.nt-ov { position: fixed; inset: 0; background: rgba(20,20,20,.45); z-index: 900; display: flex; align-items: center; justify-content: center; padding: 16px; }
.nt-dlg { background: #fff; border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.28); width: min(520px, 100%); max-height: 92vh; overflow: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.nt-h { margin: 0; font-size: 18px; } .nt-to { margin: 0; font-size: 14px; }
.nt-l { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; } .nt-l .inp, .nt-l textarea { font-weight: 400; }
.nt-row { display: flex; gap: 10px; flex-wrap: wrap; } .nt-row .nt-l { flex: 1 1 150px; }
.nt-cnt { font-size: 12px; margin-top: -6px; text-align: right; }
.nt-btns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
.nt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow: auto; }
.nt-m { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; } .nt-mh { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .nt-mb { font-size: 13.5px; margin: 4px 0; white-space: pre-wrap; }
.nt-chk { font-size: 13px; color: var(--green-ink); font-weight: 600; }
.nt-set { margin-bottom: 12px; } .nt-vars { font-size: 12.5px; }
.nt-pay { max-width: 820px; margin-bottom: 12px; }
@media (max-width: 560px) { .nt-ov { align-items: flex-end; padding: 0; } .nt-dlg { border-radius: 14px 14px 0 0; width: 100%; } }
/* --- F --- myndbönd */
.vids { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.vid { flex: 1 1 260px; max-width: 420px; background: #000; border-radius: 8px; overflow: hidden; }
.vid video { display: block; width: 100%; max-height: 300px; }
.vid-in { cursor: pointer; }
.vid-prog { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.vid-prog .bar { flex: 1 1 140px; max-width: 260px; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.vid-prog .bar i { display: block; height: 100%; background: var(--brand, #1a73e8); transition: width .15s; }
/* --- F --- endar */

/* --- G --- sótt í lyklabox og greitt með hlekk */
.bkp { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 700; padding: 0 5px; border-radius: 8px; background: #E6EEFB; color: #1F4E9C; margin-left: 4px; vertical-align: middle; }
.bkp.got { background: #E3F2E6; color: #1E6B34; }
.kbox { display: inline-block; width: 1em; height: 1em; vertical-align: -.12em; margin-left: .25em; }
.gr-dlg { max-width: 460px; }
.gr-dlg textarea { width: 100%; min-height: 90px; }
.gr-key { background: #F6F6F3; border: 1px solid var(--line, #E2E2DE); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.gr-ok { background: #E3F2E6; color: #1E6B34; border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.gr-code { font: 700 28px/1.3 ui-monospace, monospace; letter-spacing: .2em; }
.gr-chip { cursor: default; }
.gr-hook { font: 12px ui-monospace, monospace; word-break: break-all; background: #F6F6F3; padding: 6px 8px; border-radius: 6px; }
[data-gr-form] fieldset { border: 1px solid var(--line, #E2E2DE); border-radius: 10px; margin: 0 0 14px; padding: 12px; }
[data-gr-form] label { display: block; margin: 8px 0 2px; font-size: 13px; }
[data-gr-form] input[type=text], [data-gr-form] input[type=password], [data-gr-form] input[type=email], [data-gr-form] textarea { width: 100%; }
/* --- H --- verðbil og pöntun við samþykki */
.rng-ed { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rng-in { width: 92px; height: 34px; text-align: right; }
.rng { font-weight: 600; white-space: nowrap; }
.rng-total { font-weight: 600; }
.oa { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); margin-top: 3px; }
.oa.done { color: #1a6b3a; font-weight: 600; }
.oa input { width: 18px; height: 18px; }
.oa-warn { color: #a33; display: block; font-size: 12px; }
.owner-new { font-weight: 700; box-shadow: 0 0 0 2px #1a6b3a33; }
.prange { margin: 8px 0; font-weight: 600; }

/* --- R --- Hönnunaryfirferð: eitt litakerfi fyrir stöður, snertisvæði, varahlutir, smálagfæringar */
/* STÖÐULITIR. Sami litur fyrir sömu stöðu alls staðar (merki, tímalína, listi, Í bið, spjaldtölva). Skjárinn (skjar.html) notar sömu
   fylltu litina á dökkum grunni. Óháð merkjalit verkstæðisins (--red er merkjalitur og má breytast í stillingum).
   Hver staða: -bg / -ink = ljóst merki (texti ≥ 4,5:1), nafnið sjálft = fylltur litur blokkar, -on = texti á fylltum lit (≥ 4,5:1). */
:root {
  --st-booked: #DADAD5;  --st-booked-on: #1D1F24;  --st-booked-bg: #F6F6F4;  --st-booked-ink: #4A4D55;  --st-booked-line: #D0D0CB;   /* bókað, ekki hafið */
  --st-site: #0F7C8A;    --st-site-on: #fff;       --st-site-bg: #DDF0F2;    --st-site-ink: #0E5560;                               /* á staðnum */
  --st-work: #2563C9;    --st-work-on: #fff;       --st-work-bg: #E1ECFC;    --st-work-ink: #1A4A9C;                               /* í vinnslu */
  --st-appr: #7A4CC9;    --st-appr-on: #fff;       --st-appr-bg: #EEE7FB;    --st-appr-ink: #55309E;                               /* bíður samþykkis */
  --st-part: #E0A030;    --st-part-on: #3D2400;    --st-part-bg: #FFF1DC;    --st-part-ink: #8A4B00;                               /* bíður varahluta */
  --st-ready: #24803F;   --st-ready-on: #fff;      --st-ready-bg: #E3F2E6;   --st-ready-ink: #1E6B34;  --st-ready-line: #0B3D1F;   /* tilbúið; -line = reikningur yfirfarinn */
  --st-fin: #CFE6D5;     --st-fin-on: #1E6B34;                                                                                     /* tíma á tímalínu lokið (bíllinn ekki endilega tilbúinn) */
  --st-dlv: #5A6474;     --st-dlv-on: #fff;        --st-dlv-bg: #E2E6EC;     --st-dlv-ink: #36404F;                                /* afhent */
  --st-late: #D0182A;    --st-late-on: #fff;       --st-late-bg: #FDE7EA;    --st-late-ink: #B0102A;                               /* seint, yfir tíma, villa */
  --st-next-bg: #DFF3EF; --st-next-ink: #11655A;                                                                                   /* næsta skref hjá verkstæðinu (varahlutir komnir, lokið en ekki merkt) */
  --st-info-bg: #E6EEFB; --st-info-ink: #1F4E9C;                                                                                   /* hlutlausar upplýsingar */
}
.c-wait { background: var(--st-booked-bg); color: var(--st-booked-ink); box-shadow: inset 0 0 0 1px var(--st-booked-line); }
.c-site { background: var(--st-site-bg); color: var(--st-site-ink); }
.c-work { background: var(--st-work-bg); color: var(--st-work-ink); }
.c-appr { background: var(--st-appr-bg); color: var(--st-appr-ink); }
.c-part { background: var(--st-part-bg); color: var(--st-part-ink); }
.c-done { background: var(--st-ready-bg); color: var(--st-ready-ink); }
.c-dlv { background: var(--st-dlv-bg); color: var(--st-dlv-ink); }
.c-late, .jl .c-late { background: var(--st-late); color: var(--st-late-on); }
.c-teal, .jl .c-teal { background: var(--st-next-bg); color: var(--st-next-ink); }
.c-info { background: var(--st-info-bg); color: var(--st-info-ink); }
.c-key { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.jl-chk, .chip.c-done.chk { background: var(--st-ready); color: var(--st-ready-on); box-shadow: inset 0 0 0 2px var(--st-ready-line); padding: 3px 10px; }
/* Tímalína */
.blk.s-pending { background: var(--st-booked); color: var(--st-booked-on); }
.blk.s-in_progress { background: var(--st-work); color: var(--st-work-on); }
.blk.s-on_hold { background: #6B6F79; color: #fff; }
.blk.s-finished { background: var(--st-fin); color: var(--st-fin-on); }
.blk.h-parts { background: var(--st-part); color: var(--st-part-on); }
.blk.h-approval { background: var(--st-appr); color: var(--st-appr-on); }
.blk.rdy { background: var(--st-ready); color: var(--st-ready-on); }
.blk.rdy.chk { box-shadow: inset 0 0 0 3px var(--st-ready-line); }
.blk.ovr { box-shadow: inset 0 0 0 2px var(--st-late-ink); }
.blk .late { background: var(--st-late); color: var(--st-late-on); }
.blk.s-finished .os, .blk.s-pending .os { background: rgba(0,0,0,.28); } .blk .os.on { background: var(--st-ready-line); }
.legend { gap: 6px 14px; } .legend i { box-sizing: border-box; }
/* Listi, Í bið, tölur dagsins */
.jl-next-site { background: var(--st-site-bg); border-color: #B5DDE2; } .jl-next-site .jl-lbl { color: var(--st-site-ink); }
.jl-next-dlv, .jl-next-wait { background: var(--st-booked-bg); border-color: var(--st-booked-line); }
.jl-next-work { background: var(--st-work-bg); border-color: #BFD3F5; } .jl-next-work .jl-lbl { color: var(--st-work-ink); }
.jl-next-appr { background: var(--st-appr-bg); border-color: #D6C8F3; } .jl-next-appr .jl-lbl { color: var(--st-appr-ink); }
.jl-a-appr { color: var(--st-appr-ink); }
.ibcol[data-ibcol=approval] h3 { color: var(--st-appr-ink); } .ibcol[data-ibcol=approval] .ibcard { border-left-color: var(--st-appr); }
.ibcol[data-ibcol=ready] h3 { color: var(--st-ready-ink); } .ibcard.ready { border-left-color: var(--st-ready); }
.wbadge.appr { color: var(--st-appr-ink); }
.stat b.n-part { color: var(--st-part-ink); } .stat b.n-appr { color: var(--st-appr-ink); } .stat b.n-work { color: var(--st-work-ink); }

/* Línur: fellilistinn Tegund í innsláttarröð var klipptur („Gja“, „Vinn“) */
table.lines tr.addrow td:first-child select { min-width: 88px; padding: 0 0 0 4px; font-size: 12.5px; }
@container jpmain (max-width: 1040px) { .jp-grid:not(.allcols) table.lines tr.addrow td:nth-child(3) .inp { min-width: 84px; } .jp-grid:not(.allcols) table.lines tr.addrow td .btn.sm { padding: 0 6px; font-size: 12px; gap: 4px; } .jp-grid:not(.allcols) table.lines tr.addrow td { padding-left: 2px; padding-right: 2px; } .jp-grid:not(.allcols) table.lines tr.addrow td:first-child select { min-width: 87px; font-size: 12px; padding-left: 3px; } }

/* Myndbönd á verkinu sjálfu */
.vid-card { margin: 0; flex: 1 1 260px; max-width: 420px; display: flex; flex-direction: column; gap: 4px; } .vid-card .vid { flex: none; max-width: none; }
.form label.photo-in, label.photo-in { flex-direction: row; align-items: center; }

/* Varahlutir: bil á milli spjalda, leit í safni, fjöldi í flokki */
form.pr-new { display: flex; flex-direction: column; gap: 16px; }
.pr-qh { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pr-qs { flex: 1 1 220px; max-width: 360px; height: 34px; }
.pr-qfound:empty { display: none; }
.pr-qb small { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted); line-height: 1.1; }
.pr-qcat small { margin-left: 6px; font-weight: 500; color: var(--muted); font-size: 11px; } .pr-qcat.on small { color: inherit; opacity: .75; }
.pr-catnav { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 4px; }
.pr-catnav button { font: inherit; cursor: pointer; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.pr-catnav button:hover { border-color: var(--ink); } .pr-catnav button small { color: var(--muted); margin-left: 4px; }
.pr-nextstep { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.pr-nextstep b { font-size: 14px; } .pr-nextstep .muted { font-size: 13px; flex: 1 1 240px; }
.pr-nextstep.go { border-color: #BFD3F5; background: var(--st-work-bg); } .pr-nextstep.ok { border-color: #BFE0C7; background: var(--st-ready-bg); } .pr-nextstep.wait { border-color: #F1D29C; background: var(--st-part-bg); }

/* Spjaldtölva verkstæðismanns: snertisvæði minnst 44 px */
.tablet .btn, .tablet .btn.sm, .tablet select.inp, .tablet input.inp:not([type=checkbox]):not([type=radio]), .tablet .photo-in, .tablet .photo-in.sm { min-height: 44px; }
.tablet .btn.sm { padding: 0 14px; font-size: 14px; }
.tablet input[type=checkbox], .tablet input[type=radio] { min-width: 22px; min-height: 22px; }
.tablet .th-btn { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; margin: -10px 0; }
.tablet .thumb .x { min-width: 32px; min-height: 32px; }
@media (max-width: 1100px) and (pointer: coarse) { main .btn.sm { min-height: 40px; } }
.ti-cc, .ti-foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ti-grid > * { min-width: 0; }
.ti-foot .cform { min-width: 0; } .ti-foot .cform .inp { min-width: 0; }
.task.live { border-color: var(--st-work); box-shadow: 0 0 0 1px var(--st-work); }
/* --- R --- endar */

/* --- Tími á tímalínu: verkþættir með hak --- */
.aa-items { border: 0; padding: 0; margin: 0; display: grid; gap: 4px; }
.aa-items legend { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; padding: 0; }
.aa-items .aa-it, .form .aa-items label.aa-it { display: flex; flex-direction: row; text-align: left; align-items: center; gap: 8px; min-height: 36px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-weight: 400; }
.aa-it span:first-of-type { flex: 1; }
.aa-it.done { color: var(--muted); }
.aa-it input { width: 18px; height: 18px; margin: 0; }
/* --- T --- Stutt slóð */
.dev-short { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; border: 2px solid var(--line2); border-radius: 10px; padding: 10px 12px; }
.dev-short code { font-size: 18px; font-weight: 700; }
/* --- T --- endar */
/* --- S --- */
.brand-row{display:flex;gap:14px;flex-wrap:wrap;align-items:stretch;padding:14px}
.brand-card{flex:1 1 240px;min-width:0;display:flex;flex-direction:column;gap:10px;border:1px solid var(--line2);border-radius:12px;padding:14px;background:var(--card,#fff)}
.brand-card h3{margin:0;font-size:14px}
.brand-card .logo-box{width:100%;height:auto}
.brand-card .icon-box{width:100%;height:auto}
.brand-card .logo-box,.brand-card .icon-box{min-height:84px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:var(--bg2,#f4f3ef);padding:10px}
.brand-card .logo-box.dark{background:rgb(17,19,23)}
.brand-card .logo-box img{max-width:100%;max-height:72px;object-fit:contain}
.brand-card .icon-box img{width:56px;height:56px;object-fit:contain}
.brand-card .brand-note{margin:0;font-size:12.5px;color:var(--muted,#6b6a64)}
.brand-acts{display:flex;gap:12px;align-items:center;margin-top:auto;flex-wrap:wrap}
.brand-saved{color:var(--green,#1b7a3a);font-weight:600;font-size:12.5px}
.del-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.del-ask{display:inline-flex;gap:8px;align-items:center;flex-wrap:wrap;font-weight:600}
.del-why{flex:1 1 220px}
.inactive-box{margin:14px;border:1px dashed var(--line2);border-radius:10px;padding:8px 12px}
.inactive-box>summary{cursor:pointer;font-weight:600;padding:4px 0}
.att-dept,.att-dept-row th{margin:10px 0 4px;font-size:12.5px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted,#6b6a64);text-align:left}
/* --- S --- endar */
/* --- U --- Ný verkbeiðni og röð verkþátta */
.nv-jobs-t { font-weight: 700; margin: 4px 0 6px; }
.nv-jobs { display: grid; gap: 10px; margin-bottom: 8px; }
.nv-job { border: 2px solid var(--line2); border-radius: 12px; padding: 10px; background: #fff; }
.nv-job-h { display: flex; gap: 8px; align-items: center; }
.nv-job-b { display: grid; gap: 8px; margin-top: 8px; }
.nv-title { flex: 1 1 auto; min-width: 0; font-weight: 600; }
.nv-noin { width: 52px; text-align: center; padding-left: 4px; padding-right: 4px; }
.nv-pk, .nv-cmp { display: grid; gap: 4px; font-size: 13px; }
.nv-drag { touch-action: none; cursor: grab; min-width: 36px; min-height: 40px; border: 2px solid var(--line2); border-radius: 8px; background: #fff; font-size: 18px; line-height: 1; padding: 0 6px; }
.nv-drag:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.nv-dragging { opacity: .85; box-shadow: 0 6px 18px rgba(0,0,0,.25); outline: 3px solid var(--red); }
.nv-dragbox, .nv-dragbox * { cursor: grabbing; user-select: none; }
.nv-sug { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.nv-sug span { flex: 1 1 260px; }
.nv-tc { min-width: 32px; padding: 2px 6px; }
.wi-nobtn { cursor: pointer; border: 2px solid transparent; font: inherit; }
.wi-nobtn:hover, .wi-nobtn:focus-visible { border-color: var(--red); }
.wi-noin { width: 54px; text-align: center; }
.wi-h .nv-drag { min-height: 34px; }
.nv-chat { padding: 12px; display: grid; gap: 8px; box-shadow: 0 8px 28px rgba(0,0,0,.3); background: #fff; border: 2px solid var(--line2); border-radius: 12px; }
.nv-ch-h { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nv-ch-o { background: var(--bg2, #f4f2ee); border-radius: 8px; padding: 6px 8px; font-size: 13px; }
.nv-ch-l { display: grid; gap: 4px; }
.nv-ch-log { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted, #555); }
.nv-cthint { margin: 6px 0; }
.ci-vin, .ci-col { margin-left: 8px; font-size: 13px; font-weight: 600; background: #eee; border-radius: 6px; padding: 2px 8px; }
.carinfo[data-carinfo] .ci-car { font-size: 20px; }
/* --- U --- endar */

/* --- P --- Þjónustupakkar: val á pakka, pakkagluggi, ritill í stillingum, lager (app/pakkar.js) */
body.pkp-open { overflow: hidden; }
.pkp-ov { position: fixed; inset: 0; z-index: 80; background: rgba(22,24,29,.42); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px 16px; }
.pkp { background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.28); width: min(1040px, 100%); max-height: calc(100vh - 5vh - 16px); display: flex; flex-direction: column; overflow: hidden; }
.pkp.sm { width: min(480px, 100%); }
.pkp-h { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line2); flex-wrap: wrap; }
.pkp-h h2 { margin: 0; font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.pkp-x { font-size: 15px; width: 34px; padding: 0; }
.pkp-car { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.pkp-top { padding: 14px 18px 0; display: flex; flex-direction: column; gap: 10px; }
.pkp-q { height: 46px; font-size: 16px; border-radius: 10px; }
.pkp-cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin; }
.pkp-cat { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; color: var(--ink); }
.pkp-cat .pk-ic { width: 16px; height: 16px; color: var(--muted); }
.pkp-cat small { color: var(--muted); font-weight: 500; }
.pkp-cat:hover { border-color: #B9BAB4; }
.pkp-cat.on { background: var(--ink); border-color: var(--ink); color: #fff; } .pkp-cat.on small, .pkp-cat.on .pk-ic { color: #C9CBD1; }
.pkp-body { padding: 4px 18px 18px; overflow: auto; flex: 1; min-height: 0; }
.pkp-sec { margin: 12px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pkp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 10px; }
.pkp-tile { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: 1fr auto; gap: 10px 12px; text-align: left; padding: 12px; min-height: 104px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
.pkp-tile:hover, .pkp-tile:focus-visible { border-color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.08); outline: none; }
.pkp-tile.fit { border-color: var(--green); background: linear-gradient(180deg, #F6FBF7, #fff 60%); }
.pkp-tile.dim { opacity: .62; }
.pkp-tic, .pkp-hic { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--grey-bg); color: var(--grey-ink); flex-shrink: 0; }
.pkp-hic { width: 34px; height: 34px; }
.c-smurning { background: #FFF1DC; color: #8A4B00; } .c-bremsur { background: #FDE7EA; color: #B0102A; } .c-fjodrun { background: #E6EEFB; color: #1F4E9C; } .c-timareim { background: #EFE8FB; color: #5B3AA6; }
.c-dekk { background: #EAEAE6; color: #33363D; } .c-skodun { background: #E3F2E6; color: #1E6B34; } .c-vel { background: #E2F1F3; color: #0F5E6B; } .c-rafmagn { background: #FFF6C9; color: #6F5600; }
.pkp-tn { display: flex; flex-direction: column; gap: 6px; min-width: 0; } .pkp-tn b { font-size: 14.5px; line-height: 1.25; }
.pkp-tags { display: flex; gap: 5px; flex-wrap: wrap; min-width: 0; } .pkp-tags .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: inline-block; }
.pkp-tf { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12.5px; border-top: 1px solid var(--line2); padding-top: 8px; }
.pkp-tp { font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; } .pkp-tp.est { color: #4A4D55; font-weight: 600; }
.pkp-empty { padding: 44px 0; text-align: center; display: flex; flex-direction: column; gap: 4px; }
/* Pakkagluggi */
.pkc { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; padding-top: 14px; align-items: start; }
.pkc-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pk-sec h3 { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pk-vars, .pks-tabs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pk-v { position: relative; height: 34px; padding: 0 13px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--ink); }
.pk-v:hover { border-color: #B9BAB4; } .pk-v.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pk-v i { position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); border: 2px solid #fff; }
.pk-v.add { border-style: dashed; color: var(--muted); }
.pk-why { margin: 8px 0 0; font-size: 13px; color: var(--muted); } .pk-why.ok { color: var(--green-ink); }
.pk-real { margin: -6px 0 0; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pkl { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 116px 132px; gap: 10px; align-items: center; padding: 9px 4px; border-top: 1px solid var(--line2); min-height: 52px; }
.pk-sec .pkl:first-of-type { border-top: 0; }
.pkl.off .pkl-n b, .pkl.off .pkl-p .pp { color: #9A9CA3; text-decoration: line-through; } .pkl.off .chip { opacity: .55; }
.pkl-ck { display: flex; align-items: center; justify-content: center; height: 36px; cursor: pointer; } .pkl-ck input { width: 20px; height: 20px; accent-color: var(--ink); cursor: pointer; }
.pkl-n { min-width: 0; line-height: 1.3; } .pkl-n b { font-weight: 600; } .pkl-src { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.pkl-side { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.pkl-side button { height: 32px; min-width: 44px; padding: 0 8px; border: 0; border-left: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 12.5px; cursor: pointer; color: var(--ink); }
.pkl-side button:first-child { border-left: 0; } .pkl-side button.on { background: var(--ink); color: #fff; } .pkl-side button:disabled { color: #B5B7BC; cursor: default; }
.pkl-hrs { display: inline-flex; align-items: center; gap: 4px; justify-self: end; }
.pkl-hrs button { width: 30px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 16px; font-weight: 600; cursor: pointer; color: var(--ink); }
.pkl-hrs input { width: 50px; height: 32px; text-align: center; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; } .pkl-hrs .u { color: var(--muted); font-size: 12.5px; }
.pkl-q { justify-self: end; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.pkl-p { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; font-variant-numeric: tabular-nums; } .pkl-p .pp { color: var(--muted); font-size: 12.5px; } .pkl-p b { font-size: 14px; min-height: 18px; }
.pkl.est .pkl-p b, .pkl.est .pkl-p .pp { color: #6B6E76; font-weight: 500; font-style: italic; }
.pk-ckl { font-size: 13px; color: var(--muted); } .pk-ckl summary { cursor: pointer; font-weight: 600; color: var(--ink); } .pk-ckl ul { margin: 6px 0 0; padding-left: 18px; }
.pkc-sum { position: sticky; top: 0; background: #FAFAF8; border: 1px solid var(--line2); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.pkc-sum dl { margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.pkc-sum dl div { display: flex; justify-content: space-between; gap: 10px; } .pkc-sum dt { color: var(--muted); } .pkc-sum dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.pkc-sum dl .net { border-top: 1px solid var(--line); padding-top: 7px; margin-top: 2px; }
.pk-range { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.pk-range small { color: var(--muted); font-size: 12px; } .pk-range b { font-size: 20px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pk-prop { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.pk-btns { display: flex; gap: 8px; justify-content: flex-end; } .pk-btns .btn.pri { flex: 1; height: 44px; font-size: 15px; }
.wa-pk { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
/* Merki á verkbeiðni */
.pk-vtag { background: var(--blue-bg); color: var(--blue-ink); }
.pk-estl { color: #6B6E76; font-style: italic; font-size: 12px; margin-right: 6px; }
tr[data-pe] input[data-f=unit_price], tr[data-pe] input[data-f=unit_price_gross], tr[data-pe] td.amt { color: #7A7D85; font-style: italic; }
/* Ritill í stillingum */
.pks-body { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.pks-cat h3 { display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 8px 0 6px; } .pks-cat .pkp-tic { width: 30px; height: 30px; border-radius: 8px; } .pks-cat .pk-ic { width: 18px; height: 18px; }
.pks-row { display: flex; width: 100%; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; margin-bottom: 6px; font-size: 14px; color: var(--ink); flex-wrap: wrap; }
.pks-row:hover { border-color: var(--ink); } .pks-row.inactive b { color: #8A8C93; } .pks-go { color: var(--muted); font-size: 18px; }
.pks-new { border-top: 1px solid var(--line2); padding: 12px 0 0; }
.pks-sug { background: #FAF7FF; border: 1px solid #E0D5F5; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.pks-sug h3 { margin: 0; font-size: 14px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.pks-s { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; flex-wrap: wrap; }
.pks-s p { margin: 4px 0 2px; font-size: 13.5px; } .pks-s.rejected { opacity: .6; } .pks-sb { display: flex; gap: 6px; }
.pks-ed { display: flex; flex-direction: column; gap: 12px; } .pks-ed h4 { margin: 6px 0 0; font-size: 13px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.pks-ed .row { display: flex; gap: 10px; flex-wrap: wrap; } .pks-ed label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); } .pks-ed label.mini-l, .pks-ed label.pks-fl { flex-direction: row; align-items: center; }
.pks-edh { display: flex; align-items: center; gap: 10px; }
.pks-tabs { border-bottom: 1px solid var(--line2); padding-bottom: 10px; }
.pks-hint { margin: 0; }
.pks-v { display: flex; flex-direction: column; gap: 10px; background: #FAFAF8; border: 1px solid var(--line2); border-radius: 12px; padding: 12px; }
.pks-cr { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12.5px; font-weight: 600; color: var(--muted); } .pks-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pks-fl { display: inline-flex; gap: 5px; align-items: center; height: 28px; padding: 0 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--grey-ink); background: #fff; cursor: pointer; white-space: nowrap; }
.pks-fl.on { background: var(--ink); border-color: var(--ink); color: #fff; } .pks-fl input { margin: 0; accent-color: #fff; }
.pks-lines { display: flex; flex-direction: column; gap: 6px; }
.pks-l { display: grid; grid-template-columns: 112px minmax(150px, 2fr) minmax(110px, 1.2fr) 100px 68px 92px auto 30px; gap: 6px; align-items: center; }
.pks-l .inp, .pks-l select { height: 34px; min-width: 0; width: 100%; } .pks-l .inp.n { text-align: right; } .pks-rate { font-size: 12px; color: var(--muted); text-align: right; }
.pks-flags { display: flex; gap: 4px; flex-wrap: wrap; } .pks-add { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; } .pks-none { margin: 4px 0; }
.pks-ck { display: grid; grid-template-columns: minmax(0, 1fr) 130px auto 30px; gap: 6px; align-items: center; margin-bottom: 6px; } .pks-ck .inp { height: 34px; }
.pkck { padding: 0; }
.pks-save { display: flex; gap: 8px; align-items: center; position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line2); padding: 12px 0 10px; box-shadow: 0 -8px 12px -10px rgba(0,0,0,.18); z-index: 2; }
/* Lager á Panta */
.pkst-sec { padding: 4px 16px 12px; } .pkst-sec h3 { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 8px 0 6px; }
.pkst-o { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line2); } .pkst-o small.low { color: var(--red-ink); font-weight: 600; }
.pkst-t tr.low td { background: #FFF8F8; } .pkst-t .cell.n { width: 76px; text-align: right; } .pkst-add { border-top: 1px solid var(--line2); }
@media (max-width: 900px) {
  .pkp-ov { padding: 0; align-items: stretch; } .pkp { border-radius: 0; max-height: none; height: 100%; width: 100%; }
  .pkc { grid-template-columns: 1fr; } .pkc-sum { position: static; }
  .pkl-side button, .pkl-hrs button, .pkl-hrs input { height: 40px; } .pkl-hrs button { width: 40px; }
  .pkp-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .pks-l { grid-template-columns: 1fr 1fr 80px 30px; } .pks-l .d { grid-column: 1 / 3; } .pks-flags { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .pkl { grid-template-columns: 30px minmax(0, 1fr) auto; row-gap: 6px; } .pkl-n { grid-column: 2; } .pkl-p { grid-column: 3; grid-row: 1; }
  .pkl-side { grid-column: 2; grid-row: 2; justify-self: start; } .pkl-hrs { grid-column: 2; grid-row: 2; justify-self: start; } .pkl-q { grid-column: 3; grid-row: 2; }
  .pkl > span:empty { display: none; }
}
@media (max-width: 520px) { .pkp-grid { grid-template-columns: 1fr; } .pkp-tile { min-height: 0; } }
/* --- P --- endar */
/* --- V --- */
.df-h{margin:10px 0 0;font-size:14px}.df-s{margin:0;font-size:12.5px}
.df-hook{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.df-hook .inp{flex:1;min-width:220px}
.df-time{margin:0;padding-left:18px}
/* --- V --- endar */

/* --- W --- Panta af línu */
.plpop { width: min(520px, 100%); }
.pl-sups { display: flex; flex-direction: column; gap: 6px; }
.pl-sup { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; flex-wrap: wrap; }
.pl-sup.on { border-color: var(--red); background: #fff7f7; }
.pl-sup .inp { flex: 1; min-width: 140px; }
.pl-oth { margin: 0; padding-left: 20px; font-size: 13px; } .pl-oth.off { opacity: .45; text-decoration: line-through; }
.pl-btn { margin-left: 6px; }
.pr-x { border-left: 3px solid var(--line); } .pr-x-line { border-left-color: var(--red); }

/* --- X --- Flýtispjald á verkbeiðni (app/flyti.js): sama spjald og upplýsingaspjald verkbeiðnalistans (.jl-info), flýtur yfir síðunni */
.fly { --teal-bg: var(--st-next-bg); --teal-ink: var(--st-next-ink); }
.fly .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; } .fly .muted { color: var(--muted); } .fly .chip { line-height: 16px; }
.fly .jl-sec dd a { color: var(--ink); }
.fly a.plate { color: var(--ink); text-decoration: none; display: inline-block; } .fly a.plate:hover { background: var(--ink); color: #fff; }
.fly .jl-info { position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: 400px; max-width: 100vw; max-height: none; z-index: 60; margin: 0; border-radius: 0; border-width: 0 0 0 1px; box-shadow: -14px 0 36px rgba(22,24,29,.14); background: #fff; outline: none; animation: fly-in .16s ease-out; }
.fly-back { display: none; }
@keyframes fly-in { from { transform: translateX(18px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fly-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
a.jl-jobno { text-decoration: none; } a.jl-jobno:hover { text-decoration: underline; color: var(--ink); }
.jl-info .jl-act { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line2); padding-top: 10px; margin-top: 10px; }
/* Samhengi: það sem skiptir máli þar sem spjaldið var opnað */
.fly-ctx { margin: 12px 16px 0; padding: 11px 12px 10px; border: 1px solid var(--line); border-radius: 10px; background: #FCFCFA; }
.fly-ctx h3 { margin: 0 0 6px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--grey-ink); font-weight: 700; }
.fly-lead { margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.fly-ctx ul, .fly-bks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fly-g { display: flex; gap: 9px; align-items: flex-start; padding: 6px 0; font-size: 13px; line-height: 1.4; }
.fly-g + .fly-g { border-top: 1px solid var(--line2); }
.fly-ic { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--st-booked-bg); color: var(--st-booked-ink); margin-top: -1px; }
.fly-gt { flex: 1; min-width: 0; overflow-wrap: anywhere; } .fly-gx { color: var(--grey-ink); display: block; }
.fly-ok .fly-ic { background: var(--st-ready-bg); color: var(--st-ready-ink); } .fly-ok .fly-gx { color: var(--st-ready-ink); font-weight: 600; }
.fly-wait .fly-ic, .fly-order .fly-ic { background: var(--st-part-bg); color: var(--st-part-ink); }
.fly-done .fly-ic { background: var(--st-fin); color: var(--st-fin-on); } .fly-done { opacity: .75; }
.fly-ctx[data-flyctx=approval] .fly-ic { background: var(--st-appr-bg); color: var(--st-appr-ink); }
.fly-bk .fly-ic { background: var(--st-info-bg); color: var(--st-info-ink); } .fly-bk.cur b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.fly-bk .fly-gx { display: inline; } .fly-bks .fly-g { font-size: 12.5px; padding: 4px 0; } .fly-bks .fly-g + .fly-g { border-top: 0; }
/* Línur og kort sem opna spjaldið */
[data-flyti] { cursor: pointer; }
.fly-on:not(.blk) { box-shadow: inset 3px 0 0 var(--st-work); background: #F4F8FE; }
.blk.fly-on { outline: 2px solid var(--ink); outline-offset: 1px; z-index: 4; }
.st-row[data-flyti]:hover { background: #FAFAF8; }
.st-row[data-flyti] [data-flyti-open]:hover, .st-row[data-flyti] .plate:hover { text-decoration: underline; }
.st-row[data-flyti] .plate:hover { background: var(--ink); color: #fff; text-decoration: none; }
.fly-link { text-decoration: underline dotted; text-underline-offset: 3px; } .fly-link:hover { color: var(--ink); text-decoration-style: solid; }
.fly-peek { flex: none; width: 34px; height: 34px; margin: -6px -8px -6px 0; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.fly-peek:hover, .fly-peek:focus-visible { background: var(--grey-bg); color: var(--ink); }
@media (max-width: 900px) {
  .fly-back { display: block; position: fixed; inset: 0; background: rgba(22,24,29,.32); z-index: 59; }
  .fly .jl-info { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 86vh; border-radius: 18px 18px 0 0; border-width: 1px 0 0; box-shadow: 0 -12px 36px rgba(0,0,0,.2); animation-name: fly-up; padding-bottom: env(safe-area-inset-bottom); }
  .fly-peek { width: 44px; height: 44px; }
}
@media (min-width: 620px) and (max-width: 900px) { .fly .jl-info { left: 50%; right: auto; transform: translateX(-50%); width: min(560px, 100%); animation: none; } }
@media (prefers-reduced-motion: reduce) { .fly .jl-info { animation: none; } }
/* --- X --- endar */

/* --- T2 --- */
.th-orig.t2-tr { font-size: 12px; margin-top: 2px; }
.th-orig.t2-tr summary { display: inline-block; cursor: pointer; color: var(--muted); border: 1px solid var(--line, #DFDCD3); border-radius: 999px; padding: 0 8px; line-height: 20px; list-style: none; }
.th-orig.t2-tr summary::-webkit-details-marker { display: none; }
.th-orig.t2-tr[open] summary { background: var(--bg-soft, #F0EEE9); }
.t2-en { margin-top: 4px; color: var(--muted); font-style: italic; }
.t2-read select { max-width: 150px; }
/* --- T2 --- endar */
/* --- Y --- Álagsdagatal við bókun (app/alag.js): dagatal næstu vikna, álagsstika á tímalínu */
.alag { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; background: #FBFBFA; container-type: inline-size; }
.alag .al-h { display: flex; align-items: center; gap: 10px; min-height: 30px; }
.alag .al-t, .alag-bar .al-t { font-size: 12.5px; font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.alag .al-rng { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.alag .al-nav { display: inline-flex; gap: 6px; } .alag .al-nav .btn { min-width: 36px; height: 36px; font-size: 18px; padding: 0; justify-content: center; }
.alag .grow, .alag-bar .grow { flex: 1; }
.alag .al-load { padding: 18px 0; font-size: 13px; }
.alag .al-sug { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px 8px 12px; border-radius: 10px; background: var(--st-ready-bg); color: var(--st-ready-ink); font-size: 13.5px; font-weight: 600; }
.alag .al-sug .btn { margin-left: auto; min-height: 36px; } .alag .al-sug.none { background: var(--st-part-bg); color: var(--st-part-ink); font-weight: 500; }
.alag .al-grid { display: grid; grid-template-columns: repeat(var(--alc, 5), minmax(0, 1fr)); gap: 6px; }
.al-day { appearance: none; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 9px 9px; min-height: 76px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; color: var(--ink); min-width: 0; position: relative; }
.al-day:hover:not(:disabled) { border-color: #B9BAB5; }
.al-day:focus-visible { outline: 2px solid var(--st-work); outline-offset: 1px; }
.al-day.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.al-day.best:not(.on) { border-color: var(--st-ready); }
.al-day:disabled { cursor: default; background: var(--bg); color: var(--muted); }
.al-day.past:not(.closed) { opacity: .6; }
.al-day .al-dt { font-size: 12.5px; color: var(--muted); display: flex; align-items: baseline; gap: 4px; white-space: nowrap; font-weight: 500; }
.al-day .al-dt b { color: var(--ink); font-weight: 700; } .al-day.today .al-dt b::after { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--st-work); margin-left: 4px; vertical-align: middle; }
.al-day .al-wm { margin-left: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--st-part); color: var(--st-part-on); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; align-self: center; }
.al-day .al-hh { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-day .al-hh small { font-weight: 500; color: var(--muted); font-size: 11px; } .al-day .al-dt i { font-style: normal; }
.al-day .al-kk { display: flex; flex-direction: column; gap: 1px; font-size: 11.5px; color: var(--muted); font-weight: 500; min-width: 0; }
.al-day .al-kk span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-day .al-kk .full { color: var(--st-part-ink); font-weight: 700; } .al-day .al-kk .over, .al-over { color: var(--st-late-ink); font-weight: 700; }
.al-bar { position: relative; display: block; height: 8px; border-radius: 4px; background: var(--line2); overflow: hidden; flex: 0 0 auto; }
.al-bar.big { height: 10px; border-radius: 5px; flex: 1 1 120px; min-width: 90px; max-width: 320px; }
.al-bar.closed { background: repeating-linear-gradient(135deg, var(--line2) 0 4px, transparent 4px 8px); }
.al-bar i { position: absolute; top: 0; bottom: 0; left: 0; }
.al-bar i.ok, .al-leg i.ok { background: var(--st-ready); } .al-bar i.warn, .al-leg i.warn { background: var(--st-part); } .al-bar i.over, .al-leg i.over { background: var(--st-late); }
.al-bar i.a, .al-leg i.add { background: repeating-linear-gradient(135deg, var(--ink) 0 3px, #6E7079 3px 6px); }
.al-bar i.a { box-shadow: -1px 0 0 #fff; }
.al-bar u { position: absolute; top: -1px; bottom: -1px; width: 2px; background: #fff; box-shadow: 0 0 0 1px var(--ink); text-decoration: none; }
.alag .al-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11.5px; color: var(--muted); }
.alag .al-leg span { display: inline-flex; align-items: center; gap: 5px; } .alag .al-leg i { width: 14px; height: 6px; border-radius: 3px; display: inline-block; }
.al-det { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.al-det .al-dh { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.al-det .al-facts { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13px; color: var(--muted); } .al-det .al-facts b { color: var(--ink); }
.al-ks { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.al-k { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 9px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; color: var(--ink); white-space: nowrap; }
.al-k em { font-style: normal; color: var(--muted); font-size: 11.5px; }
.al-k.full { background: var(--st-part-bg); color: var(--st-part-ink); box-shadow: none; } .al-k.full em { color: inherit; }
.al-k.over { background: var(--st-late-bg); color: var(--st-late-ink); box-shadow: none; } .al-k.over em { color: inherit; }
.al-with { font-size: 13.5px; font-weight: 700; } .al-with.warn { color: var(--st-part-ink); } .al-with.over { color: var(--st-late-ink); }
.al-warn { margin: 0; padding: 8px 12px 8px 28px; border-radius: 10px; background: var(--st-part-bg); color: var(--st-part-ink); font-size: 13px; font-weight: 500; display: flex; flex-direction: column; gap: 3px; }
.al-ok { font-size: 13px; color: var(--st-ready-ink); font-weight: 600; }
details.alag.fold { padding: 0; background: #fff; } details.alag.fold > summary { cursor: pointer; padding: 10px 12px; display: flex; gap: 10px; align-items: center; min-height: 44px; list-style-position: inside; }
details.alag.fold[open] { padding: 0 12px 12px; } details.alag.fold[open] > summary { padding: 10px 0; } details.alag.fold .al-h { justify-content: flex-end; margin-top: -6px; }
.njcard .alag .al-day { font-weight: 400; } .njcard .hint[data-nj-who] { margin-top: -6px; }
/* Mjótt svæði (sími, mjór dálkur): aðeins dagur, stika og klukkustundir í reitnum; sundurliðunin er í valda deginum fyrir neðan */
@container (max-width: 460px) { .al-day { padding: 7px 6px 8px; min-height: 64px; } .al-day .al-kk, .al-day .al-hh small, .al-day .al-dt i { display: none; } .al-day .al-hh { font-size: 11.5px; } .al-day .al-dt { font-size: 12px; } .alag .al-grid { gap: 4px; } }
@container (max-width: 330px) { .al-day .al-hh { display: none; } .al-day { min-height: 52px; } }
.alag-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; padding: 10px 16px; border-bottom: 1px solid var(--line2); font-size: 13px; min-height: 44px; }
.alag-bar .al-bn { font-variant-numeric: tabular-nums; white-space: nowrap; } .alag-bar .al-bn.warn b { color: var(--st-part-ink); } .alag-bar .al-bn.over, .alag-bar .al-bn.over b { color: var(--st-late-ink); }
.alag-bar .al-cars { white-space: nowrap; color: var(--muted); font-weight: 500; } .alag-bar .al-cars.al-over { color: var(--st-late-ink); }
@media (max-width: 700px) { .alag-bar { padding: 10px 12px; } .alag-bar .al-bar.big { flex-basis: 100%; max-width: none; order: 5; } }
@media print { .alag, .alag-bar { display: none; } }
.tlu .tlghost.utake { top: 3px; height: 38px; display: flex; align-items: center; padding: 0 8px; font-weight: 700; white-space: nowrap; overflow: hidden; }
/* Sjálfvirkur afgangsbútur: framhald sem er ekki hafið fær fjólubláa útlínu (eins og „næsti vinnudagur“) */
.blk.cont.s-pending { outline: 2px dashed #6B4FBB; outline-offset: -2px; }
.ctxmenu .y-piece { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 6px; max-width: 250px; } .ctxmenu .y-piece p { margin: 0 0 2px; font-size: 13px; }
.y-home { display: flex; flex-direction: column; gap: 8px; } .y-home-r { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .y-home-n { margin: 0; font-size: 13px; }
.y-hbreak { margin: 8px 0 4px; }
/* --- Y --- endar */
/* --- K --- Staðsetning bílsins: kort, gluggi „Hvar er bíllinn?“ og Stillingar › Bílastæði (app/stadsetning.js) */
.pk-ov { position: fixed; inset: 0; background: rgba(20,20,20,.45); z-index: 950; display: flex; align-items: center; justify-content: center; padding: 16px; }
.pk-dlg { background: #fff; border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.28); width: min(760px, 100%); max-height: 94vh; overflow: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.pk-h { margin: 0; font-size: 20px; } .pk-note, .pk-cur { margin: 0; font-size: 14px; color: var(--muted); } .pk-cur b { color: var(--ink); }
.pk-map { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #EEF0EC; line-height: 0; }
.pk-svg { width: 100%; height: auto; display: block; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.pk-bg { fill: #EEF0EC; } .pk-gl { stroke: #DDE0D9; stroke-width: 1; }
.pk-st-o { stroke: #C9CCC4; stroke-width: 54; stroke-linecap: round; } .pk-st { stroke: #fff; stroke-width: 48; stroke-linecap: round; }
.pk-st-n { font: 600 20px Inter, system-ui, sans-serif; fill: #8A8D94; letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
.pk-mk rect, .pk-mk path { fill: var(--ink); } .pk-mk text { font: 700 19px Inter, system-ui, sans-serif; fill: var(--ink); }
.pk-z { cursor: pointer; outline: none; }
.pk-z rect { fill: rgba(15,124,138,.16); stroke: var(--st-site); stroke-width: 3; transition: fill .12s; }
.pk-z:hover rect, .pk-z:focus-visible rect { fill: rgba(15,124,138,.34); stroke-width: 5; }
.pk-z.on rect { fill: var(--st-site); } .pk-z.on .pk-zn { fill: var(--st-site-on); stroke: none; }
.pk-zn { font: 700 22px Inter, system-ui, sans-serif; fill: var(--st-site-ink); paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: 5px; stroke-linejoin: round; pointer-events: none; }
.pk-ghost { fill: rgba(15,124,138,.2); stroke: var(--st-site); stroke-width: 3; stroke-dasharray: 10 8; pointer-events: none; }
.pk-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-b { min-height: 52px; padding: 0 18px; font-size: 15px; font-weight: 600; } .pk-b.on { background: var(--st-site); border-color: var(--st-site); color: var(--st-site-on); }
.pk-other { display: flex; gap: 8px; align-items: flex-end; } .pk-other label { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.pk-other .inp, .pk-other .btn { min-height: 48px; } .pk-foot { display: flex; justify-content: flex-end; } .pk-foot .btn { min-height: 44px; }
.pk-chip { display: inline-flex; align-items: center; gap: 4px; } .pk-chip svg { flex: none; }
.tpark { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; } .pk-tb { min-height: 48px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; font-weight: 600; text-decoration: none; }
.jl-park, .fly-park { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jl-park { font: 600 11.5px/18px Inter, system-ui, sans-serif; background: var(--st-info-bg); color: var(--st-info-ink); border-radius: 4px; padding: 0 6px; margin-left: 6px; display: inline-block; vertical-align: 1px; }
.jp-f[data-fact=parking] .v b { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.pk-set .pk-s-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .pk-file { position: relative; overflow: hidden; cursor: pointer; } .pk-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pk-s-hint { font-size: 12.5px; } .pk-s-h { margin: 8px 0 0; font-size: 14px; }
.pk-map.edit .pk-svg { cursor: crosshair; touch-action: none; } .pk-map.edit .pk-z { cursor: move; }
.pk-s-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; } .pk-s-list li { display: flex; gap: 8px; align-items: center; } .pk-s-list .inp { flex: 1; max-width: 420px; }
.pk-s-list li.on .inp { border-color: var(--st-site); box-shadow: 0 0 0 2px var(--st-site-bg); }
.pk-s-no { width: 24px; height: 24px; border-radius: 50%; background: var(--st-site-bg); color: var(--st-site-ink); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
@media (max-width: 560px) { .pk-ov { align-items: flex-end; padding: 0; } .pk-dlg { border-radius: 14px 14px 0 0; width: 100%; } .pk-other { flex-direction: column; align-items: stretch; } }
/* --- K --- endar */

/* --- A2: áminningar --- */
.am-banner { border-left: 4px solid var(--urg, #c0392b); display: flex; flex-direction: column; gap: 8px; }
.am-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.am-tx { flex: 1 1 220px; display: flex; flex-direction: column; min-width: 0; }
.am-tx small, .am-wait { color: var(--muted); }
.am-bt, .am-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.am-when { display: flex; gap: 12px; flex-wrap: wrap; }
.am-chs { border: 1px solid var(--line, #ddd); border-radius: 8px; padding: 8px 10px; display: flex; gap: 6px 16px; flex-wrap: wrap; }
.am-ch { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.am-prefs { margin-bottom: 12px; }
.am-wait { display: block; margin: 4px 0; }
@media (max-width: 560px) { .am-bt .btn { flex: 1; } }

/* --- L --- */
.gdesc { display: block; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 2px; white-space: pre-line; }
.wi-desc-l { display: block; margin: 4px 0; }
.wi-desc-l > span { font-size: 12px; color: var(--muted); }
.wi-desc { width: 100%; font-size: 13px; }
.cm-inv { display: block; font-size: 12px; margin-top: 2px; }
.inv-notes p { margin: 2px 0; }
.paper.sample { position: relative; }
.paper.sample::before { content: attr(data-sample); position: fixed; top: 45%; left: 50%; transform: translate(-50%, -50%) rotate(-30deg); font-size: 64px; font-weight: 800; letter-spacing: 2px; color: rgba(120, 120, 120, .22); white-space: nowrap; pointer-events: none; z-index: 5; }
@media print { .paper.sample::before { position: fixed; color: rgba(120, 120, 120, .28); } }
/* --- L --- endar */

/* --- S2 --- */
.sms-box .sms-list{display:flex;flex-direction:column;gap:6px;margin:8px 0}
.sms-m{border:1px solid var(--line,#ddd);border-radius:8px;padding:6px 8px;font-size:13px}
.sms-mh{display:flex;gap:8px;flex-wrap:wrap;align-items:center;width:100%;background:none;border:0;padding:0;text-align:left;cursor:pointer;font:inherit;color:inherit}
.sms-body{margin:6px 0 0;white-space:pre-wrap;font-size:13px}
.sms-sched{font-size:12.5px;color:var(--muted,#666);margin:4px 0}
.sms-pause{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:8px}
.bsms{display:inline-block;font-size:10px;font-weight:700;padding:0 5px;border-radius:6px;background:#b45309;color:#fff;margin-left:4px}
.nowm-l{display:inline-flex;align-items:center;gap:6px;margin-right:12px;font-size:14px}
.paper.nowm::before{display:none!important}
.paper.nowm[data-sample]::after{display:none!important}
@media print{.nowm-l{display:none}}
