:root {
  color-scheme: light;
  --bg: #f4f6fb;
  --bg-accent: #eef2fc;
  --panel: #ffffff;
  --panel-soft: #f8f9fd;
  --line: #dce2ee;
  --line-2: #e8ecf5;
  --ink: #101828;
  --muted: #667085;
  --primary: #5b3df5;
  --primary-2: #4332c6;
  --icon-primary: #4332c6;
  --icon-muted: #667085;
  --icon-accent: #248dff;
  --ok: #039855;
  --ok-bg: #ecfdf3;
  --warn: #b54708;
  --warn-bg: #fff8eb;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --table-head-bg: #eaf1ff;
  --table-head-ink: #314766;
  --table-row-alt: #f8fbff;
  --table-row-hover: #eaf2ff;
  --table-border: #d7e2f1;
  --action-edit-bg: #e6eef9;
  --action-edit-ink: #27466c;
  --action-set-bg: #e8f6ff;
  --action-set-ink: #0d5f8e;
  --action-restore-bg: #e7f8ef;
  --action-restore-ink: #186a43;
  --action-toggle-bg: #f1ecff;
  --action-toggle-ink: #4f2db3;
  --radius: 16px;
  --shadow: 0 18px 40px rgba(16, 24, 40, 0.08);
}

body.theme-dark {
  --bg: #0f172a;
  --bg-accent: #111b32;
  --panel: #162238;
  --panel-soft: #1a2a45;
  --line: #2a3b59;
  --line-2: #324763;
  --ink: #e5ebff;
  --muted: #9aa9c3;
  --table-head-bg: #1d2e4b;
  --table-head-ink: #bcd0ef;
  --table-row-alt: #1b2a43;
  --table-row-hover: #263a5a;
  --table-border: #334a6b;
  --action-edit-bg: #2a3d5f;
  --action-edit-ink: #c5d6ef;
  --action-set-bg: #1b425a;
  --action-set-ink: #bfe8ff;
  --action-restore-bg: #1b4b3a;
  --action-restore-ink: #beefd8;
  --action-toggle-bg: #3a2f63;
  --action-toggle-ink: #ddd2ff;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

body.theme-slate {
  --bg: #e8eef7;
  --bg-accent: #dbe6f3;
  --panel: #f8fbff;
  --panel-soft: #f0f5fb;
  --line: #c9d6e8;
  --line-2: #d7e2ef;
  --ink: #132235;
  --muted: #5f7289;
  --table-head-bg: #e6eefb;
  --table-head-ink: #324864;
  --table-row-alt: #f5f9ff;
  --table-row-hover: #eaf1ff;
  --table-border: #d4dfef;
  --action-edit-bg: #e3ebf8;
  --action-edit-ink: #2f4b70;
  --action-set-bg: #e5f2ff;
  --action-set-ink: #215f8d;
  --action-restore-bg: #e6f6ee;
  --action-restore-ink: #216c45;
  --action-toggle-bg: #ede8ff;
  --action-toggle-ink: #4f2ea7;
}

body[data-dashboard-style='classic'] .card,
body[data-dashboard-style='classic'] .kpi {
  border-radius: 10px;
  box-shadow: 0 5px 14px rgba(16, 24, 40, 0.07);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 6% -2%, rgba(91, 61, 245, 0.08), transparent 30%),
    radial-gradient(circle at 102% 2%, rgba(36, 141, 255, 0.1), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-accent) 100%);
}

body.modal-open {
  overflow: hidden;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(460px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 24px;
  display: grid;
  gap: 16px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  font-weight: 800;
  color: #7a8599;
}

.auth-card h1 {
  margin-top: 4px;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
}

.auth-card p {
  color: var(--muted);
  margin-top: 6px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
}

body.sidebar-collapsed .app-shell {
  grid-template-columns: 84px minmax(0, 1fr);
}

body.sidebar-collapsed .sidebar-brand h2,
body.sidebar-collapsed .sidebar-brand p,
body.sidebar-collapsed .group-label,
body.sidebar-collapsed .nav-btn span,
body.sidebar-collapsed .sidebar-footer p,
body.sidebar-collapsed .sidebar-footer .btn {
  display: none;
}

body.sidebar-collapsed .sidebar {
  padding: 18px 10px;
}

body.sidebar-collapsed .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

body.sidebar-collapsed .sidebar-brand {
  justify-content: center;
}

body.sidebar-collapsed .nav-btn {
  justify-content: center;
  padding: 10px;
}

.sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-right: 1px solid var(--line);
  padding: 22px 14px;
  display: grid;
  gap: 16px;
  grid-template-rows: auto auto auto 1fr;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  background: linear-gradient(145deg, #101828, #364152);
}

.sidebar-brand h2 {
  font-size: 15px;
}

.sidebar-brand p {
  color: var(--muted);
  font-size: 12px;
}

.sidebar-group {
  display: grid;
  gap: 8px;
}

.group-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #7a8599;
  padding-inline: 8px;
}

.nav {
  display: grid;
  gap: 4px;
}

.nav-btn {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  color: #3b4455;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  padding: 10px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.nav-btn i {
  width: 16px;
  color: var(--icon-muted);
}

