:root {
  --ocs-orange: #f15f22;
  --ocs-orange-deep: #d94d17;
  --ocs-orange-soft: #fee2d5;
  --ocs-peach: #ffc6ae;
  --ocs-navy: #293771;
  --ocs-navy-deep: #17224f;
  --charcoal: #272b34;
  --muted: #707680;
  --soft-muted: #a5abb3;
  --page-bg: #f5f1ec;
  --card: #ffffff;
  --line: rgba(222, 219, 214, 0.72);
  --soft-grey: #f4f5f6;
  --danger: #e5484d;
  --success: #26a269;
  --glass: rgba(255, 255, 255, 0.68);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.74);
  --shadow-sm: 0 12px 34px rgba(36, 43, 56, 0.07);
  --shadow-md: 0 24px 60px rgba(36, 43, 56, 0.1);
  --shadow-lg: 0 32px 90px rgba(39, 59, 120, 0.13);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --control-height: 44px;
  --control-font-size: 0.84rem;
  --control-font-weight: 780;
  --label-font-size: 0.78rem;
  --header-height: 82px;
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 88px;
  --canvas-x: 24px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.sidebar-collapsed {
  --sidebar-width: var(--sidebar-collapsed-width);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--charcoal);
  background:
    radial-gradient(circle at 18% 4%, rgba(244, 91, 32, 0.12), transparent 24rem),
    radial-gradient(circle at 88% 12%, rgba(39, 59, 120, 0.1), transparent 28rem),
    linear-gradient(135deg, #f8f5f1 0%, #f1eee9 46%, #f7f4f0 100%);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--ocs-navy);
  border-radius: 12px;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid rgba(244, 91, 32, 0.4);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.58);
  border-bottom: 1px solid rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 55px rgba(39, 59, 120, 0.07);
  backdrop-filter: blur(24px) saturate(150%);
}

.top-logo-row {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.top-logo-link {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease);
}

.top-logo-link:hover,
.top-logo-link:focus-visible {
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 0 0 4px rgba(244, 91, 32, 0.12);
}

.top-logo {
  width: auto;
  object-fit: contain;
}

.top-logo-abi {
  height: 46px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(39, 59, 120, 0.08);
}

.top-logo-client {
  height: 44px;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(39, 59, 120, 0.07);
}

.logo-separator {
  width: 1px;
  height: 34px;
  background: #dedbd6;
}

.header-actions {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  overflow: visible;
}

.app-header .menu-button {
  display: none;
}

.dashboard-canvas {
  width: 100%;
  min-height: calc(100vh - var(--header-height));
  margin: 0;
  padding: 18px 24px 24px;
  background: transparent;
}

.site-manager-dashboard-shell .dashboard-canvas {
  padding: 0 24px 24px 0;
}

.dashboard-grid {
  width: 100%;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  transition: grid-template-columns 200ms var(--ease);
}

.site-manager-dashboard-shell .dashboard-grid {
  gap: 0;
}

.surface-card {
  position: relative;
  min-width: 0;
  max-width: 100%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.62)),
    var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(22px) saturate(145%);
}

.surface-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  z-index: 40;
  width: var(--sidebar-width);
  height: calc(100vh - var(--header-height));
  min-width: 0;
  overflow: hidden;
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: 8px 0 24px rgba(36, 43, 56, 0.045);
}

.sidebar-inner {
  height: 100%;
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(39, 59, 120, 0.18) transparent;
}

.sidebar-control-row {
  display: flex;
  justify-content: flex-end;
  min-height: 34px;
}

.collapse-toggle {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: var(--ocs-navy);
  background: var(--soft-grey);
  border: 0;
  border-radius: 8px;
  transition:
    color 160ms var(--ease),
    background 160ms var(--ease),
    transform 160ms var(--ease);
}

.collapse-toggle:hover {
  color: #fff;
  background: var(--ocs-orange);
  transform: translateY(-1px);
}

.collapse-toggle svg {
  width: 19px;
  height: 19px;
}

.sidebar-resize-handle {
  position: absolute;
  top: 0;
  right: -5px;
  bottom: 0;
  z-index: 5;
  width: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: ew-resize;
}

.sidebar-resize-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 3px;
  width: 3px;
  height: 72px;
  border-radius: 999px;
  background: rgba(39, 59, 120, 0.18);
  transform: translateY(-50%);
  transition:
    background 160ms var(--ease),
    height 160ms var(--ease);
}

.sidebar-resize-handle:hover::after,
.is-resizing-sidebar .sidebar-resize-handle::after {
  height: 96px;
  background: var(--ocs-orange);
}

.is-resizing-sidebar,
.is-resizing-sidebar * {
  cursor: ew-resize !important;
  user-select: none;
}

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

.sidebar-actions {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.sidebar-support .nav-list {
  gap: 6px;
}

.nav-section-label,
.eyebrow,
.section-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-list,
.submenu {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.nav-button {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  color: #59616e;
  background: transparent;
  border: 0;
  border-radius: 8px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.18;
  overflow: hidden;
  transition:
    background 180ms var(--ease),
    color 180ms var(--ease),
    transform 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.nav-parent {
  grid-template-columns: 32px minmax(0, 1fr) 18px;
}

.nav-button:hover {
  color: var(--ocs-navy);
  background: rgba(244, 91, 32, 0.08);
  transform: translateX(2px);
}

.nav-button:focus-visible,
.icon-button:focus-visible,
.dropdown-trigger:focus-visible,
.dropdown-menu li:focus-visible,
.see-all-button:focus-visible,
.collapse-toggle:focus-visible,
.sidebar-resize-handle:focus-visible {
  outline: 3px solid rgba(244, 91, 32, 0.25);
  outline-offset: 2px;
}

.nav-button.active {
  color: #fff;
  background: var(--ocs-orange);
  box-shadow: 0 10px 18px rgba(244, 91, 32, 0.2);
}

.nav-button.active .nav-icon {
  color: var(--ocs-navy);
  background: #fff;
}

.nav-button.active-parent {
  color: var(--ocs-navy-deep);
  background: rgba(39, 59, 120, 0.07);
}

.nav-button.active-parent .nav-icon {
  color: var(--ocs-navy);
  background: rgba(255, 255, 255, 0.82);
}

.nav-button.danger {
  color: var(--danger);
}

.nav-button.danger:hover {
  background: rgba(229, 72, 77, 0.1);
}

.nav-button.danger.active {
  color: #fff;
}

.nav-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: currentColor;
  background: rgba(39, 59, 120, 0.07);
}

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

.nav-image {
  width: 25px;
  height: 25px;
  object-fit: contain;
  border-radius: 50%;
}

.nav-text {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.nav-chevron {
  display: grid;
  place-items: center;
  color: currentColor;
  opacity: 0.74;
}

.nav-chevron svg {
  width: 17px;
  height: 17px;
  transition: transform 180ms var(--ease);
}

.nav-group.open > .nav-parent > .nav-chevron svg {
  transform: rotate(180deg);
}

.submenu {
  max-height: 0;
  display: grid;
  gap: 5px;
  margin-left: 16px;
  padding-left: 10px;
  border-left: 1px solid transparent;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 230ms var(--ease),
    opacity 180ms var(--ease),
    padding-top 180ms var(--ease),
    padding-bottom 180ms var(--ease),
    border-color 180ms var(--ease);
}

.nav-group.open > .submenu {
  max-height: 680px;
  padding-top: 8px;
  padding-bottom: 6px;
  border-color: var(--line);
  opacity: 1;
}

.submenu-button {
  min-height: 38px;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  padding: 6px 9px;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 650;
}

.submenu-button .nav-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.submenu-button .nav-icon svg {
  width: 15px;
  height: 15px;
}

.submenu-button.nav-parent {
  grid-template-columns: 26px minmax(0, 1fr) 16px;
}

.nav-subgroup > .submenu {
  margin-left: 10px;
  padding-left: 7px;
}

.nav-subgroup.open > .submenu {
  max-height: 280px;
}

.sidebar-collapsed .sidebar-inner {
  padding: 14px 12px 18px;
}

.sidebar-collapsed .sidebar-control-row {
  justify-content: center;
}

.sidebar-collapsed .nav-button {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0;
  width: 48px;
  min-height: 48px;
  margin-inline: auto;
  padding: 6px;
  border-radius: 8px;
}

.sidebar-collapsed .nav-button:hover {
  transform: none;
}

.sidebar-collapsed .nav-icon {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
}

.sidebar-collapsed .nav-text,
.sidebar-collapsed .nav-chevron,
.sidebar-collapsed .submenu,
.sidebar-collapsed .nav-section-label {
  display: none;
}

.sidebar-collapsed .sidebar-resize-handle {
  display: none;
}

.main-content {
  grid-column: 2;
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.site-manager-dashboard-shell .main-content {
  padding-top: 18px;
  padding-left: 18px;
}

.page-heading,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-date-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  width: max-content;
  max-width: 100%;
  margin-left: auto;
}

.dashboard-date-actions #dashboardDateFilter {
  flex: 0 0 auto;
}

.dashboard-date-actions .dashboard-refresh-button {
  flex: 0 0 auto;
}

.dashboard-refresh-toast {
  margin: 0 0 12px auto;
  max-width: 520px;
}

.page-heading h2,
.section-heading h3 {
  margin: 4px 0 0;
  color: var(--ocs-navy-deep);
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  font-weight: 800;
  line-height: 1.05;
}

.page-subheading {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 750;
}

.section-heading h3 {
  font-size: 1.35rem;
}

.date-filter,
.select-filter {
  min-height: 42px;
  display: inline-grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  color: var(--ocs-navy);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  font-weight: 750;
  backdrop-filter: blur(16px);
}

.date-filter svg,
.select-filter svg {
  width: 18px;
  height: 18px;
}

.date-filter input,
.select-filter select {
  width: 144px;
  min-width: 0;
  color: var(--ocs-navy-deep);
  background: transparent;
  border: 0;
  outline: 0;
  font-weight: 800;
}

.select-filter select {
  width: 172px;
  cursor: pointer;
}

.date-filter input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.72;
}

.washroom-filter-bar {
  position: relative;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 18px;
  overflow: visible;
}

.washroom-filter-bar:has(.abi-custom-select.open) {
  z-index: 320;
}

.washroom-filter-bar .activity-date-picker,
.washroom-filter-bar .select-filter,
.washroom-filter-bar .secondary-action-button {
  min-height: var(--control-height);
}

.washroom-filter-bar .secondary-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.washroom-filter-bar[hidden],
.washroom-view[hidden],
.l8-overview-view[hidden],
.l8-setup-view[hidden] {
  display: none;
}

.washroom-view {
  display: grid;
  gap: 18px;
}

.floor-content-with-insights {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
  align-items: start;
  gap: 18px;
}

.washroom-location-list {
  display: grid;
  gap: 18px;
}

.location-card {
  display: grid;
  gap: 22px;
  min-width: 0;
  padding: 26px;
}

.location-card[hidden] {
  display: none;
}

.location-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.location-header > div {
  min-width: 0;
}

.location-header h3 {
  margin: 0;
  color: var(--ocs-navy-deep);
  font-size: clamp(1.22rem, 1.7vw, 1.48rem);
  font-weight: 850;
  line-height: 1.1;
}

.location-header p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  min-height: 36px;
  padding: 8px 12px;
  color: var(--ocs-navy);
  background: rgba(41, 55, 113, 0.08);
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.location-badge svg {
  width: 16px;
  height: 16px;
}

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

.washroom-kpi-card {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 34px rgba(36, 43, 56, 0.07);
}

.washroom-kpi-card .metric-icon {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
}

.washroom-kpi-card .metric-icon svg {
  width: 24px;
  height: 24px;
}

.kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: var(--success);
  font-size: 0.76rem;
  font-weight: 800;
}

.kpi-trend svg {
  width: 14px;
  height: 14px;
}

.washroom-chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 16px;
}

.washroom-chart-card {
  padding: 20px;
  border-radius: var(--radius-lg);
}

.washroom-chart-card .card-header {
  align-items: center;
  margin-bottom: 12px;
}

.washroom-chart-card h4 {
  margin: 0;
  color: var(--ocs-navy-deep);
  font-size: 0.98rem;
  font-weight: 850;
}

.chart-level-label {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.reset-chart-button {
  min-height: 36px;
  min-width: 112px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  color: var(--ocs-navy);
  background: #fff;
  border: 1px solid #d9d6d2;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(39, 59, 120, 0.07);
  transition:
    color 160ms var(--ease),
    border-color 160ms var(--ease),
    transform 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

.reset-chart-button:hover {
  color: var(--ocs-orange);
  border-color: rgba(241, 95, 34, 0.38);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.reset-chart-button svg {
  width: 15px;
  height: 15px;
}

.washroom-chart-frame {
  height: 280px;
}

.washroom-dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 18px;
  min-width: 0;
}

.washroom-dashboard-wide-chart {
  grid-column: 1 / -1;
}

.washroom-dashboard-lower-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}

.washroom-dashboard-kpi-card .metric-icon-muted {
  color: var(--muted);
  background: rgba(128, 130, 133, 0.14);
}

.washroom-dashboard-kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  color: var(--success);
  font-size: 0.77rem;
  font-weight: 800;
}

.washroom-dashboard-kpi-trend.down {
  color: var(--danger);
}

.washroom-dashboard-kpi-trend.flat {
  color: var(--muted);
}

.washroom-dashboard-kpi-trend svg {
  width: 14px;
  height: 14px;
}

.washroom-dashboard-range {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.washroom-dashboard-range .secondary-action-button {
  min-height: 36px;
  padding: 0 14px;
}

.washroom-dashboard-range .secondary-action-button.active {
  color: #fff;
  background: var(--ocs-navy);
  border-color: var(--ocs-navy);
  box-shadow: 0 12px 24px rgba(41, 55, 113, 0.18);
}

.secondary-action-button.is-loading,
.secondary-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.washroom-alert-list {
  display: grid;
  gap: 12px;
}

.washroom-alert-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(222, 219, 214, 0.72);
  border-radius: var(--radius-md);
}

.washroom-alert-item strong {
  display: block;
  color: var(--ocs-navy-deep);
  font-size: 0.9rem;
  font-weight: 850;
}

.washroom-alert-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.washroom-trend-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  color: var(--success);
  background: rgba(38, 162, 105, 0.12);
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 850;
  white-space: nowrap;
}

.washroom-trend-pill.down {
  color: var(--danger);
  background: rgba(229, 72, 77, 0.12);
}

.washroom-trend-pill.flat {
  color: var(--muted);
  background: rgba(128, 130, 133, 0.12);
}

.washroom-dashboard-empty {
  margin: 0;
}

.washroom-dashboard-kpi-grid {
  gap: 14px;
}

.washroom-dashboard-kpi-card {
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 13px;
  min-height: 112px;
  padding: 18px 20px;
}

.washroom-dashboard-kpi-card .metric-icon {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}

.washroom-dashboard-kpi-card .metric-icon svg {
  width: 20px;
  height: 20px;
}

.washroom-dashboard-kpi-card span:not(.metric-icon) {
  font-size: 0.8rem;
  line-height: 1.25;
}

.washroom-dashboard-kpi-card strong {
  margin-top: 6px;
  font-size: clamp(1.34rem, 1.65vw, 1.78rem);
}

.washroom-dashboard-kpi-card p {
  margin-top: 6px;
}

.washroom-dashboard-lower-grid .reports-card {
  gap: 14px;
  padding: 22px;
}

.washroom-dashboard-lower-grid .reports-toolbar {
  gap: 12px;
}

.washroom-dashboard-lower-grid .reports-toolbar h3 {
  font-size: clamp(1.02rem, 1.18vw, 1.18rem);
}

.washroom-dashboard-compact-table {
  min-width: 560px;
  font-size: 0.74rem;
}

.washroom-dashboard-compact-table th,
.washroom-dashboard-compact-table td {
  padding: 10px 11px;
}

.washroom-dashboard-compact-table th {
  font-size: 0.66rem;
}

.washroom-dashboard-compact-table td {
  line-height: 1.32;
}

.washroom-dashboard-table-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-align: center;
}

.washroom-alert-list {
  gap: 10px;
}

.washroom-alert-item {
  padding: 11px 12px;
}

.washroom-alert-item strong {
  font-size: 0.84rem;
}

