:root {
  --red: #8e0710;
  --red-dark: #5c050a;
  --gold: #e9ad25;
  --ink: #211a1c;
  --muted: #655b5d;
  --soft: #f8f5f3;
  --glass-white: rgba(255, 255, 255, 0.28);
  --glass-border: rgba(255, 255, 255, 0.52);
}

* {
  box-sizing: border-box;
}
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
body {
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  background: var(--soft);
}
a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}
a:hover {
  color: var(--red-dark);
  text-decoration: underline;
}
.auth-page {
  min-height: calc(100vh - 48px);
  display: flex;
  align-items: center;
  background-image: url("../images/barangay.jpg");
  background-position: center;
  background-size: cover;
  position: relative;
}
.auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(55, 4, 11, 0.68),
    rgba(92, 16, 26, 0.35)
  );
}
.auth-page::after {
  content: "";
  position: absolute;
  width: 28rem;
  height: 28rem;
  right: 8%;
  top: 8%;
  border-radius: 50%;
  background: rgba(255, 183, 132, 0.16);
  filter: blur(8px);
}
.login-page,
.registration-page {
  background-image: url("../images/barangay.jpg");
}
.auth-page > .container {
  position: relative;
  z-index: 1;
}
.auth-shell {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(320px, 1.1fr);
  gap: 1rem;
  max-width: 980px;
  margin: auto;
}
.brand-panel {
  color: white;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  background: linear-gradient(
    145deg,
    rgba(110, 15, 25, 0.48),
    rgba(35, 5, 12, 0.35)
  );
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  box-shadow:
    0 24px 70px rgba(24, 0, 8, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.registration-brand {
  background: linear-gradient(
    145deg,
    rgba(110, 15, 25, 0.5),
    rgba(35, 5, 12, 0.38)
  );
}
.brand-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 1rem;
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  margin-bottom: 0.7rem;
}
.brand-panel h1 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
}
.brand-copy {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}
.brand-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  font-size: 0.8rem;
}
.brand-features span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.brand-features i {
  color: var(--gold);
  font-size: 1rem;
}
.steps-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}
.steps-list span {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.steps-list b {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  width: 28px;
  height: 28px;
}
.steps-list .active {
  color: white;
  font-weight: 700;
}
.steps-list .active b {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--red-dark);
}

.form-panel {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  box-shadow:
    0 24px 70px rgba(24, 0, 8, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  padding: clamp(1.5rem, 4vw, 3.25rem);
}

.form-heading {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.75rem;
}
.heading-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(142, 7, 16, 0.16);
  color: var(--red);
  font-size: 1.25rem;
}
.form-heading h2 {
  font-size: 1.4rem;
  margin: 0;
  font-weight: 800;
}
.form-heading p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.83rem;
}
.section-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.form-label {
  color: black;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.form-control {
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 0.7rem;
  padding: 0.72rem 0.85rem;
  font-size: 0.9rem;
  box-shadow: inset 0 1px 2px rgba(83, 29, 27, 0.06);
}
.form-control::placeholder {
  color: rgba(33, 26, 28, 0.52);
}
.form-control:focus {
  background: rgba(255, 255, 255, 0.65);
  border-color: var(--red);
  box-shadow: 0 0 0 0.2rem rgba(142, 7, 16, 0.12);
}
.btn-primary {
  background: var(--red);
  border-color: var(--red);
  border-radius: 0.55rem;
  padding: 0.72rem 1rem;
  font-weight: 700;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--red-dark);
  border-color: var(--red-dark);
}
.btn-outline-primary {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-check:checked + .btn-outline-primary {
  color: #fff;
  background: var(--red-dark);
  border-color: var(--red-dark);
  box-shadow: 0 0 0 0.2rem rgba(142, 7, 16, 0.12);
}
.btn-outline-secondary {
  color: #fff;
  border-color: #5f6672;
  background: #5f6672;
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active,
.btn-outline-secondary.active,
.btn-check:checked + .btn-outline-secondary {
  color: #fff;
  border-color: #454b55;
  background: #454b55;
  box-shadow: 0 0 0 0.2rem rgba(95, 102, 114, 0.16);
}
.btn-outline-danger {
  color: #fff;
  border-color: #b42318;
  background: #b42318;
}
.btn-outline-danger:hover,
.btn-outline-danger:focus,
.btn-outline-danger:active,
.btn-outline-danger.active,
.btn-check:checked + .btn-outline-danger {
  color: #fff;
  border-color: #8f1d15;
  background: #8f1d15;
  box-shadow: 0 0 0 0.2rem rgba(180, 35, 24, 0.14);
}
.btn-outline-light {
  color: #30343b;
  border-color: #dfe3e8;
  background: #f4f5f7;
}
.btn-outline-light:hover,
.btn-outline-light:focus,
.btn-outline-light:active,
.btn-outline-light.active,
.btn-check:checked + .btn-outline-light {
  color: #20242a;
  border-color: #cfd4da;
  background: #e3e6ea;
}
.btn-outline-success {
  color: #fff;
  border-color: #25835f;
  background: #25835f;
}
.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success:active,
.btn-outline-success.active,
.btn-check:checked + .btn-outline-success {
  color: #fff;
  border-color: #196646;
  background: #196646;
  box-shadow: 0 0 0 0.2rem rgba(37, 131, 95, 0.14);
}
.btn-outline-warning {
  color: #2f2617;
  border-color: #d99a2b;
  background: #d99a2b;
}
.btn-outline-warning:hover,
.btn-outline-warning:focus,
.btn-outline-warning:active,
.btn-outline-warning.active,
.btn-check:checked + .btn-outline-warning {
  color: #20190f;
  border-color: #be7f17;
  background: #be7f17;
  box-shadow: 0 0 0 0.2rem rgba(217, 154, 43, 0.16);
}
.btn-outline-info {
  color: #fff;
  border-color: #27799a;
  background: #27799a;
}
.btn-outline-info:hover,
.btn-outline-info:focus,
.btn-outline-info:active,
.btn-outline-info.active,
.btn-check:checked + .btn-outline-info {
  color: #fff;
  border-color: #1d5f79;
  background: #1d5f79;
  box-shadow: 0 0 0 0.2rem rgba(39, 121, 154, 0.14);
}
.btn-light {
  color: #30343b;
  border-color: #dfe3e8;
  background: #edf0f3;
}
.btn-light:hover,
.btn-light:focus,
.btn-light:active,
.btn-light.active {
  color: #20242a;
  border-color: #cbd1d7;
  background: #dfe3e8;
  box-shadow: 0 0 0 0.2rem rgba(95, 102, 114, 0.12);
}
.password-field {
  position: relative;
}
.password-field .form-control {
  padding-right: 3rem;
}
.password-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
}
.site-footer {
  min-height: 48px;
  display: flex;
  align-items: center;
  background: #fff;
  color: var(--muted);
  font-size: 0.75rem;
}
body.hide-site-footer > .site-footer {
  display: none;
}
.dashboard-page {
  min-height: calc(100vh - 48px);
}
.nav-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.welcome-card {
  background: linear-gradient(120deg, var(--red), #b32b2b);
  color: white;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border-radius: 18px;
}
.welcome-card .eyebrow {
  color: var(--gold);
}
.service-card-button {
  display: flex;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  vertical-align: top;
  appearance: none;
  -webkit-appearance: none;
}
.service-card-button:focus-visible {
  outline: 3px solid rgba(233, 173, 37, 0.75);
  outline-offset: 4px;
  border-radius: 14px;
}
.service-card {
  display: block;
  background: white;
  border-radius: 14px;
  padding: 1.5rem;
  height: 100%;
  box-shadow: 0 5px 20px rgba(52, 27, 20, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}
.service-card-button:hover .service-card {
  background: #fffaf5;
  box-shadow: 0 10px 26px rgba(52, 27, 20, 0.13);
  transform: translateY(-3px);
}
.service-card i {
  color: var(--red);
  font-size: 1.7rem;
}
.service-card h2 {
  font-size: 1rem;
  margin: 1rem 0 0.4rem;
}
.service-card p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

/* Resident dashboard */
.dashboard-page {
  min-height: 100vh;
  display: flex;
  color: white;
  background:
    linear-gradient(110deg, rgba(12, 8, 14, 0.82), rgba(71, 21, 29, 0.45)),
    url("../images/barangay.jpg") center / cover fixed;
}
.dashboard-page + .site-footer {
  display: none;
}
.dashboard-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  width: 238px;
  height: 100vh;
  flex: 0 0 238px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(8, 10, 14, 0.88);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.5rem 1.2rem;
  color: white;
  text-decoration: none;
}
.dashboard-brand:hover,
.dashboard-sidebar-footer:hover {
  color: white;
  text-decoration: none;
}
.dashboard-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.dashboard-brand span,
.dashboard-sidebar-footer span {
  display: grid;
  gap: 0.16rem;
}
.dashboard-brand strong,
.dashboard-sidebar-footer strong {
  font-size: 0.62rem;
  letter-spacing: 0.02em;
}
.dashboard-brand small,
.dashboard-sidebar-footer small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.55rem;
}
.dashboard-nav {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 1.1rem;
}
.dashboard-nav a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.55rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 500;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}
.dashboard-nav a i {
  width: 18px;
  text-align: center;
  font-size: 1.05rem;
}
.dashboard-nav a:hover,
.dashboard-nav a:focus-visible,
.dashboard-nav a.active {
  color: white;
  background: linear-gradient(90deg, #9d0b22, #760719);
  text-decoration: none;
  transform: translateX(3px);
}
.dashboard-nav-label {
  margin: 1.35rem 0.85rem 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}
.dashboard-sidebar-footer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto;
  padding: 1rem 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.dashboard-sidebar-footer img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.dashboard-content {
  min-width: 0;
  flex: 1;
  margin-left: 238px;
  display: flex;
  flex-direction: column;
  background: rgba(35, 15, 25, 0.16);
}
.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.3rem clamp(1.2rem, 3vw, 2.5rem);
}
.portal-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.portal-topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.portal-topbar-brand > span:last-child {
  display: grid;
  gap: 0.12rem;
}
.portal-topbar-brand strong {
  color: #172033;
  font-size: 0.95rem;
  font-weight: 700;
}
.portal-topbar-brand small {
  color: #64748b;
  font-size: 0.7rem;
}
.portal-topbar-icon {
  display: grid;
  flex: 0 0 2.45rem;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border-radius: 50%;
  background: #f8e7ea;
  color: var(--red);
  font-size: 1.05rem;
}
.portal-theme-toggle,
.adash-theme-toggle {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid #dfe3e8;
  border-radius: 50%;
  background: #fff;
  color: #4b5563;
  cursor: pointer;
}
.portal-theme-toggle:hover,
.portal-theme-toggle:focus-visible,
.adash-theme-toggle:hover,
.adash-theme-toggle:focus-visible {
  border-color: var(--red);
  color: var(--red);
  outline: none;
}
.dashboard-search {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: min(500px, 100%);
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.19);
  backdrop-filter: blur(12px);
}
.dashboard-search i {
  color: white;
}
.dashboard-search .resident-search-submit {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.dashboard-search .resident-search-submit i {
  color: inherit;
}
.dashboard-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  font-size: 0.72rem;
}
.dashboard-search input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}
.resident-search-main {
  min-height: 65vh;
}
.resident-search-page .resident-search-main {
  padding-top: 2rem;
}
.resident-search-message {
  margin: 0.5rem 0 1.25rem;
  color: rgba(255, 255, 255, 0.8);
}
.resident-search-results {
  display: grid;
  gap: 0.75rem;
  max-width: 860px;
}
.resident-search-result {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 0.9rem;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  transition:
    transform 0.2s,
    background 0.2s;
}
.resident-search-result:hover,
.resident-search-result:focus-visible {
  color: white;
  background: rgba(255, 255, 255, 0.18);
  text-decoration: none;
  transform: translateY(-2px);
}
.resident-search-result-icon {
  display: grid;
  flex: 0 0 2.8rem;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.15);
  font-size: 1.2rem;
}
.resident-search-result > span:nth-child(2) {
  display: grid;
  gap: 0.2rem;
}
.resident-search-result small {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.68rem;
}
.resident-search-result strong {
  font-size: 0.95rem;
}
.resident-search-result > span:nth-child(2) > span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
}
.resident-search-result-arrow {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.7);
}
.dashboard-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.76rem;
}
.dashboard-user > span:not(.notification-dot):not(.user-avatar) {
  display: grid;
  gap: 0.1rem;
}
.dashboard-user small {
  color: rgba(255, 255, 255, 0.65);
}
.dashboard-user > i:first-child {
  font-size: 1rem;
}
.dashboard-user-trigger {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.2rem;
  border: 0;
  border-radius: 2rem;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.dashboard-user-trigger:hover,
.dashboard-user-trigger:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}
.dashboard-user-trigger > span:not(.user-avatar) {
  display: grid;
  gap: 0.1rem;
}
.dashboard-user-chevron {
  margin-left: 0.1rem;
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}
.dashboard-user-trigger[aria-expanded="true"] .dashboard-user-chevron {
  transform: rotate(180deg);
}
.dashboard-user-menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  z-index: 120;
  min-width: 190px;
  padding: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 0.8rem 2rem rgba(12, 8, 14, 0.2);
}
.dashboard-user-menu-heading {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0.7rem 0.65rem;
  color: #2e2528;
  font-size: 0.76rem;
  font-weight: 700;
}
.dashboard-user-menu-heading small {
  color: #857b80;
  font-size: 0.65rem;
  font-weight: 500;
}
.dashboard-user-menu a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.7rem;
  border-radius: 0.5rem;
  color: #40363a;
  font-size: 0.75rem;
  text-decoration: none;
}
.dashboard-user-menu a:hover,
.dashboard-user-menu a:focus-visible {
  background: #f8eef0;
  color: var(--red);
}
.dashboard-user-menu-logout {
  border-top: 1px solid #eee4e6;
  margin-top: 0.3rem;
  color: #a50b22 !important;
}
.admin-account-menu {
  position: relative;
}
.admin-account-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(233, 173, 37, 0.35);
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
}
.admin-account-avatar:hover,
.admin-account-avatar:focus-visible {
  box-shadow: 0 0 0 3px rgba(233, 173, 37, 0.25);
  outline: none;
}
.admin-account-menu .dropdown-menu {
  min-width: 190px;
}
.portal-account-menu {
  position: relative;
}
.portal-account-avatar {
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.portal-account-avatar:hover,
.portal-account-avatar:focus-visible {
  box-shadow: 0 0 0 3px rgba(142, 7, 16, 0.18);
  outline: none;
}
.portal-account-menu .dropdown-menu {
  min-width: 190px;
}
.notification-dot {
  position: absolute;
  top: -0.35rem;
  left: 0.55rem;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e21b35;
  font-size: 0.55rem;
}
.notification-menu {
  position: relative;
  margin-right: 0.35rem;
}
.notification-trigger {
  position: relative;
  display: block;
  cursor: pointer;
  list-style: none;
}
.notification-trigger::-webkit-details-marker {
  display: none;
}
.notification-panel {
  position: absolute;
  z-index: 20;
  top: 2rem;
  right: -0.5rem;
  width: min(20rem, 82vw);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  background: rgba(28, 14, 18, 0.96);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}
.notification-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.notification-panel-heading small,
.notification-item em {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
  font-style: normal;
}
.notification-item {
  display: flex;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.notification-item:hover {
  background: rgba(255, 255, 255, 0.1);
}
.notification-item > span:last-child {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.notification-item strong {
  font-size: 0.75rem;
}
.notification-item small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notification-icon {
  display: grid;
  flex: 0 0 2rem;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: #fff;
  background: rgba(226, 27, 53, 0.72);
}
.notification-empty {
  margin: 0;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
}
.staff-nav-badge {
  margin-left: auto;
  min-width: 1.25rem;
  padding: 0.12rem 0.35rem;
  border-radius: 99px;
  color: #fff;
  background: #d51b3b;
  font-size: 0.62rem;
  text-align: center;
}
.staff-main {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 3vw, 2.5rem) 3rem;
}
.staff-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  padding: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  background: linear-gradient(
    120deg,
    rgba(83, 7, 18, 0.9),
    rgba(25, 10, 20, 0.74)
  );
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}
.staff-hero.compact {
  margin-bottom: 1rem;
}
.staff-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}
.staff-hero p:not(.eyebrow) {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.72);
}
.staff-timer {
  display: grid;
  gap: 0.25rem;
  min-width: 13rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  text-align: right;
}
.staff-timer small,
.staff-timer span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.68rem;
}
.staff-timer strong {
  color: #fff;
  font-size: 1.8rem;
  letter-spacing: 0.08em;
}
.staff-stat-grid,
.staff-module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}
.staff-stat-card,
.staff-module-grid a,
.staff-panel {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0.8rem 1.8rem rgba(0, 0, 0, 0.16);
}
.staff-stat-card {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 1.2rem;
  color: var(--ink);
}
.staff-stat-card:hover,
.staff-module-grid a:hover {
  transform: translateY(-2px);
  text-decoration: none;
}
.staff-stat-card i {
  color: var(--red);
  font-size: 1.6rem;
}
.staff-stat-card span {
  display: grid;
  gap: 0.15rem;
  font-size: 0.8rem;
}
.staff-stat-card strong {
  font-size: 1.4rem;
}
.staff-panel {
  color: var(--ink);
  overflow: hidden;
}
.pickup-scanner-card {
  max-width: 46rem;
  margin: 1rem 0;
  padding: 1.2rem !important;
}
.pickup-qr-reader {
  width: min(100%, 30rem);
  min-height: 18rem;
  margin: 0 auto 1rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #f8fafc;
}
.pickup-qr-status {
  margin: 0 auto 1rem;
  color: #64748b;
  font-size: 0.75rem;
  text-align: center;
}
.pickup-qr-status.is-success {
  color: #166534;
}
.pickup-qr-status.is-error {
  color: #b42318;
}
.pickup-scan-next {
  display: block;
  margin: 0 auto 1rem;
}
.pickup-token-form {
  max-width: 34rem;
  margin: 0 auto;
}

/* Solid admin and staff portal surfaces. */
.staff-page {
  color: #252a33;
  background: #f4f5f7;
}
.staff-page .dashboard-content {
  background: #f4f5f7;
}
.staff-page .dashboard-sidebar {
  background: #17191e;
  border-right-color: #272b33;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.staff-page .dashboard-topbar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.staff-page .dashboard-search {
  border-color: #e1e5ea;
  background: #fff;
  color: #4b5563;
  backdrop-filter: none;
}
.staff-page .dashboard-search i {
  color: var(--red);
}
.staff-page .dashboard-user small {
  color: #6b7280;
}
.staff-page .staff-hero {
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 0.4rem 1.2rem rgba(31, 41, 55, 0.06);
}
.staff-page .staff-hero h1 {
  color: #20252d;
}
.staff-page .staff-hero p:not(.eyebrow) {
  color: #6b7280;
}
.staff-page .staff-timer {
  border-color: #e5e7eb;
  background: #f8fafc;
}
.staff-page .staff-timer small,
.staff-page .staff-timer span {
  color: #6b7280;
}
.staff-page .staff-timer strong {
  color: #20252d;
}
.staff-page .staff-stat-card,
.staff-page .staff-module-grid a,
.staff-page .staff-panel {
  border-color: #e5e7eb;
  background: #fff;
  box-shadow: 0 0.4rem 1.2rem rgba(31, 41, 55, 0.06);
}

.staff-page[data-theme="dark"] {
  color: #e5e7eb;
  background: #14171c;
}
.staff-page[data-theme="dark"] .dashboard-content {
  background: #14171c;
}
.staff-page[data-theme="dark"] .dashboard-topbar {
  background: #1d2128;
  border-bottom-color: #303641;
}
.staff-page[data-theme="dark"] .dashboard-search {
  border-color: #3a424e;
  background: #252b34;
  color: #e5e7eb;
}
.staff-page[data-theme="dark"] .portal-topbar-brand strong {
  color: #f3f4f6;
}
.staff-page[data-theme="dark"] .portal-topbar-brand small {
  color: #aab3c0;
}
.staff-page[data-theme="dark"] .portal-topbar-icon {
  background: #4a2630;
  color: #f1b52b;
}
.staff-page[data-theme="dark"] .dashboard-search i {
  color: #f1b52b;
}
.staff-page[data-theme="dark"] .dashboard-user small {
  color: #aab3c0;
}
.staff-page[data-theme="dark"] .portal-theme-toggle {
  border-color: #4a5361;
  background: #252b34;
  color: #f1b52b;
}
.staff-page[data-theme="dark"] .dropdown-menu,
.staff-page[data-theme="dark"] .dashboard-user-menu {
  border-color: #3a424e;
  background: #252b34;
}
.staff-page[data-theme="dark"] .dropdown-item,
.staff-page[data-theme="dark"] .dropdown-item-text,
.staff-page[data-theme="dark"] .dashboard-user-menu-heading {
  color: #e5e7eb;
}
.staff-page[data-theme="dark"] .dropdown-item:hover,
.staff-page[data-theme="dark"] .dropdown-item:focus,
.staff-page[data-theme="dark"] .dashboard-user-menu a:hover,
.staff-page[data-theme="dark"] .dashboard-user-menu a:focus-visible {
  background: #303844;
  color: #fff;
}
.staff-page[data-theme="dark"] .dropdown-divider,
.staff-page[data-theme="dark"] .dashboard-user-menu-logout {
  border-color: #3a424e;
}
.staff-page[data-theme="dark"] .portal-account-menu .dropdown-menu {
  border-color: #3a424e;
  background: #252b34;
}
.staff-page[data-theme="dark"] .staff-hero,
.staff-page[data-theme="dark"] .staff-stat-card,
.staff-page[data-theme="dark"] .staff-module-grid a,
.staff-page[data-theme="dark"] .staff-panel {
  border-color: #303641;
  background: #1d2128;
  color: #e5e7eb;
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.2);
}
.staff-page[data-theme="dark"] .staff-hero h1,
.staff-page[data-theme="dark"] .staff-panel h1,
.staff-page[data-theme="dark"] .staff-panel h2,
.staff-page[data-theme="dark"] .staff-panel h3 {
  color: #f3f4f6;
}
.staff-page[data-theme="dark"] .staff-hero p:not(.eyebrow),
.staff-page[data-theme="dark"] .staff-panel p,
.staff-page[data-theme="dark"] .staff-panel small {
  color: #aab3c0;
}
.staff-page[data-theme="dark"] .staff-panel-heading {
  border-bottom-color: #303641;
}
.staff-page[data-theme="dark"] .staff-timer {
  border-color: #3a424e;
  background: #252b34;
}
.staff-page[data-theme="dark"] .staff-timer small,
.staff-page[data-theme="dark"] .staff-timer span {
  color: #aab3c0;
}
.staff-page[data-theme="dark"] .staff-timer strong {
  color: #f3f4f6;
}
.staff-page[data-theme="dark"] .form-control,
.staff-page[data-theme="dark"] .form-select,
.staff-page[data-theme="dark"] input,
.staff-page[data-theme="dark"] textarea,
.staff-page[data-theme="dark"] select {
  border-color: #3a424e;
  background: #252b34;
  color: #f3f4f6;
}
.staff-panel-heading {
  display: flex;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid #eee;
}
.staff-panel-heading h2 {
  margin: 0;
  font-size: 1.2rem;
}
.staff-panel-heading > span {
  color: var(--muted);
  font-size: 0.75rem;
}
.staff-module-grid {
  padding: 1.2rem;
  margin: 0;
}
.staff-module-grid a {
  display: grid;
  gap: 0.45rem;
  padding: 1.1rem;
  color: var(--ink);
}
.staff-module-grid i {
  color: var(--red);
  font-size: 1.5rem;
}
.staff-module-grid small {
  color: var(--muted);
  font-weight: 400;
}
.staff-request-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21rem;
  gap: 1rem;
  align-items: start;
}
.staff-tabs {
  display: flex;
  gap: 0.4rem;
  padding: 1rem 1rem 0;
}
.staff-tabs a {
  padding: 0.55rem 0.8rem;
  border-radius: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
}
.staff-tabs a.active {
  color: #fff;
  background: var(--red);
}
.staff-table {
  width: 100%;
  font-size: 0.75rem;
}
.staff-table th,
.staff-table td {
  padding: 0.8rem;
  border-bottom: 1px solid #eee;
  text-align: left;
  white-space: nowrap;
}
.staff-table th {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}
.staff-status,
.verification-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 99px;
  color: #7a4d00;
  background: #fff0c7;
  font-size: 0.68rem;
}
.verification-badge {
  color: #146c43;
  background: #d1f0df;
}
.staff-detail {
  padding: 1rem;
  position: sticky;
  top: 1rem;
}
.staff-detail-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.staff-detail-heading h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
}
.staff-detail details {
  padding: 0.7rem 0;
  border-top: 1px solid #eee;
}
.staff-detail summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.78rem;
}
.staff-detail p {
  margin: 0.45rem 0;
  color: var(--muted);
  font-size: 0.75rem;
}
.staff-status.staff-status-pending {
  color: #765300;
  background: #fff0c2;
}
.staff-status.staff-status-progress {
  color: #075985;
  background: #d9f0ff;
}
.staff-status.staff-status-complete {
  color: #146c43;
  background: #d1f0df;
}
.staff-status.staff-status-rejected {
  color: #a12632;
  background: #fce0e2;
}
.staff-status.staff-status-inactive,
.staff-status.staff-status-unknown {
  color: #505965;
  background: #e9edf1;
}
@media (max-width: 900px) {
  .staff-stat-grid,
  .staff-module-grid {
    grid-template-columns: 1fr;
  }
  .staff-request-layout {
    grid-template-columns: 1fr;
  }
  .staff-detail {
    position: static;
  }
  .staff-hero {
    align-items: stretch;
    flex-direction: column;
  }
  .staff-timer {
    text-align: left;
  }
}
.user-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.dashboard-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.7rem clamp(1.2rem, 2.8vw, 2.8rem) 1.5rem;
}
.dashboard-welcome {
  position: relative;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.dashboard-welcome .eyebrow {
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.dashboard-welcome h1 {
  margin: 0;
  font-size: clamp(1.65rem, 2.7vw, 2.2rem);
}
.dashboard-welcome p {
  margin: 0.15rem 0;
  font-size: 0.95rem;
  font-weight: 600;
}
.dashboard-welcome small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
}
.dashboard-tagline {
  position: absolute;
  right: 1rem;
  top: 0.4rem;
  max-width: 235px;
  color: rgba(255, 255, 255, 0.88);
  font-family: Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.25;
  text-align: center;
  transform: rotate(-8deg);
}
.dashboard-section-heading,
.dashboard-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.dashboard-section-heading {
  margin-bottom: 0.75rem;
}
.dashboard-section-heading h2,
.dashboard-panel-heading h2 {
  color: white;
  margin: 0;
  font-size: 1rem;
}
.dashboard-section-heading a,
.dashboard-panel-heading a {
  color: white;
  font-size: 0.7rem;
}
.dashboard-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}
.dashboard-service-card,
.dashboard-panel {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(104, 75, 77, 0.42);
  box-shadow:
    0 12px 30px rgba(14, 3, 10, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.dashboard-service-card {
  display: flex;
  flex-direction: column;
  min-height: 172px;
  padding: 1.05rem;
  border-radius: 0.75rem;
  color: white;
  text-decoration: none;
  transition:
    transform 0.2s,
    background 0.2s,
    border-color 0.2s;
}
.dashboard-service-card:hover,
.dashboard-service-card:focus-visible {
  color: white;
  text-decoration: none;
  transform: translateY(-5px);
  background: rgba(151, 70, 75, 0.56);
  border-color: rgba(255, 255, 255, 0.55);
}
.dashboard-service-card > i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #bc1c36, #780719);
  font-size: 1.25rem;
}
.dashboard-service-card h3 {
  margin: 0.7rem 0 0.25rem;
  font-size: 0.9rem;
}
.dashboard-service-card p {
  min-height: 2.2rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.65rem;
  line-height: 1.4;
}
.dashboard-service-card > span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding: 0.42rem 0.7rem;
  border-radius: 1rem;
  background: linear-gradient(90deg, #aa0e29, #7e071a);
  font-size: 0.6rem;
}
.dashboard-lower-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.8fr;
  gap: 0.8rem;
  margin-top: 0.8rem;
}
.dashboard-panel {
  border-radius: 0.75rem;
  padding: 0.85rem;
}
.dashboard-panel-heading {
  margin-bottom: 0.55rem;
}
.dashboard-panel-heading h2 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
}
.announcement-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: #fff;
  font-size: 0.67rem;
}
.announcement-item strong {
  color: #fff;
  font-weight: 700;
}
.announcement-item:hover {
  color: white;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}
