@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/roboto-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Roboto';font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/roboto-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Roboto';font-style:normal;font-weight:500;font-display:swap;src:url(/static/fonts/roboto-latin-ext-500-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Roboto';font-style:normal;font-weight:500;font-display:swap;src:url(/static/fonts/roboto-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:swap;src:url(/static/fonts/roboto-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Roboto';font-style:normal;font-weight:700;font-display:swap;src:url(/static/fonts/roboto-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* Visual language shared with the WMS: Roboto, blue primary, white cards on a light grey ground, 12px radii, uppercase small labels. */
[hidden] { display: none !important; }
:root {
  --pri: #2450C8; --pri-h: #1A3C9C; --tint: #EAF0FD; --tint-fg: #1E46B4; --link: #1E46B4;
  --ink: #14212B; --ink2: #3B4A58; --muted: #5B6B7A; --faint: #8796A5;
  --line: #E1E6EE; --line2: #C9D2DE; --bg: #F5F7FB; --card: #FFFFFF; --we: #F1F4F8;
  --red: #B42318; --red-bg: #FEF3F2; --green: #1F8A4C; --green-d: #067647; --green-bg: #DCFAE6;
  --amber: #B54708; --amber-bg: #FEF0C7; --violet: #5B3FB5; --violet-bg: #EEE9FB;
  --go: var(--green); --warn: var(--amber); --stop: var(--red);
  --f: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
  font-family: var(--f); color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.4; font-family: var(--f); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #8FB0F5; outline-offset: 2px; }
main { padding: 22px 28px 48px; max-width: 1500px; margin: 0 auto; }
h1 { font-size: 24px; font-weight: 700; margin: 2px 0 16px; letter-spacing: -.01em; }
h1 .muted.small { font-size: 14px; font-weight: 400; margin-left: 6px; }
h2 { font-size: 16px; font-weight: 700; margin: 0 0 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
h2 a.small { font-weight: 500; }
h3 { font-size: 14px; font-weight: 700; margin: 16px 0 8px; }
.small { font-size: 12px; font-weight: normal; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mono { font-family: var(--mono); word-break: break-all; }

/* top bar (layout like inEwi: home icon, sections with dropdowns, timer and menu on the right) */
.top { display: flex; align-items: center; gap: 16px; background: var(--card); border-bottom: 1px solid var(--line); padding: 0 16px; height: 60px; position: sticky; top: 0; z-index: 20; }
.brand { font-weight: 700; font-size: 16px; color: var(--ink); display: flex; align-items: center; gap: 10px; white-space: nowrap; margin-right: 6px; }
.brand:hover { text-decoration: none; }
.lt-mark { width: 30px; height: 30px; flex: 0 0 auto; display: block; }
.lt-name { font-size: 19px; font-weight: 500; letter-spacing: -.01em; color: #1C1A3B; }
.lt-name b { font-weight: 700; }
.mainnav { display: flex; gap: 2px; flex: 1; align-items: center; }
.ni { color: var(--ink2); padding: 0 10px; height: 40px; display: inline-flex; align-items: center; gap: 7px; border-radius: 10px; white-space: nowrap; font-weight: 500; cursor: pointer; list-style: none; user-select: none; }
.ni::-webkit-details-marker { display: none; }
.ni:hover { background: var(--bg); text-decoration: none; color: var(--ink); }
.ni.on { background: var(--tint); color: var(--tint-fg); font-weight: 700; }
.ni.ico { width: 40px; justify-content: center; padding: 0; }
.ni svg:last-child:not(:first-child) { opacity: .6; margin-left: -2px; }
details.dd { position: relative; }
details.dd > summary { list-style: none; }
details.dd > summary::-webkit-details-marker { display: none; }
details.dd[open] > summary.ni { background: var(--bg); color: var(--ink); }
.dd-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(20, 33, 43, .14); padding: 6px; z-index: 30; display: flex; flex-direction: column; }
details.dd.right .dd-menu { left: auto; right: 0; min-width: 250px; }
.dd-menu a, .dd-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 40px; padding: 0 12px; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: 14px; white-space: nowrap; }
.dd-menu a:hover, .dd-btn:hover { background: var(--bg); text-decoration: none; }
.dd-menu a.on { background: var(--tint); color: var(--tint-fg); font-weight: 700; }
.dd-menu form { margin: 0; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.dd-btn { width: 100%; border: 0; background: none; cursor: pointer; color: var(--red); text-align: left; }
.dd-head { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: flex; flex-direction: column; gap: 2px; }
.dd-head span { color: var(--muted); font-size: 12px; }
.me { display: flex; gap: 10px; align-items: center; white-space: nowrap; margin-left: auto; }
.me > form { margin: 0; }
.timer { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 5px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.tbtn { width: 34px; height: 34px; border-radius: 17px; border: 0; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.timer.st-work .tbtn { background: var(--red); }
.timer.st-break .tbtn, .timer.st-private .tbtn { background: var(--green); }
.tlab { display: flex; flex-direction: column; line-height: 1.1; }
.tlab small { font-size: 11px; color: var(--muted); }
.timer.st-work .tlab small { color: var(--green-d); } .timer.st-break .tlab small, .timer.st-private .tlab small { color: var(--amber); }
.tlab b { font-size: 15px; font-variant-numeric: tabular-nums; }
.avatar { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 8px 0 4px; border-radius: 22px; cursor: pointer; color: var(--ink2); }
.avatar:hover, details.dd[open] > .avatar { background: var(--bg); }
.ini { width: 36px; height: 36px; border-radius: 18px; background: var(--tint); color: var(--tint-fg); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.badge { background: var(--red); color: #fff; border-radius: 10px; min-width: 20px; height: 20px; padding: 0 6px; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.demo-badge { background: var(--amber-bg); color: var(--amber); font-size: 11px; font-weight: 700; border-radius: 6px; padding: 3px 8px; letter-spacing: .04em; }

/* cards, grids */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; }
.card.narrow { max-width: 440px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; align-items: start; }
.grid2 > .card, .grid2 > div > .card { margin-bottom: 16px; }
details.card > summary { cursor: pointer; font-weight: 500; }
.alertbox { border-color: #F7C1BC; background: var(--red-bg); }

/* forms */
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink2); margin-bottom: 12px; }
label.inline { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 400; }
input, select, button, textarea { font: inherit; }
input, select, textarea { border: 1px solid var(--line2); border-radius: 10px; padding: 0 12px; height: 40px; background: var(--card); color: var(--ink); min-width: 0; font-size: 14px; }
textarea { height: auto; padding: 10px 12px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pri); box-shadow: 0 0 0 3px var(--tint); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; padding: 0; accent-color: var(--pri); }
input.num { width: 76px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row > label { flex: 1; min-width: 130px; }
fieldset.flags { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
fieldset.flags legend { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 4px; }
fieldset.flags label { margin: 0; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.filters h3 { width: 100%; margin: 0; }
.filters label { margin: 0; }
.filters .grow { flex: 1; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border: 1px solid var(--line2); background: var(--card); color: var(--ink); border-radius: 10px; padding: 0 16px; cursor: pointer; white-space: nowrap; font-weight: 500; font-size: 14px; }
.btn:hover { background: var(--bg); text-decoration: none; }
.btn.primary { background: var(--pri); border-color: var(--pri); color: #fff; font-weight: 700; }
.btn.primary:hover { background: var(--pri-h); }
.btn.go { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }
.btn.warn { background: var(--amber); border-color: var(--amber); color: #fff; font-weight: 700; }
.btn.stop, .btn.danger { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }
.btn.go:hover, .btn.warn:hover, .btn.stop:hover, .btn.danger:hover { filter: brightness(.92); }
.btn.big { height: 56px; font-size: 17px; font-weight: 700; padding: 0 24px; min-width: 170px; border-radius: 12px; }
.btn.wide { width: 100%; }
.btn.small { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
button.link { background: none; border: 0; color: var(--link); cursor: pointer; padding: 0; font-weight: 500; }
button.link.danger, .danger { color: var(--red); }

/* messages */
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.flash.ok { background: var(--green-bg); color: var(--green-d); }
.flash.err { background: var(--red-bg); color: var(--red); border: 1px solid #F7C1BC; }
.warn-text { color: var(--amber); font-weight: 700; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 9px 10px; border-bottom: 1px solid var(--line); background: var(--card); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td, .tbl tr:hover > td { background: #FAFBFD; }
.tbl.compact td, .tbl.compact th { padding: 7px 8px; }
.tbl tr.today td { background: #F3F6FE; }
.tbl tr.deleted td { opacity: .45; text-decoration: line-through; }
.tbl tr.we td, .tbl td.we, .tbl th.we { background: var(--we); }
.tbl tr.tot td { font-weight: 700; background: var(--bg); }
.tbl td form { margin: 0; }
.tbl a.dl { color: inherit; }
.scroll { overflow-x: auto; }
.rep td { white-space: nowrap; font-variant-numeric: tabular-nums; }
td.ot { color: var(--violet); font-weight: 700; }
td.neg, .neg { color: var(--red); }
td.num, .num { font-variant-numeric: tabular-nums; }

/* status, tags, chips */
.status { font-size: 26px; font-weight: 700; margin: 2px 0 18px; }
.status.st-work { color: var(--green); } .status.st-break, .status.st-private { color: var(--amber); } .status.st-off { color: var(--muted); }
.punch { display: flex; gap: 10px; flex-wrap: wrap; }
.punch form { margin: 0; }
.st { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.st-work { color: var(--green-d); } span.st.st-work { background: var(--green-bg); }
.st-break, .st-private { color: var(--amber); } span.st.st-break, span.st.st-private { background: var(--amber-bg); }
.st-off { color: var(--muted); } span.st.st-off { background: #F1F4F8; }
.rs { display: inline-flex; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.rs-pending { background: var(--amber-bg); color: var(--amber); } .rs-approved { background: var(--green-bg); color: var(--green-d); }
.rs-rejected { background: #FEE4E2; color: var(--red); } .rs-cancelled { background: #F1F4F8; color: var(--faint); }
.role { display: inline-flex; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 8px; background: #F1F4F8; color: var(--ink2); }
.role.r-admin { background: var(--tint); color: var(--tint-fg); } .role.r-manager { background: var(--amber-bg); color: var(--amber); } .role.r-leader { background: var(--green-bg); color: var(--green-d); }
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; background: #F1F4F8; margin: 2px; font-size: 12px; font-weight: 500; }
.chip.off { background: #F1F4F8; border: 1px dashed var(--line2); }
.tag { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 16px; font-size: 13px; font-weight: 500; background: var(--card); color: var(--ink2); border: 1px solid var(--line2); }
a.tag:hover { text-decoration: none; border-color: var(--pri); color: var(--pri); }
.tag.on { background: var(--pri); color: #fff; border-color: var(--pri); }
.tagbar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; align-items: center; }

/* stat tiles */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stats > div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stats b { display: block; font-size: 28px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats b.small-b { font-size: 16px; }
.stats span { color: var(--muted); font-size: 13px; }
.stats .alert { border-color: #F7C1BC; background: var(--red-bg); } .stats .alert b { color: var(--red); }

/* toolbars, tabs */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar form { margin: 0; display: flex; gap: 8px; align-items: center; }
.toolbar label, .toolbar form label { margin: 0; }
.toolbar h1 { margin: 0 12px 0 0; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.tabs { display: inline-flex; gap: 0; margin-bottom: 14px; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; background: var(--card); }
.tabs a { padding: 0 16px; height: 38px; display: inline-flex; align-items: center; color: var(--ink2); font-weight: 500; }
.tabs a + a { border-left: 1px solid var(--line2); }
.tabs a:hover { text-decoration: none; background: var(--bg); }
.tabs a.on { background: var(--pri); color: #fff; font-weight: 700; }
.tabs.nomb { margin: 0 6px 0 0; }
.legend { margin-bottom: 10px; color: var(--ink2); }
.w100 { width: 100%; }

/* schedule */
.sched td.who { min-width: 180px; white-space: nowrap; }
.sched td.cell { min-width: 116px; padding: 5px; position: relative; }
.sched select.shift { width: 100%; height: 34px; padding: 0 20px 0 6px; font-size: 12px; font-weight: 500; border-color: transparent; background-color: var(--bg); background-position: right 5px center; background-size: 10px; border-radius: 8px; }
.sched select.shift.unpub { border: 2px dashed var(--amber); }
.sched select.shift.offday { background-color: #F1F4F8; color: var(--ink2); font-weight: 700; }
.sched .lv { font-size: 11px; font-weight: 700; color: var(--violet); background: var(--violet-bg); border-radius: 8px; padding: 0 6px; height: 24px; line-height: 24px; margin-bottom: 4px; display: block; width: 100%; box-sizing: border-box; text-align: center; }
.sched .lv.pending { opacity: .6; border: 1px dashed var(--violet); }
.sched .rv { font-size: 10px; color: var(--red); font-weight: 700; line-height: 1.2; margin-bottom: 3px; white-space: normal; }
.sched .hol { color: var(--red); font-size: 10px; text-transform: none; }
.sched td.sum { font-weight: 700; white-space: nowrap; }
.sched .pos { font-size: 10px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.sched .daylink { position: absolute; right: 4px; bottom: 2px; font-size: 13px; color: var(--faint); text-decoration: none; }
.msched th, .msched td { padding: 3px; text-align: center; font-size: 11px; }
.msched th.who, .msched td.who { text-align: left; min-width: 180px; padding: 6px 10px; white-space: nowrap; font-size: 13px; }
.msched td.mc a { display: block; min-width: 36px; height: 32px; line-height: 32px; color: var(--ink); text-decoration: none; position: relative; border-radius: 6px; }
.msched td.mc a:hover { outline: 2px solid var(--pri); }
.msched td.mc.unpub a { outline: 1px dashed var(--amber); }
.msched .sh { display: inline-block; border-radius: 5px; padding: 0 4px; font-size: 10px; font-weight: 500; line-height: 20px; }
.msched .offc, .msched .autow { color: var(--muted); font-weight: 700; font-size: 10px; }
.msched .autow { opacity: .55; }
.msched .lv { display: inline-block; font-size: 10px; font-weight: 700; line-height: 20px; color: var(--violet); background: var(--violet-bg); border-radius: 5px; padding: 0 6px; min-width: 26px; box-sizing: border-box; }
.msched .lv.pending { opacity: .6; }
.msched .rvdot { position: absolute; top: -2px; right: 1px; color: var(--red); font-style: normal; font-weight: 700; font-size: 11px; line-height: 1; }
details.actions .actgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 12px; margin-top: 12px; }
details.actions form { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 0; }
.ulist { max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-top: 8px; }
.ulist label { margin: 4px 0; }
.dows { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0 12px; }

/* leave requests */
.req { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.req h3 { margin: 0 0 4px; } .req p { margin: 2px 0; }
.decide { display: flex; gap: 8px; align-items: center; }

/* login */
.login { max-width: 400px; margin: 9vh auto; }
.login h1 { text-align: center; display: flex; justify-content: center; gap: 12px; align-items: center; margin-bottom: 22px; }
.login .card { padding: 22px; }
.login .demo { margin-top: 18px; }
.login .demo h3 { margin-top: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.login .demo form { margin: 0 0 8px; }
.demo-acc { text-align: left; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; height: auto !important; width: 100%; }
.demo-acc span { font-size: 12px; color: var(--muted); font-weight: 400; }
.demo-acc:hover { border-color: var(--pri); }

/* QR cards, photos, downloads */
.qrgrid { display: grid; grid-template-columns: repeat(auto-fill, 85.6mm); gap: 6mm; }
.qrcard { width: 85.6mm; height: 54mm; border: 1px solid var(--line2); border-radius: 3mm; display: flex; align-items: center; gap: 4mm; padding: 4mm; background: #fff; break-inside: avoid; }
.qrcard img { width: 40mm; height: 40mm; }
img.thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; display: block; }
img.thumb.big { width: 64px; height: 64px; }
.photogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.photogrid .ph { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: var(--ink); font-size: 12px; }
.photogrid .ph:hover { text-decoration: none; border-color: var(--pri); }
.photogrid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #EEF1F5; }
.photogrid .ph div { padding: 10px; }
.downloads .row > label { flex: 0 1 200px; }
.dlgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.dlgrid > div { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dlgrid > div b { width: 100%; font-size: 15px; } .dlgrid > div span { width: 100%; margin: -2px 0 4px; }
details.inline-edit summary { cursor: pointer; color: var(--link); font-size: 12px; font-weight: 500; }
details.inline-edit form { margin-top: 8px; }
form.addev { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }

/* attendance month grid */
.pmonth th, .pmonth td { text-align: center; padding: 4px 2px; min-width: 32px; }
.pmonth td.who, .pmonth th.who { text-align: left; min-width: 170px; white-space: nowrap; padding-left: 10px; }
.pmonth .we { background: var(--we); } .pmonth td.today { box-shadow: inset 0 0 0 2px var(--pri); }
.pm { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 30px; padding: 3px 4px; border-radius: 6px; font-weight: 700; font-size: 12px; text-decoration: none; color: var(--ink); line-height: 1.1; }
.pm:hover { text-decoration: none; box-shadow: 0 0 0 2px var(--pri); }
.pm small { font-weight: 400; font-size: 10px; }
.pm-o { background: var(--green-bg); color: var(--green-d); } .pm-ot { background: var(--violet-bg); color: var(--violet); } .pm-short { background: var(--amber-bg); color: var(--amber); }
.pm-x { background: #FEE4E2; color: var(--red); } .pm-err { background: var(--red); color: #fff; } .pm-lv { background: var(--tint); color: var(--tint-fg); }
.pm-q { background: #F1F4F8; } .pm-empty { color: #C9D2DE; font-weight: 400; }
.legend .pm { min-width: 26px; margin-left: 10px; }

/* in-page dialogs */
.ui-ov { position: fixed; inset: 0; background: rgba(20, 33, 43, .45); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.ui-box { background: var(--card); color: var(--ink); border-radius: 16px; padding: 22px; width: min(440px, 100%); box-shadow: 0 18px 40px rgba(20, 33, 43, .22); }
.ui-msg { margin: 0 0 14px; font-size: 17px; font-weight: 500; line-height: 1.4; }
.ui-in { width: 100%; height: 48px !important; font-size: 17px !important; }
.ui-err { color: var(--red); font-size: 13px; min-height: 18px; margin-top: 6px; }
.ui-row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.ui-row .btn { height: 44px; min-width: 100px; }

@media print {
  .top, .noprint, .flash { display: none !important; }
  body { background: #fff; } main { padding: 0; max-width: none; }
  .card { border: 0; padding: 0; }
}
@media (max-width: 720px) {
  .top { flex-wrap: wrap; height: auto; padding: 8px 10px; gap: 6px; }
  .brand { flex: 1; } .lt-name { font-size: 17px; }
  .mainnav { order: 3; flex: 1 1 100%; flex-wrap: wrap; }
  .ni { padding: 0 8px; } .ni span:not(.badge) { font-size: 13px; }
  .tlab small { display: none; }
  .dd-menu { min-width: 200px; }
  main { padding: 14px 12px 40px; }
  h1 { font-size: 21px; }
  .grid2 { grid-template-columns: 1fr; }
  .card { padding: 14px; }
  .btn.big { width: 100%; }
  .punch form { flex: 1 1 100%; }
  details.actions .actgrid { grid-template-columns: 1fr; }
}
.pending-card td { white-space: nowrap; }
.actions-cell { white-space: nowrap; } .actions-cell form { display: inline-flex; margin: 0 4px 0 0; } .addrow { margin-top: 12px; } .tbl td > input, .tbl td > select { height: 34px; width: 100%; }

/* brand: LOGIC in the logo's own letters, Time in Roboto */
.brand { gap: 0; }
.lt-word { height: 22px; width: auto; display: block; flex: 0 0 auto; }
.lt-time { font-size: 27px; font-weight: 400; color: #1C1A3B; letter-spacing: -.01em; margin-left: 4px; line-height: 1; position: relative; top: 1px; }
.brand .demo-badge { margin-left: 10px; }
.lt-login { display: flex; justify-content: center; margin: 0 0 22px; } .lt-login .lt-lock { --h: 84px; }
.locchip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 18px; background: var(--bg); color: var(--ink2); font-weight: 500; font-size: 13px; cursor: default; list-style: none; }
summary.locchip { cursor: pointer; } summary.locchip::-webkit-details-marker { display: none; }

/* page header, filters and lists (same pieces as in the WMS) */
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.pagehead h1 { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pagehead .sub { margin: 4px 0 0; }
.pagehead-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.backlink { display: inline-block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.count { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--tint); color: var(--tint-fg); font-size: 13px; font-weight: 700; }
.fbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.search { flex: 1 1 320px; display: flex; flex-direction: row; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 12px; background: var(--card); color: var(--faint); margin: 0; }
.search:focus-within { border-color: var(--pri); box-shadow: 0 0 0 3px var(--tint); color: var(--pri); }
.search input { border: 0; height: 100%; flex: 1; padding: 0; font-size: 15px; background: transparent; box-shadow: none !important; }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; background: var(--card); height: 44px; }
.seg a { display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; color: var(--ink2); font-weight: 500; }
.seg a + a { border-left: 1px solid var(--line2); }
.seg a:hover { background: var(--bg); text-decoration: none; }
.seg a.on { background: var(--pri); color: #fff; font-weight: 700; }
.seg a span { font-size: 12px; opacity: .75; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 0 0 16px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line2); background: var(--card); color: var(--ink2); font-size: 14px; font-weight: 500; white-space: nowrap; }
.pill:hover { border-color: var(--pri); color: var(--pri); text-decoration: none; }
.pill.on { background: var(--pri); border-color: var(--pri); color: #fff; }
.pill .c { font-size: 12px; opacity: .75; }
.selbar { position: sticky; top: 68px; z-index: 6; display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 8px 8px 8px 16px; border-radius: 12px; margin-bottom: 12px; box-shadow: 0 8px 20px rgba(20,33,43,.18); }
.selbar span { font-weight: 700; margin-right: auto; }
.card.flush { padding: 4px 0; overflow-x: auto; }
.card.flush .tbl th:first-child, .card.flush .tbl td:first-child { padding-left: 20px; }
.card.flush .tbl th:last-child, .card.flush .tbl td:last-child { padding-right: 20px; }
.people td { padding-top: 10px; padding-bottom: 10px; }
.people tbody tr { cursor: pointer; }
.people tbody tr:hover td { background: #F7F9FD; }
.people tr.picked td { background: var(--tint) !important; }
.people tr.inactive td { opacity: .55; }
.people .ck { width: 44px; } .people .ck input { width: 18px; height: 18px; cursor: pointer; }
.person { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.person:hover { text-decoration: none; } .person:hover b { color: var(--pri); }
.person span:last-child { display: flex; flex-direction: column; } .person small { color: var(--muted); font-size: 12px; }
.av { width: 36px; height: 36px; border-radius: 18px; background: var(--tint); color: var(--tint-fg); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: 0 0 36px; text-transform: uppercase; }
.mono-id { font-variant-numeric: tabular-nums; font-weight: 500; color: var(--ink2); }
.right { text-align: right; }
.empty { text-align: center; color: var(--muted); padding: 28px; margin: 0; }
.hint { margin: -4px 0 14px; }
.drop { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 110px; border: 2px dashed var(--line2); border-radius: 12px; background: var(--bg); color: var(--ink2); font-size: 15px; cursor: pointer; margin-bottom: 14px; position: relative; }
.drop.over, .drop:hover { border-color: var(--pri); color: var(--pri); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; height: auto; }
.cols { display: flex; flex-wrap: wrap; gap: 4px; }
.row-err td { background: #FFF8F7; }
@media (max-width: 720px) { .brand .lt-lock { --h: 34px; } .locchip { display: none; } .seg { width: 100%; } .seg a { flex: 1; justify-content: center; padding: 0 8px; } }
.mfa h2 { margin-bottom: 8px; } .mfa p { margin: 0 0 10px; }
.steps { padding-left: 20px; margin: 0 0 10px; color: var(--ink2); } .steps li { margin-bottom: 6px; }
.mfa-qr { display: block; width: 200px; height: 200px; margin: 6px auto 8px; border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: #fff; }
.mfa-key { display: block; font-family: var(--mono); letter-spacing: .04em; margin-top: 4px; }
.mfa-code { width: 100%; height: 56px !important; font-size: 28px !important; text-align: center; letter-spacing: .3em; font-variant-numeric: tabular-nums; margin: 6px 0 12px; }
.demo-hint { background: var(--amber-bg); color: var(--amber); border-radius: 8px; padding: 8px 12px; font-size: 13px; }
.center { text-align: center; }
.chip.req { background: var(--pri); color: #fff; font-weight: 600; }

.cpick { display: inline-block; }
.cpick-btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 12px; background: #fff; cursor: pointer; color: var(--muted); }
.cpick-btn .sw { width: 26px; height: 26px; border-radius: 8px; border: 1px solid rgba(20,33,43,.12); }
.cpick .cgrid { display: grid; grid-template-columns: repeat(6, 32px); gap: 6px; padding: 10px; min-width: 0; }
.cgrid .sw { margin: 0; width: 32px; height: 32px; border-radius: 8px; border: 1px solid rgba(20,33,43,.10); cursor: pointer; position: relative; display: block; }
.cgrid .sw:hover { transform: scale(1.08); box-shadow: 0 2px 6px rgba(20,33,43,.18); }
.cgrid .sw input { position: absolute; opacity: 0; pointer-events: none; }
.cgrid .sw.on { outline: 2px solid var(--ink); outline-offset: 2px; }
.tplc { display: flex; align-items: center; gap: 10px; }
.tplc .cpick-btn { height: 34px; padding: 0 6px; } .tplc .cpick-btn .sw { width: 20px; height: 20px; }
.lbl { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 13px; font-weight: 500; color: var(--ink2); }

.cardhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.yearnav { display: flex; align-items: center; gap: 8px; } .yearnav b { min-width: 44px; text-align: center; }
.kindp { display: inline-flex; height: 22px; align-items: center; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--tint); color: var(--tint-fg); }
.kindp.co { background: var(--violet-bg); color: var(--violet); }

/* LogicTime lockup (logo C1): mark + LOGIC over "time" */
.lt-lock { --h: 40px; display: inline-flex; align-items: center; gap: calc(var(--h) * .2); line-height: 1; }
.lt-lock .lt-mark { width: var(--h); height: var(--h); display: block; flex: 0 0 auto; }
.lt-st { display: flex; flex-direction: column; align-items: flex-start; }
.lt-logic { height: calc(var(--h) * .5); width: auto; display: block; }
.lt-t { font-family: var(--f); font-weight: 500; color: #5DC1CD; font-size: calc(var(--h) * .46); line-height: .78; letter-spacing: -.01em; margin-top: calc(var(--h) * .1); }
details.more { margin: 10px 0 14px; } details.more > summary { cursor: pointer; color: var(--link); font-weight: 600; font-size: 14px; padding: 6px 0; }
.cardhead.pad { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.seg.small a { height: 34px; font-size: 13px; padding: 0 12px; }
.tbl.att tr.quiet td { color: var(--muted); }
.evd summary { cursor: pointer; color: var(--link); font-size: 13px; white-space: nowrap; }
.evd ul { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; min-width: 240px; }
.evd li { padding: 2px 0; } .evd li span { display: inline-block; width: 86px; color: var(--muted); font-variant-numeric: tabular-nums; }
.evd li.e { color: var(--red); } .evd li.w { color: var(--amber); }
.stats .warn { border-color: #F5D9A8; background: var(--amber-bg); } .stats .warn b { color: var(--amber); }
.linkcard { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); text-decoration: none !important; }
.linkcard:hover { border-color: var(--pri); } .linkcard b { display: block; font-size: 16px; } .linkcard .go { font-size: 22px; color: var(--pri); }

.rq { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.rq-ok { background: var(--green-bg); color: var(--green-d); } .rq-expiring { background: var(--amber-bg); color: var(--amber); }
.rq-expired { background: var(--red-bg); color: var(--red); } .rq-missing { background: #F1F4F8; color: var(--ink2); }
.reqt tr.na td { color: var(--muted); } .reqt td { vertical-align: middle; } .reqt label { margin: 0; }
.todo-card .todo { padding: 10px 0; border-top: 1px solid var(--line); } .todo-card .todo:first-of-type { border-top: 0; }
.todo-card .todo > b { display: block; margin-bottom: 4px; } .rq-line { margin: 4px 0; font-size: 14px; line-height: 1.6; } .rq-line .rq { margin-right: 6px; }
#leavetypes td input[name^="name"] { min-width: 260px; }
#leavetypes td input.num, #reqs td input.num { width: 84px; }

.actions-cell form { margin: 0 6px 0 0 !important; vertical-align: middle; } .actions-cell form:last-child { margin-right: 0 !important; }
.btn.small.danger { font-weight: 700; }

.fbar.pad { padding: 12px 16px; margin: 0; flex-wrap: wrap; } .fbar select { height: 44px; } .nowrap { white-space: nowrap; }
.tbl.arch td { vertical-align: top; }
/* events: clickable rows + detail dialog */
.tbl.evt tr.evrow { cursor: pointer; } .tbl.evt tr.evrow:hover td { background: var(--tint); }
.tbl.evt tr.deleted td { color: var(--muted); } .tbl.evt tr.deleted td:nth-child(-n+4) { text-decoration: line-through; }
.delnote { display: block; color: var(--red); font-weight: 600; text-decoration: none; }
dialog.evd { border: 0; border-radius: 16px; padding: 22px 24px; width: min(520px, 94vw); box-shadow: 0 24px 60px rgba(20,33,43,.25); color: var(--ink); }
dialog.evd::backdrop { background: rgba(20,33,43,.45); }
.evd h2 { margin: 0 0 4px; } .evd h3 { font-size: 15px; margin: 18px 0 8px; } .evd-x { position: absolute; right: 14px; top: 10px; } .evd-x button { font-size: 20px; color: var(--muted); }
.evd-info { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; margin: 12px 0; font-size: 14px; } .evd-info dt { color: var(--muted); } .evd-info dd { margin: 0; }
.evd-photo { width: 100%; max-height: 260px; object-fit: contain; border-radius: 12px; background: #000; margin: 4px 0 8px; }
.delbox { background: var(--red-bg); color: var(--red); border-radius: 10px; padding: 10px 12px; font-weight: 600; font-size: 14px; margin: 8px 0; }
.evform label { margin-bottom: 10px; } .evform .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.delform { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.evd-links { margin-top: 14px; display: flex; gap: 8px; }
.addev .dd-menu.evform { padding: 14px; min-width: 320px; gap: 0; }
.fbar label.inline { margin: 0; }

.stats.tiles > a { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.stats.tiles > a:hover { border-color: var(--pri); box-shadow: 0 2px 10px rgba(36,80,200,.12); }
.stats.tiles > a.on { border-color: var(--pri); box-shadow: 0 0 0 2px var(--pri) inset; }
.stats.tiles > a span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.stats.tiles > a.alert { border-color: #F4C7C3; background: var(--red-bg); } .stats.tiles > a.alert b { color: var(--red); }
.stats.tiles > a.warn { border-color: #F5D9A8; background: var(--amber-bg); } .stats.tiles > a.warn b { color: var(--amber); }
.filterinfo { margin: -6px 0 12px; font-size: 14px; }
.tbl.logt td { vertical-align: top; } .tbl.logt tr.daysep td { background: var(--bg); font-weight: 700; font-size: 13px; color: var(--ink2); padding: 6px 12px; }
.lcat { display: inline-flex; padding: 2px 8px; border-radius: 6px; font-size: 13px; font-weight: 600; background: #F1F4F8; white-space: nowrap; }
.lcat-ev { background: var(--tint); color: var(--tint-fg); } .lcat-lv { background: var(--green-bg); color: var(--green-d); } .lcat-sc { background: var(--amber-bg); color: var(--amber); }
.lcat-us { background: var(--violet-bg); color: var(--violet); } .lcat-se { background: var(--red-bg); color: var(--red); }
.tbl.lts td.c, .tbl.lts th.c { text-align: center; } .tbl.lts tr.inactive td { color: var(--muted); }

.todo-p { font-size: 14px; text-decoration: underline dotted; text-underline-offset: 3px; }
.done-list ul { list-style: none; margin: 6px 0 0; padding: 0; } .done-list li { padding: 4px 0; font-size: 14px; }
.reqt .lbl-w { display: inline-block; min-width: 64px; }
[hidden] { display: none !important; }
.evform .row2 > label { min-width: 0; } .evform input, .evform select { width: 100%; box-sizing: border-box; }
.evform label.inline input { width: auto; }
.timer .tlab b { font-variant-numeric: tabular-nums; min-width: 52px; display: inline-block; }
.cancelinfo { margin-top: 4px; color: var(--ink2); }

.backlink.autoback { margin-bottom: 4px; } h2.sub { font-size: 16px; margin: 4px 0 10px; color: var(--ink2); }

dialog.evd { width: min(600px, 94vw); }
.evd-phlink { position: relative; display: block; margin: 6px 0 10px; border-radius: 12px; overflow: hidden; background: #0d1117; cursor: zoom-in; }
.evd-phlink .evd-photo { display: block; width: 100%; max-height: 420px; object-fit: contain; margin: 0; border-radius: 0; }
.evd-phlink .zoom { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.55); color: #fff; border-radius: 8px; padding: 2px 8px; font-size: 16px; }
.evd-nophoto { background: var(--bg); border: 1px dashed var(--line2); border-radius: 12px; padding: 22px; text-align: center; color: var(--muted); margin: 6px 0 10px; }
.st.st-late { background: var(--amber-bg); color: var(--amber); } .st.st-missing { background: var(--red-bg); color: var(--red); }

/* one filter pattern everywhere: inputs row (.fbar) + labelled chip rows (.pills with .plabel) */
div.filters { display: block; margin-bottom: 14px; } .filters .fbar { margin-bottom: 10px; } .filters .pills { margin: 0 0 8px; }
.plabel { display: inline-block; min-width: 64px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-right: 4px; }
.filters.pad { padding: 12px 16px 4px; margin: 0; border-bottom: 1px solid var(--line); }

.usage2 th, .usage2 td { vertical-align: middle; } .usage2 th.lim { min-width: 150px; } .usage2 .tname { font-size: 11px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); white-space: normal; }
.usage2 td.who { white-space: nowrap; } .usage2 tbody tr:nth-child(even) td, .usage2 tr:nth-child(even) td { background: #FAFBFD; }
.usage2 .left b { font-size: 18px; font-variant-numeric: tabular-nums; } .usage2 .left span { font-size: 12px; color: var(--muted); }
.usage2 .bar { position: relative; display: flex; height: 6px; border-radius: 3px; background: #EEF1F6; overflow: hidden; margin: 4px 0 3px; max-width: 160px; }
.usage2 .bar i { display: block; background: var(--pri); } .usage2 .bar u { display: block; background: #9DB5F0; text-decoration: none; }
.usage2 .sub { font-size: 12px; color: var(--muted); } .usage2 td.over .left b { color: var(--red); } .usage2 td.over .bar i { background: var(--red); }
.usage2 td.oth .chip { margin: 2px; }
span.pill.on { cursor: default; }
.filters .search { flex: 0 1 360px; } .filters .fbar select { max-width: 260px; }

/* row 32/33: controls in a form row share one baseline and one height */
.row > .btn, .row > button, .row > a.btn, .row > .cpick, .row > .dd { margin-bottom: 12px; }
.row > label.inline { margin-bottom: 12px; min-height: 40px; }
.cpick-btn { height: 40px; border-radius: 10px; }
.fbar select, .fbar input { height: 40px; }
.fbar .btn { height: 40px; }
.filters, .filters * { font-family: inherit; }
.filters input, .filters select, .filters .btn, .fbar input, .fbar select { font-size: 14px; }
/* reports: numbers right-aligned with equal digit width, headers follow their column */
.rep th, .rep td { text-align: right; }
.rep th:first-child, .rep td:first-child, .rep td.l, .rep th.l { text-align: left; }
.tbl td, .tbl th { font-variant-numeric: tabular-nums; }
/* deadlines page */
.dl-month h2 { margin-bottom: 8px; }
.dl-tbl { table-layout: fixed; }
.dl-tbl td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-tbl td.dl-d { width: 110px; font-variant-numeric: tabular-nums; } .dl-tbl td.dl-w { width: 120px; }
.dl-tbl td:nth-child(3) { width: 30%; } .dl-tbl td:nth-child(5) { width: 18%; }
.tpl-tbl td input[type=time] { width: 130px; } .tpl-tbl td:nth-child(2) input { min-width: 140px; }
.login-foot { margin-bottom: 4px; } a.kiosk-link { font-size: 12px; color: var(--faint, #8796A5); }

/* one select look in every browser: own arrow 12px from the edge (Safari/Chrome put the native one at the very border) */
select:not([multiple]) { -webkit-appearance: none; appearance: none; padding-right: 34px; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px; cursor: pointer; }
select:not([multiple]):disabled { cursor: default; opacity: .6; }
select::-ms-expand { display: none; }
/* sortable column headers (schedule) */
.sortable th { padding: 0; }
.sortb { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; min-height: 100%; padding: 10px 8px; cursor: pointer; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; border-radius: 8px; }
.sortb:hover { background: var(--tint); }
.sortb:focus-visible { outline: 2px solid var(--pri); outline-offset: -2px; }
.sortb .sarr { flex: 0 0 12px; width: 12px; height: 12px; opacity: .35; background: no-repeat center / 12px
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 9l4-4 4 4M8 15l4 4 4-4'/%3E%3C/svg%3E"); }
.sortb.on { color: var(--pri); }
.sortb.on .sarr { opacity: 1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232450C8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M6 11l6-6 6 6'/%3E%3C/svg%3E"); }
.sortb.on.desc .sarr { transform: rotate(180deg); }
.msched .sortb { padding: 8px 4px 8px 6px; gap: 2px; text-align: left; }
.msched .sortb .sarr { flex-basis: 10px; width: 10px; height: 10px; background-size: 10px; }
.msched th.who .sortb { padding: 10px 8px; gap: 6px; }
.msched th.who .sortb .sarr { flex-basis: 12px; width: 12px; height: 12px; background-size: 12px; }
.sortable thead th, .sortable thead th.who { padding: 0; } .msched thead th.who { font-size: 11px; }
.dd-menu a.dd-ver { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 4px; }
.cl-ver ul { margin: 6px 0 0; padding-left: 20px; } .cl-ver li { margin: 4px 0; line-height: 1.45; }
.pmonth td .pm:not(.pm-empty) { min-height: 32px; min-width: 32px; box-sizing: border-box; }   /* leave / absence badges as big as worked-day badges */
.mysched tr.dim td { color: var(--muted); } .chip.lvc { background: var(--violet-bg); color: var(--violet); font-weight: 700; }
.teams-tbl td:first-child { white-space: nowrap; } .teams-tbl .tsub { color: var(--muted); margin-right: 6px; }
.teams-tbl td:first-child input { width: calc(100% - 24px); min-width: 140px; }

/* ---------- news and events ---------- */
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
@media (max-width: 900px) { .news-layout { grid-template-columns: 1fr; } .news-side { order: -1; } }
.news-feed { display: flex; flex-direction: column; gap: 14px; }
a.news-card { display: flex; gap: 18px; color: inherit; text-decoration: none; padding: 16px; margin: 0; transition: box-shadow .15s, border-color .15s; }
a.news-card:hover { border-color: var(--pri); box-shadow: 0 4px 18px rgba(28, 26, 59, .08); }
a.news-card.unread { border-left: 4px solid var(--pri); }
.nc-img { width: 220px; height: 140px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; background: var(--bg); }
@media (max-width: 640px) { a.news-card { flex-direction: column; } .nc-img { width: 100%; height: 180px; } }
.nc-body { min-width: 0; } .nc-body h2 { margin: 6px 0 4px; font-size: 18px; } .nc-body p { margin: 4px 0 0; }
.nc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nk { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--tint); color: var(--pri); }
.nk-event { background: #E7F6EC; color: #1E7B34; } .nk-pin { background: #FFF4D6; color: #8A5A00; } .nk-new { background: var(--pri); color: #fff; }
.nc-when { font-weight: 600; color: var(--ink); }
.ev-row { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.ev-row:first-of-type { border-top: 0; } .ev-row span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ev-date { flex: 0 0 46px; height: 46px; border-radius: 10px; background: #E7F6EC; color: #1E7B34; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.ev-date b { font-size: 18px; } .ev-date small { font-size: 11px; text-transform: uppercase; }
.news-article { max-width: 820px; margin: 0 auto; padding: 28px 32px; }
.news-article h1 { margin: 10px 0 14px; font-size: 28px; line-height: 1.2; }
.na-img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 12px; margin: 6px 0 16px; }
.na-text { font-size: 16px; line-height: 1.65; } .na-text p { margin: 0 0 12px; } .na-text ul { margin: 0 0 12px; padding-left: 22px; }
.ev-box { display: flex; flex-wrap: wrap; gap: 28px; background: #F2FBF5; border: 1px solid #CFEBD9; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
.ev-box small { display: block; color: var(--muted); font-size: 12px; } .ev-box b { font-size: 16px; }
.na-admin { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; flex-wrap: wrap; } .na-admin .grow { flex: 1; }
.news-form { max-width: 820px; display: flex; flex-direction: column; gap: 4px; }
.news-form textarea { font: inherit; line-height: 1.5; }
.news-form .grow { flex: 1 1 220px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 12px; align-self: flex-start; }
.seg label { margin: 0; } .seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 8px 16px; cursor: pointer; font-weight: 600; } .seg input:checked + span { background: var(--pri); color: #fff; }
.img-pick { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 4px 0 14px; } .img-pick .lbl { font-weight: 600; width: 100%; font-size: 13px; }
.img-pick img { width: 180px; height: 110px; object-fit: cover; border-radius: 10px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.dash-news .dn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.dn-item { display: flex; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none; align-items: flex-start; }
.dn-item:hover { border-color: var(--pri); } .dn-item.unread { border-left: 4px solid var(--pri); }
.dn-item img, .dn-ph { width: 84px; height: 64px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.dn-ph { display: flex; align-items: center; justify-content: center; font-size: 26px; background: var(--tint); }
.dn-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .dn-txt b { line-height: 1.25; } .dn-new { color: var(--pri); }
/* ---------- org chart ---------- */
.org-top { display: flex; justify-content: center; margin-bottom: 12px; }
.org-root { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #1C1A3B; color: #fff; border-radius: 14px; padding: 12px 22px; }
.org-root small { opacity: .75; } .org-root .muted { color: #C9CCE0 !important; }
ul.org-tree { list-style: none; margin: 0; padding-left: 26px; position: relative; }
ul.org-rootlist { padding-left: 0; }
ul.org-tree > li { position: relative; padding: 6px 0 0 0; }
ul.org-tree ul.org-tree > li::before { content: ''; position: absolute; left: -16px; top: 0; bottom: 0; border-left: 2px solid var(--line); }
ul.org-tree ul.org-tree > li:last-child::before { bottom: auto; height: 30px; }
ul.org-tree ul.org-tree > li::after { content: ''; position: absolute; left: -16px; top: 30px; width: 14px; border-top: 2px solid var(--line); }
details.org-node { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
details.org-node > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 10px 14px; }
details.org-node > summary::-webkit-details-marker { display: none; }
details.org-node[open] > summary { border-bottom: 1px solid var(--line); }
.on-name { font-weight: 700; font-size: 15px; } .on-lead { color: var(--pri); font-weight: 600; } .on-count { color: var(--muted); font-size: 13px; margin-left: auto; }
.org-people { list-style: none; margin: 0; padding: 8px 14px 10px; columns: 2 220px; } .org-people li { padding: 3px 0; break-inside: avoid; } .org-people .muted { margin-left: 6px; }

.timer.konly { padding-left: 14px; cursor: default; }
.btn.eqbtn { min-width: 150px; font-weight: 600; }

/* ---------- standard buttons and dialogs ---------- */
.btn, .btn.primary { font-weight: 600; }                       /* one text weight for every button */
.btn.eqbtn { font-weight: 600; }
.dlg-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.dlg-foot .grow { flex: 1; }
.evd .evform > .btn { align-self: flex-end; min-width: 120px; }   /* submit of a form in a dialog: right side, like the footer */
.evd .evform { display: flex; flex-direction: column; }
.evd-x button { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.evd-x button:hover { background: var(--bg); }
.evd-x button:focus:not(:focus-visible) { outline: none; }
.yearnav .btn { min-width: 40px; padding: 0 10px; }
.dlgrid > div { align-items: flex-start; align-content: flex-start; } .dlgrid > div span { min-height: 18px; }
.pending-box .reqrow { padding: 14px 16px; border-top: 1px solid var(--line); } .pending-box .cardhead + .reqrow { border-top: 0; }
.empty-row { margin: 0; padding: 16px; }
/* checkboxes in table cells keep their own size (the full-width rule is for text fields) */
.tbl td > input[type=checkbox], .tbl td > input[type=radio] { width: 18px; height: 18px; }
/* settings tables fit their card: narrower fields, buttons never stick out */
#teams .teams-tbl select { min-width: 0; width: 100%; }
#teams .teams-tbl td:first-child input { min-width: 0; width: calc(100% - 24px); }
#teams .teams-tbl td:first-child { white-space: nowrap; }
.card > .tbl, .card > .scroll { max-width: 100%; }
.row > label.inline { align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin-bottom: 12px; flex: 0 1 auto; }
/* top bar on mid-size screens: shed icons/labels instead of pushing the avatar off-screen */
@media (max-width: 1360px) and (min-width: 721px) { .mainnav .ni > svg:first-child { display: none; } .ni { padding: 0 9px; } }
@media (max-width: 1180px) and (min-width: 721px) { .locchip .lc-name { display: none; } .locchip { padding: 0 10px; } .tlab small { display: none; } .demo-badge { display: none; } }
@media (max-width: 1040px) and (min-width: 721px) {
  .top { flex-wrap: wrap; height: auto; padding: 8px 16px; row-gap: 6px; }
  .mainnav { order: 3; flex: 1 1 100%; }
}
.tbl-wrap { overflow-x: auto; max-width: 100%; }
@media print { .tbl-wrap, .scroll { overflow: visible; } }
/* grid columns may shrink below their widest table (the table scrolls instead) */
.grid2 > *, .news-layout > *, .card, .card > form { min-width: 0; }
@media (max-width: 720px) { details.dd.right .dd-menu { right: 0; left: auto; } .mainnav details.dd .dd-menu { max-width: calc(100vw - 24px); } }
/* one button size across the app (the compact one); .big stays for clock-in/kiosk, .wide for full-width form submits */
.btn, .btn.small { height: 30px; padding: 0 12px; font-size: 12px; border-radius: 8px; gap: 5px; }
.btn.big { height: 56px; font-size: 17px; padding: 0 24px; border-radius: 12px; }
.btn.wide { height: 40px; font-size: 14px; border-radius: 10px; }
.row > .btn, .row > button, .row > a.btn, .row > .dd { margin-bottom: 17px; }
.perm-help { margin-top: 12px; } .perm-help > summary { cursor: pointer; color: var(--pri); font-weight: 600; font-size: 13px; }
.perm-tbl td:first-child { min-width: 220px; } .perm-tbl td, .perm-tbl th { font-size: 13px; } .perm-tbl td.c, .perm-tbl th.c { text-align: center; white-space: nowrap; }
/* view switchers match the compact buttons */
.seg { height: 30px; border-radius: 8px; } .seg a { font-size: 12px; font-weight: 600; padding: 0 12px; } .seg.small a { height: 30px; font-size: 12px; } .seg span { padding: 5px 12px; font-size: 12px; }
.tabs { border-radius: 8px; } .tabs a { height: 30px; padding: 0 12px; font-size: 12px; font-weight: 600; }
.ui-row .btn, .fbar .btn { height: 30px; min-width: 0; }
.perm-tbl th { white-space: normal; font-size: 11px; } .perm-tbl td { font-size: 12px; } .perm-tbl td:first-child { min-width: 170px; } .perm-tbl td.c { white-space: normal; }
.warn-txt { color: var(--amber); font-weight: 600; margin-top: 3px; }
/* settings: section index at the top, sticky under the top bar */
.set-nav { position: sticky; top: 60px; z-index: 10; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0; margin: -6px 0 10px; background: var(--bg); }
.set-nav a { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid var(--line2); background: var(--card); color: var(--ink2); font-size: 12px; font-weight: 600; }
.set-nav a:hover { text-decoration: none; color: var(--ink); background: var(--bg); }
h3.sub { font-size: 14px; margin: 18px 0 6px; } .card > form > h3.sub:first-child { margin-top: 6px; }
main section.card[id], main form.card[id] { scroll-margin-top: 120px; }
#kiosk > form:last-child { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 4px; }
