:root {
  --background: #f3f6fa;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --border: #dce3eb;
  --border-strong: #c7d1dc;
  --text: #182230;
  --muted: #647184;
  --primary: #2463eb;
  --primary-dark: #194fc5;
  --primary-soft: #edf3ff;
  --success: #16835d;
  --success-soft: #eaf8f2;
  --warning: #a56108;
  --warning-soft: #fff7e8;
  --danger: #c23945;
  --danger-soft: #fff0f1;
  --shadow: 0 12px 32px rgba(31, 45, 61, 0.07);
  --radius: 16px;
  --radius-small: 10px;
  --focus-ring: 0 0 0 3px rgba(36, 99, 235, 0.22);
  color-scheme: light;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

.header-actions,
.account-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-menu {
  padding-right: 12px;
  border-right: 1px solid var(--border);
}

.account-login {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-link {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.admin-link:hover,
.admin-link:focus-visible {
  text-decoration: underline;
}

.logout-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 6px;
}

.logout-button:hover,
.logout-button:focus-visible {
  text-decoration: underline;
}

.auth-page {
  min-height: 100vh;
  background: var(--background);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.auth-card {
  width: min(100%, 440px);
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 18px 60px rgb(24 39 75 / 10%);
}

.auth-brand {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.auth-card h1 {
  margin: 4px 0 10px;
}

.auth-description {
  color: var(--muted);
  margin: 0 0 24px;
}

.auth-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 700;
}

.auth-form input {
  width: 100%;
}

.auth-submit {
  justify-content: center;
  width: 100%;
  margin-top: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button,
label[for],
.drop-zone {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.page-shell {
  width: min(1360px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
}

.header-content {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

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

.brand-block h1,
.section-heading h2,
.new-calculation h2 {
  margin: 0;
  letter-spacing: -0.025em;
}

.brand-block h1 {
  font-size: clamp(25px, 2.2vw, 32px);
  line-height: 1.15;
}

.brand-block p {
  margin: 7px 0 0;
  color: var(--muted);
}

.version-badge,
.file-rule,
.result-count,
.supplier-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.version-badge {
  padding: 4px 9px;
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.session-indicator {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
  box-shadow: 0 0 0 4px rgba(199, 209, 220, 0.28);
}

.session-indicator.is-active .status-dot {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22, 131, 93, 0.14);
}

main.page-shell {
  padding-block: 30px 56px;
}

.stepper {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.step {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 650;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface-soft);
  font-size: 13px;
}

.step.is-current {
  color: var(--primary-dark);
}

.step.is-current .step-number {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.step.is-complete {
  color: var(--success);
}

.step.is-complete .step-number {
  border-color: var(--success);
  background: var(--success-soft);
  color: var(--success);
}

.step-line {
  height: 1px;
  min-width: 28px;
  background: var(--border);
}

.panel {
  padding: 28px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  scroll-margin-top: 18px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: 23px;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-description {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--muted);
}

.ka-options-panel {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}

.ka-options-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.ka-options-heading h3,
.ka-options-heading p {
  margin: 0;
}

.ka-options-heading p,
.ka-options-help {
  margin-top: 5px;
  color: var(--muted);
}

.optional-badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ka-logistics {
  margin-top: 18px;
  border-top: 1px solid var(--border);
}

.ka-logistics summary {
  padding: 16px 0 2px;
  color: var(--primary-dark);
  cursor: pointer;
  font-weight: 700;
}

.ka-logistics-content {
  padding-top: 14px;
}

.ka-options-help {
  margin-bottom: 0;
  font-size: 13px;
}

.file-rule,
.result-count {
  padding: 6px 10px;
  background: var(--surface-soft);
  color: var(--muted);
}

.drop-zone {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 28px;
  border: 1.5px dashed #9fb2c9;
  border-radius: 14px;
  background: #f9fbfe;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.drop-zone.is-disabled {
  cursor: wait;
  opacity: 0.7;
}

.upload-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
}

.upload-icon svg {
  width: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.drop-title {
  margin: 0;
  font-size: 17px;
  font-weight: 750;
}

.drop-copy {
  margin: 4px 0 0;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.button.primary {
  background: var(--primary);
  color: #fff;
}

.button.primary:hover:not(:disabled) {
  background: var(--primary-dark);
}

.button.secondary {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

.button.secondary:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.button.danger-outline {
  border-color: #e6aab0;
  background: var(--surface);
  color: var(--danger);
}

.button.large {
  min-width: 188px;
  min-height: 46px;
}

.button.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 750ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.selected-file,
.loading-line,
.completion-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
}

.file-chip {
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 10px;
  font-weight: 850;
}

.spinner {
  width: 17px;
  height: 17px;
  border: 2px solid var(--border-strong);
  border-right-color: var(--primary);
  border-radius: 50%;
  animation: spin 750ms linear infinite;
}

.estimate-result {
  margin-top: 20px;
}

.success-summary {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid #bde4d4;
  border-radius: 12px;
  background: var(--success-soft);
}

.success-summary h3 {
  margin: 0 0 12px;
  color: #116c4d;
  font-size: 17px;
}

.success-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-weight: 900;
}

.summary-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: 0;
}

.summary-grid div {
  min-width: 130px;
}

.summary-grid dt {
  color: var(--muted);
  font-size: 12px;
}

.summary-grid dd {
  margin: 1px 0 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.restore-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.message-list {
  padding: 14px 16px;
  margin-top: 14px;
  border: 1px solid;
  border-radius: 10px;
}

.message-list h3 {
  margin: 0 0 7px;
  font-size: 14px;
}

.message-list ul {
  margin: 0;
  padding-left: 20px;
}

.message-list.warning {
  border-color: #efd39f;
  background: var(--warning-soft);
  color: #744407;
}

.message-list.danger {
  border-color: #edbdc2;
  background: var(--danger-soft);
  color: #8e2832;
}

.data-panel {
  margin-top: 22px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.table-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.table-toolbar h3 {
  margin: 0;
  font-size: 17px;
}

.table-toolbar p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.search-field {
  width: min(350px, 100%);
}

.search-field span,
.field > span {
  display: block;
  margin-bottom: 5px;
  color: #3c4858;
  font-size: 13px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  outline: none;
  background: var(--surface);
  color: var(--text);
}

input::placeholder {
  color: #98a3b2;
}

input:focus,
select:focus,
button:focus-visible,
.drop-zone:focus-visible,
.table-scroll:focus-visible,
label.button:focus-within {
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
  outline: none;
}

input:disabled {
  background: #f1f4f7;
  color: var(--muted);
}

.inline-alert {
  padding: 13px 15px;
  margin-bottom: 18px;
  border-radius: 10px;
}

.inline-alert.success {
  border: 1px solid #bde4d4;
  background: var(--success-soft);
  color: #116c4d;
}

.inline-alert.danger {
  border: 1px solid #edbdc2;
  background: var(--danger-soft);
  color: #8e2832;
}

.admin-main {
  padding-block: 34px 60px;
}

.admin-heading {
  margin-bottom: 22px;
}

.compact-heading {
  margin-bottom: 18px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 18px;
}

.admin-form-grid .field,
.admin-action-form .field {
  margin-bottom: 0;
}

.admin-form-actions {
  display: flex;
  align-items: flex-end;
}

.admin-user-list {
  display: grid;
  gap: 16px;
}

.admin-user-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  overflow: hidden;
}

.admin-user-summary {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) 2fr;
  gap: 24px;
  padding: 18px 20px;
}

.admin-user-login {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 800;
}

.admin-user-email {
  margin-top: 3px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-user-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.admin-user-facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-user-facts dd {
  margin: 3px 0 0;
  font-weight: 700;
}

.account-status {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.account-status.active {
  background: var(--success-soft);
  color: var(--success);
}

.account-status.blocked,
.account-status.expired {
  background: var(--danger-soft);
  color: var(--danger);
}

.admin-user-actions {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  align-items: end;
  gap: 18px;
  padding: 18px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.admin-action-form {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.admin-action-form:nth-child(2) {
  grid-template-columns: repeat(2, minmax(130px, 1fr)) auto;
}

.admin-status-form {
  display: flex;
  justify-content: flex-end;
}

.table-scroll {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.limited-height {
  max-height: 440px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  font-size: 13px;
}

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

th {
  position: sticky;
  z-index: 1;
  top: 0;
  background: #f5f7fa;
  color: #4e5c6e;
  font-size: 11px;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: #fafcff;
}

td:nth-child(2),
.price-table td:nth-child(n+6) {
  white-space: nowrap;
}

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

.supplier-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}

.supplier-card:disabled {
  opacity: 0.68;
}

.supplier-card legend {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px 10px;
  font-size: 16px;
  font-weight: 800;
}

.supplier-badge {
  padding: 4px 7px;
  background: #e9eef5;
  color: var(--muted);
  font-size: 10px;
}

.field {
  display: block;
  margin-bottom: 13px;
}

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

.field small,
.markup-block small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.optional {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.markup-block {
  padding: 13px;
  margin-top: 4px;
  border: 1px solid #cadaf4;
  border-radius: 9px;
  background: var(--primary-soft);
}

.markup-block .field {
  margin-bottom: 0;
}

.markup-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.help-mark {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid #9ab6e8;
  border-radius: 50%;
  cursor: help;
  font-size: 11px;
}

.calculation-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--border);
}

.vat-field {
  width: 130px;
  margin: 0;
}

.calculation-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.inline-warning {
  margin: 0;
  color: var(--warning);
  font-size: 13px;
  font-weight: 650;
}

.completion-line {
  padding: 11px 14px;
  border-radius: 9px;
  background: var(--success-soft);
  color: var(--success);
}

.price-table-scroll {
  max-height: 570px;
}

.price-table {
  min-width: 1540px;
}

.price-table th:nth-child(4),
.price-table td:nth-child(4) {
  min-width: 240px;
}

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

.document-card {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}

.document-card h3 {
  margin: 15px 0 6px;
  font-size: 18px;
}

.document-card p {
  margin: 0;
  color: var(--muted);
}

.document-code {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
}

.document-status {
  padding-top: 9px;
  font-size: 12px;
}

.document-card.is-ready {
  border-color: #a9d9c7;
  background: #fbfffd;
}

.document-card.is-ready .document-status {
  color: var(--success);
  font-weight: 700;
}

.new-calculation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.new-calculation h2 {
  font-size: 19px;
}

.new-calculation p {
  margin: 5px 0 0;
  color: var(--muted);
}

.toast-region {
  position: fixed;
  z-index: 50;
  top: 20px;
  left: 50%;
  width: min(520px, calc(100% - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  margin-bottom: 9px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(26, 39, 56, 0.16);
  color: var(--text);
  pointer-events: auto;
}

.toast.success { border-color: #a9d9c7; }
.toast.warning { border-color: #e5c17d; }
.toast.danger { border-color: #e4a5ab; }

.toast button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
}

.app-footer {
  padding: 22px 0 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

.noscript-message {
  position: fixed;
  z-index: 200;
  inset: auto 16px 16px;
  padding: 14px;
  border-radius: 9px;
  background: var(--danger);
  color: #fff;
  text-align: center;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.kp-import-section {
  border-top: 4px solid #88a9c7;
}

.kp-import-upload,
.kp-import-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

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

.compact-loading {
  margin: 0;
}

.compact-summary {
  margin-top: 22px;
}

.summary-wide {
  grid-column: span 2;
}

.kp-import-preview,
.kp-import-suppliers-grid,
.kp-import-options,
.kp-import-actions {
  margin-top: 22px;
}

.kp-import-supplier-card legend > span:first-child {
  max-width: 74%;
  overflow-wrap: anywhere;
}

.kp-import-options {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-muted);
}

.kp-import-actions .document-status {
  margin: 0;
}

@media (max-width: 1020px) {
  .supplier-grid,
  .document-grid {
    grid-template-columns: 1fr;
  }

  .supplier-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }

  .supplier-card legend,
  .markup-block {
    grid-column: 1 / -1;
  }

  .document-card {
    min-height: 180px;
  }

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

  .admin-user-summary,
  .admin-user-actions {
    grid-template-columns: 1fr;
  }

  .admin-status-form {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 24px, 1360px);
  }

  .header-content,
  .section-heading,
  .table-toolbar,
  .calculation-bar,
  .new-calculation,
  .kp-import-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .header-content {
    padding-block: 18px;
  }

  .session-indicator {
    align-self: flex-start;
  }

  main.page-shell {
    padding-top: 18px;
  }

  .stepper {
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    padding: 12px;
  }

  .step {
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
  }

  .step-line {
    display: none;
  }

  .panel {
    padding: 20px 16px;
  }

  .drop-zone {
    flex-direction: column;
    text-align: center;
  }

  .summary-grid,
  .calculation-action {
    align-items: stretch;
    flex-direction: column;
  }

  .supplier-card {
    display: block;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .vat-field,
  .search-field {
    width: 100%;
  }

  .new-calculation .button {
    width: 100%;
  }

  .admin-form-grid,
  .admin-user-facts,
  .admin-action-form,
  .admin-action-form:nth-child(2) {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
