/* UrsusIT Zeiterfassung – nur app-spezifische Stile; Grunddesign kommt aus ursus-core (assets/core/ursus.css) */
.clock-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 860px) {
.clock-hero { grid-template-columns: 1fr; }
}
.clock-card { text-align: center; padding: 26px 18px; }
.clock-time { font-size: 3rem; font-weight: 700; letter-spacing: .02em; margin: 12px 0 2px; font-variant-numeric: tabular-nums; }
.clock-sub { color: var(--muted); margin-bottom: 18px; }
.clock-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.clock-buttons form { margin: 0; flex: 1 1 200px; max-width: 280px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.timeline li:last-child { border-bottom: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--none); }
.dot-work { background: var(--up); }
.dot-break { background: var(--warn); }
.day-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 110px 110px 40px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.day-row:last-child { border-bottom: 0; }
.day-row.weekend { opacity: .8; }
.day-row.today { background: color-mix(in srgb, var(--brand) 6%, transparent); border-radius: 8px; }
.day-name { font-weight: 600; }
.day-blocks { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .88rem; font-variant-numeric: tabular-nums; }
.day-num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
.day-row { grid-template-columns: 1fr auto; }
.day-blocks { grid-column: 1 / -1; order: 3; }
.day-row .day-num.saldo { display: none; }
}
.dayline { position: relative; height: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; overflow: hidden; margin-top: 4px; }
.dayline span { position: absolute; top: 0; bottom: 0; }
.dayline .seg-work { background: var(--up); }
.dayline .seg-break { background: var(--warn); }
.block-table input[type=time], .block-table select { padding: 7px 9px; font: inherit; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); }
.block-table td { vertical-align: middle; }
.pensum-grid { display: grid; grid-template-columns: repeat(7, minmax(60px, 1fr)); gap: 8px; }
@media (max-width: 600px) {
.pensum-grid { grid-template-columns: repeat(4, 1fr); }
}
.pensum-grid label { margin-bottom: 4px; }
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 10px; }
.live-card { border: 1px solid var(--border); border-left: 4px solid var(--none); border-radius: 10px; padding: 10px 12px; background: var(--surface-2); }
.live-working { border-left-color: var(--up); }
.live-break { border-left-color: var(--warn); }
.live-absent { border-left-color: var(--info); }
.live-name { font-weight: 600; margin-bottom: 4px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.live-name a { color: var(--text); }
.cal-wrap { overflow-x: auto; }
.cal { border-collapse: separate; border-spacing: 2px; width: 100%; font-size: .8rem; }
.cal th { font-weight: 600; color: var(--muted); text-align: center; padding: 2px; white-space: nowrap; font-size: .72rem; }
.cal th.cal-name, .cal .cal-name { text-align: left; padding-right: 10px; min-width: 120px; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.cal th.cal-name a { color: var(--text); font-weight: 600; font-size: .85rem; }
.cal td { height: 34px; min-width: 26px; text-align: center; vertical-align: middle; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); position: relative; }
.cal-week td { min-width: 70px; height: 44px; }
.cal td b { font-size: .78rem; }
.cal-h { display: block; font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-we { opacity: .85; }
.cal th.cal-today { color: var(--brand-2); }
.cal td.cal-today { outline: 2px solid var(--brand-2); outline-offset: -2px; }
.cal-free, .cal-none { background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 4px, var(--border) 4px, var(--border) 5px) !important; }
.cal-none { opacity: .4; }
.cal-vac { background: var(--info-soft) !important; color: var(--info); border-color: color-mix(in srgb, var(--info) 40%, transparent) !important; }
.cal-sick { background: var(--down-soft) !important; color: var(--down); border-color: color-mix(in srgb, var(--down) 40%, transparent) !important; }
.cal-other { background: var(--maint-soft) !important; color: var(--maint); border-color: color-mix(in srgb, var(--maint) 40%, transparent) !important; }
.cal-hol { background: var(--surface-2); color: var(--muted); font-weight: 600; }
.cal-req { border-style: dashed !important; opacity: .75; }
.cal-oncall { box-shadow: inset 0 -4px 0 var(--warn); }
.cal-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--up); }
.cal-key { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 4px; border-radius: 5px; border: 1px solid var(--border); background: var(--surface-2); font-weight: 700; font-size: .72rem; margin-left: 8px; }
.cal-month { border-spacing: 1px; }
.cal-month td { min-width: 22px; height: 30px; }
.cal-month th { font-size: .66rem; padding: 1px; }
.cal-weekend { background: var(--surface) !important; color: var(--muted); font-weight: 600; }
.cal-weekend b { font-size: .68rem !important; letter-spacing: .03em; }
.cal-oncall-we { background: var(--warn-soft) !important; color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent) !important; }
.cal-work { background: var(--up-soft) !important; color: var(--up); border-color: color-mix(in srgb, var(--up) 40%, transparent) !important; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; }
.cal-legend > span { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.cal-legend .cal-key { margin-left: 0; }
.cal td.cal-unusual, .cal-key.cal-unusual { box-shadow: inset 0 0 0 2px var(--warn); background: var(--warn-soft) !important; color: var(--warn); }
.cal td.cal-unusual::after { content: "!"; position: absolute; top: 1px; right: 4px; font-size: .7rem; font-weight: 800; color: var(--warn); }
.job-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.job-buttons .btn-huge { flex: 1 1 180px; max-width: 280px; }
.job-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.job-finish { margin-top: 12px; }
.job-finish > summary { list-style: none; display: inline-flex; max-width: 320px; }
.job-finish > summary::-webkit-details-marker { display: none; }
.seg-table input, .seg-table select { padding: 6px 8px; font: inherit; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); width: 100%; }
.seg-table td { vertical-align: middle; }
.seg-table .w-time { width: 110px; }
.seg-table .w-km { width: 90px; }
