:root {
  --sidebar: #063a70;
  --sidebar-dark: #04325f;
  --sidebar-active: #1479d1;
  --primary: #0756a3;
  --primary-hover: #064a8c;
  --secondary: #2a8ce0;
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-soft: #f8fafd;
  --border: #d9e4ef;
  --border-light: #e7eef5;
  --text: #0b315e;
  --muted: #62768e;
  --faint: #8998aa;
  --success: #26b779;
  --success-bg: #d6f4e5;
  --warning: #e3a72f;
  --warning-bg: #fff0be;
  --danger: #e54242;
  --danger-bg: #ffdada;
  --info: #2e8dd8;
  --info-bg: #d9ecfc;
  --violet: #7565d8;
  --violet-bg: #e8e6fb;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(20, 60, 100, 0.06);
  --sidebar-width: 270px;
  --topbar-height: 58px;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  user-select: none;
  -webkit-user-select: none;
}

button,
input,
select,
textarea {
  font: inherit;
  user-select: text;
  -webkit-user-select: text;
}

svg[data-icon] {
  width: 1em;
  height: 1em;
  display: block;
  flex: 0 0 auto;
}

button {
  border: 0;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  transition: grid-template-columns 0.18s ease;
}

.sidebar {
  min-height: 100vh;
  background: var(--sidebar);
  color: #fff;
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease;
}

.brand {
  height: 74px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  background: var(--sidebar-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-company-mark {
  width: 64px;
  height: 48px;
  padding: 4px;
  flex: 0 0 64px;
}

.brand-company-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-name strong {
  font-size: 14px;
  line-height: 1.15;
}

.brand-name span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
  min-width: 0;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav {
  padding: 12px 10px 18px;
  display: grid;
  gap: 3px;
  overflow-y: auto;
}

.nav-section-label {
  padding: 12px 10px 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.48);
}

.nav-button {
  min-height: 39px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 11px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.nav-button:hover,
.nav-button.active {
  background: var(--sidebar-active);
  color: #fff;
}

.nav-button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.nav-button span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
}

.main {
  min-width: 0;
  display: grid;
  grid-template-rows: var(--topbar-height) minmax(0, 1fr);
}

.topbar {
  height: var(--topbar-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.mobile-menu {
  display: inline-grid;
}

.global-search {
  position: relative;
  flex: 1;
  min-width: 160px;
  max-width: 560px;
}

.global-search svg {
  position: absolute;
  width: 17px;
  height: 17px;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.global-search input {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  background: #f9fbfe;
  outline: 0;
}

.global-search input:focus {
  border-color: var(--secondary);
  background: #fff;
}

.topbar-select,
.topbar-date {
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fff;
  color: var(--text);
  padding: 0 10px;
  font-size: 13px;
}

.topbar-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--primary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.topbar-date svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--secondary); }
.topbar-date span { display: block; }
.quote-workspace-notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; margin-bottom: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--info-bg); }
.quote-workspace-notice > div { display: flex; align-items: center; gap: 12px; }
.quote-workspace-notice > div > svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--primary); }
.quote-workspace-notice strong, .quote-workspace-notice small { display: block; }
.quote-workspace-notice strong { font-size: 13px; }
.quote-workspace-notice small { margin-top: 4px; color: var(--muted); font-size: 12px; }
@media(max-width:650px) { .quote-workspace-notice { align-items: flex-start; flex-direction: column; } }

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
}

.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #daeafb;
  color: var(--primary);
  font-weight: 700;
}

.content {
  padding: 22px;
  min-width: 0;
}

.page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.page-title-group {
  min-width: 0;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary);
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 27px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text);
}

.page-subtitle {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  max-width: 900px;
  line-height: 1.48;
}

.header-actions,
.button-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
}

.btn.primary:hover {
  background: var(--primary-hover);
}

.btn.secondary {
  background: #fff;
  color: var(--primary);
  border-color: #bcd0e4;
}

.btn.secondary:hover {
  background: #f5f9fd;
}

