/* React workspace: shared colors and typography live in app.css. */
.react-workspace .nav-link.active {
  background: #2a405b;
  color: #fff;
}
.react-workspace .nav-link svg {
  flex-shrink: 0;
}
.react-workspace .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  min-width: 0;
}
.react-workspace
  input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
.react-workspace select,
.react-workspace textarea,
.react-dialog
  input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
.react-dialog select,
.react-dialog textarea {
  border: 1px solid #d8e0ea;
  border-radius: 9px;
  padding: 11px 13px;
  background: #fff;
  width: 100%;
  min-height: 44px;
}
.react-field > span:first-child,
.field-label {
  font-size: 13px;
  font-weight: 650;
}
.react-field > .react-field-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  min-width: 0;
}
.react-field small,
.field > small {
  color: #758299;
  font-size: 12px;
  line-height: 1.7;
}
.react-workspace .user-switcher select {
  max-width: 220px;
  border: 0;
  background: transparent;
  min-height: 44px;
  padding: 0 5px;
}
.react-workspace .topbar {
  gap: 12px;
}
.react-workspace .heading-actions,
.record-actions,
.react-workspace .button,
.react-dialog .button {
  display: flex;
  align-items: center;
  gap: 8px;
}
.react-workspace .heading-actions,
.record-actions {
  flex-wrap: wrap;
}
.react-workspace .form-grid.two,
.react-dialog .form-grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}
.react-workspace fieldset,
.react-dialog fieldset {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
.react-workspace textarea,
.react-dialog textarea {
  resize: vertical;
  line-height: 1.7;
}
.react-workspace .form-panel {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px;
}
.react-issue-form .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
/* iOS miscalculates 100%-wide date inputs with padding (WebKit #301648).
   Stretch the auto-sized flex item so its padding and border fit the field. */
.react-workspace .react-issue-form .field input[type="date"],
.react-dialog .react-issue-form .field input[type="date"] {
  width: auto;
  min-width: 0;
  max-width: 100%;
  align-self: stretch;
}
.react-issue-form .form-actions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.react-issue-form .form-section {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 24px;
}
.react-issue-form .form-section h3 {
  margin-bottom: 18px;
}
.app-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  color: #728095;
  min-height: 200px;
}
.spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.recovery-page {
  max-width: 640px;
  margin: 10vh auto;
  padding: 30px;
}
.react-workspace .form-errors,
.react-dialog .form-errors {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  white-space: pre-wrap;
}
.form-errors p {
  margin: 0;
  flex: 1;
}
.form-errors svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.react-sidebar-scrim {
  position: fixed;
  inset: 0;
  z-index: 89;
  border: 0;
  background: #0c203a88;
}
.connection-notice {
  background: #fff2cc;
  color: #7f5400;
  padding: 14px 24px;
  line-height: 1.7;
}
.react-workspace .flash {
  display: flex;
  justify-content: space-between;
}
.react-workspace .status-badge i,
.react-dialog .status-badge i {
  background: currentColor;
  border-radius: 50%;
  width: 7px;
  height: 7px;
}
.react-workspace .status-badge,
.react-dialog .status-badge {
  white-space: nowrap;
}
.react-workspace .stat-top .status-badge {
  font-size: 10px;
  padding: 4px 7px;
}
.react-workspace .context-line {
  gap: 15px;
  flex-wrap: wrap;
}
.detail-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.85;
}
.react-issue-detail .issue-detail-title {
  font-size: 23px;
  margin: 14px 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.record-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
}
.record-meta time {
  margin-left: auto;
  color: var(--muted);
}
.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 22px 0;
  gap: 0 24px;
}
.detail-facts > div {
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.detail-facts dt {
  font-size: 11px;
  color: #7c899a;
  margin-bottom: 7px;
}
.detail-facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.detail-facts small {
  display: block;
  margin-top: 4px;
  color: #7c899a;
  font-weight: 400;
}
.cost-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 18px;
  border-radius: 12px;
  background: #f2f6fc;
  gap: 20px;
  margin-bottom: 24px;
}
.cost-summary strong {
  display: block;
  font-size: 24px;
  margin-top: 8px;
}
.cost-summary small {
  color: #7c899a;
}
.history-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.history-section h3 {
  margin-bottom: 8px;
}
.react-timeline {
  list-style: none;
  padding: 0 0 0 20px;
  margin: 28px 0 0 8px;
  border-left: 2px solid #e2e8f1;
}
.react-timeline li {
  position: relative;
  padding: 0 0 26px 8px;
}
.timeline-dot {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 3px solid white;
  left: -28px;
  top: 1px;
  border-radius: 50%;
  background: #8493a6;
  box-shadow: 0 0 0 2px #e2e8f1;
}
.timeline-dot.before_review {
  background: #e34f57;
}
.timeline-dot.reviewed {
  background: #efbe37;
}
.timeline-dot.improved {
  background: #1b9a73;
}
.notification-evidence {
  background: #f1f6ff;
  border-radius: 6px;
  padding: 9px 12px;
  color: #5476a8;
  font-size: 11px;
  margin: 12px 0 0;
}
.cost-event {
  display: block;
  margin: 10px 0;
  color: #276549;
}
.photo-gallery,
.photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
}
.photo-gallery a,
.photo-preview img {
  width: 110px;
  height: 100px;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.photo-gallery img,
.photo-preview img {
  width: 110px;
  height: 100px;
  object-fit: cover;
}
.form-context {
  display: flex;
  gap: 9px;
  background: #f3f6fb;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 24px;
  font-size: 12px;
}
.form-context svg {
  flex-shrink: 0;
}
.form-context small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.status-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.react-issue-form .status-choice-card {
  cursor: pointer;
  border: 1px solid #dce3ee;
  padding: 12px 8px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.5;
}
.react-issue-form .status-choice-card input[type="radio"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  color: inherit;
  accent-color: currentColor;
  cursor: inherit;
}
.react-issue-form .status-choice-card > span {
  white-space: nowrap;
}
.react-issue-form .status-choice-card.before_review {
  color: #be303a;
}
.react-issue-form .status-choice-card.reviewed {
  color: #84600b;
}
.react-issue-form .status-choice-card.improved {
  color: #158461;
}
.react-issue-form .status-choice-card.selected {
  border-color: currentColor;
  box-shadow: inset 0 0 0 1px currentColor;
  background: #f8fafc;
}
.react-issue-form .status-choice-card:has(input:focus-visible) {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 13px;
  white-space: nowrap;
}
.checkbox-label input {
  width: 18px;
  height: 18px;
}
.conflict-panel,
.info-callout {
  background: #fff7dc;
  border: 1px solid #efe0af;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 13px;
}
.conflict-panel p {
  margin: 10px 0;
}
.danger-outline {
  color: #b73740;
  background: #fff;
  border: 1px solid #efbfc3;
}
.react-dialog {
  border: 0;
  border-radius: 18px;
  padding: 0;
  color: var(--ink);
  box-shadow: 0 30px 100px #112b4866;
  width: min(720px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  overscroll-behavior: contain;
}
.react-dialog::backdrop {
  background: #10274388;
  backdrop-filter: blur(3px);
}
.react-dialog-title {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.react-dialog-title .icon-button {
  font-size: 26px;
  min-width: 44px;
  height: 44px;
}
.react-dialog > .react-issue-form,
.react-dialog > .react-issue-detail {
  padding: 24px;
}
.react-filters {
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px;
  margin-bottom: 22px;
}
.react-filters .field {
  flex: 1 1 155px;
  margin: 0;
}
.react-filters .checkbox-label {
  align-self: flex-end;
}
.react-filters .button {
  flex: 0 0 auto;
}
.react-filters .text-link {
  padding-bottom: 12px;
}
/* A Field label wraps its control. Align the controls themselves, including
   mobile inputs with larger text, with their neighbouring action buttons. */
.react-workspace
  :is(.react-filters, .inventory-workflow-search, .stocktake-workflow-filters) {
  --filter-control-height: 44px;
}
.react-workspace
  :is(.react-filters, .inventory-workflow-search, .stocktake-workflow-filters)
  .field
  :is(
    input:not([type]),
    input[type="text"],
    input[type="search"],
    input[type="number"],
    input[type="date"],
    input[type="month"],
    select:not([multiple])
  ) {
  height: var(--filter-control-height);
  min-height: var(--filter-control-height);
  padding-block: 8px;
  line-height: 1.5;
}
.react-workspace
  :is(.react-filters, .inventory-workflow-search, .stocktake-workflow-filters)
  > .button {
  min-height: var(--filter-control-height);
}
@media (max-width: 900px) {
  .react-workspace
    :is(
      .react-filters,
      .inventory-workflow-search,
      .stocktake-workflow-filters
    ) {
    --filter-control-height: 48px;
  }
}
.react-workspace .table-scroll {
  overflow-x: auto;
}
.react-workspace .data-table {
  width: 100%;
}
.react-workspace .data-table td {
  max-width: 330px;
  overflow-wrap: anywhere;
}
.react-workspace .data-table small {
  display: block;
}
.mobile-record-list {
  display: none;
}
.react-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: #eaf0f8;
  width: fit-content;
  border-radius: 12px;
  margin-bottom: 22px;
}
.react-tabs button {
  border: 0;
  background: transparent;
  padding: 13px 24px;
  border-radius: 8px;
  color: #60738b;
  font-weight: 600;
}
.react-tabs button.selected {
  background: white;
  color: #2865df;
  box-shadow: 0 2px 7px #20324a14;
}
.project-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.react-project-card {
  overflow: hidden;
}
.project-card-image {
  position: relative;
  display: block;
  height: 250px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #f9fbfe;
}
.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.project-card-body {
  padding: 24px;
}
.project-card-body h2 {
  margin-bottom: 10px;
}
.project-issue-count {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: 0 2px 12px #14263d15;
  font-size: 12px;
}
.drawing-form-preview {
  max-height: 330px;
  display: block;
  width: 100%;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #f7f9fc;
  margin-bottom: 24px;
}
.section-note {
  color: #7c899a;
  font-size: 12px;
  margin-top: 20px;
  line-height: 1.8;
}
.notification-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.2fr);
  gap: 22px;
  align-items: start;
}
.notice-list {
  overflow: hidden;
  max-height: 700px;
  overflow-y: auto;
}
.notice-item {
  display: block;
  text-align: left;
  width: 100%;
  border: 0;
  background: #fff;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.notice-item.selected {
  background: #edf4ff;
  box-shadow: inset 3px 0 #2865df;
}
.notice-item p {
  margin: 10px 0;
  font-size: 13px;
  line-height: 1.7;
}
.notice-item small {
  color: #7c899a;
}
.notice-preview {
  padding: 26px;
  min-height: 400px;
}
.notice-preview h2 {
  line-height: 1.8;
  margin-bottom: 18px;
}
.notice-preview pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
  line-height: 1.85;
  font-size: 13px;
  padding: 22px;
  background: #f7f9fc;
  border-radius: 10px;
}
.delivery-badge {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 5px;
  white-space: nowrap;
}
.delivery-badge.delivered {
  color: #13876d;
  background: #e8f6f1;
}
.delivery-badge.queued {
  color: #7f6a20;
  background: #fff5cf;
}
.delivery-badge.failed {
  color: #bb3541;
  background: #fdecef;
}
.map-project-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  flex-wrap: wrap;
}
.map-project-controls > label:first-child {
  flex: 1 1 300px;
  max-width: 440px;
}
.map-project-controls > span {
  font-size: 12px;
}
.map-project-controls .checkbox-label {
  margin-left: auto;
}
.react-map-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.react-map-counts button {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  background: white;
  text-align: left;
  color: #435a75;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.react-map-counts button.selected {
  outline: 2px solid #7197ca;
  outline-offset: -2px;
}
.react-map-counts strong {
  font-size: 28px;
  font-weight: 700;
}
.react-map-counts small {
  font-size: 11px;
  font-weight: 400;
  margin-left: 5px;
}
.react-map-counts .before_review {
  background: #fff3f4;
}
.react-map-counts .reviewed {
  background: #fffbeb;
}
.react-map-counts .improved {
  background: #eff9f5;
}
.react-map-panel {
  overflow: hidden;
}
.map-instructions {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.map-instructions p {
  margin: 6px 0 0;
  font-size: 12px;
  color: #7c899a;
}
.map-pointer-help {
  display: block;
}
.map-touch-help {
  display: none;
}
@media (any-pointer: coarse) {
  .map-pointer-help {
    display: none;
  }
  .map-touch-help {
    display: block;
  }
}
.map-color-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.map-color-picker > span {
  font-size: 11px;
  margin-right: 6px;
  color: #7c899a;
}
.map-color {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 40px;
  padding: 8px 9px;
  background: white;
  font-size: 11px;
  white-space: nowrap;
}
.map-color i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.map-color.before_review i {
  background: #ec4a52;
}
.map-color.reviewed i {
  background: #f1c632;
}
.map-color.improved i {
  background: #1ca572;
}
.map-color.selected {
  outline: 2px solid #53677f;
  outline-offset: -2px;
}
.react-map-frame {
  position: relative;
  background: #edf2f7;
}
.react-map-frame.expanded {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
}
.react-map-frame.expanded .react-map-viewport {
  height: calc(100dvh - 54px);
  flex: 1;
  touch-action: none;
}
.react-map-viewport {
  height: clamp(400px, 60vh, 750px);
  overflow: hidden;
  position: relative;
  touch-action: manipulation;
  user-select: none;
  cursor: grab;
  background-color: #f3f6fa;
  background-image: radial-gradient(#d1dbe7 1px, transparent 1px);
  background-size: 18px 18px;
}
.react-map-viewport:active {
  cursor: grabbing;
}
.react-map-drawing {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  transform-origin: 0 0;
  pointer-events: none;
  box-shadow: 0 2px 14px #152a4514;
  background: white;
}
.react-map-tools {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 4;
  display: flex;
  align-items: center;
  background: #ffffffed;
  border: 1px solid #dae2ee;
  border-radius: 10px;
  box-shadow: 0 4px 16px #213b5812;
  padding: 3px;
}
.react-map-tools button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #4c6380;
  gap: 5px;
}
.react-map-tools button:hover {
  background: #edf3fc;
}
.react-map-tools output {
  font-size: 11px;
  width: 42px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.react-map-tools .place-center {
  font-size: 11px;
  border-left: 1px solid var(--line);
  border-radius: 0;
  padding-left: 12px;
}
.react-map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  padding: 5px;
  display: grid;
  place-items: center;
  background: transparent;
  z-index: 2;
  touch-action: manipulation;
}
.react-map-pin span {
  border: 2px solid #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow:
    0 2px 5px #1c354850,
    0 0 0 1px #32496355;
  font-size: 12px;
  font-weight: 800;
  color: white;
}
.react-map-pin.before_review span {
  background: #e94750;
}
.react-map-pin.reviewed span {
  background: #f2c631;
  color: #534510;
}
.react-map-pin.improved span {
  background: #169d70;
}
.react-map-pin.selected {
  z-index: 3;
}
.react-map-pin.selected span {
  outline: 4px solid #386fdc88;
  outline-offset: 2px;
}
.react-map-pin:hover span {
  box-shadow: 0 3px 10px #18334d88;
}
.react-map-legend {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.map-footnote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 20px;
  font-size: 11px;
  color: #7c899a;
  background: #fff;
}
.map-image-error {
  padding: 90px 30px;
  text-align: center;
  color: #b73740;
}
@media (max-width: 1150px) {
  .react-map-counts button {
    align-items: flex-start;
    flex-direction: column;
  }
  .map-instructions {
    flex-wrap: wrap;
  }
  .react-workspace .stat-top .status-badge {
    display: none;
  }
}
@media (max-width: 900px) {
  .react-workspace .sidebar.react-open {
    transform: translateX(0);
    z-index: 90;
  }
  .react-workspace .mobile-bottom-nav .nav-link.active {
    color: #2865df;
    background: transparent;
  }
  .react-workspace .user-switcher select {
    max-width: 170px;
  }
  .notification-workspace {
    grid-template-columns: 1fr;
  }
  .notice-list {
    max-height: 360px;
  }
  .project-card-grid {
    gap: 16px;
  }
  .react-workspace .main-content {
    padding-bottom: 100px;
  }
}
@media (max-width: 600px) {
  .react-issue-form .status-choice-card {
    flex-direction: column;
    gap: 8px;
    min-height: 76px;
    padding: 12px 6px;
  }
  .react-workspace .page-heading {
    gap: 14px;
  }
  .react-workspace h1 {
    font-size: 23px;
  }
  .react-workspace .heading-actions {
    width: 100%;
  }
  .react-workspace .heading-actions .button {
    flex: 1;
    justify-content: center;
  }
  .react-workspace .heading-actions .map-return-link {
    flex-basis: 100%;
  }
  .react-workspace .topbar-left > span {
    display: none;
  }
  .react-workspace .user-switcher select {
    max-width: 185px;
    font-size: 12px;
  }
  .react-workspace .form-panel {
    padding: 20px;
  }
  .react-workspace .form-grid.two,
  .react-dialog .form-grid.two {
    grid-template-columns: 1fr;
  }
  .react-workspace input,
  .react-workspace select,
  .react-workspace textarea,
  .react-dialog input,
  .react-dialog select,
  .react-dialog textarea {
    font-size: 16px;
  }
  .react-workspace .desktop-record-table {
    display: none;
  }
  .mobile-record-list {
    display: block;
  }
  .mobile-record-card {
    display: block;
    padding: 20px;
    border-top: 1px solid var(--line);
  }
  .mobile-record-card h3 {
    margin: 12px 0 8px;
    font-size: 15px;
    line-height: 1.7;
  }
  .mobile-record-card p {
    font-size: 12px;
    color: #7c899a;
  }
  .mobile-record-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
  }
  .react-workspace .react-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .react-filters > .field:first-of-type {
    grid-column: 1 / -1;
  }
  .react-filters .field {
    min-width: 0;
  }
  .react-filters .checkbox-label {
    grid-column: 1 / -1;
  }
  .react-workspace .react-filters select {
    max-width: 100%;
    min-width: 0;
  }
  .react-tabs {
    width: 100%;
  }
  .react-tabs button {
    padding: 12px 0;
    flex: 1;
  }
  .project-card-grid {
    grid-template-columns: 1fr;
  }
  .project-card-image {
    height: 210px;
  }
  .react-workspace .panel-heading {
    gap: 12px;
    flex-wrap: wrap;
  }
  .react-workspace .panel-heading input {
    min-width: 0;
  }
  .react-dialog {
    position: fixed;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    max-height: 94dvh;
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-x: none;
    touch-action: pan-y pinch-zoom;
  }
  .react-dialog input,
  .react-dialog select,
  .react-dialog textarea {
    min-width: 0;
    max-width: 100%;
  }
  .react-dialog-title {
    padding: 12px 18px;
  }
  .react-dialog > .react-issue-form,
  .react-dialog > .react-issue-detail {
    padding: 20px;
  }
  .sticky-form-actions {
    position: sticky;
    bottom: 0;
    margin: 0 -20px -20px;
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: #fff;
  }
  .react-dialog .sticky-form-actions .button {
    flex: 1;
    justify-content: center;
  }
  .detail-facts {
    gap: 0 16px;
  }
  .cost-summary strong {
    font-size: 22px;
  }
  .map-project-controls {
    gap: 10px;
  }
  .map-project-controls > label:first-child {
    max-width: none;
    flex-basis: 100%;
  }
  .map-project-controls .checkbox-label {
    margin-left: 0;
  }
  .react-map-counts {
    gap: 7px;
  }
  .react-map-counts button {
    padding: 10px 8px;
    gap: 8px;
  }
  .react-map-counts .status-badge {
    font-size: 10px;
    padding: 0;
    background: transparent;
    gap: 4px;
  }
  .react-map-counts .status-badge i {
    width: 5px;
    height: 5px;
  }
  .react-map-counts strong {
    font-size: 25px;
  }
  .react-map-counts button > span {
    font-size: 11px;
  }
  .react-map-counts small {
    font-size: 10px;
    margin-left: 3px;
  }
  .map-instructions {
    padding: 14px;
  }
  .map-instructions strong {
    font-size: 13px;
  }
  .map-instructions p {
    line-height: 1.7;
  }
  .map-color-picker {
    width: 100%;
  }
  .map-color {
    flex: 1;
    justify-content: center;
  }
  .map-color-picker > span {
    margin-right: 0;
  }
  .react-map-tools {
    top: 10px;
    left: 10px;
  }
  .react-map-tools .place-center span {
    display: none;
  }
  .react-map-viewport {
    height: 470px;
  }
  .react-map-legend {
    gap: 10px;
  }
  .react-map-legend .status-badge {
    font-size: 11px;
  }
  .map-footnote {
    padding: 12px 14px;
  }
  .record-actions .button {
    flex: 1;
    justify-content: center;
  }
  .notification-workspace {
    gap: 16px;
  }
  .notice-preview {
    padding: 20px;
  }
  .notice-preview pre {
    padding: 16px;
  }
  .react-workspace .stat-number.cost-number {
    font-size: 23px;
  }
}
@media print {
  .react-workspace .sidebar,
  .react-workspace .topbar,
  .react-workspace .mobile-bottom-nav,
  .react-workspace .heading-actions,
  .react-workspace .filter-bar,
  .react-workspace .page-footer {
    display: none !important;
  }
  .react-workspace .app-body {
    margin: 0;
  }
  .react-workspace .main-content {
    padding: 0;
  }
  .react-workspace .desktop-record-table {
    display: block;
  }
  .react-workspace .mobile-record-list {
    display: none;
  }
  .react-workspace .panel {
    box-shadow: none;
    break-inside: avoid;
  }
  .react-workspace .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .react-workspace .data-table {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spin {
    animation: none;
  }
}

/* Account access uses the same palette as the workspace. */
.access-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(460px, 1fr);
  background: #f8fafc;
}
.access-intro {
  padding: 56px 10%;
  background: #152a45;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 70px;
}
.access-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 25px;
  font-weight: 700;
}
.access-brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #a4bacd;
  margin-top: 3px;
}
.access-intro .eyebrow {
  color: #91b7da;
  font-size: 11px;
  letter-spacing: 0.15em;
}
.access-intro h1 {
  font-size: clamp(30px, 3.1vw, 49px);
  line-height: 1.6;
  letter-spacing: 0.03em;
  margin: 22px 0;
}
.access-intro p {
  color: #bccbdd;
  line-height: 2;
  font-size: 14px;
}
.access-intro-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: #acbfd2;
}
.access-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}
.access-card {
  width: 100%;
  max-width: 420px;
}
.access-icon {
  display: inline-flex;
  background: #e8eff7;
  color: #234665;
  padding: 15px;
  border-radius: 14px;
  margin-bottom: 24px;
}
.access-card h2 {
  font-size: 26px;
  letter-spacing: 0.02em;
}
.access-description {
  color: #66758a;
  line-height: 1.8;
  margin: 13px 0 30px;
}
.access-card .field,
.password-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.access-card input:not([type="checkbox"]) {
  width: 100%;
  border: 1px solid #ccd7e4;
  background: #fff;
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 16px;
  min-height: 48px;
}
.password-input {
  position: relative;
}
.password-input input {
  padding-right: 52px !important;
}
.password-input .icon-button {
  position: absolute;
  right: 4px;
  top: 2px;
  min-height: 44px;
  color: #66758a;
}
.access-submit {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-top: 26px;
}
.access-secondary-link {
  display: block;
  margin-top: 22px;
  text-align: center;
  color: #315d87;
  font-size: 13px;
}
.access-help,
.account-help {
  line-height: 1.8;
  font-size: 12px;
  color: #69798c;
  margin-top: 25px;
}
.access-footer {
  font-size: 11px;
  color: #8794a5;
  margin-top: 48px;
  text-align: center;
}
.access-card .form-errors {
  margin-bottom: 20px;
  white-space: pre-wrap;
}
.success-notice {
  padding: 14px;
  border-radius: 9px;
  margin: 16px 0;
  background: #e8f5ee;
  color: #276343;
  line-height: 1.7;
}
.account-shortcut {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 12px;
  white-space: nowrap;
}
.account-panel {
  padding: 24px;
  margin-bottom: 24px;
  min-width: 0;
}
.account-panel h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  margin-bottom: 18px;
}
.account-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}
.account-toolbar > span {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.account-toolbar input {
  max-width: 320px;
}
.account-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid #e5eaf0;
}
.account-identity {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.account-identity strong {
  font-size: 14px;
}
.account-identity small {
  color: #77859a;
  font-size: 11px;
}
.account-identity small.red-text {
  color: #b42336;
}
.account-state {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  font-size: 11px;
}
.account-status {
  border-radius: 5px;
  padding: 5px 9px;
  font-weight: 600;
  white-space: nowrap;
}
.account-status.enabled {
  color: #286547;
  background: #e4f4e9;
}
.account-status.stopped {
  color: #667182;
  background: #eef1f5;
}
.account-status.invited {
  color: #916611;
  background: #fff4d9;
}
.account-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.account-actions .button {
  padding: 9px 10px;
  font-size: 11px;
  min-height: 44px;
}
.account-help a {
  text-decoration: underline;
}
.account-dialog-form {
  padding: 24px;
}
.account-dialog-form > p {
  line-height: 1.8;
  margin-bottom: 20px;
}
.account-password-requirements {
  margin-bottom: 20px;
}
.account-password-requirements > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.account-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
}
.account-profile-grid .avatar {
  margin-bottom: 20px;
}
.account-profile-grid p {
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.session-recovery {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
}
@media (max-width: 1100px) {
  .account-row {
    flex-wrap: wrap;
  }
  .account-actions {
    flex-basis: 100%;
  }
}
@media (max-width: 760px) {
  .access-page {
    display: flex;
    flex-direction: column;
  }
  .access-intro {
    padding: 24px;
    gap: 0;
  }
  .access-intro > div:not(:first-child) {
    display: none;
  }
  .access-brand {
    font-size: 21px;
  }
  .access-form-side {
    padding: 34px 24px;
  }
  .access-icon {
    margin-bottom: 16px;
  }
  .access-footer {
    margin-top: 30px;
  }
  .account-panel {
    padding: 18px;
  }
  .account-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .account-toolbar input {
    max-width: none;
  }
  .account-row {
    gap: 12px;
  }
  .account-profile-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .account-shortcut > span {
    display: none;
  }
}
.notification-settings {
  max-width: 1080px;
  min-width: 0;
}
.notification-settings-intro,
.notification-settings-saved {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 12px;
  background: #eef4ff;
  color: #274c83;
  margin-bottom: 24px;
}
.notification-settings-intro svg,
.notification-settings-saved svg {
  flex-shrink: 0;
}
.notification-settings-intro p {
  margin: 6px 0 0;
  line-height: 1.7;
  font-size: 13px;
}
.notification-settings-saved {
  background: #eaf7f0;
  color: #17634a;
}
.notification-settings-factory {
  max-width: 460px;
  margin-bottom: 22px;
}
.notification-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.notification-settings-card {
  min-width: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.notification-settings-card > .button {
  align-self: flex-start;
  margin-top: auto;
}
.notification-settings-card-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.notification-step {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  border-radius: 10px;
  background: #eef4ff;
  color: #2b62c9;
  font-weight: 700;
}
.notification-settings-card h2,
.notification-recipient-preview h2 {
  font-size: 17px;
  margin: 0 0 6px;
}
.notification-settings-card-heading p {
  font-size: 13px;
  color: #718298;
  margin: 0;
}
.notification-recipient-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.notification-recipient-list li {
  display: flex;
  gap: 10px;
  min-width: 0;
  align-items: flex-start;
}
.notification-person-icon {
  flex-shrink: 0;
  padding: 7px;
  border-radius: 50%;
  background: #edf3f9;
  color: #6082a7;
}
.notification-recipient-list small,
.notification-recipient-option small {
  display: block;
  margin-top: 3px;
  color: #718298;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.notification-recipient-list .red-text,
.notification-recipient-option .red-text {
  color: #b32c38;
}
.notification-recipient-empty {
  padding: 18px 0;
  margin: 0;
  font-size: 13px;
  color: #718298;
  line-height: 1.7;
}
.notification-recipient-preview {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid #cbdcf2;
  border-radius: 14px;
  background: #f6f9ff;
  overflow-wrap: anywhere;
}
.notification-recipient-preview h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.notification-recipient-preview h3 {
  font-size: 14px;
  margin: 0;
}
.notification-recipient-preview p,
.notification-settings-help {
  font-size: 13px;
  line-height: 1.8;
}
.notification-settings-help {
  margin: 18px 0 24px;
  color: #718298;
}
.notification-settings-history {
  padding: 20px;
}
.notification-settings-history summary {
  cursor: pointer;
  font-weight: 600;
}
.notification-settings-history ol {
  list-style: none;
  padding: 0;
}
.notification-settings-history li {
  border-bottom: 1px solid #e4ebf3;
  padding: 14px 0;
  overflow-wrap: anywhere;
}
.notification-settings-history li span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #718298;
}
.notification-recipient-editor {
  padding: 24px;
  overflow-x: hidden;
  overflow-y: auto;
  min-width: 0;
}
.notification-recipient-editor > p {
  font-size: 13px;
  line-height: 1.7;
}
.notification-recipient-editor fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}
.notification-recipient-search {
  position: relative;
  display: block;
}
.notification-recipient-search svg {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #718298;
}
.react-dialog .notification-recipient-search input {
  padding-left: 40px;
  min-width: 0;
  max-width: 100%;
}
.notification-recipient-options {
  max-height: 300px;
  overflow-y: auto;
  display: grid;
  gap: 8px;
  padding: 2px;
}
.notification-recipient-option {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 13px;
  border: 1px solid #dce5ef;
  border-radius: 10px;
  cursor: pointer;
}
.notification-recipient-option.is-selected {
  border-color: #3975da;
  background: #f1f6ff;
}
.react-dialog .notification-recipient-option input[type="checkbox"] {
  appearance: auto;
  width: 20px;
  height: 20px;
  min-width: 20px;
  flex: 0 0 20px;
  margin: 0;
  padding: 0;
  accent-color: #2863da;
}
.notification-recipient-option > span,
.notification-recipient-list li > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.notification-settings-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}
@media (max-width: 720px) {
  .notification-settings-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .notification-settings-card,
  .notification-recipient-editor {
    padding: 18px;
  }
  .notification-settings-actions > .button {
    flex: 1;
    min-width: 0;
    padding-inline: 10px;
  }
  .notification-settings-card > .button {
    width: 100%;
  }
}