.washroom-alert-item p {
  font-size: 0.74rem;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .washroom-dashboard-kpi-card {
    min-height: 104px;
    padding: 16px;
  }

  .washroom-dashboard-compact-table {
    min-width: 0;
  }

  .washroom-dashboard-compact-table,
  .washroom-dashboard-compact-table tbody,
  .washroom-dashboard-compact-table tr,
  .washroom-dashboard-compact-table td {
    display: block;
    width: 100%;
  }

  .washroom-dashboard-compact-table thead {
    display: none;
  }

  .washroom-dashboard-compact-table tbody {
    padding: 8px;
  }

  .washroom-dashboard-compact-table tbody tr {
    padding: 10px 0;
    border-bottom: 1px solid rgba(222, 219, 214, 0.66);
  }

  .washroom-dashboard-compact-table tbody tr:last-child {
    border-bottom: 0;
  }

  .washroom-dashboard-compact-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 7px 10px;
    border-bottom: 0;
    text-align: right;
  }

  .washroom-dashboard-compact-table td::before {
    content: attr(data-label);
    min-width: 116px;
    color: var(--ocs-navy);
    font-size: 0.66rem;
    font-weight: 850;
    text-align: left;
    text-transform: uppercase;
  }

  .washroom-dashboard-compact-table td.washroom-dashboard-table-empty {
    display: block;
    padding: 12px;
    text-align: left;
  }

  .washroom-dashboard-compact-table td.washroom-dashboard-table-empty::before {
    content: none;
  }
}

.insights-card {
  padding: 26px 28px;
}

.floor-insights-panel {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  align-self: start;
  padding: 22px;
}

.floor-insights-panel .compact-insight-list {
  display: flex !important;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
  grid-template-columns: none !important;
}

.floor-insights-panel .compact-insight-list .insight-item {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  grid-template-columns: none !important;
}

.floor-insights-panel .compact-insight-list .mini-card-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  margin: 0;
}

.floor-insights-panel .compact-insight-list strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.25;
}

.floor-insights-panel .compact-insight-list p {
  margin-top: 4px;
  font-size: 0.78rem;
  line-height: 1.42;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

.l8-overview-insight-grid {
  display: flex !important;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  grid-template-columns: none !important;
}

.l8-overview-insight-grid .insight-item {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  grid-template-columns: none !important;
}

.l8-overview-insight-grid .mini-card-icon {
  width: 34px;
  height: 34px;
  margin: 0;
}

.l8-view {
  gap: 18px;
}

.l8-overview-view,
.l8-setup-view {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.dashboard-customise-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.dashboard-insights-action {
  display: inline-flex;
  align-items: center;
}

.dashboard-insights-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(23, 38, 83, 0.34);
  backdrop-filter: blur(5px);
}

.dashboard-insights-modal-backdrop[hidden] {
  display: none;
}

.dashboard-insights-modal {
  width: min(720px, 90vw);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}

.dashboard-insights-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
}

.dashboard-insights-modal-header h3 {
  margin: 0;
  color: var(--ocs-navy-deep);
  font-size: 1.16rem;
  font-weight: 850;
}

.dashboard-insights-close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.dashboard-insights-close svg {
  width: 17px;
  height: 17px;
}

.dashboard-insights-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(80vh - 78px);
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 24px 24px;
}

.dashboard-insights-list .insight-item {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  grid-template-columns: none !important;
}

.dashboard-insights-list .mini-card-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  margin: 0;
}

.dashboard-insights-list .insight-content,
.floor-insights-panel .compact-insight-list .insight-content,
.l8-overview-insight-grid .insight-content {
  min-width: 0;
  flex: 1;
}

.dashboard-insights-list strong {
  display: block;
  color: var(--ocs-navy-deep);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.25;
}

.dashboard-insights-list p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.45;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

.dashboard-insights-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

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

.l8-kpi-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 22px;
}

.l8-kpi-card span:not(.metric-icon) {
  display: block;
  color: var(--charcoal);
  font-size: 0.84rem;
  font-weight: 750;
}

.l8-kpi-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ocs-navy-deep);
  font-size: clamp(1.52rem, 2vw, 2rem);
  font-weight: 900;
  line-height: 1;
}

.l8-kpi-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

#washroomDashboardPage .washroom-dashboard-kpi-grid {
  gap: 12px !important;
}

#washroomDashboardPage .washroom-dashboard-kpi-card {
  grid-template-columns: 40px minmax(0, 1fr) !important;
  gap: 10px !important;
  min-height: 92px !important;
  padding: 14px 16px !important;
}

#washroomDashboardPage .washroom-dashboard-kpi-card .metric-icon {
  width: 36px !important;
  height: 36px !important;
  flex: 0 0 36px !important;
  flex-basis: 36px !important;
}

#washroomDashboardPage .washroom-dashboard-kpi-card .metric-icon svg {
  width: 17px !important;
  height: 17px !important;
}

#washroomDashboardPage .washroom-dashboard-kpi-card span:not(.metric-icon) {
  font-size: 0.78rem !important;
  line-height: 1.2 !important;
}

#washroomDashboardPage .washroom-dashboard-kpi-card strong {
  margin-top: 4px !important;
  font-size: clamp(1.28rem, 1.45vw, 1.58rem) !important;
  line-height: 1.08 !important;
}

#washroomDashboardPage .washroom-dashboard-kpi-card p,
#washroomDashboardPage .washroom-dashboard-kpi-trend {
  margin-top: 4px !important;
  font-size: 0.68rem !important;
  line-height: 1.2 !important;
}

#washroomDashboardPage .washroom-dashboard-kpi-trend svg {
  width: 12px !important;
  height: 12px !important;
}

#l8OverviewPage .l8-kpi-grid,
#airQualityDashboardPage .l8-kpi-grid {
  gap: 12px !important;
}

#l8OverviewPage .l8-kpi-card,
#airQualityDashboardPage .l8-kpi-card {
  grid-template-columns: 40px minmax(0, 1fr) !important;
  gap: 10px !important;
  min-height: 92px !important;
  padding: 14px 16px !important;
}

#l8OverviewPage .l8-kpi-card .metric-icon,
#airQualityDashboardPage .l8-kpi-card .metric-icon {
  width: 36px !important;
  height: 36px !important;
  flex: 0 0 36px !important;
  flex-basis: 36px !important;
}

#l8OverviewPage .l8-kpi-card .metric-icon svg,
#airQualityDashboardPage .l8-kpi-card .metric-icon svg {
  width: 17px !important;
  height: 17px !important;
}

#l8OverviewPage .l8-kpi-card span:not(.metric-icon),
#airQualityDashboardPage .l8-kpi-card span:not(.metric-icon) {
  font-size: 0.78rem !important;
  line-height: 1.2 !important;
}

#l8OverviewPage .l8-kpi-card strong,
#airQualityDashboardPage .l8-kpi-card strong {
  margin-top: 4px !important;
  font-size: clamp(1.28rem, 1.45vw, 1.58rem) !important;
  line-height: 1.08 !important;
}

#l8OverviewPage .l8-kpi-card p,
#airQualityDashboardPage .l8-kpi-card p {
  margin-top: 4px !important;
  font-size: 0.68rem !important;
  line-height: 1.2 !important;
}

.metric-icon-success,
.mini-card-icon.success {
  color: #176c45;
  background: rgba(38, 162, 105, 0.12);
}

.metric-icon-danger {
  color: var(--danger);
  background: rgba(229, 72, 77, 0.12);
}

.metric-icon-info,
.mini-card-icon.info {
  color: var(--ocs-navy);
  background: rgba(41, 55, 113, 0.1);
}

.metric-label-with-info,
.reports-table th,
.threshold-card h4,
.threshold-card .form-field > span,
.card-header h3,
.card-header h4 {
  overflow: visible;
}

.metric-label-with-info {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.info-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 5px;
  z-index: 6;
}

.info-tooltip-icon {
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: rgba(41, 55, 113, 0.08);
  cursor: help;
  padding: 0;
  transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.info-tooltip-icon svg {
  width: 11px;
  height: 11px;
  stroke-width: 2.4;
}

.info-tooltip-icon:hover,
.info-tooltip-icon:focus-visible {
  color: var(--ocs-navy);
  background: rgba(41, 55, 113, 0.14);
  outline: none;
  box-shadow: 0 0 0 3px rgba(41, 55, 113, 0.1);
}

.info-tooltip-content {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 260px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #16224f;
  color: #fff;
  font-size: 0.72rem;
  line-height: 1.35;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
  box-shadow: 0 14px 30px rgba(18, 28, 70, 0.2);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  z-index: 80;
}

.info-tooltip-content::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #16224f;
}

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

.reports-table th .info-tooltip-content {
  top: calc(100% + 9px);
  bottom: auto;
}

.reports-table th .info-tooltip-content::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: #16224f;
}

.l8-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 18px;
}

.l8-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.l8-bottom-grid > .l8-recent-alerts-card:only-child {
  grid-column: 1 / -1;
}

.l8-overview-trend-card .card-header p,
.l8-floor-compliance-card .card-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.l8-overview-chart-frame {
  height: 320px;
}

.l8-floor-compliance-list {
  display: grid;
  gap: 10px;
}

.l8-floor-compliance-row {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 14px;
  padding: 14px;
  color: inherit;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(222, 219, 214, 0.72);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: left;
  transition:
    transform 160ms var(--ease),
    border-color 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

.l8-floor-compliance-row:hover {
  transform: translateY(-1px);
  border-color: rgba(41, 55, 113, 0.2);
  box-shadow: var(--shadow-sm);
}

.l8-floor-compliance-row > svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.l8-compliance-ring {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 56%, transparent 57%),
    conic-gradient(#26a269 calc(var(--value) * 1%), rgba(229, 72, 77, 0.85) 0 100%);
  box-shadow: inset 0 0 0 1px rgba(222, 219, 214, 0.7);
}

.l8-compliance-ring span {
  color: var(--ocs-navy-deep);
  font-size: 0.72rem;
  font-weight: 900;
}

.l8-floor-compliance-copy {
  min-width: 0;
}

.l8-floor-compliance-copy strong {
  display: block;
  color: var(--ocs-navy-deep);
  font-size: 0.9rem;
  font-weight: 850;
}

.l8-floor-compliance-copy em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 700;
}

.l8-location-list {
  grid-template-columns: minmax(0, 1fr);
}

.l8-location-list .location-card {
  align-content: start;
}

.l8-location-title-group {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.l8-location-title-group .mini-card-icon {
  margin: 0;
}

.l8-location-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.l8-detail-toggle {
  min-height: 36px;
  padding-inline: 12px;
}

.l8-detail-toggle svg {
  width: 15px;
  height: 15px;
}

.l8-detail-toggle.active {
  color: var(--ocs-orange);
  border-color: rgba(241, 95, 34, 0.34);
}

.l8-location-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.l8-location-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 10px;
  background: rgba(41, 55, 113, 0.06);
  border: 1px solid rgba(41, 55, 113, 0.08);
  border-radius: var(--radius-pill);
}

.l8-location-meta svg {
  width: 14px;
  height: 14px;
}

.l8-location-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(222, 219, 214, 0.72);
  border-radius: var(--radius-lg);
}

.l8-location-details[hidden] {
  display: none;
}

.l8-location-details div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.l8-location-details strong {
  color: var(--ocs-navy-deep);
  font-size: 0.78rem;
  font-weight: 850;
}

.l8-location-details span,
.l8-location-details em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.l8-chart-card .card-header {
  gap: 12px;
}

.l8-chart-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.l8-chart-meta .status-pill {
  min-height: 26px;
}

.l8-chart-range {
  min-height: 36px;
  min-width: 112px;
  padding: 0 12px;
  color: var(--ocs-navy);
  background: #fff;
  border: 1px solid #d9d6d2;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(39, 59, 120, 0.07);
}

.l8-threshold-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.l8-threshold-note svg {
  width: 14px;
  height: 14px;
}

.l8-alerts-table {
  min-width: 980px;
}

.l8-recent-alerts-table {
  min-width: 1120px;
}

.l8-management-table {
  min-width: 1380px;
}

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

.air-quality-chart-grid .washroom-chart-card:last-child {
  grid-column: 1 / -1;
}

.air-quality-floor-summary-table {
  min-width: 760px;
}

.air-quality-alerts-table {
  min-width: 980px;
}

.air-quality-management-table {
  min-width: 1540px;
}

.air-quality-management-alerts-table {
  min-width: 1380px;
}

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

.threshold-card {
  min-width: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(222, 219, 214, 0.72);
  border-radius: var(--radius-lg);
}

.threshold-card h4 {
  margin: 0 0 12px;
  color: var(--ocs-navy-deep);
  font-size: 0.9rem;
  font-weight: 850;
}

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

.threshold-fields .form-field span {
  font-size: 0.68rem;
}

.air-quality-value-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.air-quality-value-card {
  min-width: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(222, 219, 214, 0.72);
  border-radius: var(--radius-lg);
}

.air-quality-value-card span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.air-quality-value-card strong {
  display: block;
  margin-top: 6px;
  color: var(--ocs-navy-deep);
  font-size: 1.1rem;
  font-weight: 900;
}

.table-muted {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.table-link-button {
  padding: 0;
  color: var(--ocs-navy);
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.table-link-button:hover {
  color: var(--ocs-orange);
}

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

.insight-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-lg);
}

.insight-item .mini-card-icon {
  margin: 0;
}

.insight-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ocs-navy-deep);
  font-size: 0.94rem;
  font-weight: 850;
}

.insight-item p {
  margin: 0;
  color: #555d69;
  font-size: 0.84rem;
  font-weight: 620;
  line-height: 1.45;
}

.summary-card {
  padding: 24px 26px;
  min-width: 0;
  overflow: hidden;
}

.home-dashboard-section {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.home-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.home-section-heading h3 {
  margin: 0;
  color: var(--ocs-navy-deep);
  font-size: clamp(1.16rem, 1.28vw, 1.36rem);
  font-weight: 850;
}

.home-section-loading {
  margin: 0;
}

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

.home-dashboard-section .kpi-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kpi-item {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.metric-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  color: var(--ocs-navy);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(228, 228, 227, 0.64));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 24px rgba(39, 59, 120, 0.08);
  border-radius: 50%;
}

.metric-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 2.15;
}

.metric-icon-orange {
  color: var(--ocs-orange);
}

.metric-icon-plain {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  color: #69707b;
  background: transparent;
}

.metric-icon-plain svg {
  width: 27px;
  height: 27px;
}