.nav-btn:hover {
  border-color: #d0d8e7;
  background: #f6f8fd;
}

.nav-btn.active {
  border-color: #cfd7ff;
  color: #3f2de1;
  background: linear-gradient(145deg, #f3f0ff, #eef4ff);
}

.nav-btn.active i {
  color: var(--icon-primary);
}

.sidebar-footer {
  align-self: end;
  display: grid;
  gap: 10px;
}

.user-chip {
  background: #f7f9ff;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: #4a5569;
  font-size: 12px;
  font-weight: 700;
}

.workspace {
  padding: 18px 20px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.workspace-head {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.head-left,
.head-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: #344054;
  cursor: pointer;
}

.search-wrap {
  min-width: min(440px, 52vw);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: #98a2b3;
}

.search-wrap input {
  border: none;
  padding: 9px 0;
  width: 100%;
  background: transparent;
}

.search-wrap input:focus {
  outline: none;
}

.workspace-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-end;
}

.workspace-title h1 {
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
}

.workspace-title p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.views {
  display: grid;
}

.view {
  display: none;
  gap: 14px;
  animation: panelIn 180ms ease;
}

.view.active {
  display: grid;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.05);
  padding: 14px;
}

.kpi .label {
  font-size: 11px;
  color: #7a8599;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 800;
}

.kpi .value {
  margin-top: 6px;
  font-size: 27px;
  font-weight: 800;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.05);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.card-head h3,
.card h3 {
  font-size: 16px;
}

.card-subtitle {
  margin-top: 8px;
}

.grid {
  display: grid;
  gap: 14px;
}

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

.catalog-grid {
  align-items: start;
}

.entity-card {
  padding: 0;
  gap: 0;
  overflow: hidden;
  position: relative;
}

.entity-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--icon-accent));
}

.entity-head {
  padding: 16px 18px 10px;
  border-bottom: 1px solid var(--line-2);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.entity-head h3 {
  font-size: 20px;
  letter-spacing: -0.2px;
}

.catalog-form {
  margin: 12px 18px 8px;
  padding: 12px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--panel-soft);
}

