/* Product sales demo. Colors, sizes and spacing follow the design files. */

:root {
  --text: #152033;
  --text-2: #3a4658;
  --text-3: #4a5568;
  --muted: #5a6577;
  --muted-2: #6b7688;
  --faint: #8792a2;

  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --group-bg: #f1f4f8;
  --segment-bg: #e9edf2;

  --border: #e4e8ee;
  --border-light: #eef1f5;
  --input-border: #dce1e8;

  --primary: #1f5fd6;
  --primary-hover: #174aa8;
  --primary-soft: #e9effb;

  --success: #067647;
  --danger: #b42318;
  --danger-dark: #7a271a;
  --danger-bg: #fef3f2;
  --danger-border: #f9dcd9;
  --danger-btn-border: #f1c8c3;
  --warning: #93370d;
  --warning-2: #7a4a06;
  --warning-bg: #fffaeb;
  --warning-border: #f5dda0;
  --note: #dc6803;
  --note-bg: #fef0c7;

  --font: "Public Sans", system-ui, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;
  --shadow-pop: 0 12px 28px rgba(21, 32, 51, 0.14);
  --focus-ring: 0 0 0 3px rgba(31, 95, 214, 0.15);

  --table-columns: minmax(240px, 3.2fr) 76px 72px 96px 108px 108px 146px 128px;
}

/* Base ------------------------------------------------------------------ */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--primary); }
a:hover { color: var(--primary-hover); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }

:is(button, a, summary):focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.is-muted { color: var(--muted); }
.is-faint { color: var(--faint); }
.is-strong { font-weight: 600; }
.is-danger { color: var(--danger); }
.is-warning { color: var(--warning); }
.is-success { color: var(--success); }

/* App shell ------------------------------------------------------------- */

.app { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  height: 68px; flex-shrink: 0;
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.brandmark { display: flex; align-items: center; gap: 12px; }
.brandmark__logo {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff;
}
.brandmark__text { display: flex; flex-direction: column; line-height: 1.15; }
.brandmark__name { font-family: var(--font-serif); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.brandmark__subtitle { font-size: 12px; color: var(--muted); }

.topbar__divider { width: 1px; height: 28px; margin-left: 12px; background: var(--border); }
.topbar__spacer { flex-grow: 1; }
.topbar__link {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border-radius: 10px; font-weight: 500; color: var(--text-2); text-decoration: none;
}
.topbar__link:hover { background: var(--bg); color: var(--text); }

.date-pill {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
  border-radius: 999px; background: var(--bg); color: var(--text-3); font-size: 13px; white-space: nowrap;
}

.account { position: relative; }
.account__button {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 12px 0 6px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted);
}
.account__text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.account__name { font-weight: 600; color: var(--text); }
.account__role { font-size: 12px; color: var(--muted); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 600;
}

.menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 200px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-pop);
}
.menu__item {
  display: block; padding: 10px 12px; border-radius: 8px; color: var(--text-2); text-decoration: none;
}
.menu__item:hover { background: var(--bg); color: var(--text); }

.app__body { flex-grow: 1; display: flex; min-height: 0; }

.sidebar {
  position: sticky; top: 68px; align-self: flex-start;
  width: 248px; height: calc(100vh - 68px); flex-shrink: 0;
  display: flex; flex-direction: column; gap: 4px;
  padding: 20px 14px; overflow-y: auto;
  background: var(--surface); border-right: 1px solid var(--border);
}
.is-sidebar-hidden .sidebar { display: none; }
.sidebar__section {
  padding: 20px 12px 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted-2);
}
.sidebar__section:first-child { padding-top: 8px; }
.sidebar__link {
  display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px;
  border-radius: 10px; font-weight: 500; color: var(--text-2); text-decoration: none;
}
.sidebar__link:hover { background: var(--bg); color: var(--text); }
.sidebar__link.is-current { background: var(--primary-soft); color: var(--primary); font-weight: 600; }

.app__main { flex-grow: 1; min-width: 0; padding: 28px 40px 40px; }