.kpi-label,
.inline-stat span,
.mini-card span,
.floor-card span,
.header-user-card span,
.message-preview {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.kpi-value {
  margin-top: 2px;
  color: var(--charcoal);
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
  font-weight: 760;
  line-height: 1.1;
}

.chart-card {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 26px 28px;
  transition:
    transform 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.chart-card:hover,
.mini-card:hover,
.floor-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.card-header.compact {
  align-items: center;
  margin-bottom: 14px;
}

.card-header h3,
.notification-popover h3 {
  margin: 0;
  color: var(--ocs-navy-deep);
  font-size: clamp(1.18rem, 1.6vw, 1.42rem);
  font-weight: 800;
}

.inline-stat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.inline-stat strong {
  display: block;
  margin-top: 2px;
  color: #5b6068;
  font-size: 1rem;
  font-weight: 740;
}

.chart-controls {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.chart-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.compact-chart-filter {
  min-height: 36px;
  padding: 0 12px;
}

.compact-chart-filter select {
  min-width: 104px;
}

.legend {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: #5f6670;
  font-size: 0.85rem;
  font-weight: 730;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.legend-square {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.legend-square-light {
  background: var(--ocs-peach);
}

.legend-square-dark {
  background: var(--ocs-orange);
}

.legend-muted {
  color: #9aa0a7;
}

.legend-dark {
  color: #0f1420;
}

.dropdown {
  position: relative;
}

.dropdown-trigger {
  min-width: 110px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  color: #5e646c;
  background: #fff;
  border: 1px solid #d9d6d2;
  border-radius: 8px;
  font-weight: 730;
  transition:
    border-color 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

.dropdown-trigger svg {
  width: 18px;
  height: 18px;
  transition: transform 160ms var(--ease);
}

.dropdown.open .dropdown-trigger {
  border-color: rgba(244, 91, 32, 0.4);
  box-shadow: 0 12px 26px rgba(244, 91, 32, 0.14);
}

.dropdown.open .dropdown-trigger svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 150px;
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    opacity 150ms var(--ease),
    transform 150ms var(--ease);
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu li {
  padding: 9px 11px;
  border-radius: 10px;
  color: #4f5661;
  font-weight: 730;
}

.dropdown-menu li:hover,
.dropdown-menu li[aria-selected="true"] {
  color: var(--ocs-orange);
  background: rgba(244, 91, 32, 0.1);
}

.chart-frame {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.chart-frame canvas {
  width: 100% !important;
  max-width: 100% !important;
}

.chart-frame-large {
  height: 352px;
}

.chart-frame-medium {
  height: 270px;
}

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

.home-washroom-chart-row {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.home-washroom-chart-row > .chart-card {
  display: grid;
  grid-template-rows: auto minmax(250px, 1fr) auto;
  min-height: 430px;
}

.home-floor-card .donut-wrap,
.home-sensor-card .donut-wrap {
  align-self: center;
  margin-block: 8px;
}

.home-floor-chart-frame {
  height: 315px;
  align-self: center;
  padding: 2px 4px 0;
}

.home-trend-chart-frame {
  height: 310px;
}

.dashboard-aggregation-dropdown {
  min-width: 118px;
}

.dashboard-aggregation-dropdown .dropdown-trigger {
  min-height: 44px;
  padding: 0 14px;
}

.dashboard-aggregation-dropdown .dropdown-menu {
  min-width: 100%;
}

.home-cleaning-card {
  width: 100%;
}

.donut-wrap {
  position: relative;
  width: min(290px, 100%);
  height: 260px;
  margin: 18px auto 8px;
}

.home-sensor-card .donut-wrap {
  width: min(330px, 100%);
  height: 292px;
  margin-block: 2px 4px;
}

.device-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.device-legend-item {
  display: grid;
  justify-items: center;
  gap: 2px;
  color: #5f6670;
  font-weight: 730;
  text-align: center;
}

.device-legend-item span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.floor-legend-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px;
  width: 100%;
  margin: 4px auto 0;
}

.floor-legend-grid .device-legend-item {
  justify-items: start;
  text-align: left;
  padding-inline: 6px;
}

.sensor-legend-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.sensor-legend-row .device-legend-item {
  gap: 5px;
}

.sensor-legend-row .device-legend-item strong,
.floor-legend-grid .device-legend-item strong {
  color: var(--ocs-navy-deep);
  font-size: 0.94rem;
  font-weight: 850;
}

.home-kpi-grid {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.home-kpi-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-kpi-grid-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-kpi-grid .l8-kpi-card {
  min-height: 118px;
}

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

.home-aiq-chart-grid .washroom-chart-card {
  min-height: 380px;
}

.home-aiq-chart-grid .washroom-chart-frame {
  height: 305px;
}

@media (max-width: 1420px) {
  .home-kpi-grid-five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .home-washroom-chart-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-washroom-chart-row > .chart-card {
    min-height: 360px;
  }

  .home-kpi-grid-three,
  .home-kpi-grid-five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-aiq-chart-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .home-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-aggregation-dropdown,
  .dashboard-aggregation-dropdown .dropdown-trigger {
    width: 100%;
  }

  .kpi-row,
  .compact-grid,
  .home-kpi-grid-three,
  .home-kpi-grid-five {
    grid-template-columns: minmax(0, 1fr);
  }

  .floor-legend-grid,
  .sensor-legend-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .floor-legend-grid .device-legend-item,
  .sensor-legend-row .device-legend-item {
    justify-items: center;
    text-align: center;
  }
}

.device-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

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

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

.mini-card,
.floor-card {
  min-height: 118px;
  padding: 17px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.58));
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    transform 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.mini-card {
  min-height: 108px;
}

.mini-card-icon,
.floor-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  color: var(--ocs-navy);
  background: rgba(39, 59, 120, 0.08);
  border-radius: 14px;
}

.mini-card-icon.orange,
.floor-icon.orange {
  color: var(--ocs-orange);
  background: rgba(244, 91, 32, 0.12);
}

.mini-card-icon.danger {
  color: var(--danger);
  background: rgba(229, 72, 77, 0.12);
}

.mini-card-icon svg,
.floor-icon svg {
  width: 19px;
  height: 19px;
}

.mini-card strong,
.floor-card strong {
  display: block;
  color: var(--ocs-navy-deep);
  font-size: 1.3rem;
  line-height: 1.1;
}

.floor-section {
  display: grid;
  gap: 16px;
}

.floor-card {
  display: grid;
  align-content: space-between;
}

.icon-button {
  position: relative;
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  color: var(--ocs-navy-deep);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58));
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(39, 59, 120, 0.08);
  transition:
    transform 160ms var(--ease),
    box-shadow 160ms var(--ease),
    background 160ms var(--ease);
}

.icon-button svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.35;
}

.icon-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.notification-dot {
  position: absolute;
  top: 2px;
  right: 4px;
  min-width: 0;
  height: auto;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--ocs-orange);
  background: transparent;
  box-shadow: none;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.notification-dot[hidden] {
  display: none;
}

.header-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 5px 4px 14px;
  color: inherit;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 24px rgba(39, 59, 120, 0.08);
  text-align: right;
  transition:
    transform 160ms var(--ease),
    box-shadow 160ms var(--ease),
    background 160ms var(--ease);
}

.header-user-card:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-md);
}

.header-user-card strong {
  display: block;
  color: #12151d;
  font-weight: 800;
}

.header-user-card span:not(.avatar) {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.avatar {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 54px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(244, 91, 32, 0.95), rgba(39, 59, 120, 0.98)),
    var(--ocs-navy);
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 14px 30px rgba(39, 59, 120, 0.18);
  font-weight: 800;
}

.avatar-small {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border-width: 3px;
}

.notification-popover,
.profile-popover {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 100;
  width: min(410px, calc(100vw - 32px));
  max-height: calc(100vh - var(--header-height) - 24px);
  display: grid;
  gap: 16px;
  padding: 22px;
  overflow: auto;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.74));
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(24px) saturate(155%);
  transform-origin: top right;
}

.profile-popover {
  right: 0;
  width: clamp(300px, 28vw, 340px);
  max-width: calc(100vw - 32px);
  z-index: 320;
  gap: 10px;
  padding: 16px;
  overflow-x: hidden;
  background: #ffffff;
  border: 1px solid rgba(222, 219, 214, 0.9);
  border-radius: 18px;
  box-shadow:
    0 24px 54px rgba(36, 43, 56, 0.16),
    0 10px 26px rgba(39, 59, 120, 0.09);
  backdrop-filter: none;
  opacity: 1;
}

.notification-popover {
  background:
    linear-gradient(145deg, #ffffff, #fbfaf8);
  border-color: rgba(222, 219, 214, 0.86);
  box-shadow:
    0 30px 80px rgba(36, 43, 56, 0.18),
    0 8px 24px rgba(39, 59, 120, 0.08);
  backdrop-filter: blur(28px) saturate(150%);
}

.notification-popover[hidden],
.profile-popover[hidden] {
  display: none;
}

.notification-popover-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 26px;
}

.notification-popover-header span {
  display: none;
}

.profile-popover-header {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 2px 2px 14px;
  background: #ffffff;
  border-bottom: 1px solid rgba(222, 219, 214, 0.9);
}

.profile-popover-header > div {
  min-width: 0;
}

.profile-popover-header h3 {
  margin: 0;
  color: var(--ocs-navy-deep);
  font-size: 1rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-popover-header p,
.profile-email {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.profile-email {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-popover-summary {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 4px 2px 8px;
  background: #ffffff;
  border-bottom: 1px solid rgba(222, 219, 214, 0.72);
}

.profile-popover-summary div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 30px;
}

.profile-popover-summary dt,
.profile-popover-summary dd {
  margin: 0;
}

.profile-popover-summary dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profile-popover-summary dd {
  min-width: 0;
  color: var(--ocs-navy-deep);
  font-size: 0.84rem;
  font-weight: 780;
  overflow-wrap: anywhere;
}

.profile-menu-list {
  display: grid;
  gap: 4px;
  padding-top: 2px;
  background: #ffffff;
}

.profile-menu-list button {
  min-height: 44px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #343b46;
  background: #ffffff;
  border: 0;
  border-radius: 14px;
  text-align: left;
  font-weight: 750;
  transition:
    color 160ms var(--ease),
    background 160ms var(--ease),
    transform 160ms var(--ease);
}

.profile-menu-list button:hover {
  color: var(--ocs-navy);
  background: rgba(244, 91, 32, 0.1);
  transform: translateX(2px);
}

.profile-menu-list svg {
  width: 19px;
  height: 19px;
}

.profile-menu-list .danger-menu-item {
  color: var(--danger);
}

.message-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.message-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 13px 12px;
  background: #ffffff;
  border: 1px solid rgba(222, 219, 214, 0.78);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(36, 43, 56, 0.045);
  cursor: pointer;
  transition:
    background 160ms var(--ease),
    border-color 160ms var(--ease),
    box-shadow 160ms var(--ease),
    transform 160ms var(--ease);
}

.message-item:hover {
  background: #fff8f4;
  border-color: rgba(244, 91, 32, 0.28);
  box-shadow: 0 14px 30px rgba(36, 43, 56, 0.07);
  transform: translateX(2px);
}

.message-item.unread {
  background: #fff1ea;
  border-color: rgba(244, 91, 32, 0.22);
}

.message-item:first-child {
  padding-top: 13px;
}

.message-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--ocs-navy);
  background: var(--soft-grey);
  border-radius: 50%;
}

.message-icon.alert {
  color: var(--ocs-orange);
  background: rgba(244, 91, 32, 0.12);
}

.message-icon.danger,
.message-icon.critical {
  color: var(--danger);
  background: rgba(229, 72, 77, 0.12);
}

.message-icon.high {
  color: var(--ocs-orange);
  background: rgba(244, 91, 32, 0.12);
}

.message-icon.medium {
  color: var(--ocs-navy);
  background: rgba(41, 55, 113, 0.1);
}

.message-icon.low {
  color: var(--success);
  background: rgba(38, 162, 105, 0.12);
}

.message-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-bottom: 5px;
  color: #1b1f2a;
  font-size: 0.88rem;
  font-weight: 760;
  line-height: 1.18;
}

.message-time {
  color: #111521;
  font-size: 0.76rem;
  font-weight: 740;
  line-height: 1.2;
  white-space: nowrap;
  justify-self: end;
  padding-top: 2px;
}

.message-preview {
  margin: 0;
  color: #66707c;
  font-size: 0.78rem;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.message-extra {
  display: none;
}

.messages-expanded .message-extra {
  display: grid;
}

.see-all-button {
  width: 100%;
  min-height: 58px;
  margin-top: auto;
  color: #111521;
  background: rgba(255, 255, 255, 0.94);
  border: 0;
  border-radius: var(--radius-pill);
  box-shadow: 0 18px 36px rgba(36, 43, 56, 0.09);
  font-size: 1.03rem;
  font-weight: 800;
  transition:
    transform 160ms var(--ease),
    box-shadow 160ms var(--ease),
    background 160ms var(--ease);
}

.see-all-button:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.reports-view[hidden],
.inactive-module-view[hidden],
.modal-backdrop[hidden],
.custom-date-field[hidden],
.schedule-fields[hidden],
.schedule-weekly[hidden],
.schedule-monthly[hidden],
.schedule-yearly[hidden],
.cleaning-demand-fields[hidden],
.cleaning-scheduled-fields[hidden],
.table-loading[hidden] {
  display: none;
}

.reports-view {
  min-width: 0;
}

#activityLogPage,
#cleanerActivityPage {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

#cleaningSchedulePage:not([hidden]) {
  display: grid;
  gap: 18px;
}

.inactive-module-view {
  min-width: 0;
  display: grid;
  align-items: start;
  padding-top: 8px;
}

.inactive-module-card {
  width: min(100%, 760px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: clamp(26px, 4vw, 42px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.inactive-module-card::after {
  content: "";
  position: absolute;
  right: -72px;
  bottom: -88px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(241, 95, 34, 0.12), transparent 64%),
    radial-gradient(circle at 36% 28%, rgba(41, 55, 113, 0.1), transparent 62%);
  pointer-events: none;
}

.inactive-module-icon {
  position: relative;
  z-index: 1;
  width: 68px;
  height: 68px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(145deg, var(--ocs-navy), var(--ocs-navy-deep));
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(39, 59, 120, 0.22);
}

.inactive-module-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 2.2;
}

.inactive-module-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.inactive-module-eyebrow {
  margin: 0 0 8px;
  color: var(--ocs-orange-deep);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.inactive-module-title {
  margin: 0;
  color: var(--ocs-navy-deep);
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  font-weight: 880;
  line-height: 1.04;
}

.inactive-module-description {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--charcoal);
  font-size: 1.02rem;
  font-weight: 720;
}

.inactive-module-support {
  max-width: 520px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.inactive-module-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 22px;
  padding: 7px 12px;
  color: var(--ocs-navy);
  background: rgba(254, 226, 213, 0.82);
  border: 1px solid rgba(241, 95, 34, 0.16);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 22px rgba(241, 95, 34, 0.08);
  font-size: 0.78rem;
  font-weight: 850;
}

.profile-page {
  display: grid;
  gap: 18px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
}

.profile-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius-xl);
}

.profile-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-card-header h3 {
  margin: 0;
  color: var(--ocs-navy-deep);
  font-size: 1.08rem;
  font-weight: 850;
}

.profile-summary-card,
.profile-activity-card {
  align-content: start;
}

.profile-summary {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  flex-basis: 72px;
  font-size: 1.18rem;
}

.profile-summary h4 {
  margin: 0;
  color: var(--ocs-navy-deep);
  font-size: 1.24rem;
  font-weight: 850;
}

.profile-summary p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.profile-summary-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.profile-summary-list div {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(222, 219, 214, 0.58);
  border-radius: 16px;
}

.profile-summary-list dt,
.profile-summary-list dd {
  margin: 0;
}

.profile-summary-list dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-summary-list dd {
  min-width: 0;
  color: var(--ocs-navy-deep);
  font-size: 0.88rem;
  font-weight: 780;
  overflow-wrap: anywhere;
}

.profile-form-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.password-rules {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
}

.profile-activity-card {
  grid-column: 1 / -1;
}

.profile-activity-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(222, 219, 214, 0.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.profile-activity-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.profile-activity-table th,
.profile-activity-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(222, 219, 214, 0.66);
  text-align: left;
}

.profile-activity-table th {
  color: var(--ocs-navy);
  background: rgba(41, 55, 113, 0.07);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-activity-table td {
  color: #48505b;
  font-weight: 650;
}

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

.notifications-toolbar {
  align-items: center;
}

.notifications-actions {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(300px, 330px);
  align-items: center;
}

.notifications-actions .report-search,
.notifications-actions .activity-date-picker {
  width: 100%;
  min-width: 0;
}

.notification-chip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.notification-chip-row button {
  min-height: 34px;
  padding: 0 13px;
  color: var(--ocs-navy);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(222, 219, 214, 0.82);
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 850;
  transition:
    color 160ms var(--ease),
    background 160ms var(--ease),
    border-color 160ms var(--ease),
    transform 160ms var(--ease);
}

.notification-chip-row button:hover,
.notification-chip-row button.active {
  color: #fff;
  background: var(--ocs-orange);
  border-color: rgba(244, 91, 32, 0.3);
  transform: translateY(-1px);
}

.smart-insights-section {
  display: grid;
  gap: 14px;
}

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

.smart-insight-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(222, 219, 214, 0.66);
  border-radius: 18px;
}

.smart-insight-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--ocs-orange);
  background: rgba(244, 91, 32, 0.12);
  border-radius: 14px;
}

.smart-insight-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.smart-insight-card h4 {
  margin: 8px 0 4px;
  color: var(--ocs-navy-deep);
  font-size: 0.92rem;
  font-weight: 850;
}

.smart-insight-card p {
  margin: 0;
  color: #555d69;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.45;
}

.smart-insight-card time {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 750;
}

.smart-insight-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 7px;
}

.priority-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: var(--radius-pill);
  color: var(--ocs-navy);
  background: rgba(41, 55, 113, 0.09);
  font-size: 0.68rem;
  font-weight: 850;
}

.priority-pill.critical {
  color: var(--danger);
  background: rgba(229, 72, 77, 0.12);
}

.priority-pill.high {
  color: var(--ocs-orange-deep);
  background: rgba(244, 91, 32, 0.12);
}

.priority-pill.medium {
  color: var(--ocs-navy);
  background: rgba(41, 55, 113, 0.1);
}

.priority-pill.low {
  color: #176c45;
  background: rgba(38, 162, 105, 0.12);
}

.module-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--ocs-navy);
  background: rgba(41, 55, 113, 0.1);
}

.module-pill.l8 {
  color: #225e43;
  background: rgba(38, 162, 105, 0.14);
}

.module-pill.wc {
  color: var(--ocs-orange-deep);
  background: rgba(244, 91, 32, 0.14);
}

.module-pill.aiq {
  color: #245f93;
  background: rgba(39, 128, 212, 0.14);
}

.notification-savings-field {
  width: 112px;
  min-height: 34px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  color: var(--ocs-navy);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(222, 219, 214, 0.88);
  border-radius: 12px;
}

.notification-savings-field input {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0;
  color: var(--ocs-navy-deep);
  font-weight: 800;
  background: transparent;
  border: 0;
  outline: 0;
}

.notification-savings-field:focus-within {
  border-color: rgba(244, 91, 32, 0.46);
  box-shadow: 0 0 0 4px rgba(244, 91, 32, 0.12);
}

.notification-savings-field.is-cost {
  color: var(--danger);
  background: rgba(229, 72, 77, 0.08);
  border-color: rgba(229, 72, 77, 0.26);
}

.notification-savings-field.is-cost input {
  color: var(--danger);
}

.notification-savings-field input:disabled {
  color: var(--muted);
}

.aiq-detail-section {
  margin-bottom: 18px;
}

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

.aiq-detail-section-grid .full-width {
  grid-column: 1 / -1;
}

.aiq-detail-section-title,
.aiq-detail-section-heading {
  margin: 18px 0 12px;
  color: var(--ocs-navy);
  font-size: 1rem;
  font-weight: 900;
}

