@font-face {
  font-family: 'Saira';
  src: url('./fonts/Saira-VariableFont_wdth,wght.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 75% 125%;
}

@font-face {
  font-family: 'Saira';
  src: url('./fonts/Saira-Italic-VariableFont_wdth,wght.ttf') format('truetype');
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 75% 125%;
}

:root {
  --bg: #050505;
  --bg-alt: #0a0a0a;
  --panel: rgba(13, 13, 13, 0.95);
  --panel-strong: #111111;
  --card: rgba(18, 18, 18, 0.98);
  --card-alt: rgba(22, 22, 22, 0.96);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f2f0ea;
  --muted: #9c9a92;
  --muted-strong: #b8b3a7;
  --accent: #8fa5ff;
  --accent-strong: #667dff;
  --accent-soft: rgba(143, 165, 255, 0.14);
  --accent-2: #62d39e;
  --accent-2-soft: rgba(98, 211, 158, 0.16);
  --warning: #d3aa5f;
  --warning-soft: rgba(211, 170, 95, 0.16);
  --danger: #ff6e6e;
  --danger-soft: rgba(255, 110, 110, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.3);
  --radius: 14px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  font-family: 'Saira', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-stretch: 92%;
  background:
    radial-gradient(circle at 12% 0%, rgba(102, 125, 255, 0.08), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(98, 211, 158, 0.06), transparent 20%),
    radial-gradient(circle at 0% 100%, rgba(211, 170, 95, 0.05), transparent 24%),
    linear-gradient(180deg, #070707 0%, #050505 60%, #040404 100%);
  color: var(--text);
  min-height: 100vh;
  letter-spacing: -0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01' 1, 'cv01' 1;
}

::selection {
  background: rgba(143, 165, 255, 0.28);
  color: var(--text);
}

body.dialog-open {
  overflow: hidden;
}

.app-shell {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 20%);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background:
    radial-gradient(circle at 20% 0%, rgba(143, 165, 255, 0.08), transparent 32%),
    linear-gradient(180deg, #070707 0%, #050505 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.03);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 10px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(143, 165, 255, 0.34), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #edf1ff;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.brand-mark-image {
  overflow: hidden;
  padding: 0;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.1);
}

.brand-mark-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  transform: none;
}

.brand-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  gap: 8px;
  padding: 6px 0 4px;
}

.nav-group {
  display: grid;
  gap: 8px;
}

.nav-admin {
  margin-top: 0;
}

.nav-divider {
  position: relative;
  margin: 14px 0 6px;
  padding: 0 2px;
  color: #ffb4b4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-divider::before,
.nav-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(255, 110, 110, 0), rgba(255, 110, 110, 0.72), rgba(255, 110, 110, 0));
}

.nav button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: #d7d5cf;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: none;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    transform 140ms ease,
    color 140ms ease;
}

.nav-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
}

.nav-label {
  min-width: 0;
}

.nav button:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.nav button.active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  align-self: center;
  justify-content: center;
  padding: 0 4px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: none;
}

.footer-meta span {
  white-space: nowrap;
}

.user-mini {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-soft);
}

.user-mini-inline {
  width: fit-content;
  max-width: 100%;
  min-width: 0;
}

.user-mini-copy {
  min-width: 0;
  display: grid;
  align-items: center;
}

.user-mini-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  flex-wrap: nowrap;
}

.user-mini-line strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-mini-email {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.employee-table {
  table-layout: fixed;
}

.employee-table th:nth-child(1),
.employee-table td:nth-child(1) {
  width: 28%;
}

.employee-table th:nth-child(2),
.employee-table td:nth-child(2) {
  width: 11%;
}

.employee-table th:nth-child(3),
.employee-table td:nth-child(3) {
  width: 24%;
}

.employee-table th:nth-child(4),
.employee-table td:nth-child(4) {
  width: 8%;
}

.employee-table th:nth-child(5),
.employee-table td:nth-child(5) {
  width: 29%;
}

.employee-table td .employee-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.employee-table td .employee-actions button {
  flex: 0 0 auto;
  min-width: 60px;
  white-space: nowrap;
  padding-inline: 8px;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(98, 211, 158, 0.22), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(98, 211, 158, 0.22);
  color: #d6ffe9;
  font-weight: 700;
}

.avatar-green {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(98, 211, 158, 0.24), rgba(98, 211, 158, 0.1));
  border: 1px solid rgba(98, 211, 158, 0.28);
  color: #e8fff4;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.user-info strong {
  display: block;
  font-size: 13px;
  line-height: 1.2;
}

.user-info small {
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.content {
  padding: 24px 24px 30px;
  min-width: 0;
}

body:not(.app-authenticated) .content {
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: 100vh;
}

body:not(.app-authenticated) #login-panel {
  width: fit-content;
  max-width: min(560px, 100%);
  justify-self: center;
  align-self: center;
}

body:not(.app-authenticated) #logout-btn {
  display: none;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-size: 11px;
  margin: 0 0 5px;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--text);
}

h1 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 0.98;
}

h2 {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.05;
}

h3 {
  font-size: 18px;
  line-height: 1.1;
}

.panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 18px 18px 22px;
  box-shadow: var(--shadow);
}

.panel + .panel {
  margin-top: 16px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-head .muted {
  margin-top: 6px;
  max-width: 72ch;
}

.badge {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.grid {
  display: grid;
  gap: 14px;
}

.stats {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-bottom: 14px;
}

.overview-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.12fr);
  margin-bottom: 14px;
}

.overview-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.overview-grid .card {
  min-height: 100%;
}

.overview-card-mini {
  padding: 16px;
}

