:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #fff8f1;
  --ink: #10131a;
  --muted: #667085;
  --line: #e4e9f2;
  --brand: #ff7600;
  --brand-2: #f26a00;
  --brand-dark: #b64a00;
  --green: #0f8f64;
  --blue: #2563eb;
  --purple: #8b5cf6;
  --red: #c2410c;
  --shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --font-main: Aptos, "Aptos Display", "Segoe UI Variable Text", "Segoe UI", Arial, Helvetica, sans-serif;
  color-scheme: light;
  font-family: var(--font-main);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-main);
  font-weight: 500;
}

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

button {
  cursor: pointer;
}

.portal-app {
  min-height: 100vh;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 12px;
  border-right: 1px solid #e2e8f0;
  background: #fff;
  z-index: 10;
}

.brand {
  display: block;
  width: 164px;
  margin: 0 auto 22px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

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

.nav button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border: 0;
  border-radius: 14px;
  color: #25314a;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.nav button:hover,
.nav button.is-active {
  color: var(--brand-dark);
  background: linear-gradient(135deg, #fff4ea, #fff);
  box-shadow: inset 3px 0 0 var(--brand);
  transform: translateX(2px);
}

.nav svg,
.icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-meta {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 10px;
  padding: 9px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.sidebar-meta strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
}

.sidebar-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.sidebar-name-row strong {
  margin-bottom: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-name-edit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  background: none;
  color: var(--muted);
}

.sidebar-name-edit-button:hover {
  color: var(--brand);
}

.sidebar-name-edit-button .icon {
  width: 14px;
  height: 14px;
}

.sidebar-name-form {
  display: grid;
  gap: 6px;
  margin-bottom: 4px;
}

.sidebar-name-form input {
  min-height: 26px;
  font-size: 12px;
  padding: 0 8px;
}

.sidebar-name-form-actions {
  display: flex;
  gap: 6px;
}

.sidebar-name-form-actions .button-ghost {
  flex: 1;
  min-height: 24px;
  padding: 0 4px;
  font-size: 10.5px;
  white-space: nowrap;
}

.sidebar-meta span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.sidebar-signature {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
}

.sidebar-signature-preview {
  display: block;
  max-width: 100%;
  max-height: 34px;
  padding: 4px 6px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.sidebar-signature-actions {
  display: flex;
  gap: 6px;
}

.sidebar-signature-actions .button-ghost,
.sidebar-signature-actions .file-drop-label {
  flex: 1;
  min-height: 26px;
  padding: 0 4px;
  font-size: 10.5px;
  white-space: nowrap;
}

.main {
  width: min(1760px, calc(100vw - 196px));
  margin: 0 auto;
  padding: 22px clamp(20px, 2vw, 34px) 40px;
}

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

.topbar-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--brand);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 1120px;
  margin-bottom: 0;
  font-size: clamp(28px, 2.25vw, 42px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(17px, 1.25vw, 22px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.12;
}

.muted {
  color: var(--muted);
  line-height: 1.45;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 5px;
}

.pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #ffc18c;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #fff4e9;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.is-green {
  color: #047857;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.status-pill.is-blue {
  color: #1d4ed8;
  border-color: #bfdbfe;
  background: #eff6ff;
}

.status-pill.is-red {
  color: #b45309;
  border-color: #fed7aa;
  background: #fff7ed;
}

.status-pill.is-purple {
  color: #6d28d9;
  border-color: #ddd6fe;
  background: #f5f3ff;
}

/* Typovy stitek (FVE/LPS/Elektro) v radkovem seznamu - stejne barvy jako
   status-pill tony, ale hranatejsi tvar a velka pismena viz mockup radku. */
.type-pill {
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.button,
.button-secondary,
.button-danger,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.button {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #ff982c);
  box-shadow: 0 10px 22px rgba(255, 118, 0, 0.18);
}

.button-secondary {
  color: var(--ink);
  border-color: #d5dce7;
  background: #fff;
}

.button-danger {
  color: #fff;
  background: #c2410c;
}

.button-ghost {
  min-height: 28px;
  padding: 0 8px;
  color: var(--brand-dark);
  background: transparent;
}

.button:hover,
.button-secondary:hover,
.button-danger:hover,
.button-ghost:hover {
  transform: translateY(-1px);
}

.view {
  animation: enterView 320ms ease both;
}

.only-lps .fve-calc-panel,
.only-lps .saved-calc-panel,
.only-fve .lps-calc-panel,
.only-fve .saved-calc-panel {
  display: none;
}

@keyframes enterView {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.panel {
  padding: clamp(10px, 1vw, 14px);
  border: 1px solid #d9dee8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.045);
}

.panel + .panel {
  margin-top: 10px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(300px, 1fr);
  gap: 14px;
  align-items: end;
  margin-bottom: 12px;
}

.section-head.compact-head,
.section-head.inline-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.section-head p:not(.eyebrow) {
  margin-bottom: 0;
}

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

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.dashboard-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: 10px;
  margin-bottom: 10px;
}

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

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

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

.metric {
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  background: #fff;
}

.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  line-height: 1;
}

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

.metric p {
  margin: 5px 0 0;
  font-size: 12px;
}

.metric.is-brand {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #ff982c);
}

.metric.is-brand span,
.metric.is-brand p {
  color: rgba(255, 255, 255, 0.85);
}

.card {
  padding: 10px;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  background: #fff;
}

.card.is-white {
  background: #fff;
}

.invoice-entry-card {
  display: grid;
  gap: 12px;
}

.invoice-entry-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.invoice-entry-head h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.12;
}

.invoice-mode-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 6px;
  min-width: 330px;
  padding: 5px;
  border: 1px solid #d9dee8;
  border-radius: 14px;
  background: #f8fafc;
}

.invoice-mode-option {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.invoice-mode-option:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.invoice-mode-option.is-active {
  color: var(--ink);
  border-color: rgba(255, 113, 0, 0.24);
  background: #fff;
  box-shadow: 0 12px 28px rgba(255, 113, 0, 0.12);
}

.invoice-mode-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--brand);
  background: #fff2e8;
}

.invoice-mode-option strong,
.invoice-mode-option small {
  display: block;
}

.invoice-mode-option strong {
  font-size: 13px;
  line-height: 1.15;
}

.invoice-mode-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.invoice-type-field {
  color: var(--muted);
  background: #f8fafc;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.compact-actions {
  justify-content: flex-end;
  margin: 0 0 10px;
}

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

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

.form-grid.one-col {
  grid-template-columns: 1fr;
  gap: 14px;
}

.tech-params-lockable {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.tech-params-lockable:disabled {
  opacity: 0.55;
}

.select-with-spec {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 6px;
}

.list-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.list-filter-bar select {
  width: auto;
  min-width: 140px;
  min-height: 32px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
}

.list-filter-bar .button-ghost {
  min-height: 32px;
}

.calculation-picker {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: end;
}

.calculation-picker small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.35;
}

.calculation-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 12px;
  align-items: start;
}

.calculation-editor-form .card-actions {
  justify-content: flex-end;
}

.calculation-editor-summary {
  position: sticky;
  top: 94px;
}

.calculation-editor-summary h3 {
  font-size: 22px;
}

.form-subhead {
  margin: 6px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

label {
  display: grid;
  gap: 4px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #ccd5e1;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input,
select {
  min-height: 30px;
  padding: 0 10px;
}

textarea {
  min-height: 70px;
  padding: 8px 10px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 118, 0, 0.11);
}

.full {
  grid-column: 1 / -1;
}

.check-field {
  align-content: center;
  grid-template-columns: auto 1fr;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #ccd5e1;
  border-radius: 8px;
  background: #fff;
}

.check-field input {
  width: 16px;
  min-height: auto;
  padding: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 10px;
  align-items: start;
}

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

.calculations-modern {
  display: grid;
  gap: 18px;
}

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

.calculation-switch-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 12px 14px;
  text-align: left;
  color: var(--text);
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.calculation-switch-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 118, 0, 0.38);
}

