/* Dashboard v1.0 layout from the owner-supplied HTML reference.
   All colors and semantic variants are sourced from the shared DS theme. */
.overview-shell {
  font: 14px/1.5 var(--ds-font);
  color: var(--ds-ink);
  background: var(--ds-canvas);
  min-height: 100vh;
  font-synthesis: none;
}
.overview-shell * {
  box-sizing: border-box;
  min-width: 0;
}
.overview-shell button,
.overview-shell a {
  font-family: inherit;
}
.overview-shell :focus-visible,
.overview-mobile-nav :focus-visible {
  outline: 3px solid var(--ds-focus);
  outline-offset: 3px;
}
body.hms-mode:has(.overview-shell) #app {
  padding: 0;
  margin: 0;
  max-width: none;
}
body.hms-mode:has(.overview-shell) {
  background: var(--ds-dashboard-page);
  padding-bottom: 0;
}
.overview-wrap {
  max-width: 1192px;
  margin: auto;
}
.overview-appbar {
  background: var(--ds-paper);
  border-bottom: 1px solid var(--ds-line);
}
.overview-topline {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}
.overview-toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
}
.overview-shell .ds-icon {
  flex-shrink: 0;
  display: block;
}
.overview-body {
  padding: 32px 0 64px;
}
.overview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 21px;
}
.overview-eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ds-dashboard-secondary);
  margin: 0 0 8px;
}
.overview-heading h1 {
  font: 700 37px/1.1 var(--ds-font);
  letter-spacing: -1.6px;
  margin: 0 0 9px;
}
.overview-context {
  font-size: 14px;
  color: var(--ds-muted);
  margin: 0;
  overflow-wrap: anywhere;
}
.overview-shell .overview-primary {
  border: 0;
  border-radius: 11px;
  background: var(--ds-action);
  color: var(--ds-paper);
  font-size: 14px;
  font-weight: 650;
  min-height: 43px;
  padding: 12px 19px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.overview-primary .ds-icon {
  width: 17px;
  height: 17px;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.92fr);
  grid-template-areas: 'kpi kpi' 'attention preview' 'events preview';
  gap: 20px 22px;
  align-items: start;
}
.overview-attention {
  grid-area: attention;
}
.overview-events {
  grid-area: events;
}
.overview-preview {
  grid-area: preview;
  align-self: start;
}
.overview-section {
  background: var(--ds-paper);
  border: 1px solid var(--ds-line);
  border-radius: 17px;
  box-shadow: var(--ds-dashboard-shadow);
  padding: 23px 24px;
}
.overview-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 19px;
}
.overview-section-title h2 {
  font: 700 19px/1.25 var(--ds-font);
  letter-spacing: -0.55px;
  margin: 0;
}
.overview-caption {
  font-size: 12px;
  color: var(--ds-dashboard-secondary);
  margin: 6px 0 0;
}
.overview-count {
  background: var(--ds-dashboard-pill);
  color: var(--ds-dashboard-pill-ink);
  font-weight: 650;
  padding: 6px 11px;
  font-size: 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.overview-header-link {
  color: var(--ds-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}
.overview-kpi {
  grid-area: kpi;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.overview-kpi .ds-card {
  max-width: none;
  min-height: 119px;
  background: var(--ds-paper);
  border: 1px solid var(--ds-line);
  border-radius: 15px;
  padding: 19px 21px;
  box-shadow: var(--ds-dashboard-shadow);
  margin: 0;
}
.overview-kpi .ds-card-head {
  align-items: center;
  gap: 6px;
}
.overview-kpi .ds-card-head h3 {
  font: 400 13px/1.5 var(--ds-font);
  color: var(--ds-muted);
  margin: 0;
}
.overview-kpi .ds-card-head .ds-icon {
  width: 17px;
  height: 17px;
  color: var(--ds-dashboard-brand-muted);
}
.overview-kpi .ds-card-description:empty {
  display: none;
}
.overview-kpi-value {
  display: block;
  font-size: 35px;
  font-weight: 650;
  letter-spacing: -1.4px;
  line-height: 1;
  margin: 13px 0 0;
  font-variant-numeric: tabular-nums;
}
.overview-tasks,
.overview-event-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.overview-tasks li + li,
.overview-event-list li + li {
  border-top: 1px solid var(--ds-line);
}
.overview-task {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 0;
  min-height: 89px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.overview-task-icon {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: var(--ds-dashboard-task);
  color: var(--ds-dashboard-task-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.overview-task-icon.amber {
  background: var(--ds-dashboard-task-amber);
  color: var(--ds-dashboard-task-amber-ink);
}
.overview-task-text {
  flex: 1;
  min-width: 0;
}
.overview-task-text strong {
  display: block;
  font-size: 14px;
  font-weight: 690;
  margin-bottom: 5px;
}
.overview-task-text > span {
  display: block;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ds-muted);
  overflow-wrap: anywhere;
}
.overview-task-arrow {
  color: var(--ds-dashboard-arrow);
  flex-shrink: 0;
}
.overview-task .ds-icon,
.overview-event .ds-icon {
  width: 19px;
  height: 19px;
}
.overview-card-footer {
  border-top: 1px solid var(--ds-line);
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.overview-view-link {
  font-size: 13px;
  color: var(--ds-action);
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.overview-view-link .ds-icon {
  width: 15px;
  height: 15px;
}
.overview-card-footer .overview-caption {
  margin: 0;
}
.overview-calm {
  padding: 17px 0;
  margin: 0;
  line-height: 1.7;
}
.overview-calm span {
  font-size: 12px;
  color: var(--ds-muted);
}
.overview-event {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 12px 0;
}
.overview-event-marker {
  width: 4px;
  height: 38px;
  border-radius: 4px;
  background: var(--ds-dashboard-arrival);
  flex-shrink: 0;
}
.overview-event-marker.out {
  background: var(--ds-dashboard-departure);
}
.overview-event-text {
  flex: 1;
}
.overview-event strong {
  display: block;
  font-size: 14px;
  font-weight: 660;
  margin-bottom: 5px;
}
.overview-event small {
  display: block;
  color: var(--ds-muted);
  font-size: 12px;
}
.overview-preview .overview-section-title {
  margin-bottom: 20px;
}
.overview-calendar-head,
.overview-unit {
  display: grid;
  grid-template-columns: 86px repeat(7, minmax(0, 1fr));
  gap: 5px;
  align-items: center;
}
.overview-calendar-head {
  text-align: center;
  font-size: 11px;
  color: var(--ds-muted);
  line-height: 1.45;
  font-weight: 550;
  padding-bottom: 6px;
}
.overview-unit {
  margin-top: 5px;
}
.overview-unit h3 {
  font: 620 12px/1.3 var(--ds-font);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 4px;
  margin: 0;
}
.overview-week {
  grid-column: 2/-1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}
.overview-day {
  height: 40px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ds-dashboard-free);
  color: var(--ds-muted);
  border: 1px solid var(--ds-dashboard-free-line);
  text-decoration: none;
}
.overview-day .ds-icon {
  width: 16px;
  height: 16px;
}
.overview-day[data-state='confirmed'] {
  background: var(--ds-dashboard-booked);
  border-color: var(--ds-dashboard-booked-line);
  color: var(--ds-dashboard-booked-ink);
}
.overview-day[data-state='held'] {
  background: var(--ds-dashboard-held);
  border-color: var(--ds-dashboard-held-line);
  color: var(--ds-dashboard-held-ink);
}
.overview-day[data-state='blocked'] {
  background: var(--ds-dashboard-blocked);
  border-color: var(--ds-dashboard-blocked-line);
}
.overview-day[data-state='unknown'] {
  border-style: dashed;
}
.overview-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}
.overview-legend li {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  color: var(--ds-muted);
}
.overview-legend li:before {
  content: '';
  height: 10px;
  width: 10px;
  border-radius: 3px;
  border: 1px solid var(--ds-line);
  background: var(--ds-dashboard-free);
}
.overview-legend [data-state='confirmed']:before {
  background: var(--ds-dashboard-booked);
}
.overview-legend [data-state='held']:before {
  background: var(--ds-dashboard-held);
}
.overview-legend [data-state='blocked']:before {
  background: var(--ds-dashboard-blocked);
}
.overview-legend [data-state='unknown']:before {
  border-style: dashed;
}
.overview-calendar-link {
  background: var(--ds-dashboard-link);
  padding: 14px 15px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ds-action);
  font-size: 13px;
  font-weight: 650;
}
.overview-calendar-note {
  font-size: 11px;
  color: var(--ds-dashboard-secondary);
  margin: 9px 0 0;
}
.overview-empty {
  max-width: none;
  padding: 54px 30px;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 15px;
}
.overview-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ds-action-soft);
  color: var(--ds-action);
  width: 74px;
  height: 74px;
  border-radius: 22px;
}
.overview-empty h2 {
  font: 700 25px/1.25 var(--ds-font);
  letter-spacing: -0.6px;
  margin: 0;
}
.overview-empty p {
  max-width: 430px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ds-muted);
  margin: 0;
}
.overview-loading {
  max-width: 1192px;
  padding: 32px 18px;
  margin: auto;
}
.overview-mobile-nav {
  display: none;
}
@media (max-width: 1245px) {
  .overview-wrap {
    margin-left: 27px;
    margin-right: 27px;
  }
}
@media (max-width: 760px) {
  .overview-wrap {
    margin-left: 0;
    margin-right: 0;
  }
  .overview-topline {
    height: 67px;
    padding: 0 19px;
  }
  .overview-toolbar {
    gap: 16px;
  }
  .overview-body {
    padding: 25px 18px 100px;
  }
  .overview-heading {
    display: block;
    margin-bottom: 15px;
  }
  .overview-eyebrow {
    margin-bottom: 7px;
  }
  .overview-heading h1 {
    font-size: 32px;
    letter-spacing: -1.25px;
    margin-bottom: 7px;
  }
  .overview-heading #hms-new {
    width: 100%;
    margin-top: 19px;
  }
  .overview-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'attention' 'kpi' 'events' 'preview';
    gap: 15px;
  }
  .overview-kpi {
    gap: 8px;
  }
  .overview-kpi .ds-card {
    min-height: 91px;
    padding: 14px 11px;
    border-radius: 12px;
  }
  .overview-kpi .ds-card-head {
    align-items: flex-start;
    min-height: 27px;
  }
  .overview-kpi .ds-card-head h3 {
    font-size: 11px;
  }
  .overview-kpi .ds-card-head .ds-icon {
    display: none;
  }
  .overview-kpi-value {
    font-size: 29px;
    margin-top: 4px;
  }
  .overview-section {
    padding: 19px 17px;
    border-radius: 15px;
  }
  .overview-section-title {
    margin-bottom: 12px;
  }
  .overview-section-title h2 {
    font-size: 18px;
  }
  .overview-task {
    padding: 14px 0;
    min-height: 91px;
    gap: 11px;
  }
  .overview-task-icon {
    width: 39px;
    height: 39px;
    border-radius: 11px;
  }
  .overview-task-text strong {
    font-size: 13px;
  }
  .overview-task-text > span {
    font-size: 11px;
  }
  .overview-calendar-head,
  .overview-unit {
    grid-template-columns: 69px repeat(7, minmax(0, 1fr));
    gap: 3px;
  }
  .overview-calendar-head {
    font-size: 9px;
  }
  .overview-unit h3 {
    font-size: 10px;
  }
  .overview-week {
    gap: 3px;
  }
  .overview-day {
    height: 35px;
    border-radius: 7px;
  }
  .overview-day .ds-icon {
    width: 13px;
    height: 13px;
  }
  .overview-legend {
    gap: 10px;
    margin: 16px 0;
  }
  .overview-legend li {
    font-size: 10px;
  }
  .overview-calendar-link {
    padding: 13px;
  }
  .overview-preview .overview-section-title {
    margin-bottom: 17px;
  }
  .overview-calendar-note {
    margin-top: 14px;
  }
  .overview-empty {
    padding: 40px 18px;
  }
  .overview-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    background: var(--ds-paper);
    border-top: 1px solid var(--ds-line);
    padding: 11px 9px calc(15px + env(safe-area-inset-bottom, 0px));
    box-shadow: var(--ds-dashboard-shadow);
    font: 530 10px/1.4 var(--ds-font);
    color: var(--ds-dashboard-secondary);
  }
  .overview-mobile-nav > a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    min-height: 44px;
    text-align: center;
    color: var(--ds-dashboard-secondary);
    cursor: pointer;
    list-style: none;
  }
  .overview-mobile-nav [aria-current='page'] {
    color: var(--ds-action);
    font-weight: 750;
  }
  .overview-mobile-nav .ds-icon {
    width: 20px;
    height: 20px;
  }
  body.hms-mode {
    padding-bottom: 90px;
  }
}
/* The reference uses normal text metrics; prevent legacy HMS 1.5 leading leaking in. */
.overview-shell {
  font: 16px/normal var(--ds-font);
}
.overview-shell .overview-primary {
  line-height: normal;
}
.overview-section-title h2,
.overview-kpi .ds-card-head h3 {
  line-height: normal;
}
.overview-shell .hms-dialog {
  font: 16px/1.5 var(--ds-font);
}
/* Layout variant for comparison (29.10.2026): the overview sections become one framed surface split by hairline dividers (Moodboards/HMS, W-power) instead of separate cards. Enabled by html.hms-layout-lines (?layout=lines). */
.hms-layout-lines .overview-grid {
  gap: 1px;
  align-items: stretch;
  background: var(--ds-divider);
  border: 1px solid var(--ds-divider);
  border-radius: var(--ds-radius-panel);
  overflow: hidden;
}
.hms-layout-lines .overview-section {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--ds-paper);
  align-self: stretch;
}
.hms-layout-lines .overview-kpi {
  gap: 1px;
  background: var(--ds-divider);
}
.hms-layout-lines .overview-kpi .ds-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--ds-paper);
}
@media (max-width: 760px) {
  .hms-layout-lines .overview-grid {
    gap: 1px;
    border-inline: 0;
    border-radius: 0;
  }
}
/* Layout variant for comparison (29.10.2026): hairlines divide only the page regions (heading band, KPI band, the two columns) as in Moodboards/HMS W-power; sections stay cards with more air around them. Enabled by html.hms-layout-frame (?layout=frame). */
.hms-layout-frame .overview-heading {
  margin-bottom: 0;
  padding-bottom: var(--ds-space-8);
  border-bottom: 1px solid var(--ds-divider);
}
.hms-layout-frame .overview-grid {
  position: relative;
  gap: 0;
  align-items: start;
}
.hms-layout-frame .overview-kpi {
  padding: var(--ds-space-8) 0;
  border-bottom: 1px solid var(--ds-divider);
  gap: var(--ds-space-5);
}
.hms-layout-frame .overview-attention {
  margin: var(--ds-space-8) var(--ds-space-8) var(--ds-space-6) 0;
}
.hms-layout-frame .overview-events {
  margin: 0 var(--ds-space-8) 0 0;
}
.hms-layout-frame .overview-preview {
  margin: var(--ds-space-8) 0 0 var(--ds-space-8);
}
.hms-layout-frame .overview-grid::after {
  content: '';
  grid-area: 2/2/4/3;
  justify-self: start;
  align-self: stretch;
  width: 0;
  border-left: 1px solid var(--ds-divider);
  pointer-events: none;
}
@media (max-width: 760px) {
  .hms-layout-frame .overview-heading {
    padding-bottom: var(--ds-space-6);
  }
  .hms-layout-frame .overview-grid {
    gap: var(--ds-space-5);
  }
  .hms-layout-frame .overview-kpi {
    padding: 0;
    border-bottom: 0;
  }
  .hms-layout-frame .overview-attention {
    margin: var(--ds-space-6) 0 0;
  }
  .hms-layout-frame .overview-events,
  .hms-layout-frame .overview-preview {
    margin: 0;
  }
  .hms-layout-frame .overview-grid::after {
    display: none;
  }
}