.overview-card-mini-loading {
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.overview-card-mini-loading .loading-block {
  position: relative;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  background-size: 200% 100%;
  animation: overview-loading-shimmer 1.15s linear infinite;
}

.overview-card-mini-loading .loading-block-title {
  width: 34%;
  height: 10px;
  margin-bottom: 18px;
}

.overview-card-mini-loading .loading-block-value {
  width: 58%;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 12px;
}

.overview-card-mini-loading .loading-block-copy {
  width: 72%;
  height: 12px;
}

.overview-loading-spinner {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--accent);
  animation: button-spin 0.72s linear infinite;
}

@keyframes overview-loading-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.overview-cta-row {
  display: flex;
  margin-top: 14px;
}

.overview-title {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.overview-value {
  font-size: clamp(28px, 2.4vw, 42px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.overview-grid p {
  margin: 8px 0 0;
}

.overview-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.overview-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.overview-list strong {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  min-width: 0;
  line-height: 1.2;
}

.overview-list span {
  justify-self: end;
  text-align: right;
}

.attendance-status {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.attendance-status.checked-in {
  color: #f2f0ea;
}

.attendance-status.checked-out {
  color: #ffadad;
}

.overview-label-text {
  min-width: 0;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.info-tip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.info-tip-wrap.align-right .info-bubble {
  left: auto;
  right: 0;
  transform: translateY(-4px);
}

.info-tip-wrap.align-right:hover .info-bubble,
.info-tip-wrap.align-right:focus-within .info-bubble {
  transform: translateY(0);
}

.info-tip {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: none;
  flex: 0 0 auto;
}

.cross-day-marker {
  margin-left: 8px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  cursor: help;
  color: #ffbf9a;
  border: 1px solid rgba(255, 191, 154, 0.24);
  background: rgba(255, 191, 154, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 191, 154, 0.08);
}

.cross-day-marker:focus-visible {
  outline: 2px solid rgba(255, 191, 154, 0.35);
  outline-offset: 2px;
}

.cross-day-symbol {
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
}

.cross-day-bubble {
  min-width: 220px;
  max-width: 280px;
}

.info-tip:hover {
  border-color: rgba(255, 110, 110, 0.35);
  color: #ffb7b7;
}

.info-tip:focus-visible {
  outline-color: rgba(255, 110, 110, 0.38);
}

.info-bubble {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%) translateY(-4px);
  width: max-content;
  min-width: 220px;
  max-width: min(360px, 72vw);
  white-space: normal;
  padding: 12px 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 110, 110, 0.2);
  background: rgba(10, 10, 10, 0.98);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 12;
  box-shadow: var(--shadow-soft);
  transition:
    opacity 120ms ease,
    transform 120ms ease,
    visibility 120ms ease;
}

.info-bubble.is-html {
  width: min(640px, 78vw);
  min-width: 420px;
  max-width: 640px;
}

.info-bubble-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
  align-items: start;
}

.info-bubble-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  height: auto;
  align-self: start;
}

.info-bubble-section + .info-bubble-section {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.info-bubble-section strong {
  display: block;
  color: #ffd0d0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.info-bubble-list {
  margin: 0;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 8px;
  flex: none;
  align-content: start;
}

.info-bubble-section li {
  min-height: 24px;
  display: flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.info-bubble-section li.weekend {
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
}

.info-bubble-empty {
  color: var(--muted);
  font-size: 12px;
}

.info-bubble::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -5px;
  width: 10px;
  height: 10px;
  background: rgba(10, 10, 10, 0.98);
  border-left: 1px solid rgba(255, 110, 110, 0.2);
  border-top: 1px solid rgba(255, 110, 110, 0.2);
  transform: translateX(-50%) rotate(45deg);
}

.info-tip-wrap:hover .info-bubble,
.info-tip-wrap:focus-within .info-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
  .info-bubble {
    width: min(360px, 86vw);
    min-width: 0;
  }

  .info-bubble.is-html {
    width: min(520px, 86vw);
  }

  .info-bubble-grid {
    grid-template-columns: 1fr;
  }

  .info-bubble-list {
    grid-template-columns: 1fr;
  }

  #test-email-form {
    grid-template-columns: 1fr;
  }

  #test-email-form .actions.inline {
    justify-self: stretch;
  }

  #test-email-form .actions.inline > button {
    width: 100%;
    min-width: 0;
  }
}

.holiday-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.two-cols {
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
}

.employee-overview-card {
  margin-bottom: 16px;
}

