:root {
  --bg: #f5f7fb;
  --bg-soft: #eef3fb;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: #ffffff;
  --line: rgba(16, 24, 40, 0.1);
  --text: #102033;
  --muted: #607089;
  --accent: #2563eb;
  --accent-2: #0ea5e9;
  --danger: #cf3f5f;
  --warning: #b76b12;
  --success: #15803d;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.09);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(14, 165, 233, 0.12), transparent 24%),
    linear-gradient(180deg, #fbfcff 0%, #f3f6fb 100%);
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", "Gill Sans", sans-serif;
}

body {
  padding: 28px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  position: relative;
  z-index: 1;
  max-width: 1380px;
  margin: 0 auto;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.45;
  pointer-events: none;
}

.bg-orb-1 {
  width: 240px;
  height: 240px;
  right: 2%;
  top: 4%;
  background: rgba(37, 99, 235, 0.12);
}

.bg-orb-2 {
  width: 260px;
  height: 260px;
  left: 6%;
  bottom: 8%;
  background: rgba(14, 165, 233, 0.12);
}

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

.topbar-brand {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.78rem;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.95;
}

.lede {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.topbar-logo {
  width: 132px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.notification-btn__icon {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  color: #102033;
  font-size: 1rem;
  line-height: 1;
  filter: grayscale(1) saturate(0.55);
}

.notification-btn__label {
  display: none;
}

#notificationBtn {
  position: relative;
  min-width: 48px;
  width: 48px;
  height: 48px;
  padding: 0;
  gap: 0;
  justify-content: center;
  border-color: rgba(37, 99, 235, 0.16);
  background: rgba(255, 255, 255, 0.84);
}

.notification-btn__badge {
  position: absolute;
  top: -7px;
  right: -5px;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  border: 2px solid #ffffff;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18);
}

.ghost-btn,
.primary-btn,
.secondary-btn,
.chip-btn,
.tab-btn,
.nav-btn,
.employee-row-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.9rem 1.1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  transition:
    transform 140ms ease,
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.ghost-btn:hover,
.primary-btn:hover,
.secondary-btn:hover,
.chip-btn:hover,
.tab-btn:hover,
.nav-btn:hover,
.employee-row-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.primary-btn {
  color: white;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  border-color: transparent;
}

.secondary-btn {
  background: #f4f8ff;
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0.35rem 0;
  font-weight: 700;
  text-align: left;
  box-shadow: none;
}

.link-btn:hover {
  transform: none;
  box-shadow: none;
  text-decoration: underline;
}

.auth-helper-btn {
  justify-self: start;
}
.chip-btn {
  padding: 0.6rem 0.9rem;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 22px;
  align-items: start;
}

.panel,
.card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.panel {
  padding: 22px;
}

.panel h2,
.card h2,
.card h3,
.section-title {
  margin: 0 0 12px;
}

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

.login-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.tab-btn {
  border-radius: 16px;
  padding: 0.9rem;
  color: var(--muted);
}

.tab-btn.active {
  color: white;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  border-color: transparent;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field label {
  color: #1f2c3f;
  font-size: 0.92rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
  padding: 0.9rem 1rem;
  outline: none;
}

.field textarea {
  min-height: 124px;
  resize: vertical;
}

.password-field-wrap {
  position: relative;
  width: 100%;
}

.password-field-wrap input {
  padding-right: 3.2rem;
}

.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  box-shadow: none;
  font-size: 1rem;
  line-height: 1;
}

.password-visibility-toggle::after {
  content: "";
  position: absolute;
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-35deg);
}

.password-visibility-toggle.is-visible {
  color: var(--accent);
}

.password-visibility-toggle.is-visible::after {
  display: none;
}

.password-visibility-toggle:hover {
  transform: translateY(-50%);
  box-shadow: none;
  background: rgba(37, 99, 235, 0.08);
}

.helper {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dashboard {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
}

.sidebar {
  padding: 18px;
  position: sticky;
  top: 18px;
}

.sidebar nav {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.nav-btn {
  position: relative;
  width: 100%;
  text-align: left;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: #f8faff;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-btn-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 12px;
}

.nav-pending-badge {
  min-width: 24px;
  height: 24px;
  margin-left: auto;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 800;
  border: 2px solid #ffffff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.nav-btn.has-pending {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.1);
}

.external-nav-btn {
  display: flex;
  text-decoration: none;
}

.nav-btn.active {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  border-color: rgba(37, 99, 235, 0.18);
}

.content {
  display: grid;
  gap: 18px;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 18px;
}

.employee-attendance-stat-btn {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.employee-attendance-stat-btn.active {
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.08);
}

.stat {
  grid-column: span 3;
}

.stat-value {
  font-size: 2rem;
  margin: 0;
}

.stat-label {
  color: var(--muted);
  margin: 8px 0 0;
}

.wide {
  grid-column: span 8;
}

.tall {
  grid-column: span 4;
}

.list {
  display: grid;
  gap: 12px;
}

.list-item,
.table-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 16px;
  padding: 12px 14px;
}

.employee-row-btn {
  width: 100%;
  text-align: left;
  padding: 0;
}

.employee-row-btn.active {
  border-color: rgba(37, 99, 235, 0.34);
  background: rgba(37, 99, 235, 0.07);
}

.employee-row-actions {
  justify-content: flex-end;
}

.employee-action-btn {
  appearance: none;
  cursor: pointer;
}

.employee-action-btn.is-active {
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.24);
  transform: translateY(-1px);
}

.group-card {
  grid-column: span 6;
}

.group-kpi-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.group-members-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.group-member-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  padding: 10px 12px;
}

.group-member-chip strong {
  display: block;
}

.group-icon-btn {
  padding: 0.55rem 0.8rem;
  white-space: nowrap;
}