.calculation-switch-card.is-active {
  border-color: rgba(255, 118, 0, 0.72);
  background: linear-gradient(135deg, rgba(255, 118, 0, 0.12), rgba(255, 255, 255, 0.96));
}

.calculation-switch-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--brand);
  border-radius: 14px;
  background: #fff3e8;
}

.calculation-switch-card small,
.calculation-switch-card strong,
.calculation-switch-card em {
  display: block;
}

.calculation-switch-card small {
  margin-bottom: 5px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.calculation-switch-card strong {
  font-size: 17px;
  line-height: 1.15;
}

.calculation-switch-card em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
}

.calculation-tab-body {
  min-width: 0;
}

.lps-modern {
  display: grid;
  gap: 18px;
}

.lps-info-card,
.lps-form-card,
.lps-actions-card,
.lps-summary-card {
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.lps-info-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 76px;
  padding: 16px 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.lps-info-card p {
  margin: 0;
}

.fve-mode-switch {
  display: flex;
  justify-content: flex-end;
}

.fve-mode-select {
  display: grid;
  gap: 7px;
  width: min(100%, 280px);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.fve-mode-select > span,
.fve-residence-placeholder > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  height: auto;
  border-radius: 14px;
  color: var(--brand);
}

.fve-mode-select > span {
  gap: 8px;
}

.fve-residence-placeholder > span {
  width: 42px;
  height: 42px;
  background: #fff3e8;
}

.fve-mode-select select {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #d7dee9;
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
}

.fve-mode-select select:focus {
  border-color: rgba(255, 118, 0, 0.72);
  box-shadow: 0 0 0 4px rgba(255, 118, 0, 0.1);
  outline: none;
}

.fve-residence-placeholder {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 42px 24px;
  border: 1px dashed #ffc18a;
  border-radius: 22px;
  background: linear-gradient(135deg, #fffaf5, #fff);
  text-align: center;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.05);
}

.fve-residence-placeholder h2,
.fve-residence-placeholder p {
  max-width: 520px;
  margin: 0;
}

.fve-residence-placeholder h2 {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.04em;
}

.fve-residence-placeholder p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.lps-info-card span,
.lps-card-head span,
.lps-summary-head > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--brand);
  background: #fff3e8;
}

.lps-info-card span {
  width: 48px;
  height: 48px;
}

.lps-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 28%);
  gap: 18px;
  align-items: start;
}

.lps-form-stack {
  display: grid;
  gap: 18px;
}

.lps-form-card {
  padding: 24px;
}

.lps-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.lps-card-head span {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.lps-card-head h2 {
  margin: 0;
  font-size: 18px;
}

.lps-form-grid {
  gap: 14px 16px;
}

.lps-modern label {
  gap: 7px;
  color: #344054;
  font-size: 12px;
  line-height: 1.25;
}

.lps-modern input,
.lps-modern select {
  min-height: 44px;
  padding: 0 13px;
  border-color: #d8e0eb;
  border-radius: 12px;
}

.lps-modern textarea {
  min-height: 92px;
  padding: 13px;
  border-color: #d8e0eb;
  border-radius: 12px;
}

.lps-modern input::placeholder,
.lps-modern textarea::placeholder {
  color: #98a2b3;
}

.lps-modern .check-field {
  min-height: 44px;
  padding: 0 13px;
  border-color: #d8e0eb;
  border-radius: 12px;
}

.lps-modern .button,
.lps-modern .button-secondary {
  min-height: 42px;
  border-radius: 12px;
}

.lps-actions-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px;
}

.lps-summary-card {
  position: sticky;
  top: 22px;
  padding: 24px;
}

.lps-summary-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 20px;
}

.lps-summary-head > span {
  width: 46px;
  height: 46px;
}

.lps-summary-head h2 {
  margin: 6px 0 6px;
  font-size: 30px;
  line-height: 1;
}

.lps-summary-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.lps-summary-list {
  display: grid;
  gap: 10px;
}

.lps-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fbfcff;
  font-size: 13px;
}

.lps-summary-row span {
  color: #344054;
}

.lps-summary-row strong {
  color: var(--ink);
  white-space: nowrap;
}

.lps-summary-total {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), #ff982c);
  box-shadow: 0 18px 36px rgba(255, 118, 0, 0.2);
}

.lps-summary-total span,
.lps-bill-box span {
  display: block;
  font-size: 12px;
  font-weight: 800;
}

.lps-summary-total strong {
  display: block;
  margin-top: 8px;
  font-size: 25px;
  line-height: 1;
}

.lps-summary-total p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 750;
}

.lps-bill-box {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: linear-gradient(135deg, #fbfcff, #fff);
}

.lps-bill-box strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.lps-bill-box p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.lps-summary-actions {
  margin-top: 14px;
}

.lps-summary-actions .button {
  width: 100%;
  justify-content: space-between;
}

.custom-items {
  display: grid;
  gap: 8px;
}

.custom-items-head p {
  margin: 0 0 4px;
  font-weight: 750;
}

.custom-item-labels {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr 0.8fr 0.7fr 0.9fr 40px;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.custom-item-list {
  display: grid;
  gap: 8px;
}

.custom-item-row {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr 0.8fr 0.7fr 0.9fr 40px;
  gap: 8px;
  align-items: center;
}

.custom-item-row input,
.custom-item-row select {
  min-height: 32px;
}

.lps-modern .custom-item-row input,
.lps-modern .custom-item-row select {
  min-height: 40px;
}

.custom-add-button {
  justify-self: start;
  gap: 8px;
  margin-top: 6px;
  color: var(--brand);
  border-color: rgba(255, 118, 0, 0.32);
  background: #fffaf6;
}

.custom-add-button span {
  font-size: 18px;
  line-height: 1;
}

.custom-remove-button {
  width: 36px;
  height: 36px;
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.22);
  background: #fff;
}

.custom-remove-button:hover {
  border-color: rgba(220, 38, 38, 0.45);
  background: #fff5f5;
  transform: translateY(-1px);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 8px 10px;
  border-bottom: 1px solid #edf0f5;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.empty {
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.62);
}

.compact-empty {
  padding: 10px;
  text-align: left;
}

.compact-table {
  border-radius: 8px;
}

.compact-table th,
.compact-table td {
  padding: 7px 9px;
  font-size: 12px;
}

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