.holiday-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.holiday-main,
.holiday-side {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.holiday-summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.holiday-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 14px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.legend-approved { background: rgba(98, 211, 158, 0.22); border-color: rgba(98, 211, 158, 0.35); }
.legend-enjoyed { background: rgba(98, 211, 158, 0.14); border-color: rgba(98, 211, 158, 0.22); }
.legend-requested { background: rgba(211, 170, 95, 0.22); border-color: rgba(211, 170, 95, 0.35); }
.legend-local { background: rgba(255, 110, 110, 0.18); border-color: rgba(255, 110, 110, 0.32); }
.legend-general { background: rgba(255, 110, 110, 0.28); border-color: rgba(255, 110, 110, 0.48); }

.holiday-weekdays,
.holiday-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.holiday-week {
  position: relative;
  z-index: 0;
  overflow: visible;
}

.holiday-weekdays {
  margin-bottom: 10px;
}

.holiday-weekdays span {
  padding: 0 8px;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.holiday-calendar-grid {
  display: grid;
  gap: 10px;
  min-height: 620px;
}

.holiday-day {
  position: relative;
  min-height: 92px;
  padding: 10px 10px 9px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  display: grid;
  gap: 6px;
  align-content: start;
  overflow: visible;
  z-index: 0;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.holiday-day.weekend {
  color: #b8b3ab;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}

.holiday-day.weekend .holiday-day-number,
.holiday-day.weekend .holiday-day-label {
  color: #b3ada4;
}

.holiday-day.out-of-month {
  opacity: 0.35;
}

.holiday-day.approved {
  background: linear-gradient(180deg, rgba(98, 211, 158, 0.14), rgba(255, 255, 255, 0.02));
  border-color: rgba(98, 211, 158, 0.2);
}

.holiday-day.enjoyed {
  background: linear-gradient(180deg, rgba(98, 211, 158, 0.24), rgba(255, 255, 255, 0.03));
  border-color: rgba(98, 211, 158, 0.36);
  box-shadow: inset 0 0 0 1px rgba(98, 211, 158, 0.12);
}

.holiday-day.enjoyed .holiday-day-number,
.holiday-day.enjoyed .holiday-day-label {
  color: #b7f5d4;
}

.holiday-day.requested {
  background: linear-gradient(180deg, rgba(211, 170, 95, 0.14), rgba(255, 255, 255, 0.02));
  border-color: rgba(211, 170, 95, 0.2);
}

.holiday-day.declined {
  background: linear-gradient(180deg, rgba(255, 110, 110, 0.12), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 110, 110, 0.2);
}

.holiday-day.local-holiday {
  background: linear-gradient(180deg, rgba(255, 110, 110, 0.12), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 110, 110, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 110, 110, 0.1);
}

.holiday-day.general-holiday {
  background: linear-gradient(180deg, rgba(255, 110, 110, 0.24), rgba(255, 255, 255, 0.03));
  border-color: rgba(255, 110, 110, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 110, 110, 0.14);
}

.holiday-day.range-span {
  position: relative;
}

.holiday-day.range-span::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease, box-shadow 160ms ease;
  border: 1px solid transparent;
}

.holiday-day.range-span.holiday-range-hover {
  transform: translateY(-1px);
  z-index: 40;
}

.holiday-day.range-span.holiday-range-hover::after,
.holiday-day.range-span:hover::after,
.holiday-day.range-span:focus-visible::after {
  opacity: 1;
}

.holiday-day.range-span.holiday-range-hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 0 10px rgba(255, 255, 255, 0.04);
}

.holiday-day.range-span.holiday-range-hover .holiday-day-number,
.holiday-day.range-span.holiday-range-hover .holiday-day-label {
  color: #ffffff;
}

.holiday-day.approved.range-span::after,
.holiday-day.enjoyed.range-span::after {
  border-color: rgba(98, 211, 158, 0.65);
  box-shadow: 0 0 0 1px rgba(98, 211, 158, 0.16), 0 0 18px rgba(98, 211, 158, 0.18);
}

.holiday-day.requested.range-span::after {
  border-color: rgba(211, 170, 95, 0.72);
  box-shadow: 0 0 0 1px rgba(211, 170, 95, 0.16), 0 0 18px rgba(211, 170, 95, 0.18);
}

.holiday-day.declined.range-span::after,
.holiday-day.local-holiday.range-span::after,
.holiday-day.general-holiday.range-span::after {
  border-color: rgba(255, 110, 110, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 110, 110, 0.16), 0 0 18px rgba(255, 110, 110, 0.18);
}

.holiday-day.general-holiday .holiday-day-number,
.holiday-day.general-holiday .holiday-day-label {
  color: #ffc1c1;
}

.holiday-day.approved:hover,
.holiday-day.enjoyed:hover,
.holiday-day.requested:hover,
.holiday-day.declined:hover,
.holiday-day.local-holiday:hover,
.holiday-day.general-holiday:hover {
  transform: translateY(-1px);
  z-index: 30;
  animation: holiday-border-pulse 1.8s ease-in-out infinite;
}

.holiday-day.approved:hover {
  box-shadow:
    0 0 0 1px rgba(98, 211, 158, 0.26),
    0 0 0 6px rgba(98, 211, 158, 0.06);
}

.holiday-day.enjoyed:hover {
  box-shadow:
    0 0 0 1px rgba(98, 211, 158, 0.34),
    0 0 0 6px rgba(98, 211, 158, 0.08);
}

.holiday-day.requested:hover {
  box-shadow:
    0 0 0 1px rgba(211, 170, 95, 0.32),
    0 0 0 6px rgba(211, 170, 95, 0.08);
}

.holiday-day.declined:hover,
.holiday-day.local-holiday:hover {
  box-shadow:
    0 0 0 1px rgba(255, 110, 110, 0.3),
    0 0 0 6px rgba(255, 110, 110, 0.07);
}

.holiday-day.general-holiday:hover {
  box-shadow:
    0 0 0 1px rgba(255, 110, 110, 0.44),
    0 0 0 6px rgba(255, 110, 110, 0.1);
}

.holiday-day.range-span.holiday-range-hover.approved,
.holiday-day.range-span.holiday-range-hover.enjoyed {
  background: linear-gradient(180deg, rgba(98, 211, 158, 0.26), rgba(255, 255, 255, 0.04));
  border-color: rgba(98, 211, 158, 0.42);
}

.holiday-day.range-span.holiday-range-hover.requested {
  background: linear-gradient(180deg, rgba(211, 170, 95, 0.26), rgba(255, 255, 255, 0.04));
  border-color: rgba(211, 170, 95, 0.42);
}

.holiday-day.range-span.holiday-range-hover.declined,
.holiday-day.range-span.holiday-range-hover.local-holiday,
.holiday-day.range-span.holiday-range-hover.general-holiday {
  background: linear-gradient(180deg, rgba(255, 110, 110, 0.24), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 110, 110, 0.42);
}

@keyframes holiday-border-pulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.04);
  }
}

