@import './variables.css';
@import './base.css';
@import './nav.css?v=20260623-14';
@import './contacts.css?v=20260619-02';
@import './customer-profile-rows.css?v=20260616-04';
@import './customer-profile-toolbar.css';
@import './customer-profile-modal.css';
@import './customer-profile-modal-variants.css';
@import './customer-profile-item-modal.css?v=20260528-01';
@import './customer-profile-bulk-dates.css';
@import './customer-profile-item-unit-source.css';
@import './customer-profile-item-pricing.css';
@import './customer-profile-item-picker.css?v=20260527-01';
@import './customer-profile-detail.css?v=20260605-01';
@import './customer-profile-items-list.css';
@import './modals.css?v=20260618-01';
@import './products.css?v=20260524-02';
@import './inventory.css?v=20260603-02';
@import './sales-items.css?v=20260622-01';
@import './sales-orders.css?v=20260623-04';
@import './detailed-sales-report.css?v=20260616-03';
@import './detailed-purchase-report.css?v=20260616-05';
@import './licenses-vehicles.css?v=20260605-08';
@import './credit-applications.css';
@import './haccp.css';
@import './messages.css?v=20260526-03';
@import './ai-prospecting.css';
@import './suggestion-box.css?v=20260618-04';
@import './daily-inspections.css?v=20260612-02';
@import './print-preview.css?v=20260622-02';
@import './media.css?v=20260620-24';
@import './mobile-universal.css?v=20260519-01';

.modal-card.payables-inventory-review-modal-card {
  width: min(1780px, calc(100vw - 1rem));
}

.company-logo-fallback-is-hidden {
  display: none !important;
}

.workspace-privilege-surface:not(.modal-shell):not(.di-modal-shell) {
  position: relative;
}

.workspace-privilege-debug {
  position: fixed;
  right: 0.8rem;
  bottom: 0.7rem;
  z-index: 24000;
  display: grid;
  max-width: min(34rem, calc(100vw - 2rem));
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.25;
  pointer-events: auto;
}

.workspace-privilege-debug[hidden] {
  display: none;
}

.workspace-privilege-debug-title {
  color: var(--primary-strong);
  font-size: 0.76rem;
  font-weight: 900;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.workspace-privilege-debug-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.2rem 0.55rem;
}

.workspace-privilege-debug-row {
  display: inline-grid;
  grid-template-columns: 0.58rem minmax(0, max-content) max-content;
  align-items: center;
  gap: 0.38rem;
  min-width: 0;
  min-height: 1.95rem;
  padding: 0.32rem 0.48rem;
  border: 0;
  border-radius: 0.42rem;
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  user-select: none;
}

.workspace-privilege-debug-row--readonly {
  cursor: default;
}

.workspace-privilege-debug-row--requestable {
  cursor: pointer;
}

.workspace-privilege-debug-row:hover .workspace-privilege-debug-key,
.workspace-privilege-debug-row:focus-visible .workspace-privilege-debug-key {
  color: rgba(15, 118, 110, 0.92);
  text-decoration: underline;
  text-underline-offset: 0.12rem;
}

.workspace-privilege-debug-row--readonly:hover .workspace-privilege-debug-key,
.workspace-privilege-debug-row--readonly:focus-visible .workspace-privilege-debug-key {
  color: var(--text);
  text-decoration: none;
}

.workspace-privilege-debug-row--requestable.missing-access .workspace-privilege-debug-key {
  color: rgba(185, 28, 28, 0.78);
}

.workspace-privilege-debug-row--requestable.missing-access:hover .workspace-privilege-debug-key,
.workspace-privilege-debug-row--requestable.missing-access:focus-visible .workspace-privilege-debug-key {
  color: rgba(153, 27, 27, 0.96);
}

.workspace-privilege-debug-row[data-access-request-pending="true"] .workspace-privilege-debug-key,
.workspace-privilege-debug-row[data-access-request-submitted="true"] .workspace-privilege-debug-key {
  color: #065f46;
}

.workspace-privilege-request-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(15, 118, 110, 0.86);
  cursor: pointer;
  font: inherit;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12rem;
  pointer-events: auto;
}

.workspace-privilege-request-link:hover,
.workspace-privilege-request-link:focus-visible {
  color: rgba(15, 118, 110, 1);
}

.workspace-privilege-debug-dot {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.9);
}

.workspace-privilege-debug-row.has-access .workspace-privilege-debug-dot {
  background: rgba(34, 197, 94, 0.9);
}

