/*
 * MeldAlarm frontend
 * Eén bronbestand, zonder animaties of historische correctielagen.
 * Breakpoints: desktop ≥ 1024px, kaarten ≤ 1023px, telefoon ≤ 470px.
 */

:root {
  --page: #f7f8fa;
  --surface: #ffffff;
  --surface-soft: #fafbfc;
  --ink: #151c29;
  --ink-soft: #526174;
  --muted: #647184;
  --line: #e5eaf0;
  --line-strong: #d8e0e8;
  --focus: #7e9dcc;
  --danger: #a93733;
  --danger-bg: #fff1ef;
  --warning: #825510;
  --warning-bg: #fff4df;
  --brand: #101820;
  --radius: 12px;
  --shadow: 0 10px 34px rgba(24, 38, 59, 0.045);
  --column-time: 98px;
  --column-priority: 72px;
  --column-service: 150px;
  --column-place: 140px;
  --column-region: 170px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  color-scheme: light;
}

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

html {
  min-width: 280px;
  min-height: 100%;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
}

button,
a {
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Buiten het detailpaneel blijft zichtbare tekst altijd op één regel. */
.shell :where(
  .brand-name,
  .brand-caption,
  .nav-label,
  .nav-text,
  .mobile-brand-label,
  .region-trigger__label,
  .message-text,
  .place-text,
  .region-text,
  .service-text,
  .time-small,
  .mobile-place-date,
  .empty h3,
  .empty p,
  th,
  td
),
.region-option,
.service-more-option,
.new-messages,
.load-more {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Hoofdindeling */
.shell {
  min-height: 100vh;
  padding-left: 238px;
}

.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  display: flex;
  width: 238px;
  height: 100vh;
  flex-direction: column;
  overflow-y: auto;
  padding: 30px 16px 24px;
  border-right: 1px solid var(--line);
  background: var(--surface);
  overscroll-behavior: contain;
}

.brand {
  display: flex;
  min-width: 0;
  min-height: 36px;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
}

.brand-logo {
  display: block;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  object-fit: contain;
}

.brand-copy,
.brand-name,
.brand-caption {
  display: block;
  min-width: 0;
}

.brand-name {
  color: var(--ink);
  font-size: 18px;
  font-weight: 810;
  letter-spacing: -0.75px;
  line-height: 1.05;
}

.brand-caption {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.15px;
  line-height: 1.2;
}

.nav-group {
  margin-top: 44px;
}

.nav-group + .nav-group {
  margin-top: 28px;
}

.nav-label {
  margin-bottom: 10px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.25px;
  text-transform: uppercase;
}

.nav-items {
  display: grid;
  gap: 5px;
}

.nav-item {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 43px;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #647084;
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.nav-item svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.nav-item.active {
  background: #f0f2f5;
  color: #1b2534;
  font-weight: 750;
}

.main {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 32px clamp(24px, 3.6vw, 62px) 64px;
}

/* Filters */
.feed {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.controls-panel {
  min-width: 0;
}

.feed-header {
  display: none;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(190px, 250px) max-content;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
}

.search,
.region-trigger,
.priority-filter {
  height: 43px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
}

.search {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
}

.search:focus-within {
  border-color: #99adcc;
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #263345;
  font-size: 12.5px;
  white-space: nowrap;
}

.search input::placeholder {
  color: #8d99a9;
  opacity: 1;
}

.search-icon-button,
.search-clear {
  display: grid;
  width: 30px;
  height: 32px;
  flex: 0 0 30px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8492a4;
}

.search-icon-button svg { width: 17px; height: 17px; }
.search-clear svg { width: 14px; height: 14px; }

.search input[type="search"] { appearance: none; }
.search input[type="search"]::-webkit-search-cancel-button,
.search input[type="search"]::-webkit-search-decoration { display: none; appearance: none; }

.select-wrap { min-width: 0; }

.region-trigger {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 0 12px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 560;
  text-align: left;
}

.region-trigger__label { flex: 1 1 auto; }

.region-trigger__chevron {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: #8897a9;
}

.priority-filter {
  min-width: 82px;
  padding: 0 18px;
  border-color: #edceca;
  background: #fff5f4;
  color: #923b37;
  font-size: 11.5px;
  font-weight: 760;
  white-space: nowrap;
}

.priority-filter[aria-pressed="true"] {
  border-color: #a93e38;
  background: #a93e38;
  color: #fff;
}

.mobile-services { display: none; }

.live-error-notice {
  margin: 0 24px 17px;
  padding: 11px 13px;
  overflow: hidden;
  border: 1px solid #f1ddd8;
  border-radius: 8px;
  background: #fff7f5;
  color: #83554e;
  font-size: 11.5px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Desktoptabel */
.table-wrap { width: 100%; overflow-anchor: none; }

table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

thead {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

th {
  height: 43px;
  padding: 0 10px;
  color: #5e6b7c;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-align: left;
  text-transform: uppercase;
}

td {
  height: 58px;
  padding: 0 10px;
  overflow: hidden;
  border-bottom: 1px solid #edf1f4;
  vertical-align: middle;
}

tbody tr { cursor: pointer; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbfd; }
th:first-child, td:first-child { padding-left: 24px; }
th:last-child, td:last-child { padding-right: 24px; }

.col-time { width: var(--column-time); }
.col-prio { width: var(--column-priority); }
.col-service { width: var(--column-service); }
.col-place { width: var(--column-place); }
.col-region { width: var(--column-region); }
.col-more,
.col-more-cell { display: none; }

.time-small,
.mobile-place-date {
  color: #5e6b7c;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.prio-badge {
  display: inline-flex;
  min-width: 36px;
  height: 27px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  overflow: hidden;
  border-radius: 6px;
  background: #eef2f5;
  color: #586478;
  font-size: 10px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prio-badge.high { background: var(--danger-bg); color: var(--danger); }
.prio-badge.medium { background: var(--warning-bg); color: var(--warning); }

.service-text {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 11.75px;
  font-weight: 680;
}

.service-text > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #9384b2;
}

.service-dot.brandweer { background: #d95f55; }
.service-dot.ambulance { background: #c68a2b; }
.service-dot.politie { background: #557ebf; }
.service-dot.mmt { background: #268c79; }
.service-dot.knrm { background: #2b748f; }
.service-dot.bruggen { background: #8d774b; }
.service-dot.overig { background: #8372a1; }

.message-text { color: #263142; font-size: 12.5px; font-weight: 670; line-height: 1.3; }
.place-text { color: #536174; font-size: 11.5px; font-weight: 620; }
.region-text { color: #687588; font-size: 10.75px; font-weight: 560; }

/* Lege status en paginering */
.empty { padding: 64px 24px 70px; text-align: center; }

.empty-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #8795a6;
}

.empty-icon svg { width: 19px; height: 19px; }
.empty h3 { margin: 0 0 8px; font-size: 14px; }
.empty p { margin: 0; color: var(--muted); font-size: 12px; }

.feed-pagination {
  display: flex;
  justify-content: center;
  padding: 18px 16px 22px;
  border-top: 1px solid var(--line);
  overflow-anchor: none;
}

.load-more {
  min-height: 41px;
  max-width: 100%;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  color: #3b485b;
  font-size: 12px;
  font-weight: 730;
}

.load-more:disabled { cursor: wait; opacity: 0.55; }

/* Keuzemenu's */
.region-menu,
.service-more-menu {
  position: fixed;
  z-index: 80;
  max-width: calc(100vw - 24px);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #e1e7ee;
  border-radius: 11px;
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(29, 44, 67, 0.14);
  overscroll-behavior: contain;
}

.region-option,
.service-more-option {
  display: block;
  width: 100%;
  min-height: 39px;
  padding: 10px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 560;
  line-height: 1.35;
  text-align: left;
}

.region-option[aria-selected="true"],
.service-more-option[aria-selected="true"] {
  background: #f0f3f6;
  color: #273345;
  font-weight: 720;
}

.new-messages {
  position: fixed;
  z-index: 70;
  top: calc(15px + env(safe-area-inset-top, 0px));
  left: 50%;
  min-height: 39px;
  max-width: calc(100vw - 24px);
  padding: 0 16px;
  transform: translateX(-50%);
  border: 1px solid #dfe4eb;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 7px 25px rgba(25, 38, 58, 0.1);
  color: #344155;
  font-size: 11.5px;
  font-weight: 730;
}

/* Meldingsdetails: hier mag inhoud bewust over meerdere regels lopen. */
.detail-overlay {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: none;
  background: rgba(19, 31, 47, 0.34);
}

.detail-overlay.open { display: block; }

.drawer {
  position: fixed;
  z-index: 100;
  inset: 0 0 0 auto;
  display: none;
  width: min(540px, 100%);
  height: 100dvh;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  box-shadow: -10px 0 42px rgba(15, 23, 42, 0.14);
}

.drawer.open { display: flex; }
.drawer * { min-width: 0; }

.drawer :where(
  .drawer-kicker,
  .detail-label,
  .detail-value,
  .detail-time-primary,
  .detail-time-date,
  .detail-list li strong,
  .detail-list li span,
  .drawer-section h3,
  .drawer-links a,
  .drawer-actionbar a
) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-top {
  display: flex;
  min-height: 66px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 23px 11px 28px;
  border-bottom: 1px solid #edf0f4;
  background: var(--surface);
}

.drawer-kicker {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.25px;
  text-transform: uppercase;
}

.close-btn {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #f3f5f7;
  color: #667386;
}

.close-btn svg { width: 18px; height: 18px; }

#detailContent {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 26px 28px 40px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.detail-heading { margin-bottom: 23px; }

.drawer h2 {
  margin: 0;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  white-space: normal;
  color: #1d293a;
  font-size: 21px;
  font-weight: 760;
  letter-spacing: -0.35px;
  line-height: 1.45;
}

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

.detail-field,
.detail-list li {
  min-width: 0;
  min-height: 80px;
  padding: 12px 14px;
  border: 1px solid #e9edf2;
  border-radius: 9px;
  background: var(--surface-soft);
}

.detail-label {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 790;
  letter-spacing: 0.75px;
  text-transform: uppercase;
}

.detail-value,
.detail-time-primary,
.detail-list li strong {
  color: #2d3b4d;
  font-size: 13px;
  font-weight: 710;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.detail-time-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 4px 8px;
}

.detail-time-primary { flex: 0 0 auto; font-variant-numeric: tabular-nums; }

.detail-time-date,
.detail-list li span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.drawer-line { height: 1px; margin: 24px 0; background: #edf0f3; }

.detail-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.drawer-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }

.drawer-links a,
.drawer-actionbar a {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  background: #222b39;
  color: #fff;
  font-size: 12px;
  font-weight: 730;
}

.drawer-actionbar {
  display: none;
  flex: 0 0 auto;
  padding: 12px 28px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #edf0f3;
  background: var(--surface);
}

html.detail-scroll-locked { overflow: hidden; }
body.detail-scroll-locked { width: 100%; }

.offline-page {
  display: grid;
  width: min(520px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  place-content: center;
  justify-items: start;
}

.offline-page img { display: block; margin-bottom: 24px; }
.offline-page h1 { margin: 0 0 10px; font-size: 28px; letter-spacing: -0.7px; }
.offline-page p { margin: 0 0 22px; color: var(--muted); line-height: 1.5; }
.offline-page h1,
.offline-page p,
.offline-page a {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.offline-page a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 730;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

/* Compacte desktop: minder zijbalk, regio vervalt vóór de tabel wordt geplet. */
@media (max-width: 1260px) and (min-width: 1024px) {
  .col-region,
  .col-region-cell { display: none; }
}

@media (max-width: 1110px) and (min-width: 1024px) {
  .shell { padding-left: 76px; }

  .sidebar {
    width: 76px;
    align-items: center;
    padding: 27px 12px 18px;
  }

  .brand { justify-content: center; padding: 0; }
  .brand-copy,
  .nav-label,
  .nav-text { display: none; }
  .nav-group,
  .nav-items { width: 100%; }
  .nav-item { justify-content: center; padding-inline: 10px; }
  .main { padding-inline: 24px; }
}

/* Tablet en mobiel: één professionele kaart per melding. */
@media (max-width: 1023px) {
  html { overflow-y: auto; scrollbar-gutter: auto; }
  .shell { padding-left: 0; }
  .sidebar { display: none; }

  .main {
    max-width: 860px;
    padding: 18px clamp(12px, 2.6vw, 23px) 42px;
  }

  .feed {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .controls-panel {
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .feed-header { display: block; padding: 18px 19px 15px; }
  .feed-heading { display: flex; min-width: 0; align-items: center; }

  .mobile-brand-label {
    display: block;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1.15px;
  }

  .toolbar {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 9px;
    padding: 0 19px 15px;
  }

  .search { grid-column: 1 / -1; }
  .select-wrap { grid-column: 1; }
  .priority-filter { grid-column: 2; }

  .mobile-services {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
    padding: 1px 19px 19px;
  }

  .mobile-services button {
    width: 100%;
    min-width: 0;
    min-height: 39px;
    padding: 0 5px;
    overflow: hidden;
    border: 1px solid #dfe5eb;
    border-radius: 9px;
    background: var(--surface);
    color: #5c697c;
    font-size: 11px;
    font-weight: 710;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-services button.active { border-color: #263345; background: #263345; color: #fff; }
  .live-error-notice { margin: 0 0 12px; }
  .table-wrap { overflow: visible; }
  table,
  tbody { display: block; width: 100%; }
  thead { display: none; }

  tbody tr {
    --dienstkleur: #8372a1;
    position: relative;
    display: grid;
    width: 100%;
    grid-template-columns: max-content minmax(72px, 0.9fr) minmax(72px, 1.1fr) max-content;
    grid-template-areas:
      "message message message message"
      "prio service place date";
    align-items: center;
    gap: 12px 9px;
    margin-bottom: 10px;
    padding: 15px 17px 17px 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
    box-shadow: 0 3px 13px rgba(18, 31, 52, 0.03);
  }

  tbody tr::before {
    position: absolute;
    inset: 16px auto 16px 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--dienstkleur);
    content: "";
  }

  tbody tr.service-brandweer { --dienstkleur: #d95f55; }
  tbody tr.service-ambulance { --dienstkleur: #c68a2b; }
  tbody tr.service-politie { --dienstkleur: #557ebf; }
  tbody tr.service-mmt { --dienstkleur: #268c79; }
  tbody tr.service-knrm { --dienstkleur: #2b748f; }
  tbody tr.service-bruggen { --dienstkleur: #8d774b; }

  td,
  td:first-child,
  td:last-child {
    display: block;
    width: auto;
    height: auto;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
  }

  .col-time-cell,
  .col-region-cell { display: none !important; }
  .col-message-cell { grid-area: message; }
  .col-prio-cell { grid-area: prio; }
  .col-service-cell { grid-area: service; }

  .col-place-cell {
    display: flex !important;
    grid-area: place;
    align-items: center;
    gap: 8px;
  }

  .col-place-cell::before { flex: 0 0 auto; color: #9da8b6; content: "·"; }

  .col-place-cell > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .col-more-cell { display: block; grid-area: date; text-align: right; }
  .message-text { font-size: 13.75px; line-height: 1.4; }
  .service-text { font-size: 11.5px; }
  .place-text,
  .mobile-place-date { font-size: 11px; }
  .empty { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
  .feed-pagination { border: 0; padding-bottom: 25px; }
  #detailContent .drawer-links { display: none; }
  .drawer-actionbar:not([hidden]) { display: flex; }
}

@media (max-width: 470px) {
  .main { padding: 11px 10px 34px; }
  .feed-header { padding: 17px 16px 14px; }
  .toolbar { gap: 8px; padding: 0 16px 14px; }
  .priority-filter { min-width: 76px; padding-inline: 14px; }

  .mobile-services {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
    padding: 1px 16px 17px;
  }

  .mobile-services button { grid-column: span 2; font-size: 10.75px; }
  .mobile-services button:nth-child(4),
  .mobile-services button:nth-child(5) { grid-column: span 3; }

  tbody tr {
    grid-template-columns: max-content minmax(58px, 0.9fr) minmax(58px, 1fr) max-content;
    gap: 11px 7px;
    padding: 14px 14px 16px 16px;
  }

  .message-text { font-size: 13.5px; }
  .drawer-top { padding-inline: 18px 13px; }
  #detailContent { padding: 22px 18px 32px; }
  .drawer h2 { font-size: 19px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .drawer-actionbar { padding-inline: 18px; }
}

@media (max-width: 350px) {
  .toolbar { grid-template-columns: minmax(0, 1fr) 70px; padding-inline: 13px; }
  .mobile-services { padding-inline: 13px; }
  tbody tr {
    grid-template-columns: max-content minmax(0, 1fr) minmax(0, 0.8fr) max-content;
    padding-inline: 14px 12px;
  }
}