.aiq-detail-section-heading {
  margin-bottom: 0;
}

.info-tooltip-button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: 8px;
  border: 1px solid rgba(41, 55, 113, 0.14);
  border-radius: 999px;
  color: var(--ocs-navy);
  background: rgba(255, 255, 255, 0.78);
  cursor: help;
}

.info-tooltip-button svg {
  width: 15px;
  height: 15px;
}

.card-header.compact .info-tooltip-button {
  margin-left: auto;
}

@media (max-width: 900px) {
  .aiq-detail-section-grid {
    grid-template-columns: 1fr;
  }
}

.status-pill.unread {
  color: var(--ocs-orange-deep);
  background: rgba(244, 91, 32, 0.12);
}

.status-pill.read {
  color: var(--ocs-navy);
  background: rgba(41, 55, 113, 0.09);
}

.notification-row-unread {
  background: rgba(244, 91, 32, 0.04);
}

.notifications-table {
  min-width: 1180px;
}

.reports-card {
  display: grid;
  gap: 18px;
  padding: 26px;
  overflow: hidden;
}

.reports-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.reports-toolbar > div:first-child,
.card-header > div:first-child,
.modal-header > div:first-child {
  min-width: 0;
}

.reports-toolbar h3,
.modal-header h3,
.confirm-modal h3 {
  margin: 0;
  color: var(--ocs-navy-deep);
  font-size: clamp(1.12rem, 1.45vw, 1.36rem);
  font-weight: 850;
}

.reports-toolbar p,
.modal-header p,
.card-header p,
#dashboard-subtitle {
  display: none !important;
}

.reports-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-left: auto;
}

.reports-actions .primary-action-button,
.reports-actions .secondary-action-button,
.reports-actions .danger-action-button {
  min-height: var(--control-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.setup-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.page-action-row,
.card-action-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.setup-card-toolbar .reports-actions {
  width: 100%;
}

.setup-card-toolbar .report-search {
  flex: 1 1 280px;
  max-width: 360px;
}

.threshold-save-row,
.permission-save-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.threshold-save-row .primary-action-button,
.permission-save-row .primary-action-button {
  min-height: var(--control-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.cleaning-page-controls-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
}

.cleaning-page-controls-row .compact-filter-field {
  flex: 0 1 260px;
}

.cleaning-page-controls-row .report-search {
  flex: 1 1 340px;
  max-width: 520px;
}

.cleaning-page-controls-row .primary-action-button {
  flex: 0 0 auto;
  min-height: var(--control-height);
}

.cleaning-controls-row {
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
  align-items: center;
}

.cleaning-controls-row .compact-filter-field {
  flex: 0 1 210px;
}

#cleaningSchedulePage .reports-actions,
#activityLogPage .reports-actions,
#notificationsPage .reports-actions {
  align-items: center;
}

#cleaningSchedulePage .report-search,
#activityLogPage .report-search,
#notificationsPage .report-search {
  height: var(--control-height);
  min-height: var(--control-height);
}

#activityLogPage .reports-actions,
#notificationsPage .reports-actions {
  gap: 12px;
  flex: 0 1 auto;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(300px, 330px);
  align-items: center;
}

#activityLogPage .report-search,
#notificationsPage .report-search {
  min-width: 0;
  width: 100%;
}

#activityLogPage .reports-card,
#cleanerActivityPage .reports-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

#activityLogPage .reports-table-wrap {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#cleaningSchedulePage .primary-action-button {
  min-height: var(--control-height);
}

#cleaningSchedulePage .reports-actions {
  flex: 1 1 auto;
}

#cleaningSchedulePage .reports-actions .report-search {
  flex: 1 1 260px;
  max-width: 360px;
}

#cleaningSchedulePage .secondary-action-button {
  min-height: var(--control-height);
}

.report-search {
  min-width: min(300px, 100%);
  min-height: 44px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.report-search svg {
  width: 18px;
  height: 18px;
}

.report-search input,
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-width: 0;
  min-height: var(--control-height);
  color: var(--ocs-navy-deep);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid #ddd8d2;
  border-radius: 12px;
  outline: 0;
  font-size: var(--control-font-size);
  font-weight: var(--control-font-weight);
  line-height: 1.2;
  transition:
    border-color 160ms var(--ease),
    box-shadow 160ms var(--ease),
    background 160ms var(--ease);
}

.report-search input {
  height: 38px;
  padding: 0;
  background: transparent;
  border: 0;
}

.activity-date-picker {
  width: min(330px, 100%);
  height: var(--control-height);
  min-height: var(--control-height);
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

#dashboardDateFilter,
#activityLogPage .activity-date-picker.shared-date-range,
#notificationsPage .activity-date-picker.shared-date-range,
#washroomFilters .activity-date-picker.shared-date-range,
#washroomDashboardFilters .activity-date-picker.shared-date-range,
#l8Filters .activity-date-picker.shared-date-range,
#l8DashboardFilters .activity-date-picker.shared-date-range,
#airQualityFilters .activity-date-picker.shared-date-range,
#airQualityDashboardFilters .activity-date-picker.shared-date-range {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

#dashboardDateFilter > i[data-lucide="calendar-days"],
#activityLogPage .activity-date-picker.shared-date-range > i[data-lucide="calendar-days"],
#notificationsPage .activity-date-picker.shared-date-range > i[data-lucide="calendar-days"],
#washroomFilters .activity-date-picker.shared-date-range > i[data-lucide="calendar-days"],
#washroomDashboardFilters .activity-date-picker.shared-date-range > i[data-lucide="calendar-days"],
#l8Filters .activity-date-picker.shared-date-range > i[data-lucide="calendar-days"],
#l8DashboardFilters .activity-date-picker.shared-date-range > i[data-lucide="calendar-days"],
#airQualityFilters .activity-date-picker.shared-date-range > i[data-lucide="calendar-days"],
#airQualityDashboardFilters .activity-date-picker.shared-date-range > i[data-lucide="calendar-days"],
#dashboardDateFilter > svg.lucide-calendar-days:first-child,
#activityLogPage .activity-date-picker.shared-date-range > svg.lucide-calendar-days:first-child,
#notificationsPage .activity-date-picker.shared-date-range > svg.lucide-calendar-days:first-child,
#washroomFilters .activity-date-picker.shared-date-range > svg.lucide-calendar-days:first-child,
#washroomDashboardFilters .activity-date-picker.shared-date-range > svg.lucide-calendar-days:first-child,
#l8Filters .activity-date-picker.shared-date-range > svg.lucide-calendar-days:first-child,
#l8DashboardFilters .activity-date-picker.shared-date-range > svg.lucide-calendar-days:first-child,
#airQualityFilters .activity-date-picker.shared-date-range > svg.lucide-calendar-days:first-child,
#airQualityDashboardFilters .activity-date-picker.shared-date-range > svg.lucide-calendar-days:first-child {
  display: none !important;
}

#activityLogPage .activity-date-picker {
  width: 100%;
}

.activity-date-picker svg {
  width: 18px;
  height: 18px;
}

.activity-date-picker span {
  color: var(--soft-muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.activity-date-picker input {
  width: 100%;
  min-width: 0;
  height: calc(var(--control-height) - 2px);
  padding: 0;
  color: var(--ocs-navy-deep);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: var(--control-font-size);
  font-weight: var(--control-font-weight);
}

.activity-date-picker input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
}

.compact-filter-field {
  width: 190px;
  gap: 5px;
}

.compact-filter-field.label-hidden {
  gap: 0;
}

.compact-filter-field.label-hidden > span {
  display: none;
}

.compact-filter-field span {
  font-size: 0.66rem;
}

.compact-filter-field select {
  min-height: var(--control-height);
  font-size: 0.78rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  padding: 0 12px;
}

.form-field textarea {
  padding-top: 10px;
  padding-bottom: 10px;
}

.form-field select,
.compact-filter-field select,
.select-filter select,
.pagination-summary select,
.washroom-filter-bar select,
.dashboard-customise-item select,
.cleaner-select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ocs-navy) 50%),
    linear-gradient(135deg, var(--ocs-navy) 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 50%,
    calc(100% - 11px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.form-field select:not([multiple]),
.compact-filter-field select,
.select-filter select,
.pagination-summary select,
.washroom-filter-bar select,
.dashboard-customise-item select,
.cleaner-select {
  min-height: var(--control-height);
  color: var(--ocs-navy-deep);
  border-color: #ddd8d2;
  border-radius: 12px;
  font-size: var(--control-font-size);
  font-weight: var(--control-font-weight);
}

.form-field select[multiple] {
  min-height: 112px;
}

.check-dropdown {
  position: relative;
}

.check-dropdown-trigger {
  width: 100%;
  min-height: var(--control-height);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--ocs-navy-deep);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid #ddd8d2;
  border-radius: 12px;
  text-align: left;
  font-size: var(--control-font-size);
  font-weight: var(--control-font-weight);
  line-height: 1.2;
  transition:
    border-color 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

.check-dropdown-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.check-dropdown-trigger [data-check-summary] {
  display: flex;
  align-items: center;
  gap: 5px;
}

.value-chip {
  max-width: 110px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  color: var(--ocs-navy);
  background: rgba(244, 91, 32, 0.1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 850;
}

.value-chip.muted {
  color: var(--muted);
  background: rgba(41, 55, 113, 0.08);
}

.check-dropdown-trigger svg {
  width: 18px;
  height: 18px;
  transition: transform 160ms var(--ease);
}

.check-dropdown.open .check-dropdown-trigger {
  border-color: rgba(244, 91, 32, 0.46);
  box-shadow: 0 0 0 4px rgba(244, 91, 32, 0.12);
}

.check-dropdown.open .check-dropdown-trigger svg {
  transform: rotate(180deg);
}

.check-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  display: none;
  max-height: 232px;
  padding: 8px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}

.check-dropdown.open .check-dropdown-menu {
  display: grid;
  gap: 4px;
}

.check-dropdown-menu label {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 1px 2px;
  color: #48505b;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.25;
  transition:
    color 160ms var(--ease),
    background 160ms var(--ease);
}

.check-dropdown-menu label:hover {
  color: var(--ocs-navy);
  background: rgba(244, 91, 32, 0.08);
}

.check-dropdown-menu input {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  accent-color: var(--ocs-orange);
}

.module-availability-note {
  margin: 0;
  padding: 0.75rem 0.875rem;
  color: #64748b;
  font-size: 0.82rem;
}

.report-period-control[hidden] {
  display: none;
}

#washroomDashboardFilters .select-filter,
#washroomFilters .select-filter {
  width: min(272px, 100%);
  height: var(--control-height);
  min-height: var(--control-height);
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  padding: 0 14px;
  color: var(--ocs-navy);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

#washroomDashboardFilters .select-filter select,
#washroomFilters .select-filter select {
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: calc(var(--control-height) - 2px);
  padding: 0 28px 0 0;
  color: var(--ocs-navy-deep);
  background-color: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: var(--control-font-size);
  font-weight: var(--control-font-weight);
  line-height: 1.2;
}

#washroomDashboardFilters .select-filter .abi-custom-select,
#l8DashboardFilters .select-filter .abi-custom-select,
#airQualityDashboardFilters .select-filter .abi-custom-select,
#washroomFilters .select-filter .abi-custom-select,
#l8Filters .select-filter .abi-custom-select,
#airQualityFilters .select-filter .abi-custom-select {
  min-width: 0;
}

#washroomDashboardFilters .select-filter .abi-custom-select-trigger,
#l8DashboardFilters .select-filter .abi-custom-select-trigger,
#airQualityDashboardFilters .select-filter .abi-custom-select-trigger,
#washroomFilters .select-filter .abi-custom-select-trigger,
#l8Filters .select-filter .abi-custom-select-trigger,
#airQualityFilters .select-filter .abi-custom-select-trigger {
  min-height: 0;
  height: calc(var(--control-height) - 2px);
  padding: 0 28px 0 0;
  color: var(--ocs-navy-deep);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#washroomDashboardFilters .select-filter .abi-custom-select-trigger:focus-visible,
#l8DashboardFilters .select-filter .abi-custom-select-trigger:focus-visible,
#airQualityDashboardFilters .select-filter .abi-custom-select-trigger:focus-visible,
#washroomFilters .select-filter .abi-custom-select-trigger:focus-visible,
#l8Filters .select-filter .abi-custom-select-trigger:focus-visible,
#airQualityFilters .select-filter .abi-custom-select-trigger:focus-visible {
  box-shadow: none;
}

#washroomDashboardFilters .select-filter .abi-custom-select-menu,
#l8DashboardFilters .select-filter .abi-custom-select-menu,
#airQualityDashboardFilters .select-filter .abi-custom-select-menu,
#washroomFilters .select-filter .abi-custom-select-menu,
#l8Filters .select-filter .abi-custom-select-menu,
#airQualityFilters .select-filter .abi-custom-select-menu {
  left: -28px;
}

#washroomManagementPage .compact-filter-field,
#l8ManagementPage .compact-filter-field,
#l8OverviewPage .compact-filter-field,
#cleaningSchedulePage .compact-filter-field,
#airQualitySensorManagementPage .compact-filter-field,
#userManagementUsersPage .compact-filter-field {
  height: var(--control-height);
  min-height: var(--control-height);
}

#washroomManagementPage .compact-filter-field select,
#l8ManagementPage .compact-filter-field select,
#cleaningSchedulePage .compact-filter-field select,
#airQualitySensorManagementPage .compact-filter-field select,
#userManagementUsersPage .compact-filter-field select,
#washroomModalBackdrop .form-field select:not([multiple]),
#cleaningModalBackdrop .form-field select:not([multiple]) {
  width: 100%;
  min-height: var(--control-height);
  height: var(--control-height);
  padding: 0 42px 0 14px;
  color: var(--ocs-navy-deep);
  background-color: rgba(255, 255, 255, 0.84);
  border: 1px solid #ddd8d2;
  border-radius: 12px;
  box-shadow: none;
  font-size: var(--control-font-size);
  font-weight: var(--control-font-weight);
  line-height: 1.2;
}

#washroomManagementPage .compact-filter-field select,
#l8ManagementPage .compact-filter-field select,
#cleaningSchedulePage .compact-filter-field select,
#airQualitySensorManagementPage .compact-filter-field select,
#userManagementUsersPage .compact-filter-field select {
  background-color: rgba(255, 255, 255, 0.84);
  border-color: rgba(255, 255, 255, 0.86);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

#washroomDashboardFilters .select-filter svg,
#washroomFilters .select-filter svg {
  z-index: 1;
  color: var(--ocs-navy);
}

#washroomDashboardFilters .select-filter:focus-within,
#washroomFilters .select-filter:focus-within {
  border-color: rgba(41, 55, 113, 0.18);
  box-shadow: var(--shadow-sm);
}

#washroomDashboardFilters .select-filter:focus-within select,
#washroomFilters .select-filter:focus-within select,
#washroomManagementPage .compact-filter-field:focus-within select,
#l8ManagementPage .compact-filter-field:focus-within select,
#cleaningSchedulePage .compact-filter-field:focus-within select,
#airQualitySensorManagementPage .compact-filter-field:focus-within select,
#userManagementUsersPage .compact-filter-field:focus-within select,
#washroomModalBackdrop .form-field select:focus,
#cleaningModalBackdrop .form-field select:focus {
  border-color: rgba(244, 91, 32, 0.46);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(244, 91, 32, 0.12);
}

#washroomDashboardFilters .select-filter:focus-within select,
#washroomFilters .select-filter:focus-within select {
  border-color: transparent;
  box-shadow: none;
}

#washroomManagementPage .compact-filter-field:focus-within select,
#l8ManagementPage .compact-filter-field:focus-within select,
#cleaningSchedulePage .compact-filter-field:focus-within select,
#airQualitySensorManagementPage .compact-filter-field:focus-within select,
#userManagementUsersPage .compact-filter-field:focus-within select {
  border-color: rgba(41, 55, 113, 0.18);
  box-shadow: var(--shadow-sm);
}

#washroomManagementPage .reports-actions,
#l8ManagementPage .reports-actions,
#airQualitySensorManagementPage .reports-actions,
#userManagementUsersPage .reports-actions,
#cleaningSchedulePage .reports-actions,
#cleaningSchedulePage .cleaning-page-controls-row {
  align-items: center;
  gap: 12px;
}

#washroomManagementPage .report-search,
#l8ManagementPage .report-search,
#airQualitySensorManagementPage .report-search,
#userManagementUsersPage .report-search,
#cleaningSchedulePage .report-search {
  height: var(--control-height);
  min-height: var(--control-height);
}

#userManagementUsersPage .reports-toolbar {
  justify-content: flex-end;
}

#userManagementUsersPage .reports-actions {
  width: 100%;
  justify-content: flex-end;
}

#userManagementUsersPage .report-search {
  flex: 0 1 520px;
  max-width: min(520px, 100%);
}

#userManagementUsersPage .compact-filter-field {
  flex: 0 0 230px;
}

