/* ==========================================================================
   AILO Dashboard D05 — 공간공정 (인테리어 시공 관리)
   원형: 칸반 보드 중심 + 코코아 좌측 사이드바(접기) / 타이포: Gowun Batang 제목 + Pretendard 본문
   컬러: 웜 베이지 바탕 + 테라코타 포인트, 차트 4색(테라코타·블루·오커·올리브, 검증 통과)
   ========================================================================== */
:root {
  --ailo-bg: #f3ece2;
  --ailo-fg: #2b211b;
  --ailo-muted: #6f6054;
  --ailo-line: rgba(74, 52, 36, .14);
  --ailo-accent: #b5532f;
  --ailo-header-h: 72px;

  --d05-card: #fffbf5;
  --d05-card-2: #f8f1e7;
  --d05-ink-2: #4a3b31;
  --d05-side: #2c211b;
  --d05-side-2: #3a2c24;
  --d05-side-fg: #e9dccd;
  --d05-side-muted: #b3a291;
  --d05-accent-soft: #f4dccf;
  --d05-accent-deep: #8f3e20;
  --d05-serif: "Gowun Batang", "Nanum Myeongjo", serif;
  --d05-radius: 14px;
  --d05-side-w: 256px;

  /* 차트 범주색 (validate_palette.js light/#fffbf5 통과, 오커는 대비 WARN → 표 보기 제공) */
  --d05-s1: #b5532f;
  --d05-s2: #2f6fb0;
  --d05-s3: #c98a12;
  --d05-s4: #4f7d3a;
  --d05-plan: #c9bcae;   /* 비교(계획) 비강조 회색 */
  --d05-grid: #ece2d5;

  /* 상태 */
  --d05-good: #2f7a32;
  --d05-good-bg: #e3efdc;
  --d05-warn: #8a5a00;
  --d05-warn-bg: #f8ead0;
  --d05-bad: #b02f25;
  --d05-bad-bg: #f7dcd6;
  --d05-info: #2f5f93;
  --d05-info-bg: #dde8f3;
}

body { background: var(--ailo-bg); font-size: 15px; }