.group-add-member-form,
.group-subgroup-form {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.group-employee-picker {
  position: relative;
}

.group-employee-search {
  margin-bottom: 8px;
}

.group-employee-options {
  position: absolute;
  z-index: 30;
  top: calc(100% - 8px);
  left: 0;
  right: 0;
  display: grid;
  max-height: 190px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.group-employee-option {
  display: grid;
  gap: 3px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  padding: 0.82rem 1rem;
  text-align: left;
  color: var(--text);
}

.group-employee-option strong,
.group-employee-option span,
.group-employee-option small {
  display: block;
}

.group-employee-option span,
.group-employee-option small {
  color: var(--muted);
}

.group-employee-option:hover,
.group-employee-option:focus {
  background: rgba(37, 99, 235, 0.1);
  box-shadow: none;
  transform: none;
}

.group-search-empty {
  margin: 6px 0 0;
}

.table-row {
  align-items: start;
}

.table-row strong,
.list-item strong {
  display: block;
}

.stack {
  display: grid;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.12);
  color: var(--accent);
  font-size: 0.86rem;
}

.pill.success {
  color: var(--success);
  border-color: rgba(21, 128, 61, 0.18);
  background: rgba(21, 128, 61, 0.08);
}

.pill.warning {
  color: var(--warning);
  border-color: rgba(183, 107, 18, 0.18);
  background: rgba(183, 107, 18, 0.08);
}

.pill.danger {
  color: var(--danger);
  border-color: rgba(207, 63, 95, 0.18);
  background: rgba(207, 63, 95, 0.08);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.attendance-claim-row {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 18px;
}

.attendance-claim-details {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.attendance-claim-summary {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.attendance-claim-meta {
  min-width: 0;
}

.attendance-claim-reason {
  display: grid;
  gap: 6px;
}

.attendance-claim-reason-label {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.attendance-claim-actions {
  display: grid;
  gap: 12px;
  justify-items: end;
  align-content: start;
  min-width: 164px;
}

.attendance-claim-time-line,
.attendance-claim-decision-line {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  width: 100%;
}

.attendance-claim-btn {
  padding: 0.7rem 1rem;
  min-width: 88px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px;
}

.leave-wfh-even-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.leave-wfh-date-input {
  cursor: pointer;
}

.leave-wfh-picker {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  background: #f8fbff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.leave-wfh-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.secondary-btn.mini {
  min-width: auto;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
}

.leave-wfh-months {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.leave-wfh-month,
.leave-wfh-picker-month-title {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0.8rem;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.leave-wfh-picker-month-title {
  width: 100%;
  margin-bottom: 10px;
}

.leave-wfh-weekdays,
.leave-wfh-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.leave-wfh-weekdays span {
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.leave-wfh-day {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 6px;
}

.leave-wfh-day.selected {
  border-color: #2563eb;
  background: #dbeafe;
  color: #1d4ed8;
}

.leave-wfh-day.locked {
  background: #f8fafc;
  color: #94a3b8;
  border-style: dashed;
  cursor: not-allowed;
}

.leave-wfh-day small {
  display: block;
  font-size: 0.62rem;
  line-height: 1.1;
}

.leave-wfh-day.is-empty {
  border: 0;
  background: transparent;
}
.empty-state {
  padding: 20px;
  border-radius: 18px;
  border: 1px dashed rgba(37, 99, 235, 0.18);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
}

.notice {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  color: var(--muted);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.kpi-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kpi {
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
}

.kpi p {
  margin: 0;
}

.kpi .value {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 6px 0 4px;
}

.wfh-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 4px 0 14px;
}

.wfh-chart-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px;
  background: linear-gradient(135deg, #ffffff, #f7fbff);
}

.wfh-chart-card strong,
.wfh-chart-card span {
  display: block;
}

.wfh-donut {
  --value: 0;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: conic-gradient(#2563eb calc(var(--value) * 1%), #e8eef8 0);
  position: relative;
}

.wfh-donut::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16);
}

.wfh-donut span {
  position: relative;
  z-index: 1;
  font-weight: 800;
  color: var(--text);
}

.wfh-donut.success {
  background: conic-gradient(#16a34a calc(var(--value) * 1%), rgba(22, 163, 74, 0.2) 0);
}

.wfh-donut.danger {
  background: conic-gradient(#ef4444 calc(var(--value) * 1%), #e8eef8 0);
}

.wfh-balance-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.subtle {
  font-size: 0.9rem;
  color: var(--muted);
}

.subtle-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  background: #fbfcff;
}

.policy-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcff;
}

.policy-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
}

.policy-toggle span {
  display: grid;
  gap: 3px;
}

.policy-toggle small {
  color: var(--muted);
  line-height: 1.35;
}
.attendance-calendar {
  display: grid;
  gap: 14px;
}

.attendance-calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.attendance-calendar-toolbar h3 {
  margin: 0;
  text-align: center;
}

.attendance-calendar-toolbar .helper {
  margin: 4px 0 0;
  text-align: center;
}

.attendance-calendar-nav {
  min-width: 108px;
}

.attendance-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid var(--line);
}

.legend-dot.present { background: #dcfce7; border-color: #86efac; }
.legend-dot.missing { background: #fee2e2; border-color: #fca5a5; }
.legend-dot.wfh { background: #fef3c7; border-color: #facc15; }
.legend-dot.leave { background: #e0f2fe; border-color: #7dd3fc; }
.legend-dot.holiday { background: #ffedd5; border-color: #fdba74; }
.legend-dot.sunday { background: #ffffff; }

.attendance-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.attendance-calendar-weekday,
.attendance-calendar-cell {
  min-height: 86px;
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.attendance-calendar-weekday:nth-child(7n),
.attendance-calendar-cell:nth-child(7n) {
  border-right: 0;
}

.attendance-calendar-weekday {
  min-height: auto;
  background: #f8fbff;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.attendance-calendar-cell.is-empty {
  background: #fbfcff;
}

.attendance-calendar-cell.present { background: #dcfce7; }
.attendance-calendar-cell.missing { background: #fee2e2; }
.attendance-calendar-cell.wfh { background: #fef3c7; }
.attendance-calendar-cell.leave { background: #e0f2fe; }
.attendance-calendar-cell.holiday { background: #ffedd5; }
.attendance-calendar-cell.sunday { background: #ffffff; }

.attendance-calendar-day {
  font-weight: 800;
  color: var(--text);
}

.attendance-calendar-status {
  margin-top: 8px;
  font-weight: 800;
  font-size: 0.86rem;
}

.attendance-calendar-detail {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.detail-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .login-layout,
  .dashboard,
  .split,
  .grid-3,
  .grid-2,
  .kpi-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .stat,
  .wide,
  .tall {
    grid-column: span 1;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  body {
    padding: 14px;
  }

  .topbar {
    flex-direction: column;
  }

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

.template-preview {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.message-preview {
  margin: 12px 0 0;
  white-space: pre-wrap;
  line-height: 1.55;
  color: var(--muted);
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.9rem;
}

.sheet-toolbar {
  margin-top: 14px;
  margin-bottom: 10px;
  align-items: center;
}

.sheet-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
}

.activity-sheet {
  width: 100%;
  border-collapse: collapse;
  min-width: 1800px;
}

.activity-sheet th,
.activity-sheet td {
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
  border-right: 1px solid rgba(16, 24, 40, 0.06);
  padding: 10px;
  vertical-align: top;
  text-align: left;
}

.activity-sheet th {
  position: sticky;
  top: 0;
  background: #f8fbff;
  color: var(--text);
  font-size: 0.88rem;
  z-index: 1;
}

.activity-sheet tr:last-child td {
  border-bottom: 0;
}

.activity-sheet th:last-child,
.activity-sheet td:last-child {
  border-right: 0;
}

.sheet-row-draft {
  background: rgba(255, 255, 255, 0.96);
}

.sheet-row-submitted {
  background: rgba(37, 99, 235, 0.03);
}

.sheet-row-stale td {
  border-top: 1px solid rgba(207, 63, 95, 0.4);
  border-bottom: 1px solid rgba(207, 63, 95, 0.4);
  background: linear-gradient(180deg, rgba(255, 244, 246, 0.95), rgba(255, 255, 255, 0.98));
}

.sheet-row-stale td:first-child {
  border-left: 4px solid var(--danger);
}

.activity-delete-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(207, 63, 95, 0.2);
  border-radius: 999px;
  background: rgba(207, 63, 95, 0.08);
  color: var(--danger);
  cursor: pointer;
}

.activity-delete-btn:hover {
  background: rgba(207, 63, 95, 0.14);
}

.sheet-input {
  width: 100%;
  min-width: 140px;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  padding: 0.65rem 0.75rem;
}

.sheet-area {
  min-height: 86px;
  resize: vertical;
}
.activity-group-client-picker {
  position: relative;
  min-width: 220px;
}

.activity-group-client-search {
  padding-left: 2.35rem;
}

.activity-group-client-toggle {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 8px;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  border: 1px solid rgba(16, 24, 40, 0.14);
  border-radius: 6px;
  background: #f8fbff;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}

.activity-group-client-toggle:hover,
.activity-group-client-toggle:focus-visible {
  border-color: rgba(37, 99, 235, 0.38);
  color: var(--primary);
  outline: none;
}

.activity-group-client-options {
  position: fixed;
  z-index: 1000;
  min-width: 220px;
  display: grid;
  gap: 4px;
  max-height: 220px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.16);
}

.activity-group-client-option {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0.6rem 0.7rem;
  text-align: left;
}

.activity-group-client-option:hover,
.activity-group-client-option:focus-visible {
  background: #eef5ff;
  outline: none;
}

.activity-group-client-picker .group-search-empty {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.activity-admin-sheet-card {
  overflow: hidden;
}

.admin-activity-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
}

.admin-activity-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.admin-activity-table th,
.admin-activity-table td {
  min-width: 140px;
  padding: 0.95rem 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  background: #ffffff;
}

.admin-activity-table thead th {
  background: #f8fbff;
  font-weight: 700;
  color: var(--text);
}

.admin-activity-table thead tr:first-child th {
  white-space: nowrap;
}

.attendance-report-table thead tr:first-child th {
  white-space: normal;
  line-height: 1.25;
}

.attendance-report-table th:nth-child(1),
.attendance-report-table td:nth-child(1) {
  min-width: 160px;
}

.attendance-report-table th:nth-child(4),
.attendance-report-table td:nth-child(4) {
  min-width: 132px;
}

.attendance-report-table th:nth-child(5),
.attendance-report-table td:nth-child(5) {
  min-width: 118px;
}


.admin-activity-filter-cell {
  padding: 0.7rem 0.85rem !important;
  background: #fdfefe !important;
}

.admin-activity-filter-cell input {
  width: 100%;
  min-width: 104px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  padding: 0.55rem 0.7rem;
}

.admin-activity-table th:last-child,
.admin-activity-table td:last-child {
  border-right: 0;
}

.admin-activity-table tbody tr:last-child td {
  border-bottom: 0;
}

.sheet-static-cell {
  min-width: 104px;
  color: var(--text);
  line-height: 1.45;
  white-space: pre-wrap;
}

.sheet-slno,
.sheet-select-cell,
.sheet-timestamp {
  white-space: nowrap;
}

.sheet-footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-top: 16px;
}

.sheet-footer .helper {
  margin: 0;
  max-width: 780px;
}

@media (max-width: 1100px) {
  .sheet-footer {
    flex-direction: column;
    align-items: stretch;
  }
}


.sheet-scroll-shell {
  display: grid;
  gap: 8px;
}

.sheet-scrollbar {
  overflow-x: auto;
  overflow-y: hidden;
  height: 16px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.12);
  scrollbar-gutter: stable;
}

.sheet-scrollbar-track {
  height: 1px;
}

.sheet-scrollbar::-webkit-scrollbar,
.sheet-wrap::-webkit-scrollbar {
  height: 14px;
}

.sheet-scrollbar::-webkit-scrollbar-track,
.sheet-wrap::-webkit-scrollbar-track {
  background: rgba(37, 99, 235, 0.08);
  border-radius: 999px;
}

.sheet-scrollbar::-webkit-scrollbar-thumb,
.sheet-wrap::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 235, 0.35);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.sheet-wrap {
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 4px;
}

.sticky-col {
  position: sticky;
  z-index: 3;
  background: #fdfefe;
}

.activity-sheet td.sticky-col {
  background: #ffffff;
}

.sheet-row-submitted td.sticky-col {
  background: rgba(37, 99, 235, 0.03);
}

.activity-sheet th.sticky-col {
  z-index: 5;
  background: #f8fbff;
}

.sticky-col-select {
  left: 0;
  min-width: 92px;
  width: 92px;
}

.sticky-col-slno {
  left: 92px;
  min-width: 72px;
  width: 72px;
}

.sticky-col-date {
  left: 164px;
  min-width: 180px;
  width: 180px;
}

.activity-sheet td.sticky-col-select,
.activity-sheet td.sticky-col-slno,
.activity-sheet td.sticky-col-date {
  box-shadow: 1px 0 0 rgba(16, 24, 40, 0.06);
}




.activity-sheet {
  width: max-content;
  min-width: 1800px;
  table-layout: fixed;
}

.activity-sheet th,
.activity-sheet td {
  overflow: hidden;
  background-clip: padding-box;
}

.sheet-static-cell {
  max-width: 220px;
  overflow-wrap: anywhere;
}

.sticky-col {
  background-clip: padding-box;
}

.activity-sheet td.sticky-col {
  background: #ffffff;
  z-index: 4;
}

.sheet-row-submitted td.sticky-col {
  background: rgba(37, 99, 235, 0.03);
  z-index: 4;
}

.activity-sheet th.sticky-col {
  z-index: 7;
}

.sticky-col-select {
  left: 0;
  min-width: 96px;
  width: 96px;
  max-width: 96px;
}

.sticky-col-slno {
  left: 96px;
  min-width: 74px;
  width: 74px;
  max-width: 74px;
}

.sticky-col-date {
  left: 170px;
  min-width: 190px;
  width: 190px;
  max-width: 190px;
}

.activity-sheet td.sticky-col-select,
.activity-sheet td.sticky-col-slno,
.activity-sheet td.sticky-col-date,
.activity-sheet th.sticky-col-select,
.activity-sheet th.sticky-col-slno,
.activity-sheet th.sticky-col-date {
  box-shadow: 1px 0 0 rgba(16, 24, 40, 0.08), 8px 0 14px rgba(15, 23, 42, 0.04);
}

.sheet-grid {
  display: grid;
  grid-template-columns: var(--frozen-pane-width, 360px) minmax(0, 1fr);
  align-items: start;
}

.sheet-frozen-pane {
  width: var(--frozen-pane-width, 360px);
  min-width: var(--frozen-pane-width, 360px);
  border: 1px solid var(--line);
  border-right: 1px solid rgba(16, 24, 40, 0.06);
  border-radius: 20px 0 0 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: none;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

.sheet-main-pane {
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 20px 20px 0;
  background: rgba(255, 255, 255, 0.82);
  box-sizing: border-box;
}

.frozen-sheet,
.main-sheet {
  border-collapse: collapse;
  table-layout: fixed;
}

.frozen-sheet {
  width: var(--frozen-pane-width, 360px);
}

.main-sheet {
  width: max-content;
  min-width: 1600px;
}

.frozen-select-col,
.frozen-slno-col,
.frozen-date-col {
  width: auto;
  min-width: 0;
  max-width: none;
}

.frozen-sheet th,
.frozen-sheet td,
.main-sheet th,
.main-sheet td {
  border-bottom: 1px solid rgba(16, 24, 40, 0.08);
  border-right: 1px solid rgba(16, 24, 40, 0.06);
  padding: 10px;
  vertical-align: top;
  text-align: left;
  overflow: hidden;
  background-clip: padding-box;
}

.frozen-sheet th,
.main-sheet th {
  position: sticky;
  top: 0;
  background: #f8fbff;
  z-index: 3;
}

.frozen-sheet td,
.frozen-sheet th {
  background: #ffffff;
}

.frozen-sheet .sheet-row-submitted td,
.frozen-sheet .sheet-row-submitted th,
.main-sheet .sheet-row-submitted td {
  background: rgba(37, 99, 235, 0.03);
}

.frozen-sheet tr:last-child td,
.main-sheet tr:last-child td {
  border-bottom: 0;
}

.main-sheet th:last-child,
.main-sheet td:last-child {
  border-right: 0;
}

.sheet-scroll-shell {
  gap: 10px;
}


@media (max-width: 1100px) {
  .sheet-grid {
    grid-template-columns: var(--frozen-pane-width, 320px) minmax(0, 1fr);
  }
}

.sheet-wrap {
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0;
}

.sticky-col,
.activity-sheet td.sticky-col,
.sheet-row-submitted td.sticky-col,
.activity-sheet th.sticky-col,
.sticky-col-select,
.sticky-col-slno,
.sticky-col-date {
  position: static;
  left: auto;
  width: auto;
  min-width: 0;
  max-width: none;
  z-index: auto;
  box-shadow: none;
  background: inherit;
}


.frozen-sheet.activity-sheet {
  width: var(--frozen-pane-width, 360px) !important;
  min-width: var(--frozen-pane-width, 360px) !important;
  max-width: var(--frozen-pane-width, 360px) !important;
  table-layout: fixed !important;
}

.frozen-sheet.activity-sheet th.frozen-select-col,
.frozen-sheet.activity-sheet td.frozen-select-col,
.frozen-sheet.activity-sheet th.frozen-slno-col,
.frozen-sheet.activity-sheet td.frozen-slno-col,
.frozen-sheet.activity-sheet th.frozen-date-col,
.frozen-sheet.activity-sheet td.frozen-date-col {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}

.sheet-grid {
  gap: 0;
}

.sheet-header {
  position: relative;
}

.sheet-header-cell {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 24px;
  padding-right: 10px;
}

.sheet-col-resizer {
  position: absolute;
  top: -10px;
  right: -11px;
  width: 18px;
  height: calc(100% + 20px);
  border: 0;
  background: transparent;
  cursor: col-resize;
  z-index: 8;
}

.sheet-col-resizer::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  width: 2px;
  border-radius: 999px;
  background: transparent;
  transition: background 120ms ease;
}

.sheet-col-resizer:hover::after,
.sheet-col-resizer:focus-visible::after {
  background: rgba(37, 99, 235, 0.35);
}

.sheet-col-resizer:focus-visible {
  outline: none;
}





.sheet-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  white-space: nowrap;
}

.sheet-select-all input {
  margin: 0;
}

.sheet-header-cell > span {
  display: block;
  min-width: 0;
}

.activity-form-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.26);
}

.activity-form-modal__dialog {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  border-radius: 24px;
  border: 2px solid #ef4444;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
  padding: 24px 24px 22px;
}

.activity-form-modal__dialog.success {
  border-color: #22c55e;
}

.activity-form-modal__eyebrow {
  margin-bottom: 8px;
}

.activity-form-modal__dialog h3 {
  margin: 0 0 10px;
}

.activity-form-modal__message {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.activity-form-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
}





.notification-dialog {
  border-color: rgba(37, 99, 235, 0.22) !important;
}

.notification-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.notification-card--urgent {
  border-color: rgba(207, 63, 95, 0.34);
  border-left-color: var(--danger);
  background: linear-gradient(135deg, #ffffff 0%, #fff4f6 100%);
}

.notification-card--info {
  border-color: rgba(37, 99, 235, 0.26);
  border-left-color: var(--accent);
  background: linear-gradient(135deg, #ffffff 0%, #f1f7ff 100%);
}

.notification-card--resolved {
  border-color: rgba(21, 128, 61, 0.28);
  border-left-color: var(--success);
  background: linear-gradient(135deg, #ffffff 0%, #f2fbf5 100%);
}

.notification-card__body h3 {
  margin: 0 0 8px;
}

.notification-card__eyebrow {
  margin: 0 0 8px;
}

.notification-resolve {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.notification-resolve input {
  width: 18px;
  height: 18px;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.profile-row {
  align-items: center;
}

.profile-row.multiline {
  align-items: start;
}

.profile-row-control {
  width: min(21%, 180px);
}

.profile-row-control.wide {
  width: min(21%, 180px);
}

.profile-row-input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: right;
  color: var(--text);
  font: inherit;
}

.profile-row-input:disabled {
  opacity: 1;
  color: var(--text);
  cursor: default;
}

.profile-row-textarea {
  min-height: 72px;
  resize: vertical;
  text-align: left;
}

.profile-attachment-table th,
.profile-attachment-table td,
.profile-detail-table th,
.profile-detail-table td {
  vertical-align: top;
}

@media (max-width: 900px) {
  .profile-row {
    display: grid;
  }

  .profile-row-control {
    width: 100%;
  }

  .profile-row-input {
    text-align: left;
  }
}

.profile-subsection {
  margin-top: 8px;
}










.profile-row.is-missing {
  border-color: rgba(207, 63, 95, 0.55);
  background: #fff6f7;
}

.profile-row.is-missing strong {
  color: #b42318;
}

.profile-row.is-missing .profile-row-control {
  box-shadow: inset 0 0 0 1px rgba(207, 63, 95, 0.42);
  border-radius: 12px;
  padding: 6px 10px;
  background: #ffffff;
}

.subtle-card.is-missing {
  border-color: rgba(207, 63, 95, 0.45);
  box-shadow: inset 0 0 0 1px rgba(207, 63, 95, 0.22);
}

.sheet-input.is-missing {
  border-color: rgba(207, 63, 95, 0.6);
  background: #fff6f7;
}

.profile-attachment-table tr.is-missing td {
  background: #fff6f7;
}

.profile-attachment-table tr.is-missing td:first-child {
  color: #b42318;
  font-weight: 600;
}

.profile-row-input.is-missing {
  color: #b42318;
  background: #fff6f7;
}

.profile-row-input.is-missing:disabled {
  color: #b42318;
}


.structured-row-action-cell {
  min-width: 116px !important;
  width: 116px;
}

.structured-row-delete-btn {
  min-width: auto;
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}


.structured-row-delete-btn:hover {
  border-color: rgba(207, 63, 95, 0.35);
  color: #b42318;
}



.attendance-report-row {
  cursor: pointer;
}

.attendance-report-row:hover {
  background: rgba(37, 99, 235, 0.06);
}
.attendance-report-row > td {
  cursor: pointer;
}

.holiday-config-table th:last-child,
.holiday-config-table td:last-child {
  text-align: center;
  width: 86px;
}

.holiday-config-table td {
  vertical-align: middle;
}

.holiday-config-input {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  padding: 12px 0;
  outline: none;
}

.holiday-config-input:focus {
  background: #fff;
  padding-left: 10px;
  padding-right: 10px;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.24);
}

.holiday-config-select {
  min-width: 58px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font: inherit;
  font-size: 0.9rem;
  padding: 7px 10px;
  outline: none;
}

.holiday-config-select:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.holiday-config-select.is-rh {
  background: #fff7ed;
  border-color: rgba(251, 146, 60, 0.28);
  color: #c2410c;
}

.holiday-config-select.is-ch {
  background: #ecfdf5;
  border-color: rgba(34, 197, 94, 0.22);
  color: #047857;
}

.holiday-row-locked {
  background: rgba(248, 250, 252, 0.75);
}

.holiday-row-locked .holiday-config-input,
.holiday-row-locked .holiday-config-select {
  color: var(--text);
  cursor: not-allowed;
  opacity: 1;
  -webkit-text-fill-color: var(--text);
}

.holiday-trash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 999px;
  background: #fff5f5;
  color: #dc2626;
  cursor: pointer;
  font-size: 1rem;
}

.holiday-trash-btn:hover:not(:disabled) {
  background: #fee2e2;
  transform: translateY(-1px);
}

.holiday-trash-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}


.group-delete-btn {
  border-color: rgba(248, 113, 113, 0.35);
  color: #dc2626;
  background: #fff5f5;
}

.group-delete-btn:hover {
  background: #fee2e2;
}

.ticket-entry-card {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(239,248,255,0.96));
}

.ticket-home-shell {
  margin-top: 22px;
}

.ticket-portal {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 24px;
  background: #eef2f6;
  box-shadow: var(--shadow);
}

.ticket-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  gap: 16px;
  padding: 0 12px 0 18px;
  min-height: 46px;
  color: #ffffff;
  background: #08a9d2;
}

.ticket-brand,
.ticket-topbar nav {
  display: flex;
  align-items: center;
}

.ticket-brand {
  gap: 12px;
  font-size: 1rem;
  white-space: nowrap;
}

.ticket-brand strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.ticket-topbar nav {
  justify-content: flex-end;
  gap: 4px;
}

.ticket-nav-btn,
.ticket-profile-btn,
.ticket-blue-btn {
  border: 0;
  border-radius: 0;
  color: #ffffff;
  background: transparent;
  padding: 0 12px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  white-space: nowrap;
}

.ticket-nav-icon {
  display: inline-grid;
  place-items: center;
  min-width: 15px;
  font-size: 0.92rem;
}

.ticket-nav-btn.active,
.ticket-nav-btn:hover,
.ticket-profile-btn:hover,
.ticket-blue-btn {
  background: #057fb7;
}

.ticket-profile-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}

.ticket-profile-menu {
  position: absolute;
  top: 48px;
  right: 0;
  z-index: 10;
  width: 320px;
  padding: 18px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.2);
}

.ticket-profile-name {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  text-align: center;
}

.ticket-timezones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
  color: var(--muted);
}

.ticket-body {
  padding: 18px;
}

.ticket-stack {
  display: grid;
  gap: 14px;
}

.ticket-stat-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}

.ticket-stat-grid.compact {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.ticket-stat,
.ticket-panel,
.ticket-side-card,
.ticket-main-form,
.ticket-resource-card {
  border: 1px solid #d7e0ea;
  border-radius: 10px;
  background: #ffffff;
}

.ticket-stat {
  padding: 12px;
  text-align: center;
}

.ticket-stat span,
.ticket-row small {
  color: var(--muted);
  font-size: 0.78rem;
}

.ticket-stat strong {
  display: block;
  margin-top: 5px;
}

.ticket-toolbar,
.ticket-filter-strip,
.ticket-report-filter,
.ticket-report-fields {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #d7e0ea;
}

.ticket-panel {
  padding: 16px;
}

.ticket-chart {
  min-height: 210px;
  margin-top: 18px;
  border-radius: 10px;
  background: repeating-linear-gradient(0deg, #ffffff, #ffffff 27px, #edf2f7 28px);
  position: relative;
}

.ticket-chart-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  border-bottom: 3px dashed #08a9d2;
}

.ticket-chart-legend {
  position: absolute;
  right: 14px;
  top: 12px;
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 0.8rem;
}

.ticket-raise {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
}

.ticket-side-card,
.ticket-main-form {
  padding: 16px;
}

.ticket-editor-toolbar {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #f8fafc;
  color: var(--muted);
}

.ticket-main-form textarea {
  min-height: 260px;
  border-radius: 0 0 10px 10px;
}

.ticket-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 220px;
  gap: 14px;
  padding: 14px;
  border-left: 3px solid #f43f5e;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.ticket-avatar {
  display: grid;
  gap: 6px;
  justify-items: center;
  color: var(--muted);
  font-size: 1.4rem;
}

.ticket-avatar span {
  font-size: 0.68rem;
}

.ticket-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
  color: var(--muted);
}

.ticket-row-status {
  display: grid;
  gap: 8px;
  justify-items: end;
  align-content: start;
}

.ticket-search,
.ticket-resource-search input,
.ticket-resource-search select,
.ticket-toolbar select,
.ticket-report-filter input,
.ticket-report-filter select {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  background: #ffffff;
}

.ticket-report-filter,
.ticket-report-fields {
  display: grid;
  align-items: stretch;
  margin-bottom: 14px;
}

.ticket-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  color: var(--muted);
}

.ticket-resource-search {
  display: flex;
  gap: 0;
}

.ticket-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ticket-resource-card {
  min-height: 310px;
  padding: 46px 34px;
  text-align: center;
}

.ticket-resource-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  font-weight: 800;
}

.ticket-resource-icon.blue {
  color: #08a9d2;
  background: #dff3ff;
}

.ticket-resource-icon.purple {
  color: #7c3aed;
  background: #eadcfb;
}

.ticket-live-help {
  position: absolute;
  right: -28px;
  top: 44%;
  transform: rotate(90deg);
  border: 1px solid #92e3c5;
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  background: #ffffff;
  color: #0f9f6e;
}
.ticket-home-link {
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
}

.ticket-standalone-shell {
  margin-top: 0;
}
.ticket-profile-btn {
  gap: 10px;
  background: #0797c0;
}

.ticket-avatar-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #e8f7fd;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 4px #ffffff;
}
.ticket-profile-redacted {
  display: inline-block;
  width: 58px;
  height: 9px;
  border-radius: 999px;
  background: #07111f;
}

.ticket-profile-redacted.large {
  width: 178px;
  height: 14px;
  margin: 0 auto 8px;
}

.ticket-profile-email {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.ticket-change-password {
  width: 100%;
  border: 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  background: transparent;
  color: #5d6674;
  padding: 13px 0;
  font-weight: 700;
  cursor: pointer;
}

.ticket-profile-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
}

.ticket-profile-action {
  border: 0;
  border-radius: 2px;
  color: #ffffff;
  padding: 9px 18px;
  font-weight: 700;
  cursor: pointer;
}

.ticket-profile-action.primary {
  background: #08a9d2;
}

.ticket-profile-action.danger {
  background: #e74c3c;
}

.ticket-profile-links {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.68rem;
}

.ticket-profile-user {
  color: #ffffff;
  font-weight: 700;
}

.ticket-profile-menu-user {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-weight: 800;
}

.ticket-hrms-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  align-self: center;
  margin-left: 2px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  color: #0a6f8d;
  background: #ffffff;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 5px 12px rgba(7, 127, 183, 0.18);
}

.ticket-hrms-link:hover {
  color: #064c64;
  background: #eefaff;
}

.ticket-back-arrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.98rem;
  line-height: 1;
  transform: translateY(-0.5px);
}




.ticket-login-shell {
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 32px;
}

.ticket-login-card {
  width: min(560px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.ticket-user-form {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fbff;
}

.ticket-stat-btn {
  width: 100%;
  cursor: pointer;
  font: inherit;
}

.ticket-stat-btn.active,
.ticket-stat-btn:hover {
  border-color: rgba(14, 165, 233, 0.55);
  background: #eefaff;
}

.ticket-create-group {
  margin: -4px 0 10px;
  padding: 10px 12px;
  border: 1px dashed rgba(14, 165, 233, 0.38);
  border-radius: 16px;
  background: #f8fbff;
}

.ticket-create-group summary {
  color: #0a6f8d;
  font-weight: 800;
  cursor: pointer;
}

.ticket-create-group form {
  margin-top: 12px;
}


.ticket-group-search,
.ticket-member-search {
  margin-bottom: 8px;
}

.ticket-member-picker {
  max-height: 164px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.ticket-member-picker.compact {
  max-height: 132px;
}

.ticket-member-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #edf2f7;
  font-size: 0.92rem;
}

.ticket-member-row:last-child {
  border-bottom: 0;
}

.ticket-member-row span {
  flex: 1;
}

.ticket-member-row small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.ticket-member-manage-row {
  justify-content: space-between;
}

.ticket-group-manager {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: #f8fbff;
}

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

.ticket-mini-danger {
  border: 1px solid #fecdd3;
  border-radius: 999px;
  background: #fff1f2;
  color: #be123c;
  padding: 7px 12px;
  font-weight: 800;
  cursor: pointer;
}

.ticket-mini-danger:hover {
  background: #ffe4e6;
}

.ticket-group-note {
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fbff;
}


.ticket-trash-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
}
.leave-wfh-picker {
  max-width: 360px;
  border-color: #c7dcff;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.leave-wfh-picker-header {
  justify-content: center;
  position: relative;
  min-height: 38px;
}

.leave-wfh-picker-header strong {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.leave-wfh-nav-btn,
.leave-wfh-close-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #d7e3f3;
  border-radius: 999px;
  background: #f8fbff;
  color: #102033;
  cursor: pointer;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.leave-wfh-nav-btn:hover,
.leave-wfh-close-btn:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

.leave-wfh-picker-header .leave-wfh-nav-btn:first-child {
  position: absolute;
  left: 0;
}

.leave-wfh-picker-header .leave-wfh-nav-btn:nth-of-type(2) {
  position: absolute;
  left: 42px;
}

.leave-wfh-close-btn {
  position: absolute;
  right: 0;
  font-size: 1.15rem;
}

.leave-wfh-months {
  gap: 10px;
}

.leave-wfh-month,
.leave-wfh-picker-month-title {
  min-height: 46px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.leave-wfh-days {
  gap: 7px;
}

.leave-wfh-day {
  min-height: 46px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.leave-wfh-day.locked {
  opacity: 0.42;
  background: #f8fafc;
  color: #94a3b8;
  border-style: solid;
  box-shadow: none;
}

.leave-wfh-day.locked span {
  text-decoration: none;
}

.leave-wfh-even-split .grid-2 {
  align-items: start;
}
.leave-wfh-picker {
  width: 100%; max-width: 100%; box-sizing: border-box;
}

.leave-wfh-picker .eyebrow {
  white-space: nowrap;
}

.leave-wfh-months {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.leave-wfh-month {
  min-width: 0;
  padding: 0.72rem 0.35rem;
  text-align: center;
  white-space: nowrap;
}

.leave-wfh-days {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.leave-wfh-weekdays span {
  min-width: 0;
  font-size: 0.68rem;
}

.leave-wfh-day {
  min-width: 0;
  aspect-ratio: auto;
  min-height: 38px;
  padding: 4px;
}
.leave-wfh-even-split .field {
  min-width: 0;
}

.leave-wfh-picker {
  overflow: hidden;
}

.leave-wfh-picker-header {
  display: grid;
  grid-template-columns: auto minmax(72px, 1fr) auto;
  align-items: center;
  gap: 8px;
  justify-content: stretch;
}

.leave-wfh-nav-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.leave-wfh-picker-header .leave-wfh-nav-btn:first-child,
.leave-wfh-picker-header .leave-wfh-nav-btn:nth-of-type(2),
.leave-wfh-close-btn {
  position: static;
  left: auto;
  right: auto;
}

.leave-wfh-picker-header strong {
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leave-wfh-nav-btn,
.leave-wfh-close-btn {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

.leave-wfh-months {
  gap: 8px;
}

.leave-wfh-month {
  min-height: 44px;
  font-size: 0.92rem;
}

.leave-wfh-days {
  gap: 5px;
}

.leave-wfh-day {
  min-height: 36px;
  border-radius: 12px;
  font-size: 0.92rem;
}
.leave-wfh-redesign .leave-wfh-calendar {
  display: grid;
  gap: 14px;
}

.leave-wfh-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.leave-wfh-calendar-weekday,
.leave-wfh-calendar-cell {
  min-height: 88px;
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.leave-wfh-calendar-weekday:nth-child(7n),
.leave-wfh-calendar-cell:nth-child(7n) {
  border-right: 0;
}

.leave-wfh-calendar-weekday {
  min-height: auto;
  background: #f8fbff;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.leave-wfh-calendar-cell {
  appearance: none;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  display: grid;
  align-content: start;
  gap: 8px;
}

.leave-wfh-calendar-cell strong {
  font-size: 1rem;
}

.leave-wfh-calendar-cell span {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.74rem;
  font-weight: 800;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}

.leave-wfh-calendar-cell.open:hover {
  background: #eff6ff;
  box-shadow: inset 0 0 0 2px #93c5fd;
}

.leave-wfh-calendar-cell.selected {
  background: #dbeafe;
  box-shadow: inset 0 0 0 2px #2563eb;
}

.leave-wfh-calendar-cell.selected span,
.legend-dot.selected {
  background: #2563eb;
  color: #fff;
}

.leave-wfh-calendar-cell.wfh { background: #fef3c7; }
.leave-wfh-calendar-cell.leave { background: #e0f2fe; }
.leave-wfh-calendar-cell.holiday { background: #ffedd5; }
.leave-wfh-calendar-cell.sunday { background: #fff; }
.leave-wfh-calendar-cell.blocked { background: #f8fafc; }

.leave-wfh-calendar-cell:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.leave-wfh-calendar-cell.is-empty {
  background: #fbfcff;
  cursor: default;
}

.leave-wfh-request-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #dbeafe;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.selected-date-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.selected-date-strip .pill button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-weight: 900;
  margin-left: 6px;
}

@media (max-width: 760px) {
  .leave-wfh-calendar-weekday,
  .leave-wfh-calendar-cell {
    min-height: 62px;
    padding: 7px;
    font-size: 0.82rem;
  }

  .leave-wfh-calendar-cell span {
    display: none;
  }
}


.admin-leave-wfh-calendar-card .leave-wfh-calendar-grid {
  overflow: hidden;
}

.admin-calendar-cell {
  cursor: pointer;
}

.admin-calendar-cell.mixed,
.legend-dot.mixed {
  background: linear-gradient(135deg, #fef3c7 0 50%, #e0f2fe 50% 100%);
  border-color: #93c5fd;
}

.admin-calendar-cell.selected {
  box-shadow: inset 0 0 0 2px #2563eb;
}

.admin-leave-wfh-drilldown {
  margin-top: 18px;
}

.admin-leave-wfh-drilldown .employee-row-btn {
  text-align: left;
}

.admin-leave-wfh-drilldown .list {
  max-height: 330px;
  overflow-y: auto;
  padding-right: 6px;
}


/* Modern admin Leave/WFH calendar skin - scoped to admin page only */
.admin-leave-wfh-calendar-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.16), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
}

.admin-leave-wfh-calendar-card > .section-header {
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.admin-leave-wfh-calendar-card .leave-wfh-calendar {
  position: relative;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(191, 219, 254, 0.92);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 18px 38px rgba(59, 130, 246, 0.08);
}

.admin-leave-wfh-calendar-card .attendance-calendar-toolbar {
  display: grid;
  grid-template-columns: minmax(110px, auto) 1fr minmax(110px, auto);
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.admin-leave-wfh-calendar-card .attendance-calendar-toolbar > div {
  padding: 10px 18px;
  border: 1px solid rgba(219, 234, 254, 0.95);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.98));
  text-align: center;
}

.admin-leave-wfh-calendar-card .attendance-calendar-toolbar h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

.admin-leave-wfh-calendar-card .attendance-calendar-toolbar .helper {
  max-width: 760px;
  margin: 4px auto 0;
  color: #64748b;
  font-size: 0.86rem;
}

.admin-leave-wfh-calendar-card .attendance-calendar-nav {
  min-height: 46px;
  border-color: rgba(147, 197, 253, 0.7);
  background: linear-gradient(135deg, #ffffff, #eff6ff);
  color: #1e3a8a;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.10);
}

.admin-leave-wfh-calendar-card .attendance-calendar-nav:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #60a5fa;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.admin-leave-wfh-calendar-card .attendance-calendar-legend {
  justify-content: center;
  gap: 14px 18px;
  margin: 10px 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.88);
  color: #475569;
  font-weight: 700;
}

.admin-leave-wfh-calendar-card .legend-dot {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.95);
}

.admin-leave-wfh-calendar-card .leave-wfh-calendar-grid {
  gap: 8px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.admin-leave-wfh-calendar-card .leave-wfh-calendar-weekday {
  min-height: 34px;
  padding: 8px 6px;
  border: 0;
  border-radius: 14px;
  background: #eef6ff;
  color: #475569;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.admin-leave-wfh-calendar-card .leave-wfh-calendar-cell {
  min-height: 94px;
  padding: 12px;
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.admin-leave-wfh-calendar-card .leave-wfh-calendar-cell strong {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  color: #0f172a;
  font-size: 0.96rem;
  font-weight: 900;
}

.admin-leave-wfh-calendar-card .leave-wfh-calendar-cell span {
  max-width: 100%;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.09);
  color: #1d4ed8;
  font-size: 0.74rem;
  line-height: 1.2;
  white-space: normal;
}

.admin-leave-wfh-calendar-card .admin-calendar-cell.open:hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  background: #f8fbff;
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.14);
}

.admin-leave-wfh-calendar-card .admin-calendar-cell.wfh {
  border-color: #facc15;
  background: linear-gradient(145deg, #fffbeb, #fef3c7);
}

.admin-leave-wfh-calendar-card .admin-calendar-cell.leave {
  border-color: #7dd3fc;
  background: linear-gradient(145deg, #f0f9ff, #dff2ff);
}

.admin-leave-wfh-calendar-card .admin-calendar-cell.holiday {
  border-color: #fdba74;
  background: linear-gradient(145deg, #fff7ed, #ffedd5);
}

.admin-leave-wfh-calendar-card .admin-calendar-cell.sunday {
  border-color: rgba(191, 219, 254, 0.9);
  background: linear-gradient(145deg, #ffffff, #f8fbff);
}

.admin-leave-wfh-calendar-card .admin-calendar-cell.mixed {
  border-color: #60a5fa;
  background: linear-gradient(135deg, #fef3c7 0 48%, #dff2ff 48% 100%);
}

.admin-leave-wfh-calendar-card .admin-calendar-cell.wfh span,
.admin-leave-wfh-calendar-card .legend-dot.wfh {
  background: #fef3c7;
  color: #92400e;
}

.admin-leave-wfh-calendar-card .admin-calendar-cell.leave span,
.admin-leave-wfh-calendar-card .legend-dot.leave {
  background: #dbeafe;
  color: #1d4ed8;
}

.admin-leave-wfh-calendar-card .admin-calendar-cell.holiday span,
.admin-leave-wfh-calendar-card .legend-dot.holiday {
  background: #ffedd5;
  color: #c2410c;
}

.admin-leave-wfh-calendar-card .admin-calendar-cell.sunday span,
.admin-leave-wfh-calendar-card .legend-dot.sunday {
  background: #eef2ff;
  color: #2563eb;
}

.admin-leave-wfh-calendar-card .admin-calendar-cell.mixed span,
.admin-leave-wfh-calendar-card .legend-dot.mixed {
  background: #2563eb;
  color: #fff;
}

.admin-leave-wfh-calendar-card .admin-calendar-cell.selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22), 0 20px 42px rgba(37, 99, 235, 0.18);
}

.admin-leave-wfh-calendar-card .admin-calendar-cell.selected strong {
  background: #2563eb;
  color: #fff;
}

.admin-leave-wfh-calendar-card .leave-wfh-calendar-cell.is-empty {
  border: 1px dashed rgba(203, 213, 225, 0.55);
  background: rgba(248, 250, 252, 0.55);
  box-shadow: none;
}

@media (max-width: 980px) {
  .admin-leave-wfh-calendar-card .attendance-calendar-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-leave-wfh-calendar-card .leave-wfh-calendar-cell {
    min-height: 76px;
    padding: 8px;
  }
}

/* Admin Leave/WFH calendar Sunday/Holiday color refinement */
.admin-leave-wfh-calendar-card .admin-calendar-cell.sunday {
  border-color: #cbd5e1;
  background: linear-gradient(145deg, #f8fafc, #e5e7eb);
}

.admin-leave-wfh-calendar-card .admin-calendar-cell.sunday span,
.admin-leave-wfh-calendar-card .legend-dot.sunday {
  background: #e5e7eb;
  color: #475569;
}

.admin-leave-wfh-calendar-card .admin-calendar-cell.holiday {
  border-color: #fca5a5;
  background: linear-gradient(145deg, #fff1f2, #fecaca);
}

.admin-leave-wfh-calendar-card .admin-calendar-cell.holiday span,
.admin-leave-wfh-calendar-card .legend-dot.holiday {
  background: #fee2e2;
  color: #b91c1c;
}

/* Employee Leave/WFH compact calendar and balance layout */
@media (min-width: 1120px) {
  .leave-wfh-redesign {
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(310px, 0.58fr);
    align-items: start;
    gap: 18px;
  }

  .leave-wfh-redesign > .card:first-child {
    grid-column: 1;
    grid-row: 1;
  }

  .leave-wfh-redesign > .card:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .leave-wfh-redesign > .split {
    grid-column: 1 / -1;
  }
}

.leave-wfh-redesign > .card:first-child {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.13), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.08);
}

.leave-wfh-redesign > .card:first-child .section-header {
  align-items: center;
}

.leave-wfh-redesign > .card:first-child .leave-wfh-calendar {
  position: relative;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 16px 34px rgba(59, 130, 246, 0.07);
}

.leave-wfh-redesign > .card:first-child .attendance-calendar-toolbar {
  display: grid;
  grid-template-columns: minmax(92px, auto) 1fr minmax(92px, auto);
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.leave-wfh-redesign > .card:first-child .attendance-calendar-toolbar > div {
  padding: 8px 14px;
  border: 1px solid rgba(219, 234, 254, 0.95);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.94), rgba(255, 255, 255, 0.98));
  text-align: center;
}

.leave-wfh-redesign > .card:first-child .attendance-calendar-toolbar h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.leave-wfh-redesign > .card:first-child .attendance-calendar-toolbar .helper {
  margin: 3px auto 0;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.35;
}

.leave-wfh-redesign > .card:first-child .attendance-calendar-nav {
  min-height: 42px;
  min-width: 92px;
  border-color: rgba(147, 197, 253, 0.7);
  background: linear-gradient(135deg, #ffffff, #eff6ff);
  color: #1e3a8a;
  font-weight: 800;
  box-shadow: 0 9px 20px rgba(37, 99, 235, 0.09);
}

.leave-wfh-redesign > .card:first-child .attendance-calendar-legend {
  justify-content: center;
  gap: 10px 14px;
  margin: 8px 0 12px;
  padding: 9px 10px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.9);
  color: #475569;
  font-size: 0.86rem;
  font-weight: 700;
}

.leave-wfh-redesign > .card:first-child .legend-dot {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.95);
}

.leave-wfh-redesign > .card:first-child .leave-wfh-calendar-grid {
  gap: 8px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.leave-wfh-redesign > .card:first-child .leave-wfh-calendar-weekday {
  min-height: 32px;
  padding: 8px 6px;
  border: 0;
  border-radius: 14px;
  background: #eef6ff;
  color: #475569;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.leave-wfh-redesign > .card:first-child .leave-wfh-calendar-cell {
  min-height: 74px;
  padding: 10px;
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.leave-wfh-redesign > .card:first-child .leave-wfh-calendar-cell strong {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 11px;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 900;
}

.leave-wfh-redesign > .card:first-child .leave-wfh-calendar-cell span {
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.09);
  color: #1d4ed8;
  font-size: 0.7rem;
  line-height: 1.2;
  white-space: normal;
}

.leave-wfh-redesign > .card:first-child .leave-wfh-calendar-cell.open:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  background: #f8fbff;
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.12);
}

.leave-wfh-redesign > .card:first-child .leave-wfh-calendar-cell.wfh {
  border-color: #facc15;
  background: linear-gradient(145deg, #fffbeb, #fef3c7);
}

.leave-wfh-redesign > .card:first-child .leave-wfh-calendar-cell.mixed {
  border-color: #60a5fa;
  background: linear-gradient(135deg, #fef3c7 0 48%, #dff2ff 48% 100%);
}
.leave-wfh-redesign > .card:first-child .leave-wfh-calendar-cell.leave {
  border-color: #7dd3fc;
  background: linear-gradient(145deg, #f0f9ff, #dff2ff);
}

.leave-wfh-redesign > .card:first-child .leave-wfh-calendar-cell.holiday {
  border-color: #fca5a5;
  background: linear-gradient(145deg, #fff1f2, #fecaca);
}

.leave-wfh-redesign > .card:first-child .leave-wfh-calendar-cell.sunday {
  border-color: #cbd5e1;
  background: linear-gradient(145deg, #f8fafc, #e5e7eb);
}

.leave-wfh-redesign > .card:first-child .leave-wfh-calendar-cell.blocked {
  background: #f8fafc;
}

.leave-wfh-redesign > .card:first-child .leave-wfh-calendar-cell.selected {
  border-color: #2563eb;
  background: #dbeafe;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.20), 0 16px 34px rgba(37, 99, 235, 0.14);
}

.leave-wfh-redesign > .card:first-child .leave-wfh-calendar-cell.selected strong {
  background: #2563eb;
  color: #fff;
}

.leave-wfh-redesign > .card:first-child .leave-wfh-calendar-cell.holiday span,
.leave-wfh-redesign > .card:first-child .legend-dot.holiday {
  background: #fee2e2;
  color: #b91c1c;
}

.leave-wfh-redesign > .card:first-child .leave-wfh-calendar-cell.sunday span,
.leave-wfh-redesign > .card:first-child .legend-dot.sunday {
  background: #e5e7eb;
  color: #475569;
}

.leave-wfh-redesign > .card:first-child .leave-wfh-calendar-cell.wfh span,
.leave-wfh-redesign > .card:first-child .legend-dot.wfh {
  background: #fef3c7;
  color: #92400e;
}

.leave-wfh-redesign > .card:first-child .leave-wfh-calendar-cell.mixed span,
.leave-wfh-redesign > .card:first-child .legend-dot.mixed {
  background: #2563eb;
  color: #fff;
}
.leave-wfh-redesign > .card:first-child .leave-wfh-calendar-cell.leave span,
.leave-wfh-redesign > .card:first-child .legend-dot.leave {
  background: #dbeafe;
  color: #1d4ed8;
}

.leave-wfh-redesign > .card:first-child .leave-wfh-calendar-cell.is-empty {
  border: 1px dashed rgba(203, 213, 225, 0.55);
  background: rgba(248, 250, 252, 0.55);
  box-shadow: none;
}

.leave-wfh-redesign > .card:nth-child(2) {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.08);
}

.leave-wfh-redesign > .card:nth-child(2) .section-header {
  align-items: start;
  gap: 10px;
}

.leave-wfh-redesign > .card:nth-child(2) .wfh-visual-grid {
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 10px 0 14px;
}

.leave-wfh-redesign > .card:nth-child(2) .wfh-chart-card {
  min-height: 96px;
  border-color: rgba(203, 213, 225, 0.75);
  border-radius: 24px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.leave-wfh-redesign > .card:nth-child(2) .wfh-donut {
  width: 68px;
  height: 68px;
  flex-basis: 68px;
}

.leave-wfh-redesign > .card:nth-child(2) .wfh-donut::after {
  inset: 9px;
}

.leave-wfh-redesign > .card:nth-child(2) .wfh-balance-kpis {
  grid-template-columns: 1fr;
  gap: 10px;
}

.leave-wfh-redesign > .card:nth-child(2) .kpi {
  min-height: auto;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}

@media (max-width: 1119px) {
  .leave-wfh-redesign {
    display: grid;
    gap: 12px;
  }
}

@media (max-width: 760px) {
  .leave-wfh-redesign > .card:first-child .attendance-calendar-toolbar {
    grid-template-columns: 1fr;
  }

  .leave-wfh-redesign > .card:first-child .attendance-calendar-legend {
    border-radius: 18px;
    justify-content: flex-start;
  }

  .leave-wfh-redesign > .card:first-child .leave-wfh-calendar-cell {
    min-height: 60px;
    padding: 7px;
  }
}

.leave-carry-forward-note {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 20px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.08);
}

.leave-carry-forward-note span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.leave-carry-forward-note strong {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.4;
}






.admin-leave-wfh-report-card {
  overflow: hidden;
}

.admin-leave-wfh-report-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 0.55rem;
  align-items: end;
  margin-bottom: 0.7rem;
}

.admin-leave-wfh-report-filters .field {
  margin: 0;
}

.admin-leave-wfh-report-filters label {
  font-size: 0.78rem;
}

.admin-leave-wfh-report-filters input,
.admin-leave-wfh-report-filters select {
  min-height: 42px;
  padding: 0.58rem 0.72rem;
}

.admin-leave-wfh-report-table th,
.admin-leave-wfh-report-table td {
  padding: 0.68rem 0.75rem;
}

.admin-leave-wfh-report-actions {
  align-self: end;
  flex-wrap: nowrap;
}

.admin-leave-wfh-report-wrap {
  max-height: 390px;
  overflow: auto;
}

.admin-leave-wfh-report-table {
  min-width: 860px;
}

.admin-leave-wfh-report-table th:nth-child(1),
.admin-leave-wfh-report-table td:nth-child(1) {
  min-width: 104px;
}

.admin-leave-wfh-report-table th:nth-child(2),
.admin-leave-wfh-report-table td:nth-child(2) {
  min-width: 160px;
}

.admin-leave-wfh-report-table th:nth-child(3),
.admin-leave-wfh-report-table td:nth-child(3) {
  min-width: 104px;
}

.admin-leave-wfh-report-table th:nth-child(4),
.admin-leave-wfh-report-table td:nth-child(4) {
  min-width: 142px;
}

.admin-leave-wfh-report-table th:nth-child(5),
.admin-leave-wfh-report-table td:nth-child(5) {
  min-width: 104px;
}

.admin-leave-wfh-report-table th:nth-child(6),
.admin-leave-wfh-report-table td:nth-child(6) {
  min-width: 230px;
}
.report-total-footer {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 12px;
  padding: 12px 16px;
}

.report-total-footer span {
  color: var(--muted);
  font-weight: 700;
}

.report-total-footer strong {
  color: var(--text);
}

@media (max-width: 980px) {
  .admin-leave-wfh-report-filters {
    grid-template-columns: 1fr;
  }

  .admin-leave-wfh-report-actions {
    justify-content: flex-start;
  }
}

.report-employee-search-field {
  position: relative;
}

.report-employee-suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 0.35rem;
  padding: 0.45rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.report-employee-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.report-employee-suggestion:hover {
  background: #eff6ff;
}

.report-employee-suggestion span {
  color: var(--muted);
  font-size: 0.86rem;
}
/* Temporary beta feedback capture */
.feedback-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 160;
  display: grid;
  justify-items: end;
  gap: 12px;
}

.feedback-trigger {
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.18);
  color: #0f3f9d;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 12px 18px;
}

.feedback-trigger:hover {
  border-color: rgba(37, 99, 235, 0.48);
  transform: translateY(-1px);
}

.feedback-form textarea {
  min-height: 128px;
  resize: vertical;
}

.feedback-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-form input[type="file"] {
  border: 1px dashed rgba(37, 99, 235, 0.32);
  border-radius: 18px;
  padding: 14px;
}

.feedback-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(460px, calc(100vw - 28px));
  max-height: min(78vh, 680px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.98));
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.72) inset;
  animation: feedbackPopoverIn 0.16s ease-out;
}

.feedback-popover::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: -9px;
  width: 18px;
  height: 18px;
  background: rgba(245, 249, 255, 0.98);
  border-right: 1px solid rgba(37, 99, 235, 0.2);
  border-bottom: 1px solid rgba(37, 99, 235, 0.2);
  transform: rotate(45deg);
}

.feedback-popover .section-header {
  align-items: flex-start;
  gap: 14px;
}

.feedback-popover .icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #174ea6;
  background: #eef5ff;
}

.feedback-popover .actions {
  justify-content: flex-end;
}

.feedback-popover .feedback-meta .pill {
  background: linear-gradient(135deg, #eff6ff, #e9f2ff);
}

@keyframes feedbackPopoverIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 700px) {
  .feedback-widget {
    right: 14px;
    bottom: 14px;
  }

  .feedback-trigger {
    padding: 10px 14px;
  }

  .feedback-popover {
    right: -2px;
    width: calc(100vw - 28px);
    max-height: 74vh;
  }
}