#washroomModalBackdrop .cleaner-select-trigger,
#cleaningModalBackdrop .cleaning-location-dropdown .check-dropdown-trigger {
  min-height: var(--control-height);
  height: var(--control-height);
  padding: 0 12px 0 14px;
  color: var(--ocs-navy-deep);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid #ddd8d2;
  border-radius: 12px;
  box-shadow: none;
  font-size: var(--control-font-size);
  font-weight: var(--control-font-weight);
}

#washroomModalBackdrop .cleaner-select-trigger:focus-visible,
#cleaningModalBackdrop .cleaning-location-dropdown .check-dropdown-trigger:focus-visible {
  border-color: rgba(244, 91, 32, 0.46);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(244, 91, 32, 0.12);
}

#washroomModalBackdrop .cleaner-select-menu,
#cleaningModalBackdrop .cleaning-location-dropdown .check-dropdown-menu {
  top: calc(100% + 8px);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}

.date-range-control {
  position: relative;
}

.date-range-trigger {
  width: min(340px, 100%);
  min-height: var(--control-height);
  display: inline-grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  color: var(--ocs-navy-deep);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid #ddd8d2;
  border-radius: 13px;
  text-align: left;
  font-size: var(--control-font-size);
  font-weight: var(--control-font-weight);
  box-shadow: 0 10px 22px rgba(39, 59, 120, 0.06);
  transition:
    border-color 160ms var(--ease),
    box-shadow 160ms var(--ease),
    transform 160ms var(--ease);
}

.date-range-trigger:hover,
.date-range-trigger[aria-expanded="true"] {
  border-color: rgba(244, 91, 32, 0.46);
  box-shadow: 0 0 0 4px rgba(244, 91, 32, 0.12);
}

.date-range-trigger svg {
  width: 17px;
  height: 17px;
}

.date-range-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.date-range-picker {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 70;
  width: min(820px, calc(100vw - 72px));
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(260px, 1fr);
  gap: 12px;
  padding: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px) saturate(145%);
}

.date-range-picker[hidden] {
  display: none;
}

.date-presets {
  display: grid;
  gap: 4px;
  padding-right: 10px;
  border-right: 1px solid var(--line);
}

.date-presets button {
  min-height: 32px;
  padding: 0 10px;
  color: #48505b;
  background: transparent;
  border: 0;
  border-radius: 10px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 780;
  transition:
    color 160ms var(--ease),
    background 160ms var(--ease);
}

.date-presets button:hover,
.date-presets button.active {
  color: var(--ocs-navy);
  background: rgba(244, 91, 32, 0.1);
}

.calendar-range-panel {
  display: grid;
  gap: 10px;
}

.calendar-months {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(222, 219, 214, 0.68);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.54);
}

.calendar-month {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
}

.calendar-month + .calendar-month {
  border-left: 1px solid var(--line);
}

.calendar-month-header {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.calendar-month-header strong {
  color: var(--ocs-navy-deep);
  font-size: 0.9rem;
  font-weight: 850;
}

.calendar-month-header button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--ocs-navy);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.calendar-month-header svg {
  width: 15px;
  height: 15px;
}

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

.calendar-weekday,
.calendar-day {
  border: 0;
  background: transparent;
  min-height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #48505b;
  font-size: 0.74rem;
  font-weight: 760;
}

.calendar-weekday {
  color: var(--ocs-navy);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.calendar-day.muted {
  color: #b2b7bd;
}

.calendar-day.selected {
  color: var(--ocs-navy);
  background: rgba(244, 91, 32, 0.12);
}

.calendar-day.edge {
  color: #fff;
  background: var(--ocs-orange);
  box-shadow: 0 8px 18px rgba(244, 91, 32, 0.22);
}

.date-range-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.date-range-footer label {
  display: grid;
  gap: 6px;
}

.date-range-footer span,
.date-arrow {
  color: var(--ocs-navy);
  font-size: var(--label-font-size);
  font-weight: 850;
}

.date-arrow {
  padding-bottom: 11px;
  color: var(--muted);
}

.date-range-footer-actions {
  display: inline-flex;
  align-items: end;
  gap: 8px;
}

.date-range-footer-actions .primary-action-button,
.date-range-footer-actions .secondary-action-button {
  min-height: 40px;
  padding: 0 14px;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus,
.report-search:focus-within,
.activity-date-picker:focus-within {
  border-color: rgba(244, 91, 32, 0.46);
  box-shadow: 0 0 0 4px rgba(244, 91, 32, 0.12);
}

.primary-action-button,
.secondary-action-button,
.danger-action-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 850;
  white-space: nowrap;
  transition:
    transform 160ms var(--ease),
    box-shadow 160ms var(--ease),
    background 160ms var(--ease),
    border-color 160ms var(--ease);
}

.primary-action-button {
  color: #fff;
  background: var(--ocs-orange);
  border: 1px solid rgba(244, 91, 32, 0.2);
  box-shadow: 0 16px 32px rgba(244, 91, 32, 0.24);
}

.secondary-action-button {
  color: var(--ocs-navy);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid #dedbd6;
}

.danger-action-button {
  color: #fff;
  background: var(--danger);
  border: 1px solid rgba(229, 72, 77, 0.2);
}

.primary-action-button:hover,
.secondary-action-button:hover,
.danger-action-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.primary-action-button svg,
.secondary-action-button svg {
  width: 17px;
  height: 17px;
}

.secondary-action-button.is-loading svg {
  animation: spin 900ms linear infinite;
}

.status-toast {
  padding: 12px 14px;
  color: #176c45;
  background: rgba(38, 162, 105, 0.12);
  border: 1px solid rgba(38, 162, 105, 0.22);
  border-radius: 16px;
  font-weight: 800;
}

.status-toast[data-tone="error"] {
  color: var(--danger);
  background: rgba(229, 72, 77, 0.12);
  border-color: rgba(229, 72, 77, 0.22);
}

.table-loading {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ocs-navy);
  font-size: 0.84rem;
  font-weight: 800;
}

.table-loading svg {
  width: 18px;
  height: 18px;
  animation: spin 900ms linear infinite;
}

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

.reports-table-wrap {
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  border: 1px solid rgba(222, 219, 214, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.reports-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.cleaning-table {
  min-width: 1180px;
}

.cleaning-activity-summary-table {
  min-width: 1260px;
}

.cleaning-activity-summary-table .comment-cell {
  max-width: 180px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.complaints-table {
  min-width: 1120px;
}

.activity-table {
  min-width: 980px;
  table-layout: auto;
}

.activity-table th button,
.cleaner-activity-table th button {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.cleaner-activity-page {
  display: grid;
  gap: 18px;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
}

.cleaner-filter-card {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(300px, 1.15fr) repeat(3, minmax(150px, 0.72fr));
  align-items: center;
  gap: 12px;
  padding: 18px;
}

.cleaner-filter-card .report-search,
.cleaner-filter-card .activity-date-picker,
.cleaner-filter-card .compact-filter-field {
  width: 100%;
  min-width: 0;
}

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

.cleaner-kpi-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-lg);
}

.cleaner-kpi-card .metric-icon {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}

.cleaner-kpi-card span:not(.metric-icon) {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.cleaner-kpi-card strong {
  display: block;
  margin-top: 4px;
  color: var(--ocs-navy-deep);
  font-size: clamp(1.02rem, 1.4vw, 1.34rem);
  font-weight: 900;
  line-height: 1.08;
}

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

.cleaner-activity-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.cleaner-activity-main {
  display: grid;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
}

.cleaner-chart-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-lg);
}

.cleaner-chart-card h3 {
  margin: 0;
  color: var(--ocs-navy-deep);
  font-size: 0.98rem;
  font-weight: 850;
}

.cleaner-chart-frame {
  position: relative;
  height: 270px;
  min-width: 0;
}

.cleaner-insight-grid {
  display: grid;
  gap: 18px;
  align-self: start;
}

.chart-empty-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

.chart-empty-state[hidden],
.reports-empty[hidden],
.washroom-alerts-table-card[hidden] {
  display: none !important;
}

.home-dashboard-section .chart-empty-state {
  position: static;
  display: block;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.cleaner-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.cleaner-card-grid {
  display: grid;
  gap: 10px;
}

.cleaner-insight-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 16px;
}

.cleaner-insight-card .mini-card-icon {
  margin: 0;
}

.cleaner-insight-card p {
  margin: 0;
  color: #535b66;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
}

.cleaner-activity-table {
  width: 100%;
  min-width: 1380px;
  table-layout: auto;
}

.cleaner-activity-table-wrap {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

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

.cleaner-activity-table td:nth-child(13) {
  max-width: 170px;
}

.reports-table th,
.reports-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(222, 219, 214, 0.66);
  text-align: left;
  vertical-align: top;
}

.reports-table th {
  color: var(--ocs-navy);
  background: rgba(41, 55, 113, 0.07);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.reports-table td {
  color: #48505b;
  font-weight: 650;
  line-height: 1.4;
}

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

.reports-table tbody tr:hover {
  background: rgba(244, 91, 32, 0.045);
}

#washroomDashboardPage .washroom-dashboard-lower-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  overflow-x: clip;
}

#washroomDashboardPage .washroom-dashboard-lower-grid .reports-card {
  gap: 12px !important;
  padding: 16px !important;
}

#washroomDashboardPage .washroom-dashboard-lower-grid .reports-toolbar {
  gap: 10px !important;
}

#washroomDashboardPage .washroom-dashboard-lower-grid .reports-toolbar h3 {
  font-size: 1rem !important;
  line-height: 1.18 !important;
}

#washroomDashboardPage .washroom-dashboard-lower-grid .secondary-action-button {
  min-height: 34px !important;
  padding: 0 12px !important;
  font-size: 0.74rem !important;
}

#washroomDashboardPage .reports-table-wrap {
  overflow-x: auto !important;
  max-width: 100%;
  border-radius: 14px !important;
}

#washroomDashboardPage .washroom-dashboard-compact-table {
  min-width: 520px !important;
  table-layout: auto;
  font-size: 0.72rem !important;
}

#washroomDashboardPage .washroom-dashboard-compact-table th {
  padding: 8px 10px !important;
  font-size: 0.66rem !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

#washroomDashboardPage .washroom-dashboard-compact-table td {
  padding: 8px 10px !important;
  font-size: 0.72rem !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}

#washroomDashboardPage .washroom-top-usage-table {
  width: 100%;
  min-width: 0 !important;
  table-layout: fixed;
}

#washroomDashboardPage .washroom-top-usage-table th,
#washroomDashboardPage .washroom-top-usage-table td {
  width: 25%;
  text-align: left;
  vertical-align: middle;
}

#washroomDashboardPage .washroom-top-usage-table th:nth-child(3),
#washroomDashboardPage .washroom-top-usage-table td:nth-child(3),
#washroomDashboardPage .washroom-top-usage-table th:nth-child(4),
#washroomDashboardPage .washroom-top-usage-table td:nth-child(4) {
  text-align: center;
}

#washroomDashboardPage .washroom-top-usage-table td {
  overflow: hidden;
  text-overflow: ellipsis;
}

#washroomDashboardPage .washroom-top-usage-table .washroom-dashboard-table-empty {
  width: auto;
  padding: 12px 14px !important;
  text-align: left;
  white-space: normal !important;
}

#washroomDashboardPage .washroom-dashboard-compact-table tr {
  min-height: 36px !important;
}

#washroomDashboardPage .washroom-alerts-table-card {
  display: grid;
  gap: 12px !important;
  padding: 18px !important;
}

#washroomDashboardPage .washroom-alerts-table {
  min-width: 860px !important;
}

#washroomDashboardPage .washroom-alerts-table th:nth-child(5),
#washroomDashboardPage .washroom-alerts-table td:nth-child(5) {
  white-space: normal !important;
  min-width: 260px;
}

#washroomDashboardPage .washroom-alerts-table .table-muted {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 750;
}

#washroomDashboardPage .washroom-forecast-frame .chart-empty-state {
  padding: 18px;
}

#washroomDashboardPage .washroom-alert-list {
  gap: 8px !important;
}

#washroomDashboardPage .washroom-alert-item {
  min-height: 46px;
  gap: 8px !important;
  padding: 9px 10px !important;
  border-radius: 12px !important;
}

#washroomDashboardPage .washroom-alert-item strong {
  font-size: 0.78rem !important;
  line-height: 1.18 !important;
}

#washroomDashboardPage .washroom-alert-item p {
  margin-top: 3px !important;
  font-size: 0.68rem !important;
  line-height: 1.22 !important;
}

#washroomDashboardPage .washroom-alert-item .status-pill {
  min-height: 24px !important;
  padding: 0 8px !important;
  font-size: 0.66rem !important;
}

#l8OverviewPage .l8-bottom-grid,
#airQualityDashboardPage .l8-bottom-grid {
  gap: 14px !important;
  overflow-x: clip;
}

#airQualityDashboardPage .l8-bottom-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 28px !important;
  margin-top: 28px !important;
  padding-bottom: 36px !important;
}

#airQualityDashboardPage .l8-bottom-grid .reports-card[data-dashboard-notifications="air-quality"] {
  margin-top: 8px !important;
}

#l8OverviewPage .l8-bottom-grid .reports-card,
#airQualityDashboardPage .l8-bottom-grid .reports-card {
  gap: 12px !important;
  padding: 16px !important;
}

#l8OverviewPage .l8-bottom-grid .reports-toolbar,
#airQualityDashboardPage .l8-bottom-grid .reports-toolbar {
  gap: 10px !important;
}

#l8OverviewPage .l8-bottom-grid .reports-toolbar h3,
#airQualityDashboardPage .l8-bottom-grid .reports-toolbar h3 {
  font-size: 1rem !important;
  line-height: 1.18 !important;
}

#l8OverviewPage .reports-table-wrap,
#airQualityDashboardPage .reports-table-wrap {
  overflow-x: auto !important;
  max-width: 100%;
  border-radius: 14px !important;
}

#l8OverviewPage .reports-table,
#airQualityDashboardPage .reports-table {
  table-layout: auto;
  font-size: 0.72rem !important;
}

#l8OverviewPage .l8-recent-alerts-table,
#airQualityDashboardPage .air-quality-alerts-table {
  min-width: 780px !important;
}

#airQualityDashboardPage .air-quality-floor-summary-table {
  min-width: 520px !important;
}

#l8OverviewPage .reports-table th,
#airQualityDashboardPage .reports-table th {
  padding: 8px 10px !important;
  font-size: 0.66rem !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

#l8OverviewPage .reports-table td,
#airQualityDashboardPage .reports-table td {
  padding: 8px 10px !important;
  font-size: 0.72rem !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}

#l8OverviewPage .reports-table tr,
#airQualityDashboardPage .reports-table tr {
  min-height: 36px !important;
}

#l8OverviewPage .reports-table .status-pill,
#airQualityDashboardPage .reports-table .status-pill {
  min-height: 24px !important;
  padding: 0 8px !important;
  font-size: 0.66rem !important;
}

@media (max-width: 760px) {
  #washroomDashboardPage .washroom-dashboard-kpi-card {
    min-height: 86px !important;
    padding: 13px 14px !important;
  }

  #l8OverviewPage .l8-kpi-card,
  #airQualityDashboardPage .l8-kpi-card {
    min-height: 86px !important;
    padding: 13px 14px !important;
  }

  #washroomDashboardPage .washroom-dashboard-compact-table {
    min-width: 0 !important;
  }

  #l8OverviewPage .reports-table,
  #airQualityDashboardPage .reports-table {
    min-width: 0 !important;
  }

  #washroomDashboardPage .washroom-dashboard-compact-table td {
    white-space: normal !important;
    text-align: right;
  }

  #l8OverviewPage .reports-table,
  #l8OverviewPage .reports-table tbody,
  #l8OverviewPage .reports-table tr,
  #l8OverviewPage .reports-table td,
  #airQualityDashboardPage .reports-table,
  #airQualityDashboardPage .reports-table tbody,
  #airQualityDashboardPage .reports-table tr,
  #airQualityDashboardPage .reports-table td {
    display: block;
    width: 100%;
  }

  #l8OverviewPage .reports-table thead,
  #airQualityDashboardPage .reports-table thead {
    display: none;
  }

  #l8OverviewPage .reports-table tbody,
  #airQualityDashboardPage .reports-table tbody {
    padding: 8px;
  }

  #l8OverviewPage .reports-table tbody tr,
  #airQualityDashboardPage .reports-table tbody tr {
    padding: 10px 0;
    border-bottom: 1px solid rgba(222, 219, 214, 0.66);
  }

  #l8OverviewPage .reports-table tbody tr:last-child,
  #airQualityDashboardPage .reports-table tbody tr:last-child {
    border-bottom: 0;
  }

  #l8OverviewPage .reports-table td,
  #airQualityDashboardPage .reports-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 7px 10px !important;
    border-bottom: 0;
    text-align: right;
    white-space: normal !important;
  }

  #l8OverviewPage .reports-table td::before,
  #airQualityDashboardPage .reports-table td::before {
    content: attr(data-label);
    min-width: 116px;
    color: var(--ocs-navy);
    font-size: 0.66rem;
    font-weight: 850;
    text-align: left;
    text-transform: uppercase;
  }

  #l8OverviewPage .reports-table td[colspan],
  #airQualityDashboardPage .reports-table td[colspan] {
    display: block;
    padding: 12px !important;
    color: var(--muted);
    text-align: left;
  }

  #l8OverviewPage .reports-table td[colspan]::before,
  #airQualityDashboardPage .reports-table td[colspan]::before {
    content: none;
  }

  #washroomDashboardPage .washroom-dashboard-compact-table td strong {
    overflow-wrap: anywhere;
  }

  #l8OverviewPage .reports-table td strong,
  #airQualityDashboardPage .reports-table td strong {
    overflow-wrap: anywhere;
  }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  color: var(--ocs-navy);
  background: rgba(41, 55, 113, 0.09);
  font-size: 0.72rem;
  font-weight: 850;
}

