:root {
  --bg: #f3f6f8;
  --panel: #ffffff;
  --ink: #17201a;
  --muted: #66736b;
  --line: #dce3dd;
  --accent: #176b4d;
  --accent-2: #b65f22;
  --danger: #b83030;
  --blue: #245b8f;
  --gold: #c68a13;
  --cyan: #147c8c;
  --violet: #6f4ea5;
  --rose: #bf3f61;
  --module: #176b4d;
  --module-soft: #e7f3ed;
  --module-ink: #104a35;
  --shadow: 0 16px 42px rgba(24, 36, 28, 0.1);
}

body[data-active-view="warehouse-space"],
body[data-active-view="dashboard"],
body[data-active-view="stock-card"] {
  --module: #176b4d;
  --module-soft: #e7f3ed;
  --module-ink: #104a35;
}

body[data-active-view="replenishments"],
body[data-active-view="transfers"],
body[data-active-view="dispatches"],
body[data-active-view="central-requests"] {
  --module: #245b8f;
  --module-soft: #e8f0f8;
  --module-ink: #183f64;
}

body[data-active-view="alerts"],
body[data-active-view="incidents"] {
  --module: #bf3f61;
  --module-soft: #fdeaf0;
  --module-ink: #8f2844;
}

body[data-active-view="orders"],
body[data-active-view="deliveries"] {
  --module: #c68a13;
  --module-soft: #fff3d9;
  --module-ink: #825a0e;
}

body[data-active-view="adjustments"],
body[data-active-view="closings"] {
  --module: #147c8c;
  --module-soft: #e4f4f6;
  --module-ink: #0d5965;
}

body[data-active-view="issues"] {
  --module: #b65f22;
  --module-soft: #fff0e4;
  --module-ink: #7a3d12;
}

body[data-active-view="movements"],
body[data-active-view="settings"] {
  --module: #6f4ea5;
  --module-soft: #f0ebfa;
  --module-ink: #4e3678;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

body:not(.authenticated) {
  display: block;
}

body:not(.authenticated) .sidebar,
body:not(.authenticated) .shell {
  display: none;
}

body.authenticated .auth-screen {
  display: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.sidebar {
  background: #111c17;
  color: #f8fbf7;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.auth-panel {
  width: min(430px, 100%);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 24px;
  background: #111c17;
  color: #ffffff;
}

.auth-brand strong,
.auth-brand span {
  display: block;
}

.auth-brand span {
  margin-top: 3px;
  color: #b8c8bd;
  font-size: 13px;
}

.auth-form {
  display: grid;
  gap: 16px;
  padding: 28px 24px 26px;
}

.auth-form[hidden] {
  display: none;
}

.auth-form label {
  margin: 0;
}

.auth-submit {
  width: 100%;
  min-height: 46px;
}

.form-error {
  margin: 0;
  padding: 10px 12px;
  border-left: 4px solid var(--danger);
  background: #fff0f0;
  color: #8e2020;
  font-size: 14px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #f0c35c;
  color: #111c17;
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: #b8c8bd;
  font-size: 13px;
  margin-top: 3px;
}

.tabs {
  display: grid;
  gap: 8px;
}

.account-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #304139;
}

.account-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f0c35c;
  color: #111c17;
  font-size: 13px;
  font-weight: 800;
}

.account-copy {
  min-width: 0;
}

.account-copy strong,
.account-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-copy span {
  margin-top: 3px;
  color: #b8c8bd;
  font-size: 12px;
}

.logout-button {
  grid-column: 1 / -1;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #516158;
  border-radius: 6px;
  background: transparent;
  color: #e7eee9;
  cursor: pointer;
}

.logout-button:hover {
  border-color: #f0c35c;
  color: #f0c35c;
}

[data-access-hidden="true"] {
  display: none !important;
}

.tab {
  border: 0;
  border-radius: 8px;
  padding: 14px 16px;
  border-left: 4px solid transparent;
  text-align: left;
  background: transparent;
  color: #dce7df;
  cursor: pointer;
}