.announcement-item:focus-visible {
  color: #fff;
  outline: 2px solid #ffd978;
  outline-offset: 2px;
}
.announcement-item > i:first-child {
  color: #ffbfca;
  font-size: 1.2rem;
}
.announcement-item span {
  display: grid;
  gap: 0.18rem;
  flex: 1;
}
.announcement-item small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.58rem;
}
.announcement-item > i:last-child {
  color: rgba(255, 255, 255, 0.75);
}
.announcement-dashboard-empty {
  margin: 1rem 0.35rem 0.4rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.65rem;
}
.ai-chat-launcher {
  position: fixed;
  right: 1.4rem;
  bottom: 5.4rem;
  z-index: 1001;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: linear-gradient(135deg, #bc1c36, #780719);
  color: white;
  box-shadow:
    0 10px 25px rgba(45, 0, 12, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  font-size: 1.35rem;
  cursor: pointer;
  pointer-events: auto;
}
.ai-chat-launcher:hover,
.ai-chat-launcher:focus-visible {
  transform: translateY(-3px);
  color: white;
  box-shadow:
    0 14px 30px rgba(45, 0, 12, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.ai-chat-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  background: rgba(4, 2, 7, 0.42);
  cursor: pointer;
}
.ai-chat-backdrop.is-open {
  display: block;
}
.ai-chat-widget {
  position: fixed;
  right: 1.4rem;
  bottom: 5.4rem;
  z-index: 1000;
  display: none;
  flex-direction: column;
  width: min(360px, calc(100vw - 2rem));
  height: min(540px, calc(100vh - 8rem));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 1rem;
  background: rgba(35, 16, 25, 0.96);
  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  pointer-events: auto;
}
.ai-chat-widget.is-open {
  display: flex;
}
.ai-chat-widget > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  background: linear-gradient(120deg, #9d0b22, #5c0718);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
}
.ai-chat-widget > header span {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.ai-chat-widget > header i {
  color: var(--gold);
}
.ai-chat-widget > header button {
  border: 0;
  background: transparent;
  color: white;
  font-size: 1.4rem;
  line-height: 1;
}
.ai-chat-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.6rem;
  overflow-y: auto;
  padding: 1rem 0.75rem;
}
.ai-chat-message {
  max-width: 84%;
  padding: 0.65rem 0.75rem;
  border-radius: 0.85rem;
  font-size: 0.68rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ai-chat-bot {
  align-self: flex-start;
  border-top-left-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.93);
  color: #302c30;
}
.ai-chat-user {
  align-self: flex-end;
  border-top-right-radius: 0.25rem;
  background: #a40b2c;
  color: white;
}
.ai-chat-error {
  background: #ffe4e7;
  color: #8e0710;
}
.ai-chat-form {
  display: flex;
  gap: 0.45rem;
  padding: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.22);
}
.ai-chat-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  outline: 0;
  padding: 0.65rem 0.8rem;
  font-size: 0.68rem;
}
.ai-chat-form input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}
.ai-chat-form button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: white;
}
@media (max-width: 640px) {
  .ai-chat-launcher {
    right: 1rem;
    bottom: 4.8rem;
  }
  .ai-chat-widget {
    right: 0.5rem;
    bottom: 4.8rem;
    width: calc(100vw - 1rem);
    height: calc(100vh - 6rem);
  }
}
body.dark-mode .resident-contact-page,
body.dark-mode .resident-contact-page .dashboard-content {
  background: #111827;
  color: #e5e7eb;
}
body.dark-mode .resident-contact-page .dashboard-topbar,
body.dark-mode .resident-contact-card,
body.dark-mode .resident-official-group,
body.dark-mode .resident-developer-group,
body.dark-mode .resident-official-member,
body.dark-mode .resident-developer-card {
  background: #1f2937;
  border-color: #374151;
}
body.dark-mode .contact-header-user strong,
body.dark-mode .resident-contact-heading h1,
body.dark-mode .resident-contact-detail strong,
body.dark-mode .resident-officials-heading h2,
body.dark-mode .resident-official-featured > strong,
body.dark-mode .resident-official-member > strong,
body.dark-mode .resident-developer-card strong {
  color: #f8fafc;
}
body.dark-mode .contact-header-user small,
body.dark-mode .resident-contact-heading > p:last-child,
body.dark-mode .resident-contact-detail em,
body.dark-mode .resident-officials-heading > p:last-child,
body.dark-mode .resident-official-tagline,
body.dark-mode .resident-developer-group > p,
body.dark-mode .resident-official-member > span,
body.dark-mode .resident-developer-card span {
  color: #cbd5e1;
}
body.dark-mode .resident-official-featured {
  background: #111827;
  border-color: #374151;
}

/* Use hover underlines instead of directional link arrows. */
a:hover {
  text-decoration: underline;
}
.dashboard-brand:hover,
.dashboard-nav a:hover,
.dashboard-footer-social a:hover,
.dashboard-user-menu a:hover,
.notification-item:hover,
.dashboard-service-card:hover,
.announcement-item:hover,
.resident-contact-card:hover,
.resident-search-result:hover {
  text-decoration: none;
}
.dashboard-service-card:hover > span,
.announcement-item:hover strong,
.resident-contact-card:hover .resident-contact-detail strong,
.resident-search-result:hover strong {
  text-decoration: underline;
}

.appointment-calendar-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 0.65rem;
}
.appointment-calendar-toolbar h3 {
  margin: 0 auto 0 0;
  color: var(--request-text);
  font-size: 0.9rem;
  font-weight: 800;
}
.calendar-nav {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--request-border);
  border-radius: 0.45rem;
  color: var(--request-text);
}
.calendar-nav:hover {
  border-color: var(--red);
  background: #fff4f5;
  color: var(--red);
  text-decoration: none;
}
.calendar-today-link {
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--request-border);
  border-radius: 0.45rem;
  color: var(--red);
  font-size: 0.62rem;
}
.calendar-today-link:hover {
  border-color: var(--red);
  background: #fff4f5;
  text-decoration: none;
}
.appointment-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}
.calendar-weekday {
  padding: 0.35rem 0.15rem;
  color: var(--request-muted);
  font-size: 0.58rem;
  font-weight: 700;
  text-align: center;
}
.calendar-day {
  display: flex;
  min-height: 53px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.4rem;
  border: 1px solid var(--request-border);
  border-radius: 0.45rem;
  background: var(--request-card);
  color: var(--request-text);
}
.calendar-day:hover {
  border-color: var(--red);
  background: #fff8f8;
  color: var(--request-text);
  text-decoration: none;
}
.calendar-day.outside-month {
  opacity: 0.46;
}
.calendar-day.selected {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
  background: #fff6f6;
}
.calendar-day-number {
  font-size: 0.65rem;
  font-weight: 700;
}
.calendar-event-count {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.3rem;
  border-radius: 1rem;
  background: #f8e2e4;
  color: var(--red);
  font-size: 0.48rem;
  font-weight: 700;
  white-space: nowrap;
}
.calendar-event-count i {
  font-size: 0.35rem;
}
.calendar-day-schedule {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--request-border);
}
.calendar-day-schedule h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  color: var(--request-text);
  font-size: 0.72rem;
}
.calendar-day-schedule h3 span {
  color: var(--request-muted);
  font-size: 0.55rem;
  font-weight: 500;
}
.calendar-day-schedule .empty-requests {
  padding: 0.45rem;
}
.appointment-details-trigger,
.appointment-history-details {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid #ead0d5;
  border-radius: 0.4rem;
  background: var(--request-card);
  color: var(--red);
  font: inherit;
  font-size: 0.56rem;
  white-space: nowrap;
}
.appointment-details-trigger:hover,
.appointment-history-details:hover {
  border-color: var(--red);
  background: #fff4f5;
}
.appointment-history-details {
  align-self: flex-start;
  margin-left: auto;
}
.appointment-details-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}
.appointment-details-list div {
  display: grid;
  grid-template-columns: minmax(100px, 0.4fr) minmax(0, 1fr);
  gap: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--request-border);
}
.appointment-details-list dt {
  color: var(--request-muted);
  font-size: 0.7rem;
}
.appointment-details-list dd {
  margin: 0;
  color: var(--request-text);
  font-size: 0.75rem;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.appointment-cancel-form {
  margin-top: 1rem;
}
.appointment-cancel-form[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .appointment-calendar {
    gap: 0.2rem;
  }
  .calendar-day {
    min-height: 45px;
    padding: 0.25rem;
  }
  .calendar-event-count {
    font-size: 0.4rem;
  }
  .calendar-weekday {
    font-size: 0.5rem;
  }
  .appointment-details-list div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}
.ai-assistant-page {
  background:
    linear-gradient(110deg, rgba(12, 8, 14, 0.82), rgba(71, 21, 29, 0.45)),
    url("../images/barangay.jpg") center / cover fixed;
}
.ai-assistant-main {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.3rem clamp(1.2rem, 3vw, 2.8rem) 1.5rem;
}
.ai-assistant-heading {
  margin-bottom: 1rem;
  color: white;
}
.ai-assistant-heading .eyebrow {
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.ai-assistant-heading h1 {
  margin: 0;
  font-size: 1.8rem;
}
.ai-assistant-heading h1 i {
  color: var(--gold);
}
.ai-assistant-heading p:last-child {
  margin: 0.3rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
}
.ai-assistant-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1rem;
  align-items: start;
}
.ai-assistant-card,
.ai-assistant-info,
.ai-response-card {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.8rem;
  background: rgba(75, 32, 43, 0.66);
  box-shadow:
    0 12px 30px rgba(14, 3, 10, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1rem;
  color: white;
}
.ai-page-chat-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0.8rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.7rem;
}
.ai-page-chat-hint i {
  color: var(--gold);
  font-size: 1rem;
}
.ai-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.ai-icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, #bc1c36, #780719);
  font-size: 1.1rem;
}
.ai-card-heading h2,
.ai-assistant-info h2 {
  margin: 0;
  color: white;
  font-size: 0.95rem;
}
.ai-card-heading p {
  margin: 0.25rem 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.65rem;
  line-height: 1.45;
}
.ai-assistant-card .form-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.7rem;
}
.ai-input {
  margin-bottom: 0.8rem;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 0.72rem;
}
.ai-input:focus {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  border-color: rgba(255, 255, 255, 0.65);
}
.ai-input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}
.ai-assistant-card select option {
  color: var(--ink);
}
.ai-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ai-form-footer small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.58rem;
}
.ai-form-footer .btn {
  white-space: nowrap;
}
.ai-assistant-info {
  background: rgba(8, 8, 12, 0.62);
}
.ai-assistant-info h2 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ai-assistant-info h2 i {
  color: var(--gold);
}
.ai-assistant-info p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.66rem;
  line-height: 1.55;
}
.ai-assistant-info > span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.6rem;
}
.ai-assistant-info > span i {
  color: #5dd39e;
}
.ai-response-card {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}
.ai-response-card .ai-card-heading h2 {
  color: var(--ink);
}
.ai-response-card .ai-card-heading p {
  color: var(--muted);
}
.ai-response {
  padding: 0.85rem;
  border-radius: 0.55rem;
  background: #f7f5f4;
  color: #3f3c3e;
  font-size: 0.72rem;
  line-height: 1.65;
  white-space: normal;
}
@media (max-width: 900px) {
  .ai-assistant-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .ai-assistant-page {
    background-attachment: scroll;
  }
  .ai-form-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .ai-form-footer .btn {
    width: 100%;
  }
}
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.quick-grid a {
  display: grid;
  gap: 0.3rem;
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.55rem;
  background: rgba(145, 55, 64, 0.35);
  color: white;
  font-size: 0.58rem;
}
.quick-grid a:hover {
  background: rgba(180, 62, 72, 0.55);
  color: white;
  text-decoration: none;
}
.quick-grid i {
  font-size: 1rem;
}
.portal-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.portal-panel img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.portal-panel strong {
  font-size: 0.65rem;
  margin-top: 0.25rem;
}
.national-id-tracker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.25rem 0 0.85rem;
  padding: 0.75rem;
  border: 1px solid #e6e6ea;
  border-radius: 0.65rem;
  background: #fafafa;
}
.national-id-tracker-step {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 0;
  color: #777984;
}
.national-id-tracker-step > span {
  display: grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid #cfd2d8;
  border-radius: 50%;
  background: #fff;
  font-size: 0.72rem;
}
.national-id-tracker-step div {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.national-id-tracker-step strong {
  color: #777984;
  font-size: 0.68rem;
  line-height: 1.2;
}
.national-id-tracker-step small {
  color: #777984;
  font-size: 0.58rem;
  line-height: 1.35;
}
.national-id-tracker-step.is-complete > span {
  border-color: #147a52;
  background: #147a52;
  color: #fff;
}
.national-id-tracker-step.is-complete strong {
  color: #147a52;
}
.national-id-tracker-step.is-active > span {
  border-color: #9a6500;
  background: #fff2d6;
  color: #9a6500;
}
.national-id-tracker-step.is-active strong {
  color: #9a6500;
}
.national-id-review-time,
.national-id-review-reason {
  margin: -0.25rem 0 0.75rem;
  color: #666872;
  font-size: 0.58rem;
}
.national-id-review-reason {
  padding: 0.55rem 0.65rem;
  border-left: 3px solid #b42318;
  border-radius: 0.35rem;
  background: #fff4f4;
  color: #6d2930;
}
.national-id-not-submitted {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.25rem 0 0.85rem;
  padding: 0.65rem;
  border: 1px dashed #cfd2d8;
  border-radius: 0.65rem;
  color: #777984;
}
.national-id-not-submitted > i {
  color: var(--red);
  font-size: 1.15rem;
}
.national-id-not-submitted span {
  display: grid;
  gap: 0.12rem;
}
.national-id-not-submitted strong {
  font-size: 0.68rem;
}
.national-id-not-submitted small {
  font-size: 0.58rem;
}
@media (max-width: 640px) {
  .national-id-tracker {
    grid-template-columns: 1fr;
  }
}
.portal-panel > small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.52rem;
}
.portal-panel p {
  margin: 0.7rem 0;
  padding: 0.55rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.6rem;
}
.portal-panel h3 {
  align-self: flex-start;
  margin: 0.25rem 0 0.5rem;
  font-size: 0.72rem;
}
.portal-panel span {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 0.35rem;
  margin: 0.15rem 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.58rem;
  text-align: left;
}
.portal-panel span i {
  margin-right: 0.25rem;
  color: white;
}
.portal-panel span b {
  color: white;
}
.dashboard-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 68px;
  padding: 0.8rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 7, 10, 0.72);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.62rem;
}
.dashboard-footer > span:first-child {
  color: white;
  font-size: 0.68rem;
}
.dashboard-footer > b {
  width: 1px;
  height: 15px;
  background: rgba(255, 255, 255, 0.35);
}
.dashboard-footer-contact,
.dashboard-footer-social a {
  color: white;
}
.dashboard-footer-contact {
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.4rem;
  font-size: 0.6rem;
}
.dashboard-footer-contact:hover,
.dashboard-footer-social a:hover {
  color: #ffd978;
}
.dashboard-footer-social {
  display: flex;
  gap: 0.75rem;
  margin-left: auto;
  color: white;
}
.dashboard-footer-social a {
  font-size: 0.9rem;
}
.dashboard-footer small {
  font-size: 0.52rem;
}
.dashboard-main + .dashboard-footer {
  margin-top: auto;
}
.resident-contact-main {
  max-width: 1000px;
}
.resident-contact-heading {
  margin: 0.35rem 0 1.2rem;
}
.resident-contact-heading h1 {
  margin: 0;
  color: white;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
}
.resident-contact-heading > p:last-child {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}
.resident-contact-heading .eyebrow {
  color: #ffd978;
}
.resident-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
.resident-contact-card {
  display: grid;
  grid-template-columns: 2.7rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  min-height: 125px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.85rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.08)
  );
  color: white;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
