:root {
  --office-bg: #f4f7fb;
  --office-surface: #ffffff;
  --office-border: #d8e2ef;
  --office-text: #122033;
  --office-muted: #66758b;
  --office-primary: #1e5fa8;
  --office-accent: #f59e0b;
  --office-danger: #dc2626;
  --office-success: #16a34a;
  --office-shadow: 0 16px 36px rgba(18, 32, 51, 0.08);
  --office-radius: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  background: var(--office-bg);
  color: var(--office-text);
}

html,
body {
  background: var(--office-bg);
}

a {
  color: inherit;
  text-decoration: none;
}

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

:where([hidden]) {
  display: none !important;
}

.office-auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: linear-gradient(135deg, #0a1628 0%, #1e5fa8 100%);
}

.office-auth-card,
.office-panel,
.office-stat-card {
  background: var(--office-surface);
  border: 1px solid var(--office-border);
  border-radius: var(--office-radius);
  box-shadow: var(--office-shadow);
}

.office-auth-card {
  width: min(100%, 460px);
  padding: 32px;
}

.office-auth-badge,
.office-eyebrow,
.office-badge-status,
.office-sidebar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.office-auth-badge,
.office-eyebrow,
.office-sidebar-badge {
  padding: 8px 12px;
  background: rgba(30, 95, 168, 0.1);
  color: var(--office-primary);
}

.office-sidebar-badge {
  background: rgba(245, 158, 11, 0.12);
  color: var(--office-accent);
}

.office-auth-brand h1,
.office-page-header h1 {
  margin: 14px 0 8px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
}

.office-auth-brand p,
.office-page-header p,
.office-panel p {
  margin: 0;
  color: var(--office-muted);
  line-height: 1.7;
}

.office-auth-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.office-auth-form label {
  display: grid;
  gap: 8px;
}

.office-auth-form span {
  font-size: 14px;
  font-weight: 700;
}

.office-auth-form input,
.office-inline-form input,
.office-form-grid input,
.office-form-grid select,
.office-form-grid textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--office-border);
  background: #f9fbfd;
}

.office-select-modern {
  min-width: 156px;
  min-height: 48px;
  padding: 10px 42px 10px 16px;
  border-radius: 14px;
  border: 1px solid var(--office-border);
  background:
    linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
  color: var(--office-primary);
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(18, 32, 51, 0.08);
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--office-primary) 50%),
    linear-gradient(135deg, var(--office-primary) 50%, transparent 50%),
    linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px),
    center center;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  background-repeat: no-repeat;
}

.office-select-modern:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(30, 95, 168, 0.14);
  }

.office-select-stack {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 460px;
}

.office-select-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--office-muted);
}

.office-select-modern-trip {
  min-width: 0;
  width: 100%;
  min-height: 56px;
  padding: 14px 46px 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(30, 95, 168, 0.18);
  background:
    linear-gradient(135deg, #ffffff 0%, #edf4ff 100%);
  box-shadow: 0 14px 30px rgba(15, 33, 58, 0.08);
  font-size: 18px;
  font-weight: 700;
}

.office-form-grid textarea {
  min-height: 110px;
  resize: vertical;
}

.office-alert {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
}

.office-alert-info {
  background: #eff6ff;
  color: var(--office-primary);
}

.office-alert-danger {
  background: #fef2f2;
  color: var(--office-danger);
}

.office-auth-note {
  margin-top: 18px;
  color: var(--office-muted);
  font-size: 14px;
}

.office-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

.office-btn-primary {
  background: var(--office-accent);
  color: #0a1628;
}

.office-btn-secondary {
  background: #e8eef6;
  color: var(--office-text);
}

.office-btn-danger {
  background: #ef4444;
  color: #fff;
}

.office-btn-danger:hover {
  background: #dc2626;
}

.office-btn-compact {
  min-height: auto;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
}

.office-missing-assignment {
  display: grid;
  gap: 10px;
  align-items: start;
}

.office-missing-assignment-label {
  color: #dc2626;
  font-weight: 700;
}

.office-missing-assignment-help {
  color: #94a3b8;
  font-size: 0.92rem;
}

.office-inline-assignment {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.office-shell {
  min-height: 100vh;
  background: var(--office-bg);
}

.office-mobile-backdrop {
  display: none;
}

.office-sidebar {
  width: 280px;
  padding: 12px 20px 20px;
  background: #0a1628;
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  min-height: 100vh;
  z-index: 30;
}

.office-sidebar-brand h2 {
  margin: 14px 0 8px;
  font-size: 1.55rem;
  line-height: 1.15;
  white-space: nowrap;
  width: calc(100% - 8px);
  margin-left: 4px;
  margin-right: 4px;
}

.office-sidebar-brand p {
  margin: 0 0 26px;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
}

.office-sidebar-usercard {
  position: relative;
  margin: 0 0 24px;
  padding: 14px 16px 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
}

.office-sidebar-usercard strong {
  display: block;
  color: #fff;
  font-size: 1rem;
}

.office-sidebar-usercard span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.68);
  font-size: .92rem;
}