.holiday-day.has-tooltip {
  cursor: help;
}

.holiday-calendar-card {
  position: relative;
}

.holiday-range-tooltip {
  position: fixed;
  z-index: 250;
  pointer-events: none;
  display: grid;
  gap: 6px;
  width: max-content;
  min-width: 240px;
  max-width: min(380px, calc(100vw - 24px));
  padding: 14px 15px 13px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(13, 16, 22, 0.98);
  backdrop-filter: none;
  color: #f6f2ea;
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px) scale(0.985);
  transition:
    opacity 120ms ease,
    transform 120ms ease,
    visibility 120ms ease;
  isolation: isolate;
}

.holiday-range-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.holiday-range-tooltip strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.holiday-range-tooltip span {
  color: rgba(246, 242, 234, 0.84);
  font-size: 12px;
  line-height: 1.35;
}

.holiday-range-tooltip .holiday-tooltip-reason {
  color: rgba(246, 242, 234, 0.9);
}

.holiday-range-tooltip::before {
  content: '';
  position: absolute;
  left: 50%;
  width: 12px;
  height: 12px;
  background: rgba(13, 16, 22, 0.98);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateX(-50%) rotate(45deg);
}

.holiday-range-tooltip[data-placement='top']::before {
  bottom: -6px;
}

.holiday-range-tooltip[data-placement='bottom']::before {
  top: -6px;
  transform: translateX(-50%) rotate(225deg);
}

.holiday-day-tooltip {
  display: none !important;
}

.holiday-day-number {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.holiday-day-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-height: 22px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.holiday-day-label-full,
.holiday-day-label-compact {
  display: block;
}

.holiday-day-label-compact {
  display: none;
}

.card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 22%),
    var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 15px;
  box-shadow: var(--shadow-soft);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.card-head .muted {
  margin-top: 4px;
}

.stat-card {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(16, 16, 16, 0.95);
}

.stat-label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.stat-value {
  font-size: clamp(24px, 2.1vw, 34px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(98, 211, 158, 0.12);
  border: 1px solid rgba(98, 211, 158, 0.16);
  color: #8ff0bd;
  font-size: 12px;
  font-weight: 700;
}

.table {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: auto;
  background: rgba(10, 10, 10, 0.6);
}

.table table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  color: var(--text);
  vertical-align: top;
}

.table th {
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.table tr:last-child td {
  border-bottom: none;
}

.holiday-requests-table {
  table-layout: fixed;
}

.holiday-requests-table th,
.holiday-requests-table td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.audit-summary-main {
  font-weight: 500;
  line-height: 1.35;
}

.audit-summary-diff {
  margin-top: 6px;
  display: grid;
  gap: 4px;
}

.audit-change-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  font-size: 11px;
  line-height: 1.25;
}

.audit-change-label {
  color: var(--muted-strong);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.audit-change-value {
  min-width: 0;
}

.audit-change-before {
  color: #ffb4b4;
  overflow-wrap: anywhere;
}

.audit-change-after {
  color: #b8f5cf;
  overflow-wrap: anywhere;
}

.audit-change-arrow {
  color: var(--muted);
}

.holiday-requests-table th:nth-child(1),
.holiday-requests-table td:nth-child(1) {
  width: 21%;
}

.holiday-requests-table th:nth-child(2),
.holiday-requests-table td:nth-child(2) {
  width: 8%;
}

.holiday-requests-table th:nth-child(3),
.holiday-requests-table td:nth-child(3) {
  width: 15%;
}

.holiday-requests-table th:nth-child(4),
.holiday-requests-table td:nth-child(4) {
  width: 28%;
}

.holiday-requests-table th:nth-child(5),
.holiday-requests-table td:nth-child(5) {
  width: 11%;
}

.holiday-requests-table th:nth-child(6),
.holiday-requests-table td:nth-child(6) {
  width: 17%;
}

.holiday-requests-table .actions-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  white-space: normal;
}

.holiday-requests-table .actions-row button {
  min-width: 0;
  padding-inline: 8px;
}

.holiday-requests-table .holiday-reason {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: help;
}

.holiday-requests-table .holiday-action-edit {
  white-space: nowrap;
}

.holiday-requests-table .holiday-action-approve {
  white-space: nowrap;
}

.holiday-requests-table .holiday-action-decline {
  white-space: nowrap;
}

.table .actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attendance-month-card {
  display: grid;
  gap: 14px;
}

.attendance-month-head {
  align-items: flex-start;
}

.attendance-month-toolbar {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.attendance-month-toolbar .actions-row {
  justify-content: flex-end;
}

.attendance-month-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.attendance-month-summary .stat-card {
  min-height: 96px;
}

.attendance-month-summary .stat-value {
  font-size: clamp(22px, 2vw, 32px);
}

.attendance-month-summary .stat-chip {
  margin-top: auto;
}

#attendance-month-table .attendance-month-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 6px;
  width: fit-content;
}

#attendance-month-table .attendance-month-actions button {
  min-width: 0;
  padding-inline: 10px;
  white-space: nowrap;
}

#attendance-month-table th:nth-child(8),
#attendance-month-table td:nth-child(8) {
  width: 1%;
  white-space: nowrap;
}

#attendance-month-table .day-holiday {
  color: #ffb4b4;
}

#attendance-month-table .day-today > td {
  background: transparent;
  box-shadow:
    inset 0 1px 0 rgba(143, 165, 255, 0.42),
    inset 0 -1px 0 rgba(143, 165, 255, 0.42);
}

#attendance-month-table .day-today > td:first-child {
  box-shadow:
    inset 1px 0 0 rgba(143, 165, 255, 0.42),
    inset 0 1px 0 rgba(143, 165, 255, 0.42),
    inset 0 -1px 0 rgba(143, 165, 255, 0.42);
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