.tab.active,
.tab:hover {
  background: #24352c;
  border-left-color: #f0c35c;
  color: #ffffff;
}

.tab[data-view="warehouse-space"],
.tab[data-view="dashboard"],
.tab[data-view="stock-card"] {
  border-left-color: #2e8f69;
}

.tab[data-view="replenishments"],
.tab[data-view="central-requests"],
.tab[data-view="dispatches"],
.tab[data-view="transfers"] {
  border-left-color: #4e8fd0;
}

.tab[data-view="alerts"],
.tab[data-view="incidents"] {
  border-left-color: #e36a82;
}

.tab[data-view="orders"],
.tab[data-view="deliveries"] {
  border-left-color: #e0aa34;
}

.tab[data-view="adjustments"],
.tab[data-view="closings"] {
  border-left-color: #39a5b3;
}

.tab[data-view="issues"] {
  border-left-color: #d07a36;
}

.tab[data-view="movements"],
.tab[data-view="settings"] {
  border-left-color: #8d72c5;
}

.shell {
  padding: 24px;
  overflow: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--module);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 18px;
}

.top-actions {
  display: flex;
  gap: 10px;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 11px 12px;
}

.icon-button,
.primary,
.action {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  min-height: 42px;
}

.icon-button {
  width: 46px;
  background: var(--ink);
  color: white;
  font-size: 20px;
}

.primary {
  background: var(--module);
  color: #ffffff;
  padding: 12px 18px;
  font-weight: 700;
}

.action {
  background: #eef4f0;
  color: var(--ink);
  padding: 9px 12px;
}

.action.warn {
  background: #fff0df;
  color: var(--accent-2);
}

.action.danger {
  background: #ffe8e8;
  color: var(--danger);
}

.action:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.primary:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.workflow-guide {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--module);
  border-radius: 8px;
  background: var(--module-soft);
  box-shadow: var(--shadow);
}

.workflow-guide h2 {
  color: var(--module-ink);
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-steps li {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(23, 32, 26, 0.08);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.workflow-steps span {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--module);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric {
  padding: 18px;
  border-top: 4px solid var(--module);
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  color: var(--module-ink);
}

.metric.danger strong {
  color: var(--danger);
}

.metric-grid .metric:nth-child(2) {
  border-top-color: var(--blue);
  background: #f7fbff;
}

.metric-grid .metric:nth-child(3) {
  border-top-color: var(--gold);
  background: #fffaf0;
}

.metric-grid .metric:nth-child(4) {
  border-top-color: var(--rose);
  background: #fff7fa;
}

.panel {
  overflow: hidden;
}

.warehouse-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  margin-bottom: 18px;
}

.warehouse-hero h2 {
  font-size: 24px;
}

.warehouse-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.warehouse-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 18px;
  margin-bottom: 18px;
}

.stock-card-model {
  background: #f7f7f7;
}

.stock-card-blue-title {
  min-height: 68px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #174668, #0f334e);
  color: #ffffff;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 1px;
}

.stock-card-red-title {
  min-height: 38px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #e22328, #bd1217);
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1px;
}

.stock-card-filters {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(260px, 1fr) 150px 150px 132px 132px;
  gap: 10px;
  align-items: end;
  padding: 10px 12px;
  background: #f8f8f8;
}

.stock-card-filters label {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #17201a;
}

.stock-card-filters select,
.stock-card-filters input {
  height: 34px;
  padding: 6px 9px;
  border-radius: 2px;
}

.stock-card-button {
  min-height: 34px;
  border: 0;
  border-radius: 3px;
  background: #6d8796;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.stock-card-button.print {
  background: #617f91;
}

.stock-card-table-wrap {
  margin: 0 10px 10px;
  border: 1px solid #cfd6da;
  background: #ffffff;
}

.stock-card-table {
  min-width: 1180px;
}