.status-pill.active {
  color: #176c45;
  background: rgba(38, 162, 105, 0.12);
}

.status-pill.inactive {
  color: #59616e;
  background: rgba(112, 118, 128, 0.12);
}

.status-pill.maintenance {
  color: var(--ocs-orange-deep);
  background: rgba(244, 91, 32, 0.12);
}

.status-pill.scheduled {
  color: var(--ocs-orange-deep);
  background: rgba(244, 91, 32, 0.12);
}

.status-pill.disabled {
  color: var(--danger);
  background: rgba(229, 72, 77, 0.12);
}

.status-pill.draft {
  color: #6b7280;
  background: rgba(107, 114, 128, 0.12);
}

.status-pill.completed {
  color: #176c45;
  background: rgba(38, 162, 105, 0.12);
}

.status-pill.generating {
  color: var(--ocs-navy);
  background: rgba(41, 55, 113, 0.1);
}

.status-pill.failed {
  color: var(--danger);
  background: rgba(229, 72, 77, 0.12);
}

.status-pill.submitted {
  color: var(--ocs-navy);
  background: rgba(41, 55, 113, 0.1);
}

.status-pill.in-review {
  color: var(--ocs-orange-deep);
  background: rgba(244, 91, 32, 0.12);
}

.status-pill.resolved {
  color: #176c45;
  background: rgba(38, 162, 105, 0.12);
}

.status-pill.rejected {
  color: var(--danger);
  background: rgba(229, 72, 77, 0.12);
}

.status-pill.success {
  color: #176c45;
  background: rgba(38, 162, 105, 0.12);
}

.status-pill.warning {
  color: var(--ocs-orange-deep);
  background: rgba(244, 91, 32, 0.12);
}

.status-pill.completed {
  color: #176c45;
  background: rgba(38, 162, 105, 0.12);
}

.status-pill.pending,
.status-pill.assigned,
.status-pill.scheduled {
  color: var(--ocs-navy);
  background: rgba(41, 55, 113, 0.1);
}

.status-pill.missed,
.status-pill.cancelled {
  color: var(--danger);
  background: rgba(229, 72, 77, 0.12);
}

.status-pill.demand-based,
.status-pill.urgent {
  color: var(--ocs-orange-deep);
  background: rgba(244, 91, 32, 0.12);
}

.status-pill.completed-late,
.status-pill.overdue {
  color: var(--danger);
  background: rgba(229, 72, 77, 0.12);
}

.status-pill.in-progress {
  color: var(--ocs-orange-deep);
  background: rgba(244, 91, 32, 0.12);
}

.status-pill.error {
  color: var(--danger);
  background: rgba(229, 72, 77, 0.12);
}

.status-pill.info {
  color: var(--ocs-navy);
  background: rgba(41, 55, 113, 0.1);
}

.status-pill.open {
  color: var(--danger);
  background: rgba(229, 72, 77, 0.12);
}

.status-pill.safe,
.status-pill.compliant {
  color: #176c45;
  background: rgba(38, 162, 105, 0.12);
}

.status-pill.no-data,
.status-pill.sensor-offline {
  color: #59616e;
  background: rgba(112, 118, 128, 0.12);
}

.status-pill.cold-too-warm,
.status-pill.hot-too-cool,
.status-pill.alert {
  color: var(--danger);
  background: rgba(229, 72, 77, 0.12);
}

.priority-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  color: var(--ocs-navy);
  background: rgba(41, 55, 113, 0.09);
  font-size: 0.72rem;
  font-weight: 850;
}

.priority-pill.low {
  color: #59616e;
  background: rgba(112, 118, 128, 0.12);
}

.priority-pill.medium {
  color: var(--ocs-navy);
  background: rgba(41, 55, 113, 0.1);
}

.priority-pill.high {
  color: var(--ocs-orange-deep);
  background: rgba(244, 91, 32, 0.12);
}

.priority-pill.urgent {
  color: var(--danger);
  background: rgba(229, 72, 77, 0.12);
}

.priority-pill.normal {
  color: var(--ocs-navy);
  background: rgba(41, 55, 113, 0.09);
}

.table-link {
  color: var(--ocs-orange-deep);
  font-weight: 850;
  text-decoration: none;
}

.table-link:hover {
  text-decoration: underline;
}

.table-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.table-actions button,
.table-action {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  color: var(--ocs-navy);
  background: #fff;
  border: 1px solid #dedbd6;
  border-radius: 10px;
  transition:
    color 160ms var(--ease),
    transform 160ms var(--ease),
    border-color 160ms var(--ease);
}

.table-actions button:hover,
.table-action:hover {
  color: var(--ocs-orange);
  border-color: rgba(244, 91, 32, 0.4);
  transform: translateY(-1px);
}

.table-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
  transform: none;
}

.table-actions .danger,
.table-action.danger {
  color: var(--danger);
}

.table-actions .warning,
.table-action.warning {
  color: var(--ocs-orange);
}

.table-actions svg,
.table-action svg {
  width: 16px;
  height: 16px;
}

.document-link {
  display: inline-flex;
  align-items: center;
  color: var(--ocs-navy);
  font-weight: 850;
  text-decoration: none;
}

.document-link:hover {
  color: var(--ocs-orange);
}

.document-link.as-button {
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.reports-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 46px 18px;
  color: var(--muted);
  text-align: center;
  font-weight: 750;
}

.empty-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--ocs-orange);
  background: rgba(244, 91, 32, 0.12);
  border-radius: 50%;
}

.empty-icon svg {
  width: 25px;
  height: 25px;
}

.pagination-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.pagination-summary {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.pagination-summary label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pagination-summary select {
  min-height: 34px;
  padding: 0 30px 0 10px;
  color: var(--ocs-navy);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #ddd8d2;
  border-radius: 10px;
  font-weight: 850;
}

.pagination-row > div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pagination-page {
  min-width: 82px;
  color: var(--ocs-navy);
  text-align: center;
}

.pagination-row .secondary-action-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.76rem;
}

.pagination-row .secondary-action-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
  box-shadow: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(23, 38, 83, 0.34);
  backdrop-filter: blur(10px);
}

.report-modal {
  width: min(1120px, 100%);
  max-height: min(92vh, 920px);
  overflow: hidden;
  border-radius: 24px;
}

.report-modal form {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: min(92vh, 920px);
}

.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.modal-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  align-items: center;
  min-height: 78px;
}

.modal-footer .primary-action-button,
.modal-footer .secondary-action-button,
.modal-footer .danger-action-button {
  min-height: var(--control-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close-button {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.modal-close-button svg {
  width: 19px;
  height: 19px;
}

.modal-body {
  display: grid;
  gap: 16px;
  padding: 20px 22px;
  overflow: auto;
}

.form-panel {
  display: grid;
  gap: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 20px;
}

.form-panel h4,
.section-panel-header h4 {
  margin: 0;
  color: var(--ocs-navy-deep);
  font-size: 1.02rem;
  font-weight: 850;
  line-height: 1.2;
}

.dashboard-customise-modal {
  width: min(1040px, 100%);
}

.dashboard-customise-body {
  grid-template-columns: minmax(0, 1fr);
}

.dashboard-customise-list {
  display: grid;
  gap: 10px;
}

.dashboard-customise-item {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(170px, 1fr) minmax(180px, 0.85fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(222, 219, 214, 0.7);
  border-radius: 14px;
}

.dashboard-customise-chart-item {
  grid-template-columns: minmax(190px, 1.1fr) minmax(170px, 1fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr) minmax(120px, 0.7fr);
}

.dashboard-customise-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  color: var(--ocs-navy);
  font-size: 0.82rem;
  font-weight: 850;
}

.dashboard-customise-toggle span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard-customise-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--ocs-orange);
}

.dashboard-customise-item input[type="text"],
.dashboard-customise-item select {
  width: 100%;
  min-height: 40px;
  min-width: 0;
  padding: 0 12px;
  color: var(--ocs-navy);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #ddd8d2;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 750;
}

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

.form-field,
.choice-field {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  margin: 0;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field span,
.choice-field legend {
  color: var(--ocs-navy);
  font-size: var(--label-font-size);
  font-weight: 850;
  line-height: 1.15;
}

.form-field small,
.choice-field small {
  min-height: 16px;
  color: var(--danger);
  font-size: 0.72rem;
  font-weight: 750;
}

.password-input-wrap {
  position: relative;
  display: block;
}

.password-input-wrap input {
  width: 100%;
  padding-right: 46px;
}

.password-toggle-button {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: var(--ocs-navy);
  background: rgba(255, 255, 255, 0.7);
  border: 0;
  border-radius: 999px;
  transform: translateY(-50%);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.password-toggle-button:hover,
.password-toggle-button:focus-visible {
  color: var(--ocs-orange);
  background: rgba(254, 226, 213, 0.9);
  box-shadow: 0 8px 18px rgba(241, 95, 34, 0.14);
  outline: 0;
}

.password-toggle-button svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.35;
}

.choice-field {
  padding: 0;
  border: 0;
}

.checkbox-choice-field {
  align-content: start;
}

.choice-field label,
.checkbox-field {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #48505b;
  font-size: var(--control-font-size);
  font-weight: 750;
  line-height: 1.25;
}

.choice-field input,
.checkbox-field input {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  accent-color: var(--ocs-orange);
}

.user-management-view {
  display: grid;
  gap: 16px;
}

.user-management-table th,
.user-management-table td {
  white-space: nowrap;
}

.user-management-table th:last-child,
.user-management-table td:last-child {
  text-align: center;
}

.user-management-table .table-actions {
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
}

.user-management-table .table-action,
.user-management-table .table-actions button {
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  line-height: 1;
}

.user-management-table .table-action svg,
.user-management-table .table-actions button svg {
  width: 17px;
  height: 17px;
}

.user-management-table .table-action:disabled,
.user-management-table .table-actions button:disabled {
  color: var(--soft-muted);
  background: rgba(255, 255, 255, 0.56);
  border-color: rgba(222, 219, 214, 0.7);
  opacity: 1;
}

.user-management-table td:nth-child(2),
.user-management-table td:nth-child(4),
.user-management-table td:nth-child(5),
.user-management-table td:nth-child(8) {
  white-space: normal;
}

.washroom-management-view {
  display: grid;
  gap: 16px;
}

.washroom-management-table th,
.washroom-management-table td {
  vertical-align: middle;
}

.washroom-management-table th:last-child,
.washroom-management-table td:last-child {
  min-width: 140px;
  text-align: center;
}

.washroom-management-table .table-actions {
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
}

.washroom-management-table .table-action,
.washroom-management-table .table-actions button {
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  line-height: 1;
}

.washroom-management-table .table-action svg,
.washroom-management-table .table-actions button svg {
  width: 17px;
  height: 17px;
}

.washroom-management-table .table-action:disabled,
.washroom-management-table .table-actions button:disabled {
  color: var(--soft-muted);
  background: rgba(255, 255, 255, 0.56);
  border-color: rgba(222, 219, 214, 0.7);
  opacity: 1;
}

.washroom-management-table td:nth-child(1),
.washroom-management-table td:nth-child(3),
.washroom-management-table td:nth-child(4),
.washroom-management-table td:nth-child(5),
.washroom-management-table td:nth-child(7) {
  white-space: nowrap;
}

.table-chip-list,
.selected-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.selected-chip-list {
  min-height: 30px;
}

.value-chip button {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
}

.value-chip button svg {
  width: 13px;
  height: 13px;
}

.multi-select-control {
  display: grid;
  gap: 10px;
}

.multi-select-control input[type="search"] {
  min-height: var(--control-height);
  padding: 0 14px;
  color: var(--ocs-navy);
  background: #fff;
  border: 1px solid rgba(112, 118, 128, 0.28);
  border-radius: 12px;
  font-size: var(--control-font-size);
  font-weight: var(--control-font-weight);
  outline: none;
}

.multi-select-options {
  max-height: 170px;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding: 10px;
  background: rgba(244, 245, 246, 0.65);
  border: 1px solid rgba(222, 219, 214, 0.78);
  border-radius: 14px;
}

.multi-select-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ocs-navy);
  font-size: 0.82rem;
  font-weight: 800;
}

.multi-select-options input {
  accent-color: var(--ocs-orange);
}

.multi-select-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.cleaner-select {
  position: relative;
}

.cleaner-select-trigger {
  width: 100%;
  min-height: var(--control-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px 6px 12px;
  color: var(--ocs-navy);
  background: #fff;
  border: 1px solid rgba(112, 118, 128, 0.28);
  border-radius: 10px;
  font-size: var(--control-font-size);
  font-weight: var(--control-font-weight);
  text-align: left;
}

.cleaner-select-trigger:focus-visible {
  outline: 3px solid rgba(241, 95, 34, 0.24);
  outline-offset: 2px;
}

.cleaner-select-trigger[aria-disabled="true"] {
  cursor: default;
  opacity: 0.72;
}

.cleaner-select-trigger .selected-chip-list {
  flex: 1;
  min-width: 0;
  align-items: center;
}

.cleaner-select-trigger > svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--ocs-navy);
}

.cleaner-placeholder {
  color: var(--soft-muted);
  font-weight: 800;
}

.cleaner-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 150;
  padding: 6px;
  background: #fff;
  border: 1px solid rgba(222, 219, 214, 0.9);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.cleaner-select-options {
  max-height: 156px;
  overflow: auto;
  display: grid;
  gap: 2px;
}

.cleaner-option {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px;
  color: var(--ocs-navy);
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: left;
}

.cleaner-option:hover,
.cleaner-option:focus-visible {
  background: rgba(241, 95, 34, 0.1);
}

.cleaner-option.selected {
  color: var(--ocs-orange-deep);
  background: rgba(241, 95, 34, 0.08);
}

.cleaner-option svg {
  width: 16px;
  height: 16px;
  color: var(--ocs-orange);
}

.cleaner-select-empty {
  margin: 4px 2px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.abi-native-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.abi-custom-select {
  position: relative;
  width: 100%;
}

.abi-custom-select-trigger {
  width: 100%;
  min-height: var(--control-height);
  height: var(--control-height);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: var(--ocs-navy-deep);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid #ddd8d2;
  border-radius: 12px;
  box-shadow: none;
  text-align: left;
  font-size: var(--control-font-size);
  font-weight: var(--control-font-weight);
  line-height: 1.2;
}

.abi-custom-select-trigger span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.abi-custom-select-trigger svg {
  width: 18px;
  height: 18px;
  color: var(--ocs-navy);
  transition: transform 160ms var(--ease);
}

.abi-custom-select.open .abi-custom-select-trigger svg {
  transform: rotate(180deg);
}

.abi-custom-select-trigger:focus-visible {
  border-color: rgba(244, 91, 32, 0.46);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(244, 91, 32, 0.12);
}

.abi-custom-select.disabled .abi-custom-select-trigger {
  cursor: default;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: none;
  opacity: 0.74;
}

.abi-custom-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 260;
  display: none;
  max-height: 230px;
  padding: 8px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(222, 219, 214, 0.9);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}

.abi-custom-select.open .abi-custom-select-menu {
  display: grid;
  gap: 4px;
}

.abi-custom-select-menu::-webkit-scrollbar {
  width: 8px;
}

.abi-custom-select-menu::-webkit-scrollbar-thumb {
  background: rgba(41, 55, 113, 0.18);
  border-radius: var(--radius-pill);
}

.abi-custom-select-menu::-webkit-scrollbar-track {
  background: transparent;
}

.abi-custom-select-option {
  width: 100%;
  min-height: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  color: var(--ocs-navy);
  background: transparent;
  border: 0;
  border-radius: 10px;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
}

.abi-custom-select-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.abi-custom-select-option:hover,
.abi-custom-select-option:focus-visible {
  color: var(--ocs-navy-deep);
  background: rgba(241, 95, 34, 0.08);
  outline: 0;
}

.abi-custom-select-option.selected {
  color: var(--ocs-orange-deep);
  background: rgba(241, 95, 34, 0.1);
}