.resident-contact-card:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.23),
    rgba(255, 255, 255, 0.12)
  );
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}
.resident-contact-icon {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border-radius: 0.7rem;
  background: #1877f2;
  color: white;
  font-size: 1.2rem;
}
.resident-contact-icon.resident-contact-email {
  background: #91304f;
}
.resident-contact-detail {
  display: grid;
  min-width: 0;
  gap: 0.25rem;
}
.resident-contact-detail small {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.resident-contact-detail strong {
  overflow-wrap: anywhere;
  color: white;
  font-size: 0.82rem;
}
.resident-contact-detail em {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.62rem;
  font-style: normal;
  line-height: 1.45;
}
.resident-contact-arrow {
  align-self: start;
  color: rgba(255, 255, 255, 0.7);
}
.resident-officials-section {
  margin-top: 1.8rem;
}
.resident-officials-heading {
  margin-bottom: 0.8rem;
}
.resident-officials-heading .eyebrow,
.resident-developers .eyebrow {
  margin-bottom: 0.25rem;
  color: #ffd978;
  font-size: 0.58rem;
}
.resident-officials-heading h2,
.resident-developers h2 {
  margin: 0;
  color: white;
  font-size: 1.1rem;
  font-weight: 800;
}
.resident-officials-heading > p:last-child {
  margin: 0.25rem 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.67rem;
}
.resident-officials-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(
      190px,
      0.75fr
    );
  gap: 0.75rem;
  align-items: stretch;
}
.resident-official-group,
.resident-developer-group {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0.8rem;
  background: linear-gradient(
    145deg,
    rgba(99, 20, 36, 0.78),
    rgba(37, 13, 23, 0.82)
  );
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.resident-official-group > header,
.resident-developer-group > header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.resident-official-group > header > span,
.resident-developer-group > header > span {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1rem;
}
.resident-official-group h3,
.resident-developer-group h3 {
  margin: 0;
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
}
.resident-official-tagline {
  min-height: 2rem;
  margin: 0.45rem 0.7rem 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.52rem;
  line-height: 1.45;
}
.resident-official-featured {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  margin: 0.65rem;
  padding: 0.9rem 0.65rem;
  border: 1px solid rgba(255, 218, 124, 0.42);
  border-radius: 0.65rem;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.94),
    rgba(250, 229, 224, 0.9)
  );
  text-align: center;
}
.resident-official-photo-placeholder {
  display: grid;
  width: 4.2rem;
  height: 4.2rem;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #f8d8dc, #dcaab3);
  color: #773547;
  box-shadow:
    0 0 0 3px rgba(142, 7, 16, 0.12),
    0 5px 14px rgba(45, 0, 12, 0.18);
}
.resident-official-photo-placeholder i {
  font-size: 2.8rem;
}
.resident-official-featured > span {
  padding: 0.22rem 0.55rem;
  border-radius: 99px;
  background: #8e0710;
  color: white;
  font-size: 0.53rem;
  font-weight: 800;
}
.resident-official-featured > .resident-official-photo-placeholder {
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #f8d8dc, #dcaab3);
  color: #773547;
}
.resident-official-featured > strong {
  color: #241719;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}
.resident-official-member-heading {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.7rem 0.7rem 0.45rem;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 750;
}
.resident-official-member-heading i {
  color: #ffbdc7;
}
.resident-official-members {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0 0.6rem 0.65rem;
}
.resident-official-member {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.22rem;
  min-width: 0;
  min-height: 100px;
  padding: 0.45rem 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.09);
  text-align: center;
}
.resident-official-member-photo {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: linear-gradient(145deg, #f6e2df, #d7b6ac);
  color: #775748;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}
.resident-official-member-photo i {
  font-size: 1.8rem;
}
.resident-official-member > strong {
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.resident-official-member > span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.47rem;
}
.resident-developer-group > p {
  margin: 0.55rem 0.7rem 0.35rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.53rem;
  line-height: 1.45;
}
.resident-developer-cards {
  display: grid;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem 0.65rem;
}
.resident-developer-card {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  min-width: 0;
  padding: 0.65rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}
.resident-developer-photo {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: linear-gradient(145deg, #f6e2df, #d7b6ac);
  color: #775748;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.2);
}
.resident-developer-photo i {
  font-size: 2rem;
}
.resident-developer-card strong {
  color: white;
  font-size: 0.59rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.resident-developer-card span {
  color: #ffda7c;
  font-size: 0.49rem;
}
.resident-contact-note {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 1rem 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.63rem;
}
.resident-contact-note i {
  color: #ffd978;
}
.resident-contact-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  color: white;
  font-size: 0.67rem;
}
.resident-contact-back:hover {
  color: #ffd978;
}
.request-page-heading {
  margin-bottom: 1.1rem;
}
.request-alert {
  max-width: 100%;
  font-size: 0.8rem;
}
.request-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 0.8rem;
}
.request-form-panel,
.request-history-panel {
  min-width: 0;
}
.request-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.request-field-wide {
  grid-column: 1 / -1;
}
.request-form-panel .form-control {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}
.request-form-panel select.form-control option {
  color: var(--ink);
}
.request-form-panel .form-label {
  color: rgba(255, 255, 255, 0.85);
}
.request-history {
  display: grid;
  gap: 0.4rem;
}
.request-history-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}
.request-history-icon {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(170, 14, 41, 0.65);
  color: white;
}
.request-history-detail {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}
.request-history-detail strong {
  overflow-wrap: anywhere;
  font-size: 0.7rem;
}
.request-history-detail small,
.request-history-detail time {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.58rem;
}
.request-status {
  align-self: flex-start;
  padding: 0.28rem 0.45rem;
  border-radius: 0.4rem;
  background: rgba(233, 173, 37, 0.22);
  color: #ffd978;
  font-size: 0.55rem;
  white-space: nowrap;
}
.request-history-actions {
  display: grid;
  justify-items: end;
  gap: 0.3rem;
}
.request-track-link {
  padding: 0.25rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.35rem;
  color: white;
  font-size: 0.55rem;
}
.request-track-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  text-decoration: none;
}
.request-empty {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
}
.tracker-panel {
  max-width: 900px;
}
.tracker-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.tracker-header h2 {
  margin: 0;
  font-size: 1.2rem;
}
.tracker-header p:last-child {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
}
.tracker-status {
  font-size: 0.7rem;
}
.tracker-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  margin: 2rem 0;
}
.tracker-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.48);
  text-align: center;
  font-size: 0.65rem;
}
.tracker-step.is-complete {
  color: white;
}
.tracker-step-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.1rem;
}
.tracker-step.is-complete .tracker-step-icon {
  border-color: #e9ad25;
  background: linear-gradient(135deg, #bc1c36, #780719);
  color: #fff;
}
.tracker-line {
  position: absolute;
  top: 21px;
  left: calc(50% + 24px);
  width: calc(100% - 48px);
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
}
.tracker-line.is-complete {
  background: #e9ad25;
}
.tracker-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.tracker-details div {
  display: grid;
  gap: 0.25rem;
}
.tracker-details strong {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.62rem;
}
.tracker-details span {
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.login-page {
  min-height: 100vh;
}
.login-page + .site-footer {
  display: none;
}
.login-page::before {
  background: linear-gradient(
    90deg,
    rgba(36, 4, 10, 0.22),
    rgba(74, 5, 13, 0.72)
  );
}
.login-page::after {
  width: 34rem;
  height: 34rem;
  right: 4%;
  top: 2%;
  background: rgba(255, 135, 118, 0.1);
}
.login-page .auth-shell {
  grid-template-columns: minmax(320px, 1fr) minmax(400px, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  max-width: 1120px;
  align-items: center;
}
.login-page .login-brand {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-align: center;
  align-items: center;
  padding: 2rem;
}
.login-page .brand-logo {
  width: 170px;
  height: 170px;
  margin-bottom: 1rem;
}
.login-page .eyebrow {
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.1rem;
}
.brand-location {
  font-size: 1rem;
  margin: 0;
  letter-spacing: 0.02em;
}
.brand-motto {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.4;
  margin: 1.8rem 0 0;
}
.login-page .form-panel {
  max-width: 550px;
  width: 100%;
  justify-self: center;
  padding: 2.7rem 2.8rem;
  background: rgba(150, 104, 108, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0.9rem;
  box-shadow:
    0 14px 35px rgba(29, 0, 6, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
}
.login-page .form-heading {
  margin-bottom: 1.35rem;
}
.login-page .form-heading h2 {
  color: white;
  font-size: 1.8rem;
}
.login-page .form-heading p,
.login-page .login-options,
.login-page .login-signup {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 0.85rem;
}
.login-page .form-control {
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  border-radius: 0.5rem;
  font-size: 1rem;
  min-height: 56px;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.login-page .form-control::placeholder {
  color: rgba(255, 255, 255, 0.8);
}
.login-page .form-control:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.12);
}
.input-with-icon > i {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  color: white;
  font-size: 0.95rem;
}
.input-with-icon .form-control {
  padding-left: 2rem;
}
.input-with-icon {
  position: relative;
}
.login-page .password-toggle {
  color: white;
  font-size: 0.85rem;
}
.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.login-options .form-check {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.login-options .form-check-input {
  margin: 0;
  width: 1rem;
  height: 1rem;
}
.login-options a {
  color: white;
  font-weight: 400;
}
.login-submit {
  min-height: 54px;
  padding: 0.75rem 1rem;
  border-radius: 1.2rem;
  background: #a40b2c;
  border-color: #c32949;
  font-size: 1rem;
}
.login-submit:hover,
.login-submit:focus {
  background: #870722;
  border-color: #e05a74;
}
.auth-link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: white;
  font: inherit;
}
.auth-link-button:hover {
  text-decoration: underline;
}
.login-signup a {
  color: white;
  font-weight: 600;
}
.registration-page {
  min-height: 100vh;
}
.registration-page::before {
  background: linear-gradient(
    100deg,
    rgba(65, 4, 11, 0.72),
    rgba(83, 6, 13, 0.56)
  );
}
.registration-page > .container {
  position: relative;
}
.registration-hero {
  position: static;
  z-index: 2;
  width: fit-content;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: 0 auto 1.5rem;
  color: white;
  text-align: left;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.registration-floating-logo {
  display: block;
  width: 118px;
  height: 118px;
  object-fit: contain;
  margin: 0;
}
.registration-brand-copy .eyebrow {
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  margin-bottom: 0.1rem;
}
.registration-brand-copy .brand-location {
  font-size: 1rem;
}
.registration-brand-copy .brand-motto {
  font-size: 1.05rem;
  margin-top: 0.6rem;
}
.registration-page .auth-shell {
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  gap: 1.25rem;
  align-items: stretch;
}
.registration-page .auth-shell > * {
  min-width: 0;
}
.registration-steps {
  color: white;
  padding: 1.6rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 14px;
  background: rgba(84, 4, 13, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.registration-steps h2 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}
.registration-steps > p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.5;
}
.registration-steps .steps-list {
  gap: 1rem;
  margin-top: 1.4rem;
  font-size: 0.85rem;
}
.registration-steps .steps-list span {
  gap: 0.45rem;
}
.registration-steps .steps-list b {
  width: 30px;
  height: 30px;
  font-size: 0.8rem;
}
.steps-help {
  display: flex;
  gap: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.85rem;
}
.steps-help i {
  font-size: 1.1rem;
}
.steps-help small {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.2rem;
  font-size: 0.75rem;
}
.registration-page .form-panel {
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
}
.registration-page .form-panel {
  padding: 2rem 2.25rem;
}
.registration-page .form-heading {
  margin-bottom: 1.35rem;
}
.registration-page .form-heading h2 {
  font-size: 1.6rem;
}
.registration-page .form-heading p {
  font-size: 0.95rem;
}
.registration-page .section-title {
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}
.registration-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
}
.registration-fields .form-label {
  font-size: 0.9rem;
}
.registration-fields .form-label span {
  color: var(--red);
}
.registration-fields .form-control {
  min-height: 48px;
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  border-radius: 0.45rem;
}
.registration-fields .mb-2 {
  margin-bottom: 0.7rem !important;
}
.national-id-result {
  padding: 0.85rem;
  border: 1px solid rgba(142, 7, 16, 0.18);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.58);
}
.national-id-review-list {
  display: grid;
  gap: 1rem;
}
.national-id-review-card {
  padding: 1.25rem;
}
.registration-security {
  border-top: 1px solid rgba(142, 7, 16, 0.12);
  margin-top: 0.5rem;
  padding-top: 0.65rem;
}
.registration-security .form-label {
  font-size: 0.75rem;
}
.registration-security .form-control {
  min-height: 38px;
  padding: 0.45rem 0.6rem;
  font-size: 0.8rem;
}
.registration-security .form-text {
  font-size: 0.7rem;
}
.registration-security .row {
  margin-left: 0;
  margin-right: 0;
}
.registration-page .form-check {
  font-size: 0.75rem;
}
.register-next {
  display: block;
  margin-left: auto;
  border-radius: 1rem;
  padding: 0.55rem 1.25rem;
  font-size: 0.75rem;
}
.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}
.wizard-actions .register-next {
  margin-left: auto;
}
.review-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
  max-height: 26rem;
  overflow-y: auto;
  padding-right: 0.35rem;
}
.review-summary div {
  display: grid;
  gap: 0.15rem;
  border-bottom: 1px solid rgba(142, 7, 16, 0.12);
  padding: 0.4rem 0;
}
.review-summary strong {
  color: var(--red);
  font-size: 0.72rem;
}
.review-summary span {
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
.terms-check {
  font-size: 0.95rem;
}
.terms-content {
  max-height: 65vh;
  overflow-y: auto;
  line-height: 1.6;
}
.terms-content h3 {
  margin-top: 1.25rem;
  font-size: 1rem;
  color: var(--red-dark);
}
.terms-content p {
  margin-bottom: 0.8rem;
}
.auth-modal .modal-content {
  border: 0;
  border-radius: 1rem;
  background: #fff;
  color: #212529;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.25);
}
.auth-modal .modal-body,
.auth-modal .modal-body p,
.auth-modal .modal-body strong {
  color: #212529;
}
.auth-modal .modal-header {
  border-bottom-color: rgba(142, 7, 16, 0.12);
}
.auth-modal .modal-title {
  color: var(--red-dark);
  font-weight: 700;
}
.registration-page > .container > .auth-shell + * {
  font-size: 0.7rem;
}

@media (min-width: 768px) and (max-width: 1000px) {
  .login-page .auth-shell {
    grid-template-columns: minmax(240px, 0.8fr) minmax(340px, 1.2fr);
    gap: 1.5rem;
  }
  .login-page .form-panel {
    padding: 2rem 1.8rem;
  }
  .registration-page .auth-shell {
    grid-template-columns: minmax(190px, 0.35fr) minmax(0, 1fr);
    gap: 0.9rem;
  }
  .registration-page .form-panel {
    padding: 1.6rem;
  }
}

@media (max-width: 767.98px) {
  .auth-page {
    align-items: flex-start;
  }
  .auth-shell {
    grid-template-columns: 1fr;
    margin-top: 1rem;
  }
  .brand-panel {
    padding: 1.5rem;
    text-align: center;
    align-items: center;
    background: rgba(83, 5, 12, 0.58);
  }
  .brand-panel h1 {
    font-size: 1.8rem;
  }
  .brand-logo {
    width: 68px;
    height: 68px;
    margin-bottom: 0.5rem;
  }
  .brand-features {
    justify-content: center;
    margin-top: 0.8rem;
  }
  .steps-list {
    width: 100%;
    text-align: left;
  }
  .form-panel {
    padding: 1.5rem;
  }
  .login-page .auth-shell {
    gap: 0;
  }
  .login-page .login-brand {
    padding-bottom: 0.5rem;
  }
  .login-page .auth-shell {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
  .login-page .login-brand {
    padding: 1rem 0.75rem 0.75rem;
  }
  .login-page .brand-logo {
    width: 100px;
    height: 100px;
  }
  .login-page .form-panel {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    padding: 1.6rem 1.35rem;
  }
  .login-page .form-heading h2 {
    font-size: 1.55rem;
  }
  .login-page .form-control {
    min-height: 46px;
  }
  .registration-page .auth-shell {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .registration-hero {
    width: auto;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  .registration-floating-logo {
    width: 82px;
    height: 82px;
  }
  .registration-brand-copy .eyebrow {
    font-size: 1rem;
  }
  .registration-brand-copy .brand-location {
    font-size: 0.8rem;
  }
  .registration-brand-copy .brand-motto {
    font-size: 0.85rem;
    margin-top: 0.35rem;
  }
  .registration-page .auth-shell {
    grid-template-columns: 1fr;
    width: 100%;
    margin: 0;
  }
  .registration-page .registration-brand {
    padding: 1.2rem;
  }
  .registration-page .registration-steps {
    order: 3;
  }
  .registration-page .form-panel {
    padding: 1.5rem;
  }
  .registration-fields {
    grid-template-columns: 1fr;
  }
  .review-summary {
    grid-template-columns: 1fr;
  }
  .wizard-actions {
    align-items: stretch;
  }
  .wizard-actions .btn {
    flex: 1;
  }
}

@media (max-width: 900px) {
  .dashboard-sidebar {
    width: 190px;
  }
  .dashboard-content {
    margin-left: 190px;
  }
  .dashboard-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-lower-grid {
    grid-template-columns: 1fr 1fr;
  }
  .resident-officials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .resident-developer-group {
    grid-column: 1 / -1;
  }
  .resident-developer-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .portal-panel {
    grid-column: 1 / -1;
  }
  .request-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dashboard-page {
    display: block;
    background-attachment: scroll;
  }
  .dashboard-sidebar {
    position: static;
    width: 100%;
    height: auto;
    min-height: auto;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }
  .dashboard-content {
    margin-left: 0;
  }
  .dashboard-brand {
    padding: 0.8rem 1rem;
  }
  .dashboard-brand img {
    width: 42px;
    height: 42px;
  }
  .dashboard-nav {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    padding: 0.4rem 0.7rem 0.7rem;
  }
  .dashboard-nav a {
    flex: 0 0 auto;
    padding: 0.55rem 0.7rem;
    font-size: 0.7rem;
  }
  .dashboard-nav a i {
    font-size: 0.9rem;
  }
  .dashboard-nav-label,
  .dashboard-sidebar-footer {
    display: none;
  }
  .dashboard-topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
  }
  .dashboard-search {
    width: 100%;
  }
  .dashboard-user {
    justify-content: flex-end;
  }
  .dashboard-main {
    padding: 0.7rem 1rem 1.5rem;
  }
  .dashboard-tagline {
    position: static;
    margin: 1rem auto 0;
    transform: rotate(-4deg);
    font-size: 0.9rem;
  }
  .dashboard-footer {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
  }
  .dashboard-footer-social {
    margin-left: 0;
  }
  .dashboard-footer small {
    width: 100%;
    text-align: center;
  }
  .resident-contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .resident-officials-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .resident-developer-group {
    grid-column: auto;
  }
  .resident-developer-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard-service-grid,
  .dashboard-lower-grid {
    grid-template-columns: 1fr;
  }
  .portal-panel {
    grid-column: auto;
  }
  .request-fields {
    grid-template-columns: 1fr;
  }
  .request-field-wide {
    grid-column: auto;
  }
  .tracker-header {
    flex-direction: column;
  }
  .tracker-steps {
    gap: 0.1rem;
  }
  .tracker-step {
    font-size: 0.55rem;
  }
  .tracker-step-icon {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }
  .tracker-line {
    top: 17px;
    left: calc(50% + 19px);
    width: calc(100% - 38px);
  }
  .tracker-details {
    grid-template-columns: 1fr;
  }
}

/* Request wizard and tracking pages */
.request-module {
  --request-bg: #f4f5f7;
  --request-card: #fff;
  --request-text: #24252b;
  --request-muted: #7b7d86;
  --request-border: #e5e6eb;
  background: var(--request-bg);
  color: var(--request-text);
}
.request-module[data-theme="dark"] {
  --request-bg: #17181d;
  --request-card: #23252c;
  --request-text: #f7f7f8;
  --request-muted: #adb0ba;
  --request-border: #3a3c45;
}
.request-module .request-content {
  background: var(--request-bg);
}
.request-module .request-content {
  min-height: 100vh;
  height: auto;
  overflow: visible;
}
.request-module .request-main {
  display: flex;
  flex: 1 0 auto;
  min-height: auto;
  flex-direction: column;
  overflow: visible;
}
.request-module .dashboard-sidebar {
  background: rgba(8, 10, 14, 0.96);
  color: white;
}
.request-module .request-topbar {
  color: var(--request-text);
}
.request-module .dashboard-user small {
  color: var(--request-muted);
}
.request-module .dashboard-footer {
  margin-top: 0;
  border-color: var(--request-border);
  background: var(--request-card);
  color: var(--request-muted);
}
.request-module .dashboard-footer small {
  color: var(--request-muted);
}
.request-module .dashboard-footer > span:first-child {
  color: var(--request-text);
}
.request-module .dashboard-footer > b {
  background: var(--request-border);
}
.request-module .dashboard-search {
  border-color: var(--request-border);
  background: var(--request-card);
}
.request-module .dashboard-search i {
  color: var(--request-muted);
}
.request-module .dashboard-search input {
  color: var(--request-text);
}
.request-module .dashboard-search input::placeholder {
  color: var(--request-muted);
}
.theme-toggle {
  border: 0;
  background: transparent;
  color: var(--request-text);
  font-size: 1rem;
}
.request-main {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0.55rem clamp(1.2rem, 3vw, 2.5rem) 1.2rem;
}
.request-breadcrumb {
  color: var(--request-muted);
  font-size: 0.7rem;
  margin-bottom: 0.25rem;
}
.request-title-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}
.request-title-row h1 {
  margin: 0;
  color: var(--request-text);
  font-size: 1.65rem;
  font-weight: 800;
}
.request-title-row p {
  color: var(--request-muted);
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
}
.request-banner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.7rem;
  background: linear-gradient(90deg, #9d0713, #b20b19);
  color: white;
}
.request-banner-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: white;
  color: var(--red);
  font-size: 1.1rem;
}
.request-banner div {
  display: grid;
  gap: 0.15rem;
}
.request-banner strong {
  font-size: 0.82rem;
}
.request-banner small {
  font-size: 0.65rem;
  opacity: 0.85;
}
.request-columns,
.tracking-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.8fr);
  gap: 1rem;
  align-items: stretch;
}
.request-columns > .request-card,
.tracking-columns > .request-card {
  min-width: 0;
}
.request-card {
  border: 1px solid var(--request-border);
  border-radius: 0.75rem;
  background: var(--request-card);
  box-shadow: 0 3px 14px rgba(26, 27, 35, 0.04);
  padding: 1.2rem;
}
.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.card-heading h2 {
  margin: 0;
  color: var(--request-text);
  font-size: 1rem;
}
.card-heading p {
  color: var(--request-muted);
  margin: 0.3rem 0 0;
  font-size: 0.65rem;
}
.wizard-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 1.1rem 0 1.35rem;
  border-bottom: 1px solid var(--request-border);
}
.wizard-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0 0.75rem;
  color: var(--request-muted);
  font-size: 0.68rem;
  text-decoration: none;
}
.wizard-step span {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--request-border);
  color: var(--request-muted);
  font-size: 0.6rem;
  font-weight: 700;
}
.wizard-step.active,
.wizard-step.done {
  color: var(--request-text);
  font-weight: 700;
}
.wizard-step.active span,
.wizard-step.done span {
  background: var(--red);
  color: white;
}
.wizard-step.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 20%;
  height: 2px;
  background: var(--red);
}
.wizard-section-title {
  color: var(--request-text);
  font-size: 0.78rem;
  margin: 0 0 0.7rem;
}
.wizard-section-title b,
.wizard-label b,
.form-label b {
  color: var(--red);
}
.choice-list {
  display: grid;
  gap: 0.5rem;
}
.choice-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem;
  border: 1px solid var(--request-border);
  border-radius: 0.55rem;
  cursor: pointer;
}
.choice-card:hover,
.choice-card.selected {
  border-color: var(--red);
  background: rgba(142, 7, 16, 0.035);
}
.choice-card input {
  position: absolute;
  opacity: 0;
}
.choice-radio {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  border: 1px solid #c5c7ce;
  border-radius: 50%;
}
.choice-card input:checked + .choice-radio {
  border: 4px solid var(--red);
}
.choice-card > span:nth-of-type(2) {
  display: grid;
  gap: 0.12rem;
  flex: 1;
}
.choice-card strong {
  color: var(--request-text);
  font-size: 0.7rem;
}
.choice-card small {
  color: var(--request-muted);
  font-size: 0.58rem;
}
.choice-card em {
  display: none;
  padding: 0.25rem 0.6rem;
  border-radius: 1rem;
  background: #f8e2e4;
  color: var(--red);
  font-size: 0.55rem;
  font-style: normal;
}
.choice-card.selected em {
  display: block;
}
.wizard-label {
  color: var(--request-text);
  display: block;
  margin-top: 0.95rem;
}
.request-input {
  background: var(--request-card);
  border-color: var(--request-border);
  color: var(--request-text);
  font-size: 0.72rem;
}
.request-input:focus {
  background: var(--request-card);
  color: var(--request-text);
}
.details-grid,
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
.details-grid > div {
  min-width: 0;
}
.details-grid .form-control {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.detail-wide {
  grid-column: 1 / -1;
}
.request-module .form-label {
  color: var(--request-text);
  font-size: 0.68rem;
}
.review-help {
  color: var(--request-muted);
  font-size: 0.7rem;
}
.review-grid {
  margin-top: 1rem;
  padding: 0.8rem;
  border: 1px solid var(--request-border);
  border-radius: 0.5rem;
}
.review-grid div {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--request-border);
}
.review-grid small {
  color: var(--request-muted);
  font-size: 0.6rem;
}
.review-grid strong {
  color: var(--request-text);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}
.wizard-actions {
  border-top: 1px solid var(--request-border);
  margin-top: 1.25rem;
  padding-top: 0.9rem;
}
.request-back {
  color: var(--request-text);
  background: transparent;
  border: 1px solid var(--request-border);
}
.request-back:disabled {
  opacity: 0.35;
}
.request-next {
  margin-left: auto;
}
.active-count {
  padding: 0.3rem 0.55rem;
  border-radius: 1rem;
  background: #f8e2e4;
  color: var(--red);
  font-size: 0.55rem;
  white-space: nowrap;
}
.active-requests {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  min-width: 0;
  max-height: 65vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--red) var(--request-border);
}
.active-requests::-webkit-scrollbar {
  width: 7px;
}
.active-requests::-webkit-scrollbar-track {
  background: var(--request-border);
  border-radius: 1rem;
}
.active-requests::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: 1rem;
}
.active-request {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.75rem 0.6rem;
  border: 1px solid var(--request-border);
  border-radius: 0.6rem;
  color: var(--request-text);
  text-decoration: none;
}
.active-request.selected {
  border-color: var(--red);
  background: rgba(142, 7, 16, 0.025);
}
.active-request:hover {
  color: var(--request-text);
  text-decoration: none;
  border-color: var(--red);
}
.active-request-icon {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  background: #f8e2e4;
  color: var(--red);
  font-size: 0.65rem;
}
.active-request > span:nth-child(2) {
  display: grid;
  gap: 0.18rem;
  flex: 1;
  min-width: 0;
}
.active-request strong {
  font-size: 0.68rem;
}
.active-request small {
  color: var(--request-muted);
  font-size: 0.55rem;
}
.active-request em {
  width: fit-content;
  padding: 0.2rem 0.55rem;
  border-radius: 1rem;
  background: #fff0d9;
  color: #9b6818;
  font-size: 0.52rem;
  font-style: normal;
}
.active-request > i {
  color: var(--red);
}
.empty-requests {
  color: var(--request-muted);
  font-size: 0.7rem;
}
.request-help {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding: 0.85rem;
  border-radius: 0.6rem;
  background: rgba(142, 7, 16, 0.06);
}
.request-help strong {
  color: var(--request-text);
  font-size: 0.7rem;
}
.request-help small {
  color: var(--request-muted);
  font-size: 0.6rem;
}
.request-help a {
  font-size: 0.62rem;
}
.blotter-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1rem;
  align-items: start;
}
.blotter-form-card,
.blotter-side {
  min-width: 0;
}
.blotter-form-card {
  height: auto;
}
.blotter-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}
.blotter-form-grid > div {
  min-width: 0;
}
.blotter-form-grid .form-control {
  width: 100%;
  min-width: 0;
}
.blotter-form-grid .detail-wide {
  grid-column: 1 / -1;
}
.blotter-form-card .wizard-actions {
  display: flex;
}
.blotter-side {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 1rem;
  min-width: 0;
}
.map-card {
  min-width: 0;
}
.map-card h2 i {
  color: var(--red);
}
#blotter-map {
  width: 100%;
  max-width: 100%;
  height: 245px;
  margin-top: 0.8rem;
  border-radius: 0.55rem;
  overflow: hidden;
  border: 1px solid var(--request-border);
  z-index: 0;
}
.staff-blotter-map {
  width: 100%;
  height: 220px;
  margin: 0.65rem 0;
  border: 1px solid #dfe3e8;
  border-radius: 0.55rem;
  overflow: hidden;
}
.map-hint {
  display: block;
  margin-top: 0.45rem;
  color: var(--request-muted);
  font-size: 0.58rem;
  text-align: center;
}
.blotter-report-list {
  display: grid;
  gap: 0.45rem;
  max-height: 210px;
  overflow-y: auto;
  margin-top: 0.7rem;
  padding-right: 0.2rem;
}
.blotter-report {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem;
  border: 1px solid var(--request-border);
  border-radius: 0.55rem;
  color: var(--request-text);
  text-decoration: none;
}
.blotter-report:hover {
  color: var(--request-text);
  border-color: var(--red);
  text-decoration: none;
}
.blotter-report > span:nth-child(2) {
  display: grid;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}
.blotter-report strong {
  overflow-wrap: anywhere;
  font-size: 0.64rem;
}
.blotter-report em {
  flex: 0 0 auto;
}
.blotter-report small {
  color: var(--request-muted);
  font-size: 0.53rem;
}
.blotter-report > i {
  color: var(--red);
  font-size: 0.75rem;
}
.blotter-status {
  padding: 0.22rem 0.45rem;
  border-radius: 1rem;
  background: #fff0d9;
  color: #9b6818;
  font-size: 0.5rem;
  font-style: normal;
  white-space: nowrap;
}
.blotter-status.status-resolved {
  background: #def5e9;
  color: #26805d;
}
.blotter-status.status-in-progress,
.blotter-status.status-under-review {
  background: #e7edff;
  color: #3a5da8;
}
.leaflet-control-zoom a {
  color: #333 !important;
}
.tracking-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem 1.2rem;
}
.tracking-summary > div {
  flex: 1;
}
.tracking-summary small {
  color: var(--request-muted);
  font-size: 0.58rem;
}
.tracking-summary h2 {
  color: var(--request-text);
  margin: 0.25rem 0 0.2rem;
  font-size: 1.1rem;
}
.tracking-summary p {
  color: var(--request-muted);
  margin: 0;
  font-size: 0.62rem;
}
.tracking-status {
  padding: 0.35rem 0.7rem;
  border-radius: 1rem;
  background: #fff0d9;
  color: #9b6818;
  font-size: 0.6rem;
  white-space: nowrap;
}
.copy-number {
  white-space: nowrap;
  font-size: 0.62rem;
}
.timeline-notice {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 1rem 0 1.35rem;
  padding: 0.7rem;
  border: 1px solid #f2ddb8;
  border-radius: 0.6rem;
  background: #fff7e9;
  color: #9b6818;
}
.timeline-notice > i {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  height: 24px;
  border-radius: 50%;
  background: #f5c66f;
  color: white;
}
.timeline-notice div {
  display: grid;
  gap: 0.15rem;
}
.timeline-notice strong {
  font-size: 0.7rem;
}
.timeline-notice small {
  font-size: 0.58rem;
}
.request-timeline {
  display: grid;
  gap: 0;
}
.timeline-event {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: start;
  gap: 0.7rem;
  min-height: 75px;
  color: var(--request-muted);
}
.timeline-event:not(:last-child):before {
  content: "";
  position: absolute;
  left: 15px;
  top: 31px;
  bottom: 0;
  width: 2px;
  background: var(--request-border);
}
.timeline-event.complete:before {
  background: #2b9a70;
}
.timeline-icon {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid #d4d6dc;
  border-radius: 50%;
  background: var(--request-card);
  color: #c1c3ca;
  font-size: 0.75rem;
}
.timeline-event.complete .timeline-icon {
  border-color: #2b9a70;
  background: #2b9a70;
  color: white;
}
.timeline-event.active .timeline-icon {
  border-color: var(--red);
  background: var(--red);
  color: white;
}
.timeline-event div {
  display: grid;
  gap: 0.2rem;
  padding-top: 0.2rem;
}
.timeline-event strong {
  color: var(--request-text);
  font-size: 0.72rem;
}
.timeline-event small {
  color: var(--request-muted);
  font-size: 0.6rem;
}
.timeline-event em {
  padding-top: 0.2rem;
  color: var(--request-muted);
  font-size: 0.58rem;
  font-style: normal;
}
.timeline-event.active em {
  color: var(--red);
  font-weight: 700;
}
.timeline-remarks {
  display: grid;
  gap: 0.25rem;
  border-top: 1px solid var(--request-border);
  padding-top: 0.8rem;
  font-size: 0.65rem;
}
.timeline-remarks strong {
  color: var(--request-text);
}
.timeline-remarks span {
  color: var(--request-muted);
}
.tracking-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.6rem 0;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--request-border);
  border-radius: 0.45rem;
  color: var(--request-muted);
}
.tracking-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--request-text);
  font-size: 0.6rem;
}