.stock-card-table th {
  background: #668295;
  color: #ffffff;
  font-size: 13px;
  text-transform: none;
}

.stock-card-table th,
.stock-card-table td {
  padding: 5px 8px;
  border-right: 1px solid #d1d7db;
  border-bottom: 1px solid #d9dfe2;
  white-space: nowrap;
}

.stock-card-table td:nth-child(1) {
  width: 96px;
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stock-card-table td:nth-child(2) {
  width: 250px;
}

.stock-card-table td:nth-child(3) {
  width: 120px;
  text-align: right;
}

.stock-card-table td:nth-child(4) {
  width: 460px;
  max-width: 460px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stock-card-table td:nth-child(5),
.stock-card-table td:nth-child(6),
.stock-card-table td:nth-child(7) {
  width: 112px;
  text-align: right;
}

.stock-card-table tbody tr:nth-child(odd) {
  background: #e7e7e7;
}

.stock-card-table tbody tr:nth-child(even) {
  background: #f6f6f6;
}

.compact-item {
  padding-block: 12px;
}

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

.closing-status-panel {
  padding: 16px;
}

.closing-status-box {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-left: 5px solid var(--line);
  background: #ffffff;
}

.closing-status-box strong,
.closing-status-box span {
  display: block;
}

.closing-status-box span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.closing-status-box.ok,
.closing-status.ok {
  border-color: var(--accent);
}

.closing-status-box.info,
.closing-status.info {
  border-color: var(--blue);
}

.closing-status-box.warn,
.closing-status.warn {
  border-color: var(--accent-2);
}

.closing-status-box.danger,
.closing-status.danger {
  border-color: var(--danger);
}

.central-closing-panel {
  margin-bottom: 18px;
}

.notification-panel {
  margin-bottom: 18px;
}

.notification-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.notification-item {
  min-height: 66px;
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--module);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.notification-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.notification-item strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.notification-item.info {
  border-left-color: var(--blue);
  background: #f7fbff;
}

.notification-item.warn {
  border-left-color: var(--accent-2);
  background: #fffaf3;
}

.notification-item.danger {
  border-left-color: var(--danger);
  background: #fff7f7;
}

.closing-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.closing-overview-card {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  border-left: 4px solid transparent;
  background: #ffffff;
}

.closing-overview-card:last-child {
  border-right: 0;
}

.closing-overview-card span {
  color: var(--muted);
  font-size: 13px;
}

.closing-overview-card strong {
  display: block;
  margin-top: 5px;
  font-size: 24px;
}

.closing-overview-card.ok {
  border-left-color: var(--accent);
}

.closing-overview-card.info {
  border-left-color: var(--blue);
}

.closing-overview-card.warn {
  border-left-color: var(--accent-2);
}

.closing-overview-card.danger {
  border-left-color: var(--danger);
}

.closing-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-left: 4px solid var(--line);
  background: #f7faf8;
  font-size: 12px;
  font-weight: 800;
}

.request-action {
  background: #e8eef6;
  color: var(--blue);
  font-weight: 700;
}

.replenishment-layout {
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
}

.replenishment-card {
  gap: 14px;
}

.request-note {
  margin-top: 8px;
  color: var(--ink);
  font-size: 13px;
}

.request-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  overflow-x: auto;
  padding-bottom: 2px;
}

.request-step {
  position: relative;
  min-height: 34px;
  padding: 10px 8px 0;
  border-top: 3px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  white-space: nowrap;
}

.request-step.done {
  border-color: var(--accent);
  color: var(--accent);
}

.request-step.active {
  border-color: var(--blue);
  color: var(--blue);
  font-weight: 800;
}

.request-step.rejected {
  grid-column: 1 / -1;
  border-color: var(--danger);
  color: var(--danger);
  font-weight: 800;
}