.catalog-form label {
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.catalog-form .inline-check {
  margin-top: 8px;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
}

.catalog-form input,
.catalog-form select {
  border-color: var(--line);
  background: var(--panel);
}

.catalog-actions {
  grid-column: 1 / -1;
  padding-top: 2px;
}

.table-headline {
  padding: 8px 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.catalog-table-wrap {
  margin: 10px 18px 18px;
}

.catalog-table td,
.catalog-table th {
  padding: 11px 10px;
}

.catalog-table tbody tr {
  transition: background-color 0.16s ease;
}

.catalog-table tbody tr:hover {
  background: var(--table-row-hover);
}

.inline-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.range-custom {
  min-width: 160px;
  display: grid;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.range-custom input {
  min-height: 36px;
}

.range-label {
  margin: 8px 0 0;
}

.input-inline {
  min-width: 230px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: #98a2b3;
  padding: 0 10px;
}

.input-inline input {
  border: none;
  background: transparent;
  width: 100%;
  padding: 8px 0;
}

.input-inline input:focus {
  outline: none;
}

.form-grid {
  display: grid;
  gap: 10px;
}

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

.settings-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.movement-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: #4f5b6f;
  font-weight: 700;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  padding: 8px 10px;
}

input:focus,
select:focus {
  outline: 2px solid rgba(91, 61, 245, 0.2);
  border-color: rgba(91, 61, 245, 0.45);
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(140deg, var(--primary), var(--primary-2));
}

.btn.primary:hover {
  filter: brightness(1.03);
}

.btn.ghost {
  color: var(--ink);
  border-color: #d7deee;
  background: var(--panel);
}

.btn.ghost:hover {
  background: #f7f9ff;
}

.btn.danger {
  color: #fff;
  background: linear-gradient(140deg, #d92d20, #b42318);
}

.table-btn {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  transition: transform 0.14s ease, filter 0.14s ease, background 0.16s ease;
}

.btn.ghost.table-btn {
  background: var(--action-edit-bg);
  border-color: transparent;
  color: var(--action-edit-ink);
}

.btn.ghost.table-btn:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.btn.ghost.table-btn.action-set {
  background: var(--action-set-bg);
  color: var(--action-set-ink);
}

.btn.ghost.table-btn.action-restore {
  background: var(--action-restore-bg);
  color: var(--action-restore-ink);
}

.btn.ghost.table-btn.action-toggle {
  background: var(--action-toggle-bg);
  color: var(--action-toggle-ink);
}

.btn.danger.table-btn.action-delete {
  border-color: transparent;
  box-shadow: 0 6px 14px rgba(180, 35, 24, 0.24);
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #d5deed;
  background: #f8faff;
  color: #475467;
  font-size: 12px;
  font-weight: 700;
}

.badge.good {
  color: var(--ok);
  border-color: #b7ebcc;
  background: var(--ok-bg);
}

.badge.bad {
  color: var(--danger);
  border-color: #f5b4b1;
  background: var(--danger-bg);
}

.badge.warn {
  color: var(--warn);
  border-color: #fbd8a3;
  background: var(--warn-bg);
}

.table-wrap {
  border: 1px solid var(--table-border);
  border-radius: 12px;
  overflow: auto;
  background: var(--panel);
}

.table-wrap.tall {
  max-height: 450px;
}

.table-wrap.compact {
  max-height: 320px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 9px;
  border-bottom: 1px solid var(--table-border);
  text-align: left;
  vertical-align: top;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--table-head-bg);
  color: var(--table-head-ink);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

thead th[data-sort] {
  cursor: pointer;
}

tbody tr:nth-child(even) {
  background: var(--table-row-alt);
}

tbody tr:hover {
  background: var(--table-row-hover);
}

.product-cell {
  display: flex;
  gap: 10px;
  align-items: center;
}

.avatar-dot {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(145deg, #eef1ff, #f5f7ff);
  border: 1px solid #d9def0;
  color: #4f5b6f;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 12px;
  padding: 3px 9px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: currentColor;
}

.status-pill.in {
  color: var(--ok);
  background: var(--ok-bg);
  border-color: #abefc6;
}

.status-pill.low {
  color: var(--warn);
  background: #fffaeb;
  border-color: #fedf89;
}

.status-pill.out {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: #fecdca;
}

.type-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #d6ddf0;
  background: #f5f7ff;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: #667085;
  font-size: 12px;
}

.pager .controls {
  display: inline-flex;
  gap: 6px;
}

.pager button {
  border: 1px solid #d6dded;
  border-radius: 8px;
  background: var(--panel);
  color: #344054;
  padding: 4px 9px;
  cursor: pointer;
}

.plain-list {
  margin: 0;
  padding-inline-start: 18px;
  color: #475467;
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.settings-preview {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--panel-soft);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.preview-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.preview-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid #cfd6e8;
  background: #fff;
}

.hint {
  color: var(--muted);
  font-size: 12px;
}

.low {
  color: var(--warn);
  font-weight: 800;
}

.bars {
  display: grid;
  gap: 10px;
}

.bar {
  display: grid;
  gap: 5px;
}

.bar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #475467;
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  background: #edf1fb;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #5b3df5, #4ca4ff);
}

.health-track {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
  height: 14px;
  display: flex;
}

.health-segment {
  height: 100%;
}

.health-segment.in {
  background: #12b76a;
}

.health-segment.low {
  background: #f79009;
}

.health-segment.out {
  background: #f04438;
}

.health-legend {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.health-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}

.health-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.health-chip.in {
  color: #12b76a;
}

.health-chip.low {
  color: #f79009;
}

.health-chip.out {
  color: #f04438;
}

.trend-bars {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 170px;
}

.trend-col {
  display: grid;
  gap: 4px;
  justify-items: center;
}

.trend-stack {
  width: 100%;
  min-height: 30px;
  display: grid;
  gap: 2px;
  align-items: end;
}

.trend-in,
.trend-out {
  width: 100%;
  border-radius: 6px;
}

.trend-in {
  background: linear-gradient(180deg, #32d583, #12b76a);
}

.trend-out {
  background: linear-gradient(180deg, #fd853a, #f79009);
}

.trend-day {
  font-size: 10px;
  color: #667085;
}

details meta-details,
.meta-details {
  max-width: 260px;
}

.meta-details summary {
  cursor: pointer;
  color: #475467;
  font-size: 12px;
  font-weight: 700;
}

.meta-details pre {
  margin: 6px 0 0;
  border-radius: 8px;
  border: 1px solid #dfe5f2;
  background: #f8faff;
  padding: 8px;
  font-size: 11px;
  white-space: pre-wrap;
  max-height: 170px;
  overflow: auto;
}

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  padding: 16px;
}

.app-modal-card {
  width: min(460px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 28px 60px rgba(2, 6, 23, 0.35);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.app-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.app-modal-head h3 {
  font-size: 18px;
}

.app-modal-close {
  width: 32px;
  height: 32px;
}

.app-modal-input-wrap {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.app-modal-error {
  margin: 0;
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
}

.app-modal-actions {
  justify-content: flex-end;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #111827;
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.24);
  z-index: 1000;
  font-weight: 700;
}

@media (max-width: 1400px) {
  .overview-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .search-wrap {
    min-width: 260px;
  }
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    min-height: auto;
    grid-template-rows: auto;
  }

  body.sidebar-collapsed .app-shell {
    grid-template-columns: 1fr;
  }

  body.sidebar-collapsed .sidebar-brand h2,
  body.sidebar-collapsed .sidebar-brand p,
  body.sidebar-collapsed .group-label,
  body.sidebar-collapsed .nav-btn span,
  body.sidebar-collapsed .sidebar-footer p,
  body.sidebar-collapsed .sidebar-footer .btn {
    display: initial;
  }

  .grid.two,
  .form-grid.compact,
  .overview-top,
  .movement-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .workspace-head {
    flex-direction: column;
    align-items: stretch;
  }

  .head-left,
  .head-right {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .search-wrap {
    width: 100%;
  }

  .trend-bars {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}