#attendance-month-table .day-today > td:last-child {
  box-shadow:
    inset -1px 0 0 rgba(143, 165, 255, 0.42),
    inset 0 1px 0 rgba(143, 165, 255, 0.42),
    inset 0 -1px 0 rgba(143, 165, 255, 0.42);
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

#attendance-month-table .day-today:hover > td {
  box-shadow:
    inset 0 1px 0 rgba(143, 165, 255, 0.56),
    inset 0 -1px 0 rgba(143, 165, 255, 0.56);
}

#attendance-month-table .day-today:hover > td:first-child {
  box-shadow:
    inset 1px 0 0 rgba(143, 165, 255, 0.56),
    inset 0 1px 0 rgba(143, 165, 255, 0.56),
    inset 0 -1px 0 rgba(143, 165, 255, 0.56);
}

#attendance-month-table .day-today:hover > td:last-child {
  box-shadow:
    inset -1px 0 0 rgba(143, 165, 255, 0.56),
    inset 0 1px 0 rgba(143, 165, 255, 0.56),
    inset 0 -1px 0 rgba(143, 165, 255, 0.56);
}

#attendance-month-table .day-today .status {
  border-color: rgba(143, 165, 255, 0.28);
}

#attendance-month-table .day-weekend > td {
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#attendance-month-table .day-weekend > td:first-child {
  background: rgba(255, 255, 255, 0.055);
}

#attendance-month-table .day-weekend:hover > td {
  background: rgba(255, 255, 255, 0.06);
}

#attendance-month-table .day-weekend {
  color: #a39e95;
}

#attendance-month-table .day-weekend strong,
#attendance-month-table .day-weekend .muted-block,
#attendance-month-table .day-weekend .attendance-month-row-toggle,
#attendance-month-table .day-weekend .status,
#attendance-month-table .day-weekend .attendance-month-session-times strong,
#attendance-month-table .day-weekend .attendance-month-session-times span,
#attendance-month-table .day-weekend .attendance-month-session-duration,
#attendance-month-table .day-weekend .attendance-month-session-note,
#attendance-month-table .day-weekend td:nth-child(6),
#attendance-month-table .day-weekend td:nth-child(7),
#attendance-month-table .day-weekend .delta-positive,
#attendance-month-table .day-weekend .delta-negative {
  color: #979188;
}

#attendance-month-table .status.no-attendance {
  background: rgba(255, 110, 110, 0.16);
  color: #ffb0b0;
  border-color: rgba(255, 110, 110, 0.22);
}

#attendance-month-table .status.weekend {
  background: rgba(255, 255, 255, 0.08);
  color: #d3cec3;
  border-color: rgba(255, 255, 255, 0.08);
}

#attendance-month-table .status.worked {
  background: rgba(98, 211, 158, 0.16);
  color: #8ef0be;
  border-color: rgba(98, 211, 158, 0.24);
}

#attendance-month-table .status.in-progress {
  background: rgba(211, 170, 95, 0.18);
  color: #f2ce8f;
  border-color: rgba(211, 170, 95, 0.28);
}

.attendance-month-summary .stat-chip.delta-chip-positive {
  background: rgba(98, 211, 158, 0.16);
  color: #8ef0be;
  border-color: rgba(98, 211, 158, 0.24);
}

.attendance-month-summary .stat-chip.delta-chip-negative {
  background: rgba(255, 110, 110, 0.16);
  color: #ffb0b0;
  border-color: rgba(255, 110, 110, 0.22);
}

.attendance-month-summary .stat-chip.delta-chip-neutral {
  background: rgba(211, 170, 95, 0.16);
  color: #f2ce8f;
  border-color: rgba(211, 170, 95, 0.22);
}

#attendance-month-table .delta-positive {
  color: #7fe3b3;
}

#attendance-month-table .delta-negative {
  color: #ff9393;
}

#attendance-month-table .muted-block {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

#attendance-month-table .attendance-month-row-expandable td {
  cursor: pointer;
}

#attendance-month-table .attendance-month-row-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-stretch: inherit;
  box-shadow: none;
  cursor: pointer;
}

#attendance-month-table .attendance-month-row-toggle:hover {
  transform: none;
  box-shadow: none;
}

#attendance-month-table .attendance-month-row-chevron {
  color: var(--muted);
  transition: transform 160ms ease, color 160ms ease;
}

#attendance-month-table .attendance-month-row-expandable.is-expanded .attendance-month-row-chevron {
  transform: rotate(180deg);
  color: var(--text);
}

#attendance-month-table .attendance-month-detail-row td {
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.015);
}

#attendance-month-table .attendance-month-detail-panel {
  margin: 0 0 14px;
  padding: 14px 16px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

#attendance-month-table .attendance-month-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted-strong);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#attendance-month-table .attendance-month-session-list {
  display: grid;
  gap: 8px;
}

#attendance-month-table .attendance-month-session {
  display: grid;
  grid-template-columns: 42px minmax(0, 1.3fr) 110px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

#attendance-month-table .attendance-month-session-index {
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

#attendance-month-table .attendance-month-session-times {
  display: grid;
  gap: 2px;
  min-width: 0;
}

#attendance-month-table .attendance-month-session-times strong {
  font-size: 13px;
  line-height: 1.2;
}

#attendance-month-table .attendance-month-session-times span,
#attendance-month-table .attendance-month-session-duration,
#attendance-month-table .attendance-month-session-note {
  color: var(--muted);
  font-size: 12px;
}

#attendance-month-table .attendance-month-session-duration {
  font-weight: 700;
  color: var(--text);
  text-align: right;
}

