:root {
  color-scheme: light;
  --ink: #17213a;
  --muted: #788198;
  --line: #e8ebf2;
  --paper: #ffffff;
  --canvas: #f7f8fb;
  --navy: #17213a;
  --blue: #4a68d8;
  --blue-soft: #edf1ff;
  --green: #238363;
  --green-soft: #eaf6f0;
  --amber: #a76b13;
  --amber-soft: #fff4df;
  --violet: #7653a7;
  --violet-soft: #f2ecfa;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  background: var(--canvas);
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 360px;
  min-height: 100vh;
}

html {
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #9aabf2;
  outline-offset: 2px;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 3;
  display: flex;
  width: 248px;
  flex-direction: column;
  padding: 27px 16px 18px;
  background: #fff;
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 6px 48px;
  color: inherit;
  text-decoration: none;
}

.brand-mark,
.avatar,
.topbar-avatar {
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: var(--navy);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.brand-mark {
  width: 39px;
  height: 39px;
  font-size: 15px;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  letter-spacing: 0.075em;
}

.brand-copy small {
  color: #8d95a8;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.nav-caption,
.eyebrow {
  color: #9299ab;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.nav-caption {
  padding: 0 12px;
  margin-bottom: 11px;
}

.main-nav {
  display: grid;
  gap: 5px;
}

.nav-link {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border-radius: 8px;
  color: #69738a;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.nav-link:hover {
  background: #f7f8fb;
}

.nav-link.active {
  color: #344cbb;
  background: #eef1ff;
  font-weight: 700;
}

.nav-icon {
  width: 17px;
  color: #8992a6;
  font-size: 18px;
  text-align: center;
}

.nav-link.active .nav-icon {
  color: #526bd1;
}

.nav-link-disabled {
  cursor: default;
  opacity: 0.78;
}

.nav-soon {
  margin-left: auto;
  color: #a0a6b3;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.nav-count {
  display: grid;
  min-width: 22px;
  height: 21px;
  place-items: center;
  margin-left: auto;
  border-radius: 6px;
  color: #5769bc;
  background: #fff;
  font-size: 10px;
  font-weight: 700;
}

.sidebar-note {
  display: flex;
  gap: 9px;
  margin: auto 3px 20px;
  padding: 12px 10px;
  border: 1px solid #e8ebf2;
  border-radius: 9px;
  background: #fbfcfe;
}

.note-icon {
  display: grid;
  width: 17px;
  height: 17px;
  flex: none;
  place-items: center;
  margin-top: 1px;
  border-radius: 50%;
  color: #7180bd;
  background: #edf0fc;
  font-size: 11px;
  font-weight: 700;
}

.sidebar-note p {
  margin: 0;
  color: #788198;
  font-size: 10px;
  line-height: 1.55;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px 0;
  border-top: 1px solid var(--line);
}

.avatar {
  width: 34px;
  height: 34px;
  border: 1px solid #dfe4f8;
  border-radius: 50%;
  color: #475fcb;
  background: #eff2ff;
  font-size: 11px;
}

.user-copy {
  display: grid;
  gap: 3px;
}

.user-copy strong {
  font-size: 11px;
}

.user-copy small {
  color: var(--muted);
  font-size: 10px;
}

.user-menu {
  margin-left: auto;
  color: #9299ab;
  letter-spacing: 2px;
}

.main-content {
  width: calc(100% - 248px);
  max-width: 1600px;
  min-width: 0;
  min-height: 100vh;
  margin-left: 248px;
  padding: 0 43px;
}

.topbar {
  display: flex;
  height: 70px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.breadcrumbs,
.topbar-right {
  display: flex;
  align-items: center;
}

.breadcrumbs {
  gap: 10px;
  color: #9198a9;
  font-size: 12px;
}

.breadcrumbs strong {
  color: #414b62;
  font-weight: 600;
}

.breadcrumb-divider {
  color: #c1c6d1;
}

.topbar-right {
  gap: 17px;
}

.today-label {
  color: #7e879b;
  font-size: 11px;
}

.topbar-avatar {
  width: 32px;
  height: 32px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #e6e9f1;
  font-size: 10px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 0 24px;
}

.page-heading h1,
.modal-heading h2 {
  margin: 7px 0 4px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.page-heading p,
.panel-heading p,
.modal-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.button {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  color: white;
  background: #4059c2;
  box-shadow: 0 2px 4px #243a8b26;
}

.button-primary:hover {
  background: #344daa;
}

.button-outline {
  border-color: #e1e5ee;
  color: #59647a;
  background: #fff;
}

.button-outline:hover {
  border-color: #cbd2e2;
  background: #fafbfe;
}

.button-plus {
  margin-top: -1px;
  font-size: 18px;
  font-weight: 400;
}

.demo-banner {
  display: flex;
  min-height: 37px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid #e3e8fa;
  border-radius: 7px;
  color: #637098;
  background: #f0f3ff;
  font-size: 10px;
}

.demo-banner.hidden {
  display: none;
}

.demo-dot,
.metric-dot,
.storage-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
}

.demo-dot {
  background: #7588e0;
}

.demo-banner button {
  margin-left: auto;
  padding: 0 3px;
  border: 0;
  color: #7d89b1;
  background: transparent;
  font-size: 18px;
  line-height: 1;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 17px 0 25px;
}

.metric-card {
  min-height: 116px;
  padding: 15px 16px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  box-shadow: 0 1px 2px #17213a05;
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-label {
  color: #788198;
  font-size: 10px;
  font-weight: 600;
}

.metric-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 7px;
  font-size: 13px;
}

.icon-blue {
  color: #526bd1;
  background: #eef1ff;
}

.icon-amber {
  color: #ab741b;
  background: #fff5e3;
}

.icon-green {
  color: #2b8a67;
  background: #eaf7f0;
}

.icon-violet {
  color: #7b5aac;
  background: #f3edfa;
}

.metric-value {
  margin-top: 4px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.2;
}

.metric-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: #8a92a4;
  font-size: 9px;
}

.metric-dot {
  width: 6px;
  height: 6px;
}

.blue-dot {
  background: #637de0;
}

.amber-dot {
  background: #d29a3d;
}

.green-dot {
  background: #4eaa83;
}

.violet-dot {
  background: #9c79c3;
}

.orders-panel {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  box-shadow: 0 2px 5px #17213a05;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 19px 19px 17px;
}

.panel-heading h2 {
  margin: 0 0 5px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.panel-heading p {
  font-size: 10px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 19px 15px;
}

.search-box {
  display: flex;
  height: 35px;
  min-width: 230px;
  flex: 1;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  border: 1px solid #e4e7ef;
  border-radius: 6px;
  background: white;
}

.search-icon {
  color: #9aa2b3;
  font-size: 19px;
  line-height: 1;
  transform: rotate(-20deg);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #455069;
  background: transparent;
  font-size: 10px;
}

.search-box input::placeholder {
  color: #a1a8b6;
}

kbd {
  flex: none;
  padding: 2px 4px;
  border: 1px solid #e7e9ef;
  border-radius: 3px;
  color: #9aa1b1;
  background: #fafbfc;
  font-family: inherit;
  font-size: 8px;
}

.filter-label select {
  height: 35px;
  max-width: 175px;
  padding: 0 28px 0 10px;
  border: 1px solid #e4e7ef;
  border-radius: 6px;
  color: #667087;
  background-color: white;
  font-size: 10px;
}

.table-wrap {
  overflow-x: auto;
  border-top: 1px solid #f0f1f5;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}

thead {
  background: #fafbfc;
}

th {
  height: 36px;
  padding: 0 12px;
  color: #8c94a5;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.075em;
}

th:first-child,
td:first-child {
  padding-left: 19px;
}

td {
  height: 61px;
  padding: 8px 12px;
  border-top: 1px solid #f0f1f5;
  color: #59647a;
  font-size: 10px;
}

tbody tr {
  cursor: pointer;
  transition: background 100ms ease;
}

tbody tr:hover {
  background: #fafbff;
}

.order-number {
  color: #3c55bc;
  font-size: 10px;
  font-weight: 700;
}

.order-date {
  display: block;
  margin-top: 4px;
  color: #a0a6b3;
  font-size: 9px;
}

.customer-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}

.customer-avatar {
  display: grid;
  width: 29px;
  height: 29px;
  flex: none;
  place-items: center;
  border-radius: 8px;
  color: #6277cb;
  background: #eff2ff;
  font-size: 9px;
  font-weight: 700;
}

.customer-name {
  display: block;
  max-width: 160px;
  overflow: hidden;
  color: #38435a;
  font-weight: 600;
  text-overflow: ellipsis;
}

.customer-contact {
  display: block;
  margin-top: 4px;
  color: #a0a6b3;
  font-size: 9px;
}

.type-label {
  display: inline-block;
  padding: 5px 7px;
  border-radius: 5px;
  color: #65708a;
  background: #f3f4f7;
  font-size: 9px;
}

.type-label.private-label {
  color: #7753a4;
  background: #f3edfa;
}

.type-label.personalizada {
  color: #ab741b;
  background: #fff4df;
}

.items-cell {
  color: #59647a;
}

.items-cell strong {
  color: #344057;
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 600;
}

.status-pill::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-blue {
  color: #5269c5;
  background: #eef1ff;
}

.status-amber {
  color: #a66d18;
  background: #fff5e2;
}

.status-green {
  color: #287c5b;
  background: #eaf6ef;
}

.status-violet {
  color: #77529f;
  background: #f1eafa;
}

.status-slate {
  color: #667186;
  background: #f0f2f5;
}

.due-date {
  color: #59647a;
  font-size: 9px;
}

.due-date.no-date {
  color: #a0a6b3;
  font-style: italic;
}

.row-action {
  color: #9aa2b3;
  font-size: 17px;
}

.empty-state {
  display: grid;
  min-height: 200px;
  align-content: center;
  justify-items: center;
  gap: 7px;
  color: #8b93a4;
  font-size: 11px;
}

.empty-state strong {
  color: #48536c;
  font-size: 12px;
}

.empty-icon {
  margin-bottom: 2px;
  color: #aab2c3;
  font-size: 26px;
}

.hidden {
  display: none !important;
}

.table-footer {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 0 19px;
  border-top: 1px solid #f0f1f5;
  color: #9299a9;
  font-size: 9px;
}

.local-storage-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.storage-dot {
  width: 6px;
  height: 6px;
  background: #56a57f;
}

.page-footer {
  display: flex;
  justify-content: space-between;
  padding: 17px 2px 22px;
  color: #9ba2b0;
  font-size: 9px;
}

.footer-divider {
  padding: 0 5px;
}

.modal {
  width: min(590px, calc(100% - 28px));
  max-width: none;
  max-height: calc(100% - 28px);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: 0 22px 65px #111a3340;
}

.order-modal {
  width: min(840px, calc(100% - 28px));
}

.order-modal .modal-card {
  display: flex;
  max-height: calc(100vh - 28px);
  flex-direction: column;
}

.form-scroll {
  overflow-y: auto;
  padding: 0 4px 2px 0;
}

.form-section {
  padding: 16px 0 18px;
  border-top: 1px solid #edf0f5;
}

.form-section h3 {
  margin: 0 0 13px;
  color: #35415a;
  font-size: 12px;
  font-weight: 700;
}

.form-section h4 {
  margin: 0 0 4px;
  color: #46516a;
  font-size: 10px;
}

.form-section > .form-note {
  margin-top: 10px;
}

.form-field textarea {
  width: 100%;
  min-height: 74px;
  padding: 9px 10px;
  resize: vertical;
  border: 1px solid #e2e6ee;
  border-radius: 6px;
  color: #48536a;
  background: white;
  font: inherit;
  font-size: 11px;
  font-weight: 400;
}

.form-field textarea::placeholder {
  color: #a7adba;
}

.form-field input[type="checkbox"] {
  width: 14px;
  height: 14px;
  flex: none;
  margin: 0;
  accent-color: #4059c2;
}

.checkbox-field {
  display: flex;
  min-height: 37px;
  align-items: center;
  gap: 8px;
}

.items-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
}

.items-heading p {
  margin: 0;
  color: #8a92a4;
  font-size: 9px;
}

.button-small {
  min-height: 31px;
  padding: 0 9px;
  font-size: 9px;
  white-space: nowrap;
}

.item-row-list {
  display: grid;
  gap: 8px;
}

.item-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.15fr 0.7fr 1fr 35px;
  align-items: end;
  gap: 7px;
  padding: 9px;
  border: 1px solid #edf0f5;
  border-radius: 7px;
  background: #fbfcfe;
}

.item-field {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: #707b91;
  font-size: 8px;
  font-weight: 600;
}

.item-field input {
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 0 7px;
  border: 1px solid #e2e6ee;
  border-radius: 5px;
  color: #48536a;
  background: white;
  font-size: 10px;
  font-weight: 400;
}

.item-remove {
  display: grid;
  width: 30px;
  height: 32px;
  place-items: center;
  border: 1px solid #e8eaf0;
  border-radius: 5px;
  color: #9299a9;
  background: white;
  font-size: 16px;
}

.item-remove:hover {
  border-color: #ebc8c8;
  color: #ac5353;
  background: #fff8f8;
}

.order-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 3px 2px;
  color: #858da0;
  font-size: 9px;
}