.office-sidebar-install {
  margin-top: 14px;
  min-height: 36px;
  padding: 8px 12px;
  font-size: 13px;
}

.office-sidebar-logout {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.08);
}

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

.office-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  color: rgba(255,255,255,.84);
}

.office-nav-icon {
  width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
}

.office-nav-icon svg,
.office-settings-category-icon svg,
.office-notification-toggle-icon svg,
.office-notifications-close svg {
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 20px;
}

.office-nav a.active,
.office-nav a:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.office-main {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--office-bg);
  min-height: 100vh;
  margin-left: 280px;
}

.office-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 0;
  position: fixed;
  top: 12px;
  right: 32px;
  z-index: 40;
  pointer-events: none;
}

.office-topbar-main {
  display: none;
}

.office-sidebar-toggle {
  display: none;
}

.office-topbar-page {
  display: none;
}

.office-topbar strong,
.office-topbar span {
  display: block;
}

.office-topbar span {
    color: var(--office-muted);
    font-size: 14px;
    margin-top: 4px;
  }

.office-topbar-logout {
  margin-left: auto;
}

.office-topbar-actions .office-notifications + .office-topbar-logout {
  margin-left: 2px;
}

.office-content {
  padding: 8px 32px 32px;
}

.office-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.office-stats-grid,
.office-grid {
  display: grid;
  gap: 28px;
}

.office-stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 32px;
}

.office-stats-grid-dashboard-compact {
  gap: 16px;
  margin-bottom: 20px;
}

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

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

.office-compact-route-card {
  padding: 16px 18px;
  border: 1px solid var(--office-border);
  border-radius: 18px;
  background: #f9fbfd;
  display: grid;
  gap: 6px;
}

.office-compact-route-card strong {
  font-size: 16px;
}

.office-compact-route-card span {
  color: var(--office-primary);
  font-weight: 700;
  font-size: 13px;
}

.office-compact-route-card p {
  margin: 0;
  color: var(--office-muted);
}

.office-stat-card,
.office-panel {
  padding: 24px;
  margin-bottom: 28px;
  overflow: visible;
}

.office-stats-grid-dashboard-compact .office-stat-card {
  padding: 18px 18px 16px;
  margin-bottom: 0;
  min-height: 0;
}

.office-stat-label,
.office-panel-header span {
  color: var(--office-muted);
  font-size: 14px;
}

.office-stat-value {
  margin: 10px 0 6px;
  font-size: 34px;
  font-weight: 800;
}

.office-stats-grid-dashboard-compact .office-stat-label {
  font-size: 13px;
}

.office-stats-grid-dashboard-compact .office-stat-value {
  margin: 8px 0 2px;
  font-size: 26px;
}

.office-stats-grid-dashboard-compact .office-stat-hint {
  font-size: 12px;
  line-height: 1.35;
}

.office-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.office-panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.office-search-box {
  min-width: min(100%, 360px);
  flex: 1 1 320px;
}

.office-search-box input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--office-border);
  background: #f9fbfd;
}

