:root {
  color-scheme: light;
  --navy: #0b2340;
  --navy-2: #12365b;
  --blue: #1769d2;
  --blue-soft: #eaf2ff;
  --gold: #d9ad58;
  --ink: #172b4d;
  --muted: #718198;
  --line: #e3eaf2;
  --surface: #ffffff;
  --canvas: #f3f6fb;
  --green: #15966a;
  --red: #c83b4b;
  font-family: "Noto Sans Sinhala", "Iskoola Pota", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 90% 0%, #e8f1fc 0, transparent 32%), var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #72a9f5; outline-offset: 2px; }
.hidden { display: none !important; }
.app-shell { min-height: 100vh; }
.topbar {
  height: 78px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 58px); color: #fff; border-bottom: 3px solid var(--gold);
  background: linear-gradient(105deg, #091e38, #12385e 70%, #17466e);
  box-shadow: 0 8px 24px #0b23401a; position: relative; z-index: 2;
}
.brand { display: inline-flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.brand-mark {
  width: 45px; height: 45px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(145deg, #fff, #e8eff8); color: var(--navy); font-size: 25px; font-weight: 900;
  box-shadow: 0 5px 18px #06172a55; border: 1px solid #ffffff70;
}
.brand-copy { display: grid; line-height: 1.15; gap: 5px; }
.brand-copy strong { font-size: 18px; letter-spacing: 2px; }
.brand-copy small { color: #c7d7e8; letter-spacing: 1.15px; font-size: 9px; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.secure-label { font-size: 11px; color: #d5e2ef; display: flex; align-items: center; gap: 9px; }
.secure-dot { width: 8px; height: 8px; border-radius: 50%; background: #54d6a2; box-shadow: 0 0 0 4px #54d6a21c; }
.user-chip { display: flex; align-items: center; gap: 9px; color: #fff; border: 1px solid #ffffff35; border-radius: 30px; background: #ffffff12; padding: 5px 14px 5px 5px; font-size: 12px; transition: background .18s ease; }
.user-chip:hover { background: #ffffff20; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #e5effb; color: var(--navy); font-weight: 800; }
.auth-layout { max-width: 1240px; margin: 46px auto; padding: 0 28px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: stretch; gap: 30px; }
.welcome-panel {
  position: relative; overflow: hidden; border-radius: 25px; min-height: 590px; padding: 58px 50px 38px;
  color: #fff; background: radial-gradient(circle at 88% 14%, #2a638e 0, transparent 34%), linear-gradient(145deg, #0a2340, #123b62 68%, #1c5278);
  box-shadow: 0 22px 55px #102a4322;
}
.welcome-panel:before { content: ""; position: absolute; width: 440px; height: 440px; border: 1px solid #ffffff16; border-radius: 50%; right: -185px; bottom: -190px; box-shadow: 0 0 0 38px #ffffff08, 0 0 0 78px #ffffff05; }
.welcome-panel:after { content: ""; position: absolute; height: 4px; width: 120px; left: 50px; top: 0; background: var(--gold); border-radius: 0 0 5px 5px; }
.eyebrow { font-size: 10px; font-weight: 800; letter-spacing: 1.7px; color: var(--blue); }
.welcome-panel .eyebrow { color: #e5c27e; }
.welcome-panel h1 { position: relative; margin: 30px 0 18px; font-size: clamp(31px, 4vw, 47px); line-height: 1.42; font-weight: 850; letter-spacing: -.7px; }
.welcome-panel h1 span { color: #f0ce8b; }
.welcome-panel p { position: relative; color: #d3e0ec; font-size: 14px; line-height: 2; max-width: 500px; }
.welcome-points { position: relative; display: grid; gap: 17px; margin-top: 40px; }
.welcome-points div { display: flex; align-items: center; gap: 13px; font-size: 13px; color: #eff5fa; }
.point-icon { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 10px; color: #f1cc82; background: #ffffff13; border: 1px solid #ffffff12; font-size: 10px; font-weight: 800; }
.welcome-footer { position: absolute; bottom: 28px; left: 50px; color: #9bb0c3; letter-spacing: 1.2px; font-size: 9px; }
.auth-card { align-self: center; padding: 38px; border: 1px solid #e3eaf2; border-radius: 23px; background: #ffffff; box-shadow: 0 20px 55px #102a4312; }
.auth-heading { margin-bottom: 24px; }
.card-kicker { color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: 1.6px; }
.auth-heading h2 { margin: 10px 0 7px; font-size: 26px; letter-spacing: -.3px; }
.auth-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #edf2f8; padding: 4px; border-radius: 12px; margin-bottom: 22px; }
.auth-tab { border: 0; border-radius: 9px; color: #64778a; background: transparent; padding: 11px; font-size: 13px; font-weight: 750; }
.auth-tab.active { color: var(--navy); background: #fff; box-shadow: 0 3px 10px #102a4312; }
.form-stack { display: grid; gap: 9px; }
.form-stack label { margin-top: 4px; font-size: 11px; font-weight: 750; color: #41566d; }
.form-stack input, .form-stack select {
  min-width: 0; width: 100%; border: 1px solid #d8e2ed; border-radius: 10px; padding: 13px 14px;
  color: var(--ink); background: #fbfdff; outline: none; font-size: 13px; transition: border .18s, box-shadow .18s, background .18s;
}
.form-stack input:focus, .form-stack select:focus { border-color: #5f95cc; box-shadow: 0 0 0 4px #2364aa14; background: #fff; }
.form-stack input::placeholder { color: #9aa9b8; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 82px; }
.reveal-button { position: absolute; top: 50%; right: 9px; transform: translateY(-50%); border: 0; background: transparent; color: var(--blue); font-size: 10px; font-weight: 750; padding: 6px; }
.primary-button {
  border: 0; border-radius: 11px; background: linear-gradient(110deg, #14569d, #2679d5); color: #fff;
  padding: 14px 17px; display: flex; justify-content: space-between; align-items: center; margin-top: 12px;
  font-size: 13px; font-weight: 800; box-shadow: 0 8px 18px #2364aa2b; transition: transform .18s, filter .18s, box-shadow .18s;
}
.primary-button:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 11px 22px #2364aa35; }
.primary-button:disabled { opacity: .6; cursor: wait; transform: none; }
.primary-button span { font-size: 20px; line-height: 12px; }
.form-message { min-height: 18px; font-size: 11px; color: var(--red); line-height: 1.7; }
.form-message.success { color: var(--green); }
.notice { padding: 12px 14px; border-radius: 10px; font-size: 11px; line-height: 1.8; }
.notice-info { background: #edf5fc; color: #345d80; border: 1px solid #d5e7f6; }
.auth-footnote { border-top: 1px solid #edf1f5; padding-top: 17px; margin-top: 18px; color: #8291a1; font-size: 10px; line-height: 1.7; }
.lock-icon { color: var(--green); margin-right: 5px; }
.dashboard { min-height: calc(100vh - 78px); display: grid; grid-template-columns: 258px minmax(0, 1fr); }
.sidebar {
  color: #e8f0f8; background: linear-gradient(180deg, #0b2340, #102f50 72%, #0b2340);
  display: flex; flex-direction: column; padding: 22px 14px; min-height: calc(100vh - 78px);
  border-right: 1px solid #0a1c31; box-shadow: 8px 0 25px #0b23400b;
}
.sidebar-user { display: flex; align-items: center; gap: 11px; padding: 8px 8px 22px; border-bottom: 1px solid #ffffff1b; }
.sidebar-user strong { display: block; font-size: 12px; color: #fff; }
.sidebar-user small { display: block; margin-top: 4px; color: #a9bfd3; font-size: 10px; }
.avatar-large { width: 42px; height: 42px; font-size: 15px; background: #e4edf8; }
.side-nav { display: grid; gap: 6px; margin-top: 20px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; border: 1px solid transparent; border-radius: 10px; padding: 12px; background: transparent; text-align: left; color: #c2d2e2; font-size: 12px; font-weight: 650; transition: background .16s, color .16s, border .16s; }
.nav-item:hover { background: #ffffff10; color: #fff; }
.nav-item.active { background: linear-gradient(100deg, #1769d2, #2783e8); border-color: #4b9af0; color: #fff; box-shadow: 0 7px 17px #071a2c55; }
.nav-symbol { width: 20px; text-align: center; font-size: 16px; color: #d9e7f5; }
.logout-button { margin-top: auto; border: 1px solid #ffffff2b; border-radius: 10px; background: #ffffff0c; color: #ffd9d9; text-align: left; padding: 12px; font-size: 12px; font-weight: 750; transition: background .18s; }
.logout-button:hover { background: #b82f3d; color: #fff; }
.logout-button span { margin-right: 7px; }
.workspace { min-width: 0; padding: 35px clamp(18px, 3.5vw, 48px) 26px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.page-heading h1 { margin: 7px 0 6px; font-size: 28px; letter-spacing: -.5px; color: #102b4d; }
.page-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.date-chip { border: 1px solid var(--line); padding: 10px 13px; border-radius: 10px; background: #fff; color: #5d7186; white-space: nowrap; font-size: 10px; box-shadow: 0 3px 10px #102a4308; }
.welcome-strip { display: flex; align-items: center; gap: 14px; padding: 17px 19px; border: 1px solid #d9e8f8; border-radius: 14px; background: linear-gradient(105deg, #eaf4ff, #fff); margin-bottom: 24px; box-shadow: 0 5px 16px #102a4308; }
.welcome-strip-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: #d7eaff; color: #1769d2; font-size: 20px; }
.welcome-strip strong, .welcome-strip span { display: block; }
.welcome-strip strong { font-size: 12px; margin-bottom: 4px; }
.welcome-strip span { font-size: 11px; color: var(--muted); line-height: 1.7; }
.admin-control-panel {
  margin: 0 0 24px; padding: 21px; border: 1px solid #dce6f0; border-radius: 16px;
  background: linear-gradient(135deg, #fff, #f8fbff); box-shadow: 0 7px 22px #102a4308;
}
.admin-control-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.admin-control-heading h2 { margin: 6px 0 5px; color: var(--navy); font-size: 18px; }
.admin-control-heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.admin-access-label {
  display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 8px 10px;
  border: 1px solid #d8e9e1; border-radius: 20px; color: #287452; background: #f3faf6; font-size: 9px; font-weight: 750;
}
.admin-access-label span { width: 7px; height: 7px; border-radius: 50%; background: #28a36c; }
.admin-overview { margin: 0 0 17px; }
.admin-overview-status { margin-bottom: 9px; color: var(--muted); font-size: 10px; }
.admin-overview-status.is-connected { color: #287452; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.admin-metric { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 13px; border: 1px solid #e3eaf2; border-radius: 11px; background: #fff; }
.admin-metric span { color: var(--muted); font-size: 10px; }
.admin-metric strong { color: var(--navy); font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.admin-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.admin-shortcut {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px;
  border: 1px solid #e2eaf2; border-radius: 12px; background: #fff; color: var(--ink); text-align: left;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.admin-shortcut:hover { border-color: #a9c8e8; transform: translateY(-2px); box-shadow: 0 8px 18px #102a4310; }
.admin-shortcut-icon { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 35px; border-radius: 10px; background: #edf4fc; color: #1769b8; font-size: 17px; }
.admin-shortcut strong, .admin-shortcut small { display: block; }
.admin-shortcut strong { font-size: 10px; line-height: 1.5; }
.admin-shortcut small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.admin-shortcut-arrow { margin-left: auto; color: #3979b8; font-size: 21px; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.module-card {
  position: relative; overflow: hidden; min-height: 158px; border: 1px solid #e1e8f0; background: #fff;
  border-radius: 15px; padding: 19px; text-align: left; color: var(--ink);
  box-shadow: 0 5px 17px #102a4308; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.module-card:after { content: "›"; position: absolute; right: 17px; bottom: 15px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: #eff5fc; color: #1769d2; font-size: 22px; line-height: 1; }
.module-card:hover { transform: translateY(-3px); border-color: #b8d2ed; box-shadow: 0 13px 27px #102a4314; }
.module-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #1769b8; background: linear-gradient(145deg, #eaf3ff, #dcecff); font-size: 18px; margin-bottom: 14px; }
.module-card strong { display: block; font-size: 13px; margin-bottom: 7px; padding-right: 24px; }
.module-card small { display: block; color: var(--muted); font-size: 10px; line-height: 1.8; padding-right: 12px; }
.module-detail { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; min-height: 240px; box-shadow: 0 7px 22px #102a4308; }
.back-link { background: transparent; border: 0; color: var(--blue); font-size: 11px; font-weight: 750; padding: 0; margin-bottom: 20px; }
.module-detail h2 { margin: 6px 0 9px; font-size: 21px; color: var(--navy); }
.module-detail p { max-width: 760px; font-size: 12px; line-height: 2; color: var(--muted); }
.module-state { display: inline-flex; margin-top: 12px; background: #fff7e8; border: 1px solid #f0dfb8; color: #80601e; padding: 9px 12px; border-radius: 9px; font-size: 10px; line-height: 1.7; }
.workspace-footer { margin-top: 38px; padding-top: 18px; border-top: 1px solid #e2e9f1; color: #8797a9; letter-spacing: .8px; font-size: 8px; text-align: center; }
.phonebook-tools { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(190px, .55fr); gap: 10px; margin: 20px 0 14px; }
.phonebook-tools input, .phonebook-tools select, .phonebook-form input, .phonebook-form select {
  min-width: 0; width: 100%; border: 1px solid #d7e1eb; border-radius: 10px; padding: 12px 13px;
  color: var(--ink); background: #fff; outline: none; font-size: 12px;
}
.phonebook-tools input:focus, .phonebook-tools select:focus, .phonebook-form input:focus, .phonebook-form select:focus { border-color: #5f95cc; box-shadow: 0 0 0 4px #2364aa14; }
.phonebook-list { display: grid; gap: 10px; margin-top: 12px; }
.phonebook-empty { border: 1px dashed #cbd8e4; border-radius: 12px; padding: 24px; background: #f8fafc; color: var(--muted); font-size: 12px; line-height: 1.9; text-align: center; }
.phonebook-admin { margin-top: 22px; border: 1px solid #dce7f1; border-radius: 14px; background: #f9fbfd; padding: 18px; }
.phonebook-admin-heading h3 { margin: 0 0 5px; font-size: 14px; color: var(--navy); }
.phonebook-admin-heading p { margin: 0 0 14px; font-size: 11px; color: var(--muted); }
.phonebook-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.phonebook-form input:first-of-type, .phonebook-form select { grid-column: span 2; }
.phonebook-form button, .phonebook-form .form-message { grid-column: span 2; }
.preview-button { width: 100%; margin-top: 9px; padding: 12px 14px; border: 1px solid #c9d9e9; border-radius: 10px; background: #f5f9fd; color: #2b5f8c; font-size: 11px; font-weight: 750; transition: background .18s ease,border-color .18s ease; }
.preview-button:hover { background: #eaf3fb; border-color: #9dbbd6; }
#previewBanner { margin: 0 0 15px; }
.department-result { margin-top: 14px; color: var(--muted); font-size: 12px; line-height: 1.9; }
@media (max-width: 1150px) {
  .admin-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
  .dashboard { grid-template-columns: 225px minmax(0, 1fr); }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 820px) {
  .auth-layout { max-width: 650px; grid-template-columns: 1fr; margin: 25px auto; gap: 18px; }
  .welcome-panel { min-height: auto; padding: 34px 30px; }
  .welcome-panel h1 { margin: 18px 0 8px; font-size: 32px; }
  .welcome-panel p { margin-bottom: 0; }
  .welcome-points { display: none; }
  .welcome-footer { position: static; margin-top: 23px; }
  .auth-card { padding: 29px; }
  .dashboard { grid-template-columns: 1fr; }
  .sidebar { min-height: auto; padding: 13px; border-right: 0; border-bottom: 1px solid #0a1c31; }
  .sidebar-user { padding: 4px 5px 13px; }
  .side-nav { display: flex; overflow-x: auto; margin-top: 11px; padding-bottom: 3px; }
  .nav-item { flex: 0 0 auto; width: auto; white-space: nowrap; }
  .logout-button { align-self: flex-end; margin-top: 10px; }
  .workspace { padding-top: 25px; }
}
@media (max-width: 580px) {
  .topbar { height: 66px; padding: 0 15px; }
  .secure-label { display: none; }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { font-size: 8px; letter-spacing: .6px; }
  .auth-layout { padding: 0 13px; margin: 14px auto 22px; }
  .welcome-panel { border-radius: 18px; padding: 25px 22px; }
  .welcome-panel h1 { font-size: 27px; }
  .welcome-panel p { font-size: 12px; }
  .auth-card { padding: 23px 18px; border-radius: 18px; }
  .auth-heading h2 { font-size: 22px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .admin-control-heading { flex-direction: column; }
  .admin-shortcuts { grid-template-columns: 1fr; }
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-heading h1 { font-size: 23px; }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .module-card { padding: 13px; min-height: 145px; }
  .module-card strong { font-size: 11px; }
  .module-icon { margin-bottom: 10px; }
  .date-chip { align-self: flex-start; }
  .module-detail { padding: 17px; }
  .phonebook-tools, .phonebook-form { grid-template-columns: 1fr; }
  .phonebook-form input:first-of-type, .phonebook-form select, .phonebook-form button, .phonebook-form .form-message { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


.department-tools { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 10px; margin: 20px 0 8px; }
.department-tools input { min-width: 0; width: 100%; border: 1px solid #d7e1eb; border-radius: 10px; padding: 12px 13px; color: var(--ink); background: #fff; font-size: 12px; }
.department-tools input:focus { outline: 3px solid #72a9f533; border-color: #5f95cc; }
.department-tools .preview-button { width: auto; margin: 0; white-space: nowrap; }
.department-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 12px 0 16px; }
.department-summary-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 13px; border: 1px solid #e3eaf2; border-radius: 10px; background: #f8fbff; }
.department-summary-item span { color: var(--muted); font-size: 10px; }
.department-summary-item strong { color: var(--navy); font-size: 18px; font-variant-numeric: tabular-nums; }
.department-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.department-card { min-width: 0; padding: 15px; border: 1px solid #e1e8f0; border-radius: 13px; background: #fff; }
.department-card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #edf1f5; }
.department-card-heading h3 { margin: 0; color: var(--navy); font-size: 13px; line-height: 1.7; }
.department-card-heading > span { flex: 0 0 auto; padding: 5px 8px; border-radius: 20px; background: #edf4fc; color: #28649d; font-size: 9px; }
.department-location { margin: 8px 0; color: var(--muted); font-size: 10px; }
.department-task-list { display: grid; gap: 7px; margin: 11px 0 0; padding: 0; list-style: none; }
.department-task-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 8px 9px; border-radius: 8px; background: #f7f9fc; color: #40566d; font-size: 10px; line-height: 1.7; }
.department-task-list li small { flex: 0 0 auto; color: #8291a1; font-size: 9px; }
.department-task-list .department-no-tasks { color: #8291a1; font-style: italic; }
.department-empty { grid-column: 1 / -1; padding: 25px; border: 1px dashed #cbd8e4; border-radius: 12px; color: var(--muted); text-align: center; font-size: 12px; }
@media (max-width: 720px) {
  .department-list { grid-template-columns: 1fr; }
  .department-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .department-tools { grid-template-columns: 1fr; }
  .department-tools .preview-button { width: 100%; }
}


/* Departments & Duties management */
.department-tools { grid-template-columns: minmax(180px, 1fr) auto auto; align-items: center; }
.department-tools .department-add-button { width: auto; min-height: 40px; margin: 0; padding: 10px 14px; white-space: nowrap; }
.department-editor { margin: 16px 0; padding: 17px; border: 1px solid #cbdced; border-radius: 13px; background: #f7faff; }
.department-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.department-editor-heading h3 { margin: 0; color: var(--navy); font-size: 14px; }
.department-close { border: 0; background: transparent; color: #63758a; font-size: 24px; cursor: pointer; }
.department-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.department-field { display: grid; gap: 6px; color: #52677d; font-size: 11px; font-weight: 700; }
.department-field input { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #d4dfeb; border-radius: 9px; background: #fff; color: var(--ink); font: inherit; font-weight: 400; }
.department-field input:focus { outline: 3px solid #72a9f533; border-color: #5f95cc; }
.department-form-actions { grid-column: 1 / -1; display: flex; gap: 9px; align-items: center; }
.department-form-actions .primary-button, .department-form-actions .preview-button { width: auto; margin: 0; }
.department-card-heading { align-items: flex-start; }
.department-title-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-width: 0; }
.department-status-active, .department-status-inactive { display: inline-block; width: fit-content; padding: 3px 7px; border-radius: 20px; font-size: 9px !important; font-weight: 700; }
.department-status-active { color: #176b45 !important; background: #e8f6ee; }
.department-status-inactive { color: #8b5b20 !important; background: #fff3df; }
.department-actions, .department-task-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.department-actions { margin: 12px 0 9px; }
.department-action { border: 1px solid #d5e0eb; border-radius: 7px; padding: 6px 8px; background: #fff; color: #365a7c; font-size: 9px; font-weight: 700; cursor: pointer; }
.department-action:hover { background: #f0f6fc; border-color: #a9c4df; }
.department-action-primary { color: #145c9e; background: #edf5ff; border-color: #c8ddf4; }
.department-action-muted { color: #80602e; }
.department-task-list li { align-items: center; }
.department-task-info { display: grid; justify-items: start; gap: 4px; min-width: 0; }
.department-task-info > span { color: #40566d; font-size: 10px; }
.department-task-location { color: #8291a1; font-size: 9px; }
.department-task-actions { justify-content: flex-end; flex: 0 0 auto; }
@media (max-width: 720px) {
  .department-tools { grid-template-columns: 1fr 1fr; }
  .department-tools input { grid-column: 1 / -1; }
  .department-tools .department-add-button, .department-tools .preview-button { width: 100%; }
}
@media (max-width: 480px) {
  .department-form { grid-template-columns: 1fr; }
  .department-form-actions { grid-column: auto; flex-wrap: wrap; }
  .department-form-actions .primary-button, .department-form-actions .preview-button { flex: 1 1 130px; }
  .department-task-list li { align-items: flex-start; flex-direction: column; }
  .department-task-actions { justify-content: flex-start; }
}


/* Dedicated full-page workspace for To-do and Phone Book */
body.standalone-module .dashboard { grid-template-columns: minmax(0, 1fr); }
body.standalone-module .sidebar { display: none; }
body.standalone-module .workspace { max-width: 1440px; width: 100%; margin: 0 auto; padding-top: 24px; }
body.standalone-module .page-heading,
body.standalone-module .welcome-strip,
body.standalone-module .admin-control-panel,
body.standalone-module .module-grid,
body.standalone-module #previewBanner,
body.standalone-module .workspace-footer { display: none !important; }
body.standalone-module #moduleDetail { display: block; border: 0; padding: 0; margin: 0; background: transparent; box-shadow: none; }
body.standalone-module #moduleDetailContent > .eyebrow,
body.standalone-module #moduleDetailContent > h2,
body.standalone-module #moduleDetailContent > p { display: none; }
.standalone-page-nav { display: flex; align-items: center; margin: 0 0 18px; }
.standalone-home-button { border: 1px solid #cbd9e8; border-radius: 11px; padding: 11px 16px; color: #174a7b; background: #fff; font-weight: 750; box-shadow: 0 4px 12px #102a430d; }
.standalone-home-button:hover { background: #edf5ff; border-color: #8fb8e2; }
@media (max-width: 700px) { body.standalone-module .workspace { padding: 18px 12px 24px; } }


/* Device-adaptive layout: tablet, mobile and desktop */
img,video,canvas,svg{max-width:100%}
input,select,textarea{max-width:100%}
.workspace,.module-detail,.admin-control-panel,.auth-card{min-width:0}
@media (max-width:1100px){
  .dashboard{grid-template-columns:220px minmax(0,1fr)}
  .module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .auth-layout{gap:20px;padding:0 20px}
  .welcome-panel{padding:42px 34px}
  .auth-card{padding:30px}
}
@media (max-width:760px){
  .topbar{height:64px;padding:0 15px}
  .brand{gap:9px}
  .brand-mark{width:38px;height:38px;border-radius:11px;font-size:21px}
  .brand-copy strong{font-size:15px;letter-spacing:1.5px}
  .brand-copy small{font-size:7px;letter-spacing:.7px}
  .secure-label{display:none}
  .dashboard{display:flex;flex-direction:column;min-height:calc(100vh - 64px)}
  .sidebar{order:2;position:sticky;bottom:0;z-index:20;min-height:0;height:auto;padding:7px 8px calc(7px + env(safe-area-inset-bottom));border-right:0;border-top:1px solid #ffffff20;box-shadow:0 -5px 18px #0b234022}
  .sidebar-user,.logout-button{display:none}
  .side-nav{display:flex;gap:6px;justify-content:space-around;overflow-x:auto;overscroll-behavior-x:contain;margin:0;padding:0 2px}
  .nav-item{display:flex;flex:1 0 66px;flex-direction:column;justify-content:center;gap:3px;min-height:54px;padding:6px 4px;text-align:center;font-size:9px;white-space:normal}
  .nav-symbol{width:auto;font-size:18px}
  .workspace{order:1;width:100%;padding:20px 14px 22px}
  .page-heading{align-items:flex-start;flex-direction:column;gap:9px;margin-bottom:16px}
  .page-heading h1{font-size:23px}
  .date-chip{white-space:normal}
  .welcome-strip{padding:13px;margin-bottom:16px}
  .admin-control-panel{padding:15px}
  .admin-control-heading{flex-direction:column}
  .module-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .module-card{min-height:135px;padding:14px}
  .module-detail{padding:15px;border-radius:12px}
  .auth-layout{display:flex;flex-direction:column;margin:20px auto;padding:0 14px;gap:14px}
  .welcome-panel{min-height:0;padding:25px 22px 22px;border-radius:17px}
  .welcome-panel h1{font-size:clamp(24px,6vw,34px);margin:17px 0 10px}
  .welcome-panel p{font-size:12px}
  .welcome-points{gap:10px;margin-top:18px}
  .welcome-footer{position:relative;left:auto;bottom:auto;margin-top:20px}
  .welcome-panel:after{left:22px}
  .auth-card{width:100%;padding:22px 18px;border-radius:17px}
}
@media (max-width:480px){
  .topbar{padding:0 11px}
  .user-chip{padding:4px 9px 4px 4px;font-size:10px}
  .user-chip .avatar{width:29px;height:29px}
  .module-grid{grid-template-columns:1fr}
  .module-card{min-height:112px}
  .admin-metrics,.admin-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-metric{padding:9px}
  .admin-metric strong{font-size:16px}
  .admin-shortcut{padding:9px;gap:7px}
  .admin-shortcut-icon{width:29px;height:29px;flex-basis:29px}
  .workspace{padding-left:11px;padding-right:11px}
  .welcome-strip{align-items:flex-start}
  .department-list{grid-template-columns:1fr}
  .department-tools,.department-form{grid-template-columns:1fr}
  .department-tools input{grid-column:auto}
  .department-tools .department-add-button,.department-tools .preview-button{width:100%}
  .department-form-actions{grid-column:auto;flex-wrap:wrap}
  .department-form-actions .primary-button,.department-form-actions .preview-button{flex:1 1 120px}
  .department-task-list li{align-items:flex-start;flex-direction:column}
  .department-task-actions{justify-content:flex-start}
}
@media (max-width:360px){
  .brand-copy small{display:none}
  .module-grid,.admin-metrics,.admin-shortcuts{grid-template-columns:1fr}
  .phonebook-dept-grid{grid-template-columns:1fr}
  .department-buttons{grid-template-columns:1fr}
}
@media (hover:none){
  .module-card:hover,.admin-shortcut:hover,.phonebook-dept:hover,.department-button:hover{transform:none}
}


/* NELUWA Modern UI refresh */
:root{
  --navy:#102b4e;--navy-2:#174675;--blue:#2563eb;--blue-soft:#eff6ff;
  --gold:#e7b95f;--ink:#172b45;--muted:#718096;--line:#e5eaf2;
  --surface:#ffffff;--canvas:#f4f7fc;--green:#059669;
}
body{background:linear-gradient(145deg,#f7f9fd 0%,#eef4fb 52%,#f8fafc 100%);color:var(--ink)}
.topbar{height:76px;background:linear-gradient(110deg,#102b4e 0%,#174675 62%,#23618b 100%);border-bottom:3px solid #e7b95f;box-shadow:0 8px 28px #102b4e20}
.brand-mark{border-radius:15px;background:linear-gradient(145deg,#fff,#dceaff);color:#174675}
.welcome-panel{border-radius:28px;background:radial-gradient(circle at 88% 10%,#3b82b866 0,transparent 32%),linear-gradient(145deg,#102b4e,#174675 65%,#23719a);box-shadow:0 24px 65px #102b4e25}
.auth-card{border:1px solid #e7edf5;border-radius:25px;box-shadow:0 18px 55px #173b6114}
.auth-tabs{background:#f0f4fa;border-radius:14px}
.auth-tab.active{color:#174675;box-shadow:0 4px 12px #173b6112}
.form-stack input,.form-stack select,.phonebook-tools input,.phonebook-tools select,.phonebook-form input,.phonebook-form select{border-radius:12px;background:#f9fbfe}
.primary-button{border-radius:12px;background:linear-gradient(110deg,#1d4ed8,#3184e8);box-shadow:0 8px 20px #2563eb30}
.primary-button:hover{box-shadow:0 12px 24px #2563eb38}
.dashboard{background:transparent}
.sidebar{background:linear-gradient(180deg,#102b4e,#153d65 72%,#102b4e)}
.nav-item{border-radius:12px}
.nav-item.active{background:linear-gradient(110deg,#2563eb,#3b82f6);border-color:#78a9ff}
.workspace{padding-top:32px}
.page-heading h1{color:#102b4e;font-weight:850}
.welcome-strip{border:1px solid #dbeafe;border-radius:16px;background:linear-gradient(110deg,#eaf3ff,#fff 75%);box-shadow:0 8px 22px #173b6109}
.admin-control-panel,.module-detail{border-radius:19px;border-color:#e4ebf4;box-shadow:0 10px 28px #173b610b}
.admin-metric,.admin-shortcut,.module-card{border-radius:15px;border-color:#e7edf5;box-shadow:0 6px 18px #173b6108}
.admin-shortcut:hover,.module-card:hover{border-color:#b8d2f5;box-shadow:0 15px 30px #173b6116}
.module-card{background:linear-gradient(155deg,#fff,#fbfdff);min-height:170px}
.module-icon{border-radius:14px;background:linear-gradient(145deg,#eaf2ff,#dbeafe);color:#2563eb}
.module-card:after{background:#eff6ff;color:#2563eb}
.standalone-home-button{border-radius:12px}
.registration-panel{max-width:900px;margin:18px auto;padding:clamp(16px,3vw,28px);border:1px solid #e3eaf4;border-radius:22px;box-shadow:0 14px 38px #173b6110}
.registration-step-title{font-size:clamp(17px,2vw,21px);font-weight:850;color:#12365b}
.registration-field{gap:8px;color:#334e68;font-size:13px}
.registration-field input,.registration-field select,.registration-field textarea{border:1px solid #dbe4ef;border-radius:12px;background:#f9fbfe;padding:13px 14px;transition:border .18s,box-shadow .18s}
.registration-field input:focus,.registration-field select:focus,.registration-field textarea:focus{outline:0;border-color:#60a5fa;box-shadow:0 0 0 4px #3b82f61c;background:#fff}
.department-button{border:1px solid #bfdbfe;border-radius:13px;background:linear-gradient(145deg,#f5f9ff,#eaf2ff);color:#1d4ed8;min-height:54px;box-shadow:0 4px 12px #1d4ed80c}
.department-button.selected{background:linear-gradient(110deg,#1d4ed8,#3b82f6);border-color:#2563eb;box-shadow:0 8px 18px #2563eb30}
.service-button{border:1px solid #a7f3d0;border-radius:13px;background:linear-gradient(145deg,#f0fdf8,#e4fbf1);color:#047857;min-height:54px;box-shadow:0 4px 12px #0596690c}
.service-button.selected{background:linear-gradient(110deg,#047857,#10b981);border-color:#059669;box-shadow:0 8px 18px #05966930}
.registration-step .primary-button,.registration-step .secondary-button{border-radius:13px;min-height:50px}
.registration-step .secondary-button{border:1px solid #dbe4ef;background:#f3f6fb;color:#35516e}
@media(max-width:760px){
  .topbar{height:66px}
  .workspace{padding-top:20px}
  .registration-panel{margin:10px 0 18px;border-radius:17px}
  .module-card{min-height:128px}
}
@media(max-width:480px){
  .auth-card{border-radius:19px}
  .welcome-panel{border-radius:19px}
  .registration-step-title{line-height:1.55}
  .department-button,.service-button{min-height:50px}
}


/* Slightly larger, more comfortable typography */
:root{font-size:16px}
body{font-size:15px;line-height:1.65}
button,input,select,textarea{font-size:15px}
.brand-copy strong{font-size:19px}
.brand-copy small{font-size:10px}
.secure-label{font-size:12px}
.page-heading h1{font-size:30px}
.page-heading p{font-size:14px}
.eyebrow{font-size:11px}
.welcome-panel p{font-size:15px;line-height:1.9}
.welcome-points div{font-size:14px}
.auth-heading h2{font-size:28px}
.auth-heading p{font-size:14px}
.form-stack label{font-size:13px}
.form-stack input,.form-stack select{font-size:15px;padding:14px 15px}
.auth-tab{font-size:14px}
.primary-button,.preview-button{font-size:14px}
.nav-item{font-size:13px}
.sidebar-user strong{font-size:13px}
.sidebar-user small{font-size:11px}
.welcome-strip strong{font-size:14px}
.welcome-strip span{font-size:13px}
.admin-control-heading h2{font-size:20px}
.admin-control-heading p{font-size:13px}
.admin-metric span{font-size:12px}
.admin-shortcut strong{font-size:12px}
.admin-shortcut small{font-size:11px}
.module-card strong{font-size:15px}
.module-card small{font-size:12px;line-height:1.8}
.registration-field{font-size:14px}
.registration-field input,.registration-field select,.registration-field textarea{font-size:16px}
.registration-step-title{font-size:21px}
.department-button,.service-button{font-size:15px}
.department-result{font-size:14px}
.phonebook-tools input,.phonebook-tools select,.phonebook-form input,.phonebook-form select{font-size:14px}
@media(max-width:760px){
  body{font-size:15px}
  .page-heading h1{font-size:25px}
  .page-heading p{font-size:14px}
  .module-card strong{font-size:14px}
  .module-card small{font-size:12px}
  .nav-item{font-size:10px}
  .registration-field{font-size:14px}
  .department-button,.service-button{font-size:14px}
}
@media(max-width:480px){
  .brand-copy strong{font-size:16px}
  .auth-heading h2{font-size:24px}
  .welcome-panel p{font-size:13px}
  .module-card strong{font-size:14px}
  .module-card small{font-size:12px}
  .registration-step-title{font-size:19px}
  .department-button,.service-button{font-size:14px}
}


/* Official Neluwa office identity header */
.topbar{min-height:88px;height:auto;padding-top:10px;padding-bottom:10px}
.brand{gap:15px;min-width:0}
.brand-emblem{display:block;width:48px;height:62px;object-fit:contain;flex:0 0 auto;padding:2px;background:#fff;border:1px solid #e7b95f;border-radius:7px}
.brand-divider{width:2px;height:52px;flex:0 0 auto;background:linear-gradient(180deg,transparent,#e7b95f,transparent)}
.brand-copy{gap:6px;min-width:0}
.brand-copy strong{font-size:clamp(16px,2vw,22px);letter-spacing:0;color:#fff;line-height:1.35;white-space:normal}
.brand-copy small{font-size:11px;letter-spacing:1.7px;color:#f0d69e;font-weight:750}
@media(max-width:760px){
 .topbar{min-height:76px;height:auto;padding:8px 12px}
 .brand{gap:9px}
 .brand-emblem{width:37px;height:49px}
 .brand-divider{height:42px}
 .brand-copy strong{font-size:clamp(12px,3.5vw,16px);line-height:1.4}
 .brand-copy small{font-size:8px;letter-spacing:1px}
}
@media(max-width:380px){
 .brand-emblem{width:32px;height:43px}
 .brand{gap:7px}
 .brand-copy strong{font-size:12px}
 .brand-copy small{font-size:7px;letter-spacing:.6px}
}


/* Public welcome screen inspired by the Neluwa reference design */
.public-home{min-height:calc(100vh - 88px);padding:20px clamp(14px,3vw,42px) 0;background:linear-gradient(180deg,#d9edff 0%,#f8fbff 55%,#dcecff 100%);position:relative;overflow:hidden}
.public-welcome{max-width:1600px;min-height:230px;margin:0 auto;border-radius:0 0 30px 30px;overflow:hidden;position:relative;display:flex;align-items:center;justify-content:space-between;padding:34px clamp(24px,5vw,76px);color:#fff;background:radial-gradient(ellipse at 78% 15%,#45a7e8 0,transparent 34%),linear-gradient(115deg,#073b91 0%,#0759c5 52%,#0874d0 100%);box-shadow:0 14px 32px #073b9130}
.public-welcome:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#062f7b55,transparent 75%);pointer-events:none}
.public-welcome-copy{position:relative;z-index:2;max-width:780px}
.public-eyebrow{font-size:12px;font-weight:850;letter-spacing:2px;color:#ffdf48}
.public-welcome h1{font-size:clamp(27px,4vw,48px);line-height:1.25;margin:12px 0;color:#fff;font-weight:900}
.public-welcome h1 em{font-style:normal;color:#ffdf32}
.public-welcome p{max-width:650px;color:#e8f3ff;font-size:16px;line-height:1.7}
.public-login-button{margin-top:12px;padding:13px 22px;border:1px solid #ffe36a;border-radius:12px;background:linear-gradient(110deg,#ffdf35,#ffbf24);color:#092f78;font-weight:900;font-size:15px;box-shadow:0 7px 18px #001d5b50}
.public-login-button span{padding-left:12px}
.public-welcome-art{position:relative;width:210px;height:190px;display:grid;place-items:center;flex:0 0 auto;z-index:1}
.art-ring{position:absolute;width:175px;height:175px;border:2px solid #ffdc58;border-radius:50%;box-shadow:0 0 0 14px #ffffff12,0 0 40px #7ccaff55}
.art-building{font-size:100px;filter:drop-shadow(0 12px 12px #001e5c77)}
.art-caption{position:absolute;bottom:0;font-size:13px;font-weight:900;letter-spacing:4px;color:#ffe15b}
.public-info-strip{max-width:1600px;margin:16px auto 24px;padding:16px 24px;display:flex;align-items:center;gap:22px;border:1px solid #d8e8fa;border-radius:19px;background:#ffffffed;box-shadow:0 8px 20px #17467514;color:#123e86}
.public-people-icon{font-size:43px;color:#0759c5}
.public-info-copy{display:flex;flex:1;flex-direction:column;gap:3px}
.public-info-copy strong{font-size:clamp(16px,2vw,23px);font-weight:900}
.public-info-copy span{font-size:clamp(13px,1.5vw,18px);font-style:italic;font-weight:750}
.public-clock{display:flex;align-items:center;gap:10px;padding:8px 15px;border-left:2px solid #d1e3fb;font-size:16px}
.public-clock span{font-size:25px;color:#0759c5}
.public-departments{max-width:1450px;margin:0 auto;text-align:center}
.public-departments h2{display:inline-flex;align-items:center;gap:12px;margin:0 0 16px;padding:12px 32px;border:1px solid #70b7ff;border-radius:15px;background:linear-gradient(110deg,#0753bd,#0878dd);color:#fff;font-size:clamp(17px,2vw,24px);box-shadow:0 7px 18px #0753bd33}
.public-department-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.public-department-grid button{min-height:70px;border:1px solid #83c4ff;border-radius:14px;background:linear-gradient(145deg,#087be3,#0649b5);color:#fff;font-size:clamp(14px,1.5vw,19px);font-weight:850;box-shadow:0 7px 14px #0649b52a;transition:transform .18s,filter .18s}
.public-department-grid button:before{content:"▦";display:inline-block;margin-right:12px;font-size:21px;color:#ffdf4e}
.public-department-grid button:hover{transform:translateY(-3px);filter:brightness(1.1)}
.public-shortcuts{max-width:760px;margin:26px auto 18px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.public-shortcuts button{min-height:108px;border:1px solid #d9e7f8;border-radius:17px;background:linear-gradient(160deg,#fff,#edf5ff);color:#073b91;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;box-shadow:0 7px 18px #123e8618}
.public-shortcuts button span{font-size:30px;color:#0872d5}
.public-shortcuts button strong{font-size:14px}
.public-footer{margin:24px calc(clamp(14px,3vw,42px) * -1) 0;padding:20px clamp(20px,4vw,60px);display:flex;justify-content:space-between;align-items:center;gap:12px;background:linear-gradient(110deg,#062c78,#0754bd);color:#fff;border-top:5px solid #ffdb36}
.public-footer span{font-size:17px;font-weight:850}
.public-footer strong{font-size:14px;color:#ffe05b}
@media(max-width:850px){
 .public-welcome{min-height:205px;padding:25px}
 .public-welcome-art{width:140px}
 .art-ring{width:120px;height:120px}
 .art-building{font-size:72px}
 .public-department-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .public-info-strip{flex-wrap:wrap;gap:10px;padding:14px}
 .public-info-copy{flex-basis:calc(100% - 65px)}
 .public-clock{flex:1;border-left:0;border-top:1px solid #d1e3fb;justify-content:center}
}
@media(max-width:560px){
 .public-home{padding:0 10px}
 .public-welcome{border-radius:0 0 20px 20px;padding:23px 18px;min-height:0}
 .public-welcome-art{display:none}
 .public-welcome h1{font-size:27px}
 .public-welcome p{font-size:13px}
 .public-info-strip{margin:12px auto 18px}
 .public-people-icon{font-size:31px}
 .public-info-copy strong{font-size:15px}
 .public-info-copy span{font-size:12px}
 .public-clock{font-size:13px;padding:7px 4px}
 .public-clock span{font-size:20px}
 .public-departments h2{padding:10px 18px;font-size:16px}
 .public-department-grid{gap:7px}
 .public-department-grid button{min-height:58px;font-size:14px}
 .public-department-grid button:before{margin-right:6px}
 .public-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));margin:17px auto}
 .public-shortcuts button{min-height:88px}
 .public-footer{margin-left:-10px;margin-right:-10px;flex-direction:column;text-align:center}
}
.dashboard .workspace{background:linear-gradient(145deg,#edf5ff,#fff 60%,#eaf3ff);border-radius:0 0 0 24px}
.dashboard .page-heading{padding:18px 22px;border-radius:17px;background:linear-gradient(110deg,#07449f,#0875d2);color:#fff;box-shadow:0 9px 24px #0753bd25}
.dashboard .page-heading h1,.dashboard .page-heading p,.dashboard .page-heading .eyebrow{color:#fff}
.dashboard .date-chip{background:#ffffff20;border:1px solid #ffffff55;color:#fff}
.dashboard .welcome-strip{border:1px solid #d2e5ff;background:linear-gradient(110deg,#fff,#e8f3ff);border-radius:17px}
.dashboard .module-card{border:1px solid #cfe2fb;background:linear-gradient(155deg,#fff,#eaf4ff);box-shadow:0 8px 20px #0b438c12}
.dashboard .module-card:hover{border-color:#5ca9f2;box-shadow:0 14px 28px #0b438c22}
.dashboard .module-icon{background:linear-gradient(145deg,#dcecff,#b9d8ff);color:#0759c5}
@media(max-width:760px){.public-welcome{gap:10px}.public-info-strip{border-radius:14px}.dashboard .page-heading{padding:15px}}


/* Main dashboard redesign — blue/gold Neluwa reference layout */
.dashboard{background:#e8f3ff}
.dashboard .sidebar{background:linear-gradient(180deg,#06347f,#0754b7);border-right:4px solid #f3cf3b;color:#fff}
.dashboard .sidebar-user{border-bottom:1px solid #ffffff35}
.dashboard .sidebar-user strong,.dashboard .sidebar-user small{color:#fff}
.dashboard .sidebar .avatar{background:#fff;color:#07469e}
.dashboard .side-nav{gap:7px}
.dashboard .nav-item{border:1px solid #ffffff24;background:#ffffff10;color:#fff;border-radius:11px;padding:12px 13px;font-size:14px}
.dashboard .nav-item:hover,.dashboard .nav-item.active{background:#ffffff26;border-color:#ffdc4b;color:#fff}
.dashboard .nav-symbol{color:#ffdf4b}
.dashboard .logout-button{background:#ffffff16;color:#fff;border:1px solid #ffffff44;border-radius:11px}
.dashboard .workspace{padding:22px clamp(14px,2.6vw,36px);background:linear-gradient(180deg,#e6f3ff 0%,#f7fbff 45%,#e6f2ff 100%)}
.dashboard .page-heading{position:relative;overflow:hidden;min-height:164px;display:flex;align-items:center;padding:25px clamp(20px,4vw,52px);border-radius:0 0 25px 25px;border:0;background:radial-gradient(ellipse at 82% 10%,#55b9f3 0,transparent 35%),linear-gradient(105deg,#06327f,#0759c8 65%,#0879d6);box-shadow:0 12px 25px #06459c2c}
.dashboard .page-heading:after{content:"";position:absolute;right:-30px;bottom:-105px;width:300px;height:230px;border:2px solid #ffffff35;border-radius:50%;box-shadow:0 0 0 22px #ffffff0d,0 0 0 48px #ffffff0a}
.dashboard .page-heading h1{font-size:clamp(26px,3vw,38px);font-weight:900}
.dashboard .page-heading p{font-size:15px;opacity:.92}
.dashboard .page-heading .eyebrow{color:#ffdf48}
.dashboard .date-chip{position:relative;z-index:1;border-radius:13px;padding:12px 16px;background:#ffffff1c;border:1px solid #ffffff60;color:#fff;font-size:13px}
.dashboard .welcome-strip{margin:16px 0 20px;min-height:88px;padding:16px 22px;border-radius:17px;border:1px solid #c8def8;background:#ffffffed;box-shadow:0 7px 18px #17467512}
.dashboard .welcome-strip-icon{background:#e5f1ff;color:#0759c5;border-radius:14px}
.dashboard .welcome-strip strong{font-size:19px;color:#073b86}
.dashboard .welcome-strip span{font-size:14px;color:#31557f}
.dashboard .module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px}
.dashboard .module-card{min-height:142px;display:flex;align-items:center;justify-content:center;text-align:center;gap:9px;padding:18px 15px;border:1px solid #a9cefa;border-radius:17px;background:linear-gradient(145deg,#087be5,#0649b5);color:#fff;box-shadow:0 8px 18px #0649b52a;transition:transform .18s,box-shadow .18s}
.dashboard .module-card:hover{transform:translateY(-3px);background:linear-gradient(145deg,#168ff4,#0750bd);box-shadow:0 13px 24px #0649b53d}
.dashboard .module-card .module-icon{width:49px;height:49px;display:grid;place-items:center;border-radius:14px;background:#ffffff20;color:#ffdf4b;font-size:27px}
.dashboard .module-card strong{font-size:17px;color:#fff}
.dashboard .module-card small{font-size:12px;color:#e5f1ff;line-height:1.5}
.dashboard .admin-control-panel{margin:18px 0;padding:20px;border-radius:18px;border:1px solid #bdd8f7;background:#fff;box-shadow:0 8px 20px #17467512}
.dashboard .admin-control-heading h2{color:#073b86}
.dashboard .admin-shortcut{border:1px solid #d1e4fa;border-radius:13px;background:#f2f8ff}
.dashboard .module-detail{padding:20px;border:1px solid #cfe2fb;border-radius:18px;background:#fff;box-shadow:0 8px 20px #17467512}
.dashboard .workspace-footer{margin-top:28px;padding:16px;text-align:center;border-top:3px solid #f2d13d;color:#174a8d;font-weight:800;letter-spacing:.6px}
@media(max-width:900px){.dashboard .module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
 .dashboard .workspace{padding:12px}
 .dashboard .page-heading{min-height:135px;padding:18px;border-radius:0 0 18px 18px;display:block}
 .dashboard .date-chip{display:inline-block;margin-top:10px}
 .dashboard .module-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .dashboard .module-card{min-height:126px;padding:12px 8px}
 .dashboard .module-card strong{font-size:14px}
 .dashboard .module-card small{font-size:11px}
 .dashboard .module-card .module-icon{width:40px;height:40px;font-size:22px}
 .dashboard .welcome-strip{padding:12px}
 .dashboard .welcome-strip strong{font-size:16px}
}


/* Visitor registration: full-width details and direct department-to-service selection */
.registration-panel{max-width:100%;width:100%;margin:14px 0;padding:clamp(16px,2.5vw,30px)}
.registration-form{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;width:100%}
.registration-details{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;width:100%}
.registration-details .registration-field{display:grid;grid-template-columns:minmax(150px,220px) minmax(0,1fr);align-items:center;gap:14px;width:100%}
.registration-details .registration-field input,
.registration-details .registration-field textarea{width:100%;min-width:0}
.registration-choice-section{display:grid;gap:12px;width:100%}
.registration-choice-section .registration-step-title{margin:8px 0 2px}
.registration-choice-section .registration-step-title:not(:first-child){margin-top:18px}
.registration-form>.primary-button{width:100%;max-width:360px;justify-content:center;gap:10px;margin:4px 0 0}
@media(max-width:600px){
 .registration-details .registration-field{grid-template-columns:1fr;gap:6px}
 .registration-form>.primary-button{max-width:none}
}


/* Dashboard module action buttons and welcome shortcuts */
.dashboard .module-grid{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch}
.dashboard .module-card.dashboard-module-button{min-height:112px;flex-direction:row;justify-content:flex-start;text-align:left;gap:12px;padding:16px;border-radius:14px;background:linear-gradient(110deg,#0754b8,#0878d8);border:1px solid #7bb8f0}
.dashboard .module-card.dashboard-module-button .module-icon{width:42px;height:42px;flex:0 0 42px;border:1px solid #ffffff35;background:#ffffff18;font-size:23px}
.dashboard .module-card.dashboard-module-button strong{font-size:14px;line-height:1.4}
.dashboard .module-card.dashboard-module-button small{display:none}
.dashboard .dashboard-quick-links{grid-column:1/-1;margin-top:10px;padding:18px;border:1px solid #c8def8;border-radius:16px;background:#ffffffd9}
.dashboard .dashboard-quick-links h2{margin:0 0 13px;color:#073b86;font-size:17px;font-weight:850}
.dashboard .dashboard-quick-link-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.dashboard .dashboard-quick-link{min-height:76px;display:flex;align-items:center;justify-content:center;gap:10px;padding:12px;border:1px solid #b9d7f7;border-radius:12px;background:linear-gradient(145deg,#f8fbff,#e5f1ff);color:#07449f;font-weight:800;cursor:pointer}
.dashboard .dashboard-quick-link:hover{background:#d8ebff;border-color:#5ca9f2;transform:translateY(-2px)}
.dashboard .dashboard-quick-link span{font-size:23px;color:#0872d5}
.dashboard .dashboard-quick-link strong{font-size:13px}
.dashboard .dashboard-welcome-footer{grid-column:1/-1;padding:16px 8px 4px;text-align:center;color:#07509f;font-size:14px;font-weight:850;letter-spacing:.4px}
@media(max-width:900px){.dashboard .module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
 .dashboard .module-card.dashboard-module-button{min-height:76px;padding:10px;gap:8px}
 .dashboard .module-card.dashboard-module-button .module-icon{width:35px;height:35px;flex-basis:35px;font-size:20px}
 .dashboard .module-card.dashboard-module-button strong{font-size:12px}
 .dashboard .dashboard-quick-links{padding:12px}
 .dashboard .dashboard-quick-link-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dashboard .dashboard-quick-link{min-height:66px;padding:8px;gap:7px}
 .dashboard .dashboard-quick-link strong{font-size:12px}
}


/* Match the eight main module buttons to the compact quick-link button style */
.dashboard .module-card.dashboard-module-button{
  min-height:76px;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:10px;
  padding:12px;
  border:1px solid #b9d7f7;
  border-radius:12px;
  background:linear-gradient(145deg,#f8fbff,#e5f1ff);
  color:#07449f;
  box-shadow:0 5px 14px #123e8610;
}
.dashboard .module-card.dashboard-module-button:hover{
  background:#d8ebff;
  border-color:#5ca9f2;
  box-shadow:0 8px 18px #123e8618;
}
.dashboard .module-card.dashboard-module-button .module-icon{
  width:auto;
  height:auto;
  flex:0 0 auto;
  display:inline;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#0872d5;
  font-size:23px;
}
.dashboard .module-card.dashboard-module-button strong{
  color:#07449f;
  font-size:13px;
  line-height:1.4;
  font-weight:850;
}
@media(max-width:600px){
 .dashboard .module-card.dashboard-module-button{
   min-height:66px;
   padding:8px;
   gap:7px;
 }
 .dashboard .module-card.dashboard-module-button .module-icon{font-size:20px}
 .dashboard .module-card.dashboard-module-button strong{font-size:12px}
}


/* Dashboard refresh: restore the navigation sidebar and keep its administration panel compact */
#dashboardScreen.dashboard {
  grid-template-columns: 340px minmax(0, 1fr);
  background: #f4f8fd;
}
#dashboardScreen > .sidebar {
  display: flex !important;
  overflow-y: auto;
}
#dashboardScreen .workspace {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}
#dashboardScreen .page-heading h1,
#dashboardScreen .page-heading p,
#dashboardScreen .welcome-strip strong,
#dashboardScreen .welcome-strip span {
  color: #124b91;
}
#dashboardScreen .welcome-strip {
  border-color: #d7e7fb;
  background: linear-gradient(105deg, #ffffff, #f1f7ff);
}
#dashboardScreen .module-card.dashboard-module-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 78px;
  border: 1px solid #d7e4f3;
  border-radius: 13px;
  background: #ffffff;
  color: #104b91;
  box-shadow: 0 4px 14px #123e8610;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
#dashboardScreen .module-card.dashboard-module-button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -2px;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(from var(--button-angle, 0deg), transparent 0deg 285deg, #1769d2 315deg, #70b7ff 338deg, transparent 360deg);
  opacity: 0;
  animation: dashboard-button-border-spin 2.4s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
#dashboardScreen .module-card.dashboard-module-button:hover::before,
#dashboardScreen .module-card.dashboard-module-button:focus-visible::before {
  opacity: 1;
}
#dashboardScreen .module-card.dashboard-module-button:hover {
  background: #ffffff;
  border-color: #b8d4f5;
  color: #073f85;
  transform: translateY(-2px);
  box-shadow: 0 9px 22px #1257a51c;
}
#dashboardScreen .module-card.dashboard-module-button::after {
  content: none;
}
#dashboardScreen .module-card.dashboard-module-button .module-icon {
  color: #1769d2;
}
#dashboardScreen .module-card.dashboard-module-button strong {
  color: #104b91;
}
#dashboardScreen .module-card.dashboard-module-button:hover strong {
  color: #073f85;
}
#dashboardScreen .admin-control-panel,
#dashboardScreen .admin-metric,
#dashboardScreen .admin-shortcut {
  border-color: #d7e7fb;
}
#dashboardScreen .admin-control-heading h2,
#dashboardScreen .admin-metric strong,
#dashboardScreen .admin-shortcut strong {
  color: #124b91;
}
@keyframes dashboard-button-border-spin {
  to { --button-angle: 360deg; }
}
@property --button-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@media (prefers-reduced-motion: reduce) {
  #dashboardScreen .module-card.dashboard-module-button::before { animation: none; }
  #dashboardScreen .module-card.dashboard-module-button { transition: none; }
}


/* White typography for the dashboard welcome heading */
#dashboardScreen .page-heading {
  padding: 22px 26px;
  border: 1px solid #1c5b9b;
  border-radius: 16px;
  background: linear-gradient(110deg, #0b2f56, #14518a 72%, #1b659f);
  box-shadow: 0 8px 22px #0b31551c;
}
#dashboardScreen .page-heading .eyebrow,
#dashboardScreen .page-heading h1,
#dashboardScreen .page-heading p {
  color: #ffffff !important;
}
#dashboardScreen .page-heading .eyebrow {
  letter-spacing: 1.5px;
}
#dashboardScreen .page-heading h1 {
  margin-top: 8px;
}
#dashboardScreen .page-heading p {
  opacity: .94;
  line-height: 1.8;
}
#dashboardScreen .page-heading .date-chip {
  border-color: #ffffff45;
  background: #ffffff16;
  color: #ffffff;
}
@media(max-width:600px) {
  #dashboardScreen .page-heading {
    padding: 18px;
  }
}


/* Dashboard title: remove the generic heading and emphasize the office system name */
#dashboardScreen .page-heading h1:empty { display: none; }
#dashboardScreen .page-heading p {
  margin-top: 10px;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.75;
  white-space: pre-line;
  letter-spacing: .1px;
}
@media(max-width:600px) {
  #dashboardScreen .page-heading p { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.45; font-weight: 750; letter-spacing: .1px; white-space: pre-line; }
}


/* Administration overview lives inside the restored sidebar */
#dashboardScreen .sidebar .admin-control-panel {
  display: block;
  margin: 18px 0 10px;
  padding: 14px 11px;
  border: 1px solid #ffffff24;
  border-radius: 13px;
  background: linear-gradient(145deg, #123b64, #0b2948);
  color: #eaf4ff;
  box-shadow: 0 7px 18px #06182b35;
}
#dashboardScreen .sidebar .admin-control-panel.hidden { display: none !important; }
#dashboardScreen .sidebar .admin-control-heading {
  display: block;
  margin-bottom: 12px;
}
#dashboardScreen .sidebar .admin-control-heading .eyebrow {
  color: #8fc5ff;
  font-size: 9px;
  letter-spacing: 1.2px;
}
#dashboardScreen .sidebar .admin-control-heading h2 {
  margin: 6px 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
}
#dashboardScreen .sidebar .admin-control-heading p {
  margin: 0 0 10px;
  color: #c1d7ec;
  font-size: 10px;
  line-height: 1.6;
}
#dashboardScreen .sidebar .admin-access-label {
  display: inline-flex;
  color: #d7eaff;
  font-size: 9px;
}
#dashboardScreen .sidebar .admin-overview-status {
  margin-bottom: 9px;
  color: #a9d4ff;
  font-size: 9px;
  line-height: 1.5;
}
#dashboardScreen .sidebar .admin-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
#dashboardScreen .sidebar .admin-metric {
  padding: 8px;
  border: 1px solid #ffffff1b;
  border-radius: 9px;
  background: #ffffff0c;
}
#dashboardScreen .sidebar .admin-metric span { color: #c1d7ec; font-size: 9px; }
#dashboardScreen .sidebar .admin-metric strong { color: #fff; font-size: 17px; }
#dashboardScreen .sidebar .admin-shortcuts {
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 10px;
}
#dashboardScreen .sidebar .admin-shortcut {
  padding: 8px;
  border-color: #ffffff20;
  background: #ffffff0b;
  color: #eef6ff;
}
#dashboardScreen .sidebar .admin-shortcut:hover {
  border-color: #66adf4;
  background: #ffffff16;
}
@media (max-width: 900px) {
  #dashboardScreen.dashboard { grid-template-columns: 285px minmax(0, 1fr); }
}
@media (max-width: 680px) {
  #dashboardScreen.dashboard { grid-template-columns: 1fr; }
  #dashboardScreen > .sidebar { min-height: auto; }
  #dashboardScreen .sidebar .side-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #dashboardScreen .sidebar .admin-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #dashboardScreen .sidebar .logout-button { margin-top: 14px; }
}


/* Keep module access on the main dashboard cards; remove duplicate sidebar module links */
#dashboardScreen .sidebar .side-nav {
  display: none !important;
}


/* Administration panel: larger, clearer typography and stronger contrast */
#dashboardScreen .sidebar .admin-control-panel {
  padding: 19px 15px;
  border: 1px solid #78b8f0;
  border-radius: 17px;
  background: linear-gradient(155deg, #0b3158 0%, #124b7d 55%, #0a2949 100%);
  box-shadow: 0 10px 26px #03182c55, inset 0 1px 0 #ffffff18;
}
#dashboardScreen .sidebar .admin-control-heading { margin-bottom: 16px; }
#dashboardScreen .sidebar .admin-control-heading .eyebrow {
  color: #9ed0ff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 1.5px;
}
#dashboardScreen .sidebar .admin-control-heading h2 {
  margin: 9px 0 8px;
  color: #fff;
  font-size: 21px;
  font-weight: 850;
  line-height: 1.4;
  text-shadow: 0 2px 8px #00172d55;
}
#dashboardScreen .sidebar .admin-control-heading p {
  margin: 0 0 14px;
  color: #e0efff;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.7;
}
#dashboardScreen .sidebar .admin-access-label {
  padding: 6px 10px;
  border: 1px solid #79c6a7;
  border-radius: 999px;
  background: #0d684f;
  color: #eafff5;
  font-size: 12px;
  font-weight: 800;
}
#dashboardScreen .sidebar .admin-overview-status {
  margin: 12px 0 14px;
  color: #baf5d7;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
}
#dashboardScreen .sidebar .admin-metrics { gap: 9px; }
#dashboardScreen .sidebar .admin-metric {
  min-height: 66px;
  padding: 11px 12px;
  border: 1px solid #ffffff38;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff20, #ffffff0d);
  box-shadow: inset 0 1px 0 #ffffff14;
}
#dashboardScreen .sidebar .admin-metric span {
  color: #d6eaff;
  font-size: 13px;
  font-weight: 700;
}
#dashboardScreen .sidebar .admin-metric strong {
  color: #fff;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 7px #00172d66;
}
#dashboardScreen .sidebar .admin-shortcuts {
  gap: 9px;
  margin-top: 14px;
}
#dashboardScreen .sidebar .admin-shortcut {
  min-height: 66px;
  padding: 11px 10px;
  gap: 10px;
  border: 1px solid #8fc8f4;
  border-radius: 12px;
  background: linear-gradient(110deg, #f4f9ff, #e4f1ff);
  color: #103b65;
  box-shadow: 0 4px 12px #001b3525;
}
#dashboardScreen .sidebar .admin-shortcut:hover {
  border-color: #ffd166;
  background: #fff8e7;
  color: #123b64;
  transform: translateY(-2px);
}
#dashboardScreen .sidebar .admin-shortcut-icon {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-radius: 12px;
  background: #d5eaff;
  color: #0759a5;
  font-size: 22px;
}
#dashboardScreen .sidebar .admin-shortcut strong {
  color: #103b65;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.45;
}
#dashboardScreen .sidebar .admin-shortcut small {
  margin-top: 4px;
  color: #456783;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
#dashboardScreen .sidebar .admin-shortcut-arrow {
  color: #1266ad;
  font-size: 25px;
}
@media (max-width: 680px) {
  #dashboardScreen .sidebar .admin-control-panel { padding: 17px 14px; }
  #dashboardScreen .sidebar .admin-control-heading h2 { font-size: 20px; }
  #dashboardScreen .sidebar .admin-metric strong { font-size: 23px; }
  #dashboardScreen .sidebar .admin-shortcuts { grid-template-columns: 1fr; }
}


/* Final full-viewport module layout: override the dashboard sidebar's forced display */
body.standalone-module #dashboardScreen.dashboard {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100% !important;
  min-height: 100vh;
  margin: 0;
}
body.standalone-module #dashboardScreen > .sidebar {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
body.standalone-module #dashboardScreen > .workspace {
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh;
  margin: 0 !important;
  padding: 18px clamp(14px, 2vw, 30px) 28px !important;
  border-radius: 0 !important;
}
body.standalone-module #dashboardScreen #moduleDetail {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 46px);
}
body.standalone-module #dashboardScreen #moduleDetailContent {
  width: 100%;
  max-width: none;
}
#dashboardScreen .page-heading p {
  display: inline-block;
  margin: 0;
  padding: 10px 18px;
  border-left: 5px solid #ffdc52;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, #ffffff20, #ffffff08);
  color: #fff;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 850;
  line-height: 1.4;
  letter-spacing: .2px;
  text-shadow: 0 2px 10px #001c4c55;
  white-space: pre-line;
}
@media (max-width: 700px) {
  #dashboardScreen .page-heading p {
    padding: 8px 12px;
    font-size: clamp(23px, 5vw, 29px);
  }
}


/* Front Office live date, clock and visitor totals in the left sidebar */
.front-office-stats {
  display: grid; gap: 10px; margin: 16px 2px 4px; padding: 14px 12px;
  border: 1px solid #ffffff24; border-radius: 13px; background: #ffffff0b;
}
.front-office-stat-date { color: #dce9f5; font-size: 11px; line-height: 1.7; font-weight: 700; }
.front-office-stat-clock {
  color: #f0ce8b; font-size: 25px; line-height: 1.2; font-weight: 850;
  letter-spacing: 1px; font-variant-numeric: tabular-nums; padding-bottom: 8px;
  border-bottom: 1px solid #ffffff20;
}
.front-office-stat-card {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px; border-radius: 9px; background: #ffffff10;
}
.front-office-stat-card span { color: #c7d8e8; font-size: 10px; line-height: 1.6; }
.front-office-stat-card strong {
  color: #ffffff; font-size: 24px; font-weight: 850; font-variant-numeric: tabular-nums;
}
.front-office-stat-status { color: #9eb6ca; font-size: 9px; line-height: 1.5; }


/* Front Office: three clear, equal-sized action cards fitted to the dashboard */
body.front-office-dashboard #dashboardScreen .module-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(12px, 1.5vw, 20px);
  align-items: stretch;
  margin-top: clamp(20px, 3vh, 30px);
}
body.front-office-dashboard #dashboardScreen .module-card.dashboard-module-button {
  min-height: clamp(165px, 23vh, 220px);
  padding: 22px 16px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 13px;
  text-align: center;
  border: 1px solid #c9ddf4;
  border-radius: 18px;
  background: linear-gradient(155deg, #ffffff 0%, #edf5ff 100%);
  box-shadow: 0 9px 24px #123e8612;
}
body.front-office-dashboard #dashboardScreen .module-card.dashboard-module-button .module-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(145deg, #e5f1ff, #cfe4ff);
  color: #075bb7;
  font-size: 31px;
}
body.front-office-dashboard #dashboardScreen .module-card.dashboard-module-button strong {
  color: #103f75;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.55;
}
body.front-office-dashboard #dashboardScreen .module-card.dashboard-module-button small {
  display: block;
  padding: 0;
  color: #59738f;
  font-size: 12px;
  line-height: 1.65;
}
body.front-office-dashboard #dashboardScreen .module-card.dashboard-module-button:hover {
  border-color: #78afe9;
  background: linear-gradient(155deg, #ffffff, #e5f2ff);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px #1257a51c;
}
body.front-office-dashboard #dashboardScreen .dashboard-welcome-footer {
  margin-top: clamp(18px, 3vh, 30px);
}
@media (max-width: 900px) {
  body.front-office-dashboard #dashboardScreen .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 600px) {
  body.front-office-dashboard #dashboardScreen .module-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
    margin-top: 14px;
  }
  body.front-office-dashboard #dashboardScreen .module-card.dashboard-module-button {
    min-height: 100px;
    padding: 14px 16px;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
  }
  body.front-office-dashboard #dashboardScreen .module-card.dashboard-module-button .module-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    font-size: 25px;
  }
  body.front-office-dashboard #dashboardScreen .module-card.dashboard-module-button strong {
    font-size: 15px;
  }
  body.front-office-dashboard #dashboardScreen .module-card.dashboard-module-button small {
    font-size: 11px;
  }
}


/* Office address and senior officer contact details at the bottom of the dashboard sidebar */
#dashboardScreen > .sidebar .sidebar-office-contacts {
  display: grid;
  gap: 8px;
  margin: auto 0 14px;
  padding: 14px 12px;
  border: 1px solid #ffffff35;
  border-radius: 14px;
  background: linear-gradient(155deg, #082c50, #0b3d6b 58%, #092b4d);
  color: #eef6ff;
  box-shadow: 0 8px 20px #03182c35;
}
#dashboardScreen > .sidebar .sidebar-contact-heading {
  color: #ffdf83;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.5;
}
#dashboardScreen > .sidebar .sidebar-contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3px 8px;
  color: #c9dced;
  font-size: 11px;
  line-height: 1.6;
}
#dashboardScreen > .sidebar .sidebar-contact-row a,
#dashboardScreen > .sidebar .sidebar-officer-contact a {
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}
#dashboardScreen > .sidebar .sidebar-contact-row a:hover,
#dashboardScreen > .sidebar .sidebar-officer-contact a:hover {
  color: #ffdf83;
  text-decoration: underline;
}
#dashboardScreen > .sidebar .sidebar-contact-divider {
  height: 1px;
  margin: 3px 0;
  background: #ffffff30;
}
#dashboardScreen > .sidebar .sidebar-officer-contact {
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  border: 1px solid #ffffff1c;
  border-radius: 9px;
  background: #ffffff0c;
}
#dashboardScreen > .sidebar .sidebar-officer-contact strong {
  color: #ffffff;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.55;
}
#dashboardScreen > .sidebar .sidebar-officer-contact small {
  color: #b9cee2;
  font-size: 9px;
  line-height: 1.45;
}
#dashboardScreen > .sidebar .sidebar-officer-contact a {
  width: fit-content;
  color: #ffdf83;
  font-size: 12px;
  letter-spacing: .25px;
}
@media (max-width: 680px) {
  #dashboardScreen > .sidebar .sidebar-office-contacts { margin: 12px 0; }
}

@media (max-width: 680px) {
  /* The mobile sidebar becomes a compact bottom navigation bar. */
  #dashboardScreen > .sidebar .sidebar-office-contacts { display: none; }
}