.crm-switch-card {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 152px;
  padding: 26px 28px 24px 108px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  color: var(--ink);
  background: linear-gradient(135deg, #fff, #fff9f4);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.055);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.crm-switch-card:hover,
.crm-switch-card.is-active {
  border-color: #ffc18a;
  box-shadow: 0 24px 54px rgba(255, 118, 0, 0.11);
  transform: translateY(-2px);
}

.crm-switch-card.is-active {
  background: linear-gradient(135deg, #fff6ec, #fff);
}

.crm-switch-icon {
  position: absolute;
  left: 28px;
  top: 26px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: var(--brand);
  background: #fff1e5;
}

.crm-switch-icon .icon {
  width: 26px;
  height: 26px;
}

.crm-switch-card strong {
  font-size: 24px;
  line-height: 1.05;
}

.crm-switch-card p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.crm-switch-meta {
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 800;
}

.crm-switch-meta b {
  font-size: 16px;
}

.crm-card-illustration {
  position: absolute;
  right: 26px;
  bottom: 22px;
  opacity: 0.33;
  pointer-events: none;
}

.crm-chart-art {
  display: flex;
  align-items: end;
  gap: 8px;
  width: 122px;
  height: 80px;
}

.crm-chart-art i {
  width: 22px;
  border-radius: 9px 9px 4px 4px;
  background: linear-gradient(180deg, #ffad61, var(--brand));
}

.crm-chart-art i:nth-child(1) {
  height: 36px;
}

.crm-chart-art i:nth-child(2) {
  height: 56px;
}

.crm-chart-art i:nth-child(3) {
  height: 48px;
}

.crm-chart-art i:nth-child(4) {
  height: 72px;
}

.crm-briefcase-art {
  width: 112px;
  height: 76px;
  border: 4px solid rgba(255, 118, 0, 0.42);
  border-radius: 20px;
}

.crm-briefcase-art::before,
.crm-briefcase-art::after {
  position: absolute;
  content: "";
}

.crm-briefcase-art::before {
  top: -18px;
  left: 34px;
  width: 38px;
  height: 20px;
  border: 4px solid rgba(255, 118, 0, 0.42);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
}

.crm-briefcase-art::after {
  top: 33px;
  left: 14px;
  width: 76px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 118, 0, 0.36);
}

.crm-open-section {
  margin-top: 4px;
  animation: enterView 260ms ease both;
}

.crm-workspace {
  display: grid;
  gap: 14px;
}

.crm-main-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.06);
}

.crm-card-titlebar {
  padding-bottom: 2px;
}

.crm-card-titlebar .eyebrow {
  margin: 0;
}

.crm-create-strip {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 0 0 18px;
  border-bottom: 1px solid #eef2f7;
}

.crm-create-strip h3,
.crm-create-strip p {
  margin: 0;
}

.crm-create-strip h3 {
  margin-bottom: 5px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.crm-section-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  color: var(--brand);
  background: #fff1e5;
}

.crm-section-icon .icon {
  width: 24px;
  height: 24px;
}

.crm-create-strip .button,
.crm-form-card .button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), #ff982c);
  box-shadow: 0 16px 26px rgba(255, 118, 0, 0.18);
}

.crm-workspace-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.crm-workspace-form-wide {
  grid-template-columns: 1fr;
}

.crm-form-card {
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.045);
}

.crm-summary-panel {
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #fbfdff);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.045);
}

.crm-workspace-form .crm-summary-panel {
  position: sticky;
  top: 92px;
}

.crm-summary-title h3 {
  margin: 3px 0 12px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.crm-summary-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.crm-workspace-form .crm-summary-cards {
  grid-template-columns: 1fr;
}

.crm-summary-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.045);
}

.crm-summary-card > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
}

.crm-summary-card.is-blue > span {
  color: #2563eb;
  background: #eaf1ff;
}

.crm-summary-card.is-green > span {
  color: #16a34a;
  background: #eaf9ef;
}

.crm-summary-card .icon {
  width: 24px;
  height: 24px;
}

.crm-summary-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.crm-summary-card strong {
  display: block;
  margin: 5px 0 3px;
  font-size: 32px;
  line-height: 1;
}

.crm-summary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.crm-list-section h3 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.crm-list-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}

.crm-list-head h3 {
  margin: 0;
}

.crm-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.filter-chip {
  cursor: pointer;
}