.office-panel-header h2 {
  margin: 0;
  font-size: 22px;
}

.office-source-list {
  display: grid;
  gap: 12px;
}

.office-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px solid var(--office-border);
}

.office-table-wrap {
  overflow: visible;
}

.office-table {
  width: 100%;
  border-collapse: collapse;
}

.office-table th,
.office-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--office-border);
}

.office-badge-status {
  padding: 8px 12px;
  background: rgba(22, 163, 74, 0.12);
  color: var(--office-success);
}

.office-badge-status-info {
  background: rgba(30, 95, 168, 0.14);
  color: var(--office-primary);
}

.office-status-trigger {
  border: 0;
  cursor: pointer;
  box-shadow: none;
}

.office-status-trigger:hover {
  filter: brightness(0.98);
}

.office-status-trigger:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(30, 95, 168, 0.14);
}

.office-status-menu {
  justify-content: flex-start;
}

.office-badge-status-warning {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}

.office-badge-status-success {
  background: rgba(22, 163, 74, 0.12);
  color: var(--office-success);
}

.office-badge-status-danger {
  background: rgba(220, 38, 38, 0.12);
  color: var(--office-danger);
}

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

.office-filter-stack {
  display: grid;
  gap: 16px;
  margin-top: 6px;
}

.office-filter-stack .office-view-tabs,
.office-filter-stack .office-inline-form {
    margin: 0;
  }

.office-inline-hint {
  margin: 0 0 12px;
  color: var(--office-muted);
  font-size: 14px;
  line-height: 1.5;
}

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

.office-settings-stack {
  display: grid;
  gap: 24px;
}

.office-settings-group {
  margin: 0;
}

.office-settings-group .office-panel-header h3 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.office-settings-category-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #eef5ff;
  border: 1px solid var(--office-border);
  flex: 0 0 34px;
}

.office-form-grid label {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}

.office-form-grid span {
  font-size: 14px;
  font-weight: 700;
}

.office-field-hint {
  display: block;
  margin-top: 6px;
  color: var(--office-muted);
  font-size: 12px;
  line-height: 1.5;
}

.office-field-span-2,
.office-form-actions {
  grid-column: 1 / -1;
}

.office-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.office-form-section {
  padding: 20px;
  border: 1px solid var(--office-border);
  border-radius: 18px;
  background: #f8fbff;
}

.office-form-section-head {
  margin-bottom: 18px;
}

.office-form-section-head h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.office-form-section-head p {
  margin: 0;
  color: var(--office-muted);
}

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

.office-passenger-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.office-choice-card {
  padding: 16px 18px;
  border: 1px solid var(--office-border);
  border-radius: 16px;
  background: #fff;
}

.office-choice-card.is-active {
  border-color: rgba(30, 95, 168, 0.32);
  box-shadow: 0 10px 24px rgba(30, 95, 168, 0.10);
}

.office-choice-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.office-choice-card p {
  margin: 0;
  color: var(--office-muted);
  line-height: 1.6;
}

.office-passenger-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.office-passenger-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--office-border);
  box-shadow: 0 8px 18px rgba(18, 32, 51, 0.06);
}

.office-passenger-chip-remove {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: #fee2e2;
  color: var(--office-danger);
  font-weight: 700;
  cursor: pointer;
}

.office-passenger-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.office-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.office-tags span {
  padding: 10px 14px;
  border-radius: 999px;
  background: #f8fbff;
  border: 1px solid var(--office-border);
}

.office-subpanel {
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed var(--office-border);
  background: #f8fbff;
}

.office-subpanel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.office-assignment-list {
  display: grid;
  gap: 14px;
}

.office-assignment-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.office-link-action {
  color: var(--office-primary);
  font-weight: 700;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.office-link-action:hover {
  text-decoration: underline;
}

.office-link-action-danger {
  color: var(--office-danger);
}

.office-inline-action {
  display: none;
}

.office-actions-menu {
  position: relative;
  display: inline-flex;
  z-index: 5;
}

.office-actions-trigger {
  min-width: 104px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--office-border);
  border-radius: 10px;
  background: #f8fbff;
  color: var(--office-primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(18, 32, 51, 0.08);
}

.office-actions-trigger:hover {
  border-color: #a9c0de;
  background: #eef5ff;
}

.office-actions-trigger:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(30, 95, 168, 0.14);
}