/* Profile settings */
.profile-content {
  background:
    linear-gradient(110deg, rgba(35, 15, 25, 0.16), rgba(35, 15, 25, 0.35)),
    url("../images/barangay.jpg") center / cover fixed;
}
.profile-content .profile-main {
  flex: 1 0 auto;
}
.profile-main {
  width: 100%;
  padding: 1rem clamp(1.2rem, 3vw, 2.5rem) 1.5rem;
}
.profile-heading {
  margin-bottom: 1rem;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.profile-heading .eyebrow {
  color: var(--gold);
  margin: 0;
}
.profile-heading h1 {
  margin: 0.2rem 0;
  font-size: 1.7rem;
}
.profile-heading p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
}
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.65fr);
  gap: 0.9rem;
  align-items: stretch;
}
.profile-card {
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 12px 30px rgba(14, 3, 10, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  padding: 1.1rem;
}
.profile-form-card {
  min-width: 0;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.profile-section {
  padding: 0.85rem 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}
.profile-section:last-of-type {
  border-bottom: 0;
}
.profile-section-heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.profile-section-heading > i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(142, 7, 16, 0.12);
  color: var(--red);
}
.profile-section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 0.85rem;
}
.profile-section-heading p {
  margin: 0.15rem 0 0;
  color: #666872;
  font-size: 0.6rem;
}
.profile-subsection {
  padding: 0.9rem 0;
  border-top: 1px solid #ececef;
}
.profile-subsection:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.profile-subsection-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.profile-subsection-heading > i {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(142, 7, 16, 0.12);
  color: var(--red);
  font-size: 1.05rem;
}
.profile-subsection-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 750;
}
.profile-subsection-heading p {
  margin: 0.12rem 0 0;
  color: #666872;
  font-size: 0.58rem;
  line-height: 1.35;
}
.profile-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
  border-bottom: 1px solid #e6e6ea;
  margin: -0.1rem 0 1rem;
}
.profile-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.55rem 0.4rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #777984;
  font-size: 0.65rem;
  white-space: nowrap;
}
.profile-tab i {
  font-size: 0.75rem;
}
.profile-tab:hover,
.profile-tab.active {
  border-bottom-color: var(--red);
  color: var(--red);
  font-weight: 700;
}
.profile-panel[hidden] {
  display: none;
}
.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 0.85rem;
}
.profile-wide {
  grid-column: 1 / -1;
}
.profile-input {
  border-color: #e2e3e8;
  background: #fff;
  color: var(--ink);
  font-size: 0.72rem;
}
.profile-input:focus {
  background: #fff;
  color: var(--ink);
}
.profile-help {
  color: #777984;
  display: block;
  margin-top: 0.25rem;
  font-size: 0.58rem;
}
.profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  border-top: 1px solid #e6e6ea;
  margin-top: 1rem;
  padding-top: 0.85rem;
}
.profile-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  height: 100%;
  text-align: center;
}
.profile-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin-bottom: 0.6rem;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: #eeeef2;
  color: var(--red);
  font-size: 3rem;
  cursor: pointer;
  padding: 0;
}
.profile-avatar:focus-visible {
  outline: 3px solid rgba(233, 173, 37, 0.85);
  outline-offset: 3px;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-avatar-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  background: rgba(30, 5, 12, 0.68);
  color: white;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.profile-avatar:hover .profile-avatar-overlay,
.profile-avatar:focus-visible .profile-avatar-overlay {
  opacity: 1;
}
.profile-avatar-overlay i {
  font-size: 1.1rem;
}
.profile-avatar-overlay small {
  font-size: 0.55rem;
  font-weight: 700;
}
.profile-summary h2 {
  margin: 0;
  color: white;
  font-size: 0.95rem;
}
.profile-summary > p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.65rem;
}
.profile-completion {
  width: 100%;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid #e6e6ea;
  text-align: left;
}
.profile-completion strong {
  display: block;
  margin-bottom: 0.5rem;
  color: white;
  font-size: 0.9rem;
}
.profile-completion > span {
  display: block;
  margin-bottom: 0.7rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  line-height: 1.45;
}
.profile-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.6rem 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
}
.profile-check i {
  color: #2b9a70;
  font-size: 1.05rem;
}
.profile-check span {
  line-height: 1.3;
}
.profile-id-status {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.9rem;
  padding: 0.7rem;
  border: 1px solid #e6e6ea;
  border-radius: 0.55rem;
  background: #fafafa;
}
.profile-id-status > span {
  color: black;
  font-size: 0.72rem;
  font-weight: 700;
}
.profile-id-status > span i {
  color: var(--red);
  margin-right: 0.25rem;
  font-size: 0.9rem;
}
.profile-id-status strong {
  color: black;
  margin: 0;
  font-size: 0.72rem;
}
.profile-id-status small {
  color: black;
  font-size: 0.62rem;
  line-height: 1.4;
}
.profile-status-pending {
  color: #9a6500;
}
.profile-status-missing {
  color: #777984;
}
.profile-id-status strong.profile-status-preverified {
  display: inline-flex;
  width: fit-content;
  padding: 0.18rem 0.55rem;
  border: 1px solid #facc15;
  border-radius: 999px;
  background: #fef3c7;
  color: #854d0e;
}
.profile-id-link {
  margin-top: 0.8rem;
  color: var(--red);
  font-size: 0.72rem;
}
.verification-card {
  margin-bottom: 0.9rem;
}
.profile-card-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}
.profile-card-title > i {
  color: var(--red);
  font-size: 1.5rem;
}
.profile-card-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
}
.profile-card-title p {
  margin: 0.2rem 0 0;
  color: #777984;
  font-size: 0.65rem;
}
.verification-input {
  max-width: 260px;
  letter-spacing: 0.35rem;
}
.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(12, 8, 14, 0.58);
}
.profile-modal.is-open {
  display: grid;
}
.profile-modal-dialog {
  position: relative;
  width: min(430px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  padding: 1.25rem;
}
.profile-modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  border: 0;
  background: transparent;
  color: #777984;
  font-size: 1.4rem;
  line-height: 1;
}
.profile-modal .profile-card-title {
  padding-right: 1.5rem;
}
#nationalIdTermsModal .modal-content {
  background: #fff;
  color: #212529;
}
#nationalIdTermsModal .modal-header,
#nationalIdTermsModal .modal-footer {
  background: #fff;
  color: #212529;
}
#nationalIdTermsModal .modal-body,
#nationalIdTermsModal .modal-body p,
#nationalIdTermsModal .modal-body strong {
  background: #fff;
  color: #212529;
}
#nationalIdTermsModal .modal-title {
  color: #212529;
}
.profile-camera-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.45rem;
}
.profile-camera-thumbnail {
  width: 52px;
  height: 52px;
  border: 1px solid #d8d8df;
  border-radius: 0.35rem;
  object-fit: cover;
  background: #f2f2f4;
}
.national-id-profile-section {
  margin-top: 0.25rem;
  color: black;
}
.national-id-profile-section h3 {
  font-size: 0.85rem;
}
.profile-status-approved {
  color: #147a52;
}
.profile-status-rejected {
  color: #b42318;
}
.profile-camera-modal {
  position: fixed;
  inset: 0;
  z-index: 1055;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(12, 8, 14, 0.72);
}
.profile-camera-modal[hidden] {
  display: none;
}
.profile-camera-dialog {
  width: min(620px, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  border-radius: 0.8rem;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  padding: 1rem;
}
.profile-camera-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}
.profile-camera-header h2 {
  margin: 0;
  font-size: 1rem;
}
.profile-camera-close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
}
.profile-camera-stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0.55rem;
  background: #17171a;
}
.profile-camera-stage video,
.profile-camera-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #17171a;
}
.profile-camera-preview {
  display: block;
  max-height: 480px;
  border-radius: 0.55rem;
}
.profile-camera-preview[hidden] {
  display: none;
}
.profile-camera-guide {
  position: absolute;
  pointer-events: none;
  border: 3px solid rgba(255, 255, 255, 0.92);
  background: transparent;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.28);
}
.profile-camera-guide.face {
  width: 48%;
  height: 78%;
  left: 26%;
  top: 11%;
  border-radius: 50%;
}
.profile-camera-guide.id-card {
  width: 78%;
  height: 58%;
  left: 11%;
  top: 21%;
  border-radius: 0.55rem;
}
.profile-camera-message {
  min-height: 1.35rem;
  margin: 0.55rem 0;
  color: #777984;
  font-size: 0.78rem;
  text-align: center;
}
.profile-camera-actions-modal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}
@media (max-width: 900px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .profile-summary {
    order: -1;
  }
}
@media (max-width: 640px) {
  .profile-main {
    padding: 0.8rem 1rem 1.2rem;
  }
  .profile-form-grid {
    grid-template-columns: 1fr;
  }
  .profile-tabs {
    gap: 0;
  }
  .profile-tab {
    flex-direction: column;
    gap: 0.15rem;
    padding-inline: 0.2rem;
    font-size: 0.56rem;
  }
  .profile-wide {
    grid-column: auto;
  }
  .profile-actions {
    justify-content: stretch;
  }
  .profile-actions .btn {
    flex: 1;
  }
}

@media (min-width: 901px) and (max-height: 850px) {
  .request-topbar {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }
  .request-main {
    padding-top: 0.35rem;
    padding-bottom: 0.8rem;
  }
  .request-title-row {
    margin-bottom: 0.75rem;
  }
  .request-banner {
    margin-bottom: 0.7rem;
    padding: 0.6rem 0.85rem;
  }
  .request-card {
    padding: 1rem;
  }
  .wizard-progress {
    margin-top: 0.8rem;
    margin-bottom: 1rem;
  }
  .choice-card {
    padding: 0.55rem 0.65rem;
  }
  .timeline-event {
    min-height: 63px;
  }
  .tracking-summary {
    margin-bottom: 0.75rem;
    padding: 0.8rem 1rem;
  }
}

.appointment-main {
  overflow-y: auto !important;
}
.appointment-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  gap: 1rem;
  align-items: start;
  min-height: 0;
}
.appointment-primary-column {
  display: grid;
  gap: 1rem;
  min-width: 0;
}
.today-schedule-card {
  background: linear-gradient(120deg, #fff, #fff8f5);
}
.today-schedule-card h2 i,
.appointment-form-card h2 i,
.resident-history-card h2 i {
  color: var(--red);
  margin-right: 0.35rem;
}
.today-schedule-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.6rem;
  margin-top: 0.9rem;
}
.today-schedule-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid var(--request-border);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.72);
}
.schedule-time {
  flex: 0 0 auto;
  padding: 0.35rem 0.45rem;
  border-radius: 0.4rem;
  background: #f8e2e4;
  color: var(--red);
  font-size: 0.6rem;
  font-weight: 800;
}
.today-schedule-item > span:last-child {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.today-schedule-item strong {
  color: var(--request-text);
  font-size: 0.66rem;
  overflow-wrap: anywhere;
}
.today-schedule-item small {
  color: var(--request-muted);
  font-size: 0.55rem;
  overflow-wrap: anywhere;
}
.appointment-glass-sidebar {
  display: grid;
  gap: 1rem;
  min-width: 0;
}
.appointment-upcoming-card,
.appointment-quick-card,
.appointment-help-card {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 0.9rem;
  background: linear-gradient(
    145deg,
    rgba(105, 11, 27, 0.82),
    rgba(48, 9, 25, 0.78)
  );
  box-shadow:
    0 12px 28px rgba(59, 5, 18, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  padding: 1rem;
}
.appointment-upcoming-card .card-heading h2,
.appointment-help-card h3 {
  color: white;
  font-size: 0.9rem;
}
.appointment-upcoming-card .card-heading p {
  color: rgba(255, 255, 255, 0.68);
}
.upcoming-count {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.6rem;
}
.upcoming-appointment-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.9rem;
}
.upcoming-appointment-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.08);
}
.upcoming-date {
  display: grid;
  flex: 0 0 36px;
  place-items: center;
  padding: 0.25rem 0;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.16);
  line-height: 1;
}
.upcoming-date strong {
  font-size: 0.48rem;
  text-transform: uppercase;
}
.upcoming-date b {
  margin-top: 0.15rem;
  font-size: 0.9rem;
}
.upcoming-appointment-item > div:last-child {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.upcoming-appointment-item strong {
  font-size: 0.62rem;
  overflow-wrap: anywhere;
}
.upcoming-appointment-item small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.52rem;
  overflow-wrap: anywhere;
}
.upcoming-empty {
  margin: 0.5rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.64rem;
}
.appointment-quick-card .card-heading h2 {
  color: white;
  font-size: 0.9rem;
}
.appointment-quick-card .card-heading p {
  color: rgba(255, 255, 255, 0.76);
}
.appointment-quick-card h2 i {
  color: var(--gold);
  margin-right: 0.3rem;
}
.appointment-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.9rem;
}
.appointment-quick-grid a {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  min-height: 82px;
  padding: 0.7rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  text-align: center;
  font-size: 0.57rem;
}
.appointment-quick-grid a:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}
.appointment-quick-grid a i {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.9rem;
}
.appointment-quick-grid span {
  line-height: 1.25;
}
.appointment-help-card h3 {
  margin: 0 0 0.55rem;
}
.appointment-help-card h3 i {
  color: var(--gold);
  margin-right: 0.3rem;
}
.appointment-help-card p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.64rem;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}
.appointment-help-card a {
  color: white;
  font-size: 0.63rem;
}
.appointment-quick-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.8rem 0 0;
}
.appointment-quick-actions strong {
  color: var(--request-text);
  font-size: 0.72rem;
  margin-right: auto;
}
.appointment-quick-actions strong i {
  color: var(--gold);
  margin-right: 0.25rem;
}
.appointment-quick-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--request-border);
  border-radius: 0.5rem;
  background: var(--request-card);
  color: var(--request-text);
  font-size: 0.62rem;
}
.appointment-quick-actions a:hover {
  border-color: var(--red);
  text-decoration: none;
}
.appointment-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
  gap: 1rem;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
}
.appointment-form-card {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
}
.appointment-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.1rem;
}
.appointment-form-grid .form-label {
  margin-bottom: 0.35rem;
}
.appointment-form-grid .request-input {
  min-height: 39px;
}
.appointment-form-grid textarea.request-input {
  min-height: 125px;
  resize: vertical;
}
.appointment-side {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 1rem;
  min-height: 0;
}
.previous-appointments {
  display: flex;
  min-height: 0;
  flex-direction: column;
}
.appointment-list {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  min-height: 0;
  margin-top: 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--red) var(--request-border);
}
.appointment-list::-webkit-scrollbar {
  width: 7px;
}
.appointment-list::-webkit-scrollbar-track {
  background: var(--request-border);
  border-radius: 1rem;
}
.appointment-list::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: 1rem;
}
.appointment-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.7rem;
  border: 1px solid var(--request-border);
  border-radius: 0.6rem;
}
.appointment-date {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  padding: 0.3rem 0;
  border-radius: 0.45rem;
  background: #f8e2e4;
  color: var(--red);
  line-height: 1;
}
.appointment-date strong {
  font-size: 0.55rem;
  text-transform: uppercase;
}
.appointment-date b {
  margin-top: 0.2rem;
  font-size: 1.05rem;
}
.appointment-detail {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}
.appointment-detail > strong {
  color: var(--request-text);
  font-size: 0.82rem;
}
.appointment-detail small {
  color: var(--request-muted);
  font-size: 0.7rem;
  overflow-wrap: anywhere;
}
.appointment-status {
  width: fit-content;
  padding: 0.24rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.62rem;
  font-weight: 700;
}
.status-pending {
  background: #fff2d7;
  color: #9a6500;
}
.status-approved {
  background: #def5e9;
  color: #26805d;
}
.status-completed {
  background: #e4efff;
  color: #3162a4;
}
.status-cancelled,
.status-missed {
  background: #f8e2e4;
  color: var(--red);
}
.appointment-contact h3 {
  margin: 0 0 0.7rem;
  color: var(--request-text);
  font-size: 0.85rem;
}
.appointment-contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.45rem 0;
  color: var(--request-muted);
  font-size: 0.64rem;
}
.appointment-contact p i {
  color: var(--red);
}
.empty-requests {
  margin: auto 0;
  padding: 1.5rem 0.5rem;
  color: var(--request-muted);
  font-size: 0.68rem;
  text-align: center;
}
@media (min-width: 901px) and (max-height: 850px) {
  .appointment-main {
    padding-top: 0.25rem;
    padding-bottom: 0.55rem;
  }
  .appointment-main .request-title-row {
    margin-bottom: 0.55rem;
  }
  .appointment-main .request-title-row h1 {
    font-size: 1.35rem;
  }
  .appointment-main .request-title-row p {
    margin-top: 0.15rem;
  }
  .appointment-main .request-card {
    padding: 0.85rem;
  }
  .appointment-form-grid {
    gap: 0.55rem 0.7rem;
    margin-top: 0.7rem;
  }
  .appointment-form-grid textarea.request-input {
    min-height: 88px;
  }
  .appointment-main .wizard-actions {
    margin-top: 0.75rem;
    padding-top: 0.65rem;
  }
  .appointment-list {
    margin-top: 0.65rem;
    gap: 0.4rem;
  }
  .appointment-item {
    padding: 0.5rem;
  }
  .appointment-contact p {
    margin: 0.25rem 0;
  }
}
@media (max-width: 900px) {
  .request-main {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
  .request-columns,
  .tracking-columns {
    grid-template-columns: 1fr;
  }
  .blotter-columns {
    grid-template-columns: 1fr;
  }
  .blotter-side {
    grid-template-rows: auto auto;
  }
  .blotter-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .blotter-form-grid .detail-wide {
    grid-column: auto;
  }
  .appointment-columns {
    grid-template-columns: 1fr;
  }
  .appointment-side {
    grid-template-rows: minmax(260px, 1fr) auto;
  }
  .appointment-dashboard-grid {
    grid-template-columns: 1fr;
  }
  .appointment-glass-sidebar {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
  }
  .details-grid,
  .review-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 1100px) {
  .request-columns,
  .blotter-columns {
    grid-template-columns: minmax(0, 1fr);
  }
  .request-columns > .request-card,
  .tracking-columns > .request-card {
    height: auto;
  }
  .active-requests {
    max-height: 65vh;
  }
}
@media (max-width: 640px) {
  .request-main {
    padding: 0.8rem 1rem 1.5rem;
  }
  .request-module .request-content {
    min-height: 100vh;
  }
  .request-module .request-main {
    min-height: auto;
  }
  .active-requests {
    height: auto;
    max-height: 360px;
  }
  .blotter-form-grid {
    grid-template-columns: 1fr;
  }
  .blotter-form-grid .detail-wide {
    grid-column: auto;
  }
  .request-title-row h1 {
    font-size: 1.35rem;
  }
  .details-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }
  .detail-wide {
    grid-column: auto;
  }
  .tracking-summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .copy-number {
    width: 100%;
  }
  .appointment-form-grid {
    grid-template-columns: 1fr;
  }
  .appointment-form-grid .detail-wide {
    grid-column: auto;
  }
  .appointment-side {
    grid-template-rows: auto auto;
  }
  .appointment-list {
    max-height: 360px;
  }
  .appointment-glass-sidebar {
    grid-template-columns: 1fr;
  }
  .appointment-quick-actions {
    align-items: stretch;
  }
  .appointment-quick-actions strong {
    width: 100%;
  }
  .appointment-quick-actions a {
    flex: 1;
    justify-content: center;
  }
}