/* ===== 레이아웃 ===== */
.app { display: flex; min-height: 100vh; }
.app__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ===== 사이드바 ===== */
.sb {
  width: var(--d05-side-w); flex: none; background: var(--d05-side); color: var(--d05-side-fg);
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  transition: width .3s var(--ailo-ease);
  z-index: 60;
}
.sb__brand { display: flex; align-items: center; gap: 12px; padding: 22px 22px 18px; min-height: 76px; }
.sb__mark {
  width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--ailo-accent);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.sb__mark::before, .sb__mark::after { content: ""; position: absolute; background: #fbe9dd; }
.sb__mark::before { width: 18px; height: 3px; left: 10px; top: 12px; }
.sb__mark::after { width: 3px; height: 16px; left: 10px; top: 12px; box-shadow: 8px 6px 0 #fbe9dd, 15px 0 0 #fbe9dd; }
.sb__name { font-family: var(--d05-serif); font-weight: 700; font-size: 20px; letter-spacing: -.02em; white-space: nowrap; }
.sb__name small { display: block; font-family: var(--ailo-font); font-size: 11px; color: var(--d05-side-muted); font-weight: 500; letter-spacing: .08em; }
.sb__close { display: none; margin-left: auto; width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--d05-side-2); color: var(--d05-side-fg); }
.sb__nav { padding: 6px 14px; flex: 1; overflow-y: auto; }
.sb__label { font-size: 11px; letter-spacing: .14em; color: var(--d05-side-muted); padding: 16px 10px 8px; white-space: nowrap; }
.sb__link {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px;
  color: var(--d05-side-fg); font-weight: 500; white-space: nowrap; position: relative;
  transition: background .2s, color .2s;
}
.sb__link i { width: 20px; text-align: center; color: var(--d05-side-muted); transition: color .2s; }
.sb__link:hover { background: var(--d05-side-2); color: #fff; }
.sb__link:hover i { color: #f2b49a; }
.sb__link.is-active { background: var(--ailo-accent); color: #fff; }
.sb__link.is-active i { color: #fff; }
.sb__count { margin-left: auto; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.12); }
.sb__foot { padding: 16px; }
.sb__tip {
  border-radius: 12px; padding: 14px; background: var(--d05-side-2); font-size: 13px; color: var(--d05-side-fg);
  border: 1px dashed rgba(233, 220, 205, .25);
}
.sb__tip b { display: block; font-size: 22px; font-weight: 700; color: #fff; margin: 2px 0; }
.sb__tip span { color: var(--d05-side-muted); font-size: 12px; }

/* 접힌 사이드바 (데스크톱) */
@media (min-width: 992px) {
  html.sb-mini .sb { width: 80px; }
  html.sb-mini .sb__name, html.sb-mini .sb__label, html.sb-mini .sb__link span,
  html.sb-mini .sb__count, html.sb-mini .sb__tip { display: none; }
  html.sb-mini .sb__brand { padding-inline: 21px; }
  html.sb-mini .sb__link { justify-content: center; padding-inline: 0; }
  html.sb-mini .sb__label { height: 12px; padding: 0; }
}

/* ===== 상단바 ===== */
.top {
  position: sticky; top: 0; z-index: 40; min-height: var(--ailo-header-h);
  display: flex; align-items: center; gap: 14px; padding: 12px clamp(16px, 3vw, 32px);
  background: rgba(243, 236, 226, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ailo-line);
}
.icon-btn {
  width: 42px; height: 42px; flex: none; border-radius: 12px; border: 1px solid var(--ailo-line);
  background: var(--d05-card); display: inline-grid; place-items: center; color: var(--d05-ink-2);
  position: relative; transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--ailo-accent); color: var(--ailo-accent); }
.top__burger { display: none; }
.top__crumb { min-width: 0; }
.top__crumb ol { display: flex; gap: 6px; font-size: 12px; color: var(--ailo-muted); }
.top__crumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.top__crumb h1 { font-family: var(--d05-serif); font-size: clamp(19px, 2vw, 24px); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.top__search { margin-left: auto; position: relative; width: min(320px, 30vw); }
.top__search i { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--ailo-muted); font-size: 14px; }
.top__search input {
  width: 100%; height: 42px; border-radius: 12px; border: 1px solid var(--ailo-line); background: var(--d05-card);
  padding: 0 14px 0 40px; font-size: 14px; color: var(--ailo-fg);
}
.top__search input:focus { outline: 2px solid var(--ailo-accent); outline-offset: 1px; border-color: transparent; }
.badge-dot {
  position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; border-radius: 99px; padding: 0 5px;
  background: var(--ailo-accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--ailo-bg);
}
.dd { position: relative; }
.dd__panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: 340px; max-width: calc(100vw - 32px);
  background: var(--d05-card); border: 1px solid var(--ailo-line); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(60, 40, 25, .16); padding: 8px; display: none; z-index: 80;
}
.dd__panel.is-open { display: block; }
.dd__head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 10px; font-weight: 700; }
.dd__head a { font-size: 12px; font-weight: 500; color: var(--ailo-accent); }
.dd__item { display: flex; gap: 12px; padding: 10px; border-radius: 10px; font-size: 13px; line-height: 1.45; }
.dd__item:hover { background: var(--d05-card-2); }
.dd__item i { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; font-size: 13px; }
.dd__item time { display: block; color: var(--ailo-muted); font-size: 12px; }
.prof { display: flex; align-items: center; gap: 10px; padding-left: 4px; }
.avatar {
  width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; color: #fff; background: var(--d05-accent-deep);
}
.prof__txt { line-height: 1.25; white-space: nowrap; }
.prof__txt b { display: block; font-size: 14px; }
.prof__txt span { font-size: 12px; color: var(--ailo-muted); }

/* ===== 본문 ===== */
.content { padding: clamp(16px, 3vw, 32px); display: grid; gap: clamp(16px, 2vw, 24px); }

/* 필터 줄 */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--d05-card); border: 1px solid var(--ailo-line); }
.seg button {
  border: 0; background: transparent; padding: 8px 16px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ailo-muted);
  transition: background .2s, color .2s;
}
.seg button:hover { color: var(--ailo-fg); }
.seg button[aria-pressed="true"] { background: var(--ailo-fg); color: var(--d05-card); }
.filters__date { font-size: 13px; color: var(--ailo-muted); display: inline-flex; align-items: center; gap: 6px; }
.btn-t {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px;
  background: var(--ailo-accent); color: #fff; border: 0; font-weight: 600; font-size: 14px; transition: background .2s;
}
.btn-t:hover { background: var(--d05-accent-deep); color: #fff; }

/* 카드 공통 */
.card {
  background: var(--d05-card); border: 1px solid var(--ailo-line); border-radius: var(--d05-radius);
  padding: clamp(16px, 2vw, 22px); min-width: 0;
}
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card__head h2 { font-family: var(--d05-serif); font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.card__head p { font-size: 13px; color: var(--ailo-muted); margin-top: 2px; }
.card__link { font-size: 13px; color: var(--ailo-accent); font-weight: 600; white-space: nowrap; }
.card__link:hover { color: var(--d05-accent-deep); text-decoration: underline; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 18px); }
.kpi { position: relative; overflow: hidden; }
.kpi__label { font-size: 13px; color: var(--ailo-muted); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.kpi__label i { color: var(--ailo-accent); }
.kpi__val { font-size: clamp(24px, 2.2vw, 30px); font-weight: 700; letter-spacing: -.03em; margin: 6px 0 4px; line-height: 1.15; }
.kpi__val small { font-size: 14px; font-weight: 600; color: var(--ailo-muted); margin-left: 2px; }
.kpi__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.delta { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.delta.is-good { color: var(--d05-good); }
.delta.is-bad { color: var(--d05-bad); }
.delta span { color: var(--ailo-muted); font-weight: 500; }
.spark { width: 84px; height: 30px; flex: none; }

/* ===== 칸반 ===== */
.kanban-card { padding-bottom: 12px; }
.kanban {
  display: grid; grid-template-columns: repeat(5, minmax(196px, 1fr)); gap: 14px;
  overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity;
}
.kcol {
  background: var(--d05-card-2); border-radius: 12px; padding: 10px; min-height: 200px;
  border: 1px solid transparent; transition: border-color .2s, background .2s; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 10px;
}
.kcol.is-over { border-color: var(--ailo-accent); background: var(--d05-accent-soft); }
.kcol__head { display: flex; align-items: center; gap: 8px; padding: 4px 4px 2px; }
.kcol__no { font-family: var(--d05-serif); font-size: 13px; font-weight: 700; color: var(--ailo-accent); }
.kcol__head h3 { font-size: 14px; font-weight: 700; }
.kcol__n { margin-left: auto; font-size: 12px; font-weight: 700; background: var(--d05-card); border: 1px solid var(--ailo-line); border-radius: 99px; padding: 1px 9px; }
.kitem {
  background: var(--d05-card); border: 1px solid var(--ailo-line); border-radius: 11px; padding: 12px;
  cursor: grab; transition: box-shadow .2s, translate .2s; position: relative;
}
.kitem:hover { box-shadow: 0 8px 18px rgba(60, 40, 25, .1); translate: 0 -2px; }
.kitem:focus-visible { outline: 2px solid var(--ailo-accent); outline-offset: 2px; }
.kitem.is-drag { opacity: .45; }
.kitem__type { font-size: 11px; font-weight: 600; color: var(--d05-accent-deep); background: var(--d05-accent-soft); border-radius: 6px; padding: 2px 7px; display: inline-block; }
.kitem h4 { font-size: 14px; font-weight: 700; margin: 8px 0 2px; line-height: 1.4; }
.kitem__cust { font-size: 12px; color: var(--ailo-muted); }
.kitem__bar { height: 6px; border-radius: 99px; background: var(--d05-grid); margin: 10px 0 6px; overflow: hidden; }
.kitem__bar i { display: block; height: 100%; border-radius: 99px; background: var(--ailo-accent); }
.kitem__meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ailo-muted); }
.kitem__meta b { color: var(--ailo-fg); font-weight: 700; }
.kitem__pm { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }
.kitem__flag { font-size: 11px; font-weight: 600; margin-top: 8px; display: inline-flex; gap: 5px; align-items: center; padding: 2px 8px; border-radius: 6px; }
.kitem__flag.is-bad { color: var(--d05-bad); background: var(--d05-bad-bg); }
.kitem__flag.is-warn { color: var(--d05-warn); background: var(--d05-warn-bg); }
.kitem__move { position: absolute; top: 8px; right: 8px; display: flex; gap: 2px; opacity: 0; transition: opacity .2s; }
.kitem:hover .kitem__move, .kitem:focus-within .kitem__move { opacity: 1; }
.kitem__move button { width: 24px; height: 24px; border: 1px solid var(--ailo-line); background: var(--d05-card); border-radius: 6px; font-size: 10px; color: var(--ailo-muted); }
.kitem__move button:hover { color: var(--ailo-accent); border-color: var(--ailo-accent); }
.kanban__hint { font-size: 12px; color: var(--ailo-muted); display: flex; align-items: center; gap: 6px; }

/* ===== 그리드 ===== */
.row-2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 24px); }
.row-3 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 24px); }
.chart-box { position: relative; height: 290px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--d05-ink-2); margin-bottom: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.tv { margin-top: 10px; font-size: 13px; }
.tv summary { cursor: pointer; color: var(--ailo-muted); font-weight: 600; width: max-content; }
.tv summary:hover { color: var(--ailo-accent); }
.tv__wrap { overflow-x: auto; margin-top: 8px; }
.tv table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 360px; }
.tv th, .tv td { padding: 6px 8px; border-bottom: 1px solid var(--ailo-line); text-align: right; white-space: nowrap; }
.tv th:first-child, .tv td:first-child { text-align: left; }