.office-actions-dropdown {
  position: absolute;
  top: auto;
  bottom: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  padding: 8px;
  border: 1px solid var(--office-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 44px rgba(18, 32, 51, 0.16);
  display: none;
  z-index: 20;
}

.office-actions-menu.is-open .office-actions-dropdown {
  display: grid;
  gap: 6px;
}

.office-actions-menu.is-open {
  z-index: 40;
}

.office-actions-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: #f8fbff;
  color: var(--office-text);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.office-actions-item:hover {
  background: #eef5ff;
}

.office-actions-item-danger {
  color: var(--office-danger);
  background: #fff5f5;
}

.office-actions-item-danger:hover {
  background: #fee2e2;
}

.office-driver-action-form {
  display: grid;
  gap: 8px;
  min-width: 180px;
}

.office-driver-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.office-panel[hidden] {
  display: none;
}

body.office-form-focus .office-topbar,
body.office-form-focus .office-page-header,
body.office-form-focus .office-page-actions,
body.office-form-focus .office-content > .office-panel:not(.is-form-active),
body.office-form-focus .office-content > script {
  filter: blur(3px);
  pointer-events: none;
  user-select: none;
}

body.office-form-focus::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(238, 243, 248, 0.46);
  backdrop-filter: blur(2px);
  z-index: 35;
  pointer-events: auto;
}

.office-panel.is-form-active {
  position: relative;
  z-index: 50;
}

.office-panel-close {
  margin-left: auto;
  flex: 0 0 auto;
}

.office-page-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
  }

.office-view-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.office-view-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--office-border);
  background: #f8fbff;
  color: var(--office-primary);
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(18, 32, 51, 0.08);
}

.office-view-tab.is-active {
  background: var(--office-accent);
  color: #0a1628;
  border-color: transparent;
}

.office-driver-action-form input[type="number"] {
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--office-border);
  background: #f9fbfd;
}

.office-driver-paid-note {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(22, 163, 74, 0.12);
  color: var(--office-success);
  font-weight: 700;
}

.office-driver-readonly-note {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: #eef4fb;
    color: var(--office-primary);
    font-weight: 700;
  }

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

.office-driver-trip-meta {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--office-border);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 12px 24px rgba(15, 33, 58, 0.05);
}

.office-driver-trip-meta-label {
  display: block;
  margin-bottom: 8px;
  color: var(--office-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.office-driver-trip-meta strong {
  display: block;
  color: var(--office-primary);
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.office-checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.office-checkbox-line-large {
  min-height: 40px;
}

.office-checkbox-line-large input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
}

.office-check-card {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid var(--office-border);
  border-radius: 14px;
  background: #f9fbfd;
}

.office-check-card .office-checkbox-line {
  width: 100%;
}

.office-check-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.office-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.office-pagination-meta {
  color: var(--office-muted);
  font-size: 14px;
  font-weight: 600;
}

.office-pagination-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.office-pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--office-border);
  background: #f8fbff;
  color: var(--office-text);
  font-weight: 700;
}

.office-pagination-link.is-active {
  background: var(--office-primary);
  border-color: var(--office-primary);
  color: #fff;
}

.office-ordered-list {
  margin: 0;
  padding-left: 18px;
  color: var(--office-muted);
}

.office-ordered-list li + li {
  margin-top: 10px;
}

