.project-row-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

/* Version 27: hidden mobile sidebar must not reserve vertical page space. */
@media (max-width: 800px) {
  .app-shell { display: block; }
  .app-shell > aside { min-height: 0 !important; height: auto !important; }
  .app-shell > aside nav, .app-shell > aside .cloud-account { display: none !important; }
}

/* Version 26 mobile app launcher replaces the long navigation panel. */
@media (max-width: 800px) {
  .app-shell > aside { position: relative; padding: 15px 14px; }
  .app-shell > aside nav, .app-shell > aside .cloud-account { display: none !important; }
}

.label-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, auto) auto;
  gap: 12px;
  align-items: center;
}
.label-help { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; }
.label-header-actions, .asset-label-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.asset-label-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #111923; }
.asset-manager {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.5fr);
  gap: 18px;
  margin-top: 18px;
}
.label-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}
.asset-label {
  display: block;
  width: 100%;
  min-height: 120px;
  padding: 10px;
  border: 1px solid #334154;
  border-radius: 10px;
  background: #fff;
  color: #10141b;
  text-align: center;
  overflow: hidden;
}
.asset-label-actions { padding: 9px; }
.asset-label-actions button { flex: 1 1 110px; }
.asset-label canvas {
  display: block;
  width: 100%;
  height: 48px;
  margin: 5px auto 2px;
}
.label-code-pair { display: grid; grid-template-columns: minmax(0,1fr) 48px; align-items: center; gap: 5px; }
.label-code-pair > div { min-width: 0; }
.label-code-pair .label-qr { width: 44px; height: 44px; margin: 1px auto 0; image-rendering: pixelated; }
.label-code-pair small { display: block; color: #10141b; font-size: 5px; font-weight: 900; line-height: 6px; white-space: nowrap; }
.asset-action-card { max-width: 760px; }
.asset-action-identity { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 12px; }
.asset-action-identity span, .asset-action-identity code, .asset-action-identity h2, .asset-action-identity p { display: block; }
.asset-action-identity > div > span { color: #f4c644; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.asset-action-identity code { margin-top: 7px; font-size: 18px; }
.asset-action-identity h2 { margin: 8px 0 3px; }.asset-action-identity p { margin: 0; color: var(--muted); }
.asset-action-projects { display: grid; gap: 9px; margin: 12px 0; }
.asset-action-project { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); background: #0d131a; text-align: left; }
.asset-action-project b, .asset-action-project small { display: block; }.asset-action-project small { margin-top: 4px; color: var(--muted); }.asset-action-project strong { color: #f4c644; font-size: 11px; }
.label-company {
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 10px;
}
.label-equipment {
  display: flex;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  font-size: 11px;
  line-height: 14px;
}
.label-equipment span {
  color: #586579;
}
.label-equipment b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.label-identifiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  font-size: 8px;
  line-height: 10px;
  text-align: left;
}
.label-identifiers span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inventory-add-panel textarea {
  width: 100%;
  margin-top: 5px;
  padding: 10px;
  border: 1px solid #273241;
  border-radius: 8px;
  background: #0d131a;
  color: #fff;
  font: inherit;
  resize: vertical;
}
.serial-number-list { grid-column: 1 / -1; }
.serial-number-list small { display: block; margin-top: 5px; }
.inventory-assets { max-width: 360px; font-size: 11px; color: #b9c4d1; }
.inventory-logo { width: 68px; height: 68px; flex: 0 0 68px; border-radius: 10px; object-fit: cover; background: #fff; }
.inventory-identity { display: flex; align-items: center; gap: 12px; }
.cloud-library-toolbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.cloud-library-status { margin: 0 0 12px; color: #91a0b2; }
.cloud-library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.cloud-library-card { overflow: hidden; border: 1px solid #273241; border-radius: 14px; background: #111720; }
.cloud-library-card > img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; }
.cloud-library-card > div { padding: 14px; }
.cloud-library-card span, .cloud-library-card p, .cloud-library-selected span { color: #91a0b2; }
.cloud-library-card h2 { margin: 4px 0; font-size: 17px; }
.cloud-library-card p { min-height: 40px; margin: 6px 0 12px; font-size: 12px; }
.cloud-library-card button { width: 100%; }
.cloud-library-section-title { margin: 24px 0 12px; }
.cloud-library-section-title h2 { margin: 2px 0 0; }
.cloud-library-featured { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .8fr); overflow: hidden; min-height: 300px; border: 1px solid #334157; border-radius: 20px; background: linear-gradient(135deg, #13273a, #101721); }
.cloud-library-featured > div { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 30px; }
.cloud-library-featured h2 { margin: 5px 0 8px; font-size: clamp(24px, 4vw, 38px); }
.cloud-library-featured p:not(.eyebrow) { margin: 0 0 20px; color: #b9c4d1; }
.cloud-library-featured img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; background: #fff; }
.cloud-library-detail { max-width: 920px; margin: 0 auto; }
.cloud-library-back { margin: 0 0 14px; padding-left: 0; }
.cloud-product-hero { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.cloud-product-hero > img { width: 100%; aspect-ratio: 1; border-radius: 22px; object-fit: cover; background: #fff; }
.cloud-product-hero h1 { margin: 5px 0; font-size: clamp(30px, 5vw, 48px); }
.cloud-product-type { margin: 0 0 20px; color: #b9c4d1; font-size: 18px; }
.cloud-product-hero dl { margin: 0 0 22px; }
.cloud-product-hero dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #273241; }
.cloud-product-hero dt { color: #91a0b2; }
.cloud-product-hero dd { margin: 0; text-align: right; }
.cloud-product-hero small { display: block; max-width: 420px; margin-top: 10px; color: #91a0b2; line-height: 1.4; }
.cloud-recommendations { margin-top: 36px; padding-top: 24px; border-top: 1px solid #273241; }
.cloud-recommendations h2 { margin: 4px 0 14px; }
.cloud-recommendation-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cloud-recommendation-list button { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 1px solid #273241; border-radius: 14px; color: inherit; text-align: left; background: #111720; }
.cloud-recommendation-list img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #fff; }
.cloud-recommendation-list span, .cloud-recommendation-list small { display: block; min-width: 0; }
.cloud-recommendation-list b, .cloud-recommendation-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cloud-recommendation-list small { margin-top: 4px; color: #91a0b2; }
.cloud-recommendation-list strong { color: #8bbfff; font-size: 12px; }
.cloud-library-add { max-width: 720px; margin: 0 auto; }
.cloud-library-add-mode > header { display: none !important; }
.cloud-library-add .panel-title { margin-bottom: 16px; }
.cloud-library-add > .primary { width: 100%; min-height: 50px; margin-top: 16px; }
.cloud-library-selected { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 10px; border: 1px solid #273241; border-radius: 12px; }
.cloud-library-selected img { width: 72px; height: 72px; border-radius: 9px; object-fit: cover; }
.cloud-library-selected span { display: block; margin-top: 4px; }
@media (max-width: 900px) {
  .cloud-library-toolbar, .cloud-library-grid { grid-template-columns: minmax(0, 1fr); }
  .cloud-library-featured { grid-template-columns: minmax(0, 1fr); }
  .cloud-library-featured > div { padding: 22px; }
  .cloud-library-featured img { order: -1; min-height: 0; aspect-ratio: 16 / 10; }
  .cloud-library-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
  .cloud-library-card > img { height: 100%; min-height: 180px; }
  .cloud-library-card p { min-height: 0; }
  #cloud-library > header { display: grid; gap: 12px; }
  #cloud-library > header button { width: 100%; }
  .cloud-product-hero { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .cloud-product-hero > img { border-radius: 18px; }
  .cloud-product-hero h1 { font-size: 32px; }
  .cloud-product-hero > div > button { width: 100%; }
  .cloud-recommendation-list { grid-template-columns: minmax(0, 1fr); }
}
.damage-report-editor textarea {
  width: 100%;
  margin: 5px 0 12px;
  padding: 10px;
  border: 1px solid #273241;
  border-radius: 8px;
  background: #0d131a;
  color: #fff;
  font: inherit;
  resize: vertical;
}
.report-asset-field { grid-column: 1 / -1; }
.damage-report-row,
.asset-report-link {
  width: 100%;
  border: 0;
  border-top: 1px solid #273241;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.damage-report-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
}
.damage-report-row span,
.damage-report-row small {
  display: block;
  margin-top: 3px;
  color: #91a0b2;
}
.damage-report-row > .pill { color: inherit; flex: 0 0 auto; }
.asset-report-link { display: flex; justify-content: space-between; padding: 9px 0; }
.asset-history-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.asset-history-heading .secondary { padding: 7px 10px; }
@media (max-width: 600px) {
  .damage-report-row,
  .asset-report-link { display: block; }
  .damage-report-row > .pill { display: inline-block; margin-top: 8px; }
  .asset-report-link small { display: block; margin-top: 4px; }
  .asset-history-heading { align-items: stretch; flex-direction: column; }
}
.asset-detail-empty {
  color: #93a1b5;
  padding: 24px 0;
}
.asset-detail-card {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.asset-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}
.asset-detail-head h2 {
  margin: 6px 0;
}
.asset-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.asset-detail-grid > div {
  padding: 12px;
  border: 1px solid #2c394a;
  border-radius: 10px;
}
.asset-detail-grid span {
  display: block;
  color: #93a1b5;
  font-size: 12px;
  margin-bottom: 5px;
}
.asset-detail-grid small {
  display: block;
  margin-top: 4px;
  color: #93a1b5;
}
.asset-identity-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.identity-note {
  margin: -4px 0 0;
  color: #93a1b5;
  font-size: 12px;
}
@media (max-width: 600px) {
  .asset-identity-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}
.asset-detail-actions,
.camera-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.barcode-video {
  width: 100%;
  max-height: 320px;
  margin-top: 10px;
  border-radius: 12px;
  background: #000;
  object-fit: cover;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 16px;
}
.settings-layout textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 12px;
  padding: 12px;
  color: #fff;
  background: #0d131a;
  border: 1px solid #303d4d;
  border-radius: 10px;
  resize: vertical;
}
.document-switcher {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.document-switcher button {
  padding: 11px 8px;
  border: 1px solid #303d4d;
  border-radius: 9px;
  color: #aeb9c8;
  background: #0d131a;
  cursor: pointer;
}
.document-switcher button.active {
  color: #111720;
  border-color: #f5c744;
  background: #f5c744;
  font-weight: 800;
}
.document-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.document-fields label {
  color: #93a1b5;
  font-size: 12px;
}
.document-fields input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 5px;
  padding: 10px;
  color: #fff;
  background: #111923;
  border: 1px solid #303d4d;
  border-radius: 8px;
}
.document-preview-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  color: #121820;
  background: #fff;
  border-radius: 12px;
}
.document-preview-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  content: "";
  background: #f5c744;
}
.document-preview-head,
.document-preview-meta,
.document-preview-lines,
.document-preview-total {
  display: grid;
  gap: 16px;
}
.document-preview-head {
  grid-template-columns: 1fr auto;
  padding-bottom: 18px;
  border-bottom: 2px solid #121820;
}
.document-preview-head > div:last-child {
  text-align: right;
}
.document-preview-head span,
.document-preview-meta span,
.document-preview-lines span {
  display: block;
  color: #697381;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.document-preview-head h2,
.document-preview-head p {
  margin: 4px 0 0;
}
.document-preview-meta {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 18px 0;
  border-bottom: 1px solid #d7dce2;
}
.document-preview-meta b {
  display: block;
  margin-top: 4px;
}
.document-preview-lines {
  grid-template-columns: repeat(3, 1fr);
  padding: 20px 0;
}
.document-preview-lines b {
  display: block;
  font-size: 24px;
}
.document-preview-total {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin: 0 0 20px auto;
  padding-top: 13px;
  max-width: 360px;
  border-top: 2px solid #121820;
  font-size: 20px;
}
.paid-badge {
  position: absolute;
  top: 88px;
  right: 24px;
  padding: 7px 18px;
  color: #16814c;
  border: 3px solid #16814c;
  border-radius: 5px;
  font-weight: 900;
  letter-spacing: 0.12em;
  transform: rotate(-7deg);
}
.rental-document {
  display: none;
}

@media (max-width: 800px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .document-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .document-preview-meta {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .document-preview-card {
    padding: 20px 16px;
  }
  .document-preview-head h2 {
    font-size: 17px;
  }
  .document-preview-meta {
    grid-template-columns: 1fr;
  }
  .paid-badge {
    position: static;
    display: inline-block;
    margin: 16px 0 0;
  }
}

/* Version 77: phone and tablet inventory use two-column detail cards, never a wide table. */
@media (max-width: 900px) {
  .app-shell > aside nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #inventory > header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #inventory .header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  #inventory .header-actions button {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  #inventory .toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  #inventory .toolbar select {
    width: 100%;
    max-width: none;
  }

  #inventory .table-wrap {
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  #inventory table,
  #inventory tbody {
    display: block;
    width: 100%;
  }

  #inventory thead {
    display: none;
  }

  #inventory tbody {
    display: grid;
    gap: 12px;
  }

  #inventory tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    padding: 16px;
    border: 1px solid #273241;
    border-radius: 14px;
    background: #111720;
  }

  #inventory tbody td {
    display: block;
    min-width: 0;
    padding: 9px 0;
    border-bottom: 1px solid #273241;
    overflow-wrap: anywhere;
  }

  #inventory tbody td::before {
    content: attr(data-label);
    color: #91a0b2;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
  }

  #inventory tbody .inventory-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    grid-column: 1 / -1;
    padding: 0 0 13px;
  }

  #inventory tbody .inventory-identity b {
    display: block;
    font-size: 18px;
  }

  #inventory tbody td[data-label="Tracking"] {
    padding-left: 0;
  }

  #inventory tbody td[data-label="Daily rate"],
  #inventory tbody td[data-label="Replacement value"] {
    display: block;
    border-bottom: 0;
  }

  #inventory tbody td[data-label="Daily rate"]::before,
  #inventory tbody td[data-label="Replacement value"]::before {
    display: block;
    margin-bottom: 6px;
  }

  #inventory tbody td input {
    width: 100% !important;
    max-width: none;
    margin: 0 !important;
    padding: 10px !important;
  }
}

@media (max-width: 480px) {
  #inventory tbody tr { grid-template-columns: minmax(0, 1fr); }
}

/* Version 18: lock the entire app to the iPhone viewport. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.app-shell,
.app-shell > aside,
.app-shell > main,
.view,
.panel,
.metric,
header,
.cloud-account {
  min-width: 0;
  max-width: 100%;
}

.app-shell {
  width: 100%;
  overflow-x: clip;
}

.qa-mode-banner {
  width: 100%;
  max-width: 100vw;
  overflow-wrap: anywhere;
}
.qa-mode-banner.shared-qa-banner { background: #155f91; }

@media (max-width: 800px) {
  .app-shell > aside {
    position: static;
    width: 100%;
    overflow: hidden;
  }

  .app-shell > aside nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    margin-top: 10px;
    overflow: visible;
  }

  .app-shell > aside nav button {
    min-width: 0;
    padding: 10px 6px;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }

  .cloud-account {
    width: 100%;
  }

  .cloud-account button {
    width: 100%;
  }

  .app-shell > main {
    width: 100%;
    overflow-x: hidden;
  }

  header,
  .panel-title,
  .project-row,
  .team-row {
    min-width: 0;
  }

  .metrics,
  .settings-layout,
  .operations-grid,
  .asset-manager {
    width: 100%;
    min-width: 0;
  }

  img,
  canvas,
  video,
  table {
    max-width: 100%;
  }
}

@media (max-width: 430px) {
  .app-shell > aside nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qa-mode-banner {
    padding: 8px 10px;
    font-size: 10px;
    line-height: 1.3;
  }

  .brand {
    overflow-wrap: anywhere;
  }
}

@media print {
  #print-quote {
    display: contents !important;
  }
  body:not(.print-labels) {
    background: #fff !important;
  }
  body:not(.print-labels) .rental-document {
    display: block !important;
    color: #151a20;
    background: #fff;
    font: 10pt/1.35 Arial, sans-serif;
  }
  .rental-document-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    padding: 20px 24px;
    color: #fff;
    background: #151a20;
    border-top: 7px solid #f5c744;
  }
  .rental-document-header h1 {
    margin: 0 0 3px;
    color: #fff;
    font-size: 22pt;
  }
  .rental-document-header p {
    max-width: 440px;
    margin: 8px 0 0;
    color: #ced3da;
    font-size: 8.5pt;
  }
  .rental-document-title {
    text-align: right;
  }
  .rental-document-title span,
  .rental-document-title strong,
  .rental-document-title small {
    display: block;
  }
  .rental-document-title span {
    color: #f5c744;
    font-size: 15pt;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .rental-document-title strong {
    margin-top: 5px;
    font-size: 11pt;
  }
  .rental-document-title small {
    margin-top: 3px;
    color: #ced3da;
  }
  .rental-paid-stamp {
    position: absolute;
    top: 32px;
    left: 50%;
    padding: 6px 17px;
    color: #16814c;
    border: 3px solid #16814c;
    border-radius: 4px;
    font-size: 17pt;
    font-weight: 900;
    letter-spacing: 0.12em;
    transform: translateX(-50%) rotate(-7deg);
  }
  .rental-document-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 18px 24px;
    border-bottom: 1px solid #ccd1d7;
  }
  .rental-document-meta span {
    display: block;
    margin-bottom: 4px;
    color: #697381;
    font-size: 7.5pt;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .rental-document-meta p {
    margin: 4px 0 0;
    color: #4e5966;
    font-size: 8.5pt;
  }
  .rental-document-table {
    width: calc(100% - 48px);
    margin: 20px 24px 0;
    border-collapse: collapse;
  }
  .rental-document-table th,
  .rental-document-table td {
    padding: 7px 8px;
    border-bottom: 1px solid #d9dde2;
    text-align: left;
  }
  .rental-document-table th {
    color: #fff;
    background: #242b33;
    font-size: 7.5pt;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .rental-document-table tr {
    break-inside: avoid;
  }
  .rental-document-table .number {
    text-align: right;
  }
  .rental-document-table .check-cell {
    text-align: center;
    font-size: 14pt;
  }
  .rental-document-table .rental-category-row th {
    padding: 11px 8px 5px;
    color: #151a20;
    background: #eef0f3;
    border-top: 1px solid #aeb5bd;
    border-bottom: 1px solid #c9ced4;
    font-size: 8.5pt;
    letter-spacing: 0.03em;
    text-align: left;
  }
  .packing-checkbox {
    display: inline-block;
    width: 22px;
    margin-right: 7px;
    font-size: 15pt;
    line-height: 10pt;
    vertical-align: -1px;
  }
  .packing-item-row td {
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .rental-document-totals {
    width: 300px;
    margin: 20px 24px 0 auto;
  }
  .rental-document-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 5px 0;
  }
  .rental-document-totals .grand {
    margin-top: 3px;
    padding-top: 9px;
    border-top: 2px solid #151a20;
    font-size: 13pt;
  }
  .packing-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 18px 24px;
  }
  .packing-summary > div {
    padding: 10px;
    background: #eef0f3;
  }
  .packing-summary b,
  .packing-summary span {
    display: block;
  }
  .document-signatures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 55px 24px 25px;
  }
  .document-signatures > div {
    padding-top: 6px;
    border-top: 1px solid #151a20;
  }
  .document-signatures span,
  .document-signatures small {
    display: block;
  }
  .document-signatures span {
    font-weight: 800;
  }
  .document-signatures small {
    margin-top: 2px;
    color: #697381;
  }
  .packing-write-in {
    margin: 22px 24px 0;
    break-inside: avoid;
  }
  .packing-write-in h2 {
    margin: 0 0 14px;
    font-size: 9pt;
    text-transform: uppercase;
  }
  .packing-write-in > div {
    height: 20px;
    border-bottom: 1px solid #8c949d;
  }
  .rental-document-notes,
  .rental-document-terms {
    margin: 18px 24px 0;
    padding-top: 10px;
    border-top: 1px solid #ccd1d7;
    break-inside: avoid;
  }
  .rental-document-notes h2,
  .rental-document-terms h2 {
    margin: 0 0 5px;
    font-size: 9pt;
    text-transform: uppercase;
  }
  .rental-document-notes p,
  .rental-document-terms p {
    margin: 0;
    color: #4e5966;
    white-space: pre-line;
  }
  .rental-document-footer {
    display: none;
    justify-content: space-between;
    margin-top: 24px;
    padding: 10px 24px;
    color: #fff;
    background: #151a20;
    font-size: 8pt;
  }
  .rental-document > .rental-document-terms {
    display: none;
  }
  .document-page {
    box-sizing: border-box;
    break-before: page;
    color: #151a20;
    background: #fff;
  }
  .document-page > header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 24px;
    padding: 18px 22px;
    color: #fff;
    background: #151a20;
    border-top: 7px solid #f5c744;
  }
  .document-page > header span,
  .document-page > header h1 {
    display: block;
    margin: 0;
  }
  .document-page > header span {
    color: #f5c744;
    font-size: 8pt;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .document-page > header h1 {
    margin-top: 3px;
    color: #fff;
    font-size: 20pt;
  }
  .document-page > header strong {
    font-size: 10pt;
  }
  .terms-introduction {
    margin: 17px 22px 12px;
    padding: 10px 12px;
    color: #3f4a56;
    background: #eef0f3;
    border-left: 4px solid #f5c744;
    font-size: 8.5pt;
  }
  .rental-terms-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 22px;
    margin: 0 22px;
  }
  .rental-terms-columns article {
    margin: 0;
    break-inside: avoid;
  }
  .rental-terms-columns h2 {
    margin: 0 0 2px;
    font-size: 7.3pt;
    line-height: 1.18;
  }
  .rental-terms-columns p {
    margin: 0;
    color: #46515e;
    font-size: 6.25pt;
    line-height: 1.22;
    text-align: justify;
  }
  .document-page > footer {
    display: flex;
    justify-content: space-between;
    margin: 18px 22px 0;
    padding-top: 7px;
    color: #697381;
    border-top: 1px solid #cdd2d8;
    font-size: 7.5pt;
  }
  .signature-project-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 17px 22px 0;
  }
  .signature-project-summary > div {
    padding: 9px 11px;
    background: #eef0f3;
  }
  .signature-project-summary span,
  .signature-project-summary b {
    display: block;
  }
  .signature-project-summary span {
    margin-bottom: 4px;
    color: #697381;
    font-size: 7pt;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .signature-statement {
    margin: 18px 22px 0;
    color: #3f4a56;
    font-size: 9pt;
    line-height: 1.4;
  }
  .signature-check {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    margin: 16px 22px;
    padding: 9px 11px;
    border: 1px solid #aeb5bd;
  }
  .signature-check > span {
    font-size: 17pt;
    line-height: 1;
  }
  .signature-check p {
    margin: 0;
  }
  .signature-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 28px;
    margin: 30px 22px 0;
  }
  .signature-fields > div {
    min-height: 20px;
    padding-top: 6px;
    border-top: 1px solid #151a20;
  }
  .signature-fields span {
    color: #596573;
    font-size: 8pt;
  }
  .signature-fields .signature-line {
    margin-top: 15px;
  }
  .company-acceptance {
    margin: 28px 22px 0;
    padding-top: 12px;
    border-top: 2px solid #151a20;
  }
  .company-acceptance h2 {
    margin: 0;
    font-size: 11pt;
  }
  .company-acceptance .signature-fields {
    margin: 30px 0 0;
  }
  @page {
    size: letter;
    margin: 0.42in;
  }
}

@media (max-width: 800px) {
  .label-toolbar,
  .asset-manager {
    grid-template-columns: 1fr;
  }
  .label-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .asset-detail-grid {
    grid-template-columns: 1fr;
  }
  .asset-label {
    min-height: 105px;
    padding: 7px;
  }
}

@media print {
  body.print-labels {
    background: #fff !important;
  }
  body.print-labels .app-shell {
    display: block !important;
  }
  body.print-labels aside,
  body.print-labels .view:not(#labels),
  body.print-labels #labels > header,
  body.print-labels .label-toolbar,
  body.print-labels .asset-label-actions,
  body.print-labels .asset-manager > .panel:first-child {
    display: none !important;
  }
  body.print-labels main,
  body.print-labels #labels,
  body.print-labels .asset-manager,
  body.print-labels .label-panel {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #fff !important;
  }
  body.print-labels .label-grid {
    display: grid !important;
    gap: 0 !important;
  }
  body.print-labels.print-label-selection .asset-label-card:not(.label-print-selected) { display: none !important; }
  body.print-labels .asset-label-card { overflow: visible; border: 0; border-radius: 0; background: transparent; }
  body.print-labels.print-sheet .label-grid {
    grid-template-columns: repeat(3, 2.625in);
    justify-content: center;
  }
  body.print-labels.print-sheet .asset-label-card,
  body.print-labels.print-sheet .asset-label {
    width: 2.625in;
    height: 1in;
  }
  body.print-labels.print-thermal .label-grid {
    grid-template-columns: 2in;
  }
  body.print-labels.print-thermal .asset-label-card,
  body.print-labels.print-thermal .asset-label {
    width: 2in;
    height: 1in;
  }
  body.print-labels.print-small .label-grid {
    grid-template-columns: repeat(4, 1.5in);
    justify-content: center;
  }
  body.print-labels.print-small .asset-label-card,
  body.print-labels.print-small .asset-label {
    width: 1.5in;
    height: 0.75in;
  }
  body.print-labels .asset-label {
    min-height: 0;
    box-sizing: border-box;
    border: 1px solid #bbb;
    border-radius: 0;
    break-inside: avoid;
    padding: 0.07in;
  }
  body.print-labels .asset-label canvas {
    height: 0.38in !important;
    margin: 0.02in auto 0;
  }
  body.print-labels .label-code-pair { grid-template-columns: minmax(0,1fr) 0.42in; gap: 0.03in; }
  body.print-labels .label-code-pair .label-qr { width: 0.4in !important; height: 0.4in !important; margin: 0 auto !important; }
  body.print-labels .label-code-pair small { font-size: 3.5pt; line-height: 0.05in; }
  body.print-labels .label-equipment {
    font-size: 7pt;
    line-height: 0.12in;
  }
  body.print-labels .label-company {
    font-size: 6pt;
  }
  body.print-labels .asset-label code {
    font-size: 6pt;
  }
  body.print-labels .label-identifiers {
    font-size: 5pt;
    line-height: 0.08in;
  }
}

#cloud-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(circle at top, #182332, #070a0f 60%);
  overflow: auto;
}
.cloud-card {
  width: min(460px, 100%);
  padding: 28px;
  border: 1px solid #2b394c;
  border-radius: 22px;
  background: #101720;
  box-shadow: 0 24px 80px #000a;
}
.cloud-card h1 {
  margin: 10px 0;
}
.cloud-card > p {
  color: #9aa8ba;
}
.cloud-logo {
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0.05em;
}
.cloud-logo span {
  color: #facb42;
}
.cloud-card label {
  display: grid;
  gap: 7px;
  margin: 14px 0;
  color: #9aa8ba;
}
.cloud-card .wide {
  width: 100%;
  margin-top: 10px;
}
#cloud-message {
  min-height: 24px;
  margin: 8px 0;
  color: #8fc1ff;
}
#cloud-message.error {
  color: #ff8d93;
}
.company-choice {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  padding: 16px;
  border: 1px solid #334154;
  border-radius: 12px;
  background: #16202c;
  color: #fff;
  text-align: left;
}
.company-choice small {
  color: #9aa8ba;
  text-transform: capitalize;
}
.starter-choice {
  margin: 16px 0;
  padding: 12px;
  border: 1px solid #334154;
  border-radius: 12px;
}
.starter-choice label {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
}
.starter-choice input {
  width: auto;
}
.cloud-account {
  display: grid;
  gap: 5px;
  margin: 18px 0;
  padding: 12px;
  border: 1px solid #273548;
  border-radius: 12px;
}
.cloud-account small {
  color: #88a0ba;
}
.cloud-account button {
  margin-top: 6px;
  padding: 7px 10px;
}
.inventory-add-panel {
  margin-bottom: 18px;
}
.header-actions,
.import-review-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.import-review-panel {
  margin-bottom: 18px;
}
.inventory-import-review-mode { overflow: hidden; }
.inventory-import-review-mode .import-review-panel {
  position: fixed;
  inset: 0;
  z-index: 1000;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow-y: auto;
  padding: max(18px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: #0a0d12;
}
.inventory-import-review-mode .import-review-actions { position: sticky; bottom: 0; padding: 14px 0; background: #0a0d12; }
.import-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid #293647;
}
.import-row label { min-width: 0; }
.import-row .import-name { grid-column: 1 / -1; }
.import-row .import-serials { grid-column: span 2; }
.import-row.invalid { border: 1px solid #7b343b; border-radius: 12px; padding: 12px; margin-top: 8px; }
.import-errors { grid-column: 1 / -1; color: #ff9a9a; font-weight: 800; }
.import-row button { align-self: end; }
.import-row:first-child {
  border-top: 0;
}
.import-row input {
  margin: 0;
  padding: 9px;
}
.import-row button {
  padding: 9px;
}
.import-review-actions {
  margin-top: 16px;
}
.team-invite-panel {
  margin-bottom: 18px;
}
.team-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid #293647;
}
.team-row:first-child {
  border-top: 0;
}
.team-row small {
  display: block;
  margin-top: 4px;
  color: #91a0b2;
}
.team-access {
  display: flex;
  align-items: center;
  gap: 8px;
}
.team-access select {
  min-width: 140px;
  margin: 0;
  padding: 8px;
}
.team-access button {
  padding: 8px 10px;
}
.invite-code {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #4d6a8f;
  border-radius: 12px;
  background: #142033;
}
.invite-code strong {
  font-size: 28px;
  letter-spacing: 0.15em;
  color: #facb42;
}
.invite-code small {
  color: #9aa8ba;
}
.join-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 6px;
  color: #8291a5;
}
.join-divider::before,
.join-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid #334154;
}
@media (max-width: 900px) {
  .header-actions {
    width: 100%;
  }
  .header-actions button {
    flex: 1;
  }
  .import-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 12px 0;
  }
  .import-row .import-name {
    grid-column: 1 / -1;
  }
  .import-row button { width: 100%; }
  .team-row {
    align-items: flex-start;
  }
  .team-access {
    display: grid;
    justify-items: end;
  }
  .team-access select {
    min-width: 125px;
  }
}

.open-project-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f4c644;
  color: #171717;
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.workspace-modal {
  overflow: hidden;
}

#project-detail {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.workspace-section {
  overflow: visible;
}

.project-flow {
  padding: 4px 0 18px;
}

.project-flow-summary {
  padding: 18px;
  margin-bottom: 14px;
  border: 1px solid #2b3848;
  border-radius: 16px;
  background: linear-gradient(145deg, #17212d, #0d141c);
}

.project-flow-summary span { color: #f7c948; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.project-flow-summary h3 { margin: 7px 0 3px; font-size: 30px; }
.project-flow-summary p { margin: 0; color: #91a0b2; }
.project-flow-list { display: grid; gap: 9px; }
.project-flow-list button {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 15px 16px; border: 1px solid #273647; border-radius: 13px;
  background: #111923; color: white; text-align: left; cursor: pointer;
}
.project-flow-list button span { min-width: 0; }
.project-flow-list button b, .project-flow-list button small { display: block; }
.project-flow-list button small { margin-top: 4px; color: #91a0b2; white-space: normal; }
.project-flow-list button strong { color: #91a0b2; font-size: 28px; font-weight: 400; }
.project-section-head { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 7px 0 10px; background: #111720; }
.project-flow-back { border: 0; background: transparent; color: #f7c948; padding: 8px 4px; font: inherit; cursor: pointer; }
.project-secondary-actions { display: contents; }
.project-actions-toggle { display: none; }

.onboarding-plans { border: 0; padding: 0; margin: 16px 0; }
.onboarding-plans legend { color: #91a0b2; margin-bottom: 8px; }
.onboarding-plans label { display: flex; align-items: center; gap: 10px; padding: 12px; margin-bottom: 8px; border: 1px solid #2b3848; border-radius: 12px; cursor: pointer; }
.onboarding-plans label:has(input:checked) { border-color: #f7c948; background: #2a2514; }
.onboarding-plans input { width: auto; margin: 0; }
.onboarding-plans b, .onboarding-plans small { display: block; }
.onboarding-plans small { color: #91a0b2; margin-top: 3px; }

@media (max-width: 480px) {
  .modal-backdrop {
    padding: 0;
    align-items: stretch;
  }

  .workspace-modal {
    height: 100dvh;
    max-height: 100dvh;
    padding: calc(13px + env(safe-area-inset-top)) 13px
      calc(13px + env(safe-area-inset-bottom));
    border-radius: 0;
  }

  #project-detail { overflow-x: hidden; }
  .modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .modal-actions button { width: 100%; min-width: 0; }
  .project-actions-toggle { display: block; }
  .project-secondary-actions { display: none; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 8px; }
  .project-secondary-actions.open { display: grid; }
  .modal-actions .primary { grid-column: auto; }
  .summary-strip { grid-template-columns: 1fr 1fr; }

  .workspace-tabs,
  .modal-head,
  .modal-actions {
    flex: none;
  }

  .workspace-tabs {
    margin: 8px 0;
  }

  .project-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 14px 0;
  }

  .project-row-actions {
    justify-content: space-between;
  }

  .open-project-label {
    padding: 10px 13px;
  }
}

.rental-stage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.rental-stage > div {
  background: #0d131a;
  border: 1px solid #273241;
  border-radius: 10px;
  padding: 12px;
}

.rental-stage span,
.scan-item-row span {
  display: block;
  color: #91a0b2;
  font-size: 10px;
}

.rental-stage b {
  font-size: 18px;
}

.checkout-controls {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 12px;
}

.scan-card p {
  color: #91a0b2;
  font-size: 11px;
}

.scan-card input {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 17px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.scan-card .primary {
  width: 100%;
  margin-top: 8px;
}

.scan-message {
  color: #91a0b2;
  font-size: 10px;
  margin-top: 7px;
}
.batch-scan-status { display: grid; gap: 3px; margin: 10px 0; padding: 11px; border: 1px solid #28684b; border-radius: 12px; background: #10291f; }
.batch-scan-status b { color: #66e4a6; }.batch-scan-status span { color: #b5c8be; font-size: 11px; }
.qa-device-warning, .checkout-guidance { display: grid; gap: 5px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: #101821; }
.qa-device-warning { margin-top: 12px; border-color: #a26c22; background: #2a2110; }.qa-device-warning span, .checkout-guidance span { color: var(--muted); }.qa-device-warning button { margin-top: 7px; }
.checkout-guidance { margin: 12px 0; }.checkout-guidance.blocked { border-color: #a8434b; background: #2a1418; }.checkout-guidance.ready { border-color: #947323; background: #28210d; }.checkout-guidance.active { border-color: #28684b; background: #10291f; }

.rental-actions {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.rental-actions button:disabled,
.scan-card button:disabled {
  opacity: 0.4;
}

.scan-list,
.scan-log {
  border: 1px solid #273241;
  border-radius: 11px;
  overflow: hidden;
  margin-bottom: 14px;
}

.scan-item-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 85px 70px 70px;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border-top: 1px solid #273241;
}

.scan-item-row:first-child {
  border-top: 0;
}

.scan-item-row small {
  display: block;
  color: #91a0b2;
  font-size: 10px;
}

.asset-issue-row,
.scan-log > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid #273241;
}

.asset-issue-row select {
  max-width: 140px;
  margin: 0;
}

.scan-log {
  padding: 12px;
  margin-top: 14px;
}

.scan-log h2 {
  margin-bottom: 8px;
}

.scan-log span {
  color: #91a0b2;
  font-size: 10px;
}

code {
  color: #ffe394;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (max-width: 720px) {
  .rental-stage {
    grid-template-columns: 1fr 1fr;
  }

  .checkout-controls {
    grid-template-columns: 1fr;
  }

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

  .scan-item-row > div:first-child {
    grid-column: 1 / -1;
  }

  .rental-actions { display: grid; grid-template-columns: 1fr; overflow: visible; }
  .rental-actions button { width: 100%; white-space: normal; }
}

.workspace-card h2 {
  margin-bottom: 10px;
}

.workspace-card label + label {
  display: block;
  margin-top: 10px;
}

.workspace-card select,
.workspace-card textarea {
  width: 100%;
  background: #111923;
  border: 1px solid #303d4d;
  color: white;
  border-radius: 8px;
  padding: 9px;
  margin-top: 5px;
}

.calendar-week {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #273241;
}

.calendar-policy {
  margin-top: 12px;
  color: #ffe394;
  line-height: 1.65;
}

.internal-tag {
  color: #ffe394;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.equipment-search {
  position: relative;
  margin-bottom: 16px;
}

.equipment-search > input {
  margin: 0;
  padding: 12px;
}

.equipment-search-result {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #0d131a;
  color: white;
  border: 1px solid #273241;
  border-top: 0;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
}

.equipment-search-result small,
.equipment-editor-row small,
.quote-preview-row small {
  display: block;
  color: #91a0b2;
  font-size: 10px;
}

.equipment-search-result strong {
  color: #f4c644;
  white-space: nowrap;
}

.equipment-editor {
  border: 1px solid #273241;
  border-radius: 11px;
  overflow: hidden;
}

.equipment-editor-head,
.equipment-editor-row {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) 72px 110px 110px 40px;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
}

.equipment-editor-head {
  background: #18212d;
  color: #91a0b2;
  font-size: 10px;
  text-transform: uppercase;
}

.equipment-editor-row {
  border-top: 1px solid #273241;
}

.equipment-editor-row input {
  margin: 0;
}

.remove-line {
  width: 34px;
  height: 34px;
  border: 1px solid #633038;
  border-radius: 8px;
  background: transparent;
  color: #ff9a9a;
  font-size: 20px;
}

.live-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #273241;
}

.live-total b {
  color: #f4c644;
  font-size: 20px;
}

.quote-preview-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0;
  padding-bottom: 16px;
  border-bottom: 2px solid #111;
}

.quote-preview-heading > div:last-child {
  text-align: right;
}

.quote-preview-heading small {
  display: block;
  color: #666;
}

.quote-category {
  background: #f4f4f4;
  padding-left: 8px;
  padding-right: 8px;
}

.quote-preview-terms {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #ccc;
  color: #444;
  font-size: 11px;
}

@media (max-width: 720px) {
  .equipment-editor-head {
    display: none;
  }

  .equipment-editor-row {
    grid-template-columns: 1fr 72px 40px;
  }

  .equipment-editor-row > div {
    grid-column: 1 / -1;
  }

  .equipment-editor-row input[data-equipment-rate] {
    grid-column: 1 / 2;
  }

  .equipment-editor-row > b {
    text-align: right;
  }

  .quote-preview-heading {
    display: block;
  }

  .quote-preview-heading > div:last-child {
    text-align: left;
    margin-top: 12px;
  }
}

.history-summary,
.history-row,
.quote-status-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.history-summary {
  color: #91a0b2;
  font-size: 10px;
  margin-bottom: 10px;
}

.history-row {
  padding: 9px 0;
  border-top: 1px solid #273241;
}

.history-row small,
.history-empty {
  color: #91a0b2;
}

.history-row.export span {
  color: #79afff;
}

.import-placeholder {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px dashed #526174;
  border-radius: 10px;
  background: #111923;
  color: #91a0b2;
  text-align: left;
}

.import-placeholder b {
  color: #f5f7fa;
}

.quote-status-line {
  align-items: center;
  margin-bottom: 12px;
  color: #555;
}

.quote-status-badge,
.quote-draft,
.quote-sent,
.quote-approved,
.quote-cancelled {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 900;
}

.quote-draft {
  background: #343c47;
  color: #d8e0e8;
}
.quote-sent {
  background: #18365b;
  color: #9bc7ff;
}
.quote-approved {
  background: #163b29;
  color: #72e1a2;
}
.quote-cancelled {
  background: #452126;
  color: #ff9a9a;
}

@media (max-width: 480px) {
  .history-row {
    display: block;
  }

  .history-row small {
    display: block;
    margin-top: 3px;
  }

  .modal-actions { overflow-x: hidden; }
}