/* 주간 일정 */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.week__day { border-radius: 10px; background: var(--d05-card-2); padding: 8px 6px; min-height: 150px; min-width: 0; }
.week__day.is-today { background: var(--d05-accent-soft); outline: 1.5px solid var(--ailo-accent); }
.week__d { font-size: 12px; color: var(--ailo-muted); text-align: center; }
.week__d b { display: block; font-size: 17px; color: var(--ailo-fg); }
.week__ev { margin-top: 6px; border-radius: 7px; padding: 5px 6px; font-size: 11px; line-height: 1.35; background: var(--d05-card); border-left: 3px solid var(--ev, var(--ailo-accent)); }
.week__ev b { display: block; font-weight: 700; }

.crew { margin-top: 16px; border-top: 1px dashed var(--ailo-line); padding-top: 14px; }
.crew__head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; margin-bottom: 10px; }
.crew__head span { color: var(--ailo-muted); font-size: 13px; }
.crew__head span b { color: var(--ailo-fg); font-size: 15px; }
.crew__list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.crew__list li { background: var(--d05-card-2); border-radius: 10px; padding: 10px; font-size: 12px; color: var(--ailo-muted); display: flex; flex-direction: column; gap: 2px; }
.crew__list i { color: var(--ailo-accent); font-size: 13px; margin-bottom: 4px; }
.crew__list b { color: var(--ailo-fg); font-size: 16px; }
@media (max-width: 575.98px) { .crew__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ===== 테이블 ===== */
.tbl-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tbl-search { position: relative; }
.tbl-search i { position: absolute; left: 12px; top: 50%; translate: 0 -50%; font-size: 13px; color: var(--ailo-muted); }
.tbl-search input { height: 38px; border-radius: 10px; border: 1px solid var(--ailo-line); background: var(--d05-card-2); padding: 0 12px 0 34px; font-size: 13px; width: 220px; max-width: 100%; color: var(--ailo-fg); }
.tbl-search input:focus { outline: 2px solid var(--ailo-accent); outline-offset: 1px; }
.tbl-wrap { overflow-x: auto; margin: 0 -4px; }
.tbl { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 14px; }
.tbl th { font-size: 12px; font-weight: 600; color: var(--ailo-muted); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ailo-line); white-space: nowrap; background: var(--d05-card-2); }
.tbl th:first-child { border-radius: 10px 0 0 10px; }
.tbl th:last-child { border-radius: 0 10px 10px 0; }
.tbl th button { border: 0; background: none; padding: 0; font-weight: 600; color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.tbl th button:hover { color: var(--ailo-fg); }
.tbl th button i { font-size: 11px; opacity: .55; }
.tbl th[aria-sort="ascending"] button, .tbl th[aria-sort="descending"] button { color: var(--ailo-accent); }
.tbl th[aria-sort="ascending"] button i, .tbl th[aria-sort="descending"] button i { opacity: 1; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--ailo-line); white-space: nowrap; }
.tbl tbody tr:hover td { background: var(--d05-card-2); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .po { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--d05-ink-2); }
.tbl .sub { display: block; font-size: 12px; color: var(--ailo-muted); }
.tbl__empty { text-align: center; color: var(--ailo-muted); padding: 30px !important; }
.st { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; }
.st--req { color: var(--d05-warn); background: var(--d05-warn-bg); }
.st--done { color: var(--d05-info); background: var(--d05-info-bg); }
.st--ship { color: var(--d05-accent-deep); background: var(--d05-accent-soft); }
.st--in { color: var(--d05-good); background: var(--d05-good-bg); }
.st--late { color: var(--d05-bad); background: var(--d05-bad-bg); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--ailo-muted); flex-wrap: wrap; }
.pager__btns { display: flex; gap: 4px; }
.pager__btns button { min-width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--ailo-line); background: var(--d05-card); font-size: 13px; font-weight: 600; }
.pager__btns button:hover:not(:disabled) { border-color: var(--ailo-accent); color: var(--ailo-accent); }
.pager__btns button[aria-current="page"] { background: var(--ailo-fg); color: var(--d05-card); border-color: var(--ailo-fg); }
.pager__btns button:disabled { opacity: .4; cursor: default; }