@media (max-width: 980px) {
  .office-shell {
    display: grid;
    grid-template-columns: 1fr;
  }

  .office-mobile-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(10, 22, 40, 0.52);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 49;
  }

  .office-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 84vw);
    z-index: 50;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: 0 24px 48px rgba(10, 22, 40, 0.28);
  }

  .office-sidebar-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--office-border);
    border-radius: 12px;
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(18, 32, 51, 0.12);
  }

  .office-sidebar-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--office-text);
    display: block;
  }

  body.office-sidebar-open .office-mobile-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.office-sidebar-open .office-sidebar {
    transform: translateX(0);
  }

  .office-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--office-bg);
    left: 0;
    right: 0;
    justify-content: space-between;
    align-items: flex-start;
    padding-left: 32px;
    padding-right: 32px;
    padding-top: 0;
    padding-bottom: 10px;
    pointer-events: auto;
  }

  .office-content {
    padding-top: 8px;
  }

  .office-topbar-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    flex: 1 1 auto;
  }

  .office-topbar-page {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  .office-topbar-page span {
    color: var(--office-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
  }

  .office-topbar-page strong {
    color: var(--office-text);
    font-size: 1.45rem;
    line-height: 1.1;
  }

  .office-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .office-grid-2 {
    grid-template-columns: 1fr;
  }

  .office-form-grid {
    grid-template-columns: 1fr;
  }

  .office-form-section-grid,
  .office-passenger-choice-grid {
    grid-template-columns: 1fr;
  }

  .office-passenger-add-row {
    grid-template-columns: 1fr;
  }

  .office-page-header,
  .office-panel-header,
  .office-inline-form,
  .office-panel-toolbar,
  .office-subpanel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .office-panel-header span,
  .office-page-header p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .office-content {
    overflow-x: hidden;
  }
}

@media (max-width: 720px) {
  .office-content,
  .office-topbar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .office-page-header,
  .office-inline-form,
  .office-panel-header,
  .office-panel-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

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

  .office-grid-2 {
      grid-template-columns: 1fr;
    }

  .office-compact-route-grid {
    grid-template-columns: 1fr;
  }

  .office-form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .office-form-section {
    padding: 18px;
  }

  .office-form-section-grid,
  .office-passenger-choice-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .office-passenger-add-row {
    grid-template-columns: 1fr;
  }

  .office-subpanel-header,
  .office-assignment-row {
    grid-template-columns: 1fr;
  }

  .office-panel,
  .office-stat-card {
      padding: 18px 16px;
      margin-bottom: 16px;
    }

  .office-stat-value {
      margin: 8px 0 4px;
      font-size: 28px;
    }

  .office-stat-hint {
      font-size: 14px;
      line-height: 1.45;
    }

  .office-page-actions,
  .office-form-actions {
    justify-content: stretch;
  }

  .office-page-actions .office-btn,
  .office-form-actions .office-btn,
  .office-inline-form .office-btn,
  .office-driver-action-row .office-btn {
    width: 100%;
  }

  .office-inline-form .office-select-modern {
      width: 100%;
    }

  .office-driver-trip-summary {
    grid-template-columns: 1fr;
  }

  .office-driver-action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .office-search-box {
    min-width: 100%;
    flex-basis: 100%;
  }

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

  .office-actions-dropdown {
    min-width: 200px;
  }

  .office-actions-item {
    min-height: 52px;
  }

  .office-table-wrap {
    overflow: visible;
  }

  .office-table,
  .office-table thead,
  .office-table tbody,
  .office-table tr,
  .office-table td {
    display: block;
    width: 100%;
  }

  .office-table thead {
    display: none;
  }

  .office-table tbody {
    display: grid;
    gap: 14px;
  }

  .office-table tr {
    position: relative;
    overflow: visible;
    padding: 16px;
    border: 1px solid var(--office-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--office-shadow);
  }

  .office-table td {
    border-bottom: 1px solid #edf2f8;
    padding: 10px 0 10px 112px;
    position: relative;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
  }

  .office-table td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .office-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: 10px;
    width: 96px;
    color: var(--office-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-align: left;
  }

  .office-actions-menu {
    margin-left: auto;
  }

  .office-actions-dropdown {
    right: 0;
    left: auto;
    bottom: calc(100% + 10px);
  }

  .office-topbar {
      flex-wrap: wrap;
    }
  
  .office-topbar .office-btn {
      width: auto;
    }

  .office-topbar-logout {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 14px;
    margin-left: auto;
  }
}

@media (max-width: 980px) {
  .office-topbar-page {
    display: none;
  }
}

@media (max-width: 520px) {
  .office-auth-page {
    padding: 18px;
  }

  .office-auth-card,
  .office-panel,
  .office-stat-card {
    border-radius: 18px;
  }

  .office-topbar {
    gap: 12px;
  }

  .office-topbar-page strong {
    font-size: 1.1rem;
  }

  .office-topbar-page span {
    font-size: 11px;
  }

  .office-topbar-logout {
    align-self: flex-start;
    margin-top: 2px;
    padding: 7px 12px;
    min-height: 34px;
    font-size: 13px;
  }

  .office-page-header h1 {
    font-size: 2rem;
  }

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

  .office-stat-card {
      padding: 16px 14px;
    }

  .office-stat-label {
      font-size: 13px;
    }

  .office-stat-value {
      font-size: 24px;
    }

  .office-stat-hint {
      font-size: 13px;
      line-height: 1.4;
    }

  .office-table td {
      padding-left: 94px;
    }

  .office-table td::before {
      width: 84px;
    }
}

@media (max-width: 380px) {
  .office-stats-grid {
    grid-template-columns: 1fr;
  }
}

.office-collapsible-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.office-collapsible-trigger .office-panel-header {
  flex: 1;
  margin-bottom: 0;
}

.office-collapsible-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 999px;
  border: 1px solid var(--office-border);
  background: #f8fbff;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.office-collapsible-icon::before,
.office-collapsible-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: var(--office-accent-dark);
  transform-origin: center;
}