.abi-custom-select-option svg {
  width: 16px;
  height: 16px;
  color: var(--ocs-orange);
}

.abi-custom-select-option:disabled {
  cursor: default;
  color: var(--muted);
  background: transparent;
  opacity: 0.72;
}

#washroomManagementPage .compact-filter-field .abi-custom-select-trigger,
#cleaningSchedulePage .compact-filter-field .abi-custom-select-trigger,
#l8ManagementPage .compact-filter-field .abi-custom-select-trigger,
#l8OverviewPage .compact-filter-field .abi-custom-select-trigger,
#airQualitySensorManagementPage .compact-filter-field .abi-custom-select-trigger,
#userManagementUsersPage .compact-filter-field .abi-custom-select-trigger {
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(255, 255, 255, 0.86);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

#washroomManagementPage .compact-filter-field .abi-custom-select-trigger:focus-visible,
#cleaningSchedulePage .compact-filter-field .abi-custom-select-trigger:focus-visible,
#l8ManagementPage .compact-filter-field .abi-custom-select-trigger:focus-visible,
#l8OverviewPage .compact-filter-field .abi-custom-select-trigger:focus-visible,
#airQualitySensorManagementPage .compact-filter-field .abi-custom-select-trigger:focus-visible,
#userManagementUsersPage .compact-filter-field .abi-custom-select-trigger:focus-visible {
  border-color: rgba(41, 55, 113, 0.18);
  box-shadow: var(--shadow-sm);
}

.confirm-copy {
  margin: -4px 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.user-role-checkbox-grid,
.permission-group-grid {
  display: grid;
  gap: 10px;
}

.user-role-checkbox-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.role-check-option,
.permission-option {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  color: var(--ocs-navy-deep);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 800;
}

.role-check-option input,
.permission-option input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  accent-color: var(--ocs-orange);
}

.permission-group-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.permission-group-card {
  min-width: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: 18px;
}

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

.permission-group-header strong {
  color: var(--ocs-navy-deep);
  font-size: 0.9rem;
}

.permission-group-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.permission-group-actions button {
  min-height: 28px;
  padding: 0 9px;
  color: var(--ocs-navy);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 850;
}

.permission-option {
  align-items: flex-start;
  min-height: 0;
  margin-bottom: 8px;
}

.permission-option.disabled {
  color: rgba(39, 59, 120, 0.45);
  background: rgba(245, 247, 251, 0.72);
}

.permission-option.disabled small {
  color: rgba(112, 118, 128, 0.62);
}

.permission-option span {
  display: grid;
  gap: 2px;
}

.permission-option small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.compact-report-modal {
  max-width: 620px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 24px 24px;
}

.schedule-fields {
  padding: 0;
}

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

.report-sections {
  display: grid;
  gap: 14px;
}

.report-section {
  display: grid;
  gap: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.report-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 18px 14px;
  align-items: start;
}

.report-section-grid > .checkbox-choice-field {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 14px;
}

.report-section-grid > .checkbox-choice-field legend {
  grid-column: 1 / -1;
}

.section-kpi-dropdown .check-dropdown-trigger,
.report-section .form-field select,
.report-section .form-field .abi-custom-select-trigger {
  min-height: var(--control-height);
}

.report-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cleaning-location-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cleaning-checklist-add {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cleaning-checklist-add input {
  min-width: min(260px, 100%);
  min-height: 38px;
  padding: 0 12px;
  color: var(--ocs-navy-deep);
  background: #fff;
  border: 1px solid #ddd8d2;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 760;
}

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

.cleaning-checklist-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px 8px 13px;
  color: var(--ocs-navy-deep);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 820;
}

.cleaning-checklist-row .icon-button {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

.cleaning-modal {
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  box-sizing: border-box;
}

.cleaning-modal,
.cleaning-modal *,
.cleaning-modal *::before,
.cleaning-modal *::after {
  box-sizing: border-box;
}

.cleaning-modal form {
  max-height: calc(100vh - 32px);
}

.cleaning-modal .modal-body {
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px 20px;
}

.cleaning-modal .form-panel {
  min-width: 0;
  padding: 18px;
  border-radius: 18px;
}

.cleaning-modal .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cleaning-modal .form-field input,
.cleaning-modal .form-field textarea,
.cleaning-modal .form-field select {
  width: 100%;
  min-width: 0;
}

.cleaning-modal select[multiple] {
  min-height: 132px;
  padding: 10px;
}

.cleaning-modal select[multiple] option {
  padding: 8px 10px;
  border-radius: 8px;
}

.cleaning-modal .cleaning-location-native {
  display: none;
}

.cleaning-modal .cleaning-location-dropdown .check-dropdown-trigger {
  min-height: var(--control-height);
}

.cleaning-modal .cleaning-location-dropdown .check-dropdown-trigger:disabled {
  cursor: not-allowed;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: none;
  opacity: 1;
}

.cleaning-modal .cleaning-location-dropdown.has-error .check-dropdown-trigger {
  border-color: rgba(214, 48, 49, 0.72);
  box-shadow: 0 0 0 4px rgba(214, 48, 49, 0.1);
}

.cleaning-modal .cleaning-location-dropdown .check-dropdown-menu label span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cleaning-location-empty {
  min-height: 30px;
  display: flex;
  align-items: center;
  padding: 2px 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.cleaning-time-slot-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.cleaning-time-slot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 30px;
  align-items: center;
}

.time-slot-chip,
.day-chip-group label {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  color: var(--ocs-navy);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
}

.time-slot-chip button {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: var(--ocs-navy);
  background: rgba(255, 255, 255, 0.78);
  border: 0;
  border-radius: 999px;
}

.time-slot-chip svg {
  width: 13px;
  height: 13px;
}

.cleaning-modal .cleaning-checklist-add {
  min-width: 0;
}

.cleaning-modal .cleaning-checklist-add input {
  min-width: 0;
  width: min(300px, 100%);
}

.cleaning-modal .cleaning-checklist-editor {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}

.cleaning-modal .cleaning-checklist-row {
  width: auto;
  max-width: min(100%, 280px);
  min-height: 38px;
  padding: 7px 8px 7px 12px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(36, 43, 56, 0.04);
}

.cleaning-modal .cleaning-checklist-row span {
  min-width: 0;
  max-width: 205px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cleaning-modal .cleaning-checklist-row .icon-button {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.cleaning-notes-field textarea {
  min-height: 82px;
  resize: vertical;
}

@media (max-width: 760px) {
  .cleaning-modal {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .cleaning-modal .form-grid,
  .cleaning-time-slot-add {
    grid-template-columns: 1fr;
  }

  .cleaning-modal .modal-header,
  .cleaning-modal .modal-footer,
  .cleaning-modal .section-panel-header,
  .cleaning-modal .cleaning-checklist-add {
    align-items: stretch;
    flex-direction: column;
  }
}

.day-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.day-chip-group label {
  cursor: pointer;
}

.day-chip-group input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.day-chip-group span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: var(--ocs-navy);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #ddd8d2;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 850;
  transition:
    color 160ms var(--ease),
    background 160ms var(--ease),
    border-color 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

.day-chip-group input:checked + span {
  color: #fff;
  background: var(--ocs-orange);
  border-color: rgba(244, 91, 32, 0.3);
  box-shadow: 0 10px 22px rgba(244, 91, 32, 0.2);
}

.quick-filter-row,
.export-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-filter-row button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--ocs-navy);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(222, 219, 214, 0.82);
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 850;
  transition:
    color 160ms var(--ease),
    border-color 160ms var(--ease),
    transform 160ms var(--ease);
}

.quick-filter-row button:hover {
  color: var(--ocs-orange);
  border-color: rgba(244, 91, 32, 0.34);
  transform: translateY(-1px);
}

.file-upload-field {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--ocs-navy);
  background: rgba(255, 255, 255, 0.84);
  border: 1px dashed rgba(41, 55, 113, 0.3);
  border-radius: 12px;
  cursor: pointer;
  font-size: var(--control-font-size);
  font-weight: 850;
  transition:
    border-color 160ms var(--ease),
    box-shadow 160ms var(--ease),
    background 160ms var(--ease);
}

.file-upload-field:hover {
  border-color: rgba(244, 91, 32, 0.46);
  box-shadow: 0 0 0 4px rgba(244, 91, 32, 0.08);
}

.file-upload-field input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.file-upload-field span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.file-upload-field svg {
  width: 17px;
  height: 17px;
}

.file-list,
.document-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.file-chip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 0 8px;
  color: var(--ocs-navy);
  background: rgba(41, 55, 113, 0.08);
  border: 1px solid rgba(41, 55, 113, 0.12);
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 820;
}

.file-chip > svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.file-chip button {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  color: var(--danger);
  background: transparent;
  border: 0;
  border-radius: 50%;
}

.file-chip button svg {
  width: 13px;
  height: 13px;
}

.detail-modal {
  width: min(620px, 100%);
}

.detail-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cleaner-activity-modal {
  width: min(980px, calc(100vw - 32px));
}

.cleaner-activity-modal-body {
  display: grid;
  gap: 18px;
}

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

.cleaner-detail-grid div,
.cleaner-modal-section {
  padding: 14px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(222, 219, 214, 0.72);
  border-radius: 16px;
}

.cleaner-detail-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cleaner-detail-grid strong {
  color: var(--ocs-navy-deep);
  font-size: 0.86rem;
  font-weight: 850;
}

.cleaner-modal-section {
  display: grid;
  gap: 10px;
}

.cleaner-modal-section h4,
.cleaner-modal-section p {
  margin: 0;
}

.cleaner-modal-section h4 {
  color: var(--ocs-navy-deep);
  font-size: 0.92rem;
  font-weight: 850;
}

.cleaner-modal-section p {
  color: #555d69;
  font-size: 0.86rem;
  font-weight: 650;
}

.cleaner-checklist,
.cleaner-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cleaner-checklist span,
.cleaner-attachments a,
.cleaner-attachments > span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  color: #59616e;
  background: rgba(112, 118, 128, 0.1);
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}

.cleaner-checklist span.complete {
  color: #176c45;
  background: rgba(38, 162, 105, 0.12);
}

.cleaner-checklist svg,
.cleaner-attachments svg {
  width: 15px;
  height: 15px;
}

.cleaner-attachments a span {
  color: var(--muted);
}

.cleaner-timeline {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cleaner-timeline li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #555d69;
  font-size: 0.82rem;
  font-weight: 750;
}

.cleaner-timeline strong {
  color: var(--ocs-navy-deep);
}

.cleaner-dashboard-panel {
  gap: 16px;
}

.cleaner-task-list {
  display: grid;
  gap: 14px;
}

.cleaner-task-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(222, 219, 214, 0.76);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 34px rgba(36, 43, 56, 0.06);
}

.cleaner-task-card-main,
.cleaner-task-card-footer,
.cleaner-task-detail-header,
.cleaner-task-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cleaner-task-card strong,
.cleaner-task-site {
  color: var(--ocs-orange-deep);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cleaner-task-card h3,
.cleaner-task-detail-header h3 {
  margin: 4px 0 0;
  color: var(--ocs-navy-deep);
  font-size: 1.08rem;
  font-weight: 900;
}

.cleaner-task-card p,
.cleaner-task-detail-header p,
.cleaner-task-card-footer span {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
}

.cleaner-badge-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.cleaner-task-card-footer .primary-action-button {
  min-width: 118px;
}

.cleaner-task-heading,
.cleaner-task-detail-card {
  width: min(1280px, calc(100% - 40px));
  margin-inline: auto;
}

.cleaner-task-heading {
  align-items: flex-end;
}

.cleaner-task-heading .secondary-action-button {
  min-height: 52px;
  padding-inline: 22px;
  white-space: nowrap;
}

.cleaner-task-detail-card {
  gap: 0;
  padding: 32px;
}

#cleanerTaskDetail:not([hidden]) {
  display: grid;
  gap: 26px;
}

.cleaner-task-detail-header {
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.cleaner-task-detail-header > div:first-child {
  min-width: 0;
}

.cleaner-task-control-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(260px, 1fr) minmax(320px, 1.45fr);
  gap: 18px;
  align-items: stretch;
  padding: 2px 0 4px;
}

.cleaner-start-button {
  min-height: 76px;
  align-self: stretch;
  justify-content: center;
  border-radius: 24px;
}

.cleaner-timer-box {
  min-height: 76px;
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 16px 20px;
  color: var(--ocs-navy);
  background: rgba(41, 55, 113, 0.08);
  border: 1px solid rgba(41, 55, 113, 0.14);
  border-radius: 16px;
}

.cleaner-task-control-grid .form-field {
  align-self: stretch;
}

.cleaner-task-control-grid .form-field select {
  min-height: 54px;
}