.order-total-row strong {
  display: flex;
  align-items: baseline;
  gap: 9px;
  color: #39455f;
  font-size: 10px;
}

.order-total-row strong span {
  color: #27344e;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 15px;
}

.payment-rule,
.card-fee-preview {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  color: #677492;
  background: #f3f5fc;
  font-size: 9px;
  line-height: 1.5;
}

.card-fee-preview {
  color: #396e5b;
  background: #edf7f1;
}

.payment-rule.invalid {
  color: #995454;
  background: #fff1f1;
}

.modal-actions {
  flex: none;
}

.modal::backdrop {
  background: #121a2d70;
  backdrop-filter: blur(2px);
}

.modal-card {
  padding: 24px;
  border-radius: 12px;
  background: white;
}

.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 21px;
}

.modal-heading h2 {
  margin-top: 6px;
  font-size: 21px;
}

.modal-heading p {
  font-size: 11px;
}

.icon-button {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  border: 1px solid #e7eaf0;
  border-radius: 7px;
  color: #778198;
  background: white;
  font-size: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 6px;
  color: #566178;
  font-size: 10px;
  font-weight: 600;
}

.form-field b {
  color: #bc5962;
}

.form-field input,
.form-field select {
  width: 100%;
  height: 37px;
  padding: 0 10px;
  border: 1px solid #e2e6ee;
  border-radius: 6px;
  color: #48536a;
  background: white;
  font-size: 11px;
  font-weight: 400;
}