.office-collapsible-icon::before {
  transform: translate(-85%, -10%) rotate(45deg);
}

.office-collapsible-icon::after {
  transform: translate(-15%, -10%) rotate(-45deg);
}

.office-collapsible-content {
  margin-top: 18px;
}

.office-collapsible-panel.is-collapsed .office-collapsible-content {
  display: none;
}

.office-collapsible-panel.is-collapsed .office-collapsible-icon {
  background: #fff;
}

.office-collapsible-panel.is-collapsed .office-collapsible-icon::before {
  transform: translate(-85%, -10%) rotate(-45deg);
}

.office-collapsible-panel.is-collapsed .office-collapsible-icon::after {
  transform: translate(-15%, -10%) rotate(45deg);
}

.office-topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  pointer-events: auto;
}

.office-notifications {
  position: relative;
}

.office-notifications-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(10, 22, 40, 0.24);
  backdrop-filter: blur(3px);
  cursor: default;
  z-index: 85;
}

.office-notification-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--light2);
  color: var(--navy);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.office-notification-toggle-icon {
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.office-notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent2);
  color: var(--white);
  font-size: .68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(239,68,68,.28);
}

.office-notifications-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(380px, calc(100vw - 32px));
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(30, 95, 168, 0.12);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(10, 22, 40, 0.2);
  padding: 14px;
  z-index: 91;
}

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

.office-notifications-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.office-notifications-header strong {
  display: block;
  font-size: 1rem;
  color: var(--navy);
}

.office-notifications-header span {
  display: block;
  font-size: .8rem;
  color: var(--gray);
  margin-top: 2px;
}

.office-notifications-mark-all {
  border: 1px solid rgba(30, 95, 168, 0.12);
  background: #f6faff;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
  padding: 9px 12px;
  min-height: 36px;
  border-radius: 999px;
}

.office-notifications-close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(30, 95, 168, 0.14);
  background: #f6faff;
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.office-notification-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.office-notification-filter {
  border: 1px solid rgba(30, 95, 168, 0.12);
  background: #f6faff;
  color: var(--mid);
  font-weight: 700;
  font-size: .82rem;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.office-notification-filter:hover,
.office-notification-filter.is-active {
  background: var(--office-accent);
  border-color: var(--office-accent);
  color: #0a1628;
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.22);
}

.office-notifications-list {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
  align-content: start;
  grid-auto-rows: max-content;
}

