:root{
  --blue:#264a8f; --blue-dark:#1b3870; --blue-soft:#eaf0fa;
  --ink:#1c2433; --muted:#6b7385; --line:#e3e7ef; --bg:#f6f7fa; --card:#fff;
  --green:#1f7a4d; --green-soft:#e3f4ea; --amber:#9a5b00; --amber-soft:#fdf1dc; --red:#b42318; --red-soft:#fde8e6;
  --r:14px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font:16px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--ink);background:var(--bg)}
body.has-tabs{padding-bottom:calc(78px + env(safe-area-inset-bottom))}
a{color:var(--blue)}
h1{font-size:1.6rem;margin:.6em 0 .5em;color:var(--blue)}
h2{font-size:1.05rem;margin:1.6em 0 .6em;color:var(--ink)}
.wrap{max-width:560px;margin:0 auto;padding:0 16px}
.wrap.wide{max-width:1100px}
.top{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5}
.top .wrap{display:flex;align-items:center;justify-content:space-between;height:56px}
.brand img{display:block;height:38px;width:auto}
.muted{color:var(--muted)} .small{font-size:.85rem} .center{text-align:center} .right{text-align:right}
.num{font-variant-numeric:tabular-nums;font-size:1.3rem}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:16px;margin:12px 0}
.stack{display:flex;flex-direction:column;gap:14px}
.row{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}
.row>label{flex:1;min-width:90px}
.row.between{justify-content:space-between;align-items:center}
.row.grow{flex:1;flex-wrap:nowrap;align-items:center}
.wrap-row{flex-wrap:wrap}
label{display:flex;flex-direction:column;gap:6px;font-size:.9rem;font-weight:600;color:var(--ink)}
input,select{font:inherit;font-weight:400;padding:12px;border:1px solid #cfd5e1;border-radius:10px;background:#fff;color:var(--ink);width:100%;min-height:46px}
input:focus,select:focus{outline:2px solid var(--blue);outline-offset:1px;border-color:var(--blue)}
input[type=color]{width:46px;min-width:46px;padding:4px}
fieldset.seg{border:0;padding:0;margin:0;display:flex;gap:8px}
fieldset.seg legend{font-size:.9rem;font-weight:600;margin-bottom:6px;padding:0}
fieldset.seg label{flex:1;flex-direction:row;align-items:center;justify-content:center;gap:8px;border:1px solid #cfd5e1;border-radius:10px;padding:12px;font-weight:500;cursor:pointer}
fieldset.seg label:has(input:checked){border-color:var(--blue);background:var(--blue-soft);color:var(--blue)}
fieldset.seg input{width:auto;min-height:0;margin:0}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font:inherit;font-weight:600;background:var(--blue);color:#fff;border:1px solid var(--blue);border-radius:12px;padding:12px 18px;min-height:48px;cursor:pointer;text-decoration:none}
.btn:hover{background:var(--blue-dark)}
.btn:disabled{opacity:.45;cursor:not-allowed}
.btn.ghost{background:#fff;color:var(--blue)}
.btn.ghost:hover{background:var(--blue-soft)}
.btn.danger{color:var(--red);border-color:#e7b6b1}
.btn.small{min-height:40px;padding:8px 14px;font-size:.92rem}
.btn.tiny{min-height:36px;padding:6px 10px;font-size:.85rem}
.btn.big{width:100%;min-height:64px;font-size:1.2rem}
.link{background:none;border:0;color:var(--muted);font:inherit;cursor:pointer;padding:8px}
.x{background:none;border:0;color:var(--muted);font-size:1.4rem;line-height:1;cursor:pointer;padding:4px 8px}
.flash{padding:12px 14px;border-radius:12px;margin:12px 0;font-weight:500}
.flash.ok{background:var(--green-soft);color:var(--green)}
.flash.err{background:var(--red-soft);color:var(--red)}
details summary{cursor:pointer;color:var(--blue);list-style:none;min-height:24px}
details summary::-webkit-details-marker{display:none}
details[open] summary{margin-bottom:14px}

/* Stempel */
.punch{text-align:center;padding:26px 18px}
.punch .status{color:var(--muted);margin-bottom:10px}
.punch .timer{font-size:2.6rem;font-weight:700;font-variant-numeric:tabular-nums;color:var(--green);margin-bottom:14px}
.btn.in{background:var(--green);border-color:var(--green);min-height:88px;font-size:1.4rem;border-radius:18px}
.btn.in:hover{background:#18633e}
.btn.out{background:#fff;color:var(--red);border:2px solid var(--red);min-height:88px;font-size:1.4rem;border-radius:18px}
.btn.out:hover{background:var(--red-soft)}
.punch.is-in{border-color:#b9e0c8;background:linear-gradient(#f3fbf6,#fff)}
.hint{margin:12px 0 0;font-size:.9rem;color:var(--muted);min-height:1.4em}
.hint.err{color:var(--red);font-weight:600}
.hint.ok{color:var(--green);font-weight:600}

/* Vagter */
.day{font-weight:700;font-size:.85rem;text-transform:capitalize;color:var(--muted);margin:14px 0 6px}
.shift{display:flex;gap:12px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-left:5px solid var(--c);border-radius:10px;padding:10px 12px;margin:6px 0;color:var(--ink);text-decoration:none;position:relative}
.shift .t{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.shift .d{font-size:.92rem}
.shift.open{border-style:dashed;border-left-style:solid;background:#fbfcfe}
.shift form{position:absolute;top:2px;right:2px}
a.shift:hover{border-color:var(--blue)}
.weeknav{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0}
.week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.week .col{background:#fff;border:1px solid var(--line);border-radius:12px;padding:6px 8px;min-height:120px}
.week .col.today{border-color:var(--blue);box-shadow:0 0 0 1px var(--blue)}
.week .col .day{margin:4px 0}
.week .shift{flex-direction:column;gap:2px;padding:6px 8px;padding-right:22px}
.week .shift .d{font-size:.8rem}
@media (max-width:860px){.week{grid-template-columns:1fr}.week .col{min-height:0}}

/* Lister */
.list{display:flex;flex-direction:column;gap:8px}
.item{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 14px;color:var(--ink);text-decoration:none}
a.item:hover{border-color:var(--blue)}
.item.inactive{opacity:.55}
.tag{display:inline-block;font-size:.75rem;font-weight:600;padding:3px 8px;border-radius:99px;background:#eef1f6;color:var(--muted);white-space:nowrap}
.tag.ok{background:var(--green-soft);color:var(--green)}
.tag.warn{background:var(--amber-soft);color:var(--amber)}
.tag.note{background:var(--blue-soft);color:var(--blue)}
.progress{height:8px;border-radius:99px;background:#e6eaf2;overflow:hidden;margin:12px 0 6px}
.progress div{height:100%;background:var(--green)}

/* Godkendelse */
.summary{display:flex;gap:12px}
.summary>div{flex:1;display:flex;flex-direction:column}
.ts{display:flex;flex-direction:column;gap:6px}
.tsrow{display:grid;grid-template-columns:1.6fr 1fr 1fr auto;gap:10px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.tsrow .st{text-align:right}
form.inline{display:flex;gap:6px;align-items:center}
form.inline input{width:72px;min-height:38px;padding:6px 8px;text-align:center}
.ok-card{background:var(--green-soft);border-color:#b9e0c8;color:var(--green);font-weight:600}
@media (max-width:600px){.tsrow{grid-template-columns:1fr auto}.tsrow .got{grid-column:1}.tsrow .hrs{grid-column:2;grid-row:1}.tsrow .st{grid-column:2;grid-row:2}}

/* Login */
.dog{display:block;width:96px;height:auto;margin:28px auto 0}

/* Bundmenu */
.tabs{position:fixed;left:0;right:0;bottom:0;display:flex;justify-content:center;background:#fff;border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);z-index:10}
.tabs a{flex:1;max-width:130px;display:flex;flex-direction:column;align-items:center;gap:3px;padding:9px 4px 8px;color:var(--muted);text-decoration:none;font-size:.72rem;font-weight:600}
.tabs a.on{color:var(--blue)}
.tabs svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