.filter-chip.is-active {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.crm-id {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.crm-empty-state {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 140px;
  padding: 30px;
  border: 1px dashed #ffbf8a;
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  background: linear-gradient(135deg, #fff, #fffaf5);
}

.crm-empty-state span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  color: var(--brand);
  background: #fff1e5;
}

.crm-empty-state .icon {
  width: 25px;
  height: 25px;
}

.crm-empty-state strong {
  color: var(--ink);
  font-size: 16px;
}

.crm-empty-state p {
  margin: 0;
  font-size: 13px;
}

.crm-opportunity-table-wrap,
.crm-order-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.crm-opportunity-table,
.crm-order-table {
  width: 100%;
  min-width: 1160px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.crm-order-table {
  min-width: 1240px;
}

.crm-opportunity-table th,
.crm-order-table th {
  padding: 12px 12px;
  color: var(--muted);
  background: #f8fafc;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.crm-opportunity-table th:first-child,
.crm-order-table th:first-child {
  border-top-left-radius: 16px;
}

.crm-opportunity-table th:last-child,
.crm-order-table th:last-child {
  border-top-right-radius: 16px;
}

.crm-opportunity-table td,
.crm-order-table td {
  height: 64px;
  padding: 9px 12px;
  border-top: 1px solid #edf2f7;
  color: var(--ink);
  font-weight: 800;
  vertical-align: middle;
  white-space: nowrap;
}

.crm-opportunity-table tbody tr,
.crm-order-table tbody tr {
  transition: background 0.16s ease;
}

.crm-opportunity-table tbody tr:hover,
.crm-order-table tbody tr:hover {
  background: #fffaf5;
}

.crm-opportunity-table td small,
.crm-order-table td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.crm-table-title {
  display: block;
  max-width: 180px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
}

.crm-id-pill,
.crm-type-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid #ffc18a;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #fff7ef;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.crm-type-chip {
  color: #1d4ed8;
  border-color: #bfdbfe;
  background: #eff6ff;
}

.crm-opportunity-table .status-pill,
.crm-order-table .status-pill {
  min-height: 24px;
  padding: 0 9px;
  font-size: 11px;
}

.crm-opportunity-table .calc-link,
.crm-opportunity-table .calc-readonly,
.crm-opportunity-table .muted,
.crm-order-table .calc-link,
.crm-order-table .calc-readonly,
.crm-order-table .muted {
  max-width: 150px;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-row-actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.crm-row-actions .button-secondary,
.crm-row-actions .button-danger {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 11px;
}

.partner-picker {
  display: grid;
  grid-column: span 2;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: end;
}

.partner-picker small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.partners-modern {
  display: grid;
  gap: 18px;
}

.partners-main-card {
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.partners-main-card {
  padding: 26px;
}

.partners-title-row,
.partners-form-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.partners-title-row h2,
.partners-form-head h3 {
  margin: 2px 0 6px;
  letter-spacing: -0.03em;
}

.partners-form-card {
  margin: 20px 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.partners-form-head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf2f7;
}

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

.partners-form-grid .full {
  grid-column: 1 / -1;
}

.partners-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.partners-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px;
  gap: 14px;
  align-items: end;
  margin: 18px 0;
}

.partners-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.partners-table {
  width: 100%;
  min-width: 1220px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.partners-table th {
  padding: 12px 12px;
  color: var(--muted);
  background: #f8fafc;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.partners-table th:first-child {
  border-top-left-radius: 18px;
}

.partners-table th:last-child {
  border-top-right-radius: 18px;
}

.partners-table td {
  height: 66px;
  padding: 9px 12px;
  border-top: 1px solid #edf2f7;
  color: var(--ink);
  font-weight: 800;
  vertical-align: middle;
  white-space: nowrap;
}

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

.partners-table tbody tr:hover {
  background: #fffaf5;
}

.partner-id-pill,
.partner-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.partner-id-pill {
  border: 1px solid #ffc18a;
  color: var(--brand-dark);
  background: #fff7ef;
}

.partner-status-pill.is-active {
  border: 1px solid #bbf7d0;
  color: #15803d;
  background: #ecfdf3;
}

.partner-status-pill.is-inactive {
  border: 1px solid #e2e8f0;
  color: var(--muted);
  background: #f8fafc;
}

.partner-company {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.partner-company strong {
  display: block;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.partner-company small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.partner-avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 13px;
  color: var(--brand-dark);
  background: #fff1e5;
  font-weight: 800;
}

.partner-actions {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}

.partner-actions .button-secondary,
.partner-actions .button-danger {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 11px;
}

.partners-empty-state {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 190px;
  padding: 34px;
  border: 1px dashed #ffbf8a;
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  background: linear-gradient(135deg, #fff, #fffaf5);
}

.partners-empty-state span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: var(--brand);
  background: #fff1e5;
}

.partners-empty-state strong {
  color: var(--ink);
  font-size: 16px;
}

.partners-empty-state p {
  margin: 0;
  font-size: 13px;
}

.suppliers-modern {
  display: grid;
  gap: 18px;
}

.suppliers-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.85fr) minmax(520px, 1.75fr) minmax(260px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.suppliers-card,
.suppliers-form-card {
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.suppliers-card {
  min-width: 0;
  padding: 20px;
}

.suppliers-card-head,
.supplier-selected-head,
.supplier-selected-main,
.supplier-head-actions,
.supplier-detail-actions,
.supplier-upload-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.suppliers-card-head,
.supplier-selected-head {
  justify-content: space-between;
  margin-bottom: 16px;
}

.suppliers-card-head h2,
.supplier-selected-head h2,
.supplier-detail-panel h2 {
  margin: 2px 0 0;
  letter-spacing: -0.03em;
}

.supplier-selected-main {
  min-width: 0;
  align-items: center;
}

.supplier-selected-main p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.supplier-head-actions,
.supplier-detail-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.supplier-search,
.suppliers-toolbar label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.supplier-search {
  margin-bottom: 14px;
}

.supplier-search input,
.supplier-search select,
.suppliers-toolbar input,
.suppliers-toolbar select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d7dee9;
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.supplier-list {
  display: grid;
  gap: 8px;
}

.supplier-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.supplier-row:hover,
.supplier-row.is-active {
  border-color: #ffbf8a;
  background: linear-gradient(135deg, #fff8f1, #fff);
  box-shadow: 0 14px 32px rgba(255, 118, 0, 0.08);
  transform: translateY(-1px);
}

.supplier-row strong,
.supplier-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supplier-row strong {
  font-size: 12px;
  font-weight: 800;
}

.supplier-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.supplier-logo,
.supplier-thumb {
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  color: var(--brand);
  background: #fff1e5;
  font-weight: 800;
}

.supplier-logo {
  width: 76px;
  height: 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 10px;
}

.supplier-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.supplier-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.supplier-logo.is-text {
  padding: 0;
  text-align: center;
}

.suppliers-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 150px;
  gap: 12px;
  align-items: end;
  margin: 16px 0;
}

.supplier-table-wrap {
  overflow-x: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.supplier-items-table {
  width: 100%;
  min-width: 740px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}

.supplier-items-table th {
  padding: 11px 10px;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.supplier-items-table th:first-child {
  border-top-left-radius: 18px;
}

.supplier-items-table th:last-child {
  border-top-right-radius: 18px;
}

.supplier-items-table td {
  height: 58px;
  padding: 9px 12px;
  border-top: 1px solid #edf2f7;
  color: var(--ink);
  font-weight: 800;
  vertical-align: middle;
  white-space: nowrap;
}

.supplier-items-table tbody tr {
  cursor: pointer;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.supplier-items-table tbody tr:hover,
.supplier-items-table tbody tr.is-selected {
  background: #fffaf5;
}

.supplier-items-table td strong,
.supplier-items-table td small {
  display: block;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.supplier-items-table td small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 750;
}

.supplier-thumb {
  width: 44px;
  height: 44px;
  border: 1px solid #ffe0c2;
}

.supplier-thumb svg {
  width: 18px;
  height: 18px;
}

.settings-price-groups {
  display: grid;
  gap: 14px;
}

.settings-price-group > summary {
  cursor: pointer;
}

.price-list-table {
  min-width: 0;
}

.price-list-table td:first-child {
  white-space: normal;
  max-width: 320px;
}

.price-list-table select {
  min-width: 220px;
}

.supplier-thumb.is-large {
  width: 100%;
  height: 164px;
  border-radius: 18px;
  background: #fff;
}

.supplier-thumb.is-large svg {
  width: 46px;
  height: 46px;
}

.supplier-category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid #ffc18a;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #fff7ef;
  font-size: 10.5px;
  font-weight: 800;
}

.supplier-category-pill.is-inverter {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #eff6ff;
}

.supplier-category-pill.is-battery {
  border-color: #bbf7d0;
  color: #15803d;
  background: #ecfdf3;
}

.supplier-category-pill.is-accessory {
  border-color: #ddd6fe;
  color: #7e22ce;
  background: #f5f3ff;
}

.supplier-category-pill.is-switchboard {
  border-color: #fed7aa;
  color: #c2410c;
  background: #fff7ed;
}

.supplier-category-pill.is-cable,
.supplier-category-pill.is-breaker {
  border-color: #fde68a;
  color: #a16207;
  background: #fefce8;
}

.supplier-category-pill.is-panel,
.supplier-category-pill.is-structure {
  border-color: #bae6fd;
  color: #0369a1;
  background: #f0f9ff;
}

.supplier-category-pill.is-communication {
  border-color: #c7d2fe;
  color: #4338ca;
  background: #eef2ff;
}

.supplier-category-pill.is-mounting {
  border-color: #e2e8f0;
  color: #475569;
  background: #f8fafc;
}

.supplier-table-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-end;
}

.supplier-table-actions .button-secondary,
.supplier-table-actions .button-danger {
  min-height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 10.5px;
}

.supplier-table-actions.is-icon-only .button-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #d8e0eb;
  border-radius: 12px;
  color: var(--brand-dark);
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.supplier-table-actions.is-icon-only .button-icon:hover {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
  transform: translateY(-1px);
}

.supplier-table-actions.is-icon-only .button-icon.is-danger {
  color: #c2410c;
  border-color: #fed7aa;
  background: #fff7ed;
}

.supplier-table-actions.is-icon-only .button-icon.is-danger:hover {
  color: #fff;
  border-color: #dc2626;
  background: #dc2626;
}

.supplier-table-actions.is-icon-only .button-icon .icon {
  width: 16px;
  height: 16px;
}

.supplier-detail-panel {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
}

.suppliers-card.suppliers-items-panel,
.suppliers-card.supplier-detail-panel {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.suppliers-card.suppliers-items-panel {
  padding: 8px 0 0;
}

.suppliers-card.supplier-detail-panel {
  padding: 0;
}

.supplier-detail-image {
  margin-top: 2px;
}

.supplier-detail-image .supplier-thumb.is-large {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: clamp(190px, 24vw, 300px);
  min-height: 0;
  max-height: none;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.supplier-detail-image .supplier-thumb.is-large img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.supplier-detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.supplier-detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid #e8edf5;
  border-radius: 0;
  background: transparent;
}

.supplier-detail-list dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.supplier-detail-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.supplier-note {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #6b4f3b;
  background: transparent;
  font-size: 12px;
  line-height: 1.55;
}

.supplier-detail-actions {
  display: grid;
}

.suppliers-form-card {
  margin: 16px 0;
  padding: 18px;
  background: linear-gradient(135deg, #fff, #fffaf5);
}

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

.supplier-upload {
  display: grid;
  gap: 8px;
}

.supplier-upload > label {
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.supplier-upload-box {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 136px;
  overflow: hidden;
  border: 1px dashed #ffc18a;
  border-radius: 18px;
  color: var(--muted);
  background: #fffaf5;
  text-align: center;
}

.supplier-upload-box span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: var(--brand);
  background: #fff1e5;
}

.supplier-upload-box strong {
  color: var(--ink);
  font-size: 13px;
}

.supplier-upload-box small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.supplier-upload-box img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: transparent;
}

.supplier-upload-actions {
  justify-content: space-between;
}

.supplier-upload-actions input[type="file"] {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.supplier-upload-actions input[type="file"]::file-selector-button {
  min-height: 32px;
  margin-right: 10px;
  padding: 0 12px;
  border: 1px solid #ffc18a;
  border-radius: 10px;
  color: var(--brand-dark);
  background: #fff7ef;
  font-weight: 800;
  cursor: pointer;
}

.fve-supplier-picker {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #ffe0c2;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #fff8f1);
}

.fve-supplier-picker strong,
.fve-supplier-picker small {
  display: block;
}

.fve-supplier-picker small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.fve-supplier-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 10px;
  align-items: end;
}

.fve-supplier-filters label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.fve-supplier-filters select {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #d8e0eb;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.fve-supplier-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding-right: 4px;
}

.fve-supplier-list button {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 9px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.fve-supplier-list button:hover {
  border-color: #ffbf8a;
  background: #fffaf5;
  transform: translateY(-1px);
}

.fve-supplier-list .supplier-thumb {
  width: 40px;
  height: 40px;
}

.fve-supplier-list strong,
.fve-supplier-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fve-supplier-list strong {
  font-size: 11px;
  font-weight: 800;
}

.fve-supplier-list small {
  font-size: 10px;
}

.crm-filter-select {
  display: grid;
  gap: 5px;
  min-width: 210px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.crm-filter-select select {
  min-height: 30px;
  padding: 0 30px 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

.crm-path-panel {
  display: grid;
  gap: 8px;
  padding: 2px 0 20px;
  border-bottom: 1px solid #eef2f7;
}

.crm-path-panel h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.crm-path-box {
  display: block;
  margin-top: 4px;
  padding: 14px 16px;
  border: 1px solid #ffc18a;
  border-radius: 14px;
  color: var(--brand-dark);
  background: #fff7ef;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 750;
  white-space: normal;
}

.crm-progress-cell {
  display: flex;
  gap: 6px;
  align-items: center;
}

.crm-progress-cell small {
  margin: 0;
  white-space: nowrap;
}

.row-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  justify-content: flex-end;
}

.row-actions .button-secondary,
.row-actions .button-danger {
  min-height: 24px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 12px;
}

.calc-link {
  min-height: 22px;
  padding: 0;
  color: var(--brand-dark);
  font-size: 11px;
}

.calc-readonly {
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.chip.is-compact {
  min-height: 22px;
  padding: 0 7px;
  font-size: 10.5px;
}

code,
.path {
  display: block;
  overflow-wrap: anywhere;
  padding: 12px;
  border: 1px solid #f1d3b8;
  border-radius: 12px;
  color: var(--brand-dark);
  background: #fff8f0;
  font-family: var(--font-main);
  font-size: 13px;
  line-height: 1.45;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #ffc18c;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #fff4e9;
  font-size: 12px;
  font-weight: 800;
}

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

.task-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  background: #fff;
}

.task-row input {
  width: 16px;
  min-height: 16px;
}

.progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0e7dd;
}

.compact-progress {
  width: 96px;
  height: 7px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.quick-action {
  min-height: 50px;
  padding: 8px 10px;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.quick-action strong,
.quick-action span {
  display: block;
}

.quick-action span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.quick-action:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 18px rgba(255, 118, 0, 0.1);
  transform: translateY(-1px);
}

.dashboard-v2 {
  display: grid;
  gap: 18px;
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-stat-card,
.dashboard-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.dashboard-stat-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  min-height: 142px;
  gap: 14px;
  align-items: start;
  padding: 24px 22px;
}

.dashboard-stat-icon,
.dashboard-activity-icon,
.dashboard-quick-tile span,
.dashboard-empty-calendar span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}

.dashboard-stat-icon {
  width: 54px;
  height: 54px;
  background: #fff3e8;
  color: var(--brand);
}

.dashboard-stat-card.is-blue .dashboard-stat-icon,
.dashboard-activity-icon.is-blue {
  color: var(--blue);
  background: #eff6ff;
}

.dashboard-stat-card.is-green .dashboard-stat-icon,
.dashboard-activity-icon.is-green {
  color: #16a34a;
  background: #ecfdf3;
}

.dashboard-stat-card.is-purple .dashboard-stat-icon,
.dashboard-activity-icon.is-purple {
  color: var(--purple);
  background: #f3ecff;
}

.dashboard-stat-card.is-red .dashboard-stat-icon,
.dashboard-activity-icon.is-red {
  color: #dc2626;
  background: #fef2f2;
}

.dashboard-stat-card h3 {
  margin: 1px 0 10px;
  color: #344054;
  font-size: 13px;
  line-height: 1.25;
}

.dashboard-stat-card strong {
  display: block;
  color: var(--ink);
  font-size: 32px;
  line-height: 0.95;
}

.dashboard-stat-card p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.dashboard-sparkline {
  position: absolute;
  right: 20px;
  bottom: 18px;
  display: flex;
  align-items: end;
  gap: 5px;
  height: 42px;
  opacity: 0.72;
}

.dashboard-sparkline i {
  display: block;
  width: 5px;
  border-radius: 999px;
  background: currentColor;
}

.dashboard-sparkline i:nth-child(1) { height: 12px; }
.dashboard-sparkline i:nth-child(2) { height: 24px; }
.dashboard-sparkline i:nth-child(3) { height: 16px; }
.dashboard-sparkline i:nth-child(4) { height: 34px; }
.dashboard-sparkline i:nth-child(5) { height: 22px; }

.dashboard-stat-card.is-orange .dashboard-sparkline { color: var(--brand); }
.dashboard-stat-card.is-blue .dashboard-sparkline { color: var(--blue); }
.dashboard-stat-card.is-green .dashboard-sparkline { color: #16a34a; }
.dashboard-stat-card.is-purple .dashboard-sparkline { color: var(--purple); }
.dashboard-stat-card.is-red .dashboard-sparkline { color: #dc2626; }

.dashboard-wide-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
}

.dashboard-wide-grid.is-lower {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.dashboard-card {
  padding: 26px;
}

.dashboard-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.dashboard-card-head h2 {
  font-size: 21px;
}

.dashboard-card-head p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-activity-list {
  display: grid;
  gap: 14px;
}

.dashboard-activity {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 58px;
}

.dashboard-activity-icon {
  width: 42px;
  height: 42px;
  color: var(--brand);
  background: #fff3e8;
}

.dashboard-activity strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.dashboard-activity p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.dashboard-activity time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.dashboard-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  margin-top: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #344054;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.dashboard-link-button:hover,
.dashboard-quick-tile:hover {
  border-color: #ffb06a;
  box-shadow: 0 14px 28px rgba(255, 118, 0, 0.11);
  transform: translateY(-2px);
}

.dashboard-calendar {
  min-height: 320px;
}

.dashboard-empty-calendar {
  display: grid;
  place-items: center;
  min-height: 210px;
  padding: 28px;
  border: 1px dashed #d6deea;
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  background: linear-gradient(135deg, #fbfcff, #fff);
}

.dashboard-empty-calendar span {
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  color: #64748b;
  background: #f1f5f9;
}

.dashboard-empty-calendar strong {
  color: var(--ink);
  font-size: 17px;
}

.dashboard-empty-calendar p {
  max-width: 320px;
  margin: 8px 0 0;
  font-size: 13px;
}

.calendar-workflow-list {
  display: grid;
  gap: 12px;
}

.calendar-workflow-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 12px;
  border: 1px solid #e4e9f2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

.calendar-workflow-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--brand);
  background: #fff3e8;
}

.calendar-workflow-item strong {
  display: block;
  font-size: 14px;
}

.calendar-workflow-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-order-overview {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.dashboard-donut {
  position: relative;
  display: grid;
  place-items: center;
  width: 172px;
  height: 172px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 52%, transparent 53%),
    conic-gradient(
      var(--brand) 0 var(--offer),
      #60a5fa var(--offer) var(--active),
      #86d39a var(--active) var(--completed),
      #a78bfa var(--completed) 100%
    );
}

.dashboard-donut span {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: #fff;
}

.dashboard-donut strong {
  font-size: 34px;
  line-height: 1;
}

.dashboard-donut small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-legend {
  display: grid;
  gap: 14px;
}

.dashboard-legend-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: #344054;
  font-size: 13px;
}

.dashboard-legend-row strong {
  color: var(--ink);
  font-size: 13px;
}

.dashboard-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--brand);
}

.dashboard-dot.is-blue { background: #60a5fa; }
.dashboard-dot.is-green { background: #86d39a; }
.dashboard-dot.is-purple { background: #a78bfa; }
.dashboard-dot.is-red { background: #f87171; }

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

.dashboard-quick-tile {
  display: grid;
  place-items: center;
  gap: 13px;
  min-height: 132px;
  padding: 18px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.055);
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.dashboard-quick-tile span {
  width: 52px;
  height: 52px;
  color: var(--brand);
  background: #fff3e8;
}

.dashboard-quick-tile strong {
  font-size: 13px;
  line-height: 1.25;
}

.job-list {
  display: grid;
  gap: 6px;
}

.job-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 6px;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  background: #fff;
}

.job-row-main {
  display: grid;
  grid-template-columns: 88px minmax(220px, 1fr) auto 100px 100px;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 5px 7px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.job-row-main:hover strong {
  color: var(--brand-dark);
}

.job-row-main small,
.job-money {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.job-id {
  color: var(--brand-dark);
  font-weight: 800;
}

.job-row-actions {
  display: flex;
  gap: 4px;
}

.job-progress {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f5;
}

.job-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #ffad4d);
}

.danger-text {
  color: #b42318;
}

.job-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 10px;
}

.job-invoice-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

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

.job-detail-page {
  display: grid;
  gap: 10px;
}

.job-detail-hero {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.job-detail-hero h2 {
  margin-bottom: 3px;
  font-size: 22px;
}

.job-detail-hero p,
.job-detail-hero span {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.job-detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.job-detail-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 10px;
  align-items: start;
}

.job-detail-left,
.job-detail-right {
  display: grid;
  gap: 10px;
}

.job-meta-card {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 7px 9px;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  background: #fff;
}

.job-meta-card small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.job-meta-card strong {
  display: block;
  margin-top: 2px;
  font-size: 12px;
}

.job-meta-card.is-success strong,
.job-meta-card.is-success .job-meta-icon {
  color: #047857;
}

.job-meta-icon {
  color: var(--muted);
}

.job-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.job-crumbs span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #d9dee8;
  border-radius: 999px;
  color: #344054;
  background: #fff;
  font-size: 10.5px;
  font-weight: 800;
}

.job-crumbs span::after {
  content: "->";
  margin-left: 8px;
  color: var(--brand);
}

.job-crumbs span:last-child::after {
  content: "";
  margin: 0;
}

.job-detail-card {
  padding: 10px;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  background: #fff;
}

.job-sharepoint-card .chips {
  margin-top: 8px;
}

.job-accounting {
  padding: 10px;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  background: #fff;
}

.job-partner-panel,
.job-quote-panel,
.job-documents-panel {
  display: grid;
  gap: 10px;
}

.job-partner-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.job-partner-summary {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid #edf0f5;
  border-radius: 10px;
  background: #fbfcff;
  color: var(--muted);
  font-size: 12px;
}

.job-partner-summary strong {
  color: var(--text);
  font-size: 14px;
}

.quote-summary-mini {
  display: grid;
  gap: 2px;
  text-align: right;
}

.quote-summary-mini span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.quote-summary-mini strong {
  color: var(--brand-dark);
  font-size: 18px;
}

.job-quote-list {
  display: grid;
  gap: 8px;
}

.job-quote-row,
.job-quote-new-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 92px 68px 104px 76px 118px auto;
  gap: 8px;
  align-items: end;
}

.job-quote-row {
  padding: 9px;
  border: 1px solid #edf0f5;
  border-radius: 10px;
  background: #fff;
}

.job-quote-row label,
.job-quote-new-grid label {
  min-width: 0;
}

.quote-row-total {
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  background: #fbfcff;
}

.quote-row-total small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.quote-row-total strong {
  display: block;
  margin-top: 2px;
  font-size: 12px;
}

.quote-row-actions {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}

.icon-button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  justify-content: center;
}

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

.job-quote-new-form {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #edf0f5;
}

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

.job-generated-docs {
  display: grid;
  gap: 7px;
}

.job-generated-docs article {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1.3fr);
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid #edf0f5;
  border-radius: 10px;
  background: #fbfcff;
}

.job-generated-docs small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.job-progress-panel h4,
.job-description-panel h4,
.job-upload-panel h4,
.job-accounting h4,
.job-partner-panel h4,
.job-quote-panel h4,
.job-documents-panel h4 {
  margin-bottom: 8px;
}

.job-description-panel,
.job-progress-panel {
  display: grid;
  gap: 8px;
}

.job-description-head,
.job-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.job-description-panel textarea {
  width: 100%;
  min-height: 90px;
  border-radius: 8px;
  background: #fbfcfe;
  resize: vertical;
}

.job-progress-head h4,
.job-description-head h4 {
  margin-bottom: 4px;
}

.job-progress-head p {
  margin-bottom: 0;
  font-size: 12px;
}

.job-progress-head strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  min-height: 28px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  color: #047857;
  background: #ecfdf5;
  font-size: 12px;
}

.job-progress-bar {
  height: 6px;
  overflow: hidden;
  margin: 8px 0 10px;
  border-radius: 999px;
  background: #edf0f5;
}

.job-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #16875d, #34d399);
}

.job-task-list {
  display: grid;
  gap: 6px;
}

.workflow-phase-list {
  display: grid;
  gap: 8px;
}

.workflow-phase-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 128px 136px auto;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid #e4e9f2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

.workflow-phase-row.is-active {
  border-color: #ffbf82;
  background: linear-gradient(135deg, #fff, #fff8f1);
}

.workflow-phase-row.is-done {
  border-color: #b8ebca;
  background: #f7fefb;
}

.workflow-phase-row.is-waiting {
  color: #667085;
}

.workflow-phase-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: var(--brand);
  background: #fff3e8;
}

.workflow-phase-row.is-done .workflow-phase-icon {
  color: #047857;
  background: #dcfce7;
}

.workflow-phase-row strong {
  display: block;
  font-size: 13px;
}

.workflow-phase-row small,
.workflow-phase-term small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.workflow-phase-term strong {
  font-size: 12px;
}

.workflow-phase-status {
  justify-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  color: #7c4a10;
  background: #fff2df;
  font-size: 11px;
  font-weight: 850;
}

.workflow-phase-row.is-done .workflow-phase-status {
  color: #047857;
  background: #dcfce7;
}

.workflow-phase-row.is-waiting .workflow-phase-status {
  color: #667085;
  background: #f2f4f7;
}

.workflow-phase-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  white-space: nowrap;
}

.job-task-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 118px;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  background: #fbfcfe;
  color: #344054;
  font-size: 11px;
  font-weight: 750;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.job-task-row:hover {
  border-color: #c7d0df;
  background: #fff;
  transform: translateX(2px);
}

.job-task-row:has(input:checked) {
  border-color: #bbf7d0;
  background: #f7fefb;
}

.job-task-row input {
  width: 15px;
  min-height: 15px;
  accent-color: #16875d;
}

.job-task-row span {
  display: grid;
  gap: 2px;
}

.job-task-row span small {
  color: var(--muted);
  font-size: 10px;
  text-align: left;
}

.job-task-row small {
  color: var(--muted);
  text-align: right;
}

.job-task-row em {
  justify-self: end;
  padding: 3px 8px;
  border-radius: 999px;
  color: #667085;
  background: #f2f4f7;
  font-size: 10px;
  font-style: normal;
}

.job-task-row:has(input:checked) em {
  color: #047857;
  background: #dcfce7;
}

.job-upload-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.job-upload-form {
  display: grid;
  gap: 8px;
}

.job-upload-controls {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.drop-zone {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  margin: 6px 0;
  padding: 7px;
  border: 1px dashed var(--brand);
  border-radius: 8px;
  background: #fffaf5;
  color: var(--muted);
  font-size: 12px;
}

.job-file-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.job-file-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.5fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 7px;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  background: #fbfcfe;
}

.job-file-row strong,
.job-file-row small {
  display: block;
}

.job-file-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}

.job-file-row code {
  padding: 8px;
  border-radius: 8px;
  font-size: 11px;
}

.job-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #ffad4d);
}

.document-box {
  display: grid;
  gap: 10px;
}

.document-box input[type="file"] {
  padding: 11px;
}

.notice {
  padding: 14px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  color: #9a3412;
  background: #fff7ed;
  line-height: 1.55;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 26px;
  background: rgba(15, 17, 23, 0.52);
  backdrop-filter: blur(8px);
  z-index: 100;
  animation: fadeIn 180ms ease both;
}

.modal {
  width: min(980px, 100%);
  max-height: min(820px, 88vh);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
  animation: modalIn 220ms ease both;
}

.modal.is-wide {
  width: min(1260px, calc(100vw - 36px));
  max-height: min(920px, 92vh);
}

.modal.is-wide .modal-body {
  background: #f8fafc;
}

.modal-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid #edf0f5;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.modal-body {
  padding: 24px;
}

.print-doc {
  color: #111827;
  line-height: 1.6;
}

.print-doc h4 {
  margin: 22px 0 8px;
  font-size: 18px;
}

.print-doc .doc-table {
  margin: 16px 0;
}

.offer-document {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 18px;
  background: #fff;
  font-size: 11px;
  line-height: 1.28;
}

.offer-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 12px;
  align-items: start;
  padding-bottom: 8px;
  border-bottom: 2px solid #111827;
}

.offer-header h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.05;
}