.office-notifications-loader {
  margin-top: 10px;
  color: var(--gray);
  font-size: .85rem;
  text-align: center;
}

.office-notification-item {
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  text-align: left;
  border: 1px solid rgba(30, 95, 168, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  padding: 12px 14px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.office-notification-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.office-notification-item.is-read {
  opacity: .72;
}

.office-notification-item--tone-info {
  border-color: rgba(30, 95, 168, 0.14);
}

.office-notification-item--tone-warning {
  border-color: rgba(245, 158, 11, 0.2);
}

.office-notification-item--tone-success {
  border-color: rgba(22, 163, 74, 0.18);
}

.office-notification-item--tone-parcel {
  border-color: rgba(124, 58, 237, 0.18);
}

.office-notification-item__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(30, 95, 168, 0.1);
  color: var(--mid);
  box-shadow: inset 0 0 0 1px rgba(30, 95, 168, 0.08);
  flex: 0 0 52px;
  align-self: center;
  overflow: hidden;
  position: relative;
}

.office-notification-item__icon svg {
  width: 30px !important;
  height: 30px !important;
  display: block !important;
  flex: none;
  margin: auto;
  transform: translate(0, 0);
}

.office-notification-item__icon.is-info {
  background: rgba(30, 95, 168, 0.12);
  color: var(--mid);
}

.office-notification-item__icon.is-warning {
  background: rgba(245, 158, 11, 0.16);
  color: #c77700;
}

.office-notification-item__icon.is-success {
  background: rgba(22, 163, 74, 0.14);
  color: #15803d;
}

.office-notification-item__icon.is-parcel {
  background: rgba(124, 58, 237, 0.14);
  color: #6d28d9;
}

.office-notification-item__content {
  min-width: 0;
}

.office-notification-item__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.office-notification-item__title {
  font-weight: 800;
  color: var(--navy);
}

.office-notification-item__chip {
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(30, 95, 168, 0.08);
  color: var(--mid);
  font-size: .72rem;
  font-weight: 700;
  text-transform: capitalize;
}

.office-notification-item__message {
  margin-top: 6px;
  color: var(--gray);
  font-size: .9rem;
  line-height: 1.55;
}

.office-notification-item__meta {
  margin-top: 8px;
  color: var(--mid);
  font-size: .75rem;
  font-weight: 700;
}

.office-notifications-empty,
.office-analytics-empty {
  color: var(--gray);
  font-size: .92rem;
  padding: 10px 4px;
}

.office-analytics-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.office-analytics-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.office-analytics-row span {
  color: var(--dark);
  font-weight: 600;
}

.office-analytics-row strong {
  color: var(--mid);
}

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

[data-office-analytics-overview] .office-panel-header {
  margin-bottom: 14px;
}

[data-office-analytics-overview] .office-grid-2 {
  gap: 18px;
  margin-bottom: 18px;
}

[data-office-analytics-overview] .office-panel {
  padding: 18px;
  margin-bottom: 18px;
}

.office-view-tabs-compact {
  gap: 8px;
}

.office-view-tabs-compact .office-view-tab {
  min-height: 40px;
  padding: 10px 14px;
}

.office-analytics-chart-panel {
  margin-top: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.office-analytics-chart {
  display: grid;
  gap: 14px;
}

.office-analytics-chart-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.office-analytics-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--dark);
  font-size: .9rem;
  font-weight: 700;
}

.office-analytics-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.office-analytics-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}

.office-analytics-legend-swatch.is-sessions {
  background: #1e5fa8;
}

.office-analytics-legend-swatch.is-completes {
  background: #f59e0b;
}

.office-analytics-chart-stage {
  position: relative;
  min-height: 220px;
  padding: 12px 0 0;
  overflow: hidden;
  border-radius: 16px;
  min-width: 100%;
}

.office-analytics-chart-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8px, 1fr));
  gap: 8px;
  align-items: end;
  pointer-events: none;
}

.office-analytics-bar {
  height: 100%;
  display: flex;
  align-items: end;
}