/* Appointment dashboard reference layout */
.appointment-module {
  background: var(--request-bg);
}
.appointment-module .request-content {
  background: var(--request-bg);
}
.appointment-module .request-topbar {
  background: var(--request-card);
  border-bottom: 1px solid var(--request-border);
  color: var(--request-text);
}
.appointment-module .request-topbar .dashboard-search {
  background: var(--request-card);
  border-color: var(--request-border);
}
.appointment-module .request-topbar .dashboard-search input {
  color: var(--request-text);
}
.appointment-module .request-topbar .dashboard-search input::placeholder {
  color: var(--request-muted);
}
.appointment-module .request-topbar .dashboard-search i,
.appointment-module .theme-toggle {
  color: var(--request-text);
}
.appointment-module .dashboard-user small {
  color: var(--request-muted);
}
.appointment-module .request-main {
  padding-top: 0.65rem;
}
.appointment-module .request-breadcrumb {
  color: var(--request-muted);
}
.appointment-module .request-title-row h1,
.appointment-module .request-title-row p {
  color: var(--request-text);
}
.appointment-module .request-title-row p {
  color: var(--request-muted);
}
.appointment-reference-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.8rem;
}
.appointment-reference-stats article {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--request-border);
  border-radius: 0.7rem;
  background: var(--request-card);
  color: var(--request-text);
  box-shadow: 0 3px 14px rgba(26, 27, 35, 0.04);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.appointment-reference-stats article > span:nth-child(2) {
  display: grid;
  flex: 1;
  gap: 0.1rem;
  min-width: 0;
}
.appointment-reference-stats small {
  color: var(--request-muted);
  font-size: 0.58rem;
}
.appointment-reference-stats strong {
  font-size: 1.05rem;
}
.appointment-reference-stats article > i {
  color: var(--red);
  font-size: 0.7rem;
}
.reference-stat-icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  border-radius: 0.55rem;
  background: linear-gradient(145deg, #b20b35, #79091c);
  font-size: 1rem;
}
.appointment-dashboard-grid {
  grid-template-columns: minmax(0, 1fr) 270px;
}
.appointment-primary-column {
  gap: 0.8rem;
}
.today-schedule-card {
  order: 0;
}
.reference-appointments-table {
  order: 1;
  padding: 0.8rem;
  border: 0;
  border-radius: 0.75rem;
}
.reference-table-toolbar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}
.reference-table-toolbar .btn {
  padding: 0.55rem 0.75rem;
  font-size: 0.78rem;
  white-space: nowrap;
}
.reference-table-filters {
  display: flex;
  flex: 1;
  gap: 0.5rem;
}
.reference-table-filters .form-control {
  min-height: 40px;
  background: var(--request-card);
  border-color: var(--request-border);
  color: var(--request-text);
  font-size: 0.76rem;
}
.reference-table-filters .form-control::placeholder {
  color: var(--request-muted);
  opacity: 1;
}
.reference-table-wrap {
  overflow-x: auto;
}
.reference-appointments-table table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--request-card);
  color: var(--request-text);
  font-size: 0.78rem;
}
.reference-appointments-table th {
  padding: 0.7rem 0.6rem;
  background: #f4f5f7;
  color: #424650;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}
.reference-appointments-table td {
  padding: 0.85rem 0.6rem;
  border-bottom: 1px solid var(--request-border);
  color: var(--request-text);
  vertical-align: middle;
}
.reference-appointments-table td:first-child {
  width: 120px;
}
.reference-appointments-table td:nth-child(3) {
  max-width: 240px;
  color: var(--request-text);
}
.reference-appointments-table td > strong,
.reference-appointments-table td > small {
  display: block;
}
.reference-appointments-table td > strong {
  font-size: 0.78rem;
}
.reference-appointments-table td > small {
  margin-top: 0.2rem;
  color: var(--request-muted);
  font-size: 0.68rem;
}
.reference-appointments-table td i {
  color: var(--red);
  margin-right: 0.2rem;
}
.reference-details-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid #ead0d5;
  border-radius: 0.4rem;
  background: var(--request-card);
  color: var(--red);
  font-size: 0.68rem;
  white-space: nowrap;
}
.reference-details-link:hover {
  background: #fff4f5;
  text-decoration: none;
}
.reference-empty {
  padding: 2rem !important;
  color: #858892;
  text-align: center;
}
.appointment-form-card {
  order: 2;
}
.resident-history-card {
  order: 3;
}
.appointment-upcoming-card {
  min-height: 300px;
}
.appointment-module .appointment-upcoming-card,
.appointment-module .appointment-quick-card,
.appointment-module .appointment-help-card {
  border: 1px solid var(--request-border);
  background: var(--request-card);
  color: var(--request-text);
  box-shadow: 0 3px 14px rgba(26, 27, 35, 0.04);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.appointment-module .appointment-upcoming-card .card-heading h2,
.appointment-module .appointment-upcoming-card .card-heading p,
.appointment-module .appointment-help-card h3,
.appointment-module .appointment-help-card p,
.appointment-module .appointment-quick-card .card-heading h2,
.appointment-module .appointment-quick-card .card-heading p {
  color: var(--request-text);
}
.appointment-module .appointment-quick-grid a {
  border: 1px solid var(--request-border);
  background: var(--request-card);
  color: var(--request-text);
  box-shadow: 0 2px 8px rgba(26, 27, 35, 0.04);
}
.appointment-module .appointment-quick-grid a:hover,
.appointment-module .appointment-quick-grid a:focus-visible {
  border-color: var(--red);
  background: var(--request-card);
  color: var(--red);
  text-decoration: none;
  transform: translateY(-2px);
}
.appointment-module .appointment-quick-grid a i {
  background: rgba(142, 7, 16, 0.10);
  color: var(--red);
}
.appointment-module[data-theme="dark"] .appointment-quick-grid a {
  border-color: var(--request-border);
  background: #2a2d35;
  color: var(--request-text);
}
.appointment-module[data-theme="dark"] .appointment-quick-grid a i {
  background: rgba(255, 194, 206, 0.12);
  color: #ffc2ce;
}
.appointment-module[data-theme="dark"] .appointment-quick-grid a:hover,
.appointment-module[data-theme="dark"] .appointment-quick-grid a:focus-visible {
  border-color: #ffc2ce;
  color: #fff;
}
.appointment-module[data-theme="dark"] .today-schedule-card {
  background: var(--request-card);
}
.appointment-module .today-schedule-card .card-heading h2,
.appointment-module .today-schedule-card .card-heading p,
.appointment-module .today-schedule-card .appointment-calendar-toolbar h3,
.appointment-module .today-schedule-card .calendar-weekday,
.appointment-module .today-schedule-card .calendar-day-schedule h3 {
  color: #24252b !important;
}
.appointment-module .today-schedule-card .calendar-day-schedule h3 span,
.appointment-module
  .today-schedule-card
  .calendar-day-schedule
  .empty-requests {
  color: #5f626b !important;
}
.appointment-module .today-schedule-card .calendar-nav {
  color: #24252b !important;
}
.appointment-module .today-schedule-card .calendar-today-link {
  color: #8e0710 !important;
}
.appointment-module .today-schedule-card .calendar-day-number {
  color: #24252b !important;
}
.appointment-module
  .today-schedule-card
  .calendar-day.outside-month
  .calendar-day-number {
  color: #5f626b !important;
}
.appointment-module
  .today-schedule-card
  .calendar-day.selected
  .calendar-day-number {
  color: #6f0716 !important;
}
.appointment-module[data-theme="dark"] .today-schedule-card .card-heading h2,
.appointment-module[data-theme="dark"] .today-schedule-card .card-heading p,
.appointment-module[data-theme="dark"]
  .today-schedule-card
  .appointment-calendar-toolbar
  h3,
.appointment-module[data-theme="dark"]
  .today-schedule-card
  .calendar-day-schedule
  h3,
.appointment-module[data-theme="dark"]
  .today-schedule-card
  .calendar-day-number,
.appointment-module[data-theme="dark"] .today-schedule-card .calendar-nav {
  color: #f7f7f8 !important;
}
.appointment-module[data-theme="dark"] .today-schedule-card .calendar-weekday,
.appointment-module[data-theme="dark"]
  .today-schedule-card
  .calendar-day-schedule
  h3
  span,
.appointment-module[data-theme="dark"]
  .today-schedule-card
  .calendar-day-schedule
  .empty-requests,
.appointment-module[data-theme="dark"]
  .today-schedule-card
  .calendar-day.outside-month
  .calendar-day-number {
  color: #adb0ba !important;
}
.appointment-module[data-theme="dark"]
  .today-schedule-card
  .calendar-day.selected
  .calendar-day-number {
  color: #fff !important;
}
.appointment-module[data-theme="dark"] .calendar-day:hover,
.appointment-module[data-theme="dark"] .calendar-day.selected {
  background: rgba(178, 11, 53, 0.28);
}
.appointment-module[data-theme="dark"] .calendar-today-link {
  color: #ffc2ce;
}
.appointment-module[data-theme="dark"] .reference-details-link {
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffc2ce;
}
.appointment-module[data-theme="dark"] .reference-details-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Resident announcements */
.announcement-module {
  background: var(--request-bg);
}
.announcement-module .request-content {
  background: var(--request-bg);
}
.announcement-module .request-topbar {
  background: var(--request-card);
  border-bottom: 1px solid var(--request-border);
  color: var(--request-text);
}
.announcement-module .request-topbar .dashboard-search {
  background: var(--request-card);
  border-color: var(--request-border);
}
.announcement-module .request-topbar .dashboard-search input {
  color: var(--request-text);
}
.announcement-module .request-topbar .dashboard-search input::placeholder,
.announcement-module .request-topbar .dashboard-search i,
.announcement-module .theme-toggle {
  color: var(--request-text);
}
.announcement-module .dashboard-user small {
  color: var(--request-muted);
}
.announcement-main {
  overflow-y: auto !important;
}
.announcement-module .request-breadcrumb,
.announcement-module .request-breadcrumb a {
  color: var(--request-muted);
}
.announcement-module .request-title-row h1,
.announcement-module .request-title-row p {
  color: var(--request-text);
}
.announcement-module .request-title-row p {
  color: var(--request-muted);
}
.announcement-module .dashboard-footer {
  background: var(--request-card);
  border: 1px solid var(--request-border);
  border-bottom: 0;
  color: var(--request-muted);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.announcement-module .dashboard-footer > span:first-child,
.announcement-module .dashboard-footer small {
  color: var(--request-muted);
}
.announcement-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 275px;
  gap: 1rem;
  align-items: start;
}
.announcement-detail-card,
.announcement-related-card,
.announcement-safety-card {
  border: 1px solid var(--request-border);
  border-radius: 0.75rem;
  background: var(--request-card);
  box-shadow: 0 3px 14px rgba(26, 27, 35, 0.04);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.announcement-detail-card {
  min-width: 0;
  padding: 1.1rem;
  color: #27262c;
}
.announcement-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  color: #777983;
  font-size: 0.58rem;
}
.announcement-badge {
  padding: 0.28rem 0.5rem;
  border-radius: 1rem;
  background: #f8e2e4;
  color: var(--red);
  font-weight: 800;
}
.announcement-detail-card h2 {
  margin: 0.8rem 0 0.35rem;
  color: #27262c;
  font-size: 1.3rem;
  font-weight: 800;
}
.announcement-author {
  color: #777983;
  font-size: 0.6rem;
}
.announcement-author i {
  color: var(--red);
  margin-right: 0.2rem;
}
.announcement-author span {
  margin: 0 0.35rem;
}
.announcement-hero-image {
  height: 205px;
  margin: 0.9rem 0 1rem;
  border-radius: 0.55rem;
  background:
    linear-gradient(90deg, rgba(12, 17, 21, 0.16), rgba(12, 17, 21, 0.04)),
    url("../images/barangay.jpg") center / cover;
}
.announcement-message {
  color: #50525a;
  font-size: 0.72rem;
  line-height: 1.7;
  white-space: normal;
}
.announcement-readonly-note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 1rem;
  padding: 0.7rem;
  border-radius: 0.55rem;
  background: #fff5f5;
  color: var(--red);
}
.announcement-readonly-note > i {
  margin-top: 0.1rem;
}
.announcement-readonly-note span {
  display: grid;
  gap: 0.2rem;
}
.announcement-readonly-note strong {
  font-size: 0.62rem;
}
.announcement-readonly-note small {
  color: #777983;
  font-size: 0.56rem;
  line-height: 1.45;
}
.announcement-side {
  display: grid;
  gap: 1rem;
}
.announcement-related-card {
  padding: 0.9rem;
}
.announcement-related-card .card-heading h2 {
  color: #27262c;
  font-size: 0.8rem;
}
.announcement-related-card .card-heading p {
  color: #858892;
}
.announcement-related-list {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.7rem;
}
.announcement-related-list a {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.55rem 0.4rem;
  border-radius: 0.45rem;
  color: #27262c;
}
.announcement-related-list a:hover,
.announcement-related-list a.selected {
  background: #fff2f3;
  text-decoration: none;
}
.announcement-related-list a.selected .announcement-dot {
  background: var(--red);
}
.announcement-related-list a:nth-child(2) .announcement-dot {
  background: #2488c6;
}
.announcement-related-list a:nth-child(3) .announcement-dot {
  background: #2d9b57;
}
.announcement-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 0.3rem;
  border-radius: 50%;
  background: #d7a11f;
}
.announcement-related-list a > span:last-child {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}
.announcement-related-list strong {
  font-size: 0.6rem;
  overflow-wrap: anywhere;
}
.announcement-related-list small {
  color: #858892;
  font-size: 0.5rem;
}
.announcement-side-empty {
  color: #858892;
  font-size: 0.6rem;
}
.announcement-module[data-theme="dark"] .announcement-detail-card,
.announcement-module[data-theme="dark"] .announcement-detail-card h2,
.announcement-module[data-theme="dark"] .announcement-related-card,
.announcement-module[data-theme="dark"] .announcement-related-card .card-heading h2,
.announcement-module[data-theme="dark"] .announcement-related-list a,
.announcement-module[data-theme="dark"] .announcement-related-list strong,
.announcement-module[data-theme="dark"] .announcement-empty,
.announcement-module[data-theme="dark"] .announcement-empty h2,
.announcement-module[data-theme="dark"] .announcement-message {
  color: var(--request-text);
}
.announcement-module[data-theme="dark"] .announcement-detail-meta,
.announcement-module[data-theme="dark"] .announcement-author,
.announcement-module[data-theme="dark"] .announcement-related-card .card-heading p,
.announcement-module[data-theme="dark"] .announcement-related-list small,
.announcement-module[data-theme="dark"] .announcement-side-empty,
.announcement-module[data-theme="dark"] .announcement-readonly-note small,
.announcement-module[data-theme="dark"] .announcement-empty p {
  color: var(--request-muted);
}
.announcement-module[data-theme="dark"] .announcement-badge {
  background: rgba(255, 194, 206, 0.12);
  color: #ffc2ce;
}
.announcement-module[data-theme="dark"] .announcement-readonly-note {
  background: rgba(255, 194, 206, 0.08);
  color: #ffc2ce;
}
.announcement-module[data-theme="dark"] .announcement-related-list a:hover,
.announcement-module[data-theme="dark"] .announcement-related-list a.selected {
  background: rgba(255, 194, 206, 0.10);
  color: #fff;
}
.announcement-safety-card {
  min-height: 160px;
  padding: 1rem;
  color: white;
  background: #8e0710;
}
.appointment-module *,
.announcement-module * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.appointment-module .today-schedule-item {
  background: var(--request-card);
}
.announcement-safety-card > i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 0.65rem;
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.17);
}
.announcement-safety-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
}
.announcement-safety-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.6rem;
  line-height: 1.5;
}
.announcement-empty {
  display: grid;
  place-items: center;
  min-height: 350px;
  color: #858892;
  text-align: center;
}
.announcement-empty i {
  color: var(--red);
  font-size: 2rem;
}
.announcement-empty h2 {
  margin: 0.7rem 0 0.3rem;
  font-size: 1rem;
}
.announcement-empty p {
  font-size: 0.68rem;
}
@media (max-width: 900px) {
  .announcement-layout {
    grid-template-columns: 1fr;
  }
  .announcement-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .announcement-module {
    background-attachment: scroll;
  }
  .announcement-side {
    grid-template-columns: 1fr;
  }
  .announcement-hero-image {
    height: 145px;
  }
}

@media (max-width: 900px) {
  .appointment-reference-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .appointment-dashboard-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .appointment-module {
    background-attachment: scroll;
  }
  .appointment-reference-stats {
    gap: 0.45rem;
  }
  .appointment-reference-stats article {
    padding: 0.5rem;
  }
  .reference-table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .reference-table-filters {
    flex-direction: column;
  }
}