.central-request-metrics {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.dispatch-metrics {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.adjustment-metrics {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.alert-layout {
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
}

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

.alert-table td:nth-child(2) {
  min-width: 220px;
}

.alert-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.alert-badge.critical {
  background: #ffe8e8;
  color: var(--danger);
}

.alert-badge.warning {
  background: #fff0df;
  color: var(--accent-2);
}

.alert-badge.over {
  background: #e8eef6;
  color: var(--blue);
}

.alert-badge.ok {
  background: #e8f2ed;
  color: var(--accent);
}

.adjustment-layout {
  grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
}

.adjustment-line {
  grid-template-columns: minmax(150px, 1fr) 132px 96px auto;
}

.form-help {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.adjustment-preview {
  margin: -2px 0 10px;
  padding: 10px 12px;
  border: 1px solid #cfe6db;
  border-radius: 8px;
  background: #f4fbf7;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.adjustment-preview.warning {
  border-color: #ffd1d1;
  background: #fff4f4;
  color: var(--danger);
}

.adjustment-cart {
  min-width: 620px;
}

.adjustment-table td:nth-child(5) {
  min-width: 100px;
}

.adjustment-table td:nth-child(6) {
  min-width: 90px;
  white-space: normal;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-subtext {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.dispatch-card {
  gap: 14px;
}

.dispatch-action {
  background: var(--blue);
}

.dispatch-reference {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 8px;
  border-left: 3px solid var(--blue);
  background: #eef4fa;
  color: #1e4f7d;
  font-size: 12px;
  font-weight: 700;
}

.request-toolbar > div {
  min-width: 0;
}

.request-toolbar label {
  min-width: 210px;
  margin: 0;
}

.central-request-card {
  gap: 14px;
}

.central-request-lines {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.central-request-line {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #ffffff;
}

.central-request-line span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.central-request-line strong {
  flex: 0 0 auto;
  color: var(--accent);
}

.request-rejection {
  display: grid;
  gap: 4px;
  padding: 11px 13px;
  border-left: 4px solid var(--danger);
  background: #fff0f0;
  color: #8e2020;
  font-size: 13px;
}

.request-rejection strong,
.request-rejection span {
  display: block;
}

.request-adjustment {
  display: grid;
  gap: 4px;
  padding: 11px 13px;
  border-left: 4px solid var(--blue);
  background: #eef4fa;
  color: #1e4f7d;
  font-size: 13px;
}

.request-adjustment strong,
.request-adjustment span {
  display: block;
}

.daily-stat {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.daily-stat:last-child {
  border-right: 0;
}

.daily-stat:hover {
  background: #f4f8f5;
}

.daily-stat span {
  color: var(--muted);
  font-size: 13px;
}

.daily-stat strong {
  font-size: 24px;
}

.movement-line {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.movement-line:last-child {
  border-bottom: 0;
}

.movement-line strong,
.movement-line span {
  display: block;
}

.movement-line span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.movement-positive {
  color: var(--accent);
  font-weight: 800;
}

.movement-negative {
  color: var(--danger);
  font-weight: 800;
}

.panel-head {
  min-height: 58px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--module-soft), #ffffff 54%);
}

.panel-head span {
  color: var(--muted);
  font-size: 13px;
}

.panel-title {
  display: grid;
  gap: 4px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 840px;
}

.registry-table {
  min-width: 1180px;
}

th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  background: #f7f9fa;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 18px;
}

.stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

.closing-lines {
  display: grid;
  gap: 10px;
  margin: 12px 0 16px;
}

.closing-line {
  display: grid;
  grid-template-columns: 1fr 92px 120px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.closing-line span {
  color: var(--muted);
  font-size: 13px;
}

.pos-line {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 96px 96px;
  gap: 10px;
  align-items: end;
}

.pos-line label {
  margin-bottom: 0;
}

.pos-cart-wrap {
  margin: 14px 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pos-cart {
  min-width: 0;
}

.pos-cart th,
.pos-cart td {
  padding: 10px 12px;
}

.pos-cart td:last-child,
.pos-cart th:last-child {
  width: 88px;
  text-align: right;
}

.delivery-manual-fields {
  display: grid;
  gap: 0;
}

.delivery-manual-add {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 120px 120px minmax(160px, 0.8fr) 100px;
  gap: 10px;
  align-items: end;
}

.delivery-manual-add label {
  margin-bottom: 0;
}

.delivery-manual-fields[hidden],
.delivery-order-lines[hidden] {
  display: none;
}

.delivery-lines-title {
  display: grid;
  gap: 3px;
  margin: 4px 0 8px;
}

.delivery-lines-title strong {
  color: var(--ink);
}

.delivery-lines-title span {
  color: var(--muted);
  font-size: 13px;
}

.delivery-lines-table {
  min-width: 720px;
}

.delivery-lines-table input {
  width: 92px;
  padding: 7px 9px;
  text-align: right;
}

.delivery-detail-row td {
  background: #f7fbff;
}

.delivery-detail-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #d8e6f2;
  border-radius: 8px;
  background: #ffffff;
}

.delivery-detail-panel > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.delivery-detail-panel strong {
  color: var(--ink);
}

.delivery-detail-table {
  width: 100%;
  border-collapse: collapse;
}

.delivery-detail-table th,
.delivery-detail-table td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.delivery-detail-table th:last-child,
.delivery-detail-table td:last-child {
  text-align: right;
}

.form-panel {
  padding: 0 18px 18px;
}

.form-panel .panel-head {
  margin: 0 -18px 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 13px;
}

.list {
  display: grid;
}

.item {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.item:last-child {
  border-bottom: 0;
}

.item-main {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.item-title {
  font-weight: 800;
}

.transfer-order-card {
  gap: 14px;
}

.transfer-route {
  margin-top: 5px;
  font-weight: 700;
}

.receive-action {
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
}

.transfer-receipt {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.receipt-title {
  font-weight: 800;
}

.receipt-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.receipt-table {
  min-width: 0;
}

.receipt-table th,
.receipt-table td {
  padding: 10px 12px;
}

.receipt-table input {
  width: 92px;
  padding: 8px 10px;
}

.item-meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #e8eef6;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.muted-badge {
  background: #eef0f2;
  color: var(--muted);
}

.empty-cell {
  color: var(--muted);
  text-align: center;
}

.settings-table-wrap {
  max-height: min(620px, calc(100vh - 240px));
}

.settings-table {
  min-width: 760px;
}

.settings-table th,
.settings-table td {
  padding: 11px 12px;
  vertical-align: middle;
}

.settings-table td {
  white-space: normal;
}

.settings-table td:first-child,
.settings-table th:first-child {
  min-width: 130px;
}

.settings-table .table-actions {
  justify-content: flex-start;
}

.product-table {
  min-width: 1040px;
}

.supplier-table,
.user-table {
  min-width: 940px;
}

.warehouse-table {
  min-width: 760px;
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.modal-open {
  overflow: hidden;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 28, 23, 0.62);
}

.receipt-dialog {
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 64px rgba(17, 28, 23, 0.28);
}

.decision-dialog {
  width: min(560px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 64px rgba(17, 28, 23, 0.28);
}

.approval-dialog {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.dispatch-dialog {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.order-dialog {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.delivery-dialog {
  width: min(900px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.pdf-preview-dialog {
  width: min(1120px, 100%);
  height: min(900px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 64px rgba(17, 28, 23, 0.28);
}

.pdf-preview-frame {
  width: 100%;
  height: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f4f7f5;
}

.order-form .dialog-actions,
.delivery-form .dialog-actions {
  margin: 0 -20px;
}

.order-grid,
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

.order-grid .full-line,
.delivery-grid .full-line {
  grid-column: 1 / -1;
}

.order-line-entry {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 120px 100px;
  gap: 10px;
  align-items: end;
}

.order-line-entry label {
  margin-bottom: 0;
}

.order-cart-table th:nth-child(2),
.order-cart-table td:nth-child(2),
.order-cart-table th:nth-child(3),
.order-cart-table td:nth-child(3) {
  width: 120px;
  text-align: right;
}

.dispatch-table-wrap {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dispatch-table {
  min-width: 560px;
}

.dispatch-table td:first-child strong,
.dispatch-table td:first-child span {
  display: block;
}

.dispatch-table td:first-child span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.dispatch-table th:nth-child(n + 2),
.dispatch-table td:nth-child(n + 2) {
  width: 130px;
  text-align: center;
}

.dispatch-table input {
  width: 100px;
  margin: 0 auto;
  text-align: center;
  font-weight: 800;
}

.dispatch-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dispatch-fields:not([hidden]) {
  display: grid;
}

.approval-table-wrap {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.approval-table {
  min-width: 560px;
}

.approval-table td:first-child strong,
.approval-table td:first-child span {
  display: block;
}

.approval-table td:first-child span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.approval-table th:nth-child(n + 2),
.approval-table td:nth-child(n + 2) {
  width: 130px;
  text-align: center;
}

.approval-table input {
  width: 100px;
  margin: 0 auto;
  text-align: center;
  font-weight: 800;
}

.approval-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 14px;
  border: 1px solid var(--line);
  background: #f7f9f7;
}

.approval-summary span {
  padding: 12px;
  color: var(--muted);
  text-align: center;
}

.approval-summary strong {
  margin-left: 6px;
  color: var(--ink);
  font-size: 18px;
}

.decision-form {
  padding: 18px 20px 0;
}

.decision-form .dialog-actions {
  margin: 0 -20px;
}

.decision-meta {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #f7f9f7;
}

.decision-meta span {
  color: var(--muted);
  font-size: 13px;
}

.danger-primary {
  background: var(--danger);
}

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

.dialog-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #eef4f0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.receipt-order-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 20px;
  background: #f7f9f7;
  border-bottom: 1px solid var(--line);
}

.receipt-order-meta span,
.receipt-order-meta strong {
  display: block;
}

.receipt-order-meta span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.receipt-order-meta strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.receipt-form {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  overflow: hidden;
}

.receipt-dialog-table {
  min-height: 180px;
  overflow: auto;
}

.receipt-dialog-table .receipt-table {
  min-width: 700px;
}

.receipt-dialog-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #ffffff;
}

.receipt-dialog-table td:nth-child(n + 3),
.receipt-dialog-table th:nth-child(n + 3) {
  text-align: center;
}

.receipt-dialog-table input {
  width: 112px;
  margin: 0 auto;
  text-align: center;
  font-weight: 800;
}

.receipt-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  background: #f7f9f7;
}

.receipt-summary span {
  padding: 12px 18px;
  color: var(--muted);
  text-align: center;
}

.receipt-summary strong {
  margin-left: 6px;
  color: var(--ink);
  font-size: 18px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #111c17;
  color: white;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: 160ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px;
    gap: 12px;
  }

  .brand {
    display: none;
  }

  .account-card {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    margin-top: 0;
    padding-top: 10px;
  }

  .account-avatar {
    width: 36px;
    height: 36px;
  }

  .logout-button {
    grid-column: auto;
    width: auto;
  }

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

  .tab {
    text-align: center;
    padding: 12px 8px;
  }

  .shell {
    padding: 16px;
  }

  .topbar,
  .item-main {
    align-items: stretch;
    flex-direction: column;
  }

  .workflow-guide {
    grid-template-columns: 1fr;
  }

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

  .metric-grid,
  .split,
  .settings-layout,
  .warehouse-grid,
  .replenishment-layout,
  .alert-layout,
  .adjustment-layout {
    grid-template-columns: 1fr;
  }

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

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

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

  .dispatch-fields {
    grid-template-columns: 1fr;
  }

  .warehouse-hero {
    align-items: stretch;
    flex-direction: column;
  }

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

  .stock-card-blue-title {
    min-height: 54px;
    font-size: 22px;
    text-align: center;
  }

  .stock-card-red-title {
    min-height: 34px;
    font-size: 22px;
  }

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

  .stock-card-filters label {
    grid-template-columns: 1fr;
  }
}

.settings-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
}

.settings-nav {
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.settings-tab {
  border: 0;
  border-radius: 8px;
  padding: 12px 14px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.settings-tab.active,
.settings-tab:hover {
  background: var(--module-soft);
  color: var(--module-ink);
  font-weight: 700;
}

.settings-pane {
  display: none;
}

.settings-pane.active {
  display: block;
}

.user-settings-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.user-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 0 14px;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin-top: 20px;
  color: var(--ink);
}

.check-label input,
.access-table input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.access-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 10px;
}

.access-head h3 {
  margin: 0;
  font-size: 15px;
}

.access-wrap {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.access-table {
  min-width: 520px;
}

.access-table th:not(:first-child),
.access-table td:not(:first-child) {
  width: 96px;
  text-align: center;
}

.company-form {
  padding: 0 18px 18px;
}

.company-title {
  margin: 0 -18px 18px;
  padding: 7px 16px;
  background: #c9151b;
  color: #ffffff;
  text-align: center;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0;
}

.company-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr) 210px;
  gap: 20px;
  align-items: start;
}

.company-column {
  display: grid;
  gap: 2px;
}

.company-logo-box {
  display: grid;
  gap: 12px;
}

.company-logo-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.company-logo-name {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-logo-preview {
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: var(--accent-2);
  font-weight: 800;
}

.company-logo-preview.has-image {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  color: transparent;
}

.tax-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.company-actions {
  display: flex;
  justify-content: center;
  padding-top: 16px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }

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

  .company-grid {
    grid-template-columns: 1fr;
  }

  .user-settings-grid,
  .user-form-grid {
    grid-template-columns: 1fr;
  }

  .check-label {
    margin-top: 0;
  }
}

/* Tablet landscape */
@media (min-width: 901px) and (max-width: 1180px) {
  body {
    grid-template-columns: 208px minmax(0, 1fr);
  }

  .sidebar {
    padding: 18px 16px;
    gap: 20px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .tab {
    min-height: 44px;
    padding: 11px 12px;
  }

  .shell {
    min-width: 0;
    padding: 18px;
  }

  .split {
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  }

  .pos-line {
    grid-template-columns: minmax(0, 1fr) 72px auto;
    gap: 8px;
  }

  .pos-line .action {
    padding-inline: 10px;
  }

  .settings-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .user-settings-grid {
    grid-template-columns: 1fr;
  }

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

  .company-logo-box {
    grid-column: 1 / -1;
    grid-template-columns: minmax(180px, 260px) 1fr;
    align-items: center;
  }
}

/* Tablet portrait */
@media (max-width: 900px) {
  body {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    grid-template-areas:
      "brand account"
      "tabs tabs";
    gap: 10px 16px;
    padding: 10px 14px;
    box-shadow: 0 8px 24px rgba(17, 28, 23, 0.18);
  }

  .brand {
    grid-area: brand;
    display: flex;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .tabs {
    grid-area: tabs;
    display: flex;
    gap: 6px;
    max-width: 100%;
    overflow-x: auto;
    padding: 2px 0 6px;
    overscroll-behavior-inline: contain;
    scrollbar-color: #516158 transparent;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .tabs::-webkit-scrollbar {
    display: block;
    height: 4px;
  }

  .tabs::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: #516158;
  }

  .settings-nav::-webkit-scrollbar {
    display: none;
  }

  .tab {
    flex: 0 0 auto;
    min-width: 112px;
    min-height: 44px;
    padding: 10px 12px;
    text-align: center;
    scroll-snap-align: start;
  }

  .account-card {
    grid-area: account;
    grid-template-columns: 36px minmax(100px, 1fr) auto;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .account-avatar {
    width: 36px;
    height: 36px;
  }

  .logout-button {
    grid-column: auto;
    width: auto;
    min-height: 40px;
    padding: 8px 10px;
  }

  .shell {
    min-width: 0;
    padding: 16px;
  }

  .topbar {
    flex-direction: row;
    align-items: center;
  }

  .top-actions {
    min-width: min(360px, 55vw);
  }

  .top-actions select {
    min-width: 0;
  }

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

  .metric {
    padding: 16px;
  }

  .metric strong {
    font-size: 28px;
  }

  .split,
  .settings-layout,
  .user-settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .settings-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px;
    scrollbar-width: none;
  }

  .settings-tab {
    flex: 0 0 auto;
    min-width: 132px;
    min-height: 44px;
    text-align: center;
  }

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

  .company-logo-box {
    grid-column: 1 / -1;
    grid-template-columns: minmax(180px, 240px) 1fr;
    align-items: center;
  }

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

  .table-wrap {
    max-width: 100%;
    overflow: auto;
    overscroll-behavior-inline: contain;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
  }

  .item-main {
    align-items: stretch;
  }

  .item-actions .action,
  .item-actions .primary {
    min-height: 44px;
  }

  .modal-backdrop {
    align-items: end;
    padding: 12px;
  }

  .receipt-dialog {
    max-height: calc(100vh - 24px);
  }

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

@media (max-width: 640px) {
  .sidebar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand span,
  .account-copy {
    display: none;
  }

  .account-card {
    grid-template-columns: 36px auto;
  }

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

  .top-actions {
    width: 100%;
    min-width: 0;
  }

  .top-actions select {
    flex: 1;
  }

  .metric-grid,
  .company-grid,
  .user-form-grid,
  .tax-row,
  .daily-summary,
  .closing-overview,
  .notification-list,
  .warehouse-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .closing-status-box {
    align-items: stretch;
    flex-direction: column;
  }

  .central-request-metrics,
  .dispatch-metrics,
  .alert-metrics,
  .adjustment-metrics,
  .central-request-lines {
    grid-template-columns: minmax(0, 1fr);
  }

  .request-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .request-toolbar label {
    min-width: 0;
  }

  .daily-stat {
    min-height: 70px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .daily-stat:last-child {
    border-bottom: 0;
  }

  .company-logo-box {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

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

  .pos-line {
    grid-template-columns: minmax(0, 1fr) 84px auto;
  }

  .adjustment-line {
    grid-template-columns: minmax(0, 1fr) minmax(110px, 0.7fr);
  }

  .adjustment-line .action {
    grid-column: 1 / -1;
  }

  .closing-line {
    grid-template-columns: minmax(0, 1fr) 86px;
  }

  .closing-line span {
    grid-column: 1 / -1;
  }

  .modal-backdrop {
    padding: 0;
  }

  .receipt-dialog {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .decision-dialog {
    width: 100%;
    border-radius: 0;
  }

  .approval-dialog {
    max-height: 100vh;
  }

  .dispatch-dialog,
  .order-dialog,
  .delivery-dialog {
    max-height: 100vh;
  }

  .order-grid,
  .delivery-grid,
  .delivery-manual-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-line-entry {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .delivery-manual-add {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .order-line-entry .action,
  .delivery-manual-add .action {
    grid-column: 1 / -1;
  }

  .dialog-head,
  .receipt-order-meta,
  .dialog-actions {
    padding-inline: 14px;
  }

  .receipt-summary span {
    padding: 10px 6px;
    font-size: 12px;
  }

  .receipt-summary strong {
    display: block;
    margin: 3px 0 0;
  }

  .dialog-actions > * {
    flex: 1;
  }
}

@media (pointer: coarse) {
  button,
  select,
  input,
  textarea {
    min-height: 44px;
    touch-action: manipulation;
  }

  .check-label input,
  .access-table input {
    min-height: 22px;
    width: 22px;
    height: 22px;
  }
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(23, 107, 77, 0.28);
  outline-offset: 2px;
}