.form-field input::placeholder {
  color: #a7adba;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-note {
  margin-top: 17px;
  padding: 9px 10px;
  border-radius: 6px;
  color: #747f9b;
  background: #f4f6fc;
  font-size: 9px;
  line-height: 1.5;
}

.form-error-note {
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid #f0d3d3;
  border-radius: 6px;
  color: #995454;
  background: #fff3f3;
  font-size: 10px;
  line-height: 1.45;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 19px;
}

.detail-modal {
  width: min(650px, calc(100% - 28px));
}

.detail-card {
  max-height: calc(100vh - 28px);
  overflow: auto;
}

.detail-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.detail-stat {
  padding: 11px;
  border: 1px solid #edf0f5;
  border-radius: 7px;
  background: #fbfcfe;
}

.detail-stat span,
.detail-field span {
  display: block;
  margin-bottom: 5px;
  color: #9299a9;
  font-size: 9px;
}

.detail-stat strong,
.detail-field strong {
  color: #46516a;
  font-size: 11px;
  font-weight: 600;
}

.detail-section-title {
  margin: 18px 0 10px;
  color: #313d55;
  font-size: 11px;
  font-weight: 700;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  padding: 13px;
  border: 1px solid #edf0f5;
  border-radius: 7px;
}

.detail-grid-spaced {
  margin-top: 12px;
}