.offer-header img {
  width: 128px;
  justify-self: end;
}

.offer-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
  font-size: 10.5px;
}

.offer-party-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.offer-party-grid section {
  padding: 6px;
  border: 1px solid #d9dee8;
  border-radius: 7px;
}

.offer-party-grid h4 {
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.1;
}

.offer-party-grid p,
.offer-section p,
.offer-signatures p {
  margin: 0 0 2px;
}

.offer-section {
  margin-top: 8px;
}

.offer-section h3,
.offer-signatures h3 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.15;
}

.offer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9.5px;
  line-height: 1.15;
}

.offer-table th {
  padding: 3px 4px;
  color: #fff;
  background: var(--brand);
  border: 1px solid #c95700;
}

.offer-table td {
  padding: 3px 4px;
  border: 1px solid #cfd6e2;
}

.offer-table th:first-child,
.offer-table td:first-child {
  width: 42%;
}

.offer-table td:not(:first-child) {
  text-align: right;
  white-space: nowrap;
}

.offer-table td:first-child strong,
.offer-table td:first-child small {
  display: block;
}

.offer-table td:first-child small {
  margin-top: 0;
  color: #4b5563;
  font-size: 8.6px;
  font-weight: 500;
}

.offer-table tbody tr:last-child td {
  border-bottom: 1px solid #111827;
}