.workspace-privilege-debug-row.missing-access .workspace-privilege-debug-dot {
  background: rgba(239, 68, 68, 0.9);
}

.workspace-privilege-debug-key {
  overflow: hidden;
  max-width: 14rem;
  min-width: 0;
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-privilege-debug-count {
  color: rgba(15, 118, 110, 0.95);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.85rem;
  font-weight: 900;
  line-height: 1;
}

.workspace-access-blocked > :not(.modal-header):not(.di-admin-modal-header):not(.workspace-access-denied-message):not(.workspace-access-denied-close):not(#workspace-privilege-debug):not(#workspace-privilege-request-modal) {
  display: none !important;
}

.workspace-access-denied-message {
  margin: 0;
  padding: 0.35rem 0;
}

.workspace-access-denied-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 45;
}

.access-item-users-modal-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: start;
}

#access-item-users-modal {
  z-index: 23000;
}

#access-item-users-modal .modal-backdrop {
  background: rgba(7, 37, 52, 0.34);
  backdrop-filter: blur(1px);
}

#access-item-users-modal .modal-card {
  width: min(54rem, calc(100vw - 2rem)) !important;
  border: 0;
  outline: 0;
  background: #f4fbff;
  box-shadow:
    0 0 0 1px rgba(5, 31, 44, 0.22),
    0 1.6rem 4.8rem rgba(5, 31, 44, 0.48);
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
}

#access-item-users-modal .modal-header {
  align-items: flex-start;
  gap: 1.2rem;
}

#access-item-users-modal .eyebrow {
  display: inline-flex;
  padding: 0.2rem 0.45rem;
  background: rgba(15, 118, 110, 0.12);
  color: var(--primary-strong);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
}

#access-item-users-title {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1.05;
}

#access-item-users-copy {
  color: var(--text);
  font-size: 1.04rem;
  font-weight: 800;
}

#access-item-users-status {
  padding: 0.32rem 0.55rem;
  background: rgba(15, 118, 110, 0.1);
  color: var(--primary-strong);
  font-size: 0.98rem;
  font-weight: 900;
}

.access-item-users-toolbar {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 0.8rem;
}

.access-item-users-search-label {
  color: var(--primary-strong);
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

#access-item-users-search {
  min-height: 2.3rem;
  border: 2px solid rgba(15, 118, 110, 0.35);
  font-size: 1rem;
  font-weight: 800;
}

.access-item-users-group {
  display: grid;
  min-width: 0;
  gap: 0.55rem;
}

.access-item-users-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.access-item-users-group-header h3 {
  margin: 0;
  color: var(--primary-strong);
  font-size: 1.12rem;
  font-weight: 900;
}

.access-item-users-group-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.45rem;
}

.access-item-users-select-all {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 900;
}

.access-item-users-group-list {
  display: grid;
  max-height: min(54vh, 32rem);
  overflow: auto;
  border: 1px solid var(--text-08);
}

.access-item-user-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.45rem;
  padding: 0.34rem 0.58rem;
  border-bottom: 1px solid var(--text-08);
  background: rgba(255, 255, 255, 0.92);
}

.access-item-user-row.is-locked {
  background: var(--text-04);
}

.access-item-user-row:last-child {
  border-bottom: 0;
}

.access-item-user-select {
  flex: 0 0 auto;
}

.access-item-user-main {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
}

.access-item-user-action {
  flex: 0 0 auto;
}

.access-item-user-action.ghost-button {
  align-self: center;
  min-height: 1.8rem;
  padding: 0.24rem 0.55rem;
  border-color: rgba(15, 118, 110, 0.28);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
}

.access-item-user-row strong,
.access-item-user-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-item-user-row strong {
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
}

.access-item-user-row span {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 900;
}

.company-picker-empty-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.75rem;
}

.company-picker-empty-actions[hidden] {
  display: none;
}

.user-access-request-list {
  display: grid;
  gap: 0.75rem;
}

.user-access-request-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.user-access-request-main {
  display: grid;
  min-width: 0;
  gap: 0.18rem;
}

.user-access-request-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.5rem;
}

.admin-access-requests-modal-card {
  width: min(76rem, calc(100vw - 2rem));
}

.admin-access-requests-list {
  display: grid;
  max-height: min(58vh, 34rem);
  gap: 0.35rem;
  overflow: auto;
  padding-right: 0.25rem;
}

.admin-access-request-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(15, 82, 72, 0.12);
  border-radius: 0.45rem;
  background: linear-gradient(135deg, rgba(235, 245, 241, 0.72), rgba(246, 242, 232, 0.42));
}