.cleaner-timer-box span,
.cleaner-section-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cleaner-timer-box strong {
  color: var(--ocs-navy-deep);
  font-size: 1.55rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.cleaner-task-section {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.cleaner-task-section h4 {
  margin: 0;
  color: var(--ocs-navy-deep);
  font-size: 1.02rem;
  font-weight: 900;
}

.cleaner-task-checklist {
  display: grid;
  gap: 12px;
}

.cleaner-task-check-row {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px;
  color: var(--ocs-navy-deep);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 850;
  box-shadow: 0 8px 20px rgba(36, 43, 56, 0.035);
}

.cleaner-task-check-row input {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  accent-color: var(--ocs-orange);
}

.cleaner-task-check-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cleaner-file-upload {
  width: fit-content;
}

.cleaner-comments-section {
  padding-top: 6px;
}

.cleaner-comments-section textarea {
  min-height: 118px;
  padding: 16px;
  resize: vertical;
}

.cleaner-attachment-section {
  gap: 10px;
}

.cleaner-attachment-section .file-list {
  min-height: 0;
}

.cleaner-file-upload span {
  min-height: 52px;
  padding-inline: 16px;
}

.cleaner-task-actions {
  justify-content: flex-start;
  gap: 12px;
  padding-top: 6px;
  margin-top: 2px;
}

.cleaner-task-actions .primary-action-button {
  min-height: 54px;
  padding-inline: 22px;
  border-radius: 24px;
}

@media (max-width: 1080px) {
  .cleaner-task-heading,
  .cleaner-task-detail-card {
    width: min(100%, calc(100% - 28px));
  }

  .cleaner-task-control-grid {
    grid-template-columns: 1fr;
  }

  .cleaner-start-button,
  .cleaner-timer-box,
  .cleaner-task-control-grid .form-field select {
    min-height: 68px;
  }
}

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

.detail-list > div {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(222, 219, 214, 0.72);
  border-radius: 14px;
}

.detail-list span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.detail-list strong,
.detail-list p {
  margin: 0;
  color: var(--ocs-navy-deep);
  font-size: 0.88rem;
  font-weight: 760;
  line-height: 1.45;
}

.report-section-header strong {
  color: var(--ocs-navy-deep);
  font-size: 0.98rem;
  font-weight: 850;
}

.report-section-header .table-action {
  width: auto;
  min-width: 134px;
  grid-auto-flow: column;
  gap: 7px;
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 850;
}

.compact-modal-backdrop {
  z-index: 130;
}

.confirm-modal {
  display: grid;
  gap: 20px;
  width: min(430px, 100%);
  padding: 24px;
  border-radius: 22px;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.report-modal {
  --control-height: 38px;
  --control-font-size: 0.78rem;
  --label-font-size: 0.72rem;
}

.report-modal .modal-body {
  gap: 12px;
  padding: 16px 18px;
}

.report-modal .form-panel {
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
}

.report-modal .form-panel h4,
.report-modal .section-panel-header h4 {
  font-size: 0.94rem;
}

.report-modal .form-grid,
.report-modal .report-section-grid {
  gap: 12px;
}

.report-modal .form-field,
.report-modal .choice-field {
  gap: 6px;
}

.report-modal .form-field span,
.report-modal .choice-field legend,
.report-modal .date-range-footer span,
.report-modal .date-arrow {
  font-size: var(--label-font-size);
}

.report-modal .form-field input,
.report-modal .form-field textarea,
.report-modal .form-field select,
.report-modal .check-dropdown-trigger,
.report-modal .date-range-trigger {
  border-radius: 10px;
}

.report-modal .check-dropdown-trigger {
  gap: 8px;
  padding: 0 10px;
}

.report-modal .check-dropdown-trigger svg {
  width: 16px;
  height: 16px;
}

.report-modal .check-dropdown-menu {
  top: calc(100% + 6px);
  max-height: 174px;
  padding: 6px;
  border-radius: 12px;
}

.report-modal .check-dropdown.open .check-dropdown-menu {
  gap: 2px;
}

.report-modal .check-dropdown-menu label {
  min-height: 29px;
  gap: 8px;
  padding: 1px 2px;
  font-size: 0.76rem;
  border-radius: 9px;
}

.report-modal .check-dropdown-menu input,
.report-modal .choice-field input,
.report-modal .checkbox-field input {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}

.report-modal .choice-field label,
.report-modal .checkbox-field {
  min-height: 30px;
  font-size: 0.78rem;
}

.report-modal .date-range-trigger {
  width: min(300px, 100%);
  padding: 0 11px;
}

.report-modal .date-range-picker {
  top: calc(100% + 8px);
  padding: 8px;
  border-radius: 16px;
}

.report-modal .date-presets button {
  min-height: 29px;
  font-size: 0.75rem;
}

.report-modal .calendar-month {
  padding: 10px;
}

.report-modal .calendar-month-header strong {
  font-size: 0.82rem;
}

.report-modal .calendar-day {
  min-height: 22px;
  font-size: 0.7rem;
}

.report-modal .calendar-weekday {
  min-height: 20px;
  font-size: 0.64rem;
}

.report-modal .date-range-footer-actions .primary-action-button,
.report-modal .date-range-footer-actions .secondary-action-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.78rem;
}

.report-modal .report-section {
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
}

.report-modal .report-section-header strong {
  font-size: 0.9rem;
}

.report-modal .report-section-header .table-action {
  min-height: 32px;
  min-width: 120px;
  font-size: 0.72rem;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(23, 38, 83, 0.38);
  backdrop-filter: blur(4px);
}

@media (min-width: 1600px) {
  :root {
    --header-height: 74px;
    --sidebar-width: 244px;
    --sidebar-collapsed-width: 84px;
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
  }

  .app-header {
    gap: 14px;
    padding: 12px 22px;
  }

  .top-logo-abi {
    height: 40px;
  }

  .top-logo-client {
    height: 38px;
  }

  .icon-button {
    width: 42px;
    height: 42px;
  }

  .icon-button svg {
    width: 19px;
    height: 19px;
  }

  .avatar-small {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .dashboard-canvas {
    padding: 14px 22px 20px;
  }

  .site-manager-dashboard-shell .dashboard-canvas {
    padding: 0 22px 20px 0;
  }

  .dashboard-grid {
    gap: 14px;
  }

  .site-manager-dashboard-shell .dashboard-grid {
    gap: 0;
  }

  .main-content {
    gap: 14px;
  }

  .site-manager-dashboard-shell .main-content {
    padding-top: 14px;
    padding-left: 14px;
  }

  .sidebar {
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
  }

  .sidebar-inner {
    padding: 12px 12px 16px;
    gap: 10px;
  }

  .nav-list {
    gap: 6px;
  }

  .nav-button {
    min-height: 40px;
    gap: 9px;
    padding: 6px 10px;
    font-size: 0.74rem;
  }

  .nav-parent {
    grid-template-columns: 30px minmax(0, 1fr) 16px;
  }

  .nav-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

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

  .submenu {
    gap: 5px;
    margin-left: 12px;
    padding-left: 7px;
  }

  .submenu-button {
    min-height: 35px;
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 8px;
    padding: 6px 9px;
    font-size: 0.66rem;
  }

  .submenu-button.nav-parent {
    grid-template-columns: 25px minmax(0, 1fr) 14px;
  }

  .submenu-button .nav-icon {
    width: 25px;
    height: 25px;
  }

  .submenu-button .nav-icon svg {
    width: 14px;
    height: 14px;
  }

  .nav-section-label,
  .eyebrow,
  .section-note {
    font-size: 0.66rem;
  }

  .page-heading h2,
  .section-heading h3 {
    font-size: clamp(1.48rem, 1.85vw, 2rem);
  }

  .page-subheading {
    font-size: 0.88rem;
  }

  .section-heading h3 {
    font-size: 1.18rem;
  }

  .date-filter,
  .select-filter {
    min-height: 38px;
    padding: 7px 12px;
    font-size: 0.82rem;
  }

  .summary-card,
  .chart-card,
  .location-card,
  .insights-card {
    padding: 20px 22px;
  }

  .washroom-filter-bar {
    padding: 13px 16px;
  }

  .kpi-row,
  .lower-grid,
  .compact-grid,
  .floor-grid,
  .washroom-location-list,
  .washroom-view,
  .washroom-chart-grid {
    gap: 14px;
  }

  .kpi-item {
    gap: 12px;
  }

  .metric-icon {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .metric-icon svg {
    width: 22px;
    height: 22px;
  }

  .kpi-label,
  .inline-stat span,
  .mini-card span,
  .floor-card span,
  .header-user-card span,
  .message-preview {
    font-size: 0.78rem;
  }

  .kpi-value {
    font-size: clamp(1.16rem, 1.3vw, 1.48rem);
  }

  .card-header {
    gap: 14px;
    margin-bottom: 13px;
  }

  .card-header h3,
  .notification-popover h3 {
    font-size: clamp(1.04rem, 1.16vw, 1.22rem);
  }

  .legend {
    gap: 12px;
    font-size: 0.78rem;
  }

  .chart-controls {
    gap: 14px;
  }

  .chart-frame-large {
    height: 290px;
  }

  .chart-frame-medium {
    height: 222px;
  }

  .donut-wrap {
    height: 218px;
  }

  .mini-card,
  .floor-card {
    min-height: 96px;
    padding: 14px;
  }

  .mini-card-icon,
  .floor-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 9px;
  }

  .mini-card strong,
  .floor-card strong {
    font-size: 1.12rem;
  }

  .location-card {
    gap: 18px;
  }

  .location-header h3 {
    font-size: clamp(1.08rem, 1.22vw, 1.28rem);
  }

  .location-header p {
    font-size: 0.78rem;
  }

  .location-badge {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 0.68rem;
  }

  .washroom-kpi-grid {
    gap: 13px;
  }

  .washroom-kpi-card {
    gap: 12px;
    padding: 14px;
  }

  .washroom-kpi-card .metric-icon {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .kpi-trend {
    font-size: 0.69rem;
  }

  .washroom-chart-card {
    padding: 16px;
  }

  .washroom-chart-card h4 {
    font-size: 0.9rem;
  }

  .chart-level-label {
    font-size: 0.68rem;
  }

  .reset-chart-button {
    min-height: 32px;
    min-width: 100px;
    padding: 0 10px;
    font-size: 0.7rem;
  }

  .washroom-chart-frame {
    height: 232px;
  }

  .insight-grid {
    gap: 12px;
  }

  .insight-item {
    padding: 13px;
  }

  .insight-item strong {
    font-size: 0.86rem;
  }

  .insight-item p {
    font-size: 0.77rem;
  }

  .dropdown-trigger {
    height: 38px;
    min-width: 98px;
    font-size: 0.84rem;
  }
}

@media (min-width: 2200px) {
  .dashboard-canvas {
    padding-right: 28px;
  }

  .chart-frame-large {
    height: 276px;
  }

  .chart-frame-medium {
    height: 210px;
  }

  .washroom-chart-frame {
    height: 220px;
  }
}

@media (max-width: 1360px) {
  .dashboard-grid {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    gap: 16px;
  }

  .site-manager-dashboard-shell .dashboard-grid {
    gap: 0;
  }

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

  .kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .washroom-chart-grid,
  .washroom-dashboard-main-grid,
  .washroom-dashboard-lower-grid,
  .insight-grid,
  .cleaner-activity-layout,
  .cleaner-chart-grid,
  .cleaner-insight-grid {
    grid-template-columns: 1fr;
  }

  #washroomDashboardPage .washroom-dashboard-lower-grid {
    grid-template-columns: 1fr !important;
  }

  .cleaner-filter-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cleaner-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-section-grid > .checkbox-choice-field {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insight-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .dashboard-grid {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  }

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

  .air-quality-value-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  :root {
    --canvas-x: 16px;
  }

  .dashboard-canvas {
    padding: 14px 16px 20px;
  }

  .site-manager-dashboard-shell .dashboard-canvas {
    padding: 0 16px 20px 0;
  }

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

  .l8-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .air-quality-chart-grid,
  .threshold-grid {
    grid-template-columns: 1fr;
  }

  .air-quality-chart-grid .washroom-chart-card:last-child {
    grid-column: auto;
  }

  .air-quality-value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .floor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .washroom-kpi-grid {
    grid-template-columns: 1fr;
  }

  .cleaner-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-frame-large {
    height: 330px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 68px;
    --canvas-x: 10px;
  }

  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .app-header {
    height: var(--header-height);
    padding: 10px 12px;
    gap: 8px;
  }

  .app-header .menu-button {
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .top-logo-row {
    flex: 1 1 auto;
    gap: 8px;
  }

  .top-logo-abi {
    height: 38px;
  }

  .top-logo-client {
    height: 34px;
  }

  .logo-separator {
    height: 28px;
  }

  .header-actions {
    flex: 0 0 auto;
    gap: 8px;
  }

  .header-user-card {
    padding: 3px;
  }

  .header-user-card div {
    display: none;
  }

  .dashboard-canvas,
  .site-manager-dashboard-shell .dashboard-canvas {
    width: 100%;
    max-width: 100vw;
    min-height: calc(100vh - var(--header-height));
    padding: 10px;
  }

  .dashboard-grid {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
  }

  .sidebar,
  .sidebar-collapsed .sidebar {
    position: fixed;
    top: calc(var(--header-height) + 8px);
    bottom: 10px;
    left: 10px;
    z-index: 80;
    width: min(334px, calc(100vw - 20px));
    height: auto;
    transform: translateX(calc(-100% - 24px));
    transition: transform 220ms var(--ease);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-inner,
  .sidebar-collapsed .sidebar-inner {
    padding: 16px 18px 20px;
  }

  .sidebar-control-row {
    display: none;
  }

  .sidebar-resize-handle {
    display: none;
  }

  .sidebar-collapsed .nav-button,
  .nav-button {
    width: 100%;
    grid-template-columns: 34px minmax(0, 1fr);
    justify-items: stretch;
    gap: 11px;
    min-height: 46px;
    padding: 8px 12px;
  }

  .sidebar-collapsed .nav-parent,
  .nav-parent {
    grid-template-columns: 34px minmax(0, 1fr) 18px;
  }

  .sidebar-collapsed .nav-icon,
  .nav-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .sidebar-collapsed .nav-text,
  .sidebar-collapsed .nav-chevron,
  .sidebar-collapsed .nav-section-label {
    display: block;
  }

  .sidebar-collapsed .nav-chevron {
    display: grid;
  }

  .main-content,
  .site-manager-dashboard-shell .main-content {
    grid-column: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
    overflow: visible;
  }

  .page-heading,
  .washroom-filter-bar,
  .washroom-view,
  .washroom-location-list,
  .location-card,
  .insights-card,
  .chart-card,
  .summary-card,
  .inactive-module-view,
  .inactive-module-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .sidebar-collapsed .nav-group.open > .submenu {
    max-height: 680px;
    display: grid;
    padding-top: 7px;
    padding-bottom: 4px;
    border-color: var(--line);
    opacity: 1;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-date-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-left: 0;
  }

  .reports-toolbar,
  .reports-actions,
  .modal-header,
  .modal-footer,
  .section-panel-header,
  .confirm-actions {
    align-items: stretch;
    flex-direction: column;
  }

  #activityLogPage .reports-actions {
    display: flex;
    grid-template-columns: none;
  }

  #notificationsPage .reports-actions,
  .notifications-actions {
    display: flex;
    grid-template-columns: none;
  }

  .insight-card-grid {
    grid-template-columns: 1fr;
  }

  .cleaner-filter-card,
  .cleaner-kpi-grid,
  .cleaner-activity-layout,
  .cleaner-detail-grid {
    grid-template-columns: 1fr;
  }

  .cleaner-task-card-main,
  .cleaner-task-card-footer,
  .cleaner-task-detail-header,
  .cleaner-task-actions,
  .cleaning-checklist-add {
    align-items: stretch;
    flex-direction: column;
  }

  .cleaner-task-control-grid,
  .cleaning-checklist-editor {
    grid-template-columns: 1fr;
  }

  .cleaning-modal .cleaning-checklist-editor {
    display: grid;
  }

  .cleaning-modal .cleaning-checklist-row {
    max-width: 100%;
  }

  .cleaner-file-upload {
    width: 100%;
  }

  .cleaner-chart-frame {
    height: 240px;
  }

  .reports-actions,
  .report-search,
  .activity-date-picker,
  .primary-action-button,
  .secondary-action-button,
  .danger-action-button {
    width: 100%;
  }

  .permission-group-grid,
  .user-role-checkbox-grid {
    grid-template-columns: 1fr;
  }

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

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

  .profile-card {
    padding: 20px;
    border-radius: 22px;
  }

  .profile-form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .cleaning-location-grid {
    grid-template-columns: 1fr;
  }

  .date-range-picker,
  .calendar-months,
  .date-range-footer,
  .report-section-grid {
    grid-template-columns: 1fr;
  }

  .report-section-grid > .checkbox-choice-field {
    grid-template-columns: 1fr;
  }

  .calendar-month + .calendar-month {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .date-presets {
    padding-right: 0;
    padding-bottom: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .modal-backdrop {
    padding: 10px;
  }

  .report-modal form {
    max-height: calc(100vh - 20px);
  }

  .modal-header,
  .modal-footer,
  .modal-body {
    padding: 16px;
  }

  .report-modal .modal-body {
    padding: 14px;
  }

  .report-modal .date-range-picker {
    width: calc(100vw - 48px);
  }

  .washroom-filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .washroom-filter-bar .date-filter,
  .washroom-filter-bar .select-filter,
  .washroom-filter-bar .activity-date-picker {
    width: 100%;
  }

  .washroom-filter-bar input,
  .washroom-filter-bar select {
    width: 100%;
  }

  .summary-card,
  .chart-card,
  .reports-card,
  .inactive-module-card {
    padding: 22px;
    border-radius: 24px;
  }

  .inactive-module-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .inactive-module-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .card-header,
  .chart-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-customise-row {
    align-items: stretch;
    justify-content: flex-start;
  }

  .dashboard-customise-row > .secondary-action-button,
  .dashboard-insights-action,
  .dashboard-insights-action > .secondary-action-button {
    width: 100%;
  }

  .dashboard-insights-modal-backdrop {
    padding: 12px;
  }

  .dashboard-insights-modal {
    width: min(100%, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    border-radius: 18px;
  }

  .dashboard-insights-modal-header {
    padding: 18px 18px 14px;
  }

  .dashboard-insights-list {
    max-height: calc(100vh - 114px);
    padding: 16px 18px 18px;
  }

  .chart-controls {
    width: 100%;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-trigger {
    width: 100%;
  }

  .dropdown-menu {
    left: 0;
    right: auto;
    width: 100%;
  }

  .chart-frame-large {
    height: 310px;
  }

  .chart-frame-medium {
    height: 250px;
  }

  .washroom-chart-frame {
    height: 260px;
  }

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

  .l8-kpi-grid,
  .l8-location-details,
  .air-quality-value-grid {
    grid-template-columns: 1fr;
  }

  .l8-kpi-card {
    padding: 18px;
  }

  .l8-floor-compliance-row {
    grid-template-columns: 48px minmax(0, 1fr) 18px;
  }

  .l8-floor-compliance-row .status-pill {
    grid-column: 2 / 3;
    width: fit-content;
  }

  .l8-compliance-ring {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 560px) {
  .top-logo-row {
    gap: 6px;
  }

  .top-logo-abi {
    height: 34px;
  }

  .top-logo-client {
    height: 30px;
  }

  .header-actions {
    gap: 6px;
  }

  .notification-button,
  .header-user-card .avatar-small {
    width: 38px;
    height: 38px;
  }

  .header-user-card .avatar-small {
    flex-basis: 38px;
  }

  .kpi-row,
  .compact-grid,
  .floor-grid,
  .device-legend {
    grid-template-columns: 1fr;
  }

  .kpi-item {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }

  .kpi-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .message-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .message-time {
    grid-column: 2;
    justify-self: start;
    margin-top: -2px;
    color: var(--muted);
  }
}

@media (max-width: 1180px) {
  .floor-content-with-insights {
    grid-template-columns: minmax(0, 1fr);
  }

  .floor-insights-panel {
    position: relative;
    top: auto;
  }

  .dashboard-customise-item,
  .dashboard-customise-chart-item {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 64px;
  }

  .app-header {
    padding: 9px 10px;
  }

  .top-logo-abi {
    height: 34px;
  }

  .top-logo-client {
    height: 30px;
  }

  .logo-separator {
    display: none;
  }

  .notification-popover,
  .profile-popover {
    position: fixed;
    top: calc(var(--header-height) + 10px);
    right: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100vh - var(--header-height) - 20px);
  }

  .summary-card,
  .chart-card,
  .mini-card,
  .floor-card,
  .location-card,
  .insights-card {
    border-radius: 20px;
  }

  .location-card,
  .insights-card {
    padding: 18px;
  }

  .washroom-chart-card {
    padding: 18px;
  }

  .location-header,
  .washroom-chart-card .card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .l8-location-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .l8-detail-toggle {
    width: 100%;
  }

  .chart-frame-large {
    height: 280px;
  }

  .donut-wrap {
    height: 230px;
  }
}

@media (max-width: 390px) {
  .top-logo-client {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