/* Navigation v1 (31.10.2026): one header row on the content grid — logo, four sections, actions.
   The sections, «Меню» button and phone tab bar come from design-system/components/app-shell.js. */
.overview-appbar {
  position: sticky;
  top: 0;
  z-index: 15;
}
.overview-topline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--ds-space-10);
  height: 72px;
  padding: 0;
}
.overview-logo {
  display: flex;
  align-items: center;
  color: var(--ds-ink);
}
.overview-logo img {
  display: block;
  width: auto;
  height: 30px;
}
.overview-toolbar {
  gap: var(--ds-space-3);
}
.overview-header-new {
  margin-right: var(--ds-space-2);
  text-decoration: none;
}
.overview-header-new[hidden] {
  display: none;
}
/* Desktop: «Нове бронювання» lives in the header, not in each heading. */
@media (min-width: 761px) {
  .overview-heading #hms-new {
    display: none;
  }
}
@media (max-width: 1080px) and (min-width: 761px) {
  .overview-topline {
    gap: var(--ds-space-6);
  }
  .overview-header-new {
    width: var(--ds-control-md);
    padding: 0;
  }
  .overview-header-new span,
  .overview-menu .ds-menu-pill-label {
    display: none;
  }
  .overview-menu .ds-menu-pill {
    gap: var(--ds-space-2);
    padding-left: var(--ds-space-3);
  }
}
.overview-mobile-nav[data-app-tabbar] {
  display: none;
}
@media (max-width: 760px) {
  .overview-topline {
    grid-template-columns: auto 1fr;
    height: 64px;
    padding: 0 var(--ds-space-5);
  }
  .overview-logo img {
    height: 26px;
  }
  .overview-toolbar {
    justify-self: end;
  }
  .overview-nav,
  .overview-header-new,
  .overview-menu {
    display: none;
  }
  .overview-mobile-nav[data-app-tabbar] {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: block;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: var(--ds-dashboard-shadow);
  }
}