/* Buttons and inputs ---------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 14px;
  border: 1px solid var(--input-border); border-radius: 10px;
  background: var(--surface); color: var(--text-2);
  font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); color: var(--text); }
.btn--outline { border-color: var(--primary); color: var(--primary); font-weight: 600; }
.btn--outline:hover { background: var(--primary-soft); color: var(--primary-hover); }
.btn--primary { border: 0; padding: 0 18px; background: var(--primary); color: #fff; font-weight: 600; }
.btn--primary:hover { background: var(--primary-hover); color: #fff; }
.btn--danger { border: 0; padding: 0 18px; background: var(--danger); color: #fff; font-weight: 600; }
.btn--danger:hover { background: var(--danger-dark); color: #fff; }
.btn--danger-outline { border-color: var(--danger-btn-border); }
.btn--danger-link { border: 0; padding: 0 8px; background: transparent; color: var(--danger); }
.btn--danger-link:hover { background: var(--danger-bg); color: var(--danger-dark); }
.btn--sm { height: 36px; padding: 0 12px; font-size: 13px; }
.btn--xs { height: 34px; padding: 0 12px; border-radius: 8px; font-size: 13px; }
.btn--ghost { border: 0; background: var(--group-bg); }

.icon-btn {
  width: 40px; height: 40px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted);
}
.icon-btn:hover { background: var(--group-bg); color: var(--text); }
.icon-btn--primary { color: var(--primary); }
.icon-btn--primary:hover { background: var(--primary-soft); color: var(--primary-hover); }
.icon-btn--bordered { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px; color: var(--text-2); }

.link-btn {
  height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent;
  font-size: 13px; font-weight: 500; color: var(--primary);
}
.link-btn:hover { background: var(--primary-soft); }

.input {
  width: 100%; height: 44px; padding: 0 12px;
  border: 1px solid var(--input-border); border-radius: 10px;
  background: var(--surface); color: var(--text); font-size: 14px;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus-ring); }
.input.is-invalid { border-color: var(--danger); }
.input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.15); }
.input--sm { height: 36px; font-size: 13px; }
.input--file { height: auto; padding: 10px 12px; }
.select { padding: 0 10px; }
.textarea { height: auto; min-height: 70px; padding: 10px 12px; resize: vertical; line-height: 1.4; }
.input::placeholder { color: var(--faint); }

.segmented { display: flex; padding: 3px; border-radius: 10px; background: var(--segment-bg); }
.segmented--full { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--group-bg); }
.segmented__item {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent;
  font-size: 13px; font-weight: 500; color: var(--text-3); text-decoration: none; white-space: nowrap;
}
.segmented__item:hover { color: var(--text); }
.segmented__item[aria-current="true"] {
  background: var(--surface); color: var(--text); font-weight: 600;
  box-shadow: 0 1px 2px rgba(21, 32, 51, 0.08);
}

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
  border: 1px solid var(--input-border); border-radius: 10px; background: var(--surface);
  font-size: 13px; font-weight: 500; color: var(--text-2); text-decoration: none; white-space: nowrap;
}
.chip:hover { color: var(--text); background: var(--surface-2); }
.chip[aria-pressed="true"] { border-color: var(--note); background: var(--warning-bg); color: var(--warning); }

.badge {
  flex-shrink: 0; padding: 2px 8px; border-radius: 999px;
  background: var(--group-bg); color: var(--muted); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
}

/* Page head ------------------------------------------------------------- */