.office-analytics-bar__fill {
  width: 100%;
  min-height: 4px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.38) 0%, rgba(245, 158, 11, 0.12) 100%);
}

.office-analytics-chart-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.office-analytics-chart-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.office-analytics-chart-line.is-sessions {
  stroke: #1e5fa8;
}

.office-analytics-chart-line.is-completes {
  stroke: #f59e0b;
}

.office-analytics-chart-labels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28px, 1fr));
  gap: 8px;
  color: var(--gray);
  font-size: .75rem;
  min-width: 100%;
}

.office-analytics-chart-labels span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.office-settings-notifications {
  display: grid;
  gap: 12px;
}

.office-settings-notification {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--offwhite);
}

.office-settings-notification strong {
  display: block;
  color: var(--navy);
  margin-bottom: 2px;
}

.office-settings-notification span {
  display: block;
  color: var(--gray);
  font-size: .85rem;
}

.office-settings-app {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--offwhite);
}

.office-settings-app-copy strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}

.office-settings-app-copy p {
  margin: 0;
  color: var(--gray);
  line-height: 1.55;
}

.office-settings-app-button {
  flex: 0 0 auto;
}

.office-notifications-device {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(30, 95, 168, 0.12);
  display: grid;
  gap: 10px;
}

.office-notifications-device-copy {
  display: grid;
  gap: 4px;
}

.office-notifications-device-copy strong {
  color: var(--navy);
  font-size: .92rem;
}

.office-notifications-device-copy span {
  color: var(--gray);
  font-size: .82rem;
  line-height: 1.45;
}

.office-notifications-device-toggle {
  display: inline-flex;
  width: 100%;
  justify-content: center;
}

.office-notifications-device-toggle[hidden] {
  display: none !important;
}

.office-notifications-device-toggle.is-enabled {
  background: rgba(255, 163, 0, 0.12);
  border-color: rgba(255, 163, 0, 0.28);
  color: var(--navy);
}

.office-setting-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  white-space: nowrap;
}

.office-setting-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--mid);
}

.office-toast-host {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  z-index: 9999;
}

.office-toast {
  width: min(360px, calc(100vw - 36px));
  border: 1px solid rgba(30,95,168,.16);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  padding: 14px 16px;
  text-align: left;
  transform: translateY(12px);
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
}

.office-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.office-toast strong {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}

.office-toast span {
  color: var(--gray);
  font-size: .9rem;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .office-topbar-actions {
    gap: 8px;
  }

  .office-notifications-dropdown {
    width: min(420px, calc(100vw - 20px));
    right: 0;
    left: auto;
    max-height: calc(100vh - 92px);
    overflow: hidden;
    padding: 12px;
  }

  .office-notifications-header {
    gap: 10px;
  }

  .office-notifications-mark-all {
    align-self: stretch;
  }

  .office-notification-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .office-dashboard-actions {
      width: 100%;
      justify-content: flex-start;
  }

  .office-analytics-chart-panel {
    padding-left: 14px;
    padding-right: 14px;
  }

  .office-analytics-chart-stage {
    min-height: 180px;
    padding-top: 10px;
  }

  .office-analytics-chart-grid {
    gap: 4px;
  }

  .office-analytics-chart-labels {
    gap: 4px;
    font-size: .68rem;
  }

  .office-analytics-chart-labels span {
    white-space: nowrap;
    line-height: 1.1;
  }

  .office-analytics-chart-svg {
    inset: 0 2px 0 0;
  }

  .office-settings-notification {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .office-main {
    margin-left: 0;
  }

  .office-settings-app {
    flex-direction: column;
    align-items: stretch;
  }

  .office-settings-app-button {
    width: 100%;
  }

  .office-notifications-device {
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .office-notifications-dropdown {
    position: absolute;
    inset: auto 0 auto auto;
    width: min(380px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
    height: auto;
    max-height: calc(100vh - 92px);
    left: auto;
    top: calc(100% + 12px);
    border-radius: 20px;
    padding: 12px;
    display: block;
  }

  .office-notification-filters {
    grid-template-columns: 1fr;
  }
}