/* Maintenance and inventory share the existing workspace panels and controls. */
.inventory-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.inventory-nav a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: #2b4665;
  min-height: 44px;
}
.inventory-nav a:hover,
.inventory-nav a[aria-current="page"] {
  background: #eef4ff;
  border-color: #8fb1e8;
}
.react-workspace .inventory-filters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px;
  margin-bottom: 20px;
}
.inventory-filters .field {
  flex: 1 1 160px;
  margin: 0;
}
.inventory-filters .checkbox-label {
  min-height: 44px;
}
.inventory-section,
.inventory-locations,
.panel.inventory-form {
  padding: 24px;
  margin-bottom: 22px;
}
.inventory-section h2,
.inventory-form h2 {
  font-size: 18px;
  margin: 0 0 18px;
}
.inventory-section h3 {
  margin: 24px 0 12px;
}
.inventory-toolbar,
.inventory-pagination,
.inventory-usage-total,
.inventory-unit-actions,
.inventory-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.inventory-toolbar {
  margin: 16px 0;
}
.inventory-toolbar h2,
.inventory-toolbar h3 {
  margin: 0 auto 0 0;
}
.inventory-pagination {
  justify-content: flex-end;
  margin-top: 18px;
}
.inventory-form-actions {
  justify-content: flex-end;
  margin-top: 24px;
}
.inventory-form {
  min-width: 0;
}
.react-dialog .inventory-form {
  padding: 22px 26px;
}
.inventory-form .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  min-width: 0;
}
.inventory-form input[type="date"] {
  width: auto;
  min-width: 0;
  max-width: 100%;
  align-self: stretch;
}
.inventory-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.inventory-stats .stat-card {
  padding: 19px;
  min-width: 0;
}
.inventory-stats .stat-card > small {
  color: #5c7089;
  font-size: 12px;
  display: block;
  line-height: 1.6;
  margin-bottom: 10px;
}
.inventory-stats strong {
  font-size: 24px;
  display: block;
  overflow-wrap: anywhere;
}
.inventory-stats strong small {
  font-size: 13px;
  margin-left: 5px;
}
.inventory-badge {
  display: inline-block;
  font-size: 12px;
  border-radius: 6px;
  padding: 5px 9px;
  color: #326449;
  background: #edf7f0;
  line-height: 1.5;
}
.inventory-badge.warning {
  color: #805315;
  background: #fff1d7;
}
.inventory-badge.muted {
  color: #596980;
  background: #edf1f6;
}
.inventory-section .data-table small,
.inventory-table small,
.inventory-locations .data-table small {
  display: block;
  color: #667b92;
  font-size: 12px;
  margin-top: 5px;
}
.inventory-section .data-table td,
.inventory-table td {
  vertical-align: top;
  overflow-wrap: anywhere;
}
.inventory-section .data-table {
  min-width: 640px;
}
.inventory-section .detail-facts {
  margin-top: 0;
}
.inventory-section .detail-facts small {
  display: block;
  margin-top: 5px;
  color: #667b92;
}
.inventory-notice {
  background: #edf4ff;
  border: 1px solid #d3e2f7;
  border-radius: 10px;
  padding: 16px 18px;
  margin: 18px 0;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.inventory-notice.warning {
  background: #fff5e2;
  border-color: #edd9ae;
}
.inventory-unit-grid,
.inventory-forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}
.inventory-unit-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  min-width: 0;
}
.inventory-unit-card.selected {
  border: 2px solid #4278cf;
  background: #f7faff;
}
.inventory-unit-card h3 {
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.inventory-unit-card dl {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  font-size: 13px;
  gap: 8px 10px;
  line-height: 1.6;
  margin: 16px 0;
}
.inventory-unit-card dt {
  color: #667b92;
}
.inventory-unit-card dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.react-workspace .inventory-usage-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 20px;
}
.inventory-usage-row legend {
  padding: 0 8px;
  font-size: 13px;
  font-weight: 650;
}
.inventory-usage-total {
  justify-content: space-between;
}
.inventory-stocktake-line {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.inventory-stocktake-line:first-child {
  padding-top: 0;
}
.inventory-stocktake-line header,
.inventory-stocktake-difference {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.inventory-stocktake-line h2 {
  margin: 0;
}
.inventory-stocktake-line .field {
  max-width: 520px;
  margin-top: 16px;
}
.inventory-stocktake-line .field textarea {
  font-family: ui-monospace, monospace;
}
.inventory-custom-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}
.inventory-custom-field .button {
  margin-bottom: 18px;
}
.inventory-equipment-options legend {
  font-weight: 650;
  font-size: 13px;
  margin-bottom: 8px;
}
.inventory-equipment-options .checkbox-label {
  margin: 8px 0;
}
.inventory-qr-label {
  padding: 18px;
  border: 1px solid #d8e0ea;
  color: #000;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  width: min(100%, 300px);
  margin: 20px auto;
  overflow-wrap: anywhere;
}
.inventory-qr-label img {
  display: block;
  max-width: 100%;
  height: auto;
}
.inventory-qr-print-sheet {
  display: none;
}
@media (max-width: 720px) {
  .react-workspace .mobile-bottom-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .inventory-section,
  .inventory-locations,
  .panel.inventory-form,
  .react-dialog .inventory-form {
    padding: 18px;
  }
  .react-workspace .inventory-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px;
    gap: 14px;
  }
  .inventory-filters .field {
    flex-basis: calc(50% - 14px);
  }
  .react-workspace .inventory-filters > .field:first-of-type {
    grid-column: 1 / -1;
  }
  .react-workspace .react-filters.inventory-filters > .button.primary {
    grid-column: 1;
  }
  .react-workspace .react-filters.inventory-filters > .button.secondary {
    grid-column: 2;
  }
  .inventory-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .inventory-stats strong {
    font-size: 20px;
  }
  .inventory-form .form-grid.two,
  .inventory-custom-field {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .inventory-custom-field {
    border-bottom: 1px solid var(--line);
    margin-bottom: 16px;
  }
  .inventory-form-actions .button {
    flex: 1;
    justify-content: center;
  }
  .inventory-unit-actions .button {
    min-height: 44px;
  }
}
@media (max-width: 520px) {
  .react-workspace .inventory-filters > .field {
    grid-column: 1 / -1;
  }
}
@media print {
  body.inventory-qr-printing > :not(.inventory-qr-print-sheet) {
    display: none !important;
  }
  body.inventory-qr-printing > .inventory-qr-print-sheet {
    display: block !important;
    position: static;
    color: #000;
    background: #fff;
  }
  .inventory-qr-print-sheet .inventory-qr-label {
    width: 70mm;
    margin: 0;
    padding: 3mm;
    break-inside: avoid;
  }
}

/* Inventory master setup and revision history. */
.inventory-master-tabs {
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.inventory-master-table {
  min-width: 720px;
}
.inventory-master-table small,
.inventory-audit-entry header small {
  display: block;
  margin-top: 4px;
  color: #66778b;
}
.inventory-master-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.inventory-master-notes {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.inventory-setup h2 {
  margin-top: 0;
  font-size: 18px;
}
.inventory-setup-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.inventory-setup-steps a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.inventory-audit-list {
  display: grid;
  gap: 16px;
}
.inventory-audit-entry {
  padding: 18px;
  border: 1px solid #dde5ee;
  border-radius: 12px;
}
.inventory-audit-entry header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.inventory-audit-diff {
  margin: 0;
}
.inventory-audit-diff > div {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #edf1f6;
}
.inventory-audit-diff dt {
  color: #66778b;
}
.inventory-audit-diff dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
@media (max-width: 720px) {
  .inventory-master-tabs button {
    flex: 1 1 100px;
  }
  .inventory-audit-diff > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .inventory-audit-entry {
    padding: 14px;
  }
}

.inventory-location-units {
  list-style: none;
  margin: 12px 0;
  padding: 0;
}
.inventory-location-units li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f6;
}
.inventory-import-confirm {
  margin: 18px 0;
  min-height: 44px;
}
