/* Schichtkalender – Kalender, Urlaub, Team (Ergänzung zu app.css) */

/* --- Farbpalette ---------------------------------------------------- */
.clr-00f5ff { --c: #00f5ff; }
.clr-00ff88 { --c: #00ff88; }
.clr-ff00ff { --c: #ff00ff; }
.clr-ffd23f { --c: #ffd23f; }
.clr-ff3d6e { --c: #ff3d6e; }
.clr-7c5cff { --c: #7c5cff; }
.clr-ff8a00 { --c: #ff8a00; }
.clr-3d8bff { --c: #3d8bff; }
.clr-7cf9c6 { --c: #7cf9c6; }
.clr-8a90b8 { --c: #8a90b8; }

/* --- Allgemeine Ergänzungen ----------------------------------------- */
textarea {
  width: 100%; padding: 0.65rem 0.8rem; font: inherit; color: var(--text); resize: vertical;
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
}
textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15); }
input[type=date], input[type=time] {
  width: 100%; padding: 0.6rem 0.7rem; font: inherit; color: var(--text); color-scheme: dark;
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
}
.mono { font-family: var(--mono); letter-spacing: 0.05em; }
.grid.tight { gap: 0.8rem; }
.grow { flex: 1; min-width: 0; }
.mobile-only { display: none; }
.icon-btn.active { color: var(--cyan); border-color: var(--border); }
.notice-info { color: var(--cyan); border-color: rgba(34, 197, 94, 0.35); background: rgba(34, 197, 94, 0.06); }
.notice-hol { color: var(--yellow); border-color: rgba(255, 210, 63, 0.4); background: rgba(255, 210, 63, 0.06); display: flex; gap: 0.5rem; align-items: center; }
.notice-abs { color: var(--c); border-color: var(--c); background: rgba(0, 0, 0, 0.2); display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.ico-xs { width: 13px; height: 13px; vertical-align: -2px; }
fieldset { border: 1px solid var(--border-soft); margin: 0; }
legend { padding: 0 0.4rem; color: var(--muted); font-size: 0.85rem; display: flex; align-items: center; gap: 0.3rem; }
details summary { cursor: pointer; color: var(--cyan); }
details[open] summary { margin-bottom: 0.8rem; }
details.sub-card { margin-top: 1rem; }
[hidden] { display: none !important; }

/* --- Chips & Kennzeichen -------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.9em; height: 1.65em;
  padding: 0 0.4em; border-radius: 7px; font-weight: 700; font-size: 0.8rem; line-height: 1;
  color: #111111; background: var(--c, var(--cyan)); box-shadow: 0 0 10px color-mix(in srgb, var(--c, var(--cyan)) 45%, transparent);
  white-space: nowrap;
}
.chip-lg { font-size: 1.15rem; height: 2.2em; min-width: 2.4em; border-radius: 10px; }
.chip-ghost { background: transparent; color: var(--muted); border: 1px dashed var(--border-soft); box-shadow: none; }
.chip-btn { border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700; height: 2.1em; min-width: 2.6em; }
.chip-btn.selected { border-color: #fff; transform: scale(1.1); }
.chip-clear { background: rgba(255, 61, 110, 0.15); color: var(--red); border-color: rgba(255, 61, 110, 0.5); box-shadow: none; }
.abs {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.8em; height: 1.5em; padding: 0 0.35em;
  border-radius: 999px; font-size: 0.72rem; font-weight: 700; color: var(--c); border: 1px solid var(--c);
  background: color-mix(in srgb, var(--c) 14%, transparent);
}
.tag { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; padding: 0.15rem 0.55rem; border-radius: 999px;
  color: var(--c, var(--yellow)); border: 1px solid currentColor; margin: 0.15rem 0; }
.tag-hol { color: var(--yellow); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); }
.legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; font-size: 0.85rem; color: var(--muted); }
.legend > span { display: inline-flex; align-items: center; gap: 0.4rem; }
.legend-hol { color: var(--yellow); border-bottom: 2px solid var(--yellow); }

/* --- Kopfzeile mit Blättern ------------------------------------------ */
.cal-head { display: flex; align-items: center; gap: 0.6rem; margin: 0.2rem 0 1rem; flex-wrap: wrap; }
.cal-head h1 { margin: 0; flex: 1; text-align: center; font-size: 1.45rem; min-width: 10rem; }

/* --- Monatsansicht ---------------------------------------------------- */
.month { border-radius: var(--radius); padding: 0.5rem; margin-bottom: 1.2rem; }
.month-row { display: grid; grid-template-columns: 2.1rem repeat(7, minmax(0, 1fr)); gap: 4px; }
.month-row + .month-row { margin-top: 4px; }
.month-weekdays span { text-align: center; color: var(--muted); font-size: 0.78rem; font-weight: 600; padding: 0.3rem 0; }
.kw { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.72rem; }
a.kw:hover { color: var(--cyan); }
.day {
  position: relative; display: flex; flex-direction: column; gap: 3px; min-height: 98px; padding: 0.35rem;
  border-radius: 10px; color: var(--text); background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-soft); overflow: hidden; transition: border-color 0.15s, background 0.15s;
}
.day:hover { border-color: var(--border); background: rgba(34, 197, 94, 0.05); text-shadow: none; }
.day.other { opacity: 0.38; }
.day.weekend { background: rgba(255, 255, 255, 0.045); }
.day.holiday { border-color: rgba(255, 210, 63, 0.45); }
.day.today { border-color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan), 0 0 14px rgba(34, 197, 94, 0.35); }
.day-head { display: flex; align-items: baseline; gap: 0.3rem; min-width: 0; }
.day-num { font-weight: 700; font-size: 0.9rem; }
.day.today .day-num { color: var(--cyan); }
.day-hol { font-size: 0.66rem; color: var(--yellow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-shift { min-height: 1.65em; }
.day-head .abs { margin-left: auto; flex-shrink: 0; }
.day-hol { flex: 1; min-width: 0; }
.kv .chip { color: #111111; }
.kv .abs { color: var(--c); }
.day-events { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ev {
  font-size: 0.7rem; line-height: 1.3; padding: 1px 4px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 12%, transparent);
}
.ev-more { font-size: 0.68rem; color: var(--muted); }
.day-dots { display: none; gap: 3px; }
.day-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.month.quick-mode .day { cursor: crosshair; }
.month.quick-mode .day:hover { border-color: var(--pink); }
.day.busy { opacity: 0.5; }
.day.flash-ok { border-color: var(--green) !important; box-shadow: 0 0 16px rgba(0, 255, 136, 0.5); }
.day.flash-err { border-color: var(--red) !important; box-shadow: 0 0 16px rgba(255, 61, 110, 0.6); }

/* Schnelleintrag */
.quick { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; padding: 0.6rem 0.8rem; border-radius: var(--radius); margin-bottom: 0.8rem; }
.quick-tools { display: none; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.quick.active { border-color: var(--pink); box-shadow: 0 0 18px rgba(255, 0, 255, 0.25); }
.quick.active .quick-tools { display: flex; }
.quick.active [data-quick-toggle] { background: var(--pink); color: #111111; border-color: var(--pink); }
.quick-hint { font-size: 0.85rem; }
.quick.shake { animation: shake 0.35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* --- Wochenansicht ---------------------------------------------------- */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.6rem; margin-bottom: 1.2rem; }
.week-day { display: flex; flex-direction: column; gap: 0.45rem; padding: 0.7rem; border-radius: var(--radius-sm); color: var(--text); min-height: 160px; }
.week-day:hover { text-shadow: none; border-color: var(--cyan); }
.week-day.today { border-color: var(--cyan); box-shadow: 0 0 18px rgba(34, 197, 94, 0.3); }
.week-day.weekend { background: rgba(255, 255, 255, 0.06); }
.week-day-head { display: flex; justify-content: space-between; gap: 0.3rem; flex-wrap: wrap; font-size: 0.9rem; }
.week-shift { display: flex; gap: 0.5rem; align-items: center; font-size: 0.85rem; }
.week-ev { display: flex; flex-direction: column; padding: 0.3rem 0.5rem; border-radius: 6px; font-size: 0.82rem;
  border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); margin-bottom: 0.3rem; }
.week-ev small { color: var(--muted); }
.week-empty { font-size: 0.85rem; }

/* --- Tagesansicht ------------------------------------------------------ */
.type-picker, .kind-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.5rem; }
.type-opt {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.7rem; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid var(--border-soft); background: rgba(0, 0, 0, 0.2); font-size: 0.88rem; line-height: 1.25;
}
.type-opt input { position: absolute; opacity: 0; pointer-events: none; }
.type-opt:has(input:checked) { border-color: var(--cyan); background: rgba(34, 197, 94, 0.08); box-shadow: 0 0 12px rgba(34, 197, 94, 0.25); }
.type-opt:has(input:focus-visible) { outline: 2px solid var(--cyan); }
.ev-list { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.ev-list li a {
  display: flex; flex-direction: column; gap: 0.1rem; padding: 0.6rem 0.8rem; border-radius: var(--radius-sm); color: var(--text);
  border-left: 4px solid var(--c); background: color-mix(in srgb, var(--c) 8%, rgba(0, 0, 0, 0.2));
}
.ev-list li a:hover { text-shadow: none; background: color-mix(in srgb, var(--c) 16%, rgba(0, 0, 0, 0.2)); }
.ev-list.compact li a { padding: 0.45rem 0.7rem; }
.ev-time { font-size: 0.78rem; color: var(--muted); }

/* --- Farbwahl ---------------------------------------------------------- */
.swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { display: block; width: 32px; height: 32px; border-radius: 50%; background: var(--c); border: 3px solid transparent; box-shadow: 0 0 8px var(--c); }
.swatch input:checked + span { border-color: #fff; transform: scale(1.12); }
.swatch input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }

/* --- Schichttypen / Muster --------------------------------------------- */
.type-list, .share-list, .abs-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.type-list a, .abs-list a, .share-list li {
  display: flex; align-items: center; gap: 0.8rem; padding: 0.6rem 0.8rem; border-radius: var(--radius-sm); color: var(--text);
  border: 1px solid var(--border-soft); background: rgba(0, 0, 0, 0.18);
}
.type-list a:hover, .abs-list a:hover { border-color: var(--border); text-shadow: none; }
.type-list li.inactive { opacity: 0.5; }
.share-list form { margin: 0; }
.pattern-strip { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 1rem; }
.pattern-strip .chip { min-width: 2em; }

/* --- Urlaub ------------------------------------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.7rem; margin-bottom: 1rem; }
.stat { display: flex; flex-direction: column; align-items: center; padding: 0.9rem 0.5rem; border-radius: var(--radius); text-align: center; }
.stat-label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-value { font-size: 1.7rem; font-weight: 800; line-height: 1.2; }
.stat-main { border-color: var(--green); box-shadow: 0 0 22px rgba(0, 255, 136, 0.25); }
.stat-main .stat-value { color: var(--green); text-shadow: 0 0 14px rgba(0, 255, 136, 0.5); }
.stat-neg { border-color: var(--red); }
.stat-neg .stat-value { color: var(--red); }
.bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; margin-bottom: 1rem; padding: 0; }
.bar span { display: block; height: 100%; }
.bar-taken { background: var(--green); box-shadow: 0 0 10px var(--green); }
.bar-planned { background: repeating-linear-gradient(45deg, rgba(0, 255, 136, 0.55) 0 6px, rgba(0, 255, 136, 0.25) 6px 12px); }
.abs-list li.past { opacity: 0.6; }
.abs-list a { border-left: 4px solid var(--c); }
.abs-days { font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.abs-list + .legend { margin-top: 1rem; }
.preview { margin: 0; padding: 0.6rem 0.8rem; border-radius: var(--radius-sm); background: rgba(0, 255, 136, 0.06); border: 1px solid rgba(0, 255, 136, 0.3); }
.preview strong { color: var(--green); font-size: 1.15rem; }
.vac-mini { display: flex; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.8rem; }
.vac-mini > div { display: flex; flex-direction: column; align-items: center; }

/* Breitenklassen für Balken (CSP-freundlich, 5er-Schritte) */
.w-0 { width: 0; } .w-5 { width: 5%; } .w-10 { width: 10%; } .w-15 { width: 15%; } .w-20 { width: 20%; }
.w-25 { width: 25%; } .w-30 { width: 30%; } .w-35 { width: 35%; } .w-40 { width: 40%; } .w-45 { width: 45%; }
.w-50 { width: 50%; } .w-55 { width: 55%; } .w-60 { width: 60%; } .w-65 { width: 65%; } .w-70 { width: 70%; }
.w-75 { width: 75%; } .w-80 { width: 80%; } .w-85 { width: 85%; } .w-90 { width: 90%; } .w-95 { width: 95%; } .w-100 { width: 100%; }

/* --- Übersicht ------------------------------------------------------------ */
.today-card { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.today-card .tile-head h2 { flex-wrap: wrap; }
.big-shift { display: flex; align-items: center; gap: 0.8rem; font-size: 1.05rem; }
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.4rem; }
.strip-day {
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 0.5rem 0.2rem; border-radius: var(--radius-sm);
  color: var(--text); border: 1px solid var(--border-soft); background: rgba(0, 0, 0, 0.18);
}
.strip-day:hover { text-shadow: none; border-color: var(--border); }
.strip-day small { color: var(--muted); }
.strip-day.today { border-color: var(--cyan); box-shadow: 0 0 14px rgba(34, 197, 94, 0.3); }
.strip-day.today strong { color: var(--cyan); }
.strip-day.holiday { border-color: rgba(255, 210, 63, 0.5); }
.strip-day.weekend { background: rgba(255, 255, 255, 0.05); }

/* --- Team ------------------------------------------------------------------ */
.team-card { padding: 0.8rem; }
.team-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.team { border-collapse: separate; border-spacing: 2px; font-size: 0.8rem; }
.team th, .team td { text-align: center; padding: 0.25rem 0.1rem; min-width: 2.2rem; border-radius: 6px; }
.team thead th { color: var(--muted); font-weight: 600; line-height: 1.15; }
.team td { background: rgba(255, 255, 255, 0.03); height: 2.4rem; }
.team .we { background: rgba(255, 255, 255, 0.07); }
.team .hol { box-shadow: inset 0 -2px 0 var(--yellow); }
.team thead .hol { color: var(--yellow); }
.team .now { box-shadow: inset 0 0 0 1px var(--cyan); }
.team thead .now { color: var(--cyan); }
.team-name {
  position: sticky; left: 0; z-index: 2; text-align: left !important; white-space: nowrap; max-width: 9rem; overflow: hidden;
  text-overflow: ellipsis; padding: 0 0.6rem !important; background: #0d0d26; font-weight: 600;
}
.team tr.me .team-name { color: var(--cyan); }
.team td .chip { font-size: 0.72rem; min-width: 1.7em; height: 1.55em; }
.team td .dot { display: block; margin: 3px auto 0; }

/* --- Jahresansicht ----------------------------------------------------------- */
.year-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; margin-bottom: 1.2rem; }
.mini-month { border-radius: var(--radius-sm); padding: 0.6rem; }
.mini-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.4rem; flex-wrap: wrap;
  color: var(--text); margin-bottom: 0.35rem; }
.mini-head:hover { color: var(--cyan); }
.mini-head small { font-size: 0.68rem; }
.mini-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; margin-top: 2px; }
.mini-wd span { text-align: center; font-size: 0.62rem; color: var(--muted); }
.mini-day {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 1; min-width: 0; border-radius: 5px;
  font-size: 0.66rem; font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent; position: relative; line-height: 1;
}
a.mini-day:hover { border-color: var(--cyan); text-shadow: none; color: var(--text); }
.mini-day.empty { background: none; }
.mini-day.weekend { background: rgba(255, 255, 255, 0.07); }
.mini-day.shift-day { color: #111111; background: var(--c); font-weight: 800; }
.mini-day.abs-day { color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); border-color: var(--c); }
.mini-day.holiday { border-color: var(--yellow); }
.mini-day.today { box-shadow: 0 0 0 2px var(--cyan), 0 0 10px rgba(34, 197, 94, 0.6); }
.mini-day.has-ev::after {
  content: ""; position: absolute; bottom: 1px; right: 1px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--pink); box-shadow: 0 0 4px var(--pink);
}
.mini-day.demo { display: inline-flex; width: 1.6rem; aspect-ratio: 1; }
@media (max-width: 1100px) { .year-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .year-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .mini-month { padding: 0.4rem; }
  .mini-head small { display: none; }
  .mini-day { font-size: 0.55rem; border-radius: 3px; }
}

.narrow-block { max-width: 680px; }

/* --- Termin Von/Bis ---------------------------------------------------------- */
.from-to { display: flex; flex-direction: column; gap: 0.5rem; }
.from-to-row { display: grid; grid-template-columns: 3rem minmax(0, 1.4fr) minmax(0, 1fr); gap: 0.6rem; align-items: center; }
.from-to-label { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.from-to-row input[hidden] { display: none !important; }
.ev-range { font-size: 0.72rem; color: var(--muted); }
.ev.cont { border-left-style: dashed; }

/* --- Mobil -------------------------------------------------------------------- */
@media (max-width: 820px) {
  .mobile-only { display: inline-flex; }
  .month { padding: 0.25rem; }
  .month-row { grid-template-columns: 1.4rem repeat(7, minmax(0, 1fr)); gap: 2px; }
  .month-row + .month-row { margin-top: 2px; }
  .day { min-height: 64px; padding: 0.2rem; gap: 2px; border-radius: 7px; align-items: center; }
  .day-head { justify-content: center; }
  .day-num { font-size: 0.8rem; }
  .day-hol, .day-events { display: none; }
  .day-dots { display: flex; }
  .day .chip { font-size: 0.68rem; min-width: 1.6em; height: 1.5em; padding: 0 0.25em; }
  .day-head { flex-direction: column; align-items: center; gap: 2px; }
  .day-head .abs { margin-left: 0; font-size: 0.6rem; min-width: 1.5em; height: 1.35em; }
  .day.holiday .day-num { color: var(--yellow); }
  .kw { font-size: 0.6rem; }
  .week { grid-template-columns: 1fr; }
  .week-day { min-height: 0; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-main { grid-column: span 2; }
  .stat-value { font-size: 1.4rem; }
  .cal-head h1 { font-size: 1.2rem; order: -1; flex-basis: 100%; }
  .type-picker, .kind-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-hint { display: none; }
}

/* --- Arbeitszeit (Paket C) ------------------------------------------------------------ */
.btn-row { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.radio-row, .weekday-row { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.weekday-row .check { min-width: 3.4rem; }
.work-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.work-table td small { line-height: 1.25; }
.work-table tr.we td { background: rgba(255, 255, 255, 0.025); }
.work-table tr.today td { box-shadow: inset 0 1px 0 var(--accent), inset 0 -1px 0 var(--accent); }
.work-table tr.pre td { opacity: 0.55; }
.work-table tfoot th { color: var(--text); font-size: 0.85rem; border-top: 2px solid var(--border); }
.work-table tfoot th.num { text-align: right; }
.work-table .chip { padding: 0.05rem 0.4rem; font-size: 0.75rem; }
.neg { color: var(--red); }
.pos { color: var(--accent, var(--green)); }
p.small, .small { font-size: 0.82rem; }
.work-extra .kv li strong .neg, .work-extra .kv li strong .pos { margin-left: 0.35rem; }
@media (max-width: 700px) {
  .hide-sm { display: none; }
  .work-table th, .work-table td { padding: 0.4rem 0.3rem; font-size: 0.8rem; }
}
.work-mini { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.7rem; margin: 0.8rem 0 0; padding-top: 0.7rem; border-top: 1px solid var(--border-soft); }
.work-mini a { display: inline-flex; align-items: center; gap: 0.35rem; }
.work-mini small { flex-basis: 100%; }
/* Arbeitszeit-Tabelle bleibt auch am Handy eine echte Tabelle (die allgemeine Karten-Ansicht passt hier nicht) */
@media (max-width: 760px) {
  .table.work-table { display: table; width: 100%; }
  .table.work-table thead { display: table-header-group; }
  .table.work-table tbody { display: table-row-group; }
  .table.work-table tfoot { display: table-footer-group; }
  .table.work-table tr { display: table-row; padding: 0; }
  .table.work-table td, .table.work-table th { display: table-cell; width: auto; text-align: left; border-bottom: 1px solid var(--border-soft); padding: 0.4rem 0.25rem; font-size: 0.78rem; }
  .table.work-table td::before { content: none; }
  .table.work-table .num { text-align: right; }
  .table.work-table td small { font-size: 0.68rem; }
  .table.work-table .chip { font-size: 0.68rem; }
  .table.work-table td:nth-child(2) small { display: none; }
}
.stat-main.stat-neg .stat-value { color: var(--red); }
@media (max-width: 760px) { .table.work-table .hide-sm { display: none; } }
@media (max-width: 760px) { .table.work-table th { letter-spacing: 0.02em; } .table.work-table td:nth-child(6) small { display: block; } }