/* Pro trial strip on Огляд: calm while the trial runs, amber in its last three days. */
.overview-trial {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  margin: 0 0 var(--ds-space-4);
  padding: var(--ds-space-3) var(--ds-space-4);
  border-radius: var(--ds-radius-control);
  background: var(--ds-soft);
  font-size: var(--ds-text-sm);
}
.overview-trial span {
  flex: 1;
}
.overview-trial a {
  font-weight: var(--ds-weight-semibold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.overview-trial[data-urgent='true'] {
  border: 1px solid var(--ds-status-held-line);
  background: var(--ds-status-held-bg);
  color: var(--ds-status-held-ink);
}
.overview-trial .ds-icon {
  width: 18px;
  height: 18px;
}
[data-first-steps] > .ds-first-steps {
  margin-bottom: var(--ds-space-4);
}

/* After Ґазда Pro ends (decisions 01.11.2026): grace / lock banner on Огляд and «Мої хатинки»,
   the notice on a cabin card. Alert, badges and buttons come from the design system. */
.unit-lock-banner {
  margin: 0 0 var(--ds-space-4);
}
.unit-lock-card {
  display: grid;
  gap: var(--ds-space-4);
}
.unit-lock-hidden,
.unit-lock-future {
  display: grid;
  gap: var(--ds-space-2);
  padding: var(--ds-space-4) var(--ds-space-5);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-panel);
  background: var(--ds-paper);
}
.unit-lock-hidden {
  background: var(--ds-soft);
  color: var(--ds-muted);
}
.unit-lock-hidden h2,
.unit-lock-future h2 {
  margin: 0;
  font-size: var(--ds-text-md);
}
.unit-lock-hidden p,
.unit-lock-future p {
  margin: 0;
  font-size: var(--ds-text-sm);
}
.unit-lock-rows {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.unit-lock-rows li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-2) var(--ds-space-3);
  padding: var(--ds-space-3) 0;
  border-top: 1px solid var(--ds-line);
  font-size: var(--ds-text-sm);
}
.unit-lock-rows li > :first-child {
  flex: 1 1 auto;
}
.unit-lock-meta {
  color: var(--ds-muted);
}