.admin-access-request-main {
  display: grid;
  grid-template-columns: minmax(10rem, 1.15fr) minmax(12rem, 1.25fr) minmax(9rem, 0.8fr);
  align-items: center;
  min-width: 0;
  gap: 0.65rem;
}

.admin-access-request-main span,
.admin-access-request-main code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-access-request-user,
.admin-access-request-permission {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.admin-access-request-user span,
.admin-access-request-context,
.admin-access-request-permission code {
  color: var(--muted);
  font-size: 0.76rem;
}

.admin-access-request-permission code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

.payables-po-review-modal-card {
  width: min(1900px, calc(100vw - 2rem));
}

.payables-po-review-lines-table {
  table-layout: fixed;
  width: min(1740px, 100%);
  min-width: 1648px;
}

.payables-po-review-lines-table th,
.payables-po-review-lines-table td {
  border-left: 1px solid rgba(17, 94, 89, 0.1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payables-po-review-lines-table th:first-child,
.payables-po-review-lines-table td:first-child {
  border-left: 0;
}

.payables-po-review-lines-table th:nth-child(1),
.payables-po-review-lines-table td:nth-child(1) {
  width: 88px;
}

.payables-po-review-lines-table th:nth-child(2),
.payables-po-review-lines-table td:nth-child(2) {
  width: 70px;
}

.payables-po-review-lines-table th:nth-child(3),
.payables-po-review-lines-table td:nth-child(3) {
  width: 300px;
}

.payables-po-review-lines-table th:nth-child(4),
.payables-po-review-lines-table td:nth-child(4) {
  width: 145px;
}

.payables-po-review-lines-table th:nth-child(5),
.payables-po-review-lines-table td:nth-child(5) {
  width: 72px;
}

.payables-po-review-lines-table th:nth-child(6),
.payables-po-review-lines-table td:nth-child(6) {
  width: 112px;
}

.payables-po-review-lines-table th:nth-child(7),
.payables-po-review-lines-table td:nth-child(7) {
  width: 112px;
}

.payables-po-review-lines-table th:nth-child(8),
.payables-po-review-lines-table td:nth-child(8) {
  width: 112px;
}

.payables-po-review-lines-table th:nth-child(9),
.payables-po-review-lines-table td:nth-child(9) {
  width: 96px;
}

.payables-po-review-lines-table th:nth-child(10),
.payables-po-review-lines-table td:nth-child(10) {
  width: 110px;
}

.payables-po-review-lines-table th:nth-child(11),
.payables-po-review-lines-table td:nth-child(11) {
  width: 110px;
}

.payables-po-review-lines-table th:nth-child(12),
.payables-po-review-lines-table td:nth-child(12) {
  width: 90px;
}

.payables-po-review-lines-table th:nth-child(13),
.payables-po-review-lines-table td:nth-child(13) {
  width: 250px;
}

.payables-po-review-lines-table th:nth-child(n + 5) {
  text-align: center;
}

.payables-po-review-lines-table td:nth-child(3) {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.admin-access-request-permission-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.admin-access-request-permission-link:hover,
.admin-access-request-permission-link:focus-visible {
  color: var(--brand);
  outline: none;
}

.admin-access-request-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.35rem;
}

.admin-access-request-actions .primary-button,
.admin-access-request-actions .ghost-button {
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
}

.workspace-privilege-request-card {
  width: min(24rem, calc(100vw - 2rem));
  border-radius: 0.5rem;
}

.workspace-privilege-request-card .modal-header {
  padding-bottom: 0.25rem;
}

.workspace-privilege-request-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.workspace-privilege-request-actions .primary-button,
.workspace-privilege-request-actions .ghost-button {
  min-height: 2.15rem;
  padding: 0.4rem 0.8rem;
}

@media (max-width: 720px) {
  .workspace-privilege-debug {
    right: 0.75rem;
    bottom: 0.65rem;
    max-width: calc(100% - 1.5rem);
    font-size: 0.64rem;
  }

  .workspace-privilege-debug-key {
    max-width: 9rem;
  }

  .access-item-users-modal-list {
    grid-template-columns: 1fr;
  }

  .user-access-request-card,
  .user-access-request-actions,
  .admin-access-request-card,
  .admin-access-request-actions {
    align-items: stretch;
  }

  .user-access-request-card,
  .user-access-request-actions {
    flex-direction: column;
  }

  .admin-access-request-card,
  .admin-access-request-main {
    grid-template-columns: 1fr;
  }
}
.purchasing-hub-receive-review-store-history-po-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--primary);
  padding: 0;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.14em;
  cursor: pointer;
}

.purchasing-hub-receive-review-store-history-po-link:hover,
.purchasing-hub-receive-review-store-history-po-link:focus-visible {
  color: var(--primary-strong);
  outline: none;
}
/* Native Cure processing step editor */
.native-cure-process-edit-modal-card {
  display: grid;
  width: min(520px, 94vw);
  max-height: min(92vh, 680px);
  padding: 1rem;
}

.native-cure-process-edit-modal-card form {
  display: grid;
  gap: 0.75rem;
}

.native-cure-process-edit-body {
  display: grid;
  gap: 0.7rem;
}

.native-cure-process-edit-body input,
.native-cure-process-edit-body textarea {
  width: 100%;
}

.native-cure-process-edit-check {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 800;
}

.native-cure-process-edit-check input {
  width: auto;
}

.native-cure-process-edit-actions {
  align-items: center;
  border-top: 1px solid var(--text-08);
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
  padding-top: 0.65rem;
}

.native-cure-process-edit-actions .ghost-button,
.native-cure-process-edit-actions .primary-action {
  background: var(--white-96);
  border: 1px solid var(--text-08);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.1;
  min-height: 2.15rem;
  padding: 0.48rem 0.85rem;
}

.native-cure-processing-step-edit-modal-card {
  display: grid;
  grid-template-rows: auto;
  width: min(680px, 94vw);
  max-height: min(94vh, 1100px);
  padding: 1rem;
}

.native-cure-processing-step-edit-modal-card form {
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 0.75rem;
}

.native-cure-processing-step-edit-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  overflow: visible;
}