.weather-dashboard .dashboard-content {
  background: #f3f5f9;
}
.weather-main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 1.6rem clamp(1rem, 3vw, 2.5rem) 2.5rem;
}
.weather-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}
.weather-page-heading .eyebrow {
  margin: 0 0 0.4rem;
  color: #a50d29;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.weather-page-heading h1 {
  margin: 0;
  color: #222632;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 800;
}
.weather-page-heading p {
  margin: 0.35rem 0 0;
  color: #737b89;
  font-size: 0.88rem;
}
.weather-auto-status {
  display: grid;
  grid-template-columns: 12px auto;
  align-items: center;
  column-gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #dfe5ec;
  border-radius: 0.75rem;
  background: #fff;
  color: #566071;
  font-size: 0.72rem;
}
.weather-auto-status strong {
  grid-column: 2;
  color: #232a37;
  font-size: 0.8rem;
}
.weather-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #16a36a;
  box-shadow: 0 0 0 4px rgba(22, 163, 106, 0.13);
}
.weather-sync-warning {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.weather-current-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.75fr);
  gap: 1rem;
  overflow: hidden;
  min-height: 260px;
  margin-bottom: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 1.15rem;
  background: linear-gradient(120deg, #812034 0%, #571a38 54%, #302952 100%);
  color: #fff;
  box-shadow: 0 16px 36px rgba(47, 30, 57, 0.2);
}
.weather-current-backdrop-icon {
  position: absolute;
  top: -70px;
  right: 15%;
  color: rgba(255, 255, 255, 0.055);
  font-size: 24rem;
  line-height: 1;
  pointer-events: none;
}
.weather-current-overview,
.weather-current-stats {
  position: relative;
  z-index: 1;
}
.weather-current-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.8rem;
  font-weight: 600;
}
.weather-current-label i {
  color: #ffd58a;
}
.weather-current-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.2rem 0 1.35rem;
}
.weather-current-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  color: #ffe0a6;
  font-size: 2.7rem;
}
.weather-current-main > div {
  display: grid;
}
.weather-current-main strong {
  font-size: clamp(3.2rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 1;
}
.weather-current-main sup {
  margin-left: 0.25rem;
  font-size: 1.35rem;
  letter-spacing: 0;
  vertical-align: top;
}
.weather-current-main > div > span {
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
}
.weather-current-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.68rem;
}
.weather-current-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.weather-current-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 0.65rem;
}
.weather-current-stats article {
  display: grid;
  gap: 0.45rem;
  min-height: 86px;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
}
.weather-current-stats article > span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
}
.weather-current-stats article > span i {
  color: #ffd58a;
}
.weather-current-stats article > strong {
  color: #fff;
  font-size: 1.35rem;
}
.weather-current-stats article > strong small {
  font-size: 0.65rem;
  font-weight: 500;
}
.weather-current-stats article > small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.6rem;
}
.weather-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0 0.75rem;
}
.weather-section-heading > div {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.weather-section-heading h2 {
  margin: 0;
  color: #262b36;
  font-size: 1rem;
  font-weight: 800;
}
.weather-section-heading p {
  margin: 0.15rem 0 0;
  color: #89909d;
  font-size: 0.68rem;
}
.weather-section-heading > span {
  color: #858d9a;
  font-size: 0.66rem;
}
.weather-section-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 0.65rem;
  background: #fff1dc;
  color: #c06d13;
  font-size: 1rem;
}
.weather-section-icon-blue {
  background: #e8f0ff;
  color: #4573c4;
}
.weather-chart-card,
.weather-history-panel {
  padding: 1.15rem 1.25rem;
  border: 1px solid #e6e9ef;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 5px 18px rgba(31, 43, 66, 0.045);
}
.weather-chart-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.weather-chart-title > div {
  display: grid;
  gap: 0.15rem;
}
.weather-chart-title strong {
  color: #343a46;
  font-size: 0.82rem;
}
.weather-chart-title > div > span {
  color: #9299a5;
  font-size: 0.62rem;
}
.weather-chart-current {
  padding: 0.3rem 0.6rem;
  border-radius: 2rem;
  background: #fff4e5;
  color: #aa631b;
  font-size: 0.68rem;
  font-weight: 700;
}
.weather-chart-wrap {
  overflow: hidden;
  margin: 0.35rem 0 0.2rem;
}
.weather-temperature-chart {
  display: block;
  width: 100%;
  min-width: 520px;
  height: 175px;
  overflow: visible;
}
.weather-chart-gridline {
  stroke: #edf0f4;
  stroke-width: 1;
}
.weather-chart-area {
  fill: url(#weatherAreaFill);
}
.weather-chart-line {
  fill: none;
  stroke: #ef9b36;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.weather-chart-label {
  fill: #9199a6;
  font-family: inherit;
  font-size: 10px;
}
.weather-hourly-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #edf0f4;
}
.weather-hourly-strip article {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.2rem;
  border-radius: 0.6rem;
  background: #f8f9fc;
}
.weather-hourly-strip article > span {
  color: #818a98;
  font-size: 0.6rem;
}
.weather-hourly-strip article > i {
  color: #d78a29;
  font-size: 1.15rem;
}
.weather-hourly-strip article > strong {
  color: #303744;
  font-size: 0.8rem;
}
.weather-hourly-strip article > small {
  color: #71819a;
  font-size: 0.53rem;
  white-space: nowrap;
}
.weather-forecast-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.6rem;
}
.weather-forecast-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 0.9rem 0.55rem 0.75rem;
  border: 1px solid #e7eaf0;
  border-radius: 0.8rem;
  background: #fff;
  text-align: center;
  box-shadow: 0 4px 14px rgba(31, 43, 66, 0.035);
}
.weather-forecast-card.is-today {
  border-color: #e8c996;
  background: linear-gradient(180deg, #fff8eb, #fff);
  box-shadow: 0 5px 16px rgba(174, 118, 36, 0.1);
}
.weather-forecast-day {
  display: grid;
  color: #626d7c;
  font-size: 0.7rem;
  font-weight: 800;
}
.weather-forecast-day small {
  margin-top: 0.1rem;
  color: #9aa1ac;
  font-size: 0.58rem;
  font-weight: 500;
}
.weather-forecast-icon {
  margin: 0.7rem 0 0.45rem;
  color: #d98a2c;
  font-size: 1.65rem;
}
.weather-forecast-summary {
  min-height: 2rem;
  color: #505a69;
  font-size: 0.6rem;
}
.weather-forecast-temperatures {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  margin: 0.4rem 0 0.5rem;
}
.weather-forecast-temperatures strong {
  color: #333a47;
  font-size: 0.92rem;
}
.weather-forecast-temperatures span {
  color: #9aa1ac;
  font-size: 0.78rem;
}
.weather-forecast-rain,
.weather-forecast-wind {
  color: #5582bb;
  font-size: 0.6rem;
}
.weather-forecast-rain span {
  color: #9aa1ac;
}
.weather-forecast-wind {
  margin-top: 0.35rem;
  color: #758196;
}
.weather-forecast-sun {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  margin-top: 0.55rem;
  padding-top: 0.5rem;
  border-top: 1px solid #edf0f4;
  color: #98908a;
  font-size: 0.52rem;
}
.weather-forecast-sun span {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}
.weather-forecast-sun i {
  color: #d69536;
}
.weather-recommendation {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #d8eee4;
  border-radius: 0.75rem;
  background: #f0faf4;
}
.weather-recommendation > span {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  border-radius: 0.6rem;
  background: #dcf3e7;
  color: #25885a;
}
.weather-recommendation strong {
  color: #28714e;
  font-size: 0.72rem;
}
.weather-recommendation p {
  margin: 0.18rem 0 0;
  color: #627568;
  font-size: 0.68rem;
}
.weather-recommendation.is-watch {
  border-color: #f4e3bf;
  background: #fffaf0;
}
.weather-recommendation.is-watch > span {
  background: #fff0cf;
  color: #ba7a13;
}
.weather-recommendation.is-watch strong {
  color: #9b6811;
}
.weather-recommendation.is-warning {
  border-color: #f2d4d7;
  background: #fff3f3;
}
.weather-recommendation.is-warning > span {
  background: #ffe2e2;
  color: #bf3541;
}
.weather-recommendation.is-warning strong {
  color: #a32d37;
}
.weather-no-data {
  display: grid;
  justify-items: center;
  margin-bottom: 1.25rem;
  padding: 3rem 1rem;
  border: 1px dashed #d7dce5;
  border-radius: 1rem;
  background: #fff;
  text-align: center;
}
.weather-no-data > span {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 0.75rem;
  border-radius: 1rem;
  background: #eef3fb;
  color: #5b7faf;
  font-size: 1.8rem;
}
.weather-no-data h2 {
  margin: 0;
  color: #343b48;
  font-size: 1rem;
}
.weather-no-data p {
  max-width: 480px;
  margin: 0.4rem 0;
  color: #7e8795;
  font-size: 0.72rem;
}
.weather-no-data small {
  color: #929aa6;
  font-size: 0.65rem;
}
.weather-empty-state {
  margin: 0;
  padding: 1rem 0.25rem;
  color: #8a929f;
  font-size: 0.7rem;
  text-align: center;
}
.weather-history-panel {
  margin-top: 1.4rem;
}
.weather-history-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #edf0f4;
}
.weather-history-heading h2 {
  margin: 0;
  color: #303744;
  font-size: 0.9rem;
  font-weight: 800;
}
.weather-history-heading p {
  margin: 0.2rem 0 0;
  color: #9199a5;
  font-size: 0.65rem;
}
.weather-history-heading > i {
  color: #9ca6b5;
  font-size: 1.25rem;
}
.weather-history-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 0.1rem;
  border-bottom: 1px solid #f0f2f5;
}
.weather-history-row:last-of-type {
  border-bottom: 0;
}
.weather-history-icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  border-radius: 0.65rem;
  background: #fff3e3;
  color: #c17a25;
  font-size: 1.1rem;
}
.weather-history-details {
  display: grid;
  flex: 1;
  gap: 0.12rem;
  min-width: 0;
}
.weather-history-details strong {
  overflow: hidden;
  color: #414956;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.weather-history-details span,
.weather-history-details small {
  overflow: hidden;
  color: #89919d;
  font-size: 0.6rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.weather-history-status {
  padding: 0.28rem 0.5rem;
  border-radius: 2rem;
  background: #fff4d9;
  color: #99701a;
  font-size: 0.58rem;
  font-weight: 700;
  white-space: nowrap;
}
.weather-history-status.status-approved {
  background: #e3f5eb;
  color: #36805b;
}
.weather-history-status.status-dismissed {
  background: #eff1f4;
  color: #717985;
}
.weather-history-actions {
  display: flex;
  gap: 0.35rem;
}
.weather-history-actions .btn {
  font-size: 0.58rem;
}
@media (max-width: 1050px) {
  .weather-forecast-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .weather-current-card {
    grid-template-columns: 1fr;
  }
  .weather-current-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .weather-current-stats article {
    min-height: 75px;
    padding: 0.6rem;
  }
  .weather-current-stats article > span {
    font-size: 0.58rem;
  }
  .weather-current-stats article > strong {
    font-size: 1.05rem;
  }
}
@media (max-width: 600px) {
  .weather-main {
    padding: 1rem 0.8rem 2rem;
  }
  .weather-page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .weather-current-main strong {
    font-size: 3.5rem;
  }
  .weather-current-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .weather-section-heading {
    align-items: flex-start;
  }
  .weather-hourly-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .weather-forecast-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .weather-forecast-card {
    min-height: 210px;
  }
  .weather-history-row {
    flex-wrap: wrap;
  }
  .weather-history-details {
    flex-basis: calc(100% - 55px);
  }
  .weather-history-status {
    margin-left: 48px;
  }
  .weather-history-actions {
    margin-left: auto;
  }
}

.analytics-dashboard .dashboard-content {
  background: #f5f3f5;
}
.analytics-main {
  width: min(1500px, 100%);
  padding-top: 1.5rem;
}
.analytics-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.analytics-heading .eyebrow {
  margin: 0 0 0.3rem;
  color: #a7193e;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.analytics-heading h1 {
  margin: 0;
  color: #242a36;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
}
.analytics-heading p {
  margin: 0.25rem 0 0;
  color: #7e8795;
  font-size: 0.75rem;
}
.analytics-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid #e3e7ed;
  border-radius: 0.6rem;
  background: #fff;
  color: #798291;
  font-size: 0.63rem;
  white-space: nowrap;
}
.analytics-kpi-comparison-note {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: -0.55rem 0 0.65rem;
  color: #8d929c;
  font-size: 0.55rem;
}
.analytics-kpi-comparison-note i {
  color: #a7193e;
}
.analytics-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.analytics-kpi {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid #e8e4e8;
  border-top: 3px solid #a7193e;
  border-radius: 0.8rem;
  background: #fff;
  box-shadow: 0 5px 18px rgba(65, 20, 37, 0.055);
}
.analytics-kpi-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 0.7rem;
  background: #f0edff;
  color: #7261c4;
  font-size: 1.15rem;
}
.analytics-kpi-documents .analytics-kpi-icon {
  background: #fff0e8;
  color: #db783f;
}
.analytics-kpi-households .analytics-kpi-icon {
  background: #e8f4ff;
  color: #4384bd;
}
.analytics-kpi-appointments .analytics-kpi-icon {
  background: #e8f4ff;
  color: #4384bd;
}
.analytics-kpi-blotter .analytics-kpi-icon {
  background: #ffecef;
  color: #c45063;
}
.analytics-kpi-staff .analytics-kpi-icon {
  background: #e8f7ef;
  color: #378760;
}
.analytics-kpi-revenue .analytics-kpi-icon {
  background: #fff5dd;
  color: #b38326;
}
.analytics-kpi-alerts .analytics-kpi-icon {
  background: #fff0e8;
  color: #ce694b;
}
.analytics-kpi > div {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.analytics-kpi small {
  color: #808997;
  font-size: 0.62rem;
}
.analytics-kpi strong {
  overflow: hidden;
  color: #29303c;
  font-size: 1.35rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.analytics-kpi-revenue strong {
  font-size: 0.92rem;
}
.analytics-kpi > div > span {
  overflow: hidden;
  color: #a0a6b0;
  font-size: 0.56rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.analytics-kpi > div > .analytics-kpi-change {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  overflow: visible;
  margin-top: 0.15rem;
  white-space: normal;
}
.analytics-kpi-change > strong {
  color: #398a5c;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.2;
}
.analytics-kpi-change > strong i {
  font-size: 0.55rem;
}
.analytics-kpi-change > small {
  color: #9399a4;
  font-size: 0.48rem;
  line-height: 1.35;
}
.analytics-kpi-change.is-down > strong {
  color: #d34f5b;
}
.analytics-kpi-change.is-new > strong {
  color: #557fc0;
}
.analytics-kpi-change.is-neutral > strong {
  color: #89909a;
}
.analytics-panel {
  min-width: 0;
  padding: 1rem;
  border: 1px solid #e8e4e8;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 5px 18px rgba(65, 20, 37, 0.045);
}
.analytics-ai-panel {
  margin-bottom: 0.85rem;
  border-color: #e4dff5;
  background: linear-gradient(125deg, #fff, #fbfaff);
}
.analytics-panel-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.analytics-panel-heading > div {
  flex: 1;
  min-width: 0;
}
.analytics-panel-heading h2 {
  margin: 0;
  color: #303642;
  font-size: 0.82rem;
  font-weight: 800;
}
.analytics-panel-heading p {
  margin: 0.18rem 0 0;
  color: #9299a5;
  font-size: 0.59rem;
  line-height: 1.45;
}
.analytics-panel-icon {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 0.65rem;
  background: #f0edff;
  color: #7563c4;
  font-size: 1rem;
}
.analytics-ai-icon {
  background: #ece7ff;
  color: #7053c6;
}
.analytics-doc-icon {
  background: #fff0e8;
  color: #d97742;
}
.analytics-type-icon {
  background: #edf2ff;
  color: #536fc0;
}
.analytics-week-icon {
  background: #e7f6f1;
  color: #379477;
}
.analytics-status-icon {
  background: #fff1e2;
  color: #bf7a2d;
}
.analytics-weather-icon {
  background: #e7f3ff;
  color: #4a87c2;
}
.analytics-staff-icon {
  background: #e9f6ec;
  color: #4a9562;
}
.analytics-resident-icon {
  background: #e9efff;
  color: #647ac0;
}
.analytics-blotter-icon {
  background: #fff0ee;
  color: #c26458;
}
.analytics-comms-icon {
  background: #f7eafd;
  color: #9c64b1;
}
.analytics-alert-icon {
  background: #fff0e8;
  color: #ce694b;
}
.analytics-ai-panel .analytics-panel-heading {
  align-items: flex-start;
}
.analytics-ai-button {
  flex: 0 0 auto;
  padding: 0.48rem 0.7rem;
  font-size: 0.62rem;
  white-space: nowrap;
}
.analytics-ai-result {
  margin-top: 0.9rem;
  padding: 0.9rem;
  border: 1px solid #e8e4f2;
  border-radius: 0.65rem;
  background: #fff;
  color: #454459;
  font-size: 0.72rem;
  line-height: 1.7;
  white-space: pre-wrap;
}
.analytics-ai-placeholder {
  display: flex;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
  color: #858393;
  font-size: 0.62rem;
  line-height: 1.5;
}
.analytics-ai-placeholder i {
  color: #866ed0;
}
.analytics-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.8rem;
}
.analytics-activity-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 0.85rem 0 0.1rem;
}
.analytics-activity-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  color: #5e6570;
  font-size: 0.56rem;
}
.analytics-activity-legend i {
  display: block;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--series-color);
}
.analytics-activity-chart {
  width: 100%;
  margin-top: 0.25rem;
}
.analytics-activity-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.analytics-activity-gridline {
  stroke: #e8e8ec;
  stroke-width: 1;
}
.analytics-activity-axis-label,
.analytics-activity-month-label {
  fill: #737985;
  font-family: inherit;
  font-size: 11px;
}
.analytics-horizontal-bars {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.1rem;
}
.analytics-horizontal-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.28rem;
  color: #67717f;
  font-size: 0.62rem;
}
.analytics-horizontal-row strong {
  color: #424a57;
}
.analytics-horizontal-track {
  height: 7px;
  overflow: hidden;
  border-radius: 9px;
  background: #f0f2f6;
}
.analytics-horizontal-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7086dc, #9f70d5);
}
.analytics-weekdays {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}
.analytics-weekday-row {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) 2rem;
  align-items: center;
  gap: 0.55rem;
}
.analytics-weekday-row > span {
  color: #747d8b;
  font-size: 0.6rem;
}
.analytics-weekday-row > div {
  height: 9px;
  overflow: hidden;
  border-radius: 9px;
  background: #f0f3f6;
}
.analytics-weekday-row > div i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #48b99a, #7dc8a5);
}
.analytics-weekday-row > strong {
  color: #4a5360;
  font-size: 0.6rem;
  text-align: right;
}
.analytics-status-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.8rem;
}
.analytics-status-list > div {
  display: grid;
  grid-template-columns: 9px 1fr auto;
  align-items: center;
  gap: 0.4rem;
  color: #717a87;
  font-size: 0.6rem;
}
.analytics-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e2a53a;
}
.analytics-status-dot.status-completed,
.analytics-status-dot.status-released {
  background: #52a67b;
}
.analytics-status-dot.status-rejected,
.analytics-status-dot.status-cancelled {
  background: #d66b75;
}
.analytics-status-dot.status-processing,
.analytics-status-dot.status-approved {
  background: #5b8fd1;
}
.analytics-status-dot.status-inactive,
.analytics-status-dot.status-moved,
.analytics-status-dot.status-deceased {
  background: #a4aab4;
}
.analytics-status-list strong {
  color: #3f4753;
}
.analytics-status-list > div > div {
  grid-column: 2 / -1;
  height: 4px;
  overflow: hidden;
  border-radius: 5px;
  background: #f0f2f5;
}
.analytics-status-list > div > div i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #8394d4;
}
.analytics-subheading {
  margin: 0.9rem 0 0.45rem;
  color: #555e6b;
  font-size: 0.65rem;
  font-weight: 800;
}
.analytics-appointment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.analytics-appointment-tags span {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  padding: 0.3rem 0.45rem;
  border-radius: 0.4rem;
  background: #f4f6f9;
  color: #727b88;
  font-size: 0.53rem;
}
.analytics-appointment-tags strong {
  color: #444d5a;
}
.analytics-mini-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.8rem;
}
.analytics-mini-summary > span {
  display: flex;
  gap: 0.35rem;
  padding: 0.3rem 0.45rem;
  border-radius: 0.4rem;
  background: #f4f6f9;
  color: #727b88;
  font-size: 0.53rem;
}
.analytics-mini-summary strong {
  color: #444d5a;
}
.analytics-category-list {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.7rem;
}
.analytics-category-list > div {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: #77808c;
  font-size: 0.57rem;
}
.analytics-category-list strong {
  color: #454d59;
}
.analytics-disaster-total {
  margin: 0.8rem 0 0;
  color: #78818e;
  font-size: 0.58rem;
}
.analytics-disaster-total strong {
  color: #404955;
  font-size: 0.8rem;
}
.analytics-weather-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
}
.analytics-weather-list > div {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 2.4rem minmax(4rem, auto);
  align-items: center;
  gap: 0.45rem;
  color: #77818e;
  font-size: 0.55rem;
}
.analytics-weather-list > div > div {
  height: 7px;
  overflow: hidden;
  border-radius: 9px;
  background: #eef4fa;
}
.analytics-weather-list > div > div i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #72ace1, #e9a947);
}
.analytics-weather-list strong {
  color: #535c68;
  text-align: right;
}
.analytics-weather-list small {
  overflow: hidden;
  color: #8d96a3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.analytics-latest-weather {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
  padding: 0.55rem;
  border-radius: 0.55rem;
  background: #f3f8fc;
  color: #687789;
  font-size: 0.58rem;
}
.analytics-latest-weather i {
  color: #5795cf;
  font-size: 0.9rem;
}
.analytics-latest-weather strong {
  margin-left: auto;
  color: #3d4c5c;
  font-size: 0.68rem;
}
.analytics-weather-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.75rem;
  color: #8b5a9e;
  font-size: 0.59rem;
  font-weight: 700;
}
.analytics-staff-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.9rem;
}
.analytics-staff-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 0.5rem;
}
.analytics-staff-avatar {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #e8f5ed;
  color: #42865c;
  font-size: 0.62rem;
  font-weight: 800;
}
.analytics-staff-name {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}
.analytics-staff-name strong {
  overflow: hidden;
  color: #4c5562;
  font-size: 0.6rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.analytics-staff-name small {
  color: #969eaa;
  font-size: 0.52rem;
}
.analytics-staff-hours {
  display: grid;
  justify-items: end;
}
.analytics-staff-hours strong {
  color: #454f5d;
  font-size: 0.65rem;
}
.analytics-staff-hours small {
  color: #9aa2ad;
  font-size: 0.48rem;
}
.analytics-staff-track {
  grid-column: 2 / -1;
  height: 4px;
  overflow: hidden;
  margin-top: -0.25rem;
  border-radius: 5px;
  background: #eff3f0;
}
.analytics-staff-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #65b986;
}
.analytics-empty {
  margin: 1rem 0 0;
  color: #929aa6;
  font-size: 0.62rem;
  text-align: center;
}
.analytics-privacy-note {
  display: flex;
  gap: 0.4rem;
  margin: 0.85rem 0 0;
  color: #8b939f;
  font-size: 0.57rem;
  line-height: 1.5;
}
.analytics-privacy-note i {
  color: #56916f;
}
.analytics-panel-period {
  flex: 0 0 auto;
  padding: 0.28rem 0.4rem;
  border-radius: 0.35rem;
  background: #f1f7f2;
  color: #5b8967;
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.analytics-comms-panel {
  border-top: 3px solid #a7193e;
}
.analytics-heading-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #a7193e;
  font-size: 0.57rem;
  font-weight: 800;
  white-space: nowrap;
}
.analytics-announcement-tags {
  margin-top: 0.5rem;
}
.analytics-announcement-tags > span {
  background: #fff4f5;
  color: #8d5b66;
}
.analytics-announcement-tags > span strong {
  color: #97233f;
}
.analytics-delivery-summary {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 0.9rem;
  padding: 0.65rem 0.7rem;
  border-radius: 0.6rem;
  background: linear-gradient(110deg, #fff4f4, #fff9f7);
}
.analytics-delivery-summary > strong {
  color: #9e1d3c;
  font-size: 1.05rem;
}
.analytics-delivery-summary small {
  color: #78666a;
  font-size: 0.56rem;
  font-weight: 600;
}
.analytics-delivery-summary > span {
  color: #8e929c;
  font-size: 0.57rem;
}
.analytics-delivery-list {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.55rem;
}
.analytics-delivery-list > div {
  display: grid;
  grid-template-columns: minmax(3rem, 0.7fr) minmax(4rem, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.4rem;
  border-bottom: 1px solid #f0edf0;
  font-size: 0.56rem;
}
.analytics-delivery-channel {
  color: #68717e;
  font-weight: 700;
}
.analytics-delivery-status {
  width: fit-content;
  padding: 0.18rem 0.35rem;
  border-radius: 99px;
  background: #f1f3f6;
  color: #747d89;
  font-size: 0.48rem;
  font-weight: 800;
}
.analytics-delivery-status.delivery-sent,
.analytics-delivery-status.delivery-delivered {
  background: #eaf6ed;
  color: #43835a;
}
.analytics-delivery-status.delivery-failed {
  background: #fff0ef;
  color: #b94b4a;
}
.analytics-delivery-status.delivery-queued {
  background: #fff6e6;
  color: #a77a31;
}
.analytics-delivery-list strong {
  color: #404955;
  text-align: right;
}
.analytics-delivery-empty {
  margin-top: 0.6rem;
  text-align: left;
}
.analytics-delivery-note {
  margin: 0.55rem 0 0;
  color: #9a9eaa;
  font-size: 0.5rem;
  line-height: 1.5;
}
.analytics-disaster-panel {
  grid-column: 1 / -1;
  border-top: 3px solid #a7193e;
}
.analytics-disaster-count {
  flex: 0 0 auto;
  padding: 0.32rem 0.5rem;
  border-radius: 99px;
  background: #fff0f0;
  color: #a51d37;
  font-size: 0.55rem;
}
.analytics-disaster-severities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.75rem 0;
}
.analytics-disaster-severities > span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.5rem;
  border-radius: 0.45rem;
  background: #f5f2f4;
  color: #737985;
  font-size: 0.54rem;
}
.analytics-disaster-severities strong {
  color: #4a505b;
}
.analytics-disaster-workspace {
  display: grid;
  grid-template-columns: minmax(250px, 0.82fr) minmax(0, 1.18fr);
  gap: 0.9rem;
  align-items: start;
}
.analytics-disaster-form {
  display: grid;
  gap: 0.45rem;
  padding: 0.8rem;
  border: 1px solid #eee8eb;
  border-radius: 0.7rem;
  background: #fdfbfc;
}
.analytics-disaster-form h3,
.analytics-active-alerts > h3 {
  margin: 0 0 0.15rem;
  color: #414854;
  font-size: 0.68rem;
  font-weight: 800;
}
.analytics-disaster-form label {
  margin-top: 0.2rem;
  color: #656e7a;
  font-size: 0.55rem;
  font-weight: 700;
}
.analytics-disaster-form label small {
  color: #999eaa;
  font-size: 0.48rem;
  font-weight: 400;
}
.analytics-disaster-form .form-control {
  min-height: 34px;
  padding: 0.42rem 0.55rem;
  border-color: #e6e1e5;
  border-radius: 0.45rem;
  background-color: #fff;
  color: #444b57;
  font-size: 0.59rem;
}
.analytics-disaster-form textarea.form-control {
  min-height: 70px;
  resize: vertical;
}
.analytics-disaster-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}
.analytics-disaster-fields > div {
  display: grid;
  gap: 0.45rem;
}
.analytics-disaster-form .btn {
  justify-self: start;
  margin-top: 0.35rem;
  padding: 0.45rem 0.65rem;
  background: #a7193e;
  border-color: #a7193e;
  font-size: 0.58rem;
}
.analytics-active-alerts {
  display: grid;
  gap: 0.5rem;
}
.analytics-active-alert {
  padding: 0.65rem 0.7rem;
  border: 1px solid #eee9ed;
  border-radius: 0.65rem;
  background: #fff;
}
.analytics-active-alert-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}
.analytics-active-alert-top time {
  color: #9a9faa;
  font-size: 0.5rem;
}
.analytics-severity-badge {
  padding: 0.2rem 0.4rem;
  border-radius: 99px;
  background: #f0f2f5;
  color: #6d7480;
  font-size: 0.48rem;
  font-weight: 800;
  text-transform: uppercase;
}
.analytics-severity-badge.severity-warning,
.analytics-severity-badge.severity-emergency {
  background: #fff0ed;
  color: #b5413b;
}
.analytics-severity-badge.severity-watch,
.analytics-severity-badge.severity-advisory {
  background: #fff6e5;
  color: #a37725;
}
.analytics-active-alert > strong {
  display: block;
  color: #3e4652;
  font-size: 0.62rem;
}
.analytics-active-alert > p {
  margin: 0.25rem 0 0.45rem;
  color: #79818d;
  font-size: 0.55rem;
  line-height: 1.45;
  white-space: pre-line;
}
.analytics-alert-delivery {
  display: flex;
  gap: 0.7rem;
  color: #858c97;
  font-size: 0.5rem;
}
.analytics-alert-delivery .bi-check-circle {
  color: #51946b;
}
.analytics-alert-delivery .bi-exclamation-circle {
  color: #c56d5e;
}
.analytics-alert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.analytics-alert-actions .btn {
  padding: 0.25rem 0.4rem;
  font-size: 0.52rem;
}
.analytics-alert-actions form:first-child .btn {
  color: #a7193e;
  border-color: #d7a4b0;
}
.analytics-alert-actions form:first-child .btn:hover {
  color: #fff;
  background: #a7193e;
  border-color: #a7193e;
}
@media (max-width: 1000px) {
  .analytics-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .analytics-chart-grid {
    grid-template-columns: 1fr;
  }
  .analytics-disaster-panel {
    grid-column: auto;
  }
  .analytics-disaster-workspace {
    grid-template-columns: 1fr;
  }
  .analytics-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 540px) {
  .analytics-kpi-grid {
    gap: 0.5rem;
  }
  .analytics-kpi {
    gap: 0.5rem;
    padding: 0.65rem;
  }
  .analytics-kpi-icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }
  .analytics-kpi strong {
    font-size: 1.1rem;
  }
  .analytics-kpi-revenue strong {
    font-size: 0.76rem;
  }
  .analytics-ai-panel .analytics-panel-heading {
    flex-wrap: wrap;
  }
  .analytics-ai-panel .analytics-panel-heading > div {
    flex-basis: calc(100% - 48px);
  }
  .analytics-ai-button {
    margin-left: 44px;
  }
  .analytics-weather-list > div {
    grid-template-columns: 2.5rem minmax(0, 1fr) 2.4rem;
  }
  .analytics-weather-list small {
    display: none;
  }
}

.dashboard-content {
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
}
.dashboard-main,
.request-main,
.profile-main,
.ai-assistant-main,
.announcement-main,
.appointment-main,
.blotter-main {
  min-width: 0;
  max-width: 100%;
}
.request-columns > *,
.tracking-columns > *,
.blotter-columns > *,
.appointment-dashboard-grid > *,
.profile-layout > * {
  min-width: 0;
}
.staff-table {
  min-width: 680px;
}
.audit-filters {
  display: grid;
  grid-template-columns:
    minmax(220px, 1fr) repeat(2, minmax(150px, 0.35fr))
    auto auto;
  align-items: end;
  gap: 0.65rem;
  margin: 0.9rem 0 0.45rem;
}
.audit-filters label,
.request-status-filter label {
  display: grid;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}
.audit-filters .form-control,
.request-status-filter .form-control {
  min-height: 40px;
  background: #fff;
  border-color: #dfe3e9;
  color: #252a34;
  font-size: 0.75rem;
}
.audit-results-count {
  margin: 0.65rem 0;
  color: #7b8490;
  font-size: 0.68rem;
}
.admin-timesheet-panel {
  padding: 1.1rem !important;
}
.admin-timesheet-heading h2 {
  margin: 0;
  color: #303a47;
  font-size: 1rem;
  font-weight: 750;
}
.admin-timesheet-heading p {
  margin: 0.25rem 0 0;
  color: #7d8793;
  font-size: 0.68rem;
}
.admin-timesheet-filter {
  grid-template-columns: minmax(240px, 1fr) minmax(150px, 0.4fr) auto auto;
  margin: 0.9rem 0 1rem;
}
.admin-timesheet-filter .form-control {
  min-height: 40px;
  background: #fff;
  border-color: #dfe3e9;
  color: #252a34;
  font-size: 0.75rem;
}
.admin-timesheet-staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 0.65rem;
}
.admin-timesheet-staff-card {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem;
  border: 1px solid #e8ebf0;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #fff, #fafbfd);
}
.admin-timesheet-avatar {
  display: grid;
  flex: 0 0 2.5rem;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #f5e8ed;
  color: #91304f;
  font-size: 0.68rem;
  font-weight: 800;
}
.admin-timesheet-staff-info {
  display: grid;
  min-width: 0;
  gap: 0.15rem;
}
.admin-timesheet-staff-info strong {
  overflow: hidden;
  color: #303a47;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-timesheet-staff-info small {
  color: #828c98;
  font-size: 0.58rem;
}
.admin-timesheet-staff-stats {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid #edf0f3;
  border-bottom: 1px solid #edf0f3;
}
.admin-timesheet-staff-stats > span:not(.admin-timesheet-active) {
  display: grid;
  gap: 0.1rem;
}
.admin-timesheet-staff-stats strong {
  color: #3a4552;
  font-size: 0.7rem;
}
.admin-timesheet-staff-stats small {
  color: #858f9b;
  font-size: 0.53rem;
}
.admin-timesheet-active {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #32815a;
  font-size: 0.57rem;
  font-weight: 700;
}
.admin-timesheet-active i {
  font-size: 0.38rem;
}
.admin-timesheet-staff-card > .btn {
  grid-column: 1 / -1;
  justify-self: start;
  font-size: 0.58rem;
}
.admin-timesheet-selected {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.9rem 0;
  padding: 0.8rem;
  border: 1px solid #e8ebf0;
  border-radius: 0.75rem;
  background: linear-gradient(120deg, #fff, #fafbfd);
}
.admin-timesheet-selected .admin-timesheet-avatar {
  width: 3rem;
  height: 3rem;
  flex-basis: 3rem;
  font-size: 0.8rem;
}
.admin-timesheet-selected > div {
  display: grid;
  gap: 0.12rem;
}
.admin-timesheet-selected > div > small {
  color: #929aa4;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.admin-timesheet-selected h3 {
  margin: 0;
  color: #303a47;
  font-size: 0.9rem;
}
.admin-timesheet-selected > div > span {
  color: #77828f;
  font-size: 0.6rem;
}
.admin-attendance-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 0.7rem;
  margin: 0.8rem 0 1rem;
  padding: 0.8rem;
  border: 1px solid #e8ebf0;
  border-radius: 0.75rem;
  background: #fbfcfd;
}
.admin-attendance-stat {
  display: grid;
  gap: 0.2rem;
}
.admin-attendance-stat small {
  color: #7d8793;
  font-size: 0.6rem;
}
.admin-attendance-stat strong {
  color: #303a47;
  font-size: 0.8rem;
}
.admin-attendance-dates {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px solid #e8ebf0;
}
.admin-attendance-dates h4 {
  margin: 0 0 0.25rem;
  color: #46515e;
  font-size: 0.65rem;
  font-weight: 750;
}
.admin-attendance-dates p {
  margin: 0;
  color: #77828f;
  font-size: 0.62rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.admin-attendance-note {
  grid-column: 1 / -1;
  margin: 0;
  color: #8a929b;
  font-size: 0.56rem;
}
.admin-timesheet-table {
  min-width: 600px;
}
.admin-timesheet-table td {
  vertical-align: middle;
}
.staff-leave-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid #e8ebf0;
  border-radius: 1rem;
  background: linear-gradient(120deg, #fff, #f8fafc);
}
.staff-leave-heading h1 {
  margin: 0;
  color: #303a47;
  font-size: 1.25rem;
  font-weight: 800;
}
.staff-leave-heading p:not(.eyebrow) {
  margin: 0.35rem 0 0;
  color: #7d8793;
  font-size: 0.73rem;
}
.staff-leave-pending,
.staff-leave-policy {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e7ebf0;
  border-radius: 99px;
  background: #fff;
  color: #536171;
  font-size: 0.65rem;
  font-weight: 750;
}
.staff-leave-pending {
  border-color: #f0dfb8;
  background: #fff8e8;
  color: #8a641c;
}
.staff-leave-form-panel,
.staff-leave-list-panel {
  margin-bottom: 1rem;
  padding: 1.1rem !important;
}
.staff-leave-section-heading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.staff-leave-section-heading > span {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 0.7rem;
  background: #f6e8ed;
  color: #91304f;
  font-size: 1rem;
}
.staff-leave-section-heading h2,
.staff-leave-list-heading h2 {
  margin: 0;
  color: #303a47;
  font-size: 0.95rem;
  font-weight: 780;
}
.staff-leave-section-heading p,
.staff-leave-list-heading p {
  margin: 0.2rem 0 0;
  color: #7d8793;
  font-size: 0.66rem;
}
.staff-leave-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}
.staff-leave-form > label,
.staff-leave-admin-note-field {
  display: grid;
  gap: 0.35rem;
  color: #46515e;
  font-size: 0.67rem;
  font-weight: 700;
}
.staff-leave-form .form-control,
.staff-leave-review-form .form-control,
.staff-leave-filter .form-control {
  min-height: 40px;
  border-color: #dfe3e9;
  background: #fff;
  color: #252a34;
  font-size: 0.73rem;
}
.staff-leave-form .form-control:focus,
.staff-leave-review-form .form-control:focus {
  border-color: #a44c69;
  box-shadow: 0 0 0 0.2rem rgb(145 48 79 / 12%);
}
.staff-leave-reason {
  grid-column: 1 / -1;
}
.staff-leave-reason textarea {
  min-height: 90px;
  resize: vertical;
}
.staff-leave-reason small {
  color: #8a929b;
  font-size: 0.59rem;
  font-weight: 400;
}
.staff-leave-form-footer {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid #edf0f3;
}
.staff-leave-form-footer > span {
  color: #78838f;
  font-size: 0.63rem;
}
.staff-leave-form-footer > span i {
  margin-right: 0.25rem;
  color: #4a7894;
}
.staff-leave-form-footer .btn {
  background: #91304f;
  border-color: #91304f;
  font-size: 0.69rem;
}
.staff-leave-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.staff-leave-list-heading .eyebrow {
  margin-bottom: 0.25rem;
}
.staff-leave-filter {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.staff-leave-filter label {
  color: #737e8b;
  font-size: 0.62rem;
  font-weight: 700;
}
.staff-leave-filter .form-control {
  min-width: 130px;
}
.staff-leave-filter .btn {
  font-size: 0.65rem;
}
.staff-leave-request-list {
  display: grid;
  gap: 0.65rem;
}
.staff-leave-request-card {
  padding: 0.9rem;
  border: 1px solid #e8ebf0;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, #fff, #fbfcfd);
}
.staff-leave-request-top,
.staff-leave-request-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}
.staff-leave-request-title {
  justify-content: flex-start;
  min-width: 0;
}
.staff-leave-type-icon {
  display: grid;
  flex: 0 0 2.2rem;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: 0.65rem;
  background: #f6e8ed;
  color: #91304f;
}
.staff-leave-request-title h3 {
  margin: 0;
  color: #303a47;
  font-size: 0.75rem;
  font-weight: 780;
}
.staff-leave-request-title div > span {
  display: block;
  margin-top: 0.12rem;
  color: #78838f;
  font-size: 0.62rem;
}
.staff-leave-status {
  flex-shrink: 0;
  padding: 0.28rem 0.55rem;
  border-radius: 99px;
  font-size: 0.58rem;
  font-weight: 750;
}
.staff-leave-status.status-pending {
  background: #fff2d6;
  color: #946812;
}
.staff-leave-status.status-approved {
  background: #e3f5eb;
  color: #28774e;
}
.staff-leave-status.status-rejected {
  background: #fce8e9;
  color: #a3454c;
}
.staff-leave-status.status-withdrawn {
  background: #eff2f5;
  color: #66717e;
}
.staff-leave-requester {
  margin: 0.7rem 0 0;
  color: #526170;
  font-size: 0.64rem;
  font-weight: 700;
}
.staff-leave-requester i {
  margin-right: 0.3rem;
}
.staff-leave-reason-text {
  margin: 0.65rem 0;
  color: #515d69;
  font-size: 0.68rem;
  line-height: 1.55;
}
.staff-leave-request-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  color: #8a929b;
  font-size: 0.57rem;
}
.staff-leave-admin-note {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.65rem;
  padding: 0.6rem 0.7rem;
  border-left: 3px solid #8aabc2;
  border-radius: 0.25rem;
  background: #f3f7fa;
  color: #596a78;
  font-size: 0.63rem;
}
.staff-leave-admin-note strong {
  font-size: 0.59rem;
}
.staff-leave-review-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: end;
  gap: 0.7rem;
  margin-top: 0.75rem;
  padding-top: 0.7rem;
  border-top: 1px solid #edf0f3;
}
.staff-leave-review-form textarea {
  min-height: 54px;
  resize: vertical;
}
.staff-leave-review-form > div {
  display: flex;
  gap: 0.4rem;
}
.staff-leave-review-form .btn {
  font-size: 0.62rem;
}
.staff-leave-withdraw-form {
  margin-top: 0.65rem;
}
.staff-leave-withdraw-form .btn {
  font-size: 0.6rem;
}
.staff-leave-empty {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  padding: 2rem 1rem;
  color: #7d8793;
  text-align: center;
}
.staff-leave-empty > i {
  margin-bottom: 0.25rem;
  color: #aab3bd;
  font-size: 1.5rem;
}
.staff-leave-empty strong {
  color: #46515e;
  font-size: 0.75rem;
}
.staff-leave-empty span {
  font-size: 0.65rem;
}
.request-status-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.8rem 0;
  padding: 0 1rem;
}
.request-status-filter label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.request-status-filter label i {
  color: var(--red);
  font-size: 0.9rem;
}
.request-status-filter .form-control {
  width: auto;
  min-width: 190px;
}
.request-status-filter .btn-primary {
  min-height: 40px;
  padding: 0.5rem 0.9rem;
  background: var(--red);
  border-color: var(--red);
}
.request-status-filter .btn-primary:hover,
.request-status-filter .btn-primary:focus {
  background: var(--red-dark);
  border-color: var(--red-dark);
}
.request-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.8rem;
  color: #737b87;
  font-size: 0.68rem;
}
.request-pagination > div {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.document-template-panel {
  max-width: 900px;
}
.template-privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.75rem 0 1rem;
  color: #556777;
  font-size: 0.72rem;
}
.template-privacy-note i {
  color: #25835c;
}
.document-template-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
.document-template-fields .form-control {
  background: #fff;
  border-color: #dfe3e9;
  color: #252a34;
  font-size: 0.8rem;
}
.document-template-fields .form-label {
  color: #3e4651;
}
.template-field-wide {
  grid-column: 1 / -1;
}
.document-template-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  border-top: 1px solid #e8ebf0;
  margin-top: 1rem;
  padding-top: 0.9rem;
}