/* 활동 로그 */
.log { display: grid; gap: 2px; position: relative; }
.log li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 10px 0; position: relative; }
.log li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 46px; bottom: -6px; width: 1px; background: var(--ailo-line); }
.log__ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; }
.log p { font-size: 13.5px; line-height: 1.5; }
.log p b { font-weight: 700; }
.log time { font-size: 12px; color: var(--ailo-muted); }
.ic-t { background: var(--d05-accent-soft); color: var(--d05-accent-deep); }
.ic-g { background: var(--d05-good-bg); color: var(--d05-good); }
.ic-b { background: var(--d05-info-bg); color: var(--d05-info); }
.ic-r { background: var(--d05-bad-bg); color: var(--d05-bad); }
.ic-y { background: var(--d05-warn-bg); color: var(--d05-warn); }

/* 푸터 */
.foot a:hover { color: var(--ailo-accent); }
.foot { padding: 18px clamp(16px, 3vw, 32px) 28px; font-size: 12px; color: var(--ailo-muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.sb-overlay { display: none; }

/* ===== 반응형 ===== */
@media (max-width: 1279.98px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prof__txt { display: none; }
}
@media (max-width: 991.98px) {
  .sb {
    position: fixed; left: 0; top: 0; bottom: 0; height: auto; width: min(290px, 86vw);
    translate: -100% 0; visibility: hidden; z-index: 130;
    transition: translate .3s var(--ailo-ease), visibility .3s;
  }
  html.sb-open .sb { translate: 0 0; visibility: visible; box-shadow: 16px 0 40px rgba(0,0,0,.25); transition: translate .3s var(--ailo-ease), visibility 0s; } /* 열 때 visibility 즉시 → 곧바로 포커스 가능 */
  .sb__close { display: inline-grid; place-items: center; }
  .sb-overlay {
    display: block; position: fixed; inset: 0; z-index: 120; background: rgba(30, 20, 14, .5);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  html.sb-open .sb-overlay { opacity: 1; visibility: visible; }
  html.sb-open body { overflow: hidden; }
  .top__burger { display: inline-grid; }
  .top__mini { display: none; }
  .row-2, .row-3 { grid-template-columns: minmax(0, 1fr); }
  .top__search { width: auto; flex: 1; max-width: 300px; }
}
@media (max-width: 767.98px) {
  .top { flex-wrap: wrap; }
  .top__search { order: 5; flex-basis: 100%; max-width: none; margin-left: 0; }
  .top__tools { margin-left: auto; }
  .week { grid-template-columns: repeat(7, minmax(84px, 1fr)); overflow-x: auto; padding-bottom: 6px; }
}
@media (max-width: 575.98px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:last-child { grid-column: 1 / -1; }
  .spark { width: 64px; }
  .kpi__foot { flex-wrap: wrap; }
  .filters .btn-t { margin-left: 0; width: 100%; justify-content: center; }
  .chart-box { height: 260px; }
  .top__crumb ol { display: none; }
  .tbl-search input { width: 100%; }
  .tbl-tools, .tbl-search { width: 100%; }
}