.native-cure-processing-step-edit-body .field {
  min-width: 0;
}

.native-cure-processing-step-edit-body input,
.native-cure-processing-step-edit-body textarea {
  width: 100%;
}

.native-cure-processing-step-edit-body input {
  min-height: 2.15rem;
  padding-block: 0.38rem;
}

.native-cure-processing-step-edit-body textarea {
  min-height: 3.8rem;
}

.native-cure-processing-step-edit-process {
  grid-column: 1 / -1;
}

.native-cure-processing-step-edit-group {
  border: 1px solid var(--text-12);
  background: var(--white-98);
  display: grid;
  gap: 0.5rem;
  padding: 0.65rem;
}

.native-cure-processing-step-edit-group-title {
  color: var(--text-muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.native-cure-processing-step-edit-start-group {
  background: #eef8ef;
  border-color: rgba(42, 122, 61, 0.28);
  grid-column: 1;
}

.native-cure-processing-step-edit-end-group {
  background: #fff1f0;
  border-color: rgba(185, 63, 49, 0.28);
  grid-column: 2;
}

.native-cure-processing-step-edit-hours {
  align-self: center;
  border: 1px solid var(--text-08);
  background: var(--white-96);
  display: inline-flex;
  gap: 0.85rem;
  min-height: 2.15rem;
  padding: 0.38rem 0.55rem;
  width: max-content;
  min-width: 13rem;
}

.native-cure-processing-step-edit-hours strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  margin-top: 0.15rem;
}

.native-cure-processing-step-edit-hour-item {
  min-width: 5.5rem;
}

.native-cure-processing-step-edit-hour-item span {
  color: var(--text-muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
}

.native-cure-processing-step-edit-hour-item strong[data-native-cure-processing-step-hours] {
  color: #b93f31;
}

.native-cure-processing-step-edit-wide {
  grid-column: 1 / -1;
}

.native-cure-processing-step-edit-actions {
  align-items: center;
  border-top: 1px solid var(--text-08);
  display: flex;
  gap: 0.65rem;
  justify-content: space-between;
  padding-top: 0.65rem;
}

.native-cure-processing-step-edit-action-buttons {
  align-items: center;
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
}

.native-cure-processing-step-edit-action-buttons .ghost-button,
.native-cure-processing-step-edit-action-buttons .primary-action {
  background: var(--white-96);
  border: 1px solid var(--text-08);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.1;
  min-height: 2.15rem;
  padding: 0.48rem 0.85rem;
}

@media (max-width: 760px) {
  .native-cure-processing-step-edit-body {
    grid-template-columns: 1fr;
  }

  .native-cure-processing-step-edit-start-group,
  .native-cure-processing-step-edit-end-group {
    grid-column: 1;
    grid-row: auto;
  }

  .native-cure-processing-step-edit-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .native-cure-processing-step-edit-hours,
  .native-cure-processing-step-edit-action-buttons {
    width: 100%;
  }
}