.analytics-age-content {
  display: grid;
  grid-template-columns: minmax(110px, 0.75fr) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  margin-top: 0.9rem;
}
.analytics-age-pie {
  display: grid;
  place-items: center;
  width: min(100%, 150px);
  aspect-ratio: 1;
  margin: auto;
  border-radius: 50%;
}
.analytics-age-pie > span {
  display: grid;
  place-content: center;
  width: 63%;
  height: 63%;
  border-radius: 50%;
  background: #fff;
  text-align: center;
}
.analytics-age-pie strong {
  color: #303846;
  font-size: 1.15rem;
  line-height: 1.2;
}
.analytics-age-pie small {
  color: #858d98;
  font-size: 0.58rem;
}
.analytics-age-legend {
  display: grid;
  gap: 0.6rem;
}
.analytics-age-legend > div {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  color: #515c69;
  font-size: 0.65rem;
}
.analytics-age-legend > div > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.analytics-age-legend > div > span,
.analytics-age-legend > div > strong {
  display: grid;
  gap: 0.1rem;
}
.analytics-age-legend small {
  color: #9098a2;
  font-size: 0.53rem;
  font-weight: 400;
}
.analytics-age-legend > div > strong {
  color: #333d49;
  text-align: right;
}
.analytics-household-icon {
  background: #e7f4f1;
  color: #408f7b;
}
.analytics-household-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.9rem;
}
.analytics-household-summary > div {
  display: grid;
  gap: 0.2rem;
  padding: 0.65rem;
  border: 1px solid #edf0f4;
  border-radius: 0.65rem;
  background: #fafbfd;
}
.analytics-household-summary small {
  color: #7d8793;
  font-size: 0.55rem;
}
.analytics-household-summary strong {
  color: #343e4a;
  font-size: 1.1rem;
}
.analytics-household-bars {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.65rem;
}
.analytics-household-bar > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.28rem;
  color: #707b88;
  font-size: 0.58rem;
}
.analytics-household-bar strong {
  color: #414b58;
  font-weight: 700;
  text-align: right;
}
.analytics-household-track {
  height: 6px;
  overflow: hidden;
  border-radius: 9px;
  background: #edf1f4;
}
.analytics-household-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #589e8e, #8bc7ad);
}
.analytics-blotter-resolved {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 0.9rem 0 0.25rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #d7eee3;
  border-radius: 0.7rem;
  background: #f0faf5;
  color: #327353;
  font-size: 0.67rem;
}
.analytics-blotter-resolved span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.analytics-blotter-resolved strong {
  color: #176a43;
  font-size: 1.2rem;
}
.analytics-blotter-bars .analytics-household-track i {
  background: linear-gradient(90deg, #d6a165, #eac68b);
}
.analytics-blotter-bars .analytics-household-track i.is-resolved {
  background: linear-gradient(90deg, #50a879, #83c99d);
}
.analytics-dashboard-alert-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.8rem;
}
.analytics-dashboard-alert-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.55rem;
  padding: 0.65rem;
  border: 1px solid #edf0f3;
  border-radius: 0.65rem;
  background: #fbfcfd;
}
.analytics-dashboard-alert-list article > div {
  min-width: 0;
}
.analytics-dashboard-alert-list article strong {
  color: #424b57;
  font-size: 0.67rem;
}
.analytics-dashboard-alert-list article p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0.2rem 0;
  color: #727c89;
  font-size: 0.6rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.analytics-dashboard-alert-list article small {
  color: #8d96a0;
  font-size: 0.53rem;
}

.admin-staff-main {
  max-width: 1500px;
}
.admin-staff-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid #e5e9ef;
  border-radius: 1rem;
  background: linear-gradient(115deg, #fff, #f8fafc);
  box-shadow: 0 0.5rem 1.6rem rgba(26, 36, 52, 0.06);
}
.admin-staff-heading h1 {
  margin: 0;
  color: #27313e;
  font-size: clamp(1.45rem, 3vw, 2rem);
}
.admin-staff-heading p:not(.eyebrow) {
  margin: 0.35rem 0 0;
  color: #737e8b;
  font-size: 0.75rem;
}
.admin-staff-heading > span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid #d9e8e1;
  border-radius: 99px;
  background: #f2faf6;
  color: #357657;
  font-size: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
}
.admin-staff-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.admin-staff-summary article {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e7ebf0;
  border-radius: 0.8rem;
  background: #fff;
  box-shadow: 0 0.35rem 1rem rgba(26, 36, 52, 0.04);
}
.admin-staff-summary article > span,
.admin-staff-panel-heading > span {
  display: grid;
  flex: 0 0 2.35rem;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  background: #f9eaf0;
  color: #9c3153;
  font-size: 1rem;
}
.admin-staff-summary article div {
  display: grid;
  gap: 0.1rem;
}
.admin-staff-summary small {
  color: #7d8793;
  font-size: 0.6rem;
}
.admin-staff-summary strong {
  color: #303a47;
  font-size: 1.2rem;
}
.admin-staff-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.4fr);
  align-items: start;
  gap: 0.85rem;
}
.admin-staff-layout > .staff-panel {
  border: 1px solid #e5e9ef;
  background: #fff;
  box-shadow: 0 0.5rem 1.5rem rgba(26, 36, 52, 0.06);
}
.admin-staff-panel-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid #edf0f3;
}
.admin-staff-panel-heading > span {
  flex-basis: 2rem;
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
}
.admin-staff-panel-heading h2 {
  margin: 0;
  color: #303a47;
  font-size: 0.9rem;
  font-weight: 750;
}
.admin-staff-panel-heading p {
  margin: 0.16rem 0 0;
  color: #87909b;
  font-size: 0.58rem;
}
.admin-staff-panel-heading > strong {
  margin-left: auto;
  color: #5d6876;
  font-size: 0.75rem;
}
.admin-staff-form {
  padding: 1rem 1.1rem 1.1rem;
}
.admin-staff-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
.admin-staff-form .form-label,
.admin-staff-record-fields .form-label {
  margin-bottom: 0.25rem;
  color: #545f6d;
  font-size: 0.62rem;
  font-weight: 700;
}
.admin-staff-form .form-control {
  min-height: 40px;
  border-color: #dfe4ea;
  background: #fff;
  color: #303a47;
  font-size: 0.7rem;
}
.admin-staff-form small {
  display: block;
  margin-top: 0.2rem;
  color: #88919b;
  font-size: 0.53rem;
}
.admin-staff-form > .btn {
  margin-top: 0.85rem;
  padding: 0.55rem 0.8rem;
  font-size: 0.66rem;
}
.admin-staff-list {
  display: grid;
  gap: 0.6rem;
  padding: 0.75rem;
}
.admin-staff-record {
  padding: 0.75rem;
  border: 1px solid #edf0f3;
  border-radius: 0.75rem;
  background: #fcfdfe;
}
.admin-staff-record-heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.admin-staff-avatar {
  display: grid;
  flex: 0 0 2.2rem;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: #f4e7ec;
  color: #91304f;
  font-size: 0.63rem;
  font-weight: 800;
}
.admin-staff-record-heading > div {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}
.admin-staff-record-heading > div strong {
  overflow: hidden;
  color: #323c48;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-staff-record-heading > div small {
  color: #838d99;
  font-size: 0.57rem;
}
.admin-staff-status {
  margin-left: auto;
  padding: 0.23rem 0.5rem;
  border-radius: 99px;
  background: #eff2f5;
  color: #66717e;
  font-size: 0.53rem;
  font-weight: 700;
  text-transform: capitalize;
}
.admin-staff-status.status-active {
  background: #e3f5eb;
  color: #28774e;
}
.admin-staff-status.status-pending {
  background: #fff2d6;
  color: #946812;
}
.admin-staff-status.status-disabled,
.admin-staff-status.status-locked {
  background: #fce8e9;
  color: #a3454c;
}
.admin-staff-record-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  align-items: end;
  gap: 0.5rem;
  margin-top: 0.65rem;
}
.admin-staff-record-fields .form-control {
  min-width: 0;
  min-height: 34px;
  border-color: #e0e5ea;
  background: #fff;
  color: #3a4451;
  font-size: 0.58rem;
}
.admin-staff-record-fields .btn {
  min-height: 34px;
  padding: 0.35rem 0.55rem;
  font-size: 0.58rem;
}
.admin-staff-record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.admin-announcement-list {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.75rem;
}
.admin-announcement-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 0;
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.admin-announcement-list-item span {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}
.admin-announcement-list-item strong {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-announcement-list-item small {
  color: var(--muted);
  font-size: 0.68rem;
}
.admin-announcement-list-item > i {
  color: var(--red);
  font-size: 0.75rem;
}
.admin-announcement-list-item:hover,
.admin-announcement-list-item:focus-visible {
  color: var(--red);
  outline: none;
}
.admin-recent-announcements-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.admin-recent-announcements-button > span {
  display: grid;
  gap: 0.25rem;
}
.admin-recent-announcements-button strong {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.admin-recent-announcements-button strong i {
  color: var(--red);
}
.admin-recent-announcements-button small {
  color: var(--muted);
  font-size: 0.7rem;
}
.admin-recent-announcements-button > i {
  color: var(--red);
}
.admin-recent-announcements-button:hover,
.admin-recent-announcements-button:focus-visible {
  border-color: var(--red);
  outline: none;
}
.admin-recent-announcements-modal-list {
  display: grid;
  gap: 1rem;
}
.admin-recent-announcement {
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}
.admin-recent-announcement:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.admin-recent-announcement h6 {
  margin: 0 0 0.25rem;
  color: var(--ink);
  font-size: 0.9rem;
}
.admin-recent-announcement small {
  color: var(--muted);
  font-size: 0.7rem;
}
.admin-recent-announcement p {
  margin: 0.65rem 0 0;
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.6;
}
.staff-page[data-theme="dark"] .admin-announcement-list-item {
  border-bottom-color: #303641;
  color: #e5e7eb;
}
.staff-page[data-theme="dark"] .admin-announcement-list-item small {
  color: #aab3c0;
}
.staff-page[data-theme="dark"] .admin-recent-announcements-button {
  border-color: #3a424e;
  background: #252b34;
  color: #e5e7eb;
}
.staff-page[data-theme="dark"] .admin-recent-announcements-button small,
.staff-page[data-theme="dark"] .admin-recent-announcement small {
  color: #aab3c0;
}
.staff-page[data-theme="dark"] .admin-recent-announcement {
  border-bottom-color: #3a424e;
}
.staff-page[data-theme="dark"] .admin-recent-announcement h6,
.staff-page[data-theme="dark"] .admin-recent-announcement p {
  color: #e5e7eb;
}
.staff-page[data-theme="dark"] .modal-content {
  border-color: #3a424e;
  background: #1d2128;
  color: #e5e7eb;
}
.staff-page[data-theme="dark"] .modal-header {
  border-bottom-color: #3a424e;
}
.staff-page[data-theme="dark"] .modal-footer {
  border-top-color: #3a424e;
}
.staff-page[data-theme="dark"] .modal .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.staff-profile-main {
  max-width: 1150px;
}
.staff-profile-heading {
  margin-bottom: 1rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid #e5e9ef;
  border-radius: 1rem;
  background: linear-gradient(115deg, #fff, #f8fafc);
  box-shadow: 0 0.5rem 1.6rem rgba(26, 36, 52, 0.06);
}
.staff-profile-heading h1 {
  margin: 0;
  color: #27313e;
  font-size: clamp(1.45rem, 3vw, 2rem);
}
.staff-profile-heading > p:last-child {
  margin: 0.35rem 0 0;
  color: #737e8b;
  font-size: 0.75rem;
}
.staff-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0.85rem;
}
.staff-profile-card {
  border: 1px solid #e5e9ef;
  background: #fff;
  box-shadow: 0 0.5rem 1.5rem rgba(26, 36, 52, 0.06);
}
.staff-profile-section-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid #edf0f3;
}
.staff-profile-section-heading > span {
  display: grid;
  flex: 0 0 2.2rem;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.65rem;
  background: #f9eaf0;
  color: #9c3153;
  font-size: 1rem;
}
.staff-profile-section-heading h2 {
  margin: 0;
  color: #303a47;
  font-size: 0.9rem;
  font-weight: 750;
}
.staff-profile-section-heading p {
  margin: 0.18rem 0 0;
  color: #87909b;
  font-size: 0.59rem;
}
.staff-profile-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 1.1rem;
}
.staff-profile-preview > img,
.staff-profile-preview > span {
  display: grid;
  flex: 0 0 4.5rem;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  overflow: hidden;
  border-radius: 50%;
  background: #f2e7ec;
  color: #91304f;
  font-size: 2rem;
  object-fit: cover;
}
.staff-profile-preview > div {
  display: grid;
  gap: 0.2rem;
}
.staff-profile-preview strong {
  color: #303a47;
  font-size: 0.82rem;
}
.staff-profile-preview small,
.staff-profile-form small {
  color: #838d99;
  font-size: 0.6rem;
}
.staff-profile-form {
  display: grid;
  gap: 0.6rem;
  padding: 0 1.1rem 1.1rem;
}
.staff-profile-form .form-label {
  margin: 0;
  color: #545f6d;
  font-size: 0.64rem;
  font-weight: 700;
}
.staff-profile-form .form-control {
  min-height: 40px;
  border-color: #dfe4ea;
  background: #fff;
  color: #303a47;
  font-size: 0.68rem;
}
.staff-profile-form > .btn {
  justify-self: start;
  margin-top: 0.2rem;
  padding: 0.55rem 0.8rem;
  font-size: 0.65rem;
}
.staff-password-form {
  padding-top: 1rem;
}
.staff-password-form > div {
  display: grid;
  gap: 0.3rem;
}