#attendance-month-table .attendance-month-session-note {
  text-align: right;
  overflow-wrap: anywhere;
}

.status {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
}

.status.pending {
  background: var(--warning-soft);
  color: #f0c37f;
  border-color: rgba(211, 170, 95, 0.22);
}

.status.approved {
  background: var(--accent-2-soft);
  color: #7fe3b3;
  border-color: rgba(98, 211, 158, 0.22);
}

.status.enjoyed {
  background: rgba(98, 211, 158, 0.16);
  color: #b7f5d4;
  border-color: rgba(98, 211, 158, 0.26);
}

.status.declined {
  background: var(--danger-soft);
  color: #ff9393;
  border-color: rgba(255, 110, 110, 0.2);
}

.status.cancelled {
  background: rgba(180, 180, 180, 0.12);
  color: #d5d5d0;
  border-color: rgba(255, 255, 255, 0.12);
}

button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-stretch: 92%;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  cursor: pointer;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease,
    color 140ms ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

button.is-loading {
  padding-right: 38px;
  pointer-events: none;
}

button.is-loading::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  opacity: 0.85;
  animation: button-spin 0.72s linear infinite;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(143, 165, 255, 0.45);
  outline-offset: 2px;
}

button.primary {
  background: linear-gradient(180deg, rgba(143, 165, 255, 0.98), rgba(102, 125, 255, 0.95));
  color: #10131c;
  box-shadow: 0 12px 34px rgba(102, 125, 255, 0.22);
}

button.primary:hover {
  background: linear-gradient(180deg, rgba(154, 177, 255, 1), rgba(112, 134, 255, 0.98));
  box-shadow: 0 16px 40px rgba(102, 125, 255, 0.28);
}

button.secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--muted-strong);
}

button.secondary:hover,
button.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

button.ghost {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--muted-strong);
}

button.outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
}

button.outline.success {
  border-color: rgba(98, 211, 158, 0.42);
  color: #98f0c6;
  background: rgba(98, 211, 158, 0.04);
}

button.outline.success:hover {
  background: rgba(98, 211, 158, 0.1);
  border-color: rgba(98, 211, 158, 0.64);
}

button.outline.danger {
  border-color: rgba(255, 110, 110, 0.42);
  color: #ffadad;
  background: rgba(255, 110, 110, 0.04);
}

button.outline.danger:hover {
  background: rgba(255, 110, 110, 0.1);
  border-color: rgba(255, 110, 110, 0.64);
}

button.outline.attendance-pulse {
  animation: attendance-action-pulse 1.9s ease-in-out infinite;
  will-change: box-shadow, border-color, filter;
}

button.outline.success.attendance-pulse {
  box-shadow:
    0 0 0 0 rgba(98, 211, 158, 0.28),
    inset 0 0 0 1px rgba(98, 211, 158, 0.18);
}

button.outline.danger.attendance-pulse {
  box-shadow:
    0 0 0 0 rgba(255, 110, 110, 0.26),
    inset 0 0 0 1px rgba(255, 110, 110, 0.18);
}

button.outline.attendance-pulse:hover {
  animation-play-state: paused;
}

button.danger {
  background: linear-gradient(180deg, rgba(255, 110, 110, 0.98), rgba(224, 82, 82, 0.96));
  color: #180808;
}

@keyframes attendance-action-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(255, 255, 255, 0),
      0 0 0 0 rgba(98, 211, 158, 0.08),
      inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    filter: brightness(1);
  }

  50% {
    box-shadow:
      0 0 0 6px rgba(255, 255, 255, 0),
      0 0 0 10px rgba(98, 211, 158, 0.07),
      inset 0 0 0 1px rgba(98, 211, 158, 0.18);
    filter: brightness(1.04);
  }
}

button.small {
  padding: 8px 11px;
  font-size: 13px;
}

button.wide {
  width: 100%;
  justify-content: center;
}

form,
.form-grid {
  margin: 0;
}

.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 16px;
}

.form-grid.three-cols {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-grid.two-cols {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

#employee-form {
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  align-items: end;
}

#employee-form > .actions.end {
  grid-column: 6;
  justify-self: end;
  align-self: end;
  width: auto;
  margin-top: 0;
}

#employee-form > .actions.end > button {
  min-width: 120px;
}

.field {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.field.inline {
  grid-template-columns: 120px minmax(160px, 1fr);
  align-items: center;
}

.field span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.field input,
select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 11px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  font-stretch: 92%;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease;
}

.field input[type='date'],
.field input[type='datetime-local'] {
  color-scheme: dark;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M3 9h18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
}

.field input[type='date']::-webkit-calendar-picker-indicator,
.field input[type='datetime-local']::-webkit-calendar-picker-indicator {
  opacity: 0;
  cursor: pointer;
}

.field input[type='date']::-webkit-datetime-edit {
  color: var(--text);
}

.field input[type='date']::-webkit-datetime-edit-text,
.field input[type='date']::-webkit-datetime-edit-month-field,
.field input[type='date']::-webkit-datetime-edit-day-field,
.field input[type='date']::-webkit-datetime-edit-year-field {
  color: var(--text);
}

.field input::placeholder,
select::placeholder {
  color: rgba(156, 154, 146, 0.7);
}

.field input:focus,
select:focus {
  border-color: rgba(143, 165, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(242, 240, 234, 0.92) 50%),
    linear-gradient(135deg, rgba(242, 240, 234, 0.92) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% - 2px),
    calc(100% - 11px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field select option,
.table select option {
  background: #111111;
  color: var(--text);
}

.table select {
  min-width: 160px;
  background-color: rgba(255, 255, 255, 0.03);
}

.actions.end {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  grid-column: 1 / -1;
  justify-self: stretch;
  width: 100%;
}

.settings-grid #settings-form .actions.end {
  grid-column: 1 / -1;
  justify-self: stretch;
  width: 100%;
  margin-top: 4px;
}

.settings-grid #settings-form .actions.end > button {
  margin-inline: auto;
}