.detail-field-wide {
  grid-column: 1 / -1;
}

.detail-table-wrap {
  overflow-x: auto;
  border: 1px solid #edf0f5;
  border-radius: 7px;
}

.detail-items-table {
  min-width: 570px;
}

.detail-items-table th {
  height: 32px;
  padding: 0 9px;
  font-size: 8px;
}

.detail-items-table td {
  height: 38px;
  padding: 7px 9px;
  font-size: 9px;
}

.detail-field strong {
  line-height: 1.5;
}

.status-edit {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
}

.status-edit label {
  color: #6d778d;
  font-size: 10px;
  font-weight: 600;
}

.status-edit select {
  min-height: 34px;
  flex: 1;
  padding: 0 9px;
  border: 1px solid #e2e6ee;
  border-radius: 6px;
  color: #4f5b73;
  background: white;
  font-size: 10px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 5;
  max-width: min(360px, calc(100% - 32px));
  padding: 11px 15px;
  border: 1px solid #35487d;
  border-radius: 8px;
  color: white;
  background: #26375f;
  box-shadow: 0 8px 28px #14203b30;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 1050px) {
  .main-content {
    padding-right: 25px;
    padding-left: 25px;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar {
    flex-wrap: wrap;
  }

  .search-box {
    flex-basis: 100%;
  }
}

@media (max-width: 700px) {
  .sidebar {
    position: static;
    width: 62px;
    flex: none;
    align-items: center;
    padding: 18px 8px;
  }

  .brand {
    margin: 0 0 35px;
  }

  .brand-copy,
  .nav-caption,
  .nav-link:not(.active),
  .nav-link.active {
    font-size: 0;
  }

  .brand-copy,
  .sidebar-note,
  .user-copy,
  .user-menu,
  .nav-count {
    display: none;
  }

  .main-nav {
    width: 100%;
  }

  .nav-link {
    justify-content: center;
    padding: 0;
  }

  .nav-soon {
    display: none;
  }

  .nav-icon {
    font-size: 18px;
  }

  .user-card {
    margin-top: auto;
    padding: 14px 0 0;
  }

  .main-content {
    width: calc(100% - 62px);
    margin-left: 0;
    padding: 0 16px;
  }

  .topbar {
    height: 58px;
  }

  .today-label {
    display: none;
  }

  .page-heading {
    align-items: flex-start;
    padding: 25px 0 17px;
  }

  .page-heading h1 {
    font-size: 22px;
  }

  .page-heading p {
    max-width: 230px;
    font-size: 10px;
    line-height: 1.5;
  }

  .page-heading .button {
    min-height: 35px;
    padding: 0 9px;
    font-size: 10px;
    white-space: nowrap;
  }

  .metrics-grid {
    gap: 9px;
    margin: 13px 0 17px;
  }

  .metric-card {
    min-height: 105px;
    padding: 12px;
  }

  .metric-label {
    max-width: 100px;
    font-size: 9px;
  }

  .metric-value {
    font-size: 22px;
  }

  .metric-foot {
    font-size: 8px;
  }

  .panel-heading {
    padding: 15px 13px;
  }

  .panel-heading .button {
    min-height: 33px;
    padding: 0 8px;
    font-size: 9px;
    white-space: nowrap;
  }

  .toolbar {
    padding: 0 13px 12px;
  }

  .filter-label {
    flex: 1;
  }

  .filter-label select {
    width: 100%;
    max-width: none;
  }

  .table-footer {
    padding: 0 13px;
  }

  .page-footer {
    gap: 8px;
    font-size: 8px;
  }

  .modal-card {
    padding: 18px;
  }

  .item-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: relative;
    padding-right: 43px;
  }

  .item-remove {
    position: absolute;
    top: 8px;
    right: 8px;
  }
}

@media (max-width: 440px) {
  .topbar .breadcrumbs {
    font-size: 10px;
  }

  .page-heading {
    flex-direction: column;
  }

  .page-heading .button {
    align-self: flex-end;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-footer {
    flex-direction: column;
  }
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #17213a9c;
  backdrop-filter: blur(4px);
}

.auth-screen[hidden] {
  display: none;
}

.auth-card {
  display: grid;
  width: min(100%, 390px);
  gap: 14px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 22px 65px #111a3340;
}

.auth-card .brand-mark {
  margin-bottom: 4px;
}

.auth-card h1 {
  margin: 0;
  font-size: 22px;
}

.auth-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.auth-card form {
  display: grid;
  gap: 12px;
}

.auth-error {
  min-height: 16px;
  color: #995454 !important;
}

.logout-button {
  margin-left: 8px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #69738a;
  background: white;
  font-size: 10px;
}

.logout-button:hover {
  color: #344cbb;
  background: #f7f8fb;
}