.profile-chip { background:transparent; border:0; padding:4px 8px; border-radius:8px; cursor:pointer; font:inherit; }
.profile-chip:hover, .profile-chip:focus-visible { background:var(--info-bg); }
.company-profile-list { display:grid; gap:12px; }
.company-profile-card { display:flex; align-items:center; gap:16px; width:100%; padding:16px; background:var(--surface,#fff); border:1px solid var(--border); border-radius:8px; color:var(--text); text-align:left; cursor:pointer; }
.company-profile-card:hover, .company-profile-card:focus-visible { background:var(--info-bg); border-color:var(--primary); }
.company-profile-card > span:not(.badge) { flex:1; }
.company-profile-card > .badge { flex:none; white-space:nowrap; }
.company-profile-card small { display:block; margin-top:5px; color:var(--muted); }
.company-profile-heading { display:flex; align-items:center; gap:18px; margin-bottom:18px; }
.company-profile-card .doc-logo, .company-profile-heading .doc-logo { width:100px; height:70px; min-width:60px; }
.company-profile-modal .field input:not([type="checkbox"]), .company-profile-modal .field textarea, .company-profile-modal .field select { width:100%; min-width:0; max-width:100%; }
.legal-warning { margin:12px 0; padding:14px; border-radius:8px; background:var(--warning-bg); }
.legal-warning.red { background:var(--danger-bg); color:var(--danger); }
.legal-warning.green { background:var(--success-bg); }
.legal-warning p { margin:8px 0 0; }

.quote-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.quote-process-btn {
  min-width: 160px;
}

.list-record-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.list-delete-btn {
  margin: 3px;
}

.btn.success {
  background: var(--success);
  color: #fff;
}

.btn.danger {
  background: #fff;
  border-color: #f0b7b7;
  color: var(--danger);
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fff;
  color: var(--primary);
  cursor: pointer;
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.action-menu {
  position: relative;
  display: inline-grid;
  place-items: center;
}

.action-menu-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  min-width: 184px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(20, 60, 100, 0.16);
  padding: 6px;
  display: grid;
  gap: 3px;
}

.action-menu-panel button {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  padding: 0 9px;
  cursor: pointer;
  text-align: left;
}

.action-menu-panel button:hover {
  background: var(--info-bg);
  color: var(--primary);
}

.action-menu-panel svg {
  width: 16px;
  height: 16px;
}

.icon-btn.danger-soft {
  color: var(--danger);
  border-color: #f0b7b7;
  background: #fffafa;
}

.icon-btn.success-soft {
  color: var(--success);
  border-color: #b7e6ce;
  background: #f5fff9;
}

.grid {
  display: grid;
  gap: 16px;
}

.kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kpi-card {
  min-height: 128px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  display: grid;
  gap: 10px;
}

.kpi-card-button {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.kpi-card-button:hover {
  border-color: var(--secondary);
  box-shadow: 0 6px 18px rgba(20, 60, 100, 0.12);
  transform: translateY(-1px);
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kpi-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.kpi-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 7px;
}

.kpi-icon svg {
  width: 19px;
  height: 19px;
}

.kpi-value {
  font-size: 23px;
  font-weight: 800;
  line-height: 1.08;
  color: var(--text);
  word-break: break-word;
}

.kpi-foot {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.kpi-foot svg {
  width: 18px;
  height: 18px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}

.panel-header {
  min-height: 52px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
}

.panel-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.panel-subtitle {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

.panel-body {
  padding: 16px;
}

.dashboard-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 16px;
  margin-top: 16px;
}

.chart-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.bar-chart {
  min-height: 188px;
  display: flex;
  align-items: end;
  gap: 11px;
  padding: 14px 4px 0;
}

.bar {
  flex: 1;
  min-width: 22px;
  display: grid;
  align-items: end;
  gap: 8px;
}

.bar-track {
  min-height: 124px;
  display: flex;
  align-items: end;
  background: #eef4fa;
  border-radius: 6px 6px 3px 3px;
  overflow: hidden;
}

.bar-fill {
  width: 100%;
  min-height: 12px;
  background: var(--secondary);
}

.bar:nth-child(2n) .bar-fill {
  background: var(--success);
}

.bar:nth-child(3n) .bar-fill {
  background: var(--warning);
}

.bar-label {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}

.donut {
  width: 138px;
  height: 138px;
  margin: 10px auto 8px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) 0 58%, var(--success) 58% 82%, var(--warning) 82% 100%);
  position: relative;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 27px;
  border-radius: 50%;
  background: #fff;
}

.legend {
  display: grid;
  gap: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.filter-bar input,
.filter-bar select,
.field input,
.field select,
.field textarea {
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #f9fbfe;
  color: var(--text);
  padding: 0 10px;
  outline: 0;
}

.filter-bar input:focus,
.filter-bar select:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--secondary);
  background: #fff;
}

.field input[readonly],
.field input:disabled {
  background: #eef3f8;
  color: #485d72;
  cursor: default;
}

.system-field small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.calc-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.calc-strip div {
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: #f4f8fc;
  padding: 10px 12px;
  display: grid;
  gap: 3px;
}

.calc-strip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.calc-strip strong {
  color: var(--text);
  font-size: 15px;
}

.filter-bar input {
  min-width: min(100%, 280px);
}

.table-wrap {
  overflow-x: auto;
  min-width: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th {
  background: #eaf2f9;
  color: #163a60;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
}

th,
td {
  border-bottom: 1px solid var(--border-light);
  padding: 11px 10px;
  vertical-align: middle;
}

tbody tr {
  cursor: default;
}

tbody tr.clickable-row {
  cursor: pointer;
}

tbody tr.clickable-row:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

tbody tr.clickable-row:hover,
tbody tr.selected {
  background: #e3f0fc;
}

tbody tr.row-inactive {
  opacity: 0.66;
}

tbody tr.row-inactive:hover {
  opacity: 1;
}

.cell-strong {
  font-weight: 800;
  color: var(--text);
}

.muted {
  color: var(--muted);
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

.product-thumb {
  position: relative;
  width: 56px;
  height: 56px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 auto;
}

.product-thumb.small {
  width: 42px;
  height: 42px;
  font-size: 10px;
}

.product-thumb.tiny {
  width: 34px;
  height: 34px;
  font-size: 9px;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: block;
  object-fit: cover;
}

.product-image-status { display:none; }
.product-thumb[data-image-state="loading"] .product-image-status,
.product-thumb[data-image-state="failed"] .product-image-status { display:grid; place-items:center; position:absolute; inset:0; padding:2px; background:#f7f9fb; color:#637483; font-size:9px; font-weight:400; text-align:center; line-height:1.15; }
.product-thumb[data-image-state="failed"] img { visibility:hidden; }
.product-image-retry { display:none; }
.product-thumb[data-image-state="failed"] .product-image-status { padding-bottom:16px; }
.product-thumb[data-image-state="failed"] .product-image-retry { display:block; position:absolute; bottom:0; left:0; width:100%; height:16px; padding:0; border:0; background:#e6eef6; color:#15528c; font-size:13px; cursor:pointer; }
@media print { .product-image-status, .product-image-retry { display:none!important; } }

.barcode-box {
  display: grid;
  gap: 3px;
  min-width: 138px;
  justify-items: start;
}

.barcode-box.compact {
  min-width: 126px;
}

.barcode-box img {
  max-width: 138px;
  max-height: 52px;
  object-fit: contain;
}

.barcode-svg {
  width: 150px;
  height: 74px;
  display: block;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background: #fff;
}

.barcode-box.compact .barcode-svg {
  width: 132px;
  height: 62px;
}

.barcode-bg {
  fill: #fff;
}

.barcode-bars {
  fill: #0a1527;
}

.barcode-svg text {
  fill: #0a1527;
  font-family: Consolas, "Courier New", monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0;
}

.barcode-lines {
  height: 28px;
  display: flex;
  align-items: stretch;
  gap: 1px;
  padding: 3px 4px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background: #fff;
}

.barcode-lines span {
  display: block;
  background: #10233f;
}

.barcode-value {
  min-height: 28px;
  display: flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background: #fff;
  padding: 4px 7px;
  color: var(--text);
  font-weight: 800;
  white-space: normal;
  word-break: break-all;
}

.barcode-box small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  word-break: break-all;
}

.numeric,
.center {
  text-align: center;
}

.right {
  text-align: right;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.badge.green {
  color: #168354;
  background: #cff2df;
}

.badge.blue {
  color: #0869ac;
  background: #d4eafc;
}

.badge.yellow {
  color: #9b6a00;
  background: #ffe9ac;
}

.badge.red {
  color: #d72d2d;
  background: #ffd5d5;
}

.badge.gray {
  color: #627387;
  background: #e7ecf1;
}

.badge.violet {
  color: #5142b9;
  background: var(--violet-bg);
}

.master-detail,
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: 16px;
}

.split-wide {
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.8fr);
}

.detail-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.entity-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.entity-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--info-bg);
  color: var(--primary);
  border-radius: 8px;
  flex: 0 0 auto;
}

.entity-icon svg,
.timeline-dot svg {
  width: 20px;
  height: 20px;
}

.entity-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.entity-title h2 {
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.meta-line {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tabs {
  display: flex;
  gap: 4px;
  margin: 14px 0;
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
}

.tab {
  min-height: 34px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.tab.active {
  color: var(--primary);
  border-color: var(--primary);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.info-item {
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: var(--surface-soft);
}

.info-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 5px;
}

.info-value {
  font-size: 13px;
  color: var(--text);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(100px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.workflow-step {
  min-height: 64px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 7px;
  padding: 10px;
  display: grid;
  gap: 5px;
}

.workflow-step.done {
  border-color: #9ddfc0;
  background: #f2fcf7;
}

.workflow-step.active {
  border-color: var(--secondary);
  background: #f0f8ff;
}

.step-number {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--border-light);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.workflow-step.done .step-number {
  background: var(--success);
  color: #fff;
}

.workflow-step.active .step-number {
  background: var(--secondary);
  color: #fff;
}

.step-name {
  font-size: 12px;
  font-weight: 800;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 5px;
}

.field label {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.field.required label::after {
  content: " *";
  color: var(--danger);
}

.field textarea {
  min-height: 78px;
  padding-top: 8px;
  resize: vertical;
}

.span-2 {
  grid-column: span 2;
}

.span-3 {
  grid-column: 1 / -1;
}

.summary-list {
  display: grid;
  gap: 10px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.summary-row strong {
  color: var(--text);
  font-size: 14px;
}

.summary-row.total {
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
  color: var(--text);
  font-weight: 800;
}

.summary-row.total strong {
  font-size: 20px;
}

.product-manage-summary {
  margin-bottom: 14px;
}

.manage-section {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.section-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.danger-zone {
  border-color: #fecaca;
  background: #fff7f7;
}

.danger-zone p {
  margin: 4px 0 0;
  color: #7f1d1d;
  font-size: 12px;
}

.delete-confirm-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.delete-confirm-row input {
  height: 38px;
  border: 1px solid #f5b7b7;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--text);
  background: #fff;
  font: inherit;
}

.dropzone {
  min-height: 96px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed #abc4dd;
  border-radius: 7px;
  background: #f7fbff;
  color: var(--muted);
  font-size: 12px;
  padding: 16px;
}

.empty-state {
  min-height: 140px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 22px;
}

.timeline {
  display: grid;
  gap: 13px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
}

.timeline-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--info-bg);
  color: var(--primary);
}

.timeline-copy {
  display: grid;
  gap: 3px;
  font-size: 12px;
  color: var(--muted);
}

.timeline-copy strong {
  color: var(--text);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 20, 45, 0.45);
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal {
  width: min(720px, 100%);
  max-height: min(760px, 92vh);
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(0, 20, 45, 0.22);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.wide-modal {
  width: min(940px, 100%);
}

.quote-create-modal { width: min(1240px, 100%); max-height: 94vh; }
.process-confirmation-modal { width: min(480px, 100%); }
.quote-create-modal .split-layout { grid-template-columns:minmax(0,1fr); }
.login-screen { width: 100%; min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #f3f7fc; }
.app-shell:has(.login-screen) { display: block; }
.login-card { width: min(430px, 100%); padding: 32px; background: white; border: 1px solid var(--border-light); border-radius: 12px; box-shadow: 0 15px 45px #17365a14; }
.login-card h1 { font-size: 24px; margin: 20px 0 8px; }
.login-card p { color: var(--muted); }
.login-card label { display: grid; gap: 8px; margin-top: 20px; font-weight: 700; }
.login-card input { width: 100%; height: 44px; padding: 10px; }
.login-card .btn { width: 100%; justify-content: center; margin-top: 12px; }
.login-card .login-error { color: #b42318; min-height: 20px; }
.permission-list { display: grid; gap: 15px; margin: 22px 0; }
.permission-list label { display: flex; gap: 10px; align-items: center; }
.permission-list input { width: 18px; height: 18px; }
.supplier-category-picker { margin-top: 22px; border: 1px solid var(--border-light); border-radius: 8px; padding: 14px; }
.supplier-category-picker summary { cursor: pointer; font-weight: 800; }
.supplier-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; margin-top: 16px; }
.supplier-category-grid label { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; }
.supplier-category-grid input { width: 17px; height: 17px; flex: 0 0 17px; margin: 0; }
.bank-reference-row { padding: 16px; margin-bottom: 14px; border: 1px solid var(--border-light); border-radius: 8px; }
.bank-reference-row > .btn { margin-top: 12px; }
@media (max-width: 700px) { .supplier-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .supplier-category-grid { grid-template-columns: 1fr; } }
@media (max-width: 850px) { .quote-create-modal .split-layout { grid-template-columns: 1fr; } }

.modal-header,
.modal-footer {
  padding: 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-footer {
  border-top: 1px solid var(--border-light);
  border-bottom: 0;
  justify-content: flex-end;
}

.modal-title {
  font-size: 16px;
  font-weight: 800;
}

.modal-body {
  padding: 16px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.modal-note {
  margin-top: 12px;
  border: 1px solid #f1c44e;
  border-radius: 6px;
  background: #fff7d6;
  color: #7a5200;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
}

.order-selector-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.order-selector-search input {
  width: 100%;
}

.order-item-selector-modal .modal-footer {
  flex-wrap: wrap;
}

.order-selector-selection {
  margin-right: auto;
  color: var(--muted);
  font-weight: 600;
}

.quote-product-quantity-modal { width:min(480px,calc(100vw - 32px)); }
.quote-quantity-product { display:flex; gap:12px; align-items:center; margin-bottom:20px; }
.quote-quantity-product strong { display:block; overflow-wrap:anywhere; }
.quote-quantity-product .product-thumb { flex-shrink:0; }
.quote-quantity-subtotal { display:flex; justify-content:space-between; gap:12px; padding-top:14px; border-top:1px solid var(--border-light); }
.quote-product-quantity-modal .modal-footer { flex-wrap:wrap; }

.order-selector-category {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-light);
  border-radius: 7px;
  background: #f7fafd;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.order-selector-table table {
  min-width: 820px;
}

.document-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.doc-tab {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 0 12px;
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
}

.doc-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.doc-tab svg {
  width: 16px;
  height: 16px;
}

.upload-preview-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(180px, auto);
  gap: 12px;
  align-items: stretch;
}

.upload-preview-card {
  border: 1px solid var(--border);
  background: #f7f9fc;
  border-radius: 6px;
  padding: 12px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.upload-preview-card > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.upload-preview-actions {
  display: flex;
  align-items: end;
}

.empty-state.compact {
  min-height: 72px;
  padding: 14px;
}

.document-panel {
  overflow: hidden;
}

.document-action-bar {
  max-width: 980px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.document-action-bar strong {
  color: var(--text);
  font-size: 14px;
}

.document-paper {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  color: #081f3d;
  padding: 28px;
  border: 1px solid var(--border-light);
  box-shadow: inset 0 0 0 1px #fff;
}

.quote-paper {
  max-width: 920px;
  min-height: 1120px;
  padding: 34px 34px 130px;
  font-family: Arial, Helvetica, sans-serif;
}

.quote-company-header {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 0 0 26px;
}

.quote-logo {
  width: 230px;
  min-height: 166px;
  height: 166px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.quote-logo img {
  min-height: auto;
}

.quote-company-details h2 {
  margin: 0 0 6px;
  color: #081f3d;
  font-size: 24px;
  line-height: 1.1;
  text-transform: uppercase;
}

.quote-company-details p {
  margin: 3px 0;
  color: #475a70;
  font-size: 15px;
  line-height: 1.25;
}

.quote-title-block {
  display: grid;
  justify-items: start;
  gap: 9px;
  margin: 0 0 24px 2px;
  text-transform: uppercase;
}

.quote-title-block h2 {
  margin: 0;
  color: var(--primary);
  font-size: 19px;
  line-height: 1;
}

.quote-title-block strong {
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  padding: 6px 9px;
  font-size: 14px;
  line-height: 1;
}

.quote-client-box {
  min-height: 110px;
  background: #eef1f5;
  border-radius: 4px;
  padding: 12px 16px 16px;
  display: grid;
  gap: 6px;
  align-content: start;
}

.quote-client-box strong {
  color: #081f3d;
  font-size: 21px;
  line-height: 1.1;
}

.quote-client-box span {
  color: #4f6072;
  font-size: 15px;
}

.quote-info-box {
  margin: 6px 0 12px;
  border-top: 3px solid #6d7f91;
  background: #eef1f5;
  border-radius: 4px;
  padding: 13px 16px;
  display: grid;
  gap: 9px;
}

.quote-info-box div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
  gap: 18px;
  align-items: center;
}

.quote-info-box span {
  color: #4f6072;
  font-size: 15px;
}

.quote-info-box strong {
  color: #081f3d;
  font-size: 19px;
  line-height: 1.1;
  text-align: right;
}

.quote-table-wrap {
  margin-top: 12px;
}

.quote-document-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.quote-document-table th {
  background: #063668;
  border-color: #9aabbd;
  padding: 10px 8px;
  font-size: 15px;
}

.quote-document-table td {
  height: 64px;
  vertical-align: middle;
}

.quote-document-table small {
  color: #081f3d;
  font-size: 12px;
}

.product-thumb.quote {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border-radius: 7px;
  background: #fff;
}

.quote-total-box {
  width: min(430px, 100%);
  margin-top: 16px;
}

.quote-total-box div {
  padding: 9px 12px;
  font-size: 18px;
}

.quote-total-box .total {
  font-size: 20px;
  letter-spacing: 0;
}

.doc-company-header {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr) minmax(150px, auto);
  gap: 18px;
  align-items: start;
  border-bottom: 2px solid #6d7f91;
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.doc-logo {
  width: 170px;
  min-height: 92px;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--primary);
  font-weight: 900;
  border: 0;
  padding: 0;
  overflow: hidden;
}

.doc-logo img {
  width: 100%;
  height: 100%;
  min-height: 78px;
  object-fit: contain;
  display: block;
}

.doc-logo-fallback {
  min-height: 76px;
  background: #e8f1fb;
  border: 2px solid var(--primary);
  border-radius: 4px;
  padding: 6px;
  font-size: 22px;
}

.invoice-company-strip {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px 0 16px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.invoice-company-strip > div:last-child {
  display: grid;
  gap: 3px;
}

.invoice-company-strip strong {
  color: var(--text);
  font-size: 15px;
  text-transform: uppercase;
}

.invoice-company-strip span {
  color: var(--muted);
  font-size: 12px;
}

.invoice-logo {
  width: 140px;
  min-height: 76px;
}

.doc-company-header h2 {
  margin: 0 0 2px;
  font-size: 20px;
  line-height: 1.15;
  text-transform: uppercase;
}

.doc-company-header p {
  margin: 2px 0;
  color: #4f6072;
  font-size: 12px;
}

.doc-number {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-transform: uppercase;
}

.doc-number span {
  color: var(--primary);
  font-size: 15px;
  font-weight: 900;
}

.doc-number strong {
  background: var(--primary);
  color: #fff;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 12px;
}

.doc-meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  gap: 18px;
  margin-bottom: 14px;
}

.doc-client-box,
.doc-info-box {
  background: #f1f3f6;
  padding: 12px;
  border-radius: 4px;
  display: grid;
  gap: 5px;
}

.doc-client-box span,
.doc-info-box span {
  color: #52657a;
  font-size: 12px;
}

.doc-info-box div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.document-table th {
  background: #052f62;
  color: #fff;
}

.document-table td,
.document-table th {
  border: 1px solid #9daebe;
  padding: 8px;
}

.document-total-box {
  width: min(360px, 100%);
  margin: 14px 0 0 auto;
  border: 1px solid #8394a7;
}

.document-total-box div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  border-bottom: 1px solid #d6e0ea;
}

.document-total-box div:last-child {
  border-bottom: 0;
}

.document-total-box .total {
  background: #052f62;
  color: #fff;
  font-weight: 900;
}

.signature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, auto);
  gap: 18px;
  align-items: end;
  margin-top: 26px;
}

.signature-row > div:first-child {
  border-top: 1px solid #6d7f91;
  padding-top: 8px;
  display: grid;
  gap: 3px;
}

.signature-row span {
  color: #52657a;
  font-size: 12px;
}

.seal {
  min-height: 72px;
  border: 2px solid rgba(7, 86, 163, 0.35);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  color: rgba(7, 86, 163, 0.75);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 12px;
}

.portal-file-grid {
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.portal-file-grid div {
  border: 1px solid #d6e0ea;
  border-radius: 4px;
  padding: 10px;
  display: grid;
  gap: 4px;
}

.portal-file-grid span,
.file-preview-note {
  color: #52657a;
  font-size: 12px;
}

.conduce-intro {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.conduce-intro > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.conduce-paper h3,
.technical-title h2 {
  text-align: center;
  text-transform: uppercase;
  margin: 18px 0 12px;
  letter-spacing: 0;
}

.technical-title p {
  margin: 0 0 12px;
  font-size: 13px;
}

.toast-stack {
  position: fixed;
  top: 74px;
  right: 20px;
  z-index: 40;
  display: grid;
  gap: 8px;
}

.toast {
  min-width: 260px;
  max-width: 360px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0, 30, 70, 0.14);
  color: var(--text);
  font-size: 13px;
}

.toast svg {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex: 0 0 auto;
}

.toast.toast-error { border-color: #f1c7ca; background: #fff7f7; }
.toast.toast-error svg { color: var(--danger); }

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.module-card {
  min-height: 152px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.module-card .entity-icon {
  width: 38px;
  height: 38px;
}

.inventory-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.category-card {
  min-height: 86px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.category-card:hover {
  border-color: #bcd0e4;
  background: #fafdff;
}

.category-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--info-bg);
  color: var(--primary);
}

.category-icon svg {
  width: 20px;
  height: 20px;
}

.category-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.category-copy strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.category-copy span {
  color: var(--muted);
  font-size: 12px;
}

.inventory-category-stack {
  display: grid;
  gap: 16px;
}

.catalog-category-stack {
  margin-top: 16px;
}

.inventory-category-panel {
  scroll-margin-top: 78px;
}

.category-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.category-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-stack {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: wrap;
}

.aging-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.aging-card {
  min-height: 94px;
  display: grid;
  gap: 8px;
  align-content: center;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.aging-card .badge {
  justify-self: start;
}

.aging-card strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.1;
}

.aging-card small {
  color: var(--muted);
  font-size: 12px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.report-list {
  display: grid;
  gap: 9px;
}

.report-item {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--text);
  background: var(--surface-soft);
  font-size: 13px;
}

.report-item.selected {
  border-color: var(--primary);
  background: var(--info-bg);
}

.document-viewer {
  align-self: start;
}

.file-preview {
  display: grid;
  gap: 12px;
}

.file-preview-bar {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-soft);
  padding: 8px 10px;
  font-size: 12px;
}

.file-preview-bar span {
  color: var(--primary);
  font-weight: 900;
}

.file-preview-paper {
  min-height: 360px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  padding: 22px;
  color: var(--text);
  line-height: 1.55;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.settings-wide {
  grid-column: 1 / -1;
}

.form-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.legal-doc-form {
  margin-top: 16px;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.switch-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}

.toggle {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: var(--success);
  position: relative;
  flex: 0 0 auto;
}

.toggle::after {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  right: 2px;
}

.drawer-open .sidebar {
  transform: translateX(0);
}

@media (min-width: 861px) {
  .sidebar-collapsed .app-shell {
    grid-template-columns: 0 minmax(0, 1fr);
  }

  .sidebar-collapsed .sidebar {
    width: var(--sidebar-width);
    transform: translateX(-100%);
    pointer-events: none;
    overflow: hidden;
  }
}

@media (max-width: 1180px) {
  .kpi-grid,
  .chart-row,
  .module-grid,
  .inventory-category-grid,
  .aging-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-lower,
  .master-detail,
  .split-layout,
  .split-wide,
  .report-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .workflow-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    z-index: 25;
    width: var(--sidebar-width);
    transform: translateX(-100%);
    transition: transform 0.18s ease;
  }

  .mobile-menu {
    display: inline-grid;
  }

  .topbar {
    padding: 0 12px;
  }

  .topbar-select,
  .topbar-date,
  .user-chip span {
    display: none;
  }

  .content {
    padding: 16px;
  }

  .page-header {
    grid-template-columns: 1fr;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .form-grid,
  .info-grid,
  .kpi-grid,
  .chart-row,
  .module-grid,
  .order-selector-toolbar,
  .inventory-category-grid,
  .upload-preview-grid,
  .aging-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .document-action-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-file-grid {
    grid-template-columns: 1fr;
  }

  .calc-strip {
    grid-template-columns: 1fr;
  }

  .delete-confirm-row {
    grid-template-columns: 1fr;
  }

  .doc-company-header,
  .quote-company-header,
  .doc-meta-grid,
  .signature-row {
    grid-template-columns: 1fr;
  }

  .doc-number {
    justify-items: start;
  }

  .quote-paper {
    min-height: auto;
    padding: 18px;
  }

  .doc-logo {
    width: min(190px, 100%);
  }

  .quote-logo {
    width: min(230px, 100%);
  }

  .quote-info-box div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .quote-info-box strong {
    text-align: left;
  }

  .quote-client-box {
    min-height: auto;
  }

  .invoice-company-strip {
    grid-template-columns: 1fr;
  }

  .document-paper {
    padding: 16px;
  }

  .product-cell {
    min-width: 180px;
  }

  .category-card .badge {
    grid-column: 2;
    justify-self: start;
  }

  .span-2,
  .span-3 {
    grid-column: auto;
  }

  .workflow-steps {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 23px;
  }
}

@media print {
  .no-print,
  .list-delete-btn {
    display: none !important;
  }
  body {
    background: #fff;
    user-select: text;
    -webkit-user-select: text;
  }

  body::before,
  .sidebar,
  .topbar,
  .page-header,
  .document-tabs,
  .document-action-bar,
  .document-panel + .panel,
  .toast-stack {
    display: none !important;
    content: none !important;
  }

  .app-shell,
  .main,
  .content {
    display: block !important;
    min-height: auto !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .document-panel,
  .document-viewer {
    border: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .document-panel .panel-body,
  .document-paper,
  .file-preview-paper {
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
  }

  .document-paper .table-wrap,
  .file-preview-paper .table-wrap {
    overflow: visible !important;
  }

  /* The printable modal is inside #app; keep that ancestor visible. */
  body.invoice-print-mode .app-shell > :not(.modal-backdrop) {
    display: none !important;
  }

  body.invoice-print-mode .modal-backdrop {
    position: static !important;
    inset: auto !important;
    display: block !important;
    padding: 0 !important;
    background: #fff !important;
  }

  body.invoice-print-mode .modal,
  body.invoice-print-mode .invoice-preview-modal {
    width: 100% !important;
    max-height: none !important;
    display: block !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
  }

  body.invoice-print-mode .modal-header,
  body.invoice-print-mode .modal-footer {
    display: none !important;
  }

  body.invoice-print-mode .modal-body {
    padding: 0 !important;
    overflow: visible !important;
  }
}
.customer-information-status { margin-top:6px; font-weight:400; }
.customer-information-status .muted { margin-top:4px; }
.form-grid > .field { min-width:0; }
.field input[type="file"] { width:100%; max-width:100%; min-width:0; }
.purchase-upload-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:14px; }
.purchase-upload-card { display:grid; align-content:start; gap:10px; border:1px solid var(--border, #dce5ee); padding:14px; border-radius:8px; min-width:0; }
.purchase-upload-card label { font-weight:700; }
.purchase-upload-card input { width:100%; font-size:12px; }
.purchase-upload-card .muted { overflow-wrap:anywhere; }
.purchase-warranty { display:flex; align-items:center; gap:9px; }
@media (max-width:760px) { .purchase-upload-grid { grid-template-columns:1fr; } }

.expense-modal .field input,
.expense-modal .field select,
.expense-modal .field textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.portal-document-choice {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 0;
}
.invoice-preparation-modal .field input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.invoice-internal-summary {
  margin-bottom: 20px;
}
.revision-toolbar { display:flex; gap:16px; align-items:end; flex-wrap:wrap; margin:16px 0; }
.revision-toolbar .field { width:190px; }
.revision-kpis { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:18px 0; }
.revision-kpi { text-align:left; display:flex; flex-direction:column; padding:20px; gap:10px; color:var(--text,#123651); min-width:0; }
button.revision-kpi { cursor:pointer; border:1px solid #dce6ef; background:white; }
button.revision-kpi:hover { background:#edf5ff; border-color:#2473bf; }
.revision-kpi strong { font-size:26px; overflow-wrap:anywhere; }
.revision-kpi small { color:#536e83; line-height:1.5; }
.revision-columns { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.revision-modal .field input,.revision-modal .field select,.revision-modal .field textarea { width:100%; min-width:0; max-width:100%; }
.revision-modal .form-grid { gap:16px; }
.revision-modal .modal-body { overflow:auto; }
.revision-modal textarea { min-height:120px; }
.revision-modal input[type=number] { min-width:105px; }
.revision-letter-text { white-space:pre-wrap; line-height:1.7; margin:20px 0; }
.manual-steps { padding-left:25px; line-height:1.7; }
.manual-steps li { padding:8px 0; }
.document-notes { line-height:1.6; margin:20px 0; white-space:pre-wrap; }
.document-signatures { display:grid; grid-template-columns:1fr 1fr; gap:60px; margin:70px 0 25px; text-align:center; }
.document-signatures div { display:flex; flex-direction:column; gap:10px; }
.delivery-acknowledgment { margin-top:24px; line-height:1.6; }
.revision-toolbar input,.revision-modal input,.revision-modal select { min-height:38px; }
@media(max-width:900px){.revision-kpis{grid-template-columns:repeat(2,minmax(0,1fr));}.revision-columns{grid-template-columns:1fr;}}
@media(max-width:600px){.revision-kpis{grid-template-columns:1fr;}.revision-toolbar .field{width:100%;}.revision-modal .form-grid{grid-template-columns:1fr;}.revision-modal .span-3{grid-column:auto;}.document-signatures{gap:15px;}.revision-modal{width:calc(100vw - 16px);}.revision-modal .modal-footer{flex-wrap:wrap;}}
@media print {.revision-toolbar,.no-print{display:none!important;}.revision-modal .document-paper{box-shadow:none;border:0;}.document-signatures{break-inside:avoid;}}
.nav-section-toggle { width:100%; display:flex; justify-content:space-between; align-items:center; border:0; background:transparent; text-align:left; cursor:pointer; }
.nav-section-toggle:hover { color:#fff; }

/* Tasks are grouped by their existing due dates; calendar navigation is UI only. */
.task-calendar-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:18px; margin-bottom:12px; }
.task-calendar-navigation { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.task-calendar-navigation h2 { margin:0 0 0 10px; font-size:23px; color:#123f68; }
.task-calendar-navigation .btn { min-height:40px; }
.task-calendar-navigation .btn[aria-label] { min-width:40px; font-size:24px; line-height:1; padding:6px 12px; }
.task-calendar-filters { display:flex; flex-wrap:wrap; gap:10px; }
.task-calendar-filters label { display:grid; gap:5px; color:#56718a; font-size:12px; font-weight:600; }
.task-calendar-filters :is(input,select) { min-width:142px; min-height:40px; padding:7px 10px; border:1px solid #cfdfed; border-radius:7px; color:#174166; background:#fff; font:inherit; }
.task-calendar-summary { color:#59748d; font-size:13px; margin:0 0 18px; }
.task-calendar-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; align-items:start; gap:18px; }
.task-calendar-panel { min-width:0; }
.task-calendar-table { width:100%; table-layout:fixed; border-collapse:collapse; }
.task-calendar-table th { text-align:center; height:42px; padding:10px 4px; background:#f1f6fb; color:#4c6b87; font-size:12px; }
.task-calendar-table td.task-calendar-day { height:140px; padding:6px; vertical-align:top; border:1px solid #e1eaf3; background:#fff; cursor:pointer; }
.task-calendar-table tbody tr:hover { background:transparent; }
.task-calendar-table td.task-calendar-day:hover { background:#f4f9fe; }
.task-calendar-table td.is-other-month { background:#f7f9fc; }
.task-calendar-table td.is-other-month .task-calendar-day-number { color:#879aab; }
.task-calendar-table td.is-selected { background:#edf6ff; box-shadow:inset 0 0 0 2px #3684c6; }
.task-calendar-day-number { display:flex; align-items:center; justify-content:center; width:30px; height:30px; border:0; background:transparent; border-radius:50%; margin:0 0 5px; color:#244d72; font:inherit; font-size:13px; font-weight:700; cursor:pointer; }
.is-today .task-calendar-day-number { background:#1269b0; color:#fff !important; }
.task-calendar-day-number[aria-pressed="true"] { outline:2px solid #90bee2; outline-offset:1px; }
.task-calendar-event { display:block; width:100%; text-align:left; padding:10px 11px; margin:0 0 9px; border:1px solid #dde7ef; border-left:3px solid var(--task-accent,#3977b5); border-radius:6px; background:var(--task-tint,#f1f7fc); color:#254764; font:inherit; cursor:pointer; }
.task-calendar-event:hover { filter:brightness(.975); border-color:var(--task-accent,#3977b5); }
.task-calendar-event.is-compact { padding:4px 5px; margin-bottom:4px; }
.task-event-title { display:block; font-weight:650; font-size:13px; line-height:1.3; overflow-wrap:anywhere; }
.is-compact .task-event-title { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; }
.task-event-meta,.task-event-state,.task-event-company { display:block; font-size:11px; line-height:1.4; margin-top:4px; color:#5d7386; overflow-wrap:anywhere; }
.is-compact .task-event-meta { display:none; }
.is-compact .task-event-state { font-size:10px; margin-top:1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.task-status-pending { --task-accent:#367cc0; --task-tint:#eef6ff; }
.task-status-progress { --task-accent:#b58112; --task-tint:#fff9e9; }
.task-status-done { --task-accent:#279069; --task-tint:#edf9f3; }
.task-status-archived { --task-accent:#8191a0; --task-tint:#f3f5f7; }
.task-calendar-event.is-overdue { border-left-color:#bf3945; }
.task-calendar-event.is-overdue .task-event-state { color:#a72b38; }
.task-calendar-more { padding:2px 4px; background:transparent; border:0; color:#1769a9; font:inherit; font-size:11px; font-weight:650; cursor:pointer; }
.task-calendar-legend { display:flex; flex-wrap:wrap; gap:12px 18px; padding:14px; font-size:12px; color:#5b7389; border-top:1px solid #e1eaf3; }
.task-calendar-legend span { display:flex; align-items:center; gap:6px; }
.task-calendar-legend i { width:8px; height:8px; border-radius:50%; background:var(--task-accent); }
.task-calendar-agenda { display:grid; gap:16px; position:sticky; top:88px; max-height:calc(100dvh - 108px); overflow-y:auto; min-width:0; scrollbar-gutter:stable; }
.task-calendar-agenda-body { padding:14px; }
.task-calendar-agenda .panel-title { line-height:1.45; }
.task-calendar-add { width:100%; justify-content:center; white-space:normal; margin-top:8px; }
.task-calendar-mobile-count { display:none; }
.task-calendar-caption { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.task-calendar-layout :is(button,input,select):focus-visible,.task-calendar-toolbar :is(button,input,select):focus-visible { outline:3px solid #2585d0; outline-offset:2px; }
@media(max-width:1200px) { .task-calendar-layout { grid-template-columns:1fr; }.task-calendar-agenda { position:static; max-height:none; overflow:visible; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; } }
@media(max-width:760px) { .task-calendar-navigation h2 { font-size:20px; }.task-calendar-table td.task-calendar-day { height:114px; padding:4px; }.is-compact .task-event-state { display:none; }.task-calendar-filters { width:100%; }.task-calendar-filters label { flex:1 1 130px; }.task-calendar-filters :is(input,select) { width:100%; min-width:0; }.task-calendar-agenda { grid-template-columns:1fr; } }
@media(max-width:600px) { .task-calendar-table td.task-calendar-day { height:76px; padding:3px 1px; }.task-calendar-day-events { display:none; }.task-calendar-mobile-count { display:block; text-align:center; font-size:9px; color:#54728d; white-space:nowrap; }.task-calendar-day-number { width:100%; height:38px; margin:0 0 3px; border-radius:7px; }.task-calendar-table th { height:34px; font-size:10px; }.task-calendar-navigation { width:100%; }.task-calendar-navigation h2 { font-size:18px; margin-left:4px; }.task-calendar-legend { gap:10px; padding:12px; font-size:11px; } }

.invoice-document-bottom { display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; gap:22px; margin-top:18px; break-inside:avoid; page-break-inside:avoid; }
.invoice-document-bottom > .document-total-box { margin:0 0 0 auto; max-width:100%; }
.invoice-dgii-stamp { margin:0; padding:0; flex:0 1 auto; color:#111; text-align:left; break-inside:avoid; page-break-inside:avoid; }
.invoice-dgii-stamp > a { display:block; width:38mm; height:38mm; padding:3mm; box-sizing:border-box; background:#fff; }
.invoice-dgii-stamp svg { display:block; width:100%; height:100%; }
.invoice-dgii-stamp figcaption { font-size:11px; line-height:1.7; margin-top:5px; color:#111; }
.invoice-fiscal-preview { display:flex; flex-wrap:wrap; align-items:center; gap:24px; padding:18px; margin-top:18px; border:1px solid #d1e4f3; border-radius:8px; background:#f5faff; }
.invoice-fiscal-preview > div { flex:1 1 220px; }
.invoice-fiscal-preview p { line-height:1.7; }
.invoice-fiscal-warning { padding:12px 14px; border:1px solid #eed2a1; border-radius:7px; background:#fff8e9; color:#83551d; line-height:1.5; overflow-wrap:anywhere; }
.invoice-dgii-status { padding:14px 16px; margin:0 0 18px; border:1px solid #eed2a1; border-radius:8px; background:#fff8e9; color:#79511f; }
.invoice-dgii-status.is-verified { border-color:#b8ddc9; background:#eef9f2; color:#226145; }
.invoice-dgii-status p { margin:6px 0; line-height:1.5; }
.invoice-fiscal-modal textarea { resize:vertical; min-height:95px; overflow-wrap:anywhere; }
.invoice-fiscal-modal .modal-footer,.invoice-preview-modal .modal-footer,.company-profile-modal .modal-footer { flex-wrap:wrap; }
@media(max-width:650px) { .invoice-document-bottom { align-items:flex-start; }.invoice-document-bottom > .document-total-box { width:100%; }.invoice-fiscal-modal .form-grid { grid-template-columns:1fr; }.invoice-fiscal-modal .span-3 { grid-column:auto; } }
@media print { .invoice-document-bottom { display:flex !important; gap:5mm; }.invoice-dgii-stamp { min-width:55mm; }.invoice-dgii-stamp > a { width:38mm !important; height:38mm !important; padding:3mm !important; }.invoice-dgii-stamp figcaption { font-size:9pt; }.invoice-document-bottom > .document-total-box { flex:1 1 70mm; max-width:105mm; width:auto; }.invoice-document-bottom .document-total-box div { font-size:11pt; }.invoice-document-bottom .document-total-box .total { font-size:12pt; } }

.quote-express-notice { padding:14px 18px; margin:0 0 18px; border:1px solid #bfdef3; border-left:4px solid #1678bc; border-radius:8px; background:#f1f8fd; color:#19456a; line-height:1.5; }
.quote-express-notice p { margin:6px 0 0; }
.quote-roi-controls { display:flex; flex-wrap:wrap; gap:12px; align-items:flex-end; padding:0 0 16px; }
.quote-roi-controls .field { width:240px; }
.quote-roi-controls p { flex-basis:100%; margin:0; }
.quote-number-input { width:108px; min-height:38px; }
.quote-items-editor-table { width:100%; table-layout:fixed; border-collapse:separate; border-spacing:0; }
.quote-items-editor-table .quote-line-actions-cell { position:static; min-width:0; width:auto; padding:8px 4px; background:#fff; }
.quote-items-editor-table thead .quote-line-actions-cell { z-index:3; background:#eaf2f8; }
.quote-line-actions { display:flex; align-items:center; justify-content:center; gap:4px; }
.quote-line-actions .icon-btn { width:32px; height:36px; flex:none; }
.quote-line-actions .quote-line-remove { color:#b42336; background:#fff3f4; border:1px solid #f1cbd0; }
.quote-items-editor-table :is(.quote-number-input,.quote-roi-input,.quote-quantity-input) { width:100%; min-width:0; max-width:100%; min-height:38px; }
.quote-items-editor-table .quote-tax-control { min-width:0; }
.quote-items-editor-table .product-cell { min-width:0; max-width:none; gap:8px; }
.quote-items-editor-table .product-cell > div { min-width:0; }
.quote-items-editor-table .product-thumb.small { width:36px; height:36px; min-width:36px; flex:none; }
.quote-items-editor-table :is(th,td) { padding:10px 6px; overflow-wrap:anywhere; }
.quote-create-modal :is(.split-layout,.split-layout > *,.panel,.panel-body,.table-wrap) { min-width:0; max-width:100%; }
.quote-create-modal .button-row { flex-wrap:wrap; }
.quote-create-modal .panel-header { flex-wrap:wrap; gap:12px; }
.quote-create-modal .field { min-width:0; }
.quote-create-modal .field :is(input,select,textarea) { width:100%; min-width:0; max-width:100%; }
.quote-items-editor-table th { white-space:normal; }
.quote-item-origin { color:#61788e; font-size:11px; line-height:1.3; margin-top:3px; white-space:normal; overflow-wrap:anywhere; }
@media screen and (max-width:1199px) {
  .quote-items-editor-table { display:block; }
  .quote-items-editor-table :is(colgroup,thead) { display:none; }
  .quote-items-editor-table tbody { display:grid; gap:14px; }
  .quote-items-editor-table tbody tr { position:relative; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; padding:14px; border:1px solid #dce6ef; border-radius:8px; background:#fff; }
  .quote-items-editor-table tbody td { display:block; min-width:0; max-width:100%; padding:0; border:0; text-align:left; }
  .quote-items-editor-table td[data-label]::before { content:attr(data-label); display:block; margin-bottom:6px; font-size:12px; font-weight:700; color:#61788e; }
  .quote-items-editor-table .quote-line-reference { position:absolute; top:19px; left:14px; }
  .quote-items-editor-table tbody .quote-line-actions-cell { position:absolute; top:8px; right:10px; left:auto; width:auto; background:transparent; }
  .quote-items-editor-table .quote-line-product { grid-column:1 / -1; margin-top:34px; padding-bottom:8px; }
  .quote-items-editor-table .quote-line-product .product-cell { width:100%; }
  .quote-items-editor-table .quote-line-product .product-thumb.small { width:44px; height:44px; min-width:44px; }
  .quote-items-editor-table .quote-line-product .product-cell > div:last-child { flex:1; }
  .quote-items-editor-table .quote-tax-control select { min-width:0; }
}
@media screen and (max-width:600px) {
  .quote-create-modal .form-grid { grid-template-columns:minmax(0,1fr); }
  .quote-items-editor-table tbody tr { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 10px; padding:12px; }
  .quote-create-modal .modal-body,.quote-create-modal .panel-body { padding:12px; }
  .quote-create-modal .quote-roi-controls :is(.field,.btn) { max-width:100%; min-width:0; width:100%; white-space:normal; }
  .quote-create-modal .button-row .btn { white-space:normal; }
}
.quote-tax-control { min-width:160px; display:grid; gap:6px; }
.quote-tax-control select,.quote-tax-control input { min-height:38px; width:100%; }
.quote-internal-summary { padding-top:16px; margin-top:16px; border-top:1px solid #dce6ef; }
.quote-internal-preview { margin:20px 0 0; padding:18px; border:1px solid #d5e3ee; background:#f6faff; border-radius:8px; }
.quote-internal-summary .summary-row { padding:8px 0; gap:12px; }
.quote-readonly-note { max-width:380px; font-size:12px; }
.invoice-preview-modal .modal-footer { flex-wrap:wrap; }
.quote-image-upload { padding:14px; background:#f5f9fc; border:1px dashed #b9cfe1; border-radius:8px; }
.quote-image-preview { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.quote-image-preview .product-thumb { width:100px; height:100px; }
.quote-image-preview .product-thumb img { width:100%; height:100%; object-fit:contain; }
.quote-image-preview span { overflow-wrap:anywhere; }
.quote-free-item-modal .modal-body { overflow:auto; }
@media (max-width:700px) { .quote-roi-controls .field { width:100%; }.quote-create-modal .modal-footer { flex-wrap:wrap; }.quote-free-item-modal .form-grid { grid-template-columns:1fr; }.quote-free-item-modal .span-3 { grid-column:auto; } }

/* Guided tour: the live page stays visible and inert beneath the guide. */
body.access-tour-open { overflow:hidden; }
.access-tour-overlay { position:fixed; inset:0; z-index:100; isolation:isolate; }
.access-tour-shade { position:absolute; inset:0; background:rgba(11,35,62,.24); }
.access-tour-highlight { position:fixed; border:3px solid #2c9cf0; border-radius:10px; box-shadow:0 0 0 4px rgba(255,255,255,.8); pointer-events:none; }
.access-tour-highlight[hidden] { display:none; }
.access-tour-card { position:absolute; right:24px; bottom:24px; width:min(480px,calc(100% - 48px)); max-height:calc(100dvh - 48px); display:grid; grid-template-rows:auto minmax(0,1fr) auto auto; background:#fff; border:1px solid #d5e4f2; border-radius:16px; box-shadow:0 22px 70px rgba(9,35,66,.28); color:#173650; overflow:hidden; }
.access-tour-invitation { display:grid; place-items:center; padding:20px; }
.access-tour-invitation .access-tour-card { position:relative; right:auto; bottom:auto; width:min(570px,100%); grid-template-rows:auto minmax(0,1fr) auto; }
.access-tour-header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 22px 10px; border-bottom:1px solid #e4edf5; }
.access-tour-eyebrow { font-weight:700; color:#0863ad; font-size:12px; letter-spacing:.025em; }
.access-tour-header .icon-btn { min-width:40px; min-height:40px; }
.access-tour-body { min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:20px 24px 16px; line-height:1.55; }
.access-tour-body h2 { margin:0 0 10px; font-size:23px; line-height:1.25; color:#0b355e; }
.access-tour-body h2:focus { outline:none; }
.access-tour-body p { margin:0 0 14px; }
.access-tour-welcome { background:#f2f8fd; border:1px solid #dbeaf7; border-radius:10px; padding:16px; margin:18px 0; }
.access-tour-welcome strong { color:#0b548f; }
.access-tour-welcome p { margin:10px 0 0; }
.access-tour-index { display:grid; gap:5px; font-weight:600; font-size:12px; margin:18px 0; }
.access-tour-index select { width:100%; min-width:0; min-height:42px; border:1px solid #bad0e4; border-radius:7px; color:#17416a; background:#f7fbff; padding:8px; font:inherit; font-size:13px; }
.access-tour-points { margin:0; padding-left:23px; font-size:14px; }
.access-tour-points li { padding:0 0 12px 4px; }
.access-tour-points li::marker { color:#0b68b4; font-weight:700; }
.access-tour-body .access-tour-role { display:block; color:#5b7086; font-size:12px; margin:10px 0 0; }
.access-tour-error { color:#a52032; font-size:13px; margin-top:14px !important; }
.access-tour-error:empty { display:none; }
.access-tour-progress { display:block; appearance:none; border:0; width:100%; height:4px; background:#e4eef7; color:#147dd0; }
.access-tour-progress::-webkit-progress-bar { background:#e4eef7; }
.access-tour-progress::-webkit-progress-value { background:#147dd0; }
.access-tour-progress::-moz-progress-bar { background:#147dd0; }
.access-tour-footer { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; padding:16px 20px; border-top:1px solid #e4edf5; background:#f8fbfe; }
.access-tour-footer .btn { min-height:42px; }
.access-tour-footer .btn:first-child { margin-right:auto; }
.access-tour-card :is(button,select):focus-visible { outline:3px solid #208de0; outline-offset:2px; }
@media (max-width:700px) {
  .access-tour-card { right:12px; bottom:12px; width:calc(100% - 24px); max-height:70dvh; border-radius:12px; }
  .access-tour-invitation { padding:12px; }
  .access-tour-invitation .access-tour-card { max-height:calc(100dvh - 24px); }
  .access-tour-header { padding:10px 16px; }
  .access-tour-body { padding:16px; }
  .access-tour-body h2 { font-size:20px; }
  .access-tour-footer { padding:12px; gap:6px; }
  .access-tour-footer .btn { padding:8px 10px; font-size:12px; }
}
@media (max-height:500px) { .access-tour-card { max-height:calc(100dvh - 24px); bottom:12px; } }
@media print { .access-tour-overlay { display:none !important; } }

/* Persistent source reminders, browser invitation and notification inbox. */
.system-alert-button { position:relative; width:40px; height:40px; color:#325c80; }
.system-alert-count { position:absolute; top:-4px; right:-5px; min-width:19px; height:19px; display:grid; place-items:center; padding:0 4px; border:2px solid white; border-radius:20px; background:#c3303d; color:white; font-size:10px; font-weight:800; line-height:1; }
.system-alert-toast,.browser-notification-invitation { position:fixed; right:24px; bottom:24px; z-index:26; width:min(390px,calc(100vw - 32px)); max-height:calc(100dvh - 90px); overflow-y:auto; border:1px solid #cfdfed; border-radius:16px; background:#fff; box-shadow:0 14px 48px #15385733; color:#173650; animation:system-alert-enter .2s ease-out; }
.system-alert-toast { padding:18px 20px; border-top:4px solid #d6a12d; }
.system-alert-toast.is-critical { border-top-color:#c3303d; }
.system-alert-toast-head { display:flex; align-items:center; gap:10px; margin-bottom:14px; font-size:12px; }
.system-alert-toast-head > .icon-btn { margin-left:auto; border:0; }
.system-alert-symbol { display:inline-flex; justify-content:center; align-items:center; flex:0 0 40px; width:40px; height:40px; border-radius:12px; background:#eaf4ff; color:#0b64ae; }
.system-alert-toast-title { display:block; font-size:15px; line-height:1.4; }
.system-alert-toast p { margin:8px 0; line-height:1.55; font-size:13px; }
.system-alert-toast small { color:#62778a; font-size:11px; }
.system-alert-toast > .btn { width:100%; justify-content:space-between; margin-top:12px; min-height:40px; }
.browser-notification-invitation { width:min(460px,calc(100vw - 32px)); display:flex; align-items:flex-start; gap:14px; padding:22px; }
.browser-notification-invitation strong { display:block; margin:1px 0 8px; font-size:17px; }
.browser-notification-invitation p { margin:0 0 14px; font-size:13px; line-height:1.6; color:#4c6880; }
.browser-notification-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.browser-notification-actions > .browser-notification-explanation { flex-basis:100%; margin:0 0 8px; color:#80531d; }
.browser-notification-actions .btn { min-height:39px; }
.system-notifications-modal { width:min(760px,100%); grid-template-rows:auto auto minmax(0,1fr) auto; }
.system-notifications-modal .modal-header { padding:20px 24px; }
.system-notifications-modal .modal-title { font-size:20px; margin-bottom:5px; }
.system-notifications-modal .modal-body { padding:16px 22px 22px; background:#f5f8fc; }
.system-notifications-modal .modal-body > p { margin:0 0 16px; font-size:12px; line-height:1.55; }
.system-notification-tabs { display:flex; gap:8px; padding:12px 22px; border-bottom:1px solid #dfe8f2; overflow-x:auto; }
.system-notification-tabs button { display:flex; gap:9px; align-items:center; border:1px solid transparent; border-radius:8px; background:transparent; color:#526d85; padding:9px 13px; font:inherit; font-size:12px; font-weight:700; cursor:pointer; white-space:nowrap; }
.system-notification-tabs button.is-active { border-color:#b8d9f1; background:#eaf4ff; color:#095a9e; }
.system-notification-tabs button span { background:#e1e9f1; color:#3d5b74; padding:2px 6px; border-radius:12px; font-size:10px; }
.system-notification-tabs button.is-active span { background:#0b65ad; color:#fff; }
.system-alert-row { display:grid; gap:9px; width:100%; margin:0 0 12px; padding:17px 18px; border:1px solid #dce5ee; border-left:4px solid #d4a536; border-radius:10px; background:#fff; color:#173650; text-align:left; font:inherit; cursor:pointer; transition:background .15s,border-color .15s; }
.system-alert-row.is-critical { border-left-color:#cb3e49; }
.system-alert-row:hover { background:#f1f7ff; border-color:#92bce0; }
.system-alert-row-top { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; justify-content:space-between; }
.system-alert-row-top strong { font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.system-alert-row > span:nth-child(2) { font-size:12px; line-height:1.6; color:#4d657b; }
.system-alert-row small { display:flex; align-items:center; flex-wrap:wrap; gap:5px; color:#627a90; font-size:10px; line-height:1.6; }
.system-alert-row small svg { width:14px; height:14px; margin-left:auto; }
.system-notifications-footer { padding:15px 22px; align-items:flex-end; }
.system-notifications-footer > div { flex:1; min-width:0; }
.browser-notification-settings { display:grid; gap:8px; font-size:11px; line-height:1.6; }
.browser-notification-settings > .btn { justify-self:start; padding:6px 12px; font-size:12px; }
.browser-notification-explanation { margin:0; color:#80531d; overflow-wrap:anywhere; }
.browser-notification-enabled { color:#247354; }
.browser-notification-checking { color:#526d85; }
.system-browser-status { position:absolute; bottom:2px; right:2px; width:9px; height:9px; border:2px solid #fff; border-radius:50%; background:#c1ccd6; }
.system-browser-status.is-active { background:#24865d; }
.system-browser-status:is(.is-blocked,.is-error,.is-permission) { background:#d49a30; }
.system-alert-row:focus-visible,.system-notification-tabs button:focus-visible,.system-alert-button:focus-visible,.browser-notification-invitation button:focus-visible { outline:3px solid #208de0; outline-offset:2px; }
@keyframes system-alert-enter { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
@media (max-width:650px) { .system-alert-toast,.browser-notification-invitation { right:16px; bottom:16px; }.browser-notification-invitation { padding:18px; gap:10px; }.system-notifications-modal .modal-header { padding:16px; }.system-notification-tabs { padding:10px 12px; gap:2px; }.system-notification-tabs button { padding:9px; }.system-notifications-modal .modal-body { padding:14px 12px; }.system-notifications-footer { padding:12px; }.system-alert-row { padding:14px 12px; } }
@media (prefers-reduced-motion:reduce) { .system-alert-toast,.browser-notification-invitation { animation:none; }.system-alert-row { transition:none; } }
@media print { [data-system-alert-trigger],[data-system-alert-toast],[data-browser-notification-offer] { display:none !important; } }

/* Catalog migration completeness and source images. */
.catalog-completeness{margin:16px 0}.catalog-completeness summary{cursor:pointer;margin-top:10px;font-weight:600}.catalog-record-warnings{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}.catalog-record-warnings .badge{font-size:10px}.product-image-missing{background:#f7f9fb!important;border:1px dashed #c8d4dc;color:#718290;font-size:10px;text-align:center;padding:4px}.product-image-missing span{font-size:inherit!important;font-weight:500!important}.product-thumb img{object-fit:contain;background:white}.catalog-detail-image{display:flex;align-items:center;gap:24px;margin-bottom:22px}.catalog-detail-image .product-thumb{width:200px;height:200px;flex-shrink:0}.catalog-detail-image p{max-width:340px}@media(max-width:600px){.catalog-detail-image{display:block}.catalog-detail-image .product-thumb{margin:0 auto 12px}.catalog-record-warnings .badge{white-space:normal}}
/* Source references are kept separately from sellable catalog items. */
.catalog-reference-library { margin-top: 16px; }
.catalog-reference-library summary, .catalog-source-review summary { cursor: pointer; font-weight: 600; }
.catalog-source-review { margin: 14px 0; padding: 12px; border: 1px solid #dce5ec; border-radius: 8px; }
.catalog-source-review table { margin-top: 12px; }
.fast-list-pager { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:12px 0; color:#526b80; font-size:13px; }
.fast-list-pager > div { display:flex; align-items:center; gap:12px; }
.fast-list-pager button:disabled { opacity:.45; cursor:default; }
.catalog-category-filter { display:flex; align-items:center; gap:12px; font-weight:600; }
.catalog-category-filter select { min-width:230px; max-width:100%; padding:9px; border:1px solid #c8d9e7; border-radius:7px; background:white; color:#163b5e; }
@media(max-width:650px) { .fast-list-pager {align-items:flex-start;flex-direction:column;} .fast-list-pager > div {gap:7px;} .catalog-category-filter {align-items:flex-start;flex-direction:column;} }

/* Approved quotation: measurements and colors follow the supplied Letter PDF. */
.session-status-card { text-align:center; }
.session-status-card .brand-mark { margin:0 auto; }
.quote-approved-panel { overflow-x:auto; }
.quote-paper.quote-approved-paper { width:612pt; max-width:none; min-height:792pt; padding:34.35pt 19pt 65pt 21.85pt; margin:0 auto; font:10.6pt Arial,Helvetica,sans-serif; line-height:1.15; color:#081f3d; background:#fff; border:0; box-shadow:none; }
.quote-approved-paper p,.quote-approved-paper h2 { margin:0; }
.quote-approved-company { display:grid; grid-template-columns:163.35pt minmax(0,1fr); gap:8pt; min-height:122.15pt; margin-left:10.65pt; align-items:start; break-inside:avoid; }
.quote-approved-logo,.quote-approved-logo .doc-logo { width:163.35pt; min-width:0; height:122.15pt; min-height:0; margin:0; padding:0; border:0; background:transparent; }
.quote-approved-logo .doc-logo img { display:block; width:100%; height:100%; min-height:0; object-fit:contain; }
.quote-approved-company-details { min-width:0; padding-top:10.5pt; }
.quote-approved-company-details h2 { font:700 16.1pt/18.5pt Arial,Helvetica,sans-serif; text-transform:uppercase; margin:0 0 4pt; overflow-wrap:anywhere; color:#081f3d; }
.quote-approved-company-details p { font:400 10.6pt/16pt Arial,Helvetica,sans-serif; min-height:16pt; color:#46596f; overflow-wrap:anywhere; }
.quote-approved-company-details p.quote-approved-phone { margin-top:3.5pt; }
.quote-approved-title { margin:8.1pt 0 0 21.35pt; break-inside:avoid; }
.quote-approved-title h2 { color:#0756a3; font:700 13.9pt/16pt Arial,Helvetica,sans-serif; }
.quote-approved-title strong { display:block; color:#ababab; font:700 10.6pt/12pt Arial,Helvetica,sans-serif; }
.quote-approved-customer { margin:12.4pt 20pt 0 18.55pt; color:#081f3d; break-inside:avoid; overflow-wrap:anywhere; }
.quote-approved-customer strong { display:block; font:700 12pt/13.8pt Arial,Helvetica,sans-serif; min-height:13.8pt; }
.quote-approved-customer span { display:block; color:#4e6072; font:400 11pt/12.5pt Arial,Helvetica,sans-serif; min-height:12.5pt; }
.quote-approved-dates { margin:8.5pt 24.5pt 0 8.2pt; padding:11pt 0 0 10.35pt; border-top:2pt solid #6d7f91; break-inside:avoid; }
.quote-approved-dates p { font:400 11pt/12.7pt Arial,Helvetica,sans-serif; color:#4e6072; }
.quote-approved-dates strong { font-weight:700; color:#081f3d; }
.quote-approved-paper h2.quote-approved-process { width:539.28pt; margin:12.3pt 0 10.75pt 15.214pt; padding-left:18.5pt; color:#4e6072; text-align:center; font:700 13.9pt/16.4pt Arial,Helvetica,sans-serif; text-transform:uppercase; overflow-wrap:anywhere; break-after:avoid; }
.quote-approved-table { width:539.28pt; margin:0 0 0 15.214pt; table-layout:fixed; border-collapse:collapse; border:0.72pt solid #9daebe; color:#081f3d; font:400 10.6pt/12pt Arial,Helvetica,sans-serif; }
.quote-approved-table .quote-col-number { width:70.56pt; }
.quote-approved-table .quote-col-image { width:51.6pt; }
.quote-approved-table .quote-col-item { width:137.28pt; }
.quote-approved-table .quote-col-price { width:75.12pt; }
.quote-approved-table .quote-col-quantity { width:60.72pt; }
.quote-approved-table .quote-col-tax { width:68.16pt; }
.quote-approved-table .quote-col-subtotal { width:75.12pt; }
.quote-approved-table thead { display:table-header-group; }
.quote-approved-table th { background:#002060; color:#fff; border:0.72pt solid #9daebe; height:25.44pt; padding:6pt 2pt; text-align:center; vertical-align:middle; font:700 11pt/12.7pt Arial,Helvetica,sans-serif; text-transform:none; letter-spacing:normal; white-space:normal; }
.quote-approved-table td { border:0.72pt solid #9daebe; background:#fff; height:48.7pt; padding:6.15pt 4pt; vertical-align:middle; text-align:center; font:400 10.6pt/12pt Arial,Helvetica,sans-serif; white-space:normal; overflow-wrap:anywhere; }
.quote-approved-table tbody tr { break-inside:avoid; page-break-inside:avoid; }
.quote-approved-item { display:block; font:700 10.6pt/12pt Arial,Helvetica,sans-serif; }
.quote-approved-reference { display:block; color:#081f3d; font:400 9.1pt/10.5pt Arial,Helvetica,sans-serif; }
.quote-approved-table .product-thumb.quote { width:36pt; height:36pt; min-width:0; min-height:0; margin:0 auto; left:4.3pt; border:0.5pt solid #e7eef5; border-radius:5pt; font-size:8pt; }
.quote-approved-table .product-thumb img { object-fit:contain; }
.quote-approved-money { display:inline-block; max-width:100%; white-space:nowrap; overflow-wrap:normal; }
.quote-approved-ending { break-inside:avoid; page-break-inside:avoid; }
.quote-approved-notes { margin-top:12.7pt; color:#081f3d; font:400 12pt/13.8pt Arial,Helvetica,sans-serif; }
.quote-approved-notes p { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
.quote-approved-notes strong { font-weight:700; }
.quote-approved-totals { width:269.6pt; margin:23.6pt 1.1pt 0 auto; table-layout:fixed; border-collapse:collapse; border:0.72pt solid #8095a8; color:#081f3d; font:400 13.4pt/15.4pt Arial,Helvetica,sans-serif; break-inside:avoid; }
.quote-approved-totals col:first-child { width:52%; }
.quote-approved-totals col:last-child { width:48%; }
.quote-approved-totals td { padding:0.9pt 8pt; border:0; border-bottom:0.72pt solid #8095a8; background:#fff; vertical-align:top; font:400 13.4pt/15.4pt Arial,Helvetica,sans-serif; }
.quote-approved-totals td:last-child { text-align:right; font-weight:700; padding-left:0; }
.quote-approved-totals tr.quote-approved-grand-total td { font:700 15.1pt/17.4pt Arial,Helvetica,sans-serif; color:#ababab; padding-top:2.3pt; padding-bottom:0; }
@page sipQuote { size:Letter; margin:30pt 0; }
@media print {
  html:has(.quote-approved-paper) { background:#fff!important; }
  .quote-approved-panel { display:block; overflow:visible!important; }
  .document-paper.quote-approved-paper { page:sipQuote; width:612pt!important; max-width:none!important; min-height:0!important; padding:4.35pt 19pt 0 21.85pt!important; margin:0!important; border:0!important; box-shadow:none!important; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  .quote-approved-table thead { display:table-header-group; }
  .quote-approved-paper .quote-approved-ending { break-inside:avoid; }
}

.conduce-percentage-controls { display:flex; align-items:flex-end; flex-wrap:wrap; gap:20px; margin:18px 0; }
.conduce-percentage-controls > .field:first-child { width:220px; max-width:100%; }
.conduce-percentage-presets { display:flex; flex-wrap:wrap; gap:8px; }
.conduce-delivery-editor .table-wrap { margin-bottom:16px; }
.conduce-delivery-editor td .field { min-width:100px; max-width:150px; }
.conduce-delivery-editor output { font-weight:700; font-variant-numeric:tabular-nums; }

/* Geometry and type copied from the client's Word process documents. */
.process-model-panel { display:block; overflow:auto; }
.process-model-paper { box-sizing:border-box; max-width:none; width:612pt; min-height:792pt; padding:36pt; margin:0 auto; color:#081f3c; font:14.04pt/16.08pt Arial,Helvetica,sans-serif; background:#fff; }
.process-model-paper :is(p,h2,h3,figure) { margin:0; padding:0; }
.process-model-paper strong { font-weight:700; }
.process-model-company { position:relative; min-height:123pt; }
.process-model-logo { position:absolute; top:0.45pt; left:9.65pt; width:130.7pt; height:93.6pt; }
.process-model-logo .doc-logo { display:flex; width:100%; height:100%; min-height:0; padding:0; border:0; border-radius:0; background:#fff; }
.process-model-logo .doc-logo img { width:100%; height:100%; max-width:none; max-height:none; object-fit:contain; }
.process-model-logo.model-reference-logo .doc-logo img { object-fit:fill; }
.process-model-company-details { margin-left:149.66pt; padding-top:10.5pt; }
.process-model-company-details h2 { font:700 14.04pt/16.08pt Arial,Helvetica,sans-serif; color:#081f3c; text-transform:uppercase; }
.process-model-company-details p { font:400 12pt/13.8pt Arial,Helvetica,sans-serif; color:#4e6072; overflow-wrap:anywhere; }
.process-model-title { display:flex; justify-content:space-between; align-items:flex-start; gap:12pt; line-height:16.08pt; }
.process-model-title h2 { color:#0756a2; font:700 14.04pt/16.08pt Arial,Helvetica,sans-serif; }
.process-model-title strong { display:block; color:#ababab; }
.process-model-date { text-align:right; font-weight:400; }
.process-model-date span { display:block; }
.process-model-rule { height:1.5pt; background:#6d7e90; margin:14.9pt -8.25pt 16.5pt; }
.model-conduce-salutation { line-height:16.08pt; }
.model-conduce-heading { font:700 14.04pt/16.08pt Arial,Helvetica,sans-serif; text-align:center; margin:16.08pt 0 16.08pt !important; }
.process-model-table { table-layout:fixed; border-collapse:collapse; border-spacing:0; margin:0 auto; color:#081f3c; }
.process-model-table :is(td,th) { border:0.75pt solid #9daebe; padding:4.4pt 3.5pt; text-align:center; vertical-align:middle; font:400 12pt/13.8pt Arial,Helvetica,sans-serif; overflow-wrap:anywhere; }
.process-model-table th { background:#002060; color:#fff; font-weight:700; text-transform:none; white-space:normal; }
.process-model-table td strong { color:inherit; }
.process-model-table tr { break-inside:avoid; page-break-inside:avoid; }
.process-model-table thead { display:table-header-group; }
.model-conduce-table { width:calc(100% + 16pt); margin-left:-8pt; }
.model-conduce-table td:nth-child(2) { color:#0a315d; }
.model-conduce-acknowledgment { margin-top:16.08pt !important; line-height:16.08pt; }
.model-conduce-ending { break-inside:avoid; page-break-inside:avoid; }
.model-conduce-signatures { display:grid; grid-template-columns:220pt 214pt; justify-content:space-between; margin:96pt 12pt 0 0; line-height:16.08pt; }
.model-conduce-signatures > div { display:flex; flex-direction:column; text-align:center; }
.model-conduce-signatures > div:first-child { align-items:flex-start; }
.model-conduce-signatures > div:first-child span { width:110pt; text-align:center; }
.model-receipt-signature { height:12pt; border-bottom:1.2pt solid #081f3c; margin-bottom:2.9pt; }
.model-technical { width:792pt; min-height:612pt; padding:18pt 33.95pt 18pt 28pt; font-size:15.96pt; line-height:18.36pt; }
.model-technical .process-model-company { min-height:165pt; }
.model-technical .process-model-logo { top:8.65pt; left:10.3pt; width:159.05pt; height:135.85pt; }
.model-technical .process-model-company-details { margin-left:178.42pt; padding-top:17.9pt; }
.model-technical .process-model-company-details h2 { font-size:15.96pt; line-height:20.4pt; }
.model-technical .process-model-company-details p { font-size:15.96pt; line-height:20.04pt; }
.model-technical .process-model-company-details .process-model-phone { margin-top:2.88pt; line-height:21.36pt; }
.model-technical .process-model-title,.model-technical .process-model-title h2 { font-size:15.96pt; line-height:18.36pt; }
.model-technical .process-model-date { color:#000; }
.model-technical .process-model-rule { height:3.55pt; margin:13.68pt 0 19.9pt; }
.model-technical-heading { font:700 15.96pt/18.36pt Arial,Helvetica,sans-serif; text-align:center; margin:0 0 18.36pt !important; }
.model-technical-table { width:708.75pt; }
.model-technical-table :is(th,td) { font-size:15.96pt; line-height:18.36pt; padding:5.8pt 7pt; }
.model-technical-table td { height:55.9pt; padding-top:18.36pt; padding-bottom:0; }
.model-technical-table th:nth-child(3) { padding-left:0; padding-right:0; white-space:nowrap; overflow-wrap:normal; }
.model-technical-table th { padding-top:0; padding-bottom:0; }
.model-technical-table :is(th,td):first-child { padding-left:0; padding-right:0; white-space:nowrap; overflow-wrap:normal; }
.process-model-paper .product-thumb { width:36pt; height:36pt; min-width:36pt; border:0.5pt solid #dce5ee; border-radius:4.5pt; padding:0; margin:0 auto; background:#fff; }
.process-model-paper .product-thumb img { width:100%; height:100%; object-fit:contain; }
.process-model-paper .product-thumb-placeholder { white-space:normal; font-size:7pt; line-height:9pt; }
.invoice-preview-modal:has(.model-technical) { width:min(1180px,calc(100vw - 32px)); max-width:none; }
.model-invoice { font-size:12pt; line-height:13.8pt; }
.model-invoice .process-model-company { min-height:128.4pt; }
.model-invoice .process-model-logo { top:-0.35pt; left:12.2pt; width:159.35pt; height:122.15pt; }
.model-invoice .process-model-company-details { margin-left:180.65pt; padding-top:15.06pt; }
.model-invoice .process-model-company-details p { color:#46596f; }
.model-invoice .process-model-title,.model-invoice .process-model-title h2 { font-size:12pt; line-height:13.8pt; }
.model-invoice .process-model-date { color:#0756a2; font-weight:700; }
.model-invoice .process-model-date span+span { color:#ababab; }
.model-invoice-customer { display:flex; flex-direction:column; margin-top:13.8pt; line-height:13.8pt; }
.model-invoice-customer span { color:#4e6072; }
.model-invoice .process-model-rule { height:2.25pt; margin:6.65pt -5.27pt 0; }
.model-invoice-ncf { color:#4e6072; margin-top:0.6pt !important; line-height:13.8pt; }
.model-invoice-due { display:flex; flex-direction:column; align-items:flex-end; margin-top:13.8pt; }
.model-invoice-due span,.model-invoice-meta span { color:#4e6072; }
.model-invoice-meta { display:grid; grid-template-columns:40% 40% 20%; margin:13.8pt 0 13.4pt; }
.model-invoice-meta > div { display:flex; flex-direction:column; }
.model-invoice-meta > div:last-child { padding-left:36pt; }
.model-invoice-table { width:510.95pt; }
.model-invoice-table :is(th,td) { font-size:11.04pt; line-height:12.72pt; padding:4.8pt 2pt; }
.model-invoice-table th { background:#fff; color:#ababab; font-weight:700; padding:6.5pt 2pt; }
.model-invoice-table td { height:48.7pt; }
.model-invoice-table .model-invoice-item td { font-size:var(--invoice-line-font,12pt); line-height:var(--invoice-line-height,13.8pt); padding-top:var(--invoice-line-padding,3.2pt); padding-bottom:var(--invoice-line-padding,3.2pt); }
.model-invoice-final-group { break-inside:avoid; page-break-inside:avoid; }
.model-invoice-table .model-invoice-summary-row > td { height:auto; border:0; padding:0; background:#fff; }
.model-invoice-summary-row .model-invoice-ending { margin-right:-32.525pt; }
.model-invoice-product-code { display:block; font-weight:400; }
.model-invoice-ending { display:flex; justify-content:space-between; align-items:flex-end; gap:12pt; margin-top:26pt; margin-right:-18pt; break-inside:avoid; page-break-inside:avoid; }
.model-invoice-totals { margin-left:auto; text-align:right; color:#000; font:400 12pt/13.8pt Arial,Helvetica,sans-serif; }
.model-invoice-totals .model-invoice-total,.model-invoice-totals .model-invoice-count { margin-top:13.8pt; }
@page sipConduce { size:Letter portrait; margin:36pt 28pt; }
@page sipTechnical { size:Letter landscape; margin:18pt 33.95pt 18pt 28pt; }
@page sipInvoice { size:Letter portrait; margin:36pt 18pt 36pt 36pt; }
@media print {
  html:has(.process-model-paper) { background:#fff !important; }
  .process-model-panel { display:block !important; overflow:visible !important; }
  .modal:has(.process-model-paper),.modal-body:has(.process-model-paper),.process-model-panel { background:#fff !important; }
  .process-model-paper { max-width:none !important; padding:0 !important; margin:0 !important; border:0 !important; min-height:0 !important; box-shadow:none !important; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  .model-conduce { page:sipConduce; width:556pt !important; padding:0 8pt !important; }
  .model-technical { page:sipTechnical; width:730.05pt !important; }
  .model-invoice { page:sipInvoice; width:540pt !important; }
  .process-model-table thead { display:table-header-group; }
  .process-model-table tbody { display:table-row-group; }
}

/* Latest Word quotation model: preserve the grid and use its unboxed summary. */
.quote-paper.quote-template-122 { width:612pt; min-height:792pt; padding:25pt 21.25pt 22pt; }
.quote-template-122 .quote-approved-company { grid-template-columns:160.05pt minmax(0,1fr); gap:9.01pt; min-height:130.9pt; margin-left:9.75pt; }
.quote-template-122 .quote-approved-logo,.quote-template-122 .quote-approved-logo .doc-logo { width:160.05pt; height:117.95pt; }
.quote-template-122 .quote-approved-logo { margin-top:7.65pt; }
.quote-template-122 .quote-approved-company-details { padding-top:19.2pt; }
.quote-template-122 .quote-approved-company-details h2 { font-size:15.96pt; line-height:18.36pt; margin-bottom:4pt; }
.quote-template-122 .quote-approved-company-details p { font-size:10.56pt; line-height:15.96pt; min-height:15.96pt; }
.quote-template-122 .quote-approved-title h2 { font-size:14.04pt; line-height:16.08pt; }
.quote-template-122 .quote-approved-title strong { font-size:10.56pt; line-height:12.14pt; }
.quote-template-122 .quote-approved-customer { margin-left:18.47pt; }
.quote-template-122 .quote-approved-customer span { font-size:11.04pt; line-height:12.72pt; min-height:12.72pt; }
.quote-template-122 .quote-approved-dates { margin-left:6.6pt; padding-left:11.87pt; }
.quote-template-122 .quote-approved-dates p { font-size:11.04pt; line-height:12.72pt; }
.quote-template-122 h2.quote-approved-process { font-size:14.04pt; line-height:16.08pt; }
.quote-template-122 .quote-approved-table th { font-size:11.04pt; line-height:12.72pt; }
.quote-template-122 .quote-approved-table td,.quote-template-122 .quote-approved-item { font-size:10.56pt; line-height:12.14pt; }
.quote-template-122 .quote-approved-reference { font-size:9pt; line-height:10.35pt; }
.quote-client-summary { margin:23.6pt 0 0; text-align:right; color:#000; font:400 11.04pt/12.6pt Arial,Helvetica,sans-serif; break-inside:avoid; page-break-inside:avoid; }
.quote-client-summary p { margin:0; color:#000; font:inherit; }
.quote-client-summary .quote-client-total { display:flex; justify-content:flex-end; gap:18pt; margin-top:12.6pt; }
.quote-client-summary .quote-client-count { margin-top:12.6pt; }
@page sipQuote122 { size:Letter; margin:25pt 21.25pt 22pt; }
@media print {
  html:has(.quote-template-122),.modal:has(.quote-template-122),.modal-body:has(.quote-template-122),.quote-approved-panel:has(.quote-template-122) { background:#fff !important; }
  .document-paper.quote-template-122 { page:sipQuote122; width:569.5pt !important; padding:0 !important; margin:0 !important; }
}

/* Compact process headers: missing optional data never reserves blank lines. */
.document-compact-123 .quote-approved-company { grid-template-columns:140pt minmax(0,1fr); min-height:0; align-items:center; gap:12pt; margin-left:9.75pt; }
.document-compact-123 .quote-approved-logo,.document-compact-123 .quote-approved-logo .doc-logo { width:140pt; height:102pt; margin:0; }
.document-compact-123 .quote-approved-company-details { padding-top:0; }
.document-compact-123 .quote-approved-company-details h2 { font-size:15pt; line-height:1; margin:0 0 4pt; }
.document-compact-123 .quote-approved-company-details p { font-size:10.56pt; line-height:1; min-height:0; margin:0; }
.document-compact-123 .quote-approved-title { margin-top:6pt; margin-left:18.47pt; }
.document-compact-123 .quote-approved-title :is(h2,strong) { line-height:1; }
.document-compact-123 .quote-approved-customer { margin:6pt 20pt 0 18.47pt; }
.document-compact-123 .quote-approved-customer :is(strong,span) { min-height:0; line-height:1; margin:0; }
.document-compact-123 .quote-approved-dates { margin-top:5pt; padding-top:6pt; border-top-width:1pt; }
.document-compact-123 .quote-approved-dates p { line-height:1; }
.document-compact-123 h2.quote-approved-process { margin-top:8pt; margin-bottom:8pt; line-height:1; }
.document-compact-123 .process-model-company { display:grid; grid-template-columns:140pt minmax(0,1fr); align-items:center; gap:12pt; min-height:0; }
.document-compact-123 .process-model-logo { position:static; width:140pt; height:102pt; }
.document-compact-123 .process-model-logo.model-reference-logo .doc-logo img { object-fit:contain; }
.document-compact-123 .process-model-company-details { margin-left:0; padding-top:0; min-width:0; }
.document-compact-123 .process-model-company-details h2 { font-size:14pt; line-height:1; margin:0 0 4pt; overflow-wrap:anywhere; }
.document-compact-123 .process-model-company-details p { font-size:11pt; line-height:1; margin:0; }
.document-compact-123 .process-model-company-details .process-model-phone { line-height:1; margin:0; }
.document-compact-123 .process-model-title { margin-top:6pt; line-height:1; }
.document-compact-123 .process-model-title :is(h2,strong,span) { line-height:1; }
.document-compact-123 .process-model-rule { height:1pt; margin-top:5pt; margin-bottom:6pt; }
.document-compact-123 .model-invoice-customer { margin-top:6pt; line-height:1; }
.document-compact-123.model-invoice .process-model-rule { margin-bottom:0; }
.document-compact-123.model-technical .process-model-company { grid-template-columns:150pt minmax(0,1fr); }
.document-compact-123.model-technical .process-model-logo { width:150pt; height:110pt; }
.document-compact-123.model-technical .process-model-company-details h2 { font-size:15.96pt; }
.document-compact-123.model-technical .process-model-company-details p { font-size:13pt; }
.document-compact-123 .model-invoice-ncf { line-height:1; }
.document-compact-123 .model-invoice-due { margin-top:6pt; line-height:1; }
.document-compact-123 .model-invoice-meta { margin:6pt 0; line-height:1; }
.document-compact-123 .model-invoice-table .model-invoice-item td { height:44pt; font-size:11.04pt; line-height:1; padding-top:3.2pt; padding-bottom:3.2pt; }
.document-compact-123 .model-invoice-ending { margin-top:12pt; }
.document-compact-123 .model-invoice-totals { font-size:11.04pt; line-height:1; }
.document-compact-123 .model-invoice-totals :is(.model-invoice-total,.model-invoice-count) { margin-top:6pt; }
.document-compact-123 .model-technical-heading { margin-bottom:8pt !important; line-height:1; }
.document-compact-123 .model-technical-table td { height:auto; padding-top:4pt; padding-bottom:4pt; line-height:1; }

/* Final quotation Word: Letter page, centered title and three shaded metadata blocks. */
.quote-paper.quote-final-124 { width:612pt; min-height:792pt; padding:36pt; color:#081f3c; }
.quote-final-124 .quote-approved-company { grid-template-columns:148.6pt minmax(0,1fr); gap:9.47pt; min-height:106.8pt; margin:14.9pt 0 0 10.1pt; }
.quote-final-124 .quote-approved-logo,.quote-final-124 .quote-approved-logo .doc-logo { width:148.6pt; height:106.8pt; }
.quote-final-124 .quote-approved-company-details { padding-top:6.1pt; }
.quote-final-124 .quote-approved-company-details h2 { font-size:15.96pt; line-height:18.36pt; margin:0; }
.quote-final-124 .quote-approved-company-details p { font-size:10.56pt; line-height:12.12pt; min-height:0; margin:0; }
.quote-final-124 .quote-approved-company-details p.quote-approved-phone { margin:0; }
.quote-final-124 .quote-approved-title { margin:9.9pt 0 0; text-align:center; }
.quote-final-124 .quote-approved-title h2 { font-size:14.04pt; line-height:16.08pt; color:#0756a2; }
.quote-final-metadata { display:grid; grid-template-columns:173.45pt 148.82pt 165.02pt; grid-template-rows:minmax(26.76pt,auto) minmax(28.71pt,auto) minmax(28.32pt,auto); column-gap:14.2pt; margin:11.7pt 0 0 15.96pt; width:515.69pt; break-inside:avoid; }
.quote-final-metadata > :is(strong,span) { display:flex; align-items:center; margin:0; padding:3pt 5.4pt; min-width:0; background:#d9d9d9; border-bottom:0.5pt solid #000; color:#081f3c; font:700 12pt/13.8pt Arial,Helvetica,sans-serif; overflow-wrap:anywhere; }
.quote-final-metadata .quote-final-client-name { grid-column:1; grid-row:1; padding-left:23.9pt; }
.quote-final-metadata .quote-final-client-rnc,.quote-final-metadata .quote-final-client-phone { grid-column:1; color:#4e6072; padding-left:23.9pt; font:400 11.04pt/12.72pt Arial,Helvetica,sans-serif; }
.quote-final-metadata .quote-final-client-rnc { grid-row:2; }
.quote-final-metadata .quote-final-client-phone { grid-row:3; }
.quote-final-metadata .quote-final-meta-label { grid-column:2; }
.quote-final-metadata .quote-final-meta-value { grid-column:3; }
.quote-final-rule { width:538.98pt; height:2.78pt; margin:17.88pt 0 0 -8.25pt; background:#6d7e90; border-radius:2.78pt 2.78pt 0 0; }
.quote-final-124 h2.quote-approved-process { width:540pt; padding:0; margin:12.3pt 0 10.75pt; font-size:14.04pt; line-height:16.08pt; }
.quote-final-124 .quote-approved-table { margin-left:0.48pt; border:0; }
.quote-final-124 .quote-col-number { width:70.5pt; }
.quote-final-124 .quote-col-image { width:51.75pt; }
.quote-final-124 .quote-col-item { width:137.25pt; }
.quote-final-124 .quote-col-price { width:75pt; }
.quote-final-124 .quote-col-quantity { width:60.75pt; }
.quote-final-124 .quote-col-tax { width:68.25pt; }
.quote-final-124 .quote-col-subtotal { width:74.9pt; }
.quote-final-124 .quote-approved-table th { font-size:11.04pt; line-height:12.72pt; }
.quote-final-124 .quote-approved-table td,.quote-final-124 .quote-approved-item { font-size:10.56pt; line-height:12.14pt; }
.quote-final-124 .quote-approved-reference { font-size:9pt; line-height:10.35pt; }
.quote-final-last-group { break-inside:avoid; page-break-inside:avoid; }
.quote-final-124 .quote-final-summary-row > td { border:0; height:auto; padding:0; text-align:left; }
.quote-final-summary-row .quote-approved-ending { margin-left:-0.48pt; width:540pt; }
@page sipQuote124 { size:Letter; margin:36pt; }
@media print {
  html:has(.quote-final-124),.modal:has(.quote-final-124),.modal-body:has(.quote-final-124),.quote-approved-panel:has(.quote-final-124) { background:#fff !important; }
  .document-paper.quote-final-124 { page:sipQuote124; width:540pt!important; padding:0!important; margin:0!important; }
}

/* Exact layouts from the four Word models supplied on 12 November 2026. */
.document-paper.document-model-127 { box-sizing:border-box; width:612pt; min-height:792pt; padding:36pt; margin:0 auto; border:0; box-shadow:none; background:#fff; color:#081f3c; font-family:Arial,Helvetica,sans-serif; }
.document-model-127 :is(p,h2,h3,figure) { margin:0; padding:0; }
.document-model-127 .process-model-company { position:relative; display:block; min-height:0; }
.document-model-127 .process-model-logo { position:absolute; }
.document-model-127 .process-model-logo .doc-logo { width:100%; height:100%; padding:0; margin:0; border:0; background:#fff; }
.document-model-127 .process-model-logo .doc-logo img { display:block; width:100%; height:100%; object-fit:contain; }
.document-model-127 .process-model-company-details { min-width:0; }
.document-model-127 .process-model-company-details h2 { text-transform:uppercase; color:#081f3c; }
.document-model-127 .process-model-company-details p { margin:0; overflow-wrap:anywhere; }
.document-model-127 .process-model-table { border-collapse:collapse; table-layout:fixed; }
.document-model-127 .process-model-table :is(th,td) { border:.72pt solid #9daebe; overflow-wrap:anywhere; vertical-align:middle; }
.document-model-127 .process-model-table th { background:#002060; color:#fff; font-weight:700; text-transform:none; letter-spacing:normal; }
.document-model-127 .process-model-table td { background:#fff; }
.document-model-127 .process-model-table thead { display:table-header-group; }
.document-model-127 .process-model-table tr { break-inside:avoid; page-break-inside:avoid; }
.document-model-127 .product-thumb { position:static; width:36pt; height:36pt; min-width:0; padding:0; margin:0 auto; }
.document-model-127 .product-thumb img { object-fit:contain; }
.document-model-127 .model-127-metadata { display:grid; grid-template-columns:173.9pt 149.18pt 164.9pt; grid-template-rows:none; column-gap:14.2pt; width:516.38pt; margin-left:15.7pt; break-inside:avoid; }
.document-model-127 .model-127-customer { align-self:start; min-width:0; background:#d9d9d9; }
.document-model-127 .model-127-customer > * { display:flex; align-items:center; color:#081f3c; background:#d9d9d9; border-bottom:.5pt solid #000; padding:3pt 7.1pt; min-width:0; overflow-wrap:anywhere; }
.document-model-127 .quote-final-client-name { min-height:61.5pt; font:700 12pt/13.92pt Arial,Helvetica,sans-serif; text-transform:uppercase; }
.document-model-127 .quote-final-client-rnc { min-height:27.75pt; font:400 11.04pt/12.72pt Arial,Helvetica,sans-serif; color:#4e6072; }
.document-model-127 .model-127-meta-labels,.document-model-127 .model-127-meta-values { display:grid; grid-template-rows:minmax(28.68pt,auto) minmax(27.72pt,auto) minmax(34.34pt,auto); align-self:stretch; min-width:0; }
.document-model-127 :is(.model-127-meta-labels,.model-127-meta-values) > strong { display:flex; align-items:center; min-width:0; padding:3pt 5.4pt; border-bottom:.5pt solid #000; background:#d9d9d9; color:#081f3c; font:700 12pt/13.8pt Arial,Helvetica,sans-serif; overflow-wrap:anywhere; }
.document-model-127 :is(.model-127-meta-labels,.model-127-meta-values) > strong { grid-column:auto; grid-row:auto; }
/* Quotation */
.document-paper.model-quote-127 { padding:35pt 36pt 14pt; }
.model-quote-127 .quote-approved-company { display:grid; grid-template-columns:141.62pt minmax(0,1fr); gap:12.98pt; min-height:106.4pt; margin:0 0 0 13.45pt; }
.model-quote-127 .quote-approved-logo,.model-quote-127 .quote-approved-logo .doc-logo { width:141.62pt; height:106.4pt; }
.model-quote-127 .quote-approved-company-details { padding-top:5pt; }
.model-quote-127 .quote-approved-company-details h2 { font:700 14.04pt/16.08pt Arial,Helvetica,sans-serif; margin:0 0 1pt; }
.model-quote-127 .quote-approved-company-details p { font:400 10.56pt/12.12pt Arial,Helvetica,sans-serif; min-height:0; margin:0; }
.model-quote-127 .quote-approved-title { margin:6.5pt 0 0; text-align:center; }
.model-quote-127 .quote-approved-title h2 { font:700 14.04pt/16.08pt Arial,Helvetica,sans-serif; color:#0756a2; }
.model-quote-127 .quote-final-metadata { margin-top:12.2pt; }
.model-quote-127 h2.quote-approved-process { width:auto; margin:11.3pt 0 7.9pt 22.92pt; padding:0; color:#000; text-align:left; font:700 11.04pt/12.72pt Arial,Helvetica,sans-serif; text-transform:none; }
.model-quote-127 .quote-approved-table { width:538.18pt; margin-left:0; }
.model-quote-127 .quote-approved-table th { height:25.44pt; padding:5.4pt 2pt; font:700 11.04pt/12.72pt Arial,Helvetica,sans-serif; }
.model-quote-127 .quote-approved-table td { min-height:48.7pt; padding:6.15pt 4pt; font:400 10.56pt/12.14pt Arial,Helvetica,sans-serif; }
.model-quote-127 .quote-approved-table > tbody:first-of-type > tr:first-child:not(.quote-final-summary-row) > td { height:60pt; }
.model-quote-127 .quote-approved-table > tbody:first-of-type > tr:first-child:not(.quote-final-summary-row) > td { padding-bottom:18pt; }
.model-quote-127 .quote-approved-item { font:700 10.56pt/12.14pt Arial,Helvetica,sans-serif; }
.model-quote-127 .quote-approved-reference { font:400 9pt/10.35pt Arial,Helvetica,sans-serif; }
.model-quote-127 .quote-approved-table .product-thumb.quote { position:static; width:36pt; height:36pt; margin:0 auto; }
.model-quote-127 .quote-approved-notes { margin-top:30.2pt; font:400 12pt/13.8pt Arial,Helvetica,sans-serif; }
.model-quote-127 .quote-final-summary-row > td { border:0; padding:0; height:auto; }
.model-quote-127 .quote-final-summary-row .quote-approved-ending { margin-left:0; width:540pt; }
.model-quote-127 .quote-client-summary { margin-top:23.6pt; font:400 11.04pt/12.6pt Arial,Helvetica,sans-serif; }
.model-quote-127 .quote-client-total { display:block; margin-top:12.6pt; }
/* Conduce */
.document-model-127.model-conduce { color:#000; font:400 14.04pt/16.08pt Arial,Helvetica,sans-serif; }
.document-model-127.model-conduce .process-model-company { min-height:112.6pt; }
.document-model-127.model-conduce .process-model-logo { top:-10.2pt; left:-4.8pt; width:136.45pt; height:101.95pt; }
.document-model-127.model-conduce .process-model-company-details { margin-left:131.66pt; padding-top:3.5pt; }
.document-model-127.model-conduce .process-model-company-details h2 { margin-bottom:1.3pt; font:700 14.04pt/16.08pt Arial,Helvetica,sans-serif; }
.document-model-127.model-conduce .process-model-company-details p { font:400 11.04pt/11.28pt Arial,Helvetica,sans-serif; color:#4e6072; }
.document-model-127.model-conduce .process-model-title { display:block; position:relative; min-height:64.2pt; margin:0; }
.document-model-127.model-conduce .process-model-title h2 { color:#002060; font:700 12.96pt/14.88pt Arial,Helvetica,sans-serif; }
.document-model-127.model-conduce .process-model-title strong { color:#000; font:400 12pt/13.8pt Arial,Helvetica,sans-serif; }
.document-model-127.model-conduce .process-model-date { position:absolute; top:27.5pt; right:5.4pt; color:#000; font:400 12pt/12.24pt Arial,Helvetica,sans-serif; }
.document-model-127 .model-conduce-salutation { text-align:justify; font:400 14.04pt/14.4pt Arial,Helvetica,sans-serif; }
.document-model-127 .model-conduce-salutation strong { text-transform:uppercase; }
.document-model-127 .model-conduce-heading { color:#000; margin:17.8pt 0 16.08pt !important; font:700 14.04pt/16.08pt Arial,Helvetica,sans-serif; }
.document-model-127 .model-conduce-table { width:555.2pt; margin-left:-7.56pt; color:#000; }
.document-model-127 .model-conduce-table :is(th,td) { height:23.16pt; padding:4.4pt .6pt; font:400 12pt/13.8pt Arial,Helvetica,sans-serif; }
.document-model-127 .model-conduce-table th { font-weight:700; white-space:nowrap; padding-left:.4pt; padding-right:.4pt; }
.supplier-purchase-orders { margin:16px 0; }
.supplier-order-editor fieldset { border:0; margin:0; padding:0; min-width:0; }
.supplier-order-editor .sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.supplier-order-editor .modal-footer { flex-wrap:wrap; }
.supplier-order-editor-table { min-width:610px; }
.supplier-order-editor-table td:first-child { width:58%; }
.supplier-order-editor-table select { width:100%; max-width:100%; }
.supplier-order-editor-table :is(select,input) { min-height:40px; border:1px solid #cbd9e6; border-radius:6px; padding:8px; background:#f8fbff; color:#173a61; font:inherit; }
.supplier-order-editor-table input { width:130px; }
.supplier-order-product-choice { display:flex; align-items:center; gap:10px; min-width:0; }
.supplier-order-product-choice select { flex:1; min-width:0; }
.supplier-order-product-photo { display:flex; justify-content:center; align-items:center; flex:none; }
.supplier-order-product-photo .product-thumb { width:64px; height:64px; min-width:0; margin:0; border:1px solid #dce5ee; border-radius:4px; background:#fff; }
.supplier-order-product-photo img { width:100%; height:100%; object-fit:contain; }
.supplier-order-paper .supplier-order-product-photo .product-thumb { width:48pt; height:48pt; }
.supplier-order-paper .supplier-order-table td:nth-child(4) { text-align:left; }
.supplier-order-paper .supplier-order-table .supplier-order-product-code { white-space:normal; font-size:10pt; text-align:center; }
.supplier-order-editor .field:has(textarea) { margin-top:18px; }
.supplier-order-editor .po-product-search { margin:14px 0; }
.supplier-order-editor .po-product-search input { width:100%; min-width:0; }
.po-product-results { max-height:340px; overflow-y:auto; margin:0 0 18px; border:1px solid #cbddeb; border-radius:8px; background:#fff; }
.po-product-results[hidden] { display:none; }
.po-search-result-list { display:grid; }
.po-search-result { display:grid; grid-template-columns:minmax(0,1fr) 76px 94px; gap:10px; align-items:center; padding:12px; border-bottom:1px solid #e1eaf2; }
.po-search-result:last-child { border-bottom:0; }
.po-result-product { display:flex; align-items:center; gap:10px; min-width:0; }
.po-result-product .product-thumb { flex:none; }
.po-result-copy { display:block; flex:1; min-width:0; padding:0; border:0; background:transparent; text-align:left; color:#173a61; cursor:pointer; overflow-wrap:anywhere; font:inherit; }
.po-result-copy :is(strong,small) { display:block; }
.po-result-copy small { margin-top:4px; color:#61788e; font-size:12px; }
.po-search-result .field { min-width:0; margin:0; }
.po-search-result input { width:100%; min-width:0; min-height:38px; }
.po-search-more { margin:12px; }
.po-selected-product-copy { min-width:0; flex:1; overflow-wrap:anywhere; }
.po-selected-product-copy :is(strong,small) { display:block; }
.po-selected-product-copy small { margin:5px 0; color:#61788e; }
.po-selected-product-copy .btn { font-size:12px; padding:6px 8px; margin-top:6px; white-space:normal; }
.po-new-product-modal .po-new-product-form { margin:0; }
.po-new-product-modal .po-new-quantity { margin-top:16px; }
.po-new-photo-preview { margin-top:10px; width:max-content; max-width:100%; }
.po-new-product-form { margin-top:14px; padding:14px; border:1px solid #cbddeb; border-radius:8px; background:#f6faff; }
.po-new-product-form > strong { display:block; margin-bottom:12px; }
.po-new-product-form .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.po-new-product-form .field :is(input,select,textarea) { width:100%; max-width:100%; min-width:0; }
.supplier-order-editor [data-action="purchase-order-add-new"] { margin:8px 0 8px 8px; }
.supplier-order-paper .po-item-specification { display:block; margin-top:4pt; font:400 10pt/12pt Arial,Helvetica,sans-serif; color:#4e6072; }
@media screen and (max-width:600px) {
  .po-search-result { grid-template-columns:minmax(0,1fr) auto; }
  .po-result-product { grid-column:1 / -1; }
  .po-new-product-modal .modal-header > div { min-width:0; }
  .po-new-product-form .form-grid { grid-template-columns:minmax(0,1fr); }
  .po-new-product-form .span-2 { grid-column:auto; }
  .supplier-order-editor [data-action="purchase-order-add-new"] { margin-left:0; }
}
.supplier-order-paper .supplier-order-table th { white-space:normal; }
.supplier-order-paper .supplier-order-contact { margin-top:8pt; font-size:11pt; }
.supplier-order-paper .supplier-order-notes { margin-top:12pt; white-space:pre-wrap; overflow-wrap:anywhere; }
.supplier-order-paper .model-conduce-ending { break-inside:avoid; page-break-inside:avoid; }
.supplier-order-paper .model-conduce-signatures { display:grid; }
@media screen and (max-width:600px) {
  .supplier-order-editor-table { min-width:0; width:100%; }
  .supplier-order-editor-table thead { display:none; }
  .supplier-order-editor-table tbody { display:block; }
  .supplier-order-editor-table tr { display:grid; grid-template-columns:1fr 1.4fr auto; gap:10px; padding:12px 0; border-bottom:1px solid #dce5ee; }
  .supplier-order-editor-table td { display:block; padding:0; border:0; min-width:0; }
  .supplier-order-editor-table td:first-child { grid-column:1 / -1; width:auto; }
  .supplier-order-editor-table td:nth-child(2)::before { content:'Unidad'; display:block; color:#61788e; font-size:12px; margin-bottom:8px; }
  .supplier-order-editor-table td:nth-child(3)::before { content:'Cantidad solicitada'; display:block; color:#61788e; font-size:12px; margin-bottom:8px; }
  .supplier-order-editor-table td:last-child { align-self:end; }
  .supplier-order-editor-table input { width:100%; min-width:0; }
  .supplier-order-editor .modal-footer .btn { width:100%; justify-content:center; }
  .supplier-purchase-orders .panel-header { flex-wrap:wrap; gap:12px; }
}
.document-model-127 .model-conduce-table td:nth-child(2) { color:#000; white-space:nowrap; }
.document-model-127 .model-conduce-table td:nth-child(3) { text-align:left; }
.document-model-127 .model-conduce-acknowledgment { margin-top:16.08pt !important; text-align:justify; font:400 14.04pt/16.08pt Arial,Helvetica,sans-serif; }
.document-model-127 .model-conduce-signatures { grid-template-columns:167pt 167pt; margin:77.7pt 8pt 0 0; color:#000; font:400 14.04pt/16.08pt Arial,Helvetica,sans-serif; }
.document-model-127 .model-conduce-signatures > div { align-items:stretch; text-align:center; }
.document-model-127 .model-conduce-signatures > div:first-child span { width:auto; }
.document-model-127 .model-receipt-signature { position:relative; height:0; min-height:0; border-bottom:.55pt solid #000; margin:0 0 3pt; }
.document-model-127 .model-receipt-signature > span { position:absolute; bottom:3pt; left:0; width:100%; }
/* Technical sheet */
.document-paper.document-model-127.model-technical { width:792pt; min-height:612pt; padding:36pt; color:#000; font:400 15pt/17.28pt Arial,Helvetica,sans-serif; }
.document-model-127.model-technical .process-model-company { min-height:119.2pt; }
.document-model-127.model-technical .process-model-logo { top:-1.8pt; left:-8.4pt; width:147pt; height:110.2pt; }
.document-model-127.model-technical .process-model-company-details { margin-left:138.62pt; padding-top:16.5pt; }
.document-model-127.model-technical .process-model-company-details h2 { font:700 15pt/17.28pt Arial,Helvetica,sans-serif; margin:0; }
.document-model-127.model-technical .process-model-company-details p { font:400 12.96pt/14.96pt Arial,Helvetica,sans-serif; }
.document-model-127 .model-technical-date { display:flex; justify-content:flex-end; gap:6pt; margin-right:31.5pt; font:700 11.04pt/12.72pt Arial,Helvetica,sans-serif; }
.document-model-127 .model-technical-date strong { display:flex; align-items:center; justify-content:center; padding:4pt 7.3pt; min-width:57pt; background:#f2f2f2; }
.document-model-127 .model-technical-client { margin-top:9.5pt; font:700 15.96pt/18.36pt Arial,Helvetica,sans-serif; }
.document-model-127 .model-technical-reason { margin-top:12.7pt; font:400 12pt/13.8pt Arial,Helvetica,sans-serif; }
.document-model-127 .model-technical-heading { margin:15.5pt 0 14.2pt !important; font:700 15.96pt/18.36pt Arial,Helvetica,sans-serif; color:#000; }
.document-model-127 .model-technical-table { width:682.4pt; margin:0 auto; color:#000; }
.document-model-127 .model-technical-table :is(th,td) { padding:0 .5pt; font:400 15pt/17.28pt Arial,Helvetica,sans-serif; }
.document-model-127 .model-technical-table th { height:35.28pt; font-weight:700; padding:0 .5pt; }
.document-model-127 .model-technical-table td { height:44.64pt; }
.document-model-127 .model-technical-table tbody tr:nth-child(-n+2) td { height:36.72pt; }
.document-model-127 .model-technical-table td { white-space:pre-line; }
.document-model-127 .model-technical-table td:is(:nth-child(2),:nth-child(6)) { text-align:left; }
.document-model-127 .model-technical-table td:nth-child(6) { padding-left:0; padding-right:0; letter-spacing:-.015pt; }
.document-model-127 .model-technical-table .product-thumb { width:36pt; height:36pt; border-radius:4pt; }
.document-model-127 .model-technical-signature { margin:56.4pt auto 0; width:140.15pt; text-align:center; font:400 14.04pt/16.2pt Arial,Helvetica,sans-serif; break-inside:avoid; }
.document-model-127 .model-technical-signature > div { border-bottom:.5pt solid #000; }
/* Invoice */
.document-model-127.model-invoice .process-model-company { min-height:109.6pt; }
.document-model-127.model-invoice .process-model-logo { top:2.9pt; left:-.4pt; width:135.7pt; height:101.95pt; }
.document-model-127.model-invoice .process-model-company-details { margin-left:135.38pt; padding-top:13.2pt; }
.document-model-127.model-invoice .process-model-company-details h2 { font:700 12pt/13.8pt Arial,Helvetica,sans-serif; }
.document-model-127.model-invoice .process-model-company-details p { font:400 12pt/13.8pt Arial,Helvetica,sans-serif; }
.document-model-127 .model-invoice-heading { text-align:center; color:#002060; font:700 15.96pt/18.36pt Arial,Helvetica,sans-serif; }
.document-model-127 .model-invoice-metadata { margin-top:14.4pt; }
.document-model-127 .model-invoice-metadata { grid-template-columns:170.16pt 17.7pt 149.18pt 14.2pt 164.9pt; column-gap:0; }
.document-model-127 .model-invoice-metadata .model-127-customer { grid-column:1; }
.document-model-127 .model-invoice-metadata .model-127-meta-labels { grid-column:3; }
.document-model-127 .model-invoice-metadata .model-127-meta-values { grid-column:5; }
.document-model-127 .model-invoice-metadata .model-127-customer { border:.5pt solid #000; }
.document-model-127 .model-invoice-metadata .model-127-customer > * { padding-left:7.1pt; }
.document-model-127 .model-invoice-metadata .quote-final-client-name { min-height:57.1pt; }
.document-model-127 .model-invoice-metadata .quote-final-client-rnc { min-height:22.2pt; font:700 12pt/13.8pt Arial,Helvetica,sans-serif; color:#002060; border-bottom:0; }
.document-model-127 .model-invoice-metadata :is(.model-127-meta-labels,.model-127-meta-values) { border:.5pt solid #000; grid-template-rows:minmax(14.28pt,auto) minmax(21pt,auto) minmax(42.4pt,auto); }
.document-model-127 .model-invoice-metadata :is(.model-127-meta-labels,.model-127-meta-values) > strong { padding-top:0; padding-bottom:0; }
.document-model-127 .model-invoice-metadata :is(.model-127-meta-labels,.model-127-meta-values) > strong:last-child { border-bottom:0; }
.document-model-127 .model-invoice-process { margin:10pt 0 12.6pt 14.16pt; color:#000; font:700 11.04pt/12.72pt Arial,Helvetica,sans-serif; }
.document-model-127 .model-invoice-table { width:538.65pt; margin-left:.6pt; }
.document-model-127 .model-invoice-table :is(th,td) { padding:4.8pt .6pt; font:400 12pt/13.8pt Arial,Helvetica,sans-serif; }
.document-model-127 .model-invoice-table th { height:26.16pt; font-weight:700; }
.document-model-127 .model-invoice-table .model-invoice-item td { height:44.25pt; padding:.7pt .6pt; font:400 12pt/13.8pt Arial,Helvetica,sans-serif; }
.document-model-127 .model-invoice-table .model-invoice-item td:nth-child(2) { text-align:left; padding-left:0; }
.document-model-127 .model-invoice-table .model-invoice-summary-row > td { height:auto; padding:0; border:0; }
.document-model-127 .model-invoice-ending { margin:26pt 0 0; align-items:flex-start; width:539.4pt; }
.document-model-127 .model-invoice-totals { font:400 12pt/13.8pt Arial,Helvetica,sans-serif; }
.document-model-127 .model-invoice-totals :is(.model-invoice-total,.model-invoice-count) { margin-top:13.8pt; }
.document-model-127 .invoice-dgii-stamp { margin:0 0 0 27pt; }
.document-model-127 .invoice-dgii-stamp svg { width:80pt; height:80pt; }
@page sipQuote127 { size:Letter portrait; margin:35pt 36pt 14pt; }
@page sipInvoice127 { size:Letter portrait; margin:36pt; }
@page sipConduce127 { size:Letter portrait; margin:36pt 28pt; }
@page sipTechnical127 { size:Letter landscape; margin:36pt; }
@media print {
  .document-paper.document-model-127 { width:540pt !important; min-height:0!important; padding:0!important; margin:0!important; border:0!important; box-shadow:none!important; }
  .document-paper.model-quote-127 { page:sipQuote127; }
  .document-paper.document-model-127.model-invoice { page:sipInvoice127; }
  .document-paper.document-model-127.model-conduce { page:sipConduce127; width:556pt!important; padding:0 8pt!important; }
  .document-paper.document-model-127.model-technical { page:sipTechnical127; width:720pt!important; }
}