.holiday-side #holiday-form .actions.end {
  grid-column: 1 / -1;
  justify-self: stretch;
  width: 100%;
  margin-top: 4px;
}

.holiday-form-compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-areas: 'start end type reason submit';
  align-items: end;
}

.holiday-form-compact > label:nth-of-type(1) {
  grid-area: start;
}

.holiday-form-compact > label:nth-of-type(2) {
  grid-area: end;
}

.holiday-form-compact > label:nth-of-type(3) {
  grid-area: type;
}

.holiday-form-compact .field.wide {
  grid-area: reason;
}

.holiday-form-submit {
  grid-area: submit;
  align-self: end;
  justify-self: stretch;
  margin-top: 0;
  width: 100%;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.holiday-form-submit button {
  min-width: 140px;
  width: fit-content;
}

.holiday-form-submit.actions.end {
  grid-column: submit;
  width: 100%;
  justify-self: stretch;
}

.holiday-side #holiday-form .holiday-form-submit.actions.end {
  grid-column: submit;
  justify-self: stretch;
  width: 100%;
  margin-top: 0;
}

.holiday-side #holiday-form .actions.end > button {
  margin-inline: 0;
}

.actions.end > button {
  width: fit-content;
  min-width: 180px;
}

#test-email-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 0;
}

#test-email-form .actions.inline {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  width: auto;
  grid-column: auto;
  justify-self: end;
}

#test-email-form .actions.inline > button {
  min-width: 180px;
}

.admin-zone {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.admin-separator {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 14px;
  color: #ffb4b4;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 800;
}

.admin-separator::before,
.admin-separator::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(255, 110, 110, 0), rgba(255, 110, 110, 0.8), rgba(255, 110, 110, 0));
  opacity: 0.9;
}

.admin-separator span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 110, 110, 0.08);
  border: 1px solid rgba(255, 110, 110, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.section-separator {
  margin-top: 14px;
  margin-bottom: 18px;
}

.admin-zone-head {
  margin-bottom: 0;
  align-items: flex-end;
}

.admin-zone .card {
  border-color: rgba(255, 110, 110, 0.14);
}

.admin-zone-head .hint {
  align-self: center;
}

.filters {
  display: flex;
  gap: 12px;
  align-items: center;
}

.hidden {
  display: none !important;
}

.dialog-backdrop.hidden {
  display: none !important;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 36px));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  background: rgba(13, 18, 25, 0.92);
  color: var(--text);
  animation: toast-in 180ms ease-out;
}

.toast-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}

.toast-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.toast-message {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(238, 243, 250, 0.9);
  white-space: pre-wrap;
}

.toast.success {
  border-color: rgba(108, 208, 155, 0.38);
  box-shadow: 0 18px 40px rgba(18, 52, 35, 0.35);
}

.toast.warning {
  border-color: rgba(255, 204, 77, 0.42);
  box-shadow: 0 18px 40px rgba(74, 55, 10, 0.35);
}

.toast.error {
  border-color: rgba(255, 104, 104, 0.42);
  box-shadow: 0 18px 40px rgba(70, 23, 23, 0.35);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.muted {
  color: var(--muted);
}

.muted.small {
  font-size: 13px;
}

.alert {
  background: rgba(255, 110, 110, 0.1);
  border: 1px solid rgba(255, 110, 110, 0.28);
  color: #ffd2d2;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
}

.hint {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.user-pill {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-soft);
  min-width: 260px;
}

.user-pill .avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(98, 211, 158, 0.2), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(98, 211, 158, 0.18);
  color: #d7ffe8;
  font-weight: 800;
}

.self-attendance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.attendance-live {
  display: grid;
  gap: 8px;
}