.offer-total {
  width: min(320px, 100%);
  margin: 7px 0 0 auto;
  border: 1px solid #d9dee8;
  border-radius: 7px;
  overflow: hidden;
}

.offer-total div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 5px 8px;
  border-bottom: 1px solid #edf0f5;
}

.offer-total div:last-child {
  border-bottom: 0;
}

.offer-total .is-total {
  background: #fff4e9;
}

.offer-total-footer {
  margin-top: 12px;
}

.offer-signatures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
  padding-top: 8px;
  font-size: 9.5px;
}

.signature-stamp {
  display: block;
  width: 112px;
  height: auto;
  margin-top: 4px;
  object-fit: contain;
}

.signature-line {
  margin-top: 34px !important;
}

.offer-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding-top: 6px;
  border-top: 1px solid #d9dee8;
  color: #111827;
  font-size: 9.5px;
}

.offer-footer span:nth-child(2) {
  text-align: center;
}

.offer-footer span:last-child {
  text-align: right;
}

.access-modern {
  display: grid;
  gap: 18px;
}

.access-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 23%);
  gap: 18px;
  align-items: start;
}

.access-form-card,
.access-tip-card,
.access-list-card {
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.access-form-card {
  padding: 24px;
}

.access-card-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 0.92fr) minmax(320px, 1fr);
  gap: 14px 18px;
  align-items: center;
  padding-bottom: 20px;
  margin-bottom: 18px;
  border-bottom: 1px solid #e7edf5;
}

