.hub-income{margin-top:24px;padding:24px;border:1px solid #dbe5f7;border-radius:20px;background:linear-gradient(120deg,#f1f6ff,#fafcff)}
.hub-income h3{margin:0 0 6px;color:#18335c}.hub-income p,.request-hub .panel-head p{color:#65758e;font-size:13px;margin:6px 0 14px}.hub-income-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.hub-income-actions button{display:flex;align-items:center;gap:12px;text-align:left;padding:16px;background:white;border:1px solid #d9e3f4;border-radius:14px;color:#2059c9;min-height:80px}.hub-income-actions svg{width:24px;height:24px;flex-shrink:0}.hub-income-actions strong,.hub-income-actions small{display:block}.hub-income-actions small{color:#677790;font-size:12px;margin-top:5px;font-weight:400}.hub-income-actions button:hover{border-color:#2463eb;background:#f8fbff;box-shadow:0 4px 14px #1f5bdd12}
.request-hub .quick-card{text-align:left;gap:12px}.request-hub .quick-card b{margin-left:auto;color:#7190c1}.hub-filters{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin-bottom:22px}.hub-filters>div{flex:1;min-width:200px}.hub-filters label{display:grid;gap:6px;font-size:12px;color:#65758e}.hub-filters select{min-height:44px;border:1px solid #d9e3f4;border-radius:10px;background:white;padding:8px 30px 8px 12px;font:inherit;color:#18335c}.hub-note{font-size:12px;color:#65758e;margin-top:20px}
.hub-owner-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.hub-owner-tools>div{background:#eff5ff;border-radius:14px;padding:18px;display:flex;align-items:center;gap:14px}.hub-owner-tools strong{font-size:28px;color:#2059c9}.hub-owner-tools span{font-size:13px;color:#526581}.hub-owner-tools button{min-height:64px;border:1px solid #dbe5f7;background:#fff;border-radius:14px;color:#2059c9;text-align:left;padding:16px;font-weight:600}.owner-request-hub .panel-head{gap:16px;flex-wrap:wrap}.hub-team-queue>article{margin-bottom:20px}
[data-hub]:focus-visible{outline:3px solid #83aaff;outline-offset:3px}
.hub-team-queue>summary{cursor:pointer;padding:16px 0;font-weight:700;color:#18335c}
.request-hub .quick-card{grid-template-columns:40px minmax(0,1fr);align-items:center;align-content:center;min-height:108px;padding:16px}.request-hub .quick-card b{display:none}.request-hub .quick-card strong,.hub-income-actions strong{font-size:14px;line-height:1.5}.request-hub .quick-card small{font-size:12px;line-height:1.5}.hub-income-actions button{font-size:14px}
@media(max-width:900px){.hub-income-actions,.hub-owner-tools{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.hub-income{padding:16px}.hub-income-actions,.hub-owner-tools{grid-template-columns:1fr}.hub-filters label{flex:1;min-width:120px}.request-hub .quick-grid{grid-template-columns:1fr}.owner-request-hub .primary{width:100%}}

.approval-punches {
  display: grid;
  grid-template-columns: repeat(2, minmax(95px, 1fr));
  gap: 6px;
  margin-top: 6px;
  max-width: 320px;
  font-size: 12px;
  line-height: 1.4;
}
.approval-punch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 6px 8px;
  border: 1px solid var(--punch-border, #dbe3ec);
  border-radius: 8px;
  background-color: var(--punch-bg, #f5f7fa);
  color: var(--punch-ink, #425472);
}
.approval-punch--requested {
  --punch-border: #9acbdc;
  --punch-bg: #eaf7fb;
  --punch-ink: #07536b;
  --punch-badge: #d4eef6;
}
.approval-punch--requested[data-punch="checkout"] {
  --punch-border: #c6b6f2;
  --punch-bg: #f3eefe;
  --punch-ink: #54348a;
  --punch-badge: #e9ddfa;
}
.approval-punch-label, .approval-punch-badge { font-weight: 700; }
.approval-punch strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.approval-punch-badge {
  padding: 1px 6px;
  border-radius: 5px;
  background-color: var(--punch-badge);
  font-size: 11px;
}
html[data-theme="dark"] .approval-punch {
  --punch-bg: #222d40;
  --punch-border: #425270;
  --punch-ink: #cbd7ec;
}
html[data-theme="dark"] .approval-punch--requested {
  --punch-bg: #183745;
  --punch-border: #4f91a7;
  --punch-ink: #bfedff;
  --punch-badge: #235265;
}
html[data-theme="dark"] .approval-punch--requested[data-punch="checkout"] {
  --punch-bg: #362b50;
  --punch-border: #8f77bf;
  --punch-ink: #e9dbff;
  --punch-badge: #51416d;
}
.owner-data-card .approval-punches { margin-top: 0; max-width: none; }

.employee-insights-kpis > .employee-ot-trigger {
  position: relative;
  min-width: 0;
  padding: 13px;
  border: 1px solid;
  border-radius: 13px;
  text-align: left;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.employee-ot-trigger small { display: block; margin-top: 4px; font-size: 11px; }
.employee-insights-kpis > .employee-ot-trigger:hover { border-color: var(--blue); }
.employee-ot-trigger:focus-visible, .employee-ot-close:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.employee-ot-dialog {
  position: fixed;
  width: min(640px, calc(100% - 24px));
  max-height: calc(100dvh - 28px);
  padding: clamp(16px, 4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 64px #07132855;
  overscroll-behavior: contain;
}
.employee-ot-dialog::backdrop { background: #0713289c; }
.employee-ot-dialog > h2 { margin: 0 42px 6px 0; }
.employee-ot-dialog > p { margin: 0 0 16px; color: var(--muted); }
.employee-ot-close {
  position: absolute;
  inset: 12px 12px auto auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 23px;
  cursor: pointer;
}
.employee-ot-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--canvas);
}
.employee-ot-total strong { font-size: 22px; }
.employee-ot-list { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.employee-ot-record { padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.employee-ot-record-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.employee-ot-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 0; }
.employee-ot-dates dt { color: var(--muted); font-size: 12px; }
.employee-ot-dates dd { margin: 2px 0 0; overflow-wrap: anywhere; }

.request-form .special-ot-option {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--canvas);
  cursor: pointer;
}
.request-form .special-ot-option input[type="checkbox"] {
  flex: none;
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}
.special-ot-option small { display: block; margin-top: 4px; color: var(--muted); }

/* Highlight special OT across the approval row or mobile card. */
.approval-special-ot {
  --special-start: #ede0ff;
  --special-end: #fbf7ff;
  --special-edge: #8550d8;
  --special-line: #dfd0f8;
  --special-badge: #e6d5ff;
  --special-ink: #52258d;
  background: linear-gradient(100deg, var(--special-start), var(--special-end));
}

html[data-theme="dark"] .approval-special-ot {
  --special-start: #422865;
  --special-end: #262036;
  --special-edge: #bb93ff;
  --special-line: #594178;
  --special-badge: #684494;
  --special-ink: #fbf2ff;
}

tr.approval-special-ot > td {
  background: transparent;
  border-block: 1px solid var(--special-line);
}

tr.approval-special-ot > td:first-child,
.owner-data-card.approval-special-ot {
  box-shadow: inset 4px 0 var(--special-edge);
}

.owner-data-card.approval-special-ot {
  border-color: var(--special-line);
}

.approval-special-ot .approval-special-ot-badge {
  display: block;
  width: fit-content;
  margin-top: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--special-badge);
  color: var(--special-ink);
  font-size: 12px;
  font-weight: 700;
}
