:root {
  --module-bg: #f7fafd;
  --module-card: #ffffff;
  --module-ink: #1f2f3d;
  --module-muted: #617181;
  --module-line: #dce7f2;
  --module-brand: #2563eb;
  --module-brand-dark: #1d4ed8;
  --module-success: #147a55;
  --module-danger: #b4233b;
  --module-warning: #a15c05;
}

.module-body { margin: 0; min-height: 100vh; color: var(--module-ink); background: radial-gradient(circle at top right, #dbeafe 0, transparent 30rem), var(--module-bg); }
.module-topbar { position: sticky; top: 0; z-index: 30; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px clamp(16px, 4vw, 48px); background: rgba(255,255,255,.94); border-bottom: 1px solid var(--module-line); backdrop-filter: blur(16px); }
.module-brand { color: var(--module-brand-dark); font-size: 1.1rem; font-weight: 850; letter-spacing: .02em; text-decoration: none; }
.module-topbar__actions { display: flex; align-items: center; gap: 14px; color: var(--module-muted); font-size: .9rem; }
.module-main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 64px; }
.module-main--narrow { width: min(840px, calc(100% - 32px)); }
.module-breadcrumb { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; color: var(--module-muted); font-size: .9rem; }
.module-breadcrumb a { color: var(--module-brand); }
.module-nav { position: static; inset: auto; z-index: auto; display: flex; width: 100%; flex-direction: row; gap: 8px; margin: 0 0 18px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.module-nav .module-link { flex: 0 0 auto; }
.module-link__badge { display: inline-grid; min-width: 22px; height: 22px; margin-left: 7px; padding: 0 6px; place-items: center; border-radius: 999px; background: #1f4aa5; color: #fff; font-size: 12px; font-weight: 800; line-height: 1; }
.module-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: clamp(24px, 5vw, 44px); margin-bottom: 20px; border-radius: 26px; color: #fff; background: linear-gradient(135deg, #1d4ed8, #2563eb 62%, #60a5fa); box-shadow: 0 22px 54px rgba(29, 78, 216, .18); }
.module-hero h1 { margin: 3px 0 10px; font-size: clamp(1.8rem, 5vw, 3rem); }
.module-hero p { max-width: 720px; margin: 0; color: rgba(255,255,255,.84); line-height: 1.65; }
.eyebrow { margin: 0; font-size: .72rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.module-card { padding: clamp(20px, 4vw, 32px); margin-bottom: 20px; border: 1px solid var(--module-line); border-radius: 22px; background: var(--module-card); box-shadow: 0 12px 30px rgba(31, 47, 61, .07); }
.module-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.module-stack > * { min-width: 0; }
.module-section-heading { display: flex; justify-content: space-between; gap: 28px; align-items: end; }
.module-section-heading h2 { margin: 3px 0 0; font-size: clamp(1.25rem, 3vw, 1.7rem); }
.module-section-heading > p { max-width: 500px; margin: 0; color: var(--module-muted); line-height: 1.55; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feature-card { min-height: 92px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "copy switch" "status switch"; align-items: center; gap: 5px 18px; padding: 18px; border: 1px solid var(--module-line); border-radius: 17px; background: #f8fbff; cursor: pointer; transition: .18s ease; }
.feature-card.is-enabled { border-color: #93c5fd; background: #eff6ff; box-shadow: inset 4px 0 var(--module-brand); }
.feature-card__copy { grid-area: copy; display: grid; gap: 4px; }
.feature-card__copy small { color: var(--module-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.feature-card > .status-pill { grid-area: status; justify-self: start; }
.switch { grid-area: switch; position: relative; display: inline-flex; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track { width: 50px; height: 29px; border-radius: 99px; background: #cbd5e1; transition: .18s ease; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.switch__track::after { content: ""; display: block; width: 23px; height: 23px; margin: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 7px rgba(0,0,0,.22); transition: .18s ease; }
.switch input:checked + .switch__track { background: var(--module-brand); }
.switch input:checked + .switch__track::after { transform: translateX(21px); }
.status-pill { display: inline-flex; align-items: center; width: fit-content; padding: 5px 10px; border-radius: 999px; font-size: .75rem; font-weight: 800; }
.status-pill--safe, .status-pill--on { color: #d9fff0; background: rgba(9, 86, 59, .75); }
.status-pill--off { color: #536475; background: #e8eef5; }
.module-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.module-field { display: grid; gap: 8px; font-weight: 750; }
.module-field input, .module-field select, .module-field textarea { width: 100%; box-sizing: border-box; border: 1px solid #cbd9e8; border-radius: 12px; padding: 12px 13px; color: var(--module-ink); background: #fff; font: inherit; }
.module-field textarea { resize: vertical; line-height: 1.55; }
.module-field input:focus, .module-field select:focus, .module-field textarea:focus { outline: 3px solid rgba(37,99,235,.16); border-color: var(--module-brand); }
.rate-readonly { min-height: 46px; display: flex; align-items: center; box-sizing: border-box; padding: 12px 13px; border: 1px solid #cbd9e8; border-radius: 12px; color: var(--module-brand-dark); background: #eef6ff; font-weight: 700; line-height: 1.45; }
.module-actions { display: flex; justify-content: flex-end; gap: 12px; }
.module-alert { padding: 14px 16px; margin-bottom: 18px; border-radius: 13px; font-weight: 700; }
.module-alert--success { color: #0c6949; background: #dff7ec; border: 1px solid #b5e6d1; }
.module-alert--error { color: #8e1e32; background: #fde8ec; border: 1px solid #f4bcc8; }
.module-alert--warning { color: #77420a; background: #fff2d8; border: 1px solid #f0d296; }
.privacy-notice { padding: 16px 18px; border-radius: 15px; background: #eef6ff; border: 1px solid #cfe0f5; }
.privacy-notice p { margin: 7px 0 0; color: var(--module-muted); line-height: 1.6; }
.module-subsection { padding-top: 20px; border-top: 1px solid var(--module-line); }
.module-subsection h2, .module-subsection h3 { margin: 0 0 15px; }
.confirm-box { display: flex; gap: 11px; align-items: flex-start; padding: 14px; border-radius: 13px; background: #f8fbff; border: 1px solid var(--module-line); }
.confirm-box input { width: 19px; height: 19px; flex: 0 0 auto; }
.split-layout { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.5fr); gap: 20px; align-items: start; }
.employee-list { display: grid; gap: 10px; }
.employee-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; color: var(--module-ink); text-decoration: none; border: 1px solid var(--module-line); border-radius: 14px; background: #f8fbff; }
.employee-row.is-active { border-color: #93c5fd; box-shadow: inset 4px 0 var(--module-brand); background: #eff6ff; }
.employee-row span:first-child { display: grid; gap: 4px; min-width: 0; }
.employee-row small { color: var(--module-muted); overflow: hidden; text-overflow: ellipsis; }
.masked-value { padding: 8px 11px; border-radius: 10px; color: var(--module-muted); background: #eef3f8; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; }
.balance-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.balance-card { position: relative; display: grid; gap: 5px; padding: 20px; border: 1px solid var(--module-line); border-radius: 18px; background: #fff; overflow: hidden; }
.balance-card::before { content:""; position:absolute; inset:0 auto 0 0; width:5px; background:var(--accent); }
.balance-card span { color:var(--module-muted); font-weight:750; }
.balance-card strong { font-size:2rem; }
.balance-card small { color:var(--module-muted); }
.leave-layout { grid-template-columns: minmax(300px,.8fr) minmax(0,1.2fr); }
.upload-box { display:grid; gap:9px; padding:17px; border:1.5px dashed #a9c5e8; border-radius:15px; background:#f8fbff; }
.upload-box input { max-width:100%; }
.upload-box small { color:var(--module-muted); }
.request-list { display:grid; gap:13px; }
.request-card { padding:16px; border:1px solid var(--module-line); border-radius:16px; background:#f9fbfe; }
.request-card__top { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:10px; align-items:start; }
.request-card__top > div { display:grid; gap:4px; }
.request-card__top small { color:var(--module-muted); }
.type-dot { width:10px; height:10px; margin-top:6px; border-radius:50%; }
.request-card > p { margin:12px 0; color:var(--module-muted); line-height:1.5; }
.request-card__actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.request-card__actions form { margin:0; }
.inline-upload { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.inline-upload input[type=file] { max-width:220px; }
.admin-note { padding:12px; margin:10px 0; border-radius:12px; background:#fff2da; }
.admin-note p { margin:5px 0 0; }
.status-pending,.status-pending_document,.status-more_info,.status-cancel_requested { color:#7b4a05; background:#fff0ce; }
.status-approved { color:#0c6949; background:#dff7ec; }
.status-rejected,.status-cancelled { color:#8e1e32; background:#fde8ec; }

/* Staff leave and MC centre. */
.leave-page { background:var(--jk-color-bg,#f4f8ff); }
.leave-centre { width:min(1080px,calc(100% - 32px)); padding-bottom:calc(88px + env(safe-area-inset-bottom)); }
.leave-centre .module-breadcrumb { margin-bottom:10px; }
.leave-centre .module-nav { margin-bottom:14px; }
.leave-hero {
  display:grid; grid-template-columns:52px minmax(0,1fr); align-items:center; gap:14px;
  min-height:0; padding:18px 20px; margin-bottom:14px;
  border:1px solid var(--jk-color-primary-border,#bfdbfe); border-radius:var(--jk-radius-md,18px);
  color:var(--jk-color-text,#162337); background:var(--jk-color-surface,#fff);
  box-shadow:var(--jk-shadow-sm,0 8px 22px rgba(37,99,235,.08));
}
.leave-hero::before {
  content:""; width:52px; height:52px; border-radius:16px; background-color:var(--jk-color-primary-soft,#eaf2ff);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 11h18M8 15h.01M12 15h.01M16 15h.01'/%3E%3C/svg%3E");
  background-position:center; background-repeat:no-repeat;
}
.leave-hero .eyebrow { color:var(--jk-color-primary,#2563eb); font-size:.65rem; letter-spacing:.13em; }
.leave-hero h1 { margin:2px 0 3px; color:var(--jk-color-text,#162337); font-size:clamp(1.25rem,4vw,1.6rem); line-height:1.2; }
.leave-hero p { max-width:60ch; color:var(--jk-color-text-muted,#718096); font-size:.88rem; line-height:1.45; }
.leave-centre .balance-grid { grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:10px; margin-bottom:14px; }
.leave-centre .balance-card {
  grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"label amount" "detail detail"; align-items:center;
  gap:5px 12px; min-height:86px; padding:14px 16px 13px 18px;
  border-color:var(--jk-color-border,#dce7f7); border-radius:var(--jk-radius-md,18px);
  box-shadow:var(--jk-shadow-sm,0 8px 22px rgba(22,35,55,.06));
}
.leave-centre .balance-card::before { width:4px; }
.leave-centre .balance-card span { grid-area:label; min-width:0; color:var(--jk-color-text,#162337); font-size:.9rem; overflow-wrap:anywhere; }
.leave-centre .balance-card strong { grid-area:amount; color:var(--jk-color-primary-hover,#1d4ed8); font-size:1.55rem; font-variant-numeric:tabular-nums; line-height:1; white-space:nowrap; }
.leave-centre .balance-card small { grid-area:detail; color:var(--jk-color-text-muted,#718096); font-size:.75rem; line-height:1.4; }
.leave-centre .leave-layout { grid-template-columns:minmax(330px,.92fr) minmax(0,1.08fr); gap:14px; }
.leave-centre .leave-apply-card,.leave-centre .leave-history-card {
  align-self:start; gap:18px; padding:20px; margin:0;
  border-color:var(--jk-color-border,#dce7f7); border-radius:var(--jk-radius-md,18px);
  box-shadow:var(--jk-shadow-sm,0 8px 22px rgba(22,35,55,.07));
}
.leave-centre .module-section-heading h2 { font-size:1.25rem; }
.leave-centre .module-section-heading .eyebrow { color:var(--jk-color-primary,#2563eb); font-size:.65rem; }
.leave-application-form { gap:16px; }
.leave-application-form .module-form-grid { gap:12px; }
.leave-application-form .module-field { gap:7px; color:var(--jk-color-text,#162337); font-size:.86rem; }
.leave-application-form .module-field input,.leave-application-form .module-field select,.leave-application-form .module-field textarea {
  min-height:48px; border-color:var(--jk-color-border-strong,#c6d7ee); border-radius:var(--jk-radius-sm,12px); background:#fff;
}
.leave-application-form .module-field textarea { min-height:104px; }
.leave-centre .upload-box {
  gap:8px; padding:14px; border-color:var(--jk-color-primary-border,#bfdbfe); border-radius:var(--jk-radius-sm,12px);
  color:var(--jk-color-text,#162337); background:var(--jk-color-primary-soft,#eaf2ff);
}
.leave-centre .upload-box input[type="file"] { width:100%; min-height:42px; padding:7px; border:1px solid var(--jk-color-primary-border,#bfdbfe); border-radius:10px; background:#fff; }
.leave-centre .module-actions { padding-top:2px; }
.leave-centre .module-actions .button { min-height:46px; border-radius:var(--jk-radius-sm,12px); }
.leave-history-card .request-list { gap:10px; }
.leave-history-card .request-card { padding:15px; border-color:var(--jk-color-border,#dce7f7); border-radius:var(--jk-radius-sm,14px); background:#fff; box-shadow:0 4px 14px rgba(22,35,55,.04); }
.leave-history-card .request-card__top { align-items:center; }
.leave-history-card .request-card__top strong { color:var(--jk-color-text,#162337); font-size:.96rem; }
.leave-history-card .request-card__top small { font-size:.74rem; line-height:1.4; }
.leave-history-card .type-dot { width:9px; height:9px; margin-top:0; box-shadow:0 0 0 4px rgba(37,99,235,.08); }
.leave-history-card .request-card > p { margin:12px 0; color:var(--jk-color-text-muted,#718096); font-size:.86rem; line-height:1.5; overflow-wrap:anywhere; }
.leave-history-card .request-card__actions { justify-content:flex-end; padding-top:12px; margin-top:12px; border-top:1px solid var(--jk-color-border,#dce7f7); }
.leave-history-card .request-card__actions:empty { display:none; }
.leave-history-card .request-card__actions .button { min-height:40px; border-radius:10px; }
.leave-history-card .admin-note { border:1px solid #f1d28e; background:#fff7e5; }
.leave-empty-state {
  min-height:150px; display:grid; place-items:center; padding:64px 16px 18px;
  border:1px dashed var(--jk-color-border-strong,#c6d7ee); border-radius:var(--jk-radius-sm,14px); text-align:center;
  background-color:#f8fbff;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 11h18'/%3E%3C/svg%3E");
  background-position:center 26px; background-repeat:no-repeat;
}

/* Administrator leave management. */
.admin-leave-page { background:var(--jk-color-bg,#f4f8ff); }
.admin-leave-centre { width:min(1180px,calc(100% - 32px)); padding-bottom:calc(88px + env(safe-area-inset-bottom)); }
.admin-leave-centre .module-breadcrumb { margin-bottom:10px; }
.admin-leave-centre .module-nav { margin-bottom:14px; }
.admin-leave-hero {
  display:grid; grid-template-columns:52px minmax(0,1fr) auto; align-items:center; gap:14px;
  min-height:0; padding:18px 20px; margin-bottom:14px;
  border:1px solid var(--jk-color-primary-border,#bfdbfe); border-radius:var(--jk-radius-md,18px);
  color:var(--jk-color-text,#162337); background:var(--jk-color-surface,#fff);
  box-shadow:var(--jk-shadow-sm,0 8px 22px rgba(37,99,235,.08));
}
.admin-leave-hero::before {
  content:""; width:52px; height:52px; border-radius:16px; background-color:var(--jk-color-primary-soft,#eaf2ff);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 11h18M9 16l2 2 4-4'/%3E%3C/svg%3E");
  background-position:center; background-repeat:no-repeat;
}
.admin-leave-hero .eyebrow { color:var(--jk-color-primary,#2563eb); font-size:.65rem; letter-spacing:.13em; }
.admin-leave-hero h1 { margin:2px 0 3px; color:var(--jk-color-text,#162337); font-size:clamp(1.25rem,4vw,1.6rem); line-height:1.2; }
.admin-leave-hero p { max-width:70ch; color:var(--jk-color-text-muted,#718096); font-size:.88rem; line-height:1.45; }
.admin-leave-review-count { min-height:30px; padding:5px 10px; color:var(--jk-color-primary-hover,#1d4ed8); background:var(--jk-color-primary-soft,#eaf2ff); white-space:nowrap; }
.admin-leave-centre .admin-leave-section {
  gap:18px; padding:20px; margin:0 0 14px;
  border-color:var(--jk-color-border,#dce7f7); border-radius:var(--jk-radius-md,18px);
  box-shadow:var(--jk-shadow-sm,0 8px 22px rgba(22,35,55,.07));
}
.admin-leave-section .module-section-heading h2 { color:var(--jk-color-text,#162337); font-size:1.25rem; }
.admin-leave-section .module-section-heading .eyebrow { color:var(--jk-color-primary,#2563eb); font-size:.65rem; }
.admin-leave-section .section-help { padding:11px 13px; border:1px solid var(--jk-color-primary-border,#bfdbfe); border-radius:11px; color:var(--jk-color-text-muted,#718096); background:var(--jk-color-primary-soft,#eaf2ff); font-size:.82rem; }
.admin-leave-requests .admin-request-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.admin-leave-requests .request-card {
  min-width:0; padding:16px; border-color:var(--jk-color-border,#dce7f7); border-radius:var(--jk-radius-sm,14px);
  background:#fff; box-shadow:0 4px 14px rgba(22,35,55,.04);
}
.admin-leave-requests .request-card__top { align-items:center; }
.admin-leave-requests .request-card__top strong { color:var(--jk-color-text,#162337); font-size:.94rem; overflow-wrap:anywhere; }
.admin-leave-requests .request-card__top small { font-size:.74rem; line-height:1.4; }
.admin-leave-requests .type-dot { width:9px; height:9px; margin-top:0; box-shadow:0 0 0 4px rgba(37,99,235,.08); }
.admin-leave-requests .request-card > p { margin:12px 0; color:var(--jk-color-text-muted,#718096); font-size:.86rem; overflow-wrap:anywhere; }
.admin-leave-requests .request-card__actions { justify-content:flex-end; }
.admin-leave-requests .request-card__actions .button { min-height:44px; }
.admin-leave-requests .decision-form { gap:10px; padding-top:12px; margin-top:12px; border-color:var(--jk-color-border,#dce7f7); }
.admin-leave-requests .decision-form textarea { min-height:72px; border-radius:11px; }
.admin-leave-requests .decision-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.admin-leave-requests .decision-actions .button { min-width:0; min-height:44px; padding:8px 10px; border-radius:10px; line-height:1.25; white-space:normal; }
.admin-leave-empty { grid-column:1/-1; min-height:130px; display:grid; place-items:center; padding:24px; border:1px dashed var(--jk-color-border-strong,#c6d7ee); border-radius:14px; background:#f8fbff; text-align:center; }
.admin-leave-allowances .year-picker { align-items:end; padding:5px; border:1px solid var(--jk-color-border,#dce7f7); border-radius:12px; background:#f8fbff; }
.admin-leave-allowances .year-picker label { gap:3px; padding-left:7px; color:var(--jk-color-text-muted,#718096); font-size:.72rem; }
.admin-leave-allowances .year-picker input { min-height:44px; border-color:transparent; background:transparent; font-weight:800; }
.admin-leave-allowances .entitlement-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.admin-leave-allowances .entitlement-card {
  min-width:0; gap:9px; padding:15px 14px 14px 17px; border-color:var(--jk-color-border,#dce7f7);
  border-radius:var(--jk-radius-sm,14px); background:#fff; box-shadow:0 4px 14px rgba(22,35,55,.04);
}
.admin-leave-allowances .entitlement-card strong { color:var(--jk-color-text,#162337); overflow-wrap:anywhere; }
.admin-leave-allowances .entitlement-card input { min-height:44px; border-color:var(--jk-color-border-strong,#c6d7ee); border-radius:9px; background:#fff; }
.admin-leave-allowances .entitlement-card .button { min-height:44px; border-radius:10px; }
.admin-leave-allowances .settings-details { border-color:var(--jk-color-border,#dce7f7); border-radius:14px; background:#f8fbff; }
.admin-leave-allowances .settings-details summary { min-height:48px; display:flex; align-items:center; color:var(--jk-color-primary-hover,#1d4ed8); }
.admin-leave-allowances .details-form { gap:12px; }
.admin-leave-allowances .details-form input,.admin-leave-allowances .details-form select { min-height:46px; }
.admin-leave-rules .rule-switches { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.admin-leave-rules .confirm-box { min-height:66px; border-color:var(--jk-color-border,#dce7f7); background:#f8fbff; }
.admin-leave-rules .confirm-box input { width:20px; height:20px; }
.admin-leave-rules .rule-switches > .button { min-height:44px; border-radius:10px; }
.admin-leave-rules .leave-type-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.admin-leave-rules .type-setting-card { min-width:0; padding:14px; border-color:var(--jk-color-border,#dce7f7); border-radius:14px; background:#fff; }
.admin-leave-rules .type-setting-card input:not([type="checkbox"]):not([type="color"]) { min-height:44px; border-color:var(--jk-color-border-strong,#c6d7ee); background:#fff; }
.admin-leave-rules .type-setting-card .button { min-height:44px; border-radius:10px; }
.admin-leave-holidays .holiday-form { grid-template-columns:repeat(3,minmax(0,1fr)) auto; gap:12px; }
.admin-leave-holidays .holiday-form input { min-height:46px; border-color:var(--jk-color-border-strong,#c6d7ee); }
.admin-leave-holidays .holiday-form .module-actions { align-self:end; padding:0; }
.admin-leave-holidays .holiday-form .button { min-height:46px; border-radius:10px; white-space:nowrap; }
.admin-leave-holidays .holiday-list { gap:8px; }
.admin-leave-holidays .holiday-row { min-height:58px; border-color:var(--jk-color-border,#dce7f7); background:#fff; }
.admin-leave-holidays .holiday-row .button { min-height:44px; border-radius:10px; }
.admin-request-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.decision-form { display:grid; gap:12px; padding-top:14px; margin-top:14px; border-top:1px solid var(--module-line); }
.decision-actions { display:flex; flex-wrap:wrap; gap:8px; }
.year-picker { display:flex; align-items:end; gap:8px; }
.year-picker label { display:grid; gap:5px; font-weight:750; }
.year-picker input { width:94px; border:1px solid #cbd9e8; border-radius:10px; padding:9px; font:inherit; }
.section-help { margin:0; color:var(--module-muted); line-height:1.55; }
.entitlement-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.entitlement-card { position:relative; display:grid; gap:10px; padding:16px; border:1px solid var(--module-line); border-radius:15px; overflow:hidden; }
.entitlement-card::before { content:""; position:absolute; inset:0 auto 0 0; width:4px; background:var(--accent); }
.entitlement-card > small { color:var(--module-muted); }
.compact-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.compact-fields label,.compact-label { display:grid; gap:5px; color:var(--module-muted); font-size:.78rem; font-weight:750; }
.compact-fields input,.compact-label input { width:100%; box-sizing:border-box; border:1px solid #cbd9e8; border-radius:9px; padding:9px; font:inherit; }
.settings-details { border:1px solid var(--module-line); border-radius:15px; background:#f8fbff; }
.settings-details summary { padding:15px; font-weight:800; cursor:pointer; }
.details-form { padding:0 15px 15px; }
.details-form .module-actions { grid-column:1/-1; }
.rule-switches { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.rule-switches .button { grid-column:1/-1; justify-self:end; }
.leave-type-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.type-setting-card { display:grid; gap:10px; padding:15px; border:1px solid var(--module-line); border-radius:15px; }
.type-setting-card__title { display:flex; justify-content:space-between; align-items:center; }
.type-setting-card__title input { width:42px; height:30px; padding:0; border:0; }
.mini-check { display:flex; gap:7px; align-items:center; font-size:.84rem; }
.mini-check input { width:17px; height:17px; }
.holiday-form { align-items:end; }
.holiday-list { display:grid; gap:8px; }
.holiday-row { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:12px 14px; border:1px solid var(--module-line); border-radius:13px; }
.holiday-row > span { display:grid; gap:4px; }
.holiday-row small { color:var(--module-muted); }
.notice-banner { display:flex; justify-content:space-between; align-items:center; gap:18px; padding:16px 18px; margin-bottom:18px; border-radius:16px; border:1px solid #ddbd68; background:#fff4d5; box-shadow:0 10px 24px rgba(100,65,8,.09); }
.notice-banner--urgent { color:#7a1427; border-color:#e9a8b5; background:#ffe7ec; }
.notice-banner > div { display:grid; gap:4px; }
.notice-banner span { width:fit-content; font-size:.7rem; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.notice-banner p { margin:0; line-height:1.45; }
.notice-list { display:grid; gap:14px; }
.notice-card { border-left:5px solid #9a8d9d; }
.notice-card--important { border-left-color:#d08a1e; }
.notice-card--urgent { border-left-color:#bd2944; }
.notice-card.is-unread { box-shadow:0 14px 34px rgba(37,99,235,.14); }
.notice-card__head { display:flex; justify-content:space-between; align-items:start; gap:16px; }
.notice-card__head h2 { margin:6px 0 0; }
.notice-priority { color:var(--module-muted); font-size:.72rem; font-weight:900; letter-spacing:.1em; }
.notice-body { white-space:normal; line-height:1.65; }
.notice-time { color:var(--module-muted); }
.notice-action { display:flex; justify-content:flex-end; margin-top:18px; }

/* Staff notification centre: compact, mobile-first layout. */
.notifications-page {
  background: var(--jk-color-bg, #f4f8ff);
}
.notification-centre {
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}
.notification-centre .module-breadcrumb {
  margin-bottom: 10px;
}
.notification-centre .module-nav {
  margin-bottom: 14px;
}
.notification-hero {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 0;
  padding: 18px 20px;
  margin-bottom: 14px;
  border: 1px solid var(--jk-color-primary-border, #bfdbfe);
  border-radius: var(--jk-radius-md, 18px);
  color: var(--jk-color-text, #162337);
  background: var(--jk-color-surface, #fff);
  box-shadow: var(--jk-shadow-sm, 0 8px 22px rgba(37, 99, 235, .08));
}
.notification-hero::before {
  content: "";
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background-color: var(--jk-color-primary-soft, #eaf2ff);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9'/%3E%3Cpath d='M10 21h4'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
}
.notification-hero > div {
  min-width: 0;
}
.notification-hero .eyebrow {
  color: var(--jk-color-primary, #2563eb);
  font-size: .65rem;
  letter-spacing: .13em;
}
.notification-hero h1 {
  margin: 2px 0 3px;
  color: var(--jk-color-text, #162337);
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  line-height: 1.2;
}
.notification-hero p {
  max-width: 54ch;
  color: var(--jk-color-text-muted, #718096);
  font-size: .88rem;
  line-height: 1.45;
}
.notification-unread-count {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 5px 10px;
  color: var(--jk-color-primary-hover, #1d4ed8);
  background: var(--jk-color-primary-soft, #eaf2ff);
  white-space: nowrap;
}
.notification-centre .notice-list {
  gap: 12px;
}
.notification-read-all {
  display: flex;
  justify-content: flex-end;
  margin: -2px 0 14px;
}
.notification-read-all .button {
  min-height: 42px;
}
.notification-centre .notice-card {
  position: relative;
  min-width: 0;
  padding: 18px 20px 17px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--jk-color-border, #dce7f7);
  border-left-width: 1px;
  border-radius: var(--jk-radius-md, 18px);
  background: var(--jk-color-surface, #fff);
  box-shadow: var(--jk-shadow-sm, 0 8px 22px rgba(22, 35, 55, .07));
}
.notification-centre .notice-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #94a3b8;
}
.notification-centre .notice-card--important::before {
  background: #d89b3d;
}
.notification-centre .notice-card--urgent::before {
  background: #dc3545;
}
.notification-centre .notice-card.is-unread {
  border-color: var(--jk-color-primary-border, #bfdbfe);
  background: linear-gradient(100deg, #f6f9ff 0, #fff 42%);
  box-shadow: 0 10px 28px rgba(37, 99, 235, .11);
}
.notification-centre .notice-card.is-unread .notice-card__head h2::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 8px 2px 0;
  border-radius: 50%;
  background: var(--jk-color-primary, #2563eb);
}
.notification-centre .notice-card__head {
  align-items: flex-start;
}
.notification-centre .notice-card__head > div {
  min-width: 0;
}
.notification-centre .notice-card__head h2 {
  margin: 5px 0 0;
  color: var(--jk-color-text, #162337);
  font-size: clamp(1rem, 3.6vw, 1.15rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.notification-centre .notice-priority {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #526174;
  background: #eef2f7;
  font-size: .65rem;
  letter-spacing: .07em;
}
.notification-centre .notice-card--important .notice-priority {
  color: #80510d;
  background: #fff4d7;
}
.notification-centre .notice-card--urgent .notice-priority {
  color: #a5263c;
  background: #ffebef;
}
.notification-centre .notice-body {
  margin: 13px 0 9px;
  color: var(--jk-color-text, #162337);
  font-size: .92rem;
  line-height: 1.58;
  overflow-wrap: anywhere;
}
.notification-centre .notice-time {
  display: block;
  color: var(--jk-color-text-muted, #718096);
  font-size: .76rem;
  font-variant-numeric: tabular-nums;
}
.notification-centre .notice-action {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--jk-color-border, #dce7f7);
}
.notification-centre .notice-action:empty {
  display: none;
}
.notification-centre .notice-action .button {
  min-height: 44px;
  border-radius: var(--jk-radius-sm, 12px);
}
.notification-centre .notification-empty {
  min-height: 170px;
  display: grid;
  place-items: center;
  padding: 72px 18px 22px;
  margin: 0;
  border-style: dashed;
  color: var(--jk-color-text-muted, #718096);
  text-align: center;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9'/%3E%3Cpath d='M10 21h4'/%3E%3C/svg%3E");
  background-position: center 30px;
  background-repeat: no-repeat;
}
.notification-admin-layout { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr); gap:20px; align-items:start; }
.recipient-picker { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:12px; border:1px solid var(--module-line); border-radius:14px; max-height:240px; overflow:auto; }
.recipient-picker[hidden] { display:none; }
.recipient-picker label { display:flex; gap:9px; align-items:center; padding:9px; border-radius:10px; background:#f1f6ff; }
.recipient-picker label > span { display:grid; }
.recipient-picker small { color:var(--module-muted); }
.notice-options { display:grid; gap:9px; }
.confirm-box.is-disabled { opacity:.55; }
.confirm-box span { display:grid; gap:3px; }
.confirm-box small { color:var(--module-muted); font-weight:500; }
.history-list { display:grid; gap:10px; }
.history-card { display:grid; gap:9px; padding:14px; border:1px solid var(--module-line); border-radius:14px; }
.history-card.is-withdrawn { opacity:.62; }
.history-card__head,.delivery-stats { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; }
.history-card p { margin:0; color:var(--module-muted); line-height:1.45; }
.delivery-stats { justify-content:flex-start; color:var(--module-muted); font-size:.78rem; }
.delivery-stats span { padding:4px 7px; border-radius:8px; background:#eef3f8; }

/* Administrator notification management. */
.admin-notifications-page { background:var(--jk-color-bg,#f4f8ff); }
.admin-notification-centre { width:min(1180px,calc(100% - 32px)); padding-bottom:calc(88px + env(safe-area-inset-bottom)); }
.admin-notification-centre .module-breadcrumb { margin-bottom:10px; }
.admin-notification-centre .module-nav { margin-bottom:14px; }
.admin-notification-hero {
  display:grid; grid-template-columns:52px minmax(0,1fr); align-items:center; gap:14px;
  min-height:0; padding:18px 20px; margin-bottom:14px;
  border:1px solid var(--jk-color-primary-border,#bfdbfe); border-radius:var(--jk-radius-md,18px);
  color:var(--jk-color-text,#162337); background:var(--jk-color-surface,#fff);
  box-shadow:var(--jk-shadow-sm,0 8px 22px rgba(37,99,235,.08));
}
.admin-notification-hero::before {
  content:""; width:52px; height:52px; border-radius:16px; background-color:var(--jk-color-primary-soft,#eaf2ff);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 18-5v12L3 14v-3Z'/%3E%3Cpath d='M11.6 16.1 13 21H8l-1.4-6'/%3E%3Cpath d='M21 12h1'/%3E%3C/svg%3E");
  background-position:center; background-repeat:no-repeat;
}
.admin-notification-hero .eyebrow { color:var(--jk-color-primary,#2563eb); font-size:.65rem; letter-spacing:.13em; }
.admin-notification-hero h1 { margin:2px 0 3px; color:var(--jk-color-text,#162337); font-size:clamp(1.25rem,4vw,1.6rem); line-height:1.2; }
.admin-notification-hero p { max-width:70ch; color:var(--jk-color-text-muted,#718096); font-size:.88rem; line-height:1.45; }
.admin-notification-layout { grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr); gap:14px; }
.admin-notification-layout > * { min-width:0; }
.admin-notice-composer,.admin-notice-history {
  align-self:start; gap:18px; padding:20px; margin:0;
  border-color:var(--jk-color-border,#dce7f7); border-radius:var(--jk-radius-md,18px);
  box-shadow:var(--jk-shadow-sm,0 8px 22px rgba(22,35,55,.07));
}
.admin-notice-composer .module-section-heading h2,.admin-notice-history .module-section-heading h2 { color:var(--jk-color-text,#162337); font-size:1.25rem; }
.admin-notice-composer .eyebrow,.admin-notice-history .eyebrow { color:var(--jk-color-primary,#2563eb); font-size:.65rem; }
.admin-notice-composer .module-form-grid { gap:12px; }
.admin-notice-composer .module-field { gap:7px; color:var(--jk-color-text,#162337); font-size:.84rem; }
.admin-notice-composer .module-field input,.admin-notice-composer .module-field select,.admin-notice-composer .module-field textarea {
  min-height:46px; border-color:var(--jk-color-border-strong,#c6d7ee); border-radius:var(--jk-radius-sm,11px); background:#fff;
}
.admin-notice-composer .module-field textarea { min-height:120px; line-height:1.5; }
.admin-notice-composer .section-help { padding:10px 12px; border:1px solid var(--jk-color-primary-border,#bfdbfe); border-radius:11px; color:var(--jk-color-text-muted,#718096); background:var(--jk-color-primary-soft,#eaf2ff); font-size:.78rem; }
.admin-notice-composer .recipient-picker { grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; padding:10px; border-color:var(--jk-color-primary-border,#bfdbfe); background:#f8fbff; }
.admin-notice-composer .recipient-picker label { min-width:0; min-height:44px; padding:8px 10px; background:#fff; }
.admin-notice-composer .recipient-picker input { width:19px; height:19px; flex:0 0 auto; }
.admin-notice-composer .recipient-picker span { min-width:0; overflow-wrap:anywhere; }
.admin-notice-composer .notice-options { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.admin-notice-composer .confirm-box { min-height:68px; padding:12px; border-color:var(--jk-color-border,#dce7f7); background:#f8fbff; }
.admin-notice-composer .confirm-box input { width:20px; height:20px; }
.admin-notice-composer .confirm-box span { min-width:0; font-size:.82rem; line-height:1.35; }
.admin-notice-composer .module-actions { padding-top:2px; }
.admin-notice-composer .module-actions .button { min-height:46px; border-radius:11px; }
.admin-notice-history .history-list { gap:10px; }
.admin-notice-history .history-card {
  min-width:0; gap:8px; padding:14px; border-color:var(--jk-color-border,#dce7f7);
  border-radius:var(--jk-radius-sm,14px); background:#fff; box-shadow:0 4px 14px rgba(22,35,55,.04);
}
.admin-notice-history .history-card__head { align-items:center; }
.admin-notice-history .notice-priority { display:inline-flex; min-height:24px; align-items:center; padding:3px 8px; border-radius:999px; color:#526174; background:#eef2f7; font-size:.65rem; }
.admin-notice-history .priority-important { color:#80510d; background:#fff4d7; }
.admin-notice-history .priority-urgent { color:#a5263c; background:#ffebef; }
.admin-notice-history .history-card__head small { color:var(--jk-color-text-muted,#718096); font-size:.72rem; font-variant-numeric:tabular-nums; }
.admin-notice-history .history-card > strong { color:var(--jk-color-text,#162337); font-size:.94rem; overflow-wrap:anywhere; }
.admin-notice-history .history-card p { color:var(--jk-color-text-muted,#718096); font-size:.82rem; overflow-wrap:anywhere; }
.admin-notice-history .delivery-stats { gap:6px; }
.admin-notice-history .delivery-stats span { padding:5px 7px; color:#536475; background:#f0f4f8; font-size:.7rem; white-space:nowrap; }
.admin-notice-history .history-card > form { display:flex; justify-content:flex-end; padding-top:8px; border-top:1px solid var(--jk-color-border,#dce7f7); }
.admin-notice-history .history-card .button { min-height:44px; border-radius:10px; }
.admin-notice-history .history-card.is-withdrawn { opacity:.68; background:#f8fafc; }
.admin-notice-empty { min-height:150px; display:grid; place-items:center; padding:24px; border:1px dashed var(--jk-color-border-strong,#c6d7ee); border-radius:14px; background:#f8fbff; text-align:center; }
.employee-app-button { white-space:nowrap; }
.claim-layout { grid-template-columns:minmax(320px,.9fr) minmax(0,1.1fr); }
.status-sync_error { color:#8e1e32; background:#fde8ec; }
.status-paid { color:#fff; background:#176b4c; }

@media (max-width: 980px) {
  .admin-leave-allowances .entitlement-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .admin-leave-rules .leave-type-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .admin-leave-holidays .holiday-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .admin-leave-holidays .holiday-form .module-actions { grid-column:1/-1; }
  .admin-leave-holidays .holiday-form .button { width:100%; }
  .admin-notification-layout { grid-template-columns:minmax(0,1fr); }
}

@media (max-width: 760px) {
  .module-topbar { align-items: flex-start; padding: 11px 16px; }
  .module-topbar__actions { align-items: flex-end; flex-direction: column; gap: 4px; font-size: .78rem; }
  .module-main { width: min(100% - 24px, 1180px); padding-top: 14px; }
  .module-hero { align-items: flex-start; flex-direction: column; padding: 24px 20px; border-radius: 20px; }
  .module-section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .feature-grid, .module-form-grid { grid-template-columns: 1fr; }
  .split-layout { grid-template-columns: minmax(0, 1fr); }
  .balance-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .leave-layout { grid-template-columns:minmax(0,1fr); }
  .request-card__top { grid-template-columns:auto minmax(0,1fr); }
  .request-card__top .status-pill { grid-column:2; }
  .admin-request-grid,.entitlement-grid,.leave-type-grid,.rule-switches { grid-template-columns:1fr; }
  .notification-admin-layout,.recipient-picker { grid-template-columns:1fr; }
  .claim-layout { grid-template-columns:minmax(0,1fr); }
  .split-layout > *, .leave-layout > *, .claim-layout > * { min-width:0; }
  .notice-banner { align-items:stretch; flex-direction:column; }
  .notice-banner .button { width:100%; }
  .year-picker { width:100%; }
  .year-picker label { flex:1; }
  .year-picker input { width:100%; box-sizing:border-box; }
  .feature-card { min-height: 82px; padding: 15px; }
  .module-card { padding: 18px 15px; border-radius: 17px; }
  .module-actions { position: static; padding: 8px; margin: 0 -4px -4px; border-radius: 14px; background: rgba(255,255,255,.94); }
  .module-actions .button { width: 100%; min-height: 46px; }
  .notification-centre {
    width: min(100% - 24px, 840px);
  }
  .notification-hero {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: start;
    gap: 11px;
    padding: 14px;
    border-radius: 16px;
  }
  .notification-hero::before {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background-size: 22px;
  }
  .notification-hero p {
    font-size: .8rem;
  }
  .notification-unread-count {
    min-height: 26px;
    padding: 4px 8px;
    font-size: .68rem;
  }
  .notification-read-all .button {
    width: 100%;
    min-height: 44px;
  }
  .notification-centre .notice-card {
    padding: 15px 14px 14px 17px;
    border-radius: 16px;
  }
  .notification-centre .notice-card__head {
    gap: 10px;
  }
  .notification-centre .notice-card__head > .status-pill {
    flex: 0 0 auto;
    max-width: 38%;
    text-align: center;
  }
  .notification-centre .notice-action .button {
    width: 100%;
  }
  .leave-centre { width:min(100% - 24px,1080px); }
  .leave-hero { grid-template-columns:44px minmax(0,1fr); align-items:center; gap:11px; padding:14px; border-radius:16px; }
  .leave-hero::before { width:44px; height:44px; border-radius:13px; background-size:22px; }
  .leave-hero p { font-size:.8rem; }
  .leave-centre .balance-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .leave-centre .balance-card { grid-template-columns:1fr; grid-template-areas:"label" "amount" "detail"; gap:4px; padding:12px 12px 11px 15px; }
  .leave-centre .balance-card strong { font-size:1.4rem; }
  .leave-centre .leave-layout { grid-template-columns:minmax(0,1fr); gap:12px; }
  .leave-centre .leave-apply-card,.leave-centre .leave-history-card { padding:17px 14px; border-radius:16px; }
  .leave-centre .module-actions { padding:0; margin:0; background:transparent; }
  .leave-history-card .request-card__top { align-items:start; }
  .admin-leave-centre { width:min(100% - 24px,1180px); }
  .admin-leave-hero { grid-template-columns:44px minmax(0,1fr) auto; align-items:start; gap:11px; padding:14px; border-radius:16px; }
  .admin-leave-hero::before { width:44px; height:44px; border-radius:13px; background-size:22px; }
  .admin-leave-hero p { font-size:.8rem; }
  .admin-leave-review-count { min-height:26px; padding:4px 8px; font-size:.68rem; }
  .admin-leave-centre .admin-leave-section { gap:16px; padding:17px 14px; border-radius:16px; }
  .admin-leave-requests .admin-request-grid,.admin-leave-allowances .entitlement-grid,.admin-leave-rules .leave-type-grid { grid-template-columns:minmax(0,1fr); }
  .admin-leave-requests .request-card { padding:14px; }
  .admin-leave-requests .request-card__top { align-items:start; }
  .admin-leave-allowances .year-picker { width:100%; }
  .admin-leave-allowances .year-picker label { flex:1; }
  .admin-leave-allowances .year-picker input { width:100%; }
  .admin-leave-rules .rule-switches { grid-template-columns:minmax(0,1fr); }
  .admin-leave-holidays .holiday-form { grid-template-columns:minmax(0,1fr); }
  .admin-leave-holidays .holiday-form .module-actions { grid-column:auto; margin:0; background:transparent; }
  .admin-notification-centre { width:min(100% - 24px,1180px); }
  .admin-notification-hero { grid-template-columns:44px minmax(0,1fr); align-items:center; gap:11px; padding:14px; border-radius:16px; }
  .admin-notification-hero::before { width:44px; height:44px; border-radius:13px; background-size:22px; }
  .admin-notification-hero p { font-size:.8rem; }
  .admin-notice-composer,.admin-notice-history { gap:16px; padding:17px 14px; border-radius:16px; }
  .admin-notice-composer .recipient-picker { grid-template-columns:minmax(0,1fr); }
  .admin-notice-composer .notice-options { grid-template-columns:minmax(0,1fr); }
  .admin-notice-composer .confirm-box { min-height:56px; }
  .admin-notice-composer .module-actions { padding:0; margin:0; background:transparent; }
}

@media (max-width: 420px) {
  .balance-grid { grid-template-columns:1fr; }
  .request-card__actions, .inline-upload { align-items:stretch; flex-direction:column; }
  .request-card__actions .button, .inline-upload input[type=file] { width:100%; max-width:none; }
  .decision-actions { flex-direction:column; }
  .decision-actions .button { width:100%; }
  .compact-fields { grid-template-columns:1fr; }
  .holiday-row { align-items:flex-start; }
  .notification-hero {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .notification-hero::before {
    width: 40px;
    height: 40px;
  }
  .notification-unread-count {
    grid-column: 2;
    justify-self: start;
    margin-top: -2px;
  }
  .leave-centre .balance-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .leave-history-card .request-card__top { grid-template-columns:auto minmax(0,1fr); }
  .leave-history-card .request-card__top .status-pill { grid-column:2; justify-self:start; }
  .leave-history-card .request-card__actions { align-items:stretch; flex-direction:column; }
  .leave-history-card .request-card__actions form,.leave-history-card .request-card__actions .button { width:100%; }
  .admin-leave-hero { grid-template-columns:40px minmax(0,1fr); }
  .admin-leave-hero::before { width:40px; height:40px; }
  .admin-leave-review-count { grid-column:2; justify-self:start; margin-top:-2px; }
  .admin-leave-requests .request-card__top { grid-template-columns:auto minmax(0,1fr); }
  .admin-leave-requests .request-card__top .status-pill { grid-column:2; justify-self:start; }
  .admin-leave-requests .decision-actions { grid-template-columns:minmax(0,1fr); }
  .admin-leave-requests .request-card__actions,.admin-leave-requests .request-card__actions .button { width:100%; }
  .admin-leave-allowances .compact-fields,.admin-leave-rules .compact-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .admin-leave-holidays .holiday-row { align-items:flex-start; }
  .admin-notice-history .history-card__head { align-items:flex-start; flex-direction:column; }
  .admin-notice-history .delivery-stats span { white-space:normal; }
  .admin-notice-history .history-card > form,.admin-notice-history .history-card .button { width:100%; }
}

/* Administrator employee profiles: compact selector and private record form. */
.admin-employees-page { background:#f4f8ff; }
.admin-employees-centre { width:min(100% - 32px,1180px); padding-bottom:calc(88px + env(safe-area-inset-bottom)); }
.admin-employees-centre .module-breadcrumb { margin-bottom:10px; }
.admin-employees-centre .module-nav { margin-bottom:14px; }
.admin-employees-hero {
  display:grid;
  grid-template-columns:56px minmax(0,1fr) auto;
  align-items:center;
  gap:16px;
  min-height:0;
  padding:20px 22px;
  margin-bottom:14px;
  color:#162337;
  border:1px solid #dce7f7;
  border-radius:20px;
  background:#fff;
  box-shadow:0 12px 34px rgba(37,99,235,.09);
}
.admin-employees-hero::before {
  content:"";
  width:56px;
  height:56px;
  border-radius:16px;
  background:#eaf2ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='27' height='27' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E") center/27px no-repeat;
}
.admin-employees-hero > div { min-width:0; }
.admin-employees-hero h1 { margin:2px 0 4px; color:#162337; font-size:clamp(1.45rem,3vw,2rem); }
.admin-employees-hero p { max-width:760px; margin:0; color:#718096; line-height:1.45; }
.admin-employees-hero .eyebrow { color:#2563eb; }
.admin-employees-count { white-space:nowrap; color:#1d4ed8; background:#eaf2ff; border:1px solid #c8dcff; }
.admin-employee-layout { grid-template-columns:minmax(290px,.78fr) minmax(0,1.55fr); gap:14px; }
.employee-directory,.admin-profile-card {
  padding:20px;
  margin:0;
  border-color:#dce7f7;
  border-radius:18px;
  box-shadow:0 8px 24px rgba(22,35,55,.06);
}
.employee-directory { gap:14px; }
.employee-directory .module-section-heading h2,.admin-profile-card .module-section-heading h2 { font-size:1.25rem; }
.employee-directory .eyebrow,.admin-profile-card .eyebrow { color:#2563eb; }
.employee-directory-list { display:grid; gap:9px; min-width:0; }
.employee-directory .employee-row {
  display:grid;
  grid-template-columns:40px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  min-width:0;
  padding:11px 12px;
  border-color:#dce7f7;
  border-radius:13px;
  background:#f8fbff;
}
.employee-directory .employee-row.is-active { border-color:#9bc0ff; background:#eff6ff; box-shadow:inset 4px 0 #2563eb; }
.employee-row__avatar { display:grid!important; width:40px; height:40px; place-items:center; border-radius:12px; color:#fff; background:linear-gradient(145deg,#2563eb,#1d4ed8); font-weight:850; }
.employee-row__copy { display:grid; gap:3px; min-width:0; }
.employee-row__copy strong,.employee-row__copy small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.employee-row__copy small { color:#718096; font-size:.73rem; }
.employee-directory .status-pill { padding:4px 8px; font-size:.68rem; white-space:nowrap; }
.admin-profile-card { gap:16px; }
.admin-profile-heading { align-items:center; }
.admin-profile-heading .masked-value { white-space:nowrap; }
.admin-nric-reveal { justify-self:start; min-height:42px; }
.admin-profile-form { gap:16px; }
.admin-profile-form .module-form-grid { gap:12px; }
.admin-profile-form .module-field { gap:7px; color:#34445b; font-size:.84rem; }
.admin-profile-form .module-field input,.admin-profile-form .module-field textarea { min-height:46px; border-color:#cedbea; border-radius:12px; }
.admin-profile-form .module-field textarea { min-height:94px; }
.admin-profile-form .module-field input:focus,.admin-profile-form .module-field textarea:focus { border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,.12); outline:none; }
.admin-emergency-contact { padding:16px; border:1px solid #dce7f7; border-radius:14px; background:#f8fbff; }
.admin-emergency-contact h3 { color:#162337; font-size:1rem; }
.admin-profile-form .module-actions { padding:0; margin:0; background:transparent; }
.admin-profile-form .button { min-height:44px; border-radius:12px; }
.admin-profile-empty { min-height:260px; display:grid; align-content:center; justify-items:center; padding:76px 18px 18px; text-align:center; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='38' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") center 58px/38px no-repeat; }
.admin-profile-empty h2 { margin:0; }
.admin-profile-empty p { max-width:420px; color:#718096; }

@media (min-width: 901px) {
  .employee-directory { position:sticky; top:90px; max-height:calc(100vh - 110px); overflow:auto; }
}

@media (max-width: 900px) {
  .admin-employee-layout { grid-template-columns:minmax(0,1fr); }
  .employee-directory-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .admin-employees-centre { width:min(100% - 24px,1180px); }
  .admin-employees-hero { grid-template-columns:44px minmax(0,1fr) auto; gap:11px; padding:14px; border-radius:16px; }
  .admin-employees-hero::before { width:44px; height:44px; border-radius:13px; background-size:22px; }
  .admin-employees-hero p { font-size:.8rem; }
  .admin-employees-count { min-height:26px; padding:4px 8px; font-size:.68rem; }
  .employee-directory,.admin-profile-card { padding:17px 14px; border-radius:16px; }
  .employee-directory { overflow:hidden; }
  .employee-directory-list { display:flex; gap:8px; margin-inline:-14px; padding:0 14px 4px; overflow-x:auto; overscroll-behavior-inline:contain; scroll-snap-type:x proximity; scrollbar-width:none; }
  .employee-directory-list::-webkit-scrollbar { display:none; }
  .employee-directory .employee-row { flex:0 0 min(260px,82vw); scroll-snap-align:start; }
  .admin-profile-form .module-form-grid { grid-template-columns:minmax(0,1fr); }
  .admin-profile-form .module-actions,.admin-profile-form .module-actions .button { width:100%; }
}

@media (max-width: 420px) {
  .admin-employees-hero { grid-template-columns:40px minmax(0,1fr); }
  .admin-employees-hero::before { width:40px; height:40px; }
  .admin-employees-count { grid-column:2; justify-self:start; margin-top:-2px; }
  .admin-profile-heading { align-items:flex-start; flex-direction:column; gap:8px; }
  .admin-nric-reveal { width:100%; }
  .admin-emergency-contact { padding:14px 12px; }
}

@media (max-width: 390px) {
  .feature-card { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .switch__track { width: 46px; }
  .switch input:checked + .switch__track::after { transform: translateX(17px); }
}

/* Admin system settings: compact, mobile-first control centre. */
.admin-settings-page { background:#f4f8ff; }
.admin-settings-centre { width:min(100% - 32px,1180px); }
.admin-settings-hero {
  display:grid;
  grid-template-columns:56px minmax(0,1fr) auto;
  align-items:center;
  gap:16px;
  padding:20px 22px;
  color:var(--module-text);
  border:1px solid #dce7f7;
  border-radius:20px;
  background:#fff;
  box-shadow:0 12px 34px rgba(37,99,235,.09);
}
.admin-settings-hero::before {
  content:"";
  width:56px;
  height:56px;
  border-radius:16px;
  background:#eaf2ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .34 1.88l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.7 1.7 0 0 0-1.88-.34 1.7 1.7 0 0 0-1.03 1.55V21a2 2 0 1 1-4 0v-.08a1.7 1.7 0 0 0-1.1-1.55 1.7 1.7 0 0 0-1.88.34l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.7 1.7 0 0 0 4.6 15a1.7 1.7 0 0 0-1.55-1.03H3a2 2 0 1 1 0-4h.08A1.7 1.7 0 0 0 4.63 8.9a1.7 1.7 0 0 0-.34-1.88l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.7 1.7 0 0 0 9 4.6h.01A1.7 1.7 0 0 0 10 3.08V3a2 2 0 1 1 4 0v.08A1.7 1.7 0 0 0 15.1 4.63a1.7 1.7 0 0 0 1.88-.34l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.7 1.7 0 0 0 19.4 9v.01A1.7 1.7 0 0 0 20.92 10H21a2 2 0 1 1 0 4h-.08A1.7 1.7 0 0 0 19.4 15Z'/%3E%3C/svg%3E") center/26px no-repeat;
}
.admin-settings-hero > div { min-width:0; }
.admin-settings-hero h1 { margin:2px 0 4px; color:#162337; font-size:clamp(1.45rem,3vw,2rem); }
.admin-settings-hero p { max-width:760px; color:#718096; line-height:1.45; }
.admin-settings-hero .eyebrow { color:#2563eb; }
.admin-settings-admin-only { white-space:nowrap; background:#eaf2ff; color:#1d4ed8; border:1px solid #c8dcff; }
.admin-settings-section,.admin-settings-upgrade {
  margin:0 0 14px;
  padding:20px;
  border:1px solid #dce7f7;
  border-radius:18px;
  background:#fff;
  box-shadow:0 8px 24px rgba(22,35,55,.06);
}
.admin-settings-section { gap:16px; }
.admin-settings-section .module-section-heading { align-items:flex-start; gap:16px; }
.admin-settings-section .module-section-heading > p { max-width:560px; color:#718096; line-height:1.5; }
.admin-feature-settings .feature-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.admin-feature-settings .feature-card {
  min-height:88px;
  padding:15px;
  border-radius:15px;
  background:#f8fbff;
}
.admin-feature-settings .feature-card.is-enabled { background:#eff6ff; border-color:#a9c8ff; }
.admin-feature-settings .feature-card__copy strong { color:#162337; font-size:.95rem; }
.admin-feature-settings .feature-card__copy small { overflow:hidden; text-overflow:ellipsis; font-size:.7rem; }
.admin-settings-section .module-field { gap:7px; }
.admin-settings-section .module-field > span { color:#34445b; font-size:.84rem; font-weight:750; }
.admin-settings-section input,.admin-settings-section textarea { min-height:46px; border-color:#cedbea; border-radius:12px; }
.admin-settings-section textarea { min-height:122px; resize:vertical; }
.admin-settings-section input:focus,.admin-settings-section textarea:focus { border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,.12); outline:none; }
.admin-settings-section .module-actions { padding:0; margin:0; background:transparent; }
.admin-settings-section .button { min-height:44px; border-radius:12px; }
.admin-push-settings .section-help { margin:0; padding:12px 14px; color:#52647b; border:1px solid #dce7f7; border-radius:12px; background:#f8fbff; line-height:1.5; }
.admin-push-settings > form:not(.module-form-grid) { margin:0; }
.admin-push-settings .module-form-grid { align-items:end; gap:12px; }

@media (max-width: 900px) {
  .admin-feature-settings .feature-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .admin-settings-centre { width:min(100% - 24px,1180px); }
  .admin-settings-hero { grid-template-columns:44px minmax(0,1fr) auto; gap:11px; padding:14px; border-radius:16px; }
  .admin-settings-hero::before { width:44px; height:44px; border-radius:13px; background-size:22px; }
  .admin-settings-hero p { font-size:.8rem; }
  .admin-settings-admin-only { min-height:26px; padding:4px 8px; font-size:.68rem; }
  .admin-settings-section,.admin-settings-upgrade { padding:17px 14px; border-radius:16px; }
  .admin-settings-section .module-section-heading { gap:7px; }
  .admin-feature-settings .feature-grid,.admin-settings-section .module-form-grid { grid-template-columns:minmax(0,1fr); }
  .admin-feature-settings .feature-card { min-height:82px; padding:14px; }
  .admin-settings-section .module-actions,.admin-settings-section .module-actions .button { width:100%; }
}

@media (max-width: 420px) {
  .admin-settings-hero { grid-template-columns:40px minmax(0,1fr); }
  .admin-settings-hero::before { width:40px; height:40px; }
  .admin-settings-admin-only { grid-column:2; justify-self:start; margin-top:-2px; }
  .admin-settings-section .module-section-heading { align-items:flex-start; flex-direction:column; }
  .admin-push-settings .module-section-heading .status-pill { align-self:flex-start; }
}