.access-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  color: var(--brand);
  background: #fff3e8;
}

.access-card-head h2 {
  font-size: 20px;
}

.access-card-head .muted {
  margin: 0;
  font-size: 13px;
}

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

.access-modern label {
  gap: 7px;
  color: #344054;
  font-size: 12px;
  line-height: 1.25;
}

.access-modern input,
.access-modern select {
  min-height: 44px;
  padding: 0 13px;
  border-color: #d8e0eb;
  border-radius: 12px;
}

.access-modern input::placeholder {
  color: #98a2b3;
}

.access-modern input:focus,
.access-modern select:focus {
  border-color: rgba(255, 118, 0, 0.62);
  box-shadow: 0 0 0 4px rgba(255, 118, 0, 0.08);
}

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

.access-modern .check-field {
  min-height: 42px;
  padding: 0 13px;
  border-color: #d8e0eb;
  border-radius: 12px;
  background: #fbfcff;
}

.access-modern .check-field input {
  width: 16px;
  height: 16px;
  min-height: auto;
  padding: 0;
  accent-color: var(--brand);
}

.access-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 16px;
}

.access-actions .button {
  gap: 9px;
  min-height: 42px;
  border-radius: 12px;
}

.access-tip-card {
  position: relative;
  min-height: 300px;
  padding: 24px;
  overflow: hidden;
}

.access-tip-card::before {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -30px;
  width: 154px;
  height: 154px;
  border: 10px solid rgba(255, 118, 0, 0.08);
  border-radius: 30px;
  transform: rotate(2deg);
  pointer-events: none;
}

.access-tip-card h3 {
  margin: 28px 0 16px;
  font-size: 18px;
  text-transform: uppercase;
}

.access-tip-card .muted {
  margin: 0;
  font-size: 14px;
}

.access-list-card {
  padding: 22px;
}

.access-list-card h2 {
  margin-bottom: 18px;
}

.access-user-list {
  display: grid;
  max-width: 980px;
  gap: 12px;
}

.access-user-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
}

.access-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--brand);
  background: #fff3e8;
  font-weight: 800;
}

.access-user-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.access-user-top h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.access-user-top p {
  margin: 0;
}

.access-user-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.access-user-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 12px;
  border: 1px solid #ffc18c;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #fff4e9;
  font-size: 12px;
  font-weight: 800;
}

.access-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 34px;
  border: 1px dashed #f0c7a6;
  border-radius: 18px;
  color: var(--muted);
  background: #fffaf6;
  text-align: center;
}