@media (max-width: 900px) {
  .dashboard-content {
    width: calc(100% - 190px);
  }
  .request-columns,
  .tracking-columns,
  .blotter-columns,
  .appointment-dashboard-grid,
  .ai-assistant-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .request-columns > .request-card,
  .tracking-columns > .request-card {
    height: auto;
  }
  .admin-staff-layout {
    grid-template-columns: 1fr;
  }
  .staff-profile-grid {
    grid-template-columns: 1fr;
  }
  .admin-staff-directory {
    min-width: 0;
  }
}
@media (max-width: 600px) {
  .admin-staff-heading {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem;
  }
  .admin-staff-summary {
    grid-template-columns: 1fr;
  }
  .admin-staff-form-grid {
    grid-template-columns: 1fr;
  }
  .admin-staff-record-fields {
    grid-template-columns: 1fr 1fr;
  }
  .admin-staff-record-actions {
    grid-column: 1 / -1;
  }
  .analytics-age-content {
    grid-template-columns: 1fr;
  }
  .analytics-age-pie {
    width: 130px;
  }
  .audit-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .audit-search-field {
    grid-column: 1 / -1;
  }
  .admin-timesheet-filter {
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-attendance-dates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .staff-leave-heading,
  .staff-leave-list-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .staff-leave-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .staff-leave-reason,
  .staff-leave-form-footer {
    grid-column: auto;
  }
  .staff-leave-form-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .staff-leave-review-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .staff-leave-review-form > div {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .dashboard-content {
    width: 100%;
  }
  .request-main,
  .profile-main,
  .dashboard-main,
  .ai-assistant-main,
  .announcement-main,
  .appointment-main,
  .blotter-main {
    padding-inline: 1rem;
  }
  .request-title-row,
  .appointment-calendar-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
  }
  .details-grid,
  .review-grid,
  .document-template-fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail-wide,
  .template-field-wide {
    grid-column: auto;
  }
  .request-status-filter {
    align-items: center;
    flex-direction: row;
  }
  .request-status-filter .form-control {
    flex: 1 1 140px;
    min-width: 0;
  }
  .request-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
  .request-pagination > div {
    width: 100%;
    justify-content: space-between;
  }
  .audit-filters {
    grid-template-columns: minmax(0, 1fr);
  }
  .audit-search-field {
    grid-column: auto;
  }
  .admin-timesheet-filter {
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-attendance-dates {
    grid-template-columns: minmax(0, 1fr);
  }
  .document-template-actions {
    flex-direction: column-reverse;
  }
  .document-template-actions .btn {
    width: 100%;
  }
  .appointment-calendar {
    gap: 0.15rem;
  }
  .calendar-day {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

  .analytics-dashboard .staff-main {
    max-width: 1440px;
  }

  .analytics-dashboard .analytics-heading {
    align-items: flex-start;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(142, 7, 16, 0.14);
  }

  .analytics-dashboard .analytics-heading h1 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    letter-spacing: -0.045em;
  }

  .analytics-dashboard .analytics-heading p:not(.eyebrow) {
    color: #786f72;
  }

  .analytics-kpi-grid {
    gap: 0.75rem;
  }

  .analytics-kpi {
    min-height: 142px;
    border: 1px solid rgba(142, 7, 16, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0.75rem 1.8rem rgba(51, 24, 27, 0.07);
  }

  .analytics-kpi:hover,
  .analytics-visual-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 1rem 2.2rem rgba(51, 24, 27, 0.11);
  }

  .analytics-visual-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
  }

  .analytics-visual-card {
    min-width: 0;
    min-height: 330px;
    padding: 1.15rem 1.25rem 1rem;
    border: 1px solid rgba(142, 7, 16, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 0.75rem 1.8rem rgba(51, 24, 27, 0.07);
    transition: transform 160ms ease, box-shadow 160ms ease;
  }

  .analytics-visual-card-wide {
    grid-column: span 2;
  }

  .analytics-visual-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
  }

  .analytics-visual-kicker {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--red);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.12em;
  }

  .analytics-visual-heading h2 {
    margin: 0;
    color: #271f22;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
  }

  .analytics-visual-heading p {
    margin: 0.3rem 0 0;
    color: #887e81;
    font-size: 0.78rem;
  }

  .analytics-visual-menu {
    color: #a89c9e;
    font-weight: 800;
    letter-spacing: 0.15em;
  }

  .analytics-canvas-wrap {
    position: relative;
    margin-top: 1rem;
  }

  .analytics-canvas-wrap-large {
    height: 235px;
  }

  .analytics-canvas-wrap-doughnut {
    height: 230px;
  }

  @media (max-width: 1180px) {
    .analytics-visual-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .analytics-visual-card-wide {
      grid-column: span 2;
    }
  }

  @media (max-width: 680px) {
    .analytics-visual-grid {
      grid-template-columns: 1fr;
    }

    .analytics-visual-card-wide {
      grid-column: auto;
    }

    .analytics-visual-card {
      min-height: 300px;
    }

    .analytics-canvas-wrap-large {
      height: 210px;
    }
  }

/* Contact page: clean government service layout. */
.resident-contact-page {
  display: block;
  min-height: 100vh;
  background: #f7f8fa;
  color: #17233d;
}
.resident-contact-page .dashboard-sidebar {
  width: 224px;
  flex-basis: 224px;
  background: #242629;
  border-right: 1px solid #34383d;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.resident-contact-page .dashboard-content {
  min-height: 100vh;
  margin-left: 224px;
  background: #f7f8fa;
}
.resident-contact-page .dashboard-topbar {
  min-height: 68px;
  padding: 0.8rem max(1.75rem, calc((100% - 1280px) / 2));
  border-bottom: 2px solid #8b1735;
  background: #fff;
  box-shadow: 0 1px 5px rgba(23, 35, 61, 0.06);
}
.contact-header-user,
.contact-header-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.contact-header-user .user-avatar {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border-radius: 50%;
  background: #8b1735;
  color: #fff;
  font-size: 1.15rem;
}
.contact-header-user > span:last-child {
  display: grid;
  gap: 0.15rem;
}
.contact-header-user strong {
  color: #17233d;
  font-size: 0.9rem;
}
.contact-header-user small {
  color: #64748b;
  font-size: 0.7rem;
}
.contact-header-brand {
  color: #8b1735;
  font-size: 0.82rem;
  font-weight: 700;
}
.contact-header-brand:hover {
  color: #651129;
  text-decoration: none;
}
.contact-header-brand i {
  font-size: 1rem;
}
.resident-contact-main {
  width: min(1280px, 100%);
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.25rem 1.75rem 2rem;
}
.resident-contact-heading {
  margin: 0 0 1.25rem;
}
.resident-contact-heading .eyebrow {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #8b1735;
  color: #fff;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}
.resident-contact-heading h1 {
  color: #17233d;
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  letter-spacing: -0.035em;
}
.resident-contact-heading > p:last-child {
  margin-top: 0.4rem;
  color: #526179;
  font-size: 1rem;
}
.resident-contact-grid {
  gap: 1rem;
}
.resident-contact-card {
  min-height: 106px;
  padding: 1.15rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.7rem;
  background: #fff;
  color: #17233d;
  box-shadow: 0 3px 12px rgba(23, 35, 61, 0.06);
}
.resident-contact-card:hover {
  border-color: #8b1735;
  background: #fff;
  color: #17233d;
  box-shadow: 0 6px 16px rgba(23, 35, 61, 0.1);
  transform: translateY(-2px);
}
.resident-contact-icon {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: #8b1735;
  color: #fff;
}
.resident-contact-icon.resident-contact-email {
  background: #8b1735;
}
.resident-contact-detail small {
  color: #8b1735;
  font-size: 0.62rem;
}
.resident-contact-detail strong {
  color: #17233d;
  font-size: 0.95rem;
}
.resident-contact-detail em {
  color: #64748b;
  font-size: 0.72rem;
}
.resident-contact-arrow {
  color: #8b1735;
  font-size: 1.25rem;
}
.resident-officials-section {
  margin-top: 2.2rem;
}
.resident-officials-heading {
  margin-bottom: 1rem;
}
.resident-officials-heading .eyebrow {
  margin: 0 0 0.3rem;
  color: #8b1735;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}
.resident-officials-heading h2 {
  color: #17233d;
  font-size: 1.45rem;
}
.resident-officials-heading > p:last-child {
  color: #64748b;
  font-size: 0.85rem;
}
.resident-officials-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.resident-official-group,
.resident-developer-group {
  border: 1px solid #e5e7eb;
  border-radius: 0.7rem;
  background: #fff;
  box-shadow: 0 3px 12px rgba(23, 35, 61, 0.06);
}
.resident-official-group > header,
.resident-developer-group > header {
  padding: 0.8rem 1rem;
  border: 0;
  background: #8b1735;
}
.resident-official-group > header > span,
.resident-developer-group > header > span {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.35rem;
  background: transparent;
}
.resident-official-group h3,
.resident-developer-group h3 {
  font-size: 0.85rem;
}
.resident-official-tagline,
.resident-developer-group > p {
  min-height: 0;
  margin: 0.85rem 1rem 0.45rem;
  color: #64748b;
  font-size: 0.72rem;
}
.resident-official-featured {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0.75rem;
  margin: 0.75rem;
  padding: 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.6rem;
  background: #f8fafc;
}
.resident-official-photo-placeholder {
  grid-row: 1 / span 2;
  width: 3.5rem;
  height: 3.5rem;
  border: 0;
  background: #e7ebf1;
  color: #758197;
  box-shadow: none;
}
.resident-official-photo-placeholder i {
  font-size: 2.25rem;
}
.resident-official-featured > span:not(.resident-official-photo-placeholder) {
  justify-self: start;
  background: #8b1735;
}
.resident-official-featured > strong {
  justify-self: start;
  color: #17233d;
  font-size: 0.95rem;
}
.resident-official-member-heading {
  margin: 0.8rem 0.75rem 0.45rem;
  color: #8b1735;
}
.resident-official-member-heading i {
  color: #8b1735;
}
.resident-official-members {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0 0.75rem 0.75rem;
}
.resident-official-member {
  min-height: 74px;
  padding: 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #fff;
}
.resident-official-member-photo,
.resident-developer-photo {
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: #e7ebf1;
  color: #758197;
  box-shadow: none;
}
.resident-official-member-photo i,
.resident-developer-photo i {
  font-size: 1.5rem;
}
.resident-official-member > strong {
  color: #17233d;
  font-size: 0.62rem;
}
.resident-official-member > span {
  color: #64748b;
  font-size: 0.54rem;
}
.resident-developer-cards {
  gap: 0.55rem;
  padding: 0.75rem;
}
.resident-developer-card {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  justify-items: start;
  align-items: center;
  column-gap: 0.65rem;
  padding: 0.65rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #fff;
  text-align: left;
}
.resident-developer-card .resident-developer-photo {
  grid-row: span 2;
}
.resident-developer-card strong {
  color: #17233d;
  font-size: 0.68rem;
}
.resident-developer-card span {
  color: #64748b;
  font-size: 0.58rem;
}
.resident-contact-note {
  margin: 1.8rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #dfe3e8;
  color: #8b1735;
  font-size: 0.72rem;
}
.resident-contact-note i {
  color: #8b1735;
}
.resident-contact-back {
  float: right;
  margin-top: 0;
  color: #8b1735;
  font-size: 0.75rem;
}
.resident-contact-back:hover {
  color: #651129;
}
@media (max-width: 900px) {
  .resident-contact-page .dashboard-sidebar {
    width: 190px;
    flex-basis: 190px;
  }
  .resident-contact-page .dashboard-content {
    margin-left: 190px;
  }
  .resident-contact-main {
    padding: 2rem 1.25rem 1.5rem;
  }
  .resident-officials-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .resident-contact-page .dashboard-sidebar {
    width: 100%;
    flex-basis: auto;
  }
  .resident-contact-page .dashboard-topbar {
    align-items: center;
    padding: 0.8rem 1rem;
  }
  .resident-contact-page .dashboard-content {
    margin-left: 0;
  }
  .contact-header-brand span {
    display: none;
  }
  .resident-contact-main {
    padding: 1.5rem 1rem;
  }
  .resident-contact-heading h1 {
    font-size: 1.8rem;
  }
  .resident-contact-grid {
    grid-template-columns: 1fr;
  }
  .resident-contact-card {
    min-height: 92px;
  }
  .resident-contact-back {
    float: none;
    display: flex;
    justify-content: flex-end;
    margin-top: 0.8rem;
  }
}

/* Admin and staff: consistent dark-theme surfaces and text */
.staff-page[data-theme="dark"] .staff-main,
.staff-page[data-theme="dark"] .weather-main,
.staff-page[data-theme="dark"] .analytics-main,
.staff-page[data-theme="dark"] .admin-staff-main,
.staff-page[data-theme="dark"] .staff-profile-main {
  color: #e5e7eb;
}

.staff-page[data-theme="dark"] .staff-leave-heading,
.staff-page[data-theme="dark"] .staff-profile-heading,
.staff-page[data-theme="dark"] .analytics-heading,
.staff-page[data-theme="dark"] .admin-staff-heading,
.staff-page[data-theme="dark"] .weather-page-heading {
  border: 1px solid #303641;
  background: #1d2128;
  color: #e5e7eb;
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.2);
}
.staff-page[data-theme="dark"] .staff-leave-heading {
  background: #1d2128;
}
.staff-page[data-theme="dark"] .staff-leave-heading h1,
.staff-page[data-theme="dark"] .staff-profile-heading h1,
.staff-page[data-theme="dark"] .analytics-heading h1,
.staff-page[data-theme="dark"] .admin-staff-heading h1,
.staff-page[data-theme="dark"] .weather-page-heading h1,
.staff-page[data-theme="dark"] .staff-leave-section-heading h2,
.staff-page[data-theme="dark"] .staff-leave-list-heading h2,
.staff-page[data-theme="dark"] .staff-leave-request-title h3,
.staff-page[data-theme="dark"] .staff-profile-section-heading h2,
.staff-page[data-theme="dark"] .admin-staff-panel-heading h2,
.staff-page[data-theme="dark"] .admin-staff-summary strong,
.staff-page[data-theme="dark"] .admin-staff-record-heading strong,
.staff-page[data-theme="dark"] .admin-timesheet-heading h2,
.staff-page[data-theme="dark"] .admin-timesheet-staff-info strong,
.staff-page[data-theme="dark"] .admin-timesheet-selected h3,
.staff-page[data-theme="dark"] .admin-timesheet-staff-stats strong,
.staff-page[data-theme="dark"] .analytics-disaster-form h2,
.staff-page[data-theme="dark"] .analytics-active-alerts h2,
.staff-page[data-theme="dark"] .analytics-panel-heading h2,
.staff-page[data-theme="dark"] .weather-section-heading h2,
.staff-page[data-theme="dark"] .weather-chart-title strong {
  color: #f3f4f6 !important;
}
.staff-page[data-theme="dark"] .staff-leave-heading p,
.staff-page[data-theme="dark"] .staff-profile-heading p,
.staff-page[data-theme="dark"] .analytics-heading p,
.staff-page[data-theme="dark"] .admin-staff-heading p,
.staff-page[data-theme="dark"] .weather-page-heading p,
.staff-page[data-theme="dark"] .staff-leave-section-heading p,
.staff-page[data-theme="dark"] .staff-leave-list-heading p,
.staff-page[data-theme="dark"] .staff-leave-request-title div > span,
.staff-page[data-theme="dark"] .staff-leave-request-meta,
.staff-page[data-theme="dark"] .staff-leave-reason-text,
.staff-page[data-theme="dark"] .staff-leave-requester,
.staff-page[data-theme="dark"] .staff-leave-empty,
.staff-page[data-theme="dark"] .staff-profile-section-heading p,
.staff-page[data-theme="dark"] .admin-staff-summary small,
.staff-page[data-theme="dark"] .admin-staff-panel-heading p,
.staff-page[data-theme="dark"] .admin-staff-record-heading small,
.staff-page[data-theme="dark"] .admin-timesheet-heading p,
.staff-page[data-theme="dark"] .admin-timesheet-staff-info small,
.staff-page[data-theme="dark"] .admin-timesheet-staff-stats small,
.staff-page[data-theme="dark"] .admin-timesheet-selected > div > span,
.staff-page[data-theme="dark"] .analytics-disaster-form p,
.staff-page[data-theme="dark"] .analytics-disaster-form label,
.staff-page[data-theme="dark"] .analytics-disaster-form label small,
.staff-page[data-theme="dark"] .analytics-panel-heading p,
.staff-page[data-theme="dark"] .analytics-alert-message,
.staff-page[data-theme="dark"] .analytics-alert-meta,
.staff-page[data-theme="dark"] .weather-chart-title > div > span,
.staff-page[data-theme="dark"] .weather-section-heading p,
.staff-page[data-theme="dark"] .weather-hourly-strip article > span,
.staff-page[data-theme="dark"] .weather-hourly-strip article > small {
  color: #aab3c0 !important;
}

.staff-page[data-theme="dark"] .staff-leave-pending,
.staff-page[data-theme="dark"] .staff-leave-policy,
.staff-page[data-theme="dark"] .admin-staff-heading > span,
.staff-page[data-theme="dark"] .weather-auto-status {
  border-color: #3a424e;
  background: #252b34;
  color: #e5e7eb;
}
.staff-page[data-theme="dark"] .weather-auto-status strong {
  color: #f3f4f6;
}

.staff-page[data-theme="dark"] .staff-leave-request-card,
.staff-page[data-theme="dark"] .staff-leave-admin-note,
.staff-page[data-theme="dark"] .staff-leave-form-panel,
.staff-page[data-theme="dark"] .staff-leave-list-panel,
.staff-page[data-theme="dark"] .admin-staff-summary article,
.staff-page[data-theme="dark"] .admin-staff-layout > .staff-panel,
.staff-page[data-theme="dark"] .admin-staff-record,
.staff-page[data-theme="dark"] .admin-timesheet-staff-card,
.staff-page[data-theme="dark"] .admin-timesheet-selected,
.staff-page[data-theme="dark"] .analytics-disaster-form,
.staff-page[data-theme="dark"] .analytics-alert-card,
.staff-page[data-theme="dark"] .weather-chart-card,
.staff-page[data-theme="dark"] .weather-history-panel,
.staff-page[data-theme="dark"] .weather-hourly-strip article,
.staff-page[data-theme="dark"] .weather-forecast-card {
  border-color: #303641;
  background: #1d2128;
  color: #e5e7eb;
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.2);
}
.staff-page[data-theme="dark"] .staff-leave-request-card,
.staff-page[data-theme="dark"] .staff-leave-request-card h3,
.staff-page[data-theme="dark"] .admin-staff-record-heading strong,
.staff-page[data-theme="dark"] .admin-timesheet-staff-info strong,
.staff-page[data-theme="dark"] .admin-timesheet-selected h3,
.staff-page[data-theme="dark"] .weather-hourly-strip article > strong,
.staff-page[data-theme="dark"] .weather-forecast-card strong {
  color: #f3f4f6;
}
.staff-page[data-theme="dark"] .staff-leave-admin-note,
.staff-page[data-theme="dark"] .staff-leave-form-footer,
.staff-page[data-theme="dark"] .staff-leave-review-form,
.staff-page[data-theme="dark"] .staff-leave-request-meta,
.staff-page[data-theme="dark"] .admin-timesheet-staff-stats,
.staff-page[data-theme="dark"] .weather-hourly-strip {
  border-color: #303641;
}
.staff-page[data-theme="dark"] .staff-leave-admin-note {
  background: #252b34;
  color: #cbd3df;
}
.staff-page[data-theme="dark"] .staff-leave-empty strong {
  color: #e5e7eb;
}

.staff-page[data-theme="dark"] .staff-profile-card,
.staff-page[data-theme="dark"] .staff-profile-preview,
.staff-page[data-theme="dark"] .staff-profile-form {
  border-color: #303641;
  background: #1d2128;
  color: #e5e7eb;
}
.staff-page[data-theme="dark"] .staff-profile-preview strong,
.staff-page[data-theme="dark"] .staff-profile-preview small,
.staff-page[data-theme="dark"] .staff-profile-form .form-label {
  color: #e5e7eb;
}

.staff-page[data-theme="dark"] .analytics-disaster-form textarea,
.staff-page[data-theme="dark"] .analytics-disaster-form input,
.staff-page[data-theme="dark"] .analytics-disaster-form select,
.staff-page[data-theme="dark"] .staff-leave-form .form-control,
.staff-page[data-theme="dark"] .staff-leave-review-form .form-control,
.staff-page[data-theme="dark"] .staff-leave-filter .form-control,
.staff-page[data-theme="dark"] .admin-staff-form .form-control,
.staff-page[data-theme="dark"] .admin-staff-record-fields .form-control,
.staff-page[data-theme="dark"] .admin-timesheet-filter .form-control,
.staff-page[data-theme="dark"] .audit-filters .form-control,
.staff-page[data-theme="dark"] .request-status-filter .form-control,
.staff-page[data-theme="dark"] .staff-profile-form .form-control {
  border-color: #3a424e;
  background: #252b34;
  color: #f3f4f6;
}

.staff-page[data-theme="dark"] .admin-staff-avatar,
.staff-page[data-theme="dark"] .staff-leave-type-icon,
.staff-page[data-theme="dark"] .admin-timesheet-avatar {
  background: #3a2630;
  color: #ffc2ce;
}
.staff-page[data-theme="dark"] .staff-table,
.staff-page[data-theme="dark"] .admin-timesheet-table,
.staff-page[data-theme="dark"] .staff-table th,
.staff-page[data-theme="dark"] .staff-table td,
.staff-page[data-theme="dark"] .admin-timesheet-table th,
.staff-page[data-theme="dark"] .admin-timesheet-table td {
  border-color: #303641;
  color: #dfe4eb;
}
.staff-page[data-theme="dark"] .staff-table thead,
.staff-page[data-theme="dark"] .admin-timesheet-table thead {
  background: #252b34;
  color: #aab3c0;
}

.staff-page[data-theme="dark"] .weather-chart-card,
.staff-page[data-theme="dark"] .weather-history-panel,
.staff-page[data-theme="dark"] .weather-hourly-strip article,
.staff-page[data-theme="dark"] .weather-forecast-card {
  border-color: #303641;
  background: #1d2128;
}
.staff-page[data-theme="dark"] .weather-chart-gridline {
  stroke: #343b46;
}
.staff-page[data-theme="dark"] .weather-chart-label {
  fill: #aab3c0;
}
.staff-page[data-theme="dark"] .weather-chart-current {
  background: #3a2d20;
  color: #ffd08a;
}
.staff-page[data-theme="dark"] .weather-forecast-card.is-today {
  border-color: #7d5b29;
  background: linear-gradient(180deg, #34291e, #1d2128);
}

.staff-page[data-theme="dark"] .analytics-active-alert,
.staff-page[data-theme="dark"] .analytics-panel-heading,
.staff-page[data-theme="dark"] .analytics-disaster-form,
.staff-page[data-theme="dark"] .analytics-active-alerts {
  border-color: #303641;
  color: #e5e7eb;
}
.staff-page[data-theme="dark"] .analytics-active-alert {
  background: #1d2128;
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.2);
}
.staff-page[data-theme="dark"] .analytics-active-alert > strong,
.staff-page[data-theme="dark"] .analytics-active-alert h2,
.staff-page[data-theme="dark"] .analytics-panel-heading h2,
.staff-page[data-theme="dark"] .analytics-disaster-form h2,
.staff-page[data-theme="dark"] .weather-section-heading h2,
.staff-page[data-theme="dark"] .weather-chart-title strong,
.staff-page[data-theme="dark"] .weather-hourly-strip article > strong,
.staff-page[data-theme="dark"] .weather-forecast-card strong {
  color: #f3f4f6 !important;
}
.staff-page[data-theme="dark"] .analytics-active-alert p,
.staff-page[data-theme="dark"] .analytics-active-alert time,
.staff-page[data-theme="dark"] .analytics-alert-delivery,
.staff-page[data-theme="dark"] .analytics-panel-heading p,
.staff-page[data-theme="dark"] .weather-section-heading p,
.staff-page[data-theme="dark"] .weather-chart-title > div > span,
.staff-page[data-theme="dark"] .weather-hourly-strip article > span,
.staff-page[data-theme="dark"] .weather-hourly-strip article > small {
  color: #aab3c0 !important;
}
.staff-page[data-theme="dark"] .analytics-disaster-count,
.staff-page[data-theme="dark"] .admin-staff-heading > span,
.staff-page[data-theme="dark"] .staff-leave-pending {
  border-color: #4a5361;
  background: #252b34;
  color: #e5e7eb;
}
.staff-page[data-theme="dark"] .admin-staff-create,
.staff-page[data-theme="dark"] .admin-staff-directory,
.staff-page[data-theme="dark"] .admin-staff-record-list {
  background: #1d2128;
  border-color: #303641;
}
.staff-page[data-theme="dark"] .admin-staff-panel-heading,
.staff-page[data-theme="dark"] .admin-staff-panel-heading h2,
.staff-page[data-theme="dark"] .admin-staff-record-heading strong,
.staff-page[data-theme="dark"] .admin-timesheet-heading h2,
.staff-page[data-theme="dark"] .admin-timesheet-staff-info strong,
.staff-page[data-theme="dark"] .admin-timesheet-selected h3,
.staff-page[data-theme="dark"] .admin-timesheet-staff-stats strong {
  color: #f3f4f6;
}
.staff-page[data-theme="dark"] .admin-staff-panel-heading p,
.staff-page[data-theme="dark"] .admin-staff-record-heading small,
.staff-page[data-theme="dark"] .admin-timesheet-heading p,
.staff-page[data-theme="dark"] .admin-timesheet-staff-info small,
.staff-page[data-theme="dark"] .admin-timesheet-selected > div > span,
.staff-page[data-theme="dark"] .admin-timesheet-staff-stats small {
  color: #aab3c0;
}

/* Desktop hover-expand sidebar: icons stay visible while labels reveal on hover. */
@media (min-width: 901px) {
  .dashboard-page .dashboard-sidebar {
    width: 72px;
    flex-basis: 72px;
    transition: width 0.28s ease, flex-basis 0.28s ease;
  }
  .dashboard-page .dashboard-content,
  .resident-contact-page .dashboard-content {
    margin-left: 72px;
    transition: margin-left 0.28s ease;
  }
  .dashboard-page .dashboard-sidebar:hover,
  .dashboard-page .dashboard-sidebar:focus-within {
    width: 238px;
    flex-basis: 238px;
  }
  .dashboard-page .dashboard-brand,
  .dashboard-page .dashboard-sidebar-footer {
    justify-content: center;
    padding-inline: 0.75rem;
  }
  .dashboard-page .dashboard-brand img {
    width: 44px;
    height: 44px;
  }
  .dashboard-page .dashboard-brand span,
  .dashboard-page .dashboard-sidebar-footer span {
    width: 0;
    overflow: hidden;
    opacity: 0;
    white-space: nowrap;
    transition: width 0.28s ease, opacity 0.18s ease;
  }
  .dashboard-page .dashboard-nav {
    align-items: stretch;
    padding-inline: 0.7rem;
  }
  .dashboard-page .dashboard-nav a {
    min-height: 42px;
    justify-content: center;
    gap: 0;
    overflow: hidden;
    padding-inline: 0.55rem;
    font-size: 0;
    white-space: nowrap;
    transition:
      background 0.2s,
      color 0.2s,
      transform 0.2s,
      gap 0.28s ease,
      font-size 0.28s ease,
      padding 0.28s ease;
  }
  .dashboard-page .dashboard-nav a i {
    flex: 0 0 18px;
    width: 18px;
    font-size: 1.05rem;
  }
  .dashboard-page .dashboard-nav-label {
    height: 0;
    margin: 0.25rem 0.85rem;
    padding-top: 0;
    overflow: hidden;
    border-top-color: transparent;
    font-size: 0;
  }
  .dashboard-page .dashboard-nav .staff-nav-badge {
    display: none;
  }
  .dashboard-page .dashboard-sidebar:hover .dashboard-brand,
  .dashboard-page .dashboard-sidebar:focus-within .dashboard-brand,
  .dashboard-page .dashboard-sidebar:hover .dashboard-sidebar-footer,
  .dashboard-page .dashboard-sidebar:focus-within .dashboard-sidebar-footer {
    justify-content: flex-start;
  }
  .dashboard-page .dashboard-sidebar:hover .dashboard-brand span,
  .dashboard-page .dashboard-sidebar:focus-within .dashboard-brand span,
  .dashboard-page .dashboard-sidebar:hover .dashboard-sidebar-footer span,
  .dashboard-page .dashboard-sidebar:focus-within .dashboard-sidebar-footer span {
    width: 150px;
    opacity: 1;
  }
  .dashboard-page .dashboard-sidebar:hover .dashboard-nav a,
  .dashboard-page .dashboard-sidebar:focus-within .dashboard-nav a {
    justify-content: flex-start;
    gap: 0.85rem;
    padding-inline: 0.85rem;
    font-size: 0.78rem;
  }
  .dashboard-page .dashboard-sidebar:hover .dashboard-nav-label,
  .dashboard-page .dashboard-sidebar:focus-within .dashboard-nav-label {
    height: auto;
    margin: 1.35rem 0.85rem 0.25rem;
    padding-top: 1rem;
    border-top-color: rgba(255, 255, 255, 0.15);
    font-size: 0.62rem;
  }
  .dashboard-page .dashboard-sidebar:hover .staff-nav-badge,
  .dashboard-page .dashboard-sidebar:focus-within .staff-nav-badge {
    display: block;
  }
  .resident-contact-page .dashboard-sidebar {
    width: 72px;
    flex-basis: 72px;
  }
  .resident-contact-page .dashboard-sidebar:hover,
  .resident-contact-page .dashboard-sidebar:focus-within {
    width: 224px;
    flex-basis: 224px;
  }
}

/* Uniform fixed footer across resident modules */
.dashboard-page:not(.staff-page) .dashboard-content {
  padding-bottom: 68px;
}
.dashboard-page:not(.staff-page) .dashboard-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 72px;
  z-index: 90;
  min-height: 68px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 7, 10, 0.94);
  color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.14);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.dashboard-page:not(.staff-page) .dashboard-footer > span:first-child,
.dashboard-page:not(.staff-page) .dashboard-footer small,
.dashboard-page:not(.staff-page) .dashboard-footer-contact,
.dashboard-page:not(.staff-page) .dashboard-footer-social,
.dashboard-page:not(.staff-page) .dashboard-footer-social a {
  color: #fff;
}
.dashboard-page:not(.staff-page) .dashboard-footer-contact {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}
.dashboard-page:not(.staff-page) .dashboard-footer-contact:hover,
.dashboard-page:not(.staff-page) .dashboard-footer-social a:hover {
  color: #ffd978;
}
@media (max-width: 900px) {
  .dashboard-page:not(.staff-page) .dashboard-footer {
    left: 190px;
  }
}
@media (max-width: 640px) {
  .dashboard-page:not(.staff-page) .dashboard-content {
    padding-bottom: 92px;
  }
  .dashboard-page:not(.staff-page) .dashboard-footer {
    left: 0;
    min-height: 92px;
  }
}

/* Dark-mode solid neutral buttons */
.staff-page[data-theme="dark"] .btn-light,
.request-module[data-theme="dark"] .btn-light,
.request-module[data-theme="dark"] .btn-outline-light {
  color: #f3f4f6;
  border-color: #434c58;
  background: #303640;
}
.staff-page[data-theme="dark"] .btn-light:hover,
.staff-page[data-theme="dark"] .btn-light:focus,
.request-module[data-theme="dark"] .btn-light:hover,
.request-module[data-theme="dark"] .btn-light:focus,
.request-module[data-theme="dark"] .btn-outline-light:hover,
.request-module[data-theme="dark"] .btn-outline-light:focus {
  color: #fff;
  border-color: #525b68;
  background: #414955;
}