.attendance-live-topline {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.attendance-live-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.attendance-live-badge.success {
  color: #9cf4c9;
  background: rgba(98, 211, 158, 0.08);
  border-color: rgba(98, 211, 158, 0.28);
  box-shadow: inset 0 0 0 1px rgba(98, 211, 158, 0.08);
}

.attendance-live-badge.neutral {
  color: #f2f0ea;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.attendance-live-badge.danger {
  color: #ffb4b4;
  background: rgba(255, 110, 110, 0.08);
  border-color: rgba(255, 110, 110, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 110, 110, 0.08);
}

.attendance-live-badge.holiday {
  color: #b8b3ff;
  background: rgba(143, 165, 255, 0.08);
  border-color: rgba(143, 165, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(143, 165, 255, 0.08);
}

.attendance-live strong {
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.attendance-live strong,
[data-live-session-timer] {
  transition:
    color 180ms ease,
    text-shadow 180ms ease,
    filter 180ms ease;
}

[data-live-session-timer].tone-success,
.attendance-live strong.tone-success {
  color: #72e0a9;
}

[data-live-session-timer].tone-caution,
.attendance-live strong.tone-caution {
  color: #d9dd7a;
}

[data-live-session-timer].tone-warning,
.attendance-live strong.tone-warning {
  color: #f0b66e;
}

[data-live-session-timer].tone-danger,
.attendance-live strong.tone-danger {
  color: #ff8080;
  text-shadow: 0 0 14px rgba(255, 110, 110, 0.18);
}

[data-live-session-timer].tone-muted,
.attendance-live strong.tone-muted {
  color: var(--muted-strong);
}

.attendance-live p {
  margin: 0;
}

.attendance-live-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex: 0 1 auto;
}

.attendance-live-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attendance-live-side {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.attendance-live-side .muted.small {
  text-align: right;
  max-width: 32ch;
}

.attendance-live-note {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.attendance-live-note.delta-positive {
  color: #9cf4c9;
  background: rgba(98, 211, 158, 0.08);
  border-color: rgba(98, 211, 158, 0.25);
}

.attendance-live-note.delta-negative {
  color: #ffb4b4;
  background: rgba(255, 110, 110, 0.08);
  border-color: rgba(255, 110, 110, 0.25);
}

.attendance-live-note.delta-neutral {
  color: #f2f0ea;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.login-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(520px, 100%);
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 16px;
  margin-bottom: 16px;
}

.settings-grid .card,
.settings-wide .card {
  height: 100%;
}

.settings-wide {
  display: grid;
  gap: 16px;
}

.test-suite {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.key-value {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.key-value li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.key-value strong {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.primary.wide {
  width: 100%;
  justify-content: center;
}

.audit-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 10px 0 14px;
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px) saturate(105%);
}

.dialog {
  width: min(520px, 100%);
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 16%),
    linear-gradient(180deg, rgba(20, 20, 20, 0.98), rgba(11, 11, 11, 0.98));
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.58);
}

.dialog.dialog-attendance-edit {
  width: min(640px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dialog-head h3 {
  font-size: 20px;
}

.dialog-message {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
  white-space: pre-wrap;
}

.dialog-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.dialog-form .field input {
  width: 100%;
}

.attendance-edit-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.attendance-edit-stat {
  display: grid;
  gap: 6px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.attendance-edit-stat span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.attendance-edit-stat strong {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

.attendance-edit-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.attendance-edit-row > input {
  flex: 1;
  min-width: 0;
}

.attendance-edit-adjust {
  white-space: nowrap;
  flex-shrink: 0;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.dialog-close {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  font-size: 20px;
  line-height: 1;
}

.dialog-close:hover {
  transform: none;
  box-shadow: none;
}

.small {
  font-size: 13px;
}

@media (max-width: 1100px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }

  #employee-form {
    grid-template-columns: 1fr;
  }

  #employee-form > .actions.end {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .holiday-layout {
    grid-template-columns: 1fr;
  }

  .attendance-month-summary {
    grid-template-columns: 1fr;
  }

  .attendance-month-toolbar {
    width: 100%;
    justify-items: stretch;
  }

  .attendance-month-toolbar .actions-row {
    justify-content: flex-start;
  }
}

@media (max-width: 940px) {
  .app-shell {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    height: 100svh;
    min-height: 0;
    padding: 12px 10px 10px;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-items: stretch;
    gap: 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 0;
    overflow: hidden;
  }

  .content {
    padding: 18px;
  }

  body:not(.app-authenticated) .content {
    padding: 18px;
  }

  .brand {
    grid-column: 1;
    align-self: center;
    justify-items: center;
    gap: 10px;
  }

  .brand > div:last-child {
    display: none;
  }

  .brand-subtitle {
    display: none;
  }

  .brand-mark-image {
    display: grid;
  }

  .nav {
    grid-column: 1;
    align-self: center;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 6px;
    padding: 0;
    overflow: hidden;
  }

  .nav-group {
    display: grid;
    gap: 6px;
  }

  .nav-divider {
    display: none;
  }

  .nav button {
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding: 11px 8px;
    border-radius: 14px;
    gap: 0;
  }

  .nav-label {
    display: none;
  }

  .sidebar-footer {
    display: grid;
    gap: 8px;
    align-self: end;
  }

  .sidebar-footer #logout-btn {
    display: none;
  }

  .sidebar-footer .user-mini {
    width: 100%;
    justify-content: center;
    padding: 10px 8px;
    cursor: pointer;
  }

  .sidebar-footer .user-mini .user-info {
    display: none;
  }

  .sidebar-footer .user-mini .avatar,
  .sidebar-footer .user-mini .avatar-green {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 15px;
  }

  .panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .audit-meta,
  .self-attendance {
    flex-direction: column;
    align-items: flex-start;
  }

  .field.inline {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .content {
    padding: 14px;
  }

  body:not(.app-authenticated) .content {
    padding: 14px;
  }

  .sidebar {
    width: 88px;
    padding-inline: 8px;
  }

  .sidebar-footer {
    width: 100%;
    justify-items: stretch;
  }

  .panel {
    padding: 16px 14px 18px;
  }

  .card {
    padding: 13px;
  }

  .user-pill {
    grid-template-columns: 1fr;
  }

  .user-pill .avatar {
    width: 38px;
    height: 38px;
  }

  .table th,
  .table td {
    padding: 10px 12px;
  }

  .holiday-day {
    min-height: 84px;
    padding: 9px 9px 8px;
    gap: 4px;
  }

  .holiday-day-number {
    font-size: 16px;
  }

  .holiday-day-label {
    min-height: 16px;
    font-size: 10px;
    letter-spacing: 0.05em;
  }

  .holiday-day-label-full {
    display: none;
  }

  .holiday-day-label-compact {
    display: block;
  }

  .holiday-day-tooltip {
    left: 12px;
    right: 12px;
    transform: translateY(-4px);
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .holiday-day:hover .holiday-day-tooltip,
  .holiday-day:focus-visible .holiday-day-tooltip {
    transform: translateY(0);
  }

  .dialog.dialog-attendance-edit {
    width: min(100%, calc(100vw - 24px));
  }

  .attendance-edit-summary {
    grid-template-columns: 1fr;
  }

  .attendance-edit-row {
    flex-direction: column;
    align-items: stretch;
  }

  .attendance-edit-adjust {
    width: 100%;
  }
}