.access-empty span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: var(--brand);
  background: #fff3e8;
}

.access-empty strong {
  color: var(--ink);
}

.access-empty p {
  margin: 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media print {
  @page {
    size: A4;
    margin: 8mm;
  }

  body {
    background: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .shell,
  .modal-head {
    display: none !important;
  }

  .modal-backdrop {
    position: static;
    display: block;
    padding: 0;
    background: #fff;
    backdrop-filter: none;
  }

  .modal {
    width: 100%;
    max-width: none;
    max-height: none;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .modal-body {
    padding: 0;
  }

  .offer-document {
    width: 100%;
    max-width: 194mm;
    min-height: calc(297mm - 16mm);
    display: flex;
    flex-direction: column;
    padding: 0;
    box-shadow: none;
    font-size: 11px;
    line-height: 1.25;
  }

  .offer-header h2 {
    font-size: 21px;
  }

  .offer-header img {
    width: 124px;
  }

  .offer-party-grid section {
    padding: 5px;
  }

  .offer-section h3,
  .offer-signatures h3 {
    font-size: 13px;
  }

  .offer-table {
    font-size: 10px;
  }

  .offer-table th,
  .offer-table td {
    padding: 3px 4px;
  }

  .signature-stamp {
    width: 108px;
  }

  .signature-line {
    margin-top: 30px !important;
  }

  .offer-total-footer {
    margin-top: auto;
  }

  .offer-footer {
    margin-top: 10px;
    font-size: 10.5px;
  }
}

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

  .sidebar {
    position: static;
    height: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    overflow-x: auto;
  }

  .brand {
    flex: 0 0 138px;
    margin: 0;
  }

  .nav {
    display: flex;
    min-width: max-content;
  }

  .sidebar-meta {
    display: none;
  }

  .main {
    width: min(100%, 1540px);
  }

  .job-quote-row,
  .job-quote-new-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head,
  .split,
  .dashboard-row,
  .dashboard-wide-grid,
  .dashboard-wide-grid.is-lower,
  .dashboard-order-overview,
  .lps-layout,
  .job-detail-layout,
  .job-detail-meta-grid,
  .job-detail-main-grid,
  .job-upload-controls,
  .job-file-row,
  .calculation-editor-layout,
  .doc-layout,
  .crm-switch-grid,
  .crm-workspace-form,
  .partners-form-grid,
  .partners-toolbar,
  .access-layout,
  .access-card-head,
  .invoice-entry-head,
  .grid.two,
  .grid.three,
  .grid.four {
    grid-template-columns: 1fr;
  }

  .invoice-entry-head {
    display: grid;
  }

  .invoice-mode-toggle {
    min-width: 0;
  }

  .dashboard-metrics,
  .quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .access-user-list {
    max-width: none;
  }

  .access-tip-card {
    min-height: auto;
  }

  .custom-item-row,
  .custom-item-labels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .workflow-phase-row,
  .calendar-workflow-item {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .workflow-phase-term,
  .workflow-phase-status,
  .workflow-phase-button,
  .calendar-workflow-item .button-secondary {
    grid-column: 2;
    justify-self: start;
  }

  .job-row-main {
    grid-template-columns: 82px minmax(0, 1fr) auto;
  }

  .job-money,
  .job-progress {
    display: none;
  }

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

  .job-upload-head {
    grid-template-columns: 1fr;
  }

  .dashboard-donut {
    margin: 0 auto;
  }

  .lps-summary-card {
    position: static;
  }

  .crm-workspace-form .crm-summary-panel {
    position: static;
  }

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

  .crm-switch-card {
    min-height: 132px;
    padding: 22px 24px 22px 96px;
  }

  .crm-switch-icon {
    left: 24px;
    top: 22px;
  }

  .crm-card-illustration {
    display: none;
  }

}

@media (max-width: 1320px) {
  .suppliers-grid {
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.45fr);
  }

  .supplier-detail-panel {
    position: static;
    grid-column: 1 / -1;
  }

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

@media (max-width: 980px) {
  .suppliers-grid,
  .suppliers-toolbar,
  .supplier-selected-head,
  .supplier-head-actions {
    grid-template-columns: 1fr;
  }

  .suppliers-grid,
  .supplier-selected-head,
  .supplier-head-actions {
    display: grid;
  }

  .supplier-head-actions {
    justify-content: stretch;
  }

  .supplier-head-actions .button,
  .supplier-head-actions .button-secondary,
  .supplier-head-actions .button-danger,
  .supplier-detail-actions .button,
  .supplier-detail-actions .button-secondary,
  .supplier-detail-actions .button-danger {
    width: 100%;
  }

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

@media (max-width: 720px) {
  .main {
    padding: 18px 12px 42px;
  }

  .topbar,
  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 26px;
  }

  .form-grid,
  .form-grid.two-cols,
  .calculation-picker,
  .calculation-editor-layout,
  .doc-layout,
  .job-detail-main-grid,
  .job-upload-controls,
  .job-file-row,
  .job-invoice-grid,
  .job-detail-meta-grid,
  .job-partner-grid,
  .job-quote-row,
  .job-quote-new-grid,
  .job-generated-docs article,
  .crm-switch-grid,
  .crm-workspace-form,
  .crm-create-strip,
  .crm-summary-cards,
  .partners-form-grid,
  .partners-toolbar,
  .partner-picker,
  .dashboard-stat-grid,
  .dashboard-quick-grid,
  .lps-form-grid,
  .access-form-grid,
  .access-permissions,
  .access-user-card,
  .dashboard-metrics,
  .quick-actions,
  .invoice-mode-toggle,
  .doc-upload-target-row,
  .montazni-parta-add,
  .roi-result-grid {
    grid-template-columns: 1fr;
  }

  .fve-mode-switch {
    justify-content: stretch;
  }

  .fve-mode-select {
    width: 100%;
  }

  .crm-main-card {
    padding: 18px;
  }

  .partners-main-card {
    padding: 18px;
  }

  .partners-form-card {
    padding: 0;
  }

  .partners-title-row,
  .partners-form-head {
    display: grid;
  }

  .partner-picker,
  .partners-form-grid .full {
    grid-column: 1 / -1;
  }

  .partner-stat-grid {
    grid-template-columns: 1fr;
  }

  .crm-switch-card {
    padding: 18px;
  }

  .crm-switch-icon {
    position: static;
  }

  .crm-list-head {
    display: grid;
    justify-items: start;
  }

  .crm-create-strip .button {
    justify-self: start;
  }

  .crm-filter-row {
    justify-content: flex-start;
  }

  .lps-info-card {
    grid-template-columns: 1fr;
  }

  .custom-item-labels {
    display: none;
  }

  .lps-form-card,
  .lps-summary-card,
  .access-form-card,
  .access-tip-card,
  .access-list-card {
    padding: 18px;
  }

  .access-user-top {
    display: grid;
  }

  .access-user-top .button-danger {
    justify-self: start;
  }

  .lps-actions-card {
    display: grid;
  }

  .dashboard-card {
    padding: 18px;
  }

  .dashboard-stat-card {
    min-height: 126px;
    padding: 20px 18px;
  }

  .dashboard-activity {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .dashboard-activity time {
    grid-column: 2;
    justify-self: start;
  }

  .dashboard-donut {
    width: 148px;
    height: 148px;
  }

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

  .calculation-editor-summary {
    position: static;
  }

  .job-task-row {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .job-task-row em {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  th,
  td {
    padding: 12px;
  }
}

@media (max-width: 760px) {
  .calculation-switch-grid {
    grid-template-columns: 1fr;
  }

  .calculation-switch-card {
    min-height: 96px;
    padding: 16px;
  }
}