.report { display: flex; flex-direction: column; gap: 18px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.page-head__titles { display: flex; flex-direction: column; gap: 6px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.breadcrumb__current { color: var(--text); font-weight: 500; }
.page-head__title-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.page-title { margin: 0; font-family: var(--font-serif); font-size: 36px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.1; }
.page-head__period { font-size: 16px; color: var(--muted); }
.page-head__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.periods { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.custom-period { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.custom-period__field { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.custom-period__field .input { width: 150px; }

/* Tiles ----------------------------------------------------------------- */

.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  color: var(--text); text-decoration: none;
}
.tile__label, .tile__hint { font-size: 12px; color: var(--muted); }
.tile__hint.is-danger { color: var(--danger); }
.tile__value { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile__unit { font-size: 14px; font-weight: 400; color: var(--muted); }
.tile--warning { background: var(--warning-bg); border-color: var(--warning-border); }
.tile--warning:hover { border-color: var(--note); color: var(--text); }
.tile--warning .tile__label, .tile--warning .tile__hint { color: var(--warning-2); }
.tile--warning .tile__value, .tile--warning .tile__unit { color: var(--warning); }
.tile__link { text-decoration: underline; }

/* Products table -------------------------------------------------------- */

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.products { overflow: visible; }

.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--border-light);
}
.toolbar__spacer { flex-grow: 1; }
.toolbar__count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.toolbar .select { width: auto; min-width: 150px; height: 40px; }

.search { position: relative; width: 280px; }
.search__icon { position: absolute; left: 12px; top: 11px; color: var(--muted-2); }
.search__input { height: 40px; padding-left: 40px; }

/* Scrolls sideways only on narrow screens, so note popovers aren't clipped on wide ones. */
.table { overflow: visible; }
@media (max-width: 1300px) { .table { overflow-x: auto; } }
.table__row {
  display: grid; grid-template-columns: var(--table-columns); gap: 12px; align-items: center;
  min-width: 1040px; padding: 0 16px;
}
.table__head {
  min-height: 42px; background: var(--surface-2); border-bottom: 1px solid var(--border-light);
  font-size: 12px; font-weight: 600; color: var(--muted);
}
.th-sort {
  display: flex; align-items: center; justify-content: flex-end; min-height: 42px;
  color: var(--muted); text-decoration: none; text-align: right; line-height: 1.2;
}
.th-sort.is-left { justify-content: flex-start; }
.th-sort:hover, .th-sort.is-active { color: var(--text); }

.brand-row {
  width: 100%; min-height: 44px; border: 0; border-bottom: 1px solid var(--border);
  background: var(--group-bg); font-size: 13px; color: var(--text-2); text-align: left;
  font-variant-numeric: tabular-nums;
}
.brand-row:hover { background: #eaeef4; }
.brand-row__name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand-row__title { font-size: 14px; font-weight: 700; color: var(--text); }
.brand-row__chevron { flex-shrink: 0; transition: transform 0.15s; }
.brand-row .num.is-strong:last-of-type { color: var(--text); }
.brand-group.is-collapsed .brand-row__chevron { transform: rotate(-90deg); }
.brand-group.is-collapsed .brand-group__rows { display: none; }

.product-row { min-height: 54px; padding-top: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--border-light); font-size: 14px; }
.product-row:hover { background: var(--surface-2); }
.product-row__name { position: relative; display: flex; align-items: center; gap: 6px; min-width: 0; padding-left: 26px; }
.product-row__title {
  font-weight: 500; line-height: 1.3; overflow: hidden;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.product-row.is-discarded { color: var(--faint); }
.product-row.is-discarded .is-strong, .product-row.is-discarded .is-muted { color: var(--faint); }

.price-cell { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-cell__avg { font-size: 12px; color: var(--warning);  }
.product-row.is-discarded .price-cell__avg { color: var(--faint); }

.row-actions { display: flex; justify-content: flex-end; gap: 2px; }

.table__total {
  height: 48px; background: var(--surface-2); border-top: 1px solid var(--border);
  border-radius: 0 0 16px 16px; font-size: 14px; font-weight: 600;
}
.table__total-count { font-weight: 400; color: var(--muted); }
.table__empty { margin: 0; padding: 32px 16px; text-align: center; color: var(--muted); }

/* Note popover ---------------------------------------------------------- */

.note { flex-shrink: 0; }
.note__button {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 6px; background: transparent; color: var(--note);
}
.note__button:hover, .note__button[aria-expanded="true"] { background: var(--note-bg); }
.note__popover {
  position: absolute; bottom: calc(100% - 4px); left: 16px; z-index: 5;
  width: 300px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border: 1px solid var(--warning-border); border-radius: 12px; box-shadow: var(--shadow-pop);
}
.note__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.note__title { font-size: 12px; font-weight: 600; color: var(--warning); }
.note__meta { font-size: 12px; color: var(--muted); }
.note__text { margin: 0; font-size: 14px; line-height: 1.45; white-space: pre-line; }
.note__actions { display: flex; gap: 8px; justify-content: flex-end; }

/* Side panel ------------------------------------------------------------ */

.panel-overlay {
  position: fixed; inset: 0; z-index: 30;
  display: flex; justify-content: flex-end;
  background: rgba(21, 32, 51, 0.28);
  animation: fade-in 0.15s ease-out;
}
.panel {
  width: 460px; max-width: 100%; height: 100%;
  display: flex; flex-direction: column;
  background: var(--surface); box-shadow: -12px 0 32px rgba(21, 32, 51, 0.12);
  animation: slide-in 0.2s ease-out;
}
.panel__header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 22px 28px; border-bottom: 1px solid var(--border-light);
}
.panel__header--tabs { padding-bottom: 16px; border-bottom: 0; }
.panel__titles { display: flex; flex-direction: column; gap: 2px; }
.panel__title { margin: 0; font-family: var(--font-serif); font-size: 26px; font-weight: 500; }
.panel__subtitle { font-size: 13px; color: var(--muted); }
.panel__tabs { padding: 0 28px 16px; border-bottom: 1px solid var(--border-light); }
.panel__content, .panel__form { flex-grow: 1; min-height: 0; display: flex; flex-direction: column; }
.panel__body { flex-grow: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; padding: 22px 28px; }
.panel__footer {
  display: flex; align-items: center; gap: 10px; padding: 16px 28px;
  border-top: 1px solid var(--border-light); background: var(--surface-2);
}
.panel__footer-spacer { flex-grow: 1; }
.panel__footer .btn { height: auto; min-height: 44px; padding-top: 4px; padding-bottom: 4px; white-space: normal; line-height: 1.15; text-align: center; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field__hint { font-size: 12px; color: var(--muted); }
.field__hint.is-warning { color: var(--warning); }
.field__error { font-size: 12px; color: var(--danger); font-weight: 500; }
.req { color: var(--danger); }
.optional { font-weight: 400; color: var(--muted); }

.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 13px;
}
.facts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts--plain { padding: 0; background: none; }
.facts__item { display: flex; flex-direction: column; gap: 2px; }
.facts__item span { color: var(--muted); }
.facts__item strong { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.facts__big { font-size: 18px !important; }
.facts--plain .facts__item span { font-size: 12px; }

.stock-box { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; }
.stock-box__hint { display: flex; gap: 8px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.stock-box__hint svg { flex-shrink: 0; margin-top: 1px; }

.summary {
  display: flex; flex-direction: column; gap: 8px; padding: 14px 16px;
  border-radius: 12px; background: var(--primary-soft);
}
.summary__line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--text-2); }
.summary__line > :last-child { font-variant-numeric: tabular-nums; text-align: right; }
.summary__line strong { font-weight: 600; color: var(--text); }
.summary__line strong.is-danger { color: var(--danger); }
.summary__line--main strong { font-size: 20px; }

.callout { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.45; }
.callout__icon { flex-shrink: 0; margin-top: 1px; }
.callout--warning { background: var(--warning-bg); color: var(--warning-2); }
.callout--info { background: var(--primary-soft); color: var(--text-2); }
.callout--danger { background: var(--danger-bg); color: var(--danger-dark); }

.confirm {
  display: flex; flex-direction: column; gap: 12px; padding: 16px 28px 18px;
  border-top: 1px solid var(--danger-border); background: var(--danger-bg);
  font-size: 13px; line-height: 1.45; color: var(--danger-dark);
}
.confirm__text { display: flex; flex-direction: column; gap: 4px; }
.confirm__title { font-size: 15px; font-weight: 600; }
.confirm__actions { display: flex; justify-content: flex-end; gap: 10px; }
.confirm__form { display: contents; }

/* Import dialog --------------------------------------------------------- */

.modal {
  width: 480px; max-width: calc(100% - 32px); padding: 0;
  border: 0; border-radius: 16px; box-shadow: var(--shadow-pop); color: var(--text);
}
.modal::backdrop { background: rgba(21, 32, 51, 0.28); }
.modal__content { display: flex; flex-direction: column; gap: 16px; padding: 22px 28px; }
.modal__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal__text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.modal__footer { display: flex; justify-content: flex-end; gap: 10px; }

/* Toasts ---------------------------------------------------------------- */

.toasts {
  position: fixed; left: 50%; bottom: 24px; z-index: 40; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: max-content; max-width: calc(100% - 32px);
}
.toast {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 8px 6px 16px;
  border-radius: 12px; background: var(--text); color: #fff; box-shadow: var(--shadow-pop);
  font-size: 14px; animation: toast-in 0.2s ease-out;
}
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity 0.2s, transform 0.2s; }
.toast__icon { flex-shrink: 0; color: #7cd4a8; }
.toast__message { flex-grow: 1; }
.toast__undo {
  height: 36px; padding: 0 12px; border: 0; border-radius: 8px;
  background: rgba(255, 255, 255, 0.12); color: #fff; font-weight: 600;
}
.toast__undo:hover { background: rgba(255, 255, 255, 0.22); }
.toast form { display: contents; }
.toast__close {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px; background: transparent; color: rgba(255, 255, 255, 0.7);
}
.toast__close:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }

@keyframes fade-in { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

turbo-frame { display: contents; }

/* Smaller screens ------------------------------------------------------- */

@media (max-width: 1280px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app__main { padding: 24px; }
}

@media (max-width: 900px) {
  .sidebar { display: none; }
  .date-pill, .topbar__link, .topbar__divider, .brandmark__subtitle, .account__text { display: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app__main { padding: 16px; }
  .search { width: 100%; }
}

@media (max-width: 520px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .page-title { font-size: 30px; }
}
