/* Generated by tools/build-styles.mjs (style-build:v1). Edit frontend/styles/application.css or the subject CSS files. */
@import url("./frontend/modules/settings/settings-shell.css?v=crm-admin-location-access-1");

/* MOBILE_ORDERS_PROGRESSIVE_LOAD_ROLLOUT: crm-mobile-orders-progressive-load-1 */
/* SESSION_LIVE_CHECK_ROLLOUT: crm-session-live-check-1 */
/* SESSION_FALLBACK_RELOAD_ROLLOUT: crm-session-fallback-reload-1 */
/* SESSION_END_NOTICE_VISIBILITY_ROLLOUT: crm-session-notice-visibility-1 */
/* SESSION_REPLACED_NOTICE_ROLLOUT: crm-session-replaced-notice-1 */
/* AUTH_DEVICE_SESSIONS_ROLLOUT: crm-auth-device-sessions-1 */
/* MOBILE_INSTANT_SHELL_ROLLOUT: crm-mobile-instant-shell-1 */
/* ORDER_AUDIT_ROLLOUT: crm-company-reset-4 */
/* STOCK_MINIMUM_INLINE_ROLLOUT: crm-ns-warehouse-stock-minimum-inline-1 */
/* REPLENISHMENT_ATTENTION_ROLLOUT: crm-ns-warehouse-replenishment-attention-1 */
/* CATALOG_INLINE_STOCK_SAVE_FAST_ROLLOUT: crm-ns-warehouse-inline-stock-save-fast-1 */
/* FINANCE_LEDGER_MENU_DISMISS_ROLLOUT: crm-finance-ledger-menu-dismiss-1 */
/* FINANCE_LEDGER_DOCUMENT_COLUMNS_ROLLOUT: crm-finance-ledger-document-columns-1 */
/* SCAN_FEEDBACK_EMPHASIS_ROLLOUT: crm-ns-warehouse-scan-feedback-emphasis-1 */
/* RECEIPT_CORRECTION_CONTINUOUS_SAVE_ROLLOUT: crm-ns-warehouse-receipt-correction-continuous-save-2 */
/* RECEIPT_INPUT_STABILITY_ROLLOUT: crm-ns-warehouse-receipt-input-stability-1 */
/* WAREHOUSE_TYPOGRAPHY_PARITY_ROLLOUT: crm-warehouse-typography-parity-1 */
/* WAREHOUSE_TEXT_CONTRAST_ROLLOUT: crm-warehouse-text-contrast-1 */
/* WAREHOUSE_TEXT_DARKEST_ROLLOUT: crm-warehouse-text-darkest-1 */
/* WAREHOUSE_FONT_WEIGHTS_ROLLOUT: crm-warehouse-font-weights-1 */
/* WAREHOUSE_STOCK_FULL_WIDTH_ROLLOUT: crm-warehouse-stock-full-width-1 */
/* WAREHOUSE_REGISTERS_UNIFIED_ROLLOUT: crm-warehouse-registers-unified-1 */
/* WAREHOUSE_DESKTOP_UI_UNIFIED_ROLLOUT: crm-warehouse-desktop-ui-unified-1 */
/* WAREHOUSE_POSTING_NS_PARITY_ROLLOUT: crm-warehouse-posting-ns-parity-1 */
/* WAREHOUSE_POSTING_PICKER_VIEWPORT_FIX_ROLLOUT: crm-warehouse-posting-picker-viewport-fix-1 */
/* WAREHOUSE_JOURNAL_TREE_UNIFIED_ROLLOUT: crm-warehouse-journal-tree-unified-2 */
/* WAREHOUSE_RESERVATION_TOOLBAR_ROLLOUT: crm-warehouse-reservation-toolbar-1 */
/* WAREHOUSE_TOOLBAR_HEADER_PARITY_ROLLOUT: crm-warehouse-toolbar-header-parity-1 */
/* WAREHOUSE_SALES_CATEGORY_STABILITY_ROLLOUT: crm-warehouse-sales-category-stability-1 */
/* WAREHOUSE_SALES_POPOVERS_ROLLOUT: crm-warehouse-sales-popovers-3 */
/* WAREHOUSE_SALES_CHECKOUT_ROLLOUT: crm-warehouse-sales-checkout-1 */
/* CATALOG_POSITION_SCROLL_FIX_ROLLOUT: crm-ns-warehouse-catalog-position-scroll-fix-1 */
/* WAREHOUSE_SALES_CLIENT_PICKER_ROLLOUT: crm-warehouse-sales-client-picker-1 */
/* SCAN_INLINE_STATUS_ROLLOUT: crm-ns-warehouse-scan-inline-status-1 */
/* SCAN_AUDIO_MAX_ROLLOUT: crm-ns-warehouse-scan-audio-max-1 */
/* WAREHOUSE_POSTING_CATALOG_PICKER_ROLLOUT: crm-warehouse-posting-catalog-picker-1 */
/* WAREHOUSE_SALES_ROAPP_REQUISITES_ROLLOUT: crm-warehouse-sales-roapp-requisites-1 */
/* LABEL_EAN13_GS1_ROLLOUT: crm-ns-warehouse-label-ean13-gs1-1 */
/* RECEIPT_EDIT_SESSIONS_ROLLOUT: crm-ns-warehouse-receipt-edit-sessions-2 */
/* RECEIPT_FIRST_SAVE_FIX_ROLLOUT: crm-ns-warehouse-receipt-first-save-fix-2 */
/* RECEIPT_EDITOR_CLEANUP_ROLLOUT: crm-ns-warehouse-receipt-editor-cleanup-1 */
/* RECEIPT_STATUS_AUTHOR_ROLLOUT: crm-ns-warehouse-receipt-status-author-2 */
/* RECEIPT_POSTING_CONTROL_ROLLOUT: crm-ns-warehouse-receipt-posting-control-1 */
/* DOCUMENT_JOURNAL_FULL_WIDTH_ROLLOUT: crm-ns-warehouse-document-journal-full-width-1 */
/* DOCUMENT_JOURNAL_COLUMNS_ROLLOUT: crm-ns-warehouse-document-journal-columns-1 */
/* STOCK_REPORT_COLUMNS_COST_ROLLOUT: crm-ns-warehouse-stock-report-columns-cost-1 */
/* STOCK_COST_SUM_LABEL_ROLLOUT: crm-ns-warehouse-stock-cost-sum-label-1 */
/* DATA_CONTRAST_ROLLOUT: crm-ns-warehouse-data-contrast-1 */
/* CATALOG_SEPARATOR_CONTRAST_ROLLOUT: crm-ns-warehouse-catalog-separators-1 */
/* CATALOG_BLACK_TEXT_ROLLOUT: crm-ns-warehouse-catalog-black-text-5 */
/* PRODUCT_NAME_LINES_ROLLOUT: crm-ns-warehouse-product-name-lines-5 */
/* TABLE_PALETTE_UNIFIED_ROLLOUT: crm-ns-warehouse-table-palette-unified-2 */
/* RECEIPT_SUPPLIER_CREATE_ROLLOUT: crm-ns-warehouse-receipt-supplier-create-1 */
/* STOCK_REPORT_PRODUCT_DETAIL_ROLLOUT: crm-ns-warehouse-stock-product-detail-1 */
/* BARCODE_ENTRY_FEEDBACK_ROLLOUT: crm-ns-warehouse-barcode-entry-feedback-1 */
/* WAREHOUSE_PERFORMANCE_ROLLOUT: crm-ns-warehouse-performance-1 */
/* WRITEOFF_INPUT_STABILITY_ROLLOUT: crm-ns-warehouse-writeoff-input-stability-1 */
/* LABEL_EAN13_COMPACT_CONTROLS_ROLLOUT: crm-ns-warehouse-label-ean13-compact-controls-1 */
/* LABEL_BARCODE_CONTENT_SHIFT_ROLLOUT: crm-ns-warehouse-label-barcode-content-shift-1 */
/* RECEIPT_CORRECTION_WAREHOUSE_LOCK_ROLLOUT: crm-ns-warehouse-receipt-correction-history-2 */
/* LABEL_BARCODE_BOTTOM_GAP_ROLLOUT: crm-ns-warehouse-label-barcode-bottom-gap-1 */
/* AUTH_COMPACT_LOGIN_CARD_STABLE: crm-auth-compact-login-card-1 */
/* LOCATION_PRODUCT_ACCESS_UI_ROLLOUT: crm-location-product-access-ui-1 */
/* LOCATION_STAFF_ACCESS_MANAGEMENT_ROLLOUT: crm-location-staff-access-management-1 */
/* SERIAL_TRACKING_CONVERSION_ROLLOUT: crm-ns-warehouse-serial-tracking-conversion-1 */
/* SUPERADMIN_LOCATION_SWITCHER_ROLLOUT: crm-superadmin-location-switcher-1 */
/* BETA_ROOT_TARGET_ROLLOUT: crm-beta-root-target-selection-1 */
/* SETTINGS_ROLE_PERMISSION_GUIDANCE_ROLLOUT: crm-settings-role-permission-guidance-1 */
/* STARTUP_VISUAL_STABILITY_ROLLOUT: crm-startup-visual-stability-3 */
/* CATALOG_COLUMNS_USABILITY_ROLLOUT: crm-ns-warehouse-catalog-columns-usability-2 */
/* WAREHOUSE_STYLE_MODULES_ROLLOUT: crm-warehouse-sales-style-module-1 */
/* WAREHOUSE_SALES_STYLE_MODULE_ROLLOUT: crm-warehouse-sales-style-module-1 */
/* LABEL_TRACKING_MARKING_ROLLOUT: crm-ns-warehouse-label-tracking-marking-1 */
/* LABEL_TEXT_LAYOUT_ROLLOUT: crm-ns-warehouse-label-typography-parity-3 */
/* PRODUCT_CARD_SUMMARY_ROLLOUT: crm-ns-warehouse-product-card-summary-1 */
/* PRODUCT_CATEGORY_TREE_FIX_ROLLOUT: crm-ns-warehouse-onboarding-category-tree-fix-1 */
/* CATALOG_DIRECT_CATEGORY_ROLLOUT: crm-ns-warehouse-catalog-direct-category-1 */
/* CATALOG_CATEGORY_GUIDANCE_ROLLOUT: crm-ns-warehouse-catalog-category-guidance-1 */
/* RECEIPT_QUANTITY_STABILITY_ROLLOUT: crm-ns-warehouse-receipt-quantity-stability-1 */
/* DOCUMENT_LAYOUT_STABILITY_ROLLOUT: crm-ns-warehouse-document-layout-unified-1 */
/* PRODUCT_SEARCH_POPOVER_ROLLOUT: crm-ns-warehouse-product-search-popover-unified-1 */
/* PRODUCT_CREATE_COMPACT_UNIFIED_ROLLOUT: crm-ns-warehouse-product-create-compact-unified-1 */
/* TRANSFER_PRODUCT_ENTRY_UNIFIED_ROLLOUT: crm-ns-warehouse-transfer-product-entry-unified-1 */
/* PRODUCT_CREATE_DETAIL_CARD_ROLLOUT: crm-ns-warehouse-product-create-detail-card-unified-1 */
/* PRODUCT_CREATE_OVERLAY_DRAFT_ROLLOUT: crm-ns-warehouse-product-create-overlay-draft-1 */
/* PRODUCT_CREATE_BROWSER_FULLSCREEN_ROLLOUT: crm-ns-warehouse-product-create-browser-fullscreen-1 */
/* RECEIPT_CORRECTION_JOURNAL_ROLLOUT: crm-ns-warehouse-receipt-correction-journal-1 */
/* DOCUMENT_SAVE_POLISH_ROLLOUT: crm-ns-warehouse-document-save-polish-5. */
/* WAREHOUSE_SALES_ROAPP_PARITY_ROLLOUT: crm-warehouse-sales-roapp-parity-1 */
@font-face {
  font-family: "Manrope";
  /* IMPORT_EXPORT_COMPACT_ROLLOUT: crm-import-export-compact-1 cache-key parity. */
  /* IMPORT_COPY_SHORT_ROLLOUT: crm-import-copy-short-1 cache-key parity. */
  /* PRODUCT_FORM_COMPACT_ROLLOUT: crm-ns-warehouse-product-form-compact-2 */
  /* RECEIPT_ACTION_STABILITY_ROLLOUT: crm-ns-warehouse-receipt-action-stability-2 cache-key parity. */
  /* SETTINGS_TRUST_ROLLOUT: crm-settings-trust-permissions-1 */
  /* FINANCE_PAYROLL_SETTINGS_SINGLE_SOURCE_ROLLOUT: crm-finance-payroll-settings-single-source-2 */
  src: url("./frontend/assets/fonts/manrope/Manrope-VariableFont_wght.ttf?v=crm-admin-location-access-1") format("truetype-variations");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

/* ORDER_CLIENT_PHONE_AUTOFILL_ROLLOUT: crm-orders-client-phone-autofill-1 */
/* ORDER_CLIENT_LOOKUP_LIFECYCLE_ROLLOUT: crm-order-client-lookup-lifecycle-1 */
html.crm-order-client-lookup-lifecycle-beta .drawer:not(.drawer--order-create) .mobile-order-client-lookup,
html.crm-order-client-lookup-lifecycle-beta .drawer:not(.open) .mobile-order-client-lookup {
  display: none;
}

html.crm-orders-client-phone-autofill-beta .drawer.drawer--order-create .mobile-order-client-phone-field {
  min-width: 0;
}

html.crm-orders-client-phone-autofill-beta .drawer.drawer--order-create .mobile-order-client-phone-field > input {
  width: 100%;
}

html.crm-orders-client-phone-autofill-beta .drawer.drawer--order-create .mobile-order-client-lookup {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #4c6074;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
}

html.crm-orders-client-phone-autofill-beta .drawer.drawer--order-create .mobile-order-client-lookup[hidden] {
  display: none;
}

html.crm-orders-client-phone-autofill-beta .drawer.drawer--order-create .mobile-order-client-lookup__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 6px;
}

html.crm-orders-client-phone-autofill-beta .drawer.drawer--order-create .mobile-order-client-lookup button {
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid #a9c6e5;
  border-radius: 5px;
  background: #fff;
  color: #1767b3;
  font: inherit;
  font-weight: 800;
}

html.crm-order-client-name-choice-beta .drawer.drawer--order-create .mobile-order-client-lookup [data-mobile-order-client-history] {
  display: none;
}

/* Desktop uses the existing client history sidebar. */
@media (min-width: 761px) {
  html.crm-orders-client-phone-summary-cleanup-beta .drawer.drawer--order-create .mobile-order-client-lookup:not(.has-name-mismatch) {
    display: none;
  }
}

html.crm-order-client-name-choice-beta .drawer.drawer--order-create .mobile-order-client-lookup.has-name-mismatch {
  color: #536474;
}

html.crm-order-client-name-choice-beta .drawer.drawer--order-create .mobile-order-client-lookup.has-name-mismatch button[data-mobile-order-client-apply] {
  border-color: #9dbde0;
  color: #1767b3;
}

@media (max-width: 760px) {
  html.crm-orders-client-phone-autofill-beta .drawer.drawer--order-create .mobile-order-client-lookup {
    flex-wrap: wrap;
  }
}

:root {
  --sidebar: #202b35;
  --sidebar-deep: #18232d;
  --sidebar-active: #33424f;
  --sidebar-hover: #2a3845;
  --line: #d8e0e8;
  --line-strong: #bfc9d4;
  --text: #202a34;
  --muted: #778391;
  --bg: #eef3f7;
  --blue: #2f74d0;
  --green: #55ad55;
  --danger: #c43f3a;
  --card: #ffffff;
  --new: #edf4fd;
  --work: #ceebdb;
  --wait: #faebcf;
  --done: #edf1f5;
  --shadow: 0 1px 3px rgba(28, 43, 58, 0.12);
  --shadow-strong: 0 12px 34px rgba(24, 39, 55, 0.2);
}

* {
  box-sizing: border-box;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  display: grid;
  grid-template-columns: 204px 1fr;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0;
}

body.auth-locked {
  display: block;
}

body.subscription-locked {
  display: block;
}

[hidden] {
  display: none !important;
}

.company-empty-hint {
  color: #8a98a8;
  font-style: italic;
}

body.admin-only {
  grid-template-columns: 1fr;
}

body.auth-locked .sidebar,
body.auth-locked .shell {
  display: none;
}

html.crm-startup-visual-stability-preboot body.auth-locked .app-startup-shell {
  display: grid;
}

body.subscription-locked .sidebar,
body.subscription-locked .shell,
body.subscription-locked .app-startup-shell {
  display: none !important;
}

body.post-login-booting .sidebar,
body.post-login-booting .shell {
  visibility: hidden;
  pointer-events: none;
}

body.admin-only .sidebar,
body.admin-only .orders-view,
body.admin-only .contacts-view,
body.admin-only .inventory-view,
body.admin-only .finance-view,
body.admin-only [data-view-target]:not(#adminPanelButton) {
  display: none;
}

.subscription-access-gate {
  min-height: 100vh;
  display: none;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 20% 10%, rgba(93, 154, 224, 0.12), transparent 34%),
    #edf3f8;
}

body.subscription-locked .subscription-access-gate {
  display: grid;
}

.subscription-access-gate__panel {
  width: min(520px, 100%);
  display: grid;
  gap: 14px;
  padding: 34px;
  border: 1px solid #cbd8e4;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(26, 40, 55, 0.14);
}

.subscription-access-gate__eyebrow {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff3d9;
  color: #8b5b09;
  font-size: 11px;
  font-weight: var(--ui-weight-black, 900);
  text-transform: uppercase;
}

.subscription-access-gate__panel h1 {
  margin: 0;
  font-size: 28px;
}

.subscription-access-gate__panel p {
  margin: 0;
  color: #657384;
  font-size: 14px;
  line-height: 1.55;
}

.subscription-access-gate__company {
  padding: 14px 16px;
  border: 1px solid #d9e3ec;
  border-radius: 8px;
  background: #f7fafc;
  color: #263544;
  font-size: 15px;
  font-weight: 800;
}

.subscription-access-gate__meta {
  color: #748292;
  font-size: 12px;
}

.subscription-access-gate__actions {
  display: flex;
  padding-top: 4px;
}
body.tenant-retention-enabled .subscription-access-gate__actions {
  flex-wrap: wrap;
  gap: 10px;
}

.tenant-retention-summary {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #d9e3ec;
  border-radius: 8px;
  background: #f7fafc;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.tenant-retention-summary[hidden] { display: none; }
.tenant-retention-summary p { margin: 0; }
@media (max-width: 600px) {
  body.subscription-locked.tenant-retention-enabled { overflow: auto; }
  body.tenant-retention-enabled .subscription-access-gate { min-height: 100svh; padding: 16px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  body.tenant-retention-enabled .subscription-access-gate__panel { padding: 22px; }
  body.tenant-retention-enabled .subscription-access-gate__panel h1 { font-size: 24px; }
  body.tenant-retention-enabled .subscription-access-gate__actions .button { width: 100%; min-height: 44px; white-space: normal; }
}

.app-startup-shell {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 24px;
  background: #edf3f8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.4;
}

body.post-login-booting .app-startup-shell {
  display: grid;
}

.app-startup-shell__panel {
  width: min(360px, 100%);
  min-height: 132px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 28px;
  border: 1px solid #cbd8e4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(26, 40, 55, 0.14);
  text-align: center;
}

.app-startup-shell__panel::before {
  content: "";
  width: 28px;
  height: 28px;
  border: 3px solid #d8e6f2;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: app-startup-spin 0.8s linear infinite;
}

/* MOBILE_SPINNER_PERSISTENT_BETA: crm-mobile-spinner-persistent-1 */
.app-startup-shell__spinner { display: none; }
@media (max-width: 760px) {
  html.crm-mobile-spinner-persistent-running .app-startup-shell__panel::before { display: none; }
  html.crm-mobile-spinner-persistent-running .app-startup-shell__spinner {
    display: block;
    width: 28px;
    height: 28px;
    border: 3px solid #d8e6f2;
    border-top-color: var(--blue);
    border-radius: 50%;
    backface-visibility: hidden;
  }
  .app-startup-shell__panel[data-mobile-startup-error] .app-startup-shell__spinner { display: none; }
}

.app-startup-shell__panel[data-mobile-startup-error]::before {
  display: none;
}

.app-startup-shell__panel strong {
  color: #24517d;
  font-size: 14px;
}

.app-startup-shell__panel span {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .app-startup-shell {
    padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  }

  .app-startup-shell__panel {
    width: min(320px, 100%);
    border-radius: 20px;
  }
}

@keyframes app-startup-spin {
  to {
    transform: rotate(360deg);
  }
}

/* MOBILE_STARTUP_SPINNER_SMOOTH_ROLLOUT: crm-mobile-startup-spinner-smooth-1 */
/* MOBILE_SPINNER_CONTINUITY_BETA: crm-mobile-spinner-continuity-1 */
@media (max-width: 760px) {
  html.crm-mobile-spinner-continuity-beta.crm-auth-entry-pending #appStartupShell {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  }

  html.crm-mobile-spinner-continuity-beta.crm-auth-entry-pending .app-startup-shell__panel {
    gap: 10px;
  }
}

@media (max-width: 760px) {
  html.crm-mobile-startup-spinner-smooth-beta .app-startup-shell__panel::before {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: transform;
    animation: app-startup-spin-composited 1.2s linear infinite;
  }
}

@keyframes app-startup-spin-composited {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(0, 0, 0) rotate(360deg); }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  html.crm-mobile-startup-spinner-smooth-beta .app-startup-shell__panel::before {
    animation: none;
    will-change: auto;
  }
}

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

button {
  cursor: pointer;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: linear-gradient(180deg, #25323e 0%, var(--sidebar) 42%, var(--sidebar-deep) 100%);
  color: #dce4ec;
  z-index: 4;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06), 2px 0 9px rgba(16, 27, 38, 0.16);
}

.avatar {
  width: 66px;
  height: 66px;
  margin: 14px auto 15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff964d, #e34263);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 4px 14px rgba(0, 0, 0, 0.18);
}

.side-nav {
  display: grid;
  align-content: start;
  gap: 1px;
  overflow: auto;
  padding-bottom: 8px;
}

.side-nav button,
.settings {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: #d7e0e8;
}

.side-nav button,
.settings {
  display: grid;
  grid-template-columns: 27px 1fr;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  text-align: left;
}

.side-nav span,
.settings span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #e9f0f6;
  font-size: 16px;
  line-height: 1;
  opacity: 0.96;
}

.side-nav svg,
.settings svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.side-nav em,
.settings em {
  max-width: 142px;
  overflow: hidden;
  color: #bdc8d3;
  font-size: 13px;
  font-style: normal;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-nav button.active,
.settings.active {
  border-left-color: #2f8be6;
  background: var(--sidebar-active);
  color: #fff;
}

.side-nav button:hover,
.settings:hover {
  border-left-color: rgba(47, 139, 230, 0.68);
  background: var(--sidebar-hover);
  color: #fff;
}

.side-nav button.active em,
.side-nav button:hover em,
.settings.active em,
.settings:hover em,
.side-nav button.active span,
.side-nav button:hover span,
.settings.active span,
.settings:hover span {
  color: #fff;
}

.settings {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.shell {
  min-width: 0;
  display: grid;
  grid-template-rows: 50px 44px auto 1fr;
  height: 100vh;
  overflow: hidden;
}

.shell.shell--starter-demo { grid-template-rows: 50px auto 44px auto 1fr; }
.starter-demo-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 8px 14px;
  border-bottom: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a5f;
  font-size: 13px;
}
.starter-demo-banner > span:first-child { flex: 1 1 350px; }
.starter-demo-banner .button { white-space: nowrap; }
.starter-demo-banner [data-starter-demo-review] { flex-basis: 100%; }
.starter-demo-banner [data-starter-demo-review] p { margin: 4px 0 8px; }

.topbar,
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.topbar {
  min-width: 0;
  padding: 0 14px;
}

.location {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 156px;
  min-width: 156px;
  max-width: 156px;
}

.location strong {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 24px;
  font-weight: 400;
}

.view-switch button {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: #4a5563;
}

.view-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.view-switch button {
  width: 31px;
  height: 28px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
}

.view-switch button:last-child {
  border-right: 0;
}

.view-switch .active {
  background: #edf4ff;
  color: var(--blue);
}

.topbar__spacer {
  flex: 1;
}

.top-search {
  width: min(300px, 28vw);
  height: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
}

.top-search input {
  height: 100%;
  width: 100%;
  border: 0;
  outline: 0;
}

.access-request-button {
  height: 30px;
  padding: 0 12px;
  border: 1px solid #b8c7d8;
  border-radius: 4px;
  background: #f5f9ff;
  color: #24517d;
  font-weight: 700;
}

.login-button,
.admin-panel-button,
.logout-button {
  height: 30px;
  padding: 0 12px;
  border: 1px solid #d2dae3;
  border-radius: 4px;
  background: #fff;
  color: #334155;
  font-weight: 700;
}

.admin-panel-button {
  border-color: #b9d2c4;
  background: #f2fbf5;
  color: #257048;
}

.logout-button {
  color: #9b2f2a;
}

.user-badge {
  max-width: 240px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #d7e0e8;
  border-radius: 999px;
  background: #f7fafc;
  color: #334155;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-switcher {
  height: 30px;
  max-width: 230px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  border: 1px solid #cbd8e6;
  border-radius: 6px;
  background: #f7fbff;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.tenant-switcher[hidden] {
  display: none;
}

.tenant-switcher select {
  min-width: 0;
  max-width: 150px;
  height: 26px;
  padding: 0 22px 0 0;
  border: 0;
  outline: 0;
  background-color: transparent;
  color: #1f3f62;
  font: inherit;
  cursor: pointer;
  text-overflow: ellipsis;
}

.user-badge--clickable {
  cursor: pointer;
}

.user-badge--clickable:hover,
.user-badge--clickable:focus-visible {
  border-color: #9fb8d3;
  background: #edf5ff;
  outline: 0;
}

.access-request-button:hover {
  background: #eaf3ff;
  border-color: #91afd0;
}

.side-nav [data-nav-maturity="future"] {
  display: none !important;
}

.mobile-more-sheet [data-nav-maturity="future"] {
  display: none !important;
}

.toolbar {
  justify-content: space-between;
  min-width: 0;
  min-height: 44px;
  padding: 0 16px;
  grid-row: 2;
}

.toolbar__left,
.stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.toolbar-separator {
  width: 1px;
  height: 28px;
  margin: 0 4px;
  background: var(--line);
}

.filter-toggle__icon {
  margin-right: 6px;
  color: #2f3a45;
}

.filter-toggle.active {
  border-color: #8fb6e7;
  background: #edf4fd;
}

.board-settings {
  min-width: 74px;
}

.create-menu-button {
  min-width: 96px;
}

#newOrderButton {
  min-height: 31px;
  border-color: #4fa653;
  border-radius: 3px;
  background: var(--green);
  color: #fff;
  font-weight: 750;
}

#newOrderButton:hover,
.button--green:hover {
  border-color: #429245;
  background: #4fa653;
  color: #fff;
}

.view-switch--orders {
  margin-left: 2px;
}

.button {
  min-height: 31px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: linear-gradient(#fff, #f7f9fb);
  color: #2f3a45;
  line-height: 1;
}

.button:hover {
  border-color: #aeb8c3;
}

.button:disabled,
.button:disabled:hover {
  border-color: var(--line);
  background: #eef2f6;
  color: #8792a0;
  cursor: not-allowed;
  opacity: 0.82;
}

.contact-form.is-saving .drawer__actions .button:disabled {
  cursor: wait;
}

.button--green {
  border-color: #4fa653;
  background: var(--green);
  color: #fff;
}

.button--blue {
  border-color: #2f68c7;
  background: var(--blue);
  color: #fff;
}

.button--soft {
  border-color: #d7e0ea;
  background: #f8fbff;
  color: #53606d;
}

.button--danger {
  color: var(--danger);
}

.button--danger-soft {
  border-color: rgba(217, 84, 79, 0.28);
  background: rgba(217, 84, 79, 0.08);
  color: #b83a33;
}

.button--danger-soft:hover {
  border-color: rgba(217, 84, 79, 0.42);
  background: rgba(217, 84, 79, 0.12);
}

select,
input,
textarea {
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: #fff;
  color: var(--text);
}

/* Keep native form semantics, but remove browser-specific macOS/Safari chrome. */
select:not([multiple]) {
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%23657482' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --select-chevron-position: right 10px center;
  -webkit-appearance: none;
  appearance: none;
  padding-right: 30px !important;
  background-image: var(--select-chevron) !important;
  background-repeat: no-repeat !important;
  background-position: var(--select-chevron-position) !important;
  background-size: 10px 6px !important;
}

select:not([multiple]):disabled {
  cursor: not-allowed;
}

input[type="number"] {
  -webkit-appearance: textfield;
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

select,
input {
  height: 31px;
  padding: 0 9px;
}

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

.stats {
  color: #65717f;
  font-size: 12px;
  white-space: nowrap;
}

.stats span {
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.stats strong {
  color: #24303b;
}

.board {
  grid-row: 4;
  display: grid;
  grid-template-columns: repeat(5, 334px);
  gap: 16px;
  min-height: 0;
  padding: 12px 16px 16px;
  overflow: auto;
}

.orders-filter-panel {
  grid-row: 3;
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  background: #edf4fd;
  border-bottom: 1px solid #d6e4f2;
}

.orders-filter-panel.open {
  display: flex;
}

.app-view {
  display: none;
}

.app-view.active {
  display: block;
}

.orders-view--inactive {
  display: none !important;
}

.toolbar.app-view.active,
.orders-status-tabs.app-view.active {
  display: flex;
}

.board.app-view.active {
  display: grid;
}

.orders-filter-panel.app-view.active {
  display: none;
}

.orders-filter-panel.app-view.active.open {
  display: flex;
}

.orders-status-tabs {
  min-height: 48px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #d8e0e8;
  background: #fff;
  overflow-x: auto;
  overflow-y: hidden;
}

.orders-status-tabs__filters,
.orders-status-tabs__tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.orders-status-tabs__tools {
  gap: 10px;
}

.orders-status-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  padding: 0 10px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: linear-gradient(#fff, #f7f9fb);
  color: #2f3a45;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.orders-status-tab:hover {
  border-color: #aeb8c3;
}

.orders-status-tab strong {
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 3px;
  background: #edf1f5;
  color: #3e4955;
  font-size: 11px;
}

.orders-status-tab.active {
  border-color: #8fb6e7;
  background: #edf4fd;
  color: #2f74d0;
}

.orders-status-tab.active strong {
  background: #e7f0ff;
  color: #2f74d0;
}

.orders-status-search {
  flex: 0 0 250px;
  width: 250px;
  margin-left: 4px;
  background: #fff;
}

.orders-startup-sync-status {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 10px;
  border: 1px solid #cfe1f3;
  border-radius: 4px;
  background: #f4f9ff;
  color: #35658f;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.orders-assignee-counter {
  height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 0 9px;
  border: 1px solid #cfdbe8;
  border-radius: 4px;
  background: #f7fbff;
  color: #3e4955;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.orders-assignee-counter:hover {
  border-color: #9fbbda;
  background: #eef6ff;
}

.orders-assignee-counter.active {
  border-color: #2f74d0;
  background: #e7f0ff;
  color: #2763b8;
}

.orders-assignee-counter svg {
  width: 16px;
  height: 16px;
  color: #2763b8;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.orders-assignee-counter strong {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #e7f0ff;
  color: #2763b8;
  font-size: 12px;
}

.contacts-view,
.inventory-view,
.finance-view,
.team-view,
.workspace-view,
.admin-view {
  grid-row: 2 / 5;
  padding: 0 16px 24px;
  overflow: auto;
  min-height: 0;
}

.inventory-view {
  padding: 0 0 24px;
}

.contacts-tabs {
  display: flex;
  gap: 22px;
  margin-top: 8px;
  border-bottom: 1px solid var(--line);
}

.contacts-tabs button {
  min-height: 40px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #596675;
  font-size: 14px;
}

.contacts-tabs .active {
  border-bottom-color: var(--blue);
  color: var(--blue);
}

.contacts-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
}

.contacts-toolbar--rich {
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  min-height: 48px;
  margin: 0 -16px;
  padding: 8px 16px;
  border-bottom: 1px solid #d8e0e8;
  background: #fff;
  overflow-x: auto;
  overflow-y: hidden;
}

.contact-segments {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.contacts-toolbar__tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.contact-search input {
  min-width: 0;
  background: transparent;
}

.contacts-summary {
  color: #4f5e6d;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.contacts-table {
  min-width: 960px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  overflow: visible;
}

.contacts-row {
  display: grid;
  grid-template-columns: 34px 220px 220px 160px 220px 160px 110px 140px 140px 120px;
  min-height: 42px;
  border-bottom: 1px solid var(--line);
}

.contacts-row--modern {
  grid-template-columns: minmax(230px, 1.25fr) 170px minmax(230px, 1.2fr) 80px 128px 128px 150px 170px;
}

.contacts-row--head {
  position: sticky;
  top: 0;
  z-index: 8;
  min-height: 44px;
  background: #edf1f5;
  color: #516070;
  font-weight: 700;
  box-shadow: 0 1px 0 #d8e0e8, 0 8px 18px rgba(31, 42, 52, 0.08);
}

.contacts-row--head .table-sort {
  min-height: 44px;
  border-right-color: var(--line);
}

.contacts-row--head .contacts-cell,
.contacts-row--head .table-sort {
  font-size: 12px;
  font-weight: 700;
}

.contacts-cell {
  padding: 11px 10px;
  border-right: 1px solid var(--line);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contacts-cell a,
.contact-link {
  border: 0;
  background: transparent;
  color: #2763b8;
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.contacts-cell em {
  display: block;
  margin-top: 3px;
  color: #6a7685;
  font-size: 11px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contacts-cell--client,
.contacts-cell--order {
  white-space: normal;
}

.contacts-cell--phone {
  font-weight: 800;
}

.contacts-cell--debt {
  color: #b45309;
  font-weight: var(--ui-weight-heavy, 850);
}

.contacts-cell--actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.contacts-cell--actions .button {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
}

.contacts-total {
  padding: 14px 10px;
  color: #2f3943;
}

.contacts-lazy-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border-bottom: 1px solid var(--line);
  background: #f6f9fc;
  font-size: 13px;
  font-weight: var(--ui-weight-heavy, 850);
  color: #55708d;
}

.contacts-lazy-loader span {
  width: 16px;
  height: 16px;
  border: 2px solid #c9d8ea;
  border-top-color: #2f6fca;
  border-radius: 50%;
  opacity: 0;
}

.contacts-lazy-loader.is-loading {
  background: #eef5ff;
  color: #245da8;
}

.contacts-lazy-loader.is-loading span {
  opacity: 1;
  animation: contacts-loader-spin 0.7s linear infinite;
}

@keyframes contacts-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

.team-view {
  display: none;
  align-content: start;
  min-width: 0;
  gap: 14px;
  padding: 0 18px 28px;
  background: #f5f7fa;
}

.team-view.active {
  display: grid;
}

.team-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 112px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #dbe4ee;
  border-radius: 7px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 64%, #eef7f4 100%);
  box-shadow: 0 10px 24px rgba(31, 42, 52, 0.06);
}

.team-head h2 {
  margin: 0 0 4px;
  color: #1f2c3a;
  font-size: 25px;
  font-weight: var(--ui-weight-heavy, 850);
  line-height: 1.12;
}

.team-head p {
  margin: 0;
  color: #657383;
  font-size: 13px;
  line-height: 1.4;
}

.team-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 8px;
}

.team-stats div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 13px 14px;
  border: 1px solid #dfe6ee;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(31, 42, 52, 0.045);
}

.team-stats span {
  color: #667381;
  font-size: 12px;
  font-weight: 700;
}

.team-stats strong {
  color: #1f2c3a;
  font-size: 22px;
  font-weight: var(--ui-weight-heavy, 850);
}

.team-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border: 1px solid #dfe6ee;
  border-radius: 7px;
  background: #fff;
}

.team-filter-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 1 auto;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #596675;
  font-weight: 750;
  cursor: pointer;
}

.team-filter-bar button:hover {
  background: #f2f6fa;
  color: #26323d;
}

.team-filter-bar button.active {
  border-color: #c9d8e8;
  background: #edf4ff;
  color: #2763b8;
}

.team-filter-bar span {
  opacity: .72;
}

.team-table {
  display: grid;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid #d9e2eb;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 42, 52, 0.045);
}

.team-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.4fr) minmax(118px, .8fr) 112px 82px 82px 82px 92px minmax(134px, .9fr) 100px;
  min-width: 1060px;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid #e7ebef;
}

.team-row:last-child {
  border-bottom: 0;
}

.team-row:hover:not(.team-row--head):not(.team-row--empty) {
  background: #f8fafc;
}

.team-row--head {
  min-height: 38px;
  background: #f4f7fa;
  color: #3d4853;
  font-size: 12px;
  font-weight: 800;
}

.team-row--empty {
  grid-template-columns: 1fr;
  min-height: 64px;
  color: #667381;
}

.team-row span {
  min-width: 0;
  padding: 8px 9px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-row strong,
.team-row em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-row strong {
  color: #26323d;
}

.team-row em {
  margin-top: 3px;
  color: #667381;
  font-size: 12px;
  font-style: normal;
}

.team-danger {
  color: #b42318;
  font-weight: 800;
}

.team-row__actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px 9px;
}

#contactDrawer {
  width: min(860px, calc(100vw - 236px));
}

#contactDrawer .contact-form__body {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
  background: #f5f7fa;
}

#contactDrawer .contact-section {
  gap: 12px;
  padding: 16px;
  border: 1px solid #dfe6ee;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(31, 42, 52, 0.04);
}

#contactDrawer .contact-section h2,
#contactDrawer .client-orders,
#contactDrawer .contact-overview,
#contactDrawer .contact-quick-actions,
#contactDrawer .contact-communication,
#contactDrawer .contact-communication-log {
  margin-left: 0;
}

#contactDrawer .contact-section h2 {
  margin-bottom: 2px;
  color: #1f2c3a;
  font-size: 16px;
  font-weight: var(--ui-weight-heavy, 850);
}

#contactDrawer .contact-overview {
  gap: 10px;
}

#contactDrawer .drawer__actions {
  border-top-color: #dfe6ee;
  background: #fff;
}

.inventory-own-warehouse {
  display: grid;
  gap: 12px;
  padding: 14px;
  color: #253241;
}

.inventory-own-hero,
.inventory-own-card,
.inventory-own-flow,
.inventory-own-table {
  border: 1px solid #d4dee8;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(31, 50, 68, 0.05);
}

.inventory-own-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: center;
  gap: 18px;
  padding: 18px;
}

.inventory-own-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #2f74d0;
  font-size: 11px;
  font-weight: var(--ui-weight-black, 900);
  letter-spacing: 0;
  text-transform: uppercase;
}

.inventory-own-hero h3 {
  margin: 0;
  color: #182534;
  font-size: 22px;
  line-height: 1.2;
}

.inventory-own-hero p,
.inventory-own-card p,
.inventory-own-flow__step span {
  margin: 8px 0 0;
  color: #657384;
  font-size: 13px;
  line-height: 1.45;
}

.inventory-own-hero__status {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 14px;
  border: 1px solid #dbe7f3;
  border-radius: 4px;
  background: #f4f8fd;
}

.inventory-own-hero__status strong {
  color: #194a8d;
  font-size: 18px;
}

.inventory-own-hero__status span,
.inventory-own-card span,
.inventory-own-table__row em {
  color: #657384;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

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

.inventory-own-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #d4dee8;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(31, 50, 68, 0.04);
  overflow-x: auto;
}

.inventory-own-card {
  min-height: 118px;
  padding: 14px;
}

.inventory-own-card strong {
  display: block;
  margin-top: 8px;
  color: #182534;
  font-size: 18px;
  line-height: 1.2;
}

.inventory-own-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.inventory-own-flow__step {
  min-height: 132px;
  padding: 14px;
  border-right: 1px solid #e1e9f1;
}

.inventory-own-flow__step:last-child {
  border-right: 0;
}

.inventory-own-flow__step b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-bottom: 10px;
  border-radius: 4px;
  background: #eaf2ff;
  color: #2f74d0;
  font-size: 12px;
}

.inventory-own-flow__step strong {
  display: block;
  color: #182534;
  font-size: 14px;
}

.inventory-own-table {
  overflow: hidden;
}

.inventory-own-table__row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 150px;
  gap: 12px;
  min-height: 44px;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid #e1e9f1;
  font-size: 13px;
}

.inventory-own-table__row:last-child {
  border-bottom: 0;
}

.inventory-own-table__row--head {
  min-height: 38px;
  background: #f6f8fa;
  color: #657384;
  font-size: 12px;
  font-weight: var(--ui-weight-black, 900);
}

.inventory-own-table__row strong {
  color: #182534;
}

.inventory-own-table__row > span {
  min-width: 0;
}

.inventory-own-table__row > span > em {
  display: block;
  margin-top: 3px;
}

.inventory-own-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}

.inventory-own-row-actions .button {
  min-height: 25px;
  padding: 0 7px;
  font-size: 11px;
}

.inventory-own-filters {
  display: grid;
  grid-template-columns: 130px 180px minmax(180px, 1fr) 140px 136px 136px auto;
  align-items: end;
  gap: 8px;
  padding: 10px;
  border: 1px solid #d4dee8;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(31, 50, 68, 0.04);
}

.inventory-own-filters label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #657384;
  font-size: 11px;
  font-weight: var(--ui-weight-black, 900);
}

.inventory-own-filters select,
.inventory-own-filters input {
  min-height: 32px;
  width: 100%;
  border: 1px solid #cbd7e1;
  border-radius: 4px;
  padding: 0 9px;
  background: #fff;
  color: #182534;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.inventory-own-filters select:focus,
.inventory-own-filters input:focus {
  border-color: #2f74d0;
  box-shadow: 0 0 0 3px rgba(47, 116, 208, 0.12);
  outline: none;
}

.inventory-nova-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.inventory-nova-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 22, 34, 0.52);
}

.inventory-nova-modal__panel {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: hidden;
  border: 1px solid rgba(179, 193, 207, 0.42);
  border-radius: 6px;
  background: #f4f7fb;
  box-shadow: 0 24px 70px rgba(13, 22, 34, 0.34);
}

.inventory-nova-modal__panel--document {
  width: min(680px, calc(100vw - 36px));
}

.inventory-nova-modal__panel--history {
  width: min(860px, calc(100vw - 36px));
}

.inventory-nova-modal__panel--import {
  width: min(980px, calc(100vw - 36px));
}

/* WAREHOUSE_CATALOG_CATEGORY_MODAL_ROLLOUT: crm-warehouse-sales-picker-roapp-1 */
/* WAREHOUSE_SALES_PICKER_ROLLOUT: crm-warehouse-sales-picker-roapp-1 */
.inventory-category-modal {
  z-index: 120;
  display: block;
  padding: 0;
}

.inventory-category-modal__panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(480px, 100vw);
  height: 100%;
  max-height: none;
  overflow: hidden auto;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: -12px 0 30px rgba(13, 22, 34, 0.18);
}

.inventory-category-modal .inventory-nova-form {
  min-height: 100%;
  max-height: none;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.inventory-category-modal .inventory-nova-form__head {
  min-height: 58px;
  padding: 16px;
}

.inventory-category-modal .inventory-nova-form__head h2 {
  color: #111827;
  font-size: 24px;
  line-height: 1.2;
}

.inventory-category-modal__close {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #718096;
  cursor: pointer;
  font: inherit;
  font-size: 26px;
  line-height: 1;
}

.inventory-category-modal__close:hover {
  background: #eef3f7;
  color: #111827;
}

.inventory-category-modal__grid {
  grid-template-columns: 1fr;
  align-content: start;
  gap: 14px;
  padding: 18px 16px 24px;
}

.inventory-category-modal .inventory-nova-form label {
  color: #111827;
  font-size: 13px;
}

.inventory-category-modal .inventory-nova-form input,
.inventory-category-modal .inventory-nova-form select {
  min-height: 38px;
  border-radius: 4px;
  color: #111827;
  font-size: 14px;
}

.inventory-category-modal .inventory-nova-form__foot {
  justify-content: flex-start;
  padding: 14px 16px;
  border-top: 1px solid #dce7f2;
  background: #eef6ff;
}

@media (max-width: 560px) {
  .inventory-category-modal__panel {
    width: 100vw;
  }
}

.inventory-nova-form {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  max-height: calc(100vh - 36px);
}

.inventory-nova-form__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid #d7e1ea;
  background: #fff;
}

.inventory-nova-form__head span {
  display: block;
  color: #657384;
  font-size: 12px;
  font-weight: 800;
}

.inventory-nova-form__head h2 {
  margin: 2px 0 0;
  color: #182534;
  font-size: 20px;
  line-height: 1.2;
}

.inventory-nova-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px;
  overflow-y: auto;
}

.inventory-nova-form label {
  display: grid;
  gap: 5px;
  color: #263442;
  font-size: 12px;
  font-weight: 800;
}

.inventory-nova-form input,
.inventory-nova-form select,
.inventory-nova-form textarea {
  min-height: 34px;
  width: 100%;
  border: 1px solid #cbd7e1;
  border-radius: 4px;
  padding: 0 10px;
  background: #fff;
  color: #182534;
  font: inherit;
  font-weight: 600;
}

.inventory-nova-form textarea {
  min-height: 78px;
  padding: 9px 10px;
  resize: vertical;
}

.inventory-nova-form input:focus,
.inventory-nova-form select:focus,
.inventory-nova-form textarea:focus {
  border-color: #2f74d0;
  box-shadow: 0 0 0 3px rgba(47, 116, 208, 0.14);
  outline: none;
}

.inventory-nova-form input[readonly] {
  background: #eef3f7;
  color: #647386;
}

.inventory-nova-form__wide {
  grid-column: 1 / -1;
}

.inventory-nova-form__status {
  margin: 0 16px 12px;
  padding: 9px 10px;
  border: 1px solid #f0b5b5;
  border-radius: 4px;
  background: #fff0f0;
  color: #b42318;
  font-size: 13px;
  font-weight: 800;
}

.inventory-nova-form__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #d7e1ea;
  background: #fff;
}

.inventory-nova-history {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  overflow-y: auto;
}

.inventory-nova-history__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.inventory-nova-history__summary > div,
.inventory-nova-link article,
.inventory-nova-timeline__item {
  border: 1px solid #d9e3ed;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(31, 50, 68, 0.04);
}

.inventory-nova-history__summary > div {
  min-height: 68px;
  padding: 10px;
}

.inventory-nova-history__summary span,
.inventory-nova-link span,
.inventory-nova-timeline__item span {
  display: block;
  color: #657384;
  font-size: 11px;
  font-weight: var(--ui-weight-black, 900);
}

.inventory-nova-history__summary strong,
.inventory-nova-link strong,
.inventory-nova-timeline__item strong {
  display: block;
  margin-top: 5px;
  color: #182534;
  font-size: 14px;
  line-height: 1.25;
}

.inventory-nova-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
}

.inventory-nova-link article {
  padding: 12px;
}

.inventory-nova-link article.is-linked {
  border-color: #a9d7bd;
  background: #f4fbf6;
}

.inventory-nova-link article.is-empty {
  border-color: #eed0a1;
  background: #fff9ee;
}

.inventory-nova-link p,
.inventory-nova-timeline__item p {
  margin: 6px 0 0;
  color: #657384;
  font-size: 12px;
  line-height: 1.4;
}

.inventory-nova-link > b {
  display: grid;
  place-items: center;
  color: #2f74d0;
  font-size: 20px;
}

.inventory-nova-timeline {
  display: grid;
  gap: 8px;
}

.inventory-nova-timeline__item {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) minmax(180px, 0.7fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
}

.inventory-nova-timeline__item strong,
.inventory-nova-timeline__item p {
  margin: 0;
}

.inventory-nova-timeline__item div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.inventory-nova-timeline__item em {
  color: #182534;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.inventory-own-table--modal {
  box-shadow: none;
}

.inventory-nova-import {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  overflow-y: auto;
}

.inventory-nova-import__drop {
  display: grid;
  gap: 7px;
  min-height: 112px;
  place-items: center;
  padding: 18px;
  border: 1px dashed #b7c6d6;
  border-radius: 5px;
  background: #fff;
  color: #657384;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.inventory-nova-import__drop:hover {
  border-color: #2f74d0;
  background: #f8fbff;
  box-shadow: 0 0 0 3px rgba(47, 116, 208, 0.1);
}

.inventory-nova-import__drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.inventory-nova-import__drop strong {
  color: #182534;
  font-size: 16px;
}

.inventory-nova-import__drop span,
.inventory-nova-import__actions span,
.inventory-nova-import__empty span {
  color: #657384;
  font-size: 12px;
  line-height: 1.45;
}

.inventory-nova-import__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid #d9e3ed;
  border-radius: 5px;
  background: #fff;
}

/* IMPORT_SAFE_START_ROLLOUT: crm-import-safe-start-1 */
.order-xlsx-import__duplicates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #d9e3ed;
  border-radius: 6px;
}
.order-xlsx-import__duplicates legend { padding: 0 4px; font-weight: 700; }
.order-xlsx-import__duplicates label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

.inventory-nova-import__summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.inventory-nova-import__summary > div {
  min-height: 62px;
  padding: 10px;
  border: 1px solid #d9e3ed;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(31, 50, 68, 0.04);
}

.inventory-nova-import__summary span {
  display: block;
  color: #657384;
  font-size: 11px;
  font-weight: var(--ui-weight-black, 900);
}

.inventory-nova-import__summary strong {
  display: block;
  margin-top: 5px;
  color: #182534;
  font-size: 20px;
}

.inventory-nova-import__result {
  padding: 10px 12px;
  border: 1px solid #a9d7bd;
  border-radius: 5px;
  background: #f4fbf6;
  color: #1d6b3b;
  font-size: 13px;
  font-weight: 800;
}

.inventory-nova-import__table {
  overflow: hidden;
  border: 1px solid #d9e3ed;
  border-radius: 5px;
  background: #fff;
}

.inventory-nova-import__row {
  display: grid;
  grid-template-columns: 58px 104px minmax(220px, 1.2fr) minmax(190px, 0.9fr) minmax(170px, 0.8fr);
  gap: 10px;
  min-height: 48px;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #e1e9f1;
  color: #253241;
  font-size: 12px;
}

.order-xlsx-import__table .inventory-nova-import__row {
  grid-template-columns: 58px 104px minmax(130px, 0.7fr) minmax(220px, 1.15fr) minmax(150px, 0.75fr) minmax(170px, 0.8fr);
}

.inventory-nova-import__row:last-child {
  border-bottom: 0;
}

.inventory-nova-import__row--head {
  min-height: 36px;
  background: #f6f8fa;
  color: #657384;
  font-size: 11px;
  font-weight: var(--ui-weight-black, 900);
}

.inventory-nova-import__row strong {
  display: block;
  color: #182534;
}

.inventory-nova-import__row em {
  display: block;
  margin-top: 3px;
  color: #657384;
  font-style: normal;
  font-weight: 800;
}

.inventory-nova-import-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: var(--ui-weight-black, 900);
}

.inventory-nova-import-status--create {
  background: #eaf2ff;
  color: #194a8d;
}

.inventory-nova-import-status--update {
  background: #fff4df;
  color: #8a5b0a;
}

.inventory-nova-import-status--skip {
  background: #eef3f7;
  color: #607080;
}

.inventory-nova-import-status--error {
  background: #fff0f0;
  color: #b42318;
}

.inventory-nova-import-status--done {
  background: #f0faf3;
  color: #1d6b3b;
}

.inventory-nova-import__empty {
  display: grid;
  gap: 6px;
  min-height: 96px;
  place-items: center;
  padding: 16px;
  border: 1px solid #d9e3ed;
  border-radius: 5px;
  background: #fff;
  text-align: center;
}

.inventory-nova-import__empty strong {
  color: #182534;
  font-size: 15px;
}

.inventory-row {
  display: grid;
  grid-template-columns: 32px 108px 88px minmax(230px, 1.5fr) minmax(160px, 1fr) 86px 86px 96px 96px 96px 96px 104px 158px;
  min-height: 31px;
  border-bottom: 1px solid #e2e8ef;
  font-size: 12px;
}


/* WAREHOUSE_STOCK_SERIAL_WORKSPACE_ROLLOUT: crm-warehouse-stock-serial-workspace-2 */
html.crm-warehouse-stock-serial-beta .app-inventory-content {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #f7f9fc;
}

html.crm-warehouse-stock-serial-beta .app-inventory-scope-switch { order: 0; }
html.crm-warehouse-stock-serial-beta .app-inventory-head { order: 1; }
html.crm-warehouse-stock-serial-beta .app-inventory-tabs { order: 2; }
html.crm-warehouse-stock-serial-beta .app-inventory-stats { order: 3; }
html.crm-warehouse-stock-serial-beta .app-inventory-toolbar { order: 4; }
html.crm-warehouse-stock-serial-beta .app-inventory-table { order: 5; }
html.crm-warehouse-stock-serial-beta .app-inventory-documents { order: 6; }

html.crm-warehouse-stock-serial-beta .app-inventory-module-nav[hidden] {
  display: none !important;
}

html.crm-warehouse-stock-serial-beta .app-inventory-tabs {
  min-height: 44px;
  padding: 0 20px;
  border-bottom-color: #dbe3eb;
  background: #fff;
}

html.crm-warehouse-stock-serial-beta .app-inventory-tabs button {
  height: 44px;
  padding: 0 16px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

html.crm-warehouse-stock-serial-beta .app-inventory-tabs button.active {
  border-bottom-color: #2672d9;
  color: #2672d9;
}

html.crm-warehouse-stock-serial-beta .app-inventory-head {
  min-height: 70px;
  padding: 15px 20px 10px;
  border-bottom: 0;
  background: #fff;
}

html.crm-warehouse-stock-serial-beta .app-inventory-head h2 {
  font-size: 24px;
  line-height: 1.2;
}

html.crm-warehouse-stock-serial-beta .app-inventory-head__actions {
  display: none;
}

html.crm-warehouse-stock-serial-beta .app-inventory-toolbar {
  min-height: 48px;
  margin: 0 20px;
  padding: 7px 0;
  border-top: 1px solid #e1e7ee;
  border-bottom: 0;
  background: transparent;
}

html.crm-warehouse-stock-serial-beta .app-inventory-toolbar__left {
  overflow-x: auto;
}

html.crm-warehouse-stock-serial-beta .app-inventory-search {
  width: min(360px, 34vw);
}

html.crm-warehouse-stock-serial-beta .app-inventory-toolbar__right {
  display: none;
}

html.crm-warehouse-stock-serial-beta .app-inventory-compact-stats {
  border: 0;
  background: transparent;
}

html.crm-warehouse-stock-serial-beta .app-inventory-table {
  min-width: 0;
  margin: 0 20px 20px;
  border-color: #d7e0e8;
  border-radius: 4px;
  overflow: hidden;
}

html.crm-warehouse-stock-serial-beta:not(.crm-warehouse-catalog-tab-beta) #newInventoryCategoryButton,
html.crm-warehouse-stock-serial-beta #postingButton,
html.crm-warehouse-serial-tab-beta #newPartButton {
  display: none !important;
}

.inventory-workspace-table-scroll {
  width: 100%;
  overflow: auto;
}


.inventory-row--serial-workspace {
  grid-template-columns: 190px minmax(250px, 1.5fr) 140px 160px 130px 130px 130px;
  min-width: 1130px;
}

.inventory-row--serial-workspace {
  min-height: 40px;
  align-items: center;
  font-size: 13px;
}

.inventory-row--serial-workspace.inventory-row--head {
  min-height: 38px;
  background: #f1f4f7;
  color: #536171;
  font-size: 12px;
}

.inventory-row--serial-workspace .inventory-cell {
  min-width: 0;
  padding: 7px 9px;
}

.inventory-cell--number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.inventory-cell--serial strong {
  color: #182534;
  font-variant-numeric: tabular-nums;
}

.inventory-serial-workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 8px 10px;
  border-bottom: 1px solid #d7e0e8;
  background: #fff;
}

.inventory-serial-workspace-head > div {
  display: grid;
  gap: 2px;
}

.inventory-serial-workspace-head strong {
  color: #1f2c3a;
  font-size: 14px;
}

.inventory-serial-workspace-head span {
  color: #687789;
  font-size: 12px;
}

.inventory-workspace-state {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 260px;
  padding: 32px;
  color: #6b7785;
  text-align: center;
}

.inventory-workspace-state strong {
  color: #243241;
  font-size: 16px;
}

.inventory-workspace-state span {
  max-width: 520px;
  font-size: 13px;
}

.inventory-workspace-state--error strong {
  color: #a62929;
}

.inventory-workspace-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 6px 10px;
  border-top: 1px solid #d7e0e8;
  background: #fff;
  color: #687789;
  font-size: 12px;
}

@media (max-width: 760px) {
  html.crm-warehouse-stock-serial-beta .app-inventory-head,
  html.crm-warehouse-stock-serial-beta .app-inventory-tabs {
    padding-left: 12px;
    padding-right: 12px;
  }

  html.crm-warehouse-stock-serial-beta .app-inventory-toolbar {
    margin: 0 12px;
  }

  html.crm-warehouse-stock-serial-beta .app-inventory-toolbar__left {
    flex-wrap: wrap;
  }

  html.crm-warehouse-stock-serial-beta .app-inventory-search {
    width: 100%;
    flex: 1 1 100%;
  }

  html.crm-warehouse-stock-serial-beta .app-inventory-toolbar__right {
    display: none;
  }

  html.crm-warehouse-stock-serial-beta .app-inventory-table {
    margin: 0 12px 12px;
  }

  .inventory-serial-workspace-head {
    align-items: stretch;
    flex-direction: column;
  }

  .inventory-serial-workspace-head .button {
    width: 100%;
  }
}

.inventory-row--prices {
  grid-template-columns: 120px minmax(260px, 1.5fr) 130px 96px 130px 96px 106px 106px;
}

.inventory-row--purchase-need {
  grid-template-columns: 110px 92px minmax(230px, 1.5fr) 86px 76px 72px 88px 96px 96px minmax(130px, 1fr) 170px;
}

.inventory-row--supplier-order {
  grid-template-columns: 96px 124px minmax(150px, 1fr) 120px 88px 104px 104px 132px minmax(160px, 1fr) 104px;
}

.inventory-row--dashboard {
  grid-template-columns: 170px 150px minmax(220px, 1fr) 140px;
}

.inventory-row--head {
  min-height: 30px;
  background: #eef2f5;
  color: #405061;
  font-weight: 700;
}

.inventory-cell {
  padding: 5px 8px;
  border-right: 1px solid #e2e8ef;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-cell--id {
  color: #69798a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.inventory-cell--prices {
  white-space: normal;
  line-height: 1.35;
}

.inventory-cell--prices small {
  color: #4f5d6b;
}

.inventory-row--purchase-need .inventory-cell small {
  display: block;
  margin-top: 2px;
  color: #69798a;
  line-height: 1.25;
}

.inventory-need-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 0;
  border-bottom: 1px solid #d7e0e8;
  background: #f8fafc;
}

.inventory-need-summary div {
  padding: 8px 10px;
  border-right: 1px solid #e2e8ef;
}

.inventory-need-summary span {
  display: block;
  color: #69798a;
  font-size: 11px;
}

.inventory-need-summary strong {
  display: block;
  margin-top: 2px;
  color: #1f2a35;
  font-size: 14px;
}

.inventory-inline-select {
  width: 100%;
  min-height: 24px;
  border: 1px solid #cbd6df;
  background: #ffffff;
  color: #1f2a35;
  font: inherit;
}

.part-thumb {
  width: 32px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: #eef3f8;
  color: #647386;
  font-size: 18px;
  overflow: hidden;
}

.part-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inventory-product {
  min-width: 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.inventory-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.inventory-actions .button {
  min-height: 24px;
  padding: 0 7px;
  font-size: 11px;
}

.inventory-drawer {
  width: min(900px, calc(100vw - 252px));
}

.inventory-card-form .contact-form__body {
  display: grid;
  grid-template-columns: minmax(420px, 1.2fr) minmax(280px, 0.8fr);
  gap: 12px;
  padding: 12px;
  background: #eef3f7;
}

.inventory-card-section {
  margin: 0;
  border: 1px solid #d4dde6;
  border-radius: 3px;
  background: #fff;
}

.inventory-card-section:first-child {
  grid-row: span 2;
}

.inventory-card-section .ro-row {
  grid-template-columns: 130px minmax(0, 1fr);
  min-height: 34px;
  margin: 0;
  padding: 6px 10px;
  border-bottom: 1px solid #eef2f5;
}

.inventory-card-section .ro-row:last-child {
  border-bottom: 0;
}

.inventory-price-row {
  display: grid;
  grid-template-columns: minmax(70px, 0.8fr) minmax(120px, 1fr) 96px;
  gap: 8px;
  align-items: center;
}

.inventory-price-row input {
  min-height: 30px;
}

.inventory-movement-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
}

.inventory-movement-row small {
  grid-column: 1 / -1;
  color: #657586;
}

.stock-badge {
  display: inline-flex;
  min-width: 76px;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.stock-badge--ok {
  background: #e9f7ef;
  color: #237447;
}

.stock-badge--low {
  background: #fff4df;
  color: #a45f0a;
}

.stock-badge--empty {
  background: #fdeceb;
  color: #c83f35;
}

.stock-low {
  color: #b45309;
  font-weight: 700;
}

.stock-empty {
  color: var(--danger);
  font-weight: 700;
}

.inventory-documents {
  margin-top: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.inventory-documents__header {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: #f6f8fa;
}

.inventory-documents__header h2 {
  margin: 0;
  font-size: 16px;
}

.inventory-documents__header span {
  color: #687583;
  font-size: 12px;
  font-weight: 700;
}

.inventory-document-row {
  display: grid;
  grid-template-columns: 120px 170px 1fr 90px 120px;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}

.inventory-document-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-page {
  min-width: 1180px;
  background: #eef3f7;
}

.inventory-page__bar {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid #cbd7e1;
  background: #fff;
}

.inventory-page__meta {
  margin-left: 8px;
  color: #627386;
  font-size: 12px;
  font-weight: 700;
}

.inventory-product-page__main {
  display: grid;
  grid-template-columns: minmax(560px, 1fr) 420px;
  gap: 12px;
  padding: 12px;
}

.inventory-page__left,
.inventory-page__right {
  display: grid;
  gap: 10px;
  align-content: start;
}

.inventory-page__name {
  width: 100%;
  min-height: 34px;
  border: 1px solid #c8d5e0;
  border-radius: 2px;
  padding: 0 10px;
  background: #fff;
  color: #1f2a35;
  font-size: 20px;
  font-weight: 800;
}

.inventory-page-block {
  border: 1px solid #d2dce6;
  background: #fff;
}

.inventory-page-block header {
  min-height: 33px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid #e3eaf1;
  background: #f8fbfd;
  color: #273443;
  font-size: 14px;
  font-weight: 800;
}

.inventory-page-block label {
  min-height: 34px;
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-bottom: 1px solid #edf2f6;
}

.inventory-page-block label:last-child {
  border-bottom: 0;
}

.inventory-page-block label span,
.inventory-stock-summary div span {
  color: #5d6d7e;
  font-size: 12px;
}

.inventory-page-block input,
.inventory-page-block select,
.inventory-page-block textarea,
.inventory-page__title input,
.inventory-page__header-grid input,
.inventory-page__header-grid select,
.inventory-page__comment textarea,
.inventory-doc-row input,
.inventory-doc-row select {
  min-height: 28px;
  border: 1px solid #c8d5e0;
  border-radius: 2px;
  padding: 0 8px;
  background: #fff;
  color: #1f2a35;
}

.inventory-page-block textarea,
.inventory-page__comment textarea {
  min-height: 58px;
  padding: 7px 8px;
  resize: vertical;
}

.inventory-product span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.inventory-product small {
  color: #6a7b8d;
  font-size: 11px;
}

.inventory-image-editor {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #edf2f6;
}

.inventory-image-preview {
  width: 96px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid #d8e2ea;
  background: #f3f7fa;
  color: #738394;
  font-size: 12px;
  overflow: hidden;
}

.inventory-image-preview img,
.inventory-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inventory-file-button {
  position: relative;
  overflow: hidden;
}

.inventory-file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.inventory-image-editor small {
  display: block;
  margin-top: 8px;
  color: #687989;
  font-size: 12px;
}

.inventory-image-list {
  display: grid;
}

.inventory-image-item {
  min-height: 42px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 126px 74px;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-bottom: 1px solid #edf2f6;
}

.inventory-image-item img {
  width: 46px;
  height: 32px;
  border: 1px solid #d8e2ea;
  background: #f3f7fa;
}

.inventory-image-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-page__tabs {
  display: flex;
  min-height: 34px;
  border-bottom: 1px solid #d2dce6;
  background: #fff;
}

.inventory-page__tabs button {
  min-width: 96px;
  border: 0;
  border-right: 1px solid #d2dce6;
  background: #fff;
  color: #39566f;
  cursor: pointer;
  font-weight: 700;
}

.inventory-page__tabs button.active {
  background: #3a83b5;
  color: #fff;
}

.inventory-price-editor {
  grid-template-columns: 130px 110px minmax(0, 1fr) !important;
}

.inventory-price-editor small {
  color: #6a7b8d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.inventory-stock-summary {
  display: grid;
}

.inventory-stock-summary div {
  min-height: 34px;
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-bottom: 1px solid #edf2f6;
}

.inventory-serial-summary {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-bottom: 1px solid #edf2f6;
  color: #5d6d7e;
  font-size: 12px;
}

.inventory-serial-list {
  display: grid;
}

.inventory-serial-row {
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(120px, 1.1fr) minmax(90px, .8fr) auto;
  align-items: center;
  gap: 4px 10px;
  padding: 7px 12px;
  border-bottom: 1px solid #edf2f6;
}

.inventory-serial-row small {
  grid-column: 1 / -1;
  color: #687989;
}

.inventory-history-list {
  display: grid;
}

/* WAREHOUSE_JOURNAL_PAGES_ROLLOUT: crm-warehouse-posting-actions-1 */
[data-inventory-journal-pager] {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
[data-inventory-journal-pager] > span { margin-right: auto; }

.inventory-history-row {
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  padding: 7px 12px;
  border-bottom: 1px solid #edf2f6;
}

.inventory-history-row small {
  grid-column: 1 / -1;
  color: #687989;
}

.inventory-empty-line {
  padding: 12px;
  color: #687989;
  font-size: 13px;
}

.inventory-page__title {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-bottom: 1px solid #d5e0e8;
  background: #f7fafc;
}

.inventory-page__title h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #263545;
  font-size: 22px;
}

.inventory-page__title h2 input {
  width: 94px;
  font-size: 18px;
  font-weight: 800;
}

.inventory-page__header-grid {
  display: grid;
  grid-template-columns: 170px minmax(220px, 1fr) minmax(220px, 1fr);
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #d5e0e8;
  background: #fff;
}

.inventory-page__header-grid label {
  display: grid;
  gap: 4px;
}

.inventory-page__header-grid span {
  color: #5d6d7e;
  font-size: 12px;
}

.inventory-posting-page {
  background: #050505;
  color: #d9e2ea;
}

.inventory-posting-page .inventory-page__bar,
.inventory-posting-page .inventory-page__title,
.inventory-posting-page .inventory-page__header-grid,
.inventory-posting-page .inventory-page__tabs {
  border-color: #2a343d;
  background: #050505;
}

.inventory-posting-page .inventory-page__title h2,
.inventory-posting-page .inventory-page__meta {
  color: #d9e2ea;
}

.inventory-posting-page .inventory-page__header-grid span,
.inventory-posting-page .inventory-page__comment span {
  color: #9aacba;
}

.inventory-posting-page .inventory-page__tabs button {
  border-color: #2a343d;
  background: #050505;
  color: #8eb4d0;
}

.inventory-posting-page .inventory-page__tabs button.active {
  background: #07111a;
  color: #c9e4f7;
}

.inventory-doc-table {
  margin: 12px;
  border: 1px solid #cbd7e1;
  background: #fff;
}

.inventory-doc-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 76px 92px 96px 112px minmax(180px, 0.8fr) 38px;
  min-height: 36px;
  border-bottom: 1px solid #e2e8ef;
}

.inventory-doc-row--head {
  min-height: 32px;
  background: #edf2f6;
  color: #405061;
  font-size: 12px;
  font-weight: 800;
}

.inventory-doc-row > div {
  min-width: 0;
  padding: 5px 7px;
  border-right: 1px solid #e2e8ef;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-doc-add-row {
  grid-template-columns: minmax(420px, 1fr) 174px;
  background: #fff;
}

.inventory-doc-add-row input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #1f2a35;
}

.inventory-doc-add-row input::placeholder {
  color: #6f8292;
}

.inventory-doc-product-cell {
  display: grid;
  gap: 3px;
}

.inventory-doc-product-cell small {
  overflow: hidden;
  color: #69798a;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-posting-serial-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 7px;
  padding-top: 4px;
  white-space: normal;
}

.inventory-posting-serial-editor textarea {
  min-height: 72px;
  border: 1px solid #c8d5e0;
  border-radius: 2px;
  padding: 6px 8px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.inventory-posting-serial-generator {
  display: grid;
  grid-template-columns: 78px minmax(120px, 1fr) auto;
  grid-column: 1 / -1;
  gap: 5px;
}

.inventory-posting-serial-generator input {
  min-width: 0;
}

.inventory-posting-serial-editor button {
  width: auto;
  align-self: start;
  padding: 0 9px;
  color: #2f3a45;
}

.inventory-posting-serial-editor small {
  grid-column: 1 / -1;
  white-space: normal;
}

.inventory-stock-serial-picker {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  white-space: normal;
}

.inventory-stock-serial-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.inventory-stock-serial-actions input {
  min-width: 0;
  flex: 1;
}

.inventory-stock-serial-picker .button {
  width: auto;
  min-height: 28px;
  padding: 4px 8px;
}

.inventory-stock-serial-results {
  display: grid;
  gap: 4px;
  max-height: 200px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #c8d5e0;
}

.inventory-stock-serial-results label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}

.inventory-stock-serial-results input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
}

.inventory-stock-serial-labels {
  display: grid;
  gap: 3px;
  overflow-wrap: anywhere;
}

.inventory-stock-hint {
  display: block;
  padding: 0 12px 7px 160px;
  color: #8a5a10;
  font-size: 11px;
}

.inventory-doc-row button {
  min-height: 28px;
  width: 28px;
  border: 1px solid #cbd7e1;
  border-radius: 2px;
  background: #fff;
  color: var(--danger);
}

.inventory-doc-add-row button {
  width: auto;
  color: #2f3a45;
}

.inventory-page__line-actions {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 10px;
}

.inventory-page__line-actions strong {
  margin-left: auto;
}

.inventory-catalog-picker {
  width: min(1040px, calc(100vw - 260px));
  max-height: min(620px, calc(100vh - 150px));
  border: 1px solid #bfcbd7;
  background: #fff;
  box-shadow: 0 10px 26px rgba(31, 45, 58, 0.16);
  overflow: auto;
}

.inventory-catalog-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.42);
}

.inventory-catalog-picker__head,
.inventory-catalog-picker__toolbar,
.inventory-catalog-picker__foot {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid #d6e0e8;
}

.inventory-catalog-picker__head strong {
  margin-right: auto;
  color: #1f2a35;
  font-size: 16px;
}

.inventory-catalog-picker__toolbar input {
  min-height: 29px;
  width: 260px;
  border: 1px solid #c8d5e0;
  border-radius: 2px;
  padding: 0 8px;
}

.inventory-catalog-picker__body {
  display: grid;
  grid-template-columns: 210px minmax(900px, 1fr);
  min-height: 285px;
}

.inventory-catalog-picker__groups {
  display: grid;
  align-content: start;
  padding: 7px 0;
  border-right: 1px solid #d6e0e8;
  background: #f8fafc;
}

.inventory-catalog-picker__groups button {
  min-height: 27px;
  border: 0;
  background: transparent;
  color: #2d4b5f;
  cursor: pointer;
  padding: 0 12px;
  text-align: left;
}

.inventory-catalog-picker__groups button.active {
  background: #dcecf6;
  color: #155f8f;
  font-weight: 800;
}

.inventory-catalog-picker__table {
  min-width: 900px;
  overflow: auto;
}

.inventory-catalog-row {
  width: 100%;
  min-height: 31px;
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) 82px 76px 76px 84px 84px 96px 110px 74px 104px 104px 104px;
  border: 0;
  border-bottom: 1px solid #e2e8ef;
  background: #fff;
  color: #1f2a35;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
}

.inventory-catalog-row:hover {
  background: #eef7fd;
}

.inventory-catalog-row.selected {
  background: #dcecf6;
  box-shadow: inset 3px 0 0 #2f74d0;
}

.inventory-catalog-row--head {
  min-height: 30px;
  background: #eef2f5;
  color: #405061;
  cursor: default;
  font-weight: 800;
}

.inventory-catalog-row div {
  min-width: 0;
  padding: 5px 7px;
  border-right: 1px solid #e2e8ef;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-part-picker__row {
  grid-template-columns: minmax(240px, 1.6fr) 76px 76px 84px 120px 104px 110px 104px 104px 104px;
}

.order-part-picker__row[data-empty="true"] {
  color: #8b98a6;
}

.ns-order-part-picker {
  width: min(1180px, calc(100vw - 290px));
  border-radius: 8px;
  border-color: #d5dfeb;
  box-shadow: 0 22px 60px rgba(28, 44, 66, 0.22);
}

.ns-order-part-picker .inventory-catalog-picker__head > div {
  display: grid;
  gap: 2px;
  margin-right: auto;
}

.ns-order-part-picker .inventory-catalog-picker__head strong {
  margin: 0;
}

.ns-order-part-picker .inventory-catalog-picker__head span {
  color: #758498;
  font-size: 12px;
}

.ns-order-part-picker__toolbar select {
  min-height: 31px;
  min-width: 210px;
  border: 1px solid #c8d5e0;
  border-radius: 5px;
  background: #fff;
  padding: 0 9px;
}

.ns-order-part-picker__toolbar input {
  width: min(420px, 42vw);
  border-radius: 5px;
}

.ns-order-part-picker .inventory-catalog-picker__body {
  grid-template-columns: 210px minmax(680px, 1fr);
  min-height: 360px;
}

.ns-order-part-picker .inventory-catalog-picker__table {
  min-width: 680px;
}

.ns-order-part-picker__row {
  grid-template-columns: minmax(260px, 1.8fr) 120px 90px 82px 82px 110px 105px;
  font-size: 13px;
}

.ns-order-part-picker__row div:first-child {
  display: grid;
  gap: 2px;
}

.ns-order-part-picker__row small {
  color: #7a8797;
  font-size: 11px;
}

.ns-order-part-picker__error {
  padding: 8px 12px;
  border-bottom: 1px solid #f0c9c0;
  background: #fff6f4;
  color: #a44731;
  font-size: 12px;
  font-weight: 700;
}

.ns-order-part-picker__foot input {
  width: 84px;
  min-height: 30px;
  border: 1px solid #c8d5e0;
  border-radius: 5px;
  padding: 0 8px;
}

.order-part-picker__serial {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #506174;
  font-size: 12px;
}

.order-part-picker__serial select {
  min-height: 30px;
  width: min(320px, 34vw);
  border: 1px solid #c8d5e0;
  border-radius: 2px;
  background: #fff;
  padding: 0 8px;
  color: #1f2a35;
}

.order-part-picker__serial-warning {
  color: var(--danger);
  font-size: 12px;
}

.inventory-catalog-picker__foot {
  justify-content: flex-end;
  border-top: 1px solid #d6e0e8;
  border-bottom: 0;
}

.inventory-catalog-picker__foot span {
  margin-right: auto;
  color: #607386;
  font-size: 12px;
}

.inventory-page__comment {
  display: grid;
  gap: 6px;
  padding: 0 12px 14px;
}

.services-actions #inventoryPicker {
  display: none;
}

.app-notice {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  max-width: min(420px, calc(100vw - 44px));
  min-height: 38px;
  display: flex;
  align-items: center;
  border: 1px solid #c8d5e0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(31, 45, 58, 0.18);
  color: #1f2a35;
  padding: 9px 12px;
  font-size: 13px;
}

.app-notice__message {
  min-width: 0;
  flex: 1 1 auto;
}

.app-notice__message strong,
.app-notice__message small {
  display: block;
}

.app-notice__message strong {
  color: inherit;
  font-size: 13px;
  line-height: 1.35;
}

.app-notice__message small {
  margin-top: 2px;
  color: #667789;
  font-size: 11px;
  line-height: 1.4;
}

.app-notice__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
}

.app-notice--with-actions {
  width: min(390px, calc(100vw - 44px));
  align-items: stretch;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}

.app-notice--with-actions .app-notice__actions {
  justify-content: flex-end;
}

.app-notice__action {
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  padding: 6px 9px;
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.app-notice__action--primary {
  border-color: #2f78b8;
  background: #2f78b8;
  color: #fff;
}

.app-notice__action.app-notice__action--primary:hover {
  background: #276ca8;
}

.app-notice__action:hover {
  background: rgba(255, 255, 255, 0.95);
}

.app-notice--success {
  border-color: #b7dcc5;
  background: #f1fbf4;
  color: #1f6b3b;
}

.app-notice--warning {
  border-color: #f2d99e;
  background: #fff8e8;
  color: #7a5400;
}

.app-notice--session-ended {
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  bottom: auto;
  z-index: 121;
}

.app-notice--error {
  border-color: #f0b7b7;
  background: #fff1f1;
  color: #9b1c1c;
}

.app-notice--hidden {
  display: none;
}

@media (max-width: 520px) {
  .app-notice {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .app-notice__actions {
    justify-content: flex-end;
    width: 100%;
  }

  .app-notice__action {
    flex: 1 1 0;
  }
}

.inventory-page__comment span {
  color: #5d6d7e;
  font-size: 12px;
}

.posting-lines {
  margin-left: 0;
  display: grid;
  gap: 8px;
}

.posting-line {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) 74px 92px 92px 92px 34px;
  gap: 8px;
  align-items: center;
}

.posting-line--head {
  color: #687583;
  font-size: 12px;
  font-weight: 700;
}

.posting-line button {
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: #fff;
  color: var(--danger);
}

.finance-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 0 14px;
}

.finance-head h2 {
  margin: 0;
  color: #182230;
  font-size: 24px;
  font-weight: var(--ui-weight-heavy, 850);
  letter-spacing: 0;
}

.finance-head p {
  margin: 5px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.finance-head__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.finance-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(132px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.finance-kpi {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 86px;
  padding: 13px 14px;
  border: 1px solid #dce5ef;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(31, 42, 52, 0.06);
}

.finance-kpi--balance {
  border-color: #cfdcec;
  background: linear-gradient(180deg, #ffffff 0%, #f6fafc 100%);
}

.finance-kpi--ready {
  border-color: #b8deca;
  background: linear-gradient(180deg, #ffffff 0%, #f5fbf7 100%);
}

.finance-kpi span {
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.finance-kpi strong {
  min-width: 0;
  color: #182230;
  font-size: 20px;
  font-weight: var(--ui-weight-heavy, 850);
  line-height: 1.1;
}

.finance-kpi em {
  overflow: hidden;
  color: #7a8795;
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-kpi--ready em {
  overflow: visible;
  line-height: 1.25;
  text-overflow: clip;
  white-space: normal;
}

.finance-tabs {
  margin-bottom: 2px;
}

.finance-layout {
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  gap: 16px;
  padding-top: 12px;
  align-items: start;
}

.accounts-panel {
  display: grid;
  gap: 10px;
  align-content: start;
}

.accounts-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 2px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.accounts-panel__head strong {
  color: #182230;
  font-size: 13px;
}

.account-card {
  display: grid;
  gap: 7px;
  min-height: 96px;
  padding: 13px 14px;
  border: 1px solid #dce5ef;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(31, 42, 52, 0.05);
  color: #182230;
  text-align: left;
  cursor: pointer;
}

.account-card.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(57, 118, 219, 0.14), var(--shadow);
}

.account-card strong,
.account-card span {
  display: block;
}

.account-card strong {
  overflow: hidden;
  color: #182230;
  font-size: 14px;
  font-weight: var(--ui-weight-heavy, 850);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-card span {
  color: #111827;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.1;
}

.account-card small {
  display: flex;
  gap: 8px;
  min-width: 0;
  color: #7a8795;
  font-size: 12px;
}

.account-card small em,
.account-card i {
  font-style: normal;
}

.account-card i {
  color: #7a8795;
  font-size: 12px;
}

.accounts-panel__settings {
  justify-content: center;
  min-height: 36px;
}

.transactions-panel {
  min-width: 0;
  overflow-x: auto;
}

.finance-toolbar {
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #dce5ef;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(31, 42, 52, 0.04);
}

.transactions-panel h2 {
  margin: 4px 0 10px;
  color: #182230;
  font-size: 18px;
  font-weight: var(--ui-weight-heavy, 850);
}

.finance-table {
  min-width: 720px;
  overflow: hidden;
  border: 1px solid #dce5ef;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 42, 52, 0.06);
}

.finance-table-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid #e5ebf2;
  background: #f8fafc;
}

.finance-table-summary div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(153, 166, 183, 0.22);
  border-radius: 6px;
  background: #fff;
}

.finance-table-summary span {
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.finance-table-summary strong {
  color: #182230;
  font-size: 16px;
  font-weight: var(--ui-weight-heavy, 850);
}

.finance-ledger-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e5ebf2;
  background: #f8fafc;
  color: #667085;
  font-size: 12px;
  font-weight: 750;
}

.accountable-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #e5ebf2;
  background: #fff;
}

.accountable-panel-head span,
.accountable-panel-head em {
  display: block;
  color: #697586;
  font-size: 12px;
  font-style: normal;
}

.accountable-panel-head strong {
  display: block;
  margin-top: 2px;
  color: #152033;
  font-size: 16px;
  font-weight: var(--ui-weight-heavy, 850);
}

.accountable-panel-head__actions {
  justify-content: flex-end;
  min-width: 280px;
}

.finance-table-summary--accountable {
  grid-template-columns: repeat(5, minmax(110px, 1fr));
}

.finance-settings-hero p {
  max-width: 760px;
  margin: 6px 0 0;
  color: #697586;
  font-size: 13px;
  line-height: 1.55;
}

.finance-payment-methods {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
  padding: 12px;
  border-color: #dce4ec;
  border-radius: 7px;
  background: #f8fafc;
}

.finance-payment-methods .finance-payment-methods__header {
  grid-column: 1 / -1;
  min-height: 0;
  padding: 0;
  border: 0;
}

.finance-payment-methods .finance-payment-methods__header {
  display: block;
  margin-bottom: 2px;
}

.finance-payment-methods__header strong,
.finance-payment-methods__header span {
  display: block;
}

.finance-payment-methods__header span {
  margin-top: 3px;
  color: #667381;
  font-size: 12px;
  line-height: 1.4;
}

.finance-payment-methods label {
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border: 1px solid #dce4ec;
  border-radius: 6px;
  background: #fff;
  color: #344252;
  cursor: pointer;
}

.finance-payment-methods label strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-payment-methods label input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
}

@media (max-width: 760px) {
  .finance-payment-methods {
    grid-template-columns: 1fr;
  }
}

.salary-rules-table {
  display: grid;
  gap: 0;
  overflow: auto;
  border: 1px solid rgba(153, 166, 183, 0.24);
  border-radius: 6px;
  background: #fff;
}

.salary-rule-row {
  min-width: 760px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) 110px 170px 170px;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(153, 166, 183, 0.18);
}

.salary-rule-row:last-child {
  border-bottom: 0;
}

.salary-rule-row--head {
  color: #697586;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 750;
}

.salary-rule-row span {
  min-width: 0;
}

.salary-rule-row strong,
.salary-rule-row em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.salary-rule-row strong {
  color: #152033;
  font-size: 13px;
}

.salary-rule-row em {
  margin-top: 2px;
  color: #697586;
  font-size: 12px;
  font-style: normal;
}

.salary-rule-row input,
.salary-rule-row select {
  width: 100%;
  border-radius: 5px;
}

.salary-rule-row--empty {
  grid-template-columns: 1fr;
  color: #697586;
}

.payroll-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.payroll-summary div {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid rgba(153, 166, 183, 0.22);
  border-radius: 6px;
  background: #fff;
}

.payroll-summary span {
  color: #697586;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.payroll-summary strong {
  color: #152033;
  font-size: 15px;
}

.finance-row.payroll-row {
  min-width: 1240px;
  grid-template-columns: minmax(150px, 1.15fr) 68px minmax(130px, 1fr) 108px 108px 108px 108px 110px minmax(145px, 1fr) minmax(250px, 1.45fr);
}

.payroll-table-scroll {
  overflow-x: auto;
}

.payroll-server-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #d9e6f2;
  background: #f3f8fd;
  color: #536274;
  font-size: 12px;
}

.payroll-server-source strong {
  flex: 0 0 auto;
  color: #215f9c;
  font-size: 13px;
}

.payroll-report-state {
  display: grid;
  justify-items: start;
  gap: 6px;
  padding: 24px;
  color: #5f6c7b;
}

.payroll-report-state strong {
  color: #26384a;
  font-size: 15px;
}

.payroll-report-state--error {
  background: #fff8f6;
  color: #9a4b3f;
}

.payroll-master-cell strong,
.payroll-master-cell em,
.payroll-payout-accounts span {
  display: block;
}

.payroll-master-cell em {
  margin-top: 3px;
  color: #788595;
  font-size: 11px;
  font-style: normal;
}

.payroll-payout-accounts {
  display: grid;
  gap: 3px;
  font-size: 11px;
}

.payroll-actions-cell {
  flex-wrap: wrap;
}

.payroll-breakdown {
  min-width: 980px;
  padding: 10px 12px 12px 42px;
  border-bottom: 1px solid #dce5ef;
  background: #f8fafc;
}

.payroll-breakdown__title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 2px 0 8px;
}

.payroll-breakdown__title strong {
  color: #26384a;
  font-size: 13px;
}

.payroll-breakdown__title span {
  color: #788595;
  font-size: 11px;
}

.payroll-breakdown__row {
  display: grid;
  grid-template-columns: 135px 110px minmax(220px, 1fr) minmax(185px, 0.9fr) 82px 120px;
  align-items: center;
  min-height: 38px;
  border: 1px solid #e1e8ef;
  border-bottom: 0;
  background: #fff;
}

.payroll-breakdown__row:last-child {
  border-bottom: 1px solid #e1e8ef;
}

.payroll-breakdown__row > * {
  min-width: 0;
  padding: 7px 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payroll-breakdown__row--head {
  min-height: 34px;
  background: #eef3f7;
  color: #667585;
  font-size: 11px;
  font-weight: 800;
}

.finance-row {
  display: grid;
  grid-template-columns: 160px 1fr 120px 120px 120px 130px;
  min-height: 44px;
  border-bottom: 1px solid #e5ebf2;
}

.finance-row--operation {
  grid-template-columns: 118px minmax(190px, 1.35fr) minmax(128px, 0.8fr) 112px 96px 92px 132px;
}

.finance-row--operation[data-transfer-group] {
  position: relative;
  background: #fbfdf7;
}

.finance-row--operation[data-transfer-group]::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #8abf52;
}

.finance-row--operation[data-transfer-group] .finance-cell:first-child {
  padding-left: 14px;
}

.finance-row--report {
  grid-template-columns: minmax(180px, 1fr) 140px 140px 140px 110px;
}

.finance-row--accountable {
  grid-template-columns: minmax(140px, 1.05fr) 96px 96px 96px 96px minmax(132px, 0.95fr) minmax(178px, 1fr);
}

.finance-row--shift,
.finance-row--accrual {
  grid-template-columns: 150px 150px minmax(160px, 1fr) 130px 130px minmax(180px, 1fr);
}

.finance-row--head {
  min-height: 38px;
  background: #f2f5f8;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.finance-cell {
  min-width: 0;
  padding: 11px 10px;
  border-right: 1px solid #edf1f5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-cell:last-child {
  border-right: 0;
}

.finance-cell strong,
.finance-cell em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-cell strong {
  color: #182230;
  font-size: 13px;
  font-weight: 800;
}

.finance-cell em {
  margin-top: 3px;
  color: #7a8795;
  font-size: 12px;
  font-style: normal;
}

.finance-cell--description {
  display: grid;
  gap: 3px;
}

.finance-cell--amount {
  font-weight: var(--ui-weight-heavy, 850);
}

.finance-cell--description strong {
  line-height: 1.25;
}

.finance-cell--description .finance-badge {
  max-width: 100%;
}

.finance-badge,
.payroll-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  width: fit-content;
  border-radius: 5px;
  background: #eef3f8;
  color: #3f4d5f;
  font-size: 12px;
  font-weight: 700;
}

.finance-badge--income {
  background: #e8f7ee;
  color: #16784a;
}

.finance-badge--expense {
  background: #fff0ed;
  color: #b42318;
}

.finance-row--operation[data-transfer-group] .finance-badge--expense {
  border: 1px solid #cde5b4;
  background: #f1f8e8;
  color: #477423;
}

.finance-source {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 100%;
  padding: 2px 8px;
  border: 1px solid #dce5ef;
  border-radius: 5px;
  background: #fff;
  color: #536170;
  font-size: 12px;
  font-weight: 750;
}

.payroll-status--paid {
  background: #e8f7ee;
  color: #168044;
}

.payroll-status--partial {
  background: #fff5dc;
  color: #9a6700;
}

.payroll-status--accrued {
  background: #e7f0ff;
  color: #2763b8;
}

.finance-actions-cell {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
  overflow: visible;
  white-space: normal;
}

.finance-actions-cell .button {
  flex: 1 1 56px;
  min-height: 28px;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 12px;
}

.finance-actions-cell .button:focus-visible {
  outline: 2px solid rgba(57, 118, 219, 0.38);
  outline-offset: 2px;
}

.finance-actions-cell .button:hover {
  border-color: #b8c6d5;
  background: #f8fafc;
}

.finance-actions-cell .button--danger:hover {
  border-color: #f3b5ad;
  background: #fff6f4;
}

.finance-sync-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  background: rgba(99, 102, 241, 0.08);
  color: #4f46e5;
  font-size: 12px;
  font-weight: 700;
}

.finance-search {
  min-height: 34px;
  width: min(220px, 100%);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 10px;
  background: #fff;
  color: #1f2937;
}

.finance-report-grid,
.finance-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.finance-category-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.finance-report-grid div,
.finance-category-grid div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(153, 166, 183, 0.22);
  border-radius: 6px;
  background: #fff;
}

.finance-report-grid span,
.finance-category-grid span,
.finance-shift-close span {
  color: #697586;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.finance-report-grid strong,
.finance-category-grid strong {
  color: #152033;
  font-size: 15px;
}

.finance-section-title {
  padding: 14px 10px 8px;
  color: #152033;
  font-size: 13px;
  font-weight: 800;
  background: #fff;
}

.finance-shift-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #e5ebf2;
  background: #fff;
}

.finance-shift-head span {
  display: block;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.finance-shift-head strong {
  display: block;
  margin-top: 3px;
  color: #182230;
  font-size: 17px;
  font-weight: var(--ui-weight-heavy, 850);
}

.finance-method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid #e5ebf2;
  background: #fff;
}

.finance-method-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(153, 166, 183, 0.24);
  border-radius: 6px;
  background: #f8fafc;
}

.finance-method-grid span {
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.finance-method-grid strong {
  color: #182230;
  font-size: 16px;
  font-weight: var(--ui-weight-heavy, 850);
}

.finance-method-grid small {
  overflow: hidden;
  color: #7a8795;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-row--staff-report {
  grid-template-columns: minmax(180px, 1fr) 140px 140px 140px 110px;
}

.finance-shift-close {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) minmax(220px, 2fr) auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.finance-shift-close label {
  display: grid;
  gap: 5px;
}

.finance-shift-close input {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 10px;
}

@media (max-width: 1220px) {
  .finance-kpis {
    grid-template-columns: repeat(3, minmax(145px, 1fr));
  }

  .finance-layout {
    grid-template-columns: 1fr;
  }

  .accounts-panel {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .accounts-panel__head,
  .accounts-panel__settings {
    grid-column: 1 / -1;
  }

  .transactions-panel {
    overflow-x: auto;
  }
}

@media (max-width: 760px) {
  .finance-head {
    display: grid;
  }

  .finance-head__actions {
    justify-content: flex-start;
  }

  .finance-kpis,
  .accounts-panel,
  .finance-table-summary,
  .finance-table-summary--accountable {
    grid-template-columns: 1fr;
  }

  .accountable-panel-head {
    display: grid;
  }

  .accountable-panel-head__actions {
    justify-content: flex-start;
    min-width: 0;
  }

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

  .finance-toolbar select,
  .finance-toolbar input,
  .finance-toolbar .button {
    width: 100%;
  }
}

.workspace-view {
  padding-top: 16px;
}

.workspace-view[data-view="settings"] {
  padding: 0;
  background: #fff;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.workspace-view[data-view="company"] {
  overflow: auto;
  padding: 0 18px 28px;
  background: #f5f7fa;
}

.workspace-view[data-view="profile"] {
  overflow: auto;
  padding: 0 18px 28px;
  background: #f5f7fa;
}

.company-content {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.workspace-view[data-view="company"] .company-content {
  width: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: visible;
}

.workspace-view[data-view="company"] .company-content > * {
  max-width: none;
}

.company-content .company-admin-hero .manager-dashboard__eyebrow {
  color: #617184;
}

.workspace-view[data-view="profile"] .profile-content {
  width: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: visible;
}

.company-content .settings-card,
.company-content .workspace-panel {
  min-width: 0;
  border: 1px solid #dfe6ee;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 42, 52, 0.07);
}

.company-content .settings-card {
  padding: 16px;
}

.company-content .settings-card h2 {
  margin: 0;
  color: #1f2c3a;
  font-size: 17px;
  font-weight: 800;
}

.company-content .company-admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 132px;
  padding: 18px;
  border-color: #d8e2ee;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 62%, #eef7f4 100%);
}

.company-content .company-admin-hero h2 {
  margin: 4px 0 3px;
  color: #1f2c3a;
  font-size: 25px;
  font-weight: var(--ui-weight-heavy, 850);
  line-height: 1.12;
}

.company-content .company-admin-hero p {
  margin: 0;
  color: #667381;
  font-size: 13px;
  line-height: 1.35;
}

.company-content .company-admin-hero .company-empty-hint {
  color: #344151;
  font-style: normal;
}

.company-admin-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.company-admin-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.company-admin-hero__meta > span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid #dfe7ef;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.76);
  color: #25313c;
  font-size: 12px;
  line-height: 1.25;
}

.company-admin-hero__meta strong {
  margin-right: 6px;
  color: #6a7785;
  font-size: 11px;
  text-transform: uppercase;
}

.company-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  min-width: 0;
}

.company-admin-grid--two {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.company-admin-grid .manager-kpi {
  grid-column: auto;
  min-height: 112px;
  padding: 14px;
}

.company-admin-grid .manager-kpi strong {
  overflow-wrap: anywhere;
  line-height: 1.12;
}

.company-admin-insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  min-width: 0;
}

.company-insight-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.company-insight-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.company-insight-card__head p {
  margin: 4px 0 0;
  color: #6d7a88;
  font-size: 12px;
  line-height: 1.35;
}

.company-insight-card__head .button {
  min-height: 32px;
  padding: 0 10px;
  white-space: nowrap;
}

.company-insight-card__rows {
  display: grid;
  gap: 7px;
}

.company-insight-card__rows div {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) minmax(70px, auto);
  gap: 4px 10px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid #edf1f5;
}

.company-insight-card__rows div:last-child {
  border-bottom: 0;
}

.company-insight-card__rows span {
  color: #6b7785;
  font-size: 12px;
  font-weight: 700;
}

.company-insight-card__rows strong {
  color: #1f2c3a;
  font-size: 17px;
  font-weight: var(--ui-weight-heavy, 850);
  text-align: right;
  overflow-wrap: anywhere;
}

.company-insight-card__rows em {
  grid-column: 1 / -1;
  color: #8a96a3;
  font-size: 12px;
  font-style: normal;
  overflow-wrap: anywhere;
}

.company-attention-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.company-attention-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dfe6ee;
  border-radius: 6px;
  background: #fff;
  color: #24313e;
  text-align: left;
  cursor: pointer;
}

.company-attention-item:hover {
  border-color: #b9c7d6;
  background: #f8fafc;
}

.company-attention-item strong,
.company-attention-empty strong {
  display: block;
  color: #1f2c3a;
  font-size: 14px;
}

.company-attention-item em,
.company-attention-empty span {
  display: block;
  margin-top: 3px;
  color: #71808f;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.company-attention-item b {
  flex: 0 0 auto;
  min-width: 54px;
  padding: 6px 8px;
  border-radius: 999px;
  background: #eef3f8;
  color: #324356;
  font-size: 12px;
  text-align: center;
}

.company-attention-item--danger b {
  background: #fff1f0;
  color: #b42318;
}

.company-attention-item--warning b {
  background: #fff7df;
  color: #9a6500;
}

.company-attention-item--primary b {
  background: #e8f1ff;
  color: #2763b8;
}

.company-attention-empty {
  padding: 14px;
  border: 1px dashed #cbd6e2;
  border-radius: 6px;
  background: #f8fbfd;
}

.company-admin-table {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.company-staff-performance .admin-card-head p,
.profile-hero p {
  margin: 4px 0 0;
  color: #667381;
  font-size: 13px;
}

.company-content .admin-card-head {
  align-items: flex-start;
  margin-bottom: 14px;
}

.company-staff-table,
.profile-order-list {
  display: grid;
  gap: 6px;
}

.company-staff-table {
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
}

.company-staff-table__head,
.company-staff-table__row {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) 0.6fr repeat(5, minmax(100px, 1fr));
  gap: 10px;
  align-items: center;
  min-width: 880px;
}

.company-staff-table__head {
  padding: 0 12px 8px;
  color: #7a8590;
  font-size: 12px;
  font-weight: 700;
}

.company-staff-table__row,
.profile-order-row {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: #25313c;
  text-align: left;
  cursor: pointer;
}

.company-staff-table__row {
  padding: 10px 12px;
}

.company-content .settings-table {
  overflow: hidden;
  border: 1px solid #e2e7ee;
  border-radius: 5px;
  background: #fff;
}

.company-content .settings-table div {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 42px;
  padding: 10px 12px;
  border-bottom-color: #edf1f5;
}

.company-content .settings-table strong {
  color: #465467;
  font-size: 12px;
}

.company-content .settings-table span {
  min-width: 0;
  color: #26323d;
  overflow-wrap: anywhere;
}

.company-staff-table__row:hover,
.profile-order-row:hover {
  border-color: #b8c2cc;
  background: #f8fafc;
}

.company-staff-table__row strong,
.profile-order-row strong {
  display: block;
  color: #1f2c3a;
}

.company-staff-table__row em,
.profile-order-row em {
  display: block;
  color: #7a8590;
  font-size: 12px;
  font-style: normal;
}

.profile-content {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.profile-account-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 18px;
}

.profile-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #14a06f);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.profile-account-hero__body {
  min-width: 0;
}

.profile-account-hero h2 {
  margin: 4px 0 3px;
  color: #1f2c3a;
  font-size: 24px;
}

.profile-account-hero p {
  margin: 0;
  color: #667381;
  font-size: 13px;
}

.profile-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.profile-chip {
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid #d9e3ee;
  border-radius: 999px;
  background: #f8fafc;
  color: #415164;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.profile-chip--status {
  border-color: #badbcc;
  background: #effaf4;
  color: #257048;
}

.profile-grid {
  display: grid;
  gap: 14px;
  min-width: 0;
}

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

.profile-detail-card,
.profile-orders-card,
.profile-finance-card {
  min-width: 0;
}

.profile-detail-card .admin-card-head {
  align-items: flex-start;
  margin-bottom: 12px;
}

.profile-detail-card .admin-card-head p {
  margin: 3px 0 0;
  color: #7a8590;
  font-size: 12px;
}

.profile-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px dashed #cbd6e2;
  border-radius: 5px;
  background: #f8fbfd;
  color: #667381;
  font-size: 12px;
}

.profile-session-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 12px;
}

.profile-session-actions .logout-button {
  height: 34px;
}

.profile-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
  min-width: 0;
  margin-bottom: 14px;
}

.profile-section-head {
  margin: 2px 0 10px;
}

.profile-section-head h3 {
  margin: 0;
  color: #26323d;
  font-size: 15px;
}

.profile-payroll-card {
  max-width: 760px;
}

.profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.profile-hero h2 {
  margin: 4px 0 3px;
  color: #1f2c3a;
  font-size: 24px;
}

.profile-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.profile-order-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(140px, 1fr) minmax(120px, 0.8fr) minmax(90px, 0.6fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.profile-order-row b {
  text-align: right;
}

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

.workspace-panel,
.settings-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow);
}

.workspace-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 132px;
  padding: 16px;
}

.workspace-panel--wide {
  grid-column: span 2;
}

.workspace-panel h2,
.workspace-panel h3,
.settings-card h2,
.schedule-column h3 {
  margin: 0;
  color: #25313c;
}

.workspace-panel p,
.schedule-column p {
  margin: 0;
  color: #596675;
}

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

.workspace-metrics span {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f8fafc;
  color: #65717f;
}

.workspace-metrics strong,
.workspace-panel > strong {
  color: #1f2a34;
  font-size: 22px;
}

.workspace-table {
  min-width: 760px;
  border: 1px solid var(--line);
  background: #fff;
}

.workspace-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr 0.9fr;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
}

.workspace-row--head {
  background: #e7e9ec;
  font-weight: 700;
}

.workspace-row span {
  padding: 12px 10px;
  border-right: 1px solid var(--line);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-grid--manager {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
}

/* COMPANY_START_GUIDE_ROLLOUT: crm-import-safe-start-1 */
.company-start-guide {
  grid-column: 1 / -1;
  min-height: 0;
  gap: 16px;
  padding: 22px;
  border-color: #c7dcf4;
  background: linear-gradient(130deg, #f2f8ff, #fff 58%);
}

.company-start-guide__heading span {
  color: #29649d;
  font-size: 12px;
  font-weight: 750;
}

.company-start-guide__heading h2 { margin: 4px 0 6px; }
.company-start-guide__steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.company-start-guide__step { display: grid; justify-items: start; align-content: start; gap: 9px; padding: 16px; border: 1px solid #dbe6f2; border-radius: 6px; background: #fff; }
.company-start-guide__step strong { color: #22364c; }
.company-start-guide__step p { font-size: 13px; }
.company-start-guide__step.is-complete { border-color: #b8dfcd; background: #f5fcf8; }
.company-start-guide__step.is-complete > span { color: #1e7951; font-weight: 700; }
.company-start-guide__optional { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid #dbe6f2; padding-top: 14px; }
.company-start-guide__optional > span { margin-right: auto; color: #596675; font-size: 13px; }

@media (max-width: 700px) {
  .company-start-guide { padding: 16px; }
  .company-start-guide__steps { grid-template-columns: 1fr; }
}

.manager-dashboard__hero {
  grid-column: span 8;
  min-height: 154px;
  color: #f8fbff;
  background: linear-gradient(135deg, #172236 0%, #24344d 55%, #2d5660 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 44px rgba(23, 34, 54, 0.18);
}

.manager-dashboard__hero h2 {
  color: #fff;
  font-size: 28px;
  letter-spacing: 0;
}

.manager-dashboard__hero p {
  color: rgba(248, 251, 255, 0.76);
}

.manager-dashboard__eyebrow {
  color: rgba(248, 251, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.manager-dashboard__hero-actions {
  display: flex;
  gap: 8px;
  align-self: end;
  flex-wrap: wrap;
}

.manager-dashboard-period {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.manager-dashboard-period__quick,
.manager-dashboard-period__range {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.manager-dashboard-period__quick button,
.manager-dashboard-period__range button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 800;
}

.manager-dashboard-period__quick button.active,
.manager-dashboard-period__quick button:hover,
.manager-dashboard-period__range button:hover {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.manager-dashboard-period__range label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
}

.manager-dashboard-period__range input {
  width: 128px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  outline: 0;
}

.manager-dashboard-period__range input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.78;
}

.manager-kpi {
  grid-column: span 2;
  width: 100%;
  text-align: left;
  border: 1px solid #dfe6ee;
}

button.manager-kpi {
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

button.manager-kpi:hover {
  transform: translateY(-1px);
  border-color: #c8d6e8;
  box-shadow: 0 14px 30px rgba(31, 42, 52, 0.11);
}

.manager-kpi span,
.manager-kpi em {
  color: #647184;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.manager-kpi strong {
  color: #1f2a34;
  font-size: 24px;
}

.manager-kpi--primary {
  background: #f3f8ff;
}

.manager-kpi--success {
  background: #f1fbf5;
}

.manager-kpi--warning {
  background: #fff8e8;
}

.manager-kpi--danger {
  background: #fff3f3;
}

.manager-dashboard__list {
  grid-column: span 4;
}

.manager-dashboard__list--wide {
  grid-column: span 8;
}

.manager-dashboard__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.manager-dashboard__rows {
  display: grid;
  gap: 7px;
}

.manager-dashboard__rows--tasks,
.manager-dashboard__rows--events {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.manager-dashboard__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e3e9f0;
  border-radius: 4px;
  background: #f8fafc;
  color: #344052;
  text-align: left;
}

button.manager-dashboard__row {
  cursor: pointer;
}

button.manager-dashboard__row:hover {
  border-color: #cdd9e7;
  background: #f2f6fb;
}

.manager-dashboard__row span:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.manager-dashboard__row strong,
.manager-dashboard__row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manager-dashboard__row strong {
  color: #25313c;
}

.manager-dashboard__row em {
  color: #718092;
  font-size: 12px;
  font-style: normal;
}

.manager-dashboard__row--task,
.manager-dashboard__row--event {
  grid-template-columns: minmax(0, 1fr) auto;
}

.manager-dashboard__row--danger {
  border-color: #ffd6d6;
  background: #fff6f6;
}

.manager-dashboard__row--warning {
  border-color: #ffe3a8;
  background: #fffaf0;
}

.manager-dashboard__row--primary {
  border-color: #cfe1ff;
  background: #f3f8ff;
}

.manager-dashboard__row--success {
  border-color: #cfead8;
  background: #f3fbf6;
}

.manager-dashboard__empty {
  min-height: 42px;
  padding: 11px 12px;
  border: 1px dashed #d8e1ec;
  border-radius: 4px;
  color: #718092;
  background: #f8fafc;
}

.manager-dashboard__loading {
  grid-column: span 4;
  display: flex;
  align-items: center;
  align-content: center;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 154px;
  background: #f7f9fc;
}

.company-content > .manager-dashboard__loading {
  grid-column: auto;
  min-height: 92px;
}

.manager-dashboard__loading > div {
  display: grid;
  gap: 5px;
}

.manager-dashboard__loading strong {
  color: #25313c;
  font-size: 16px;
}

.manager-dashboard__loading p {
  color: #718092;
  font-size: 13px;
}

.manager-dashboard__loading-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e6eef9;
  color: #35618f;
  font-size: 20px;
  font-weight: var(--ui-weight-black, 900);
}

.manager-dashboard__loading--error {
  border-color: #f2c8c8;
  background: #fff7f7;
}

.manager-dashboard__loading--error .manager-dashboard__loading-mark {
  background: #ffe5e5;
  color: #b42318;
}

.reports-dashboard__section {
  min-height: 224px;
}

.reports-dashboard__hero p {
  max-width: 720px;
}

#reportsGrid > .reports-dashboard__hero {
  grid-column: 1 / -1;
  min-height: 0;
  color: #24364d;
  border-color: #d8e5f2;
  background:
    radial-gradient(circle at 88% 18%, rgba(79, 164, 193, 0.12), transparent 26%),
    linear-gradient(135deg, #f8fbff 0%, #f1f7fd 58%, #f3faf7 100%);
  box-shadow: 0 10px 28px rgba(45, 78, 115, 0.08);
}

#reportsGrid > .reports-dashboard__hero h2 {
  color: #21344b;
}

#reportsGrid > .reports-dashboard__hero p,
#reportsGrid > .reports-dashboard__hero .manager-dashboard__eyebrow {
  color: #62758b;
}

#reportsGrid > .reports-dashboard__hero .manager-dashboard-period {
  border-color: #d3e0ee;
  background: rgba(255, 255, 255, 0.68);
}

#reportsGrid > .reports-dashboard__hero .manager-dashboard-period__quick button,
#reportsGrid > .reports-dashboard__hero .manager-dashboard-period__range button {
  border-color: #cbd9e8;
  background: #fff;
  color: #526a84;
}

#reportsGrid > .reports-dashboard__hero .manager-dashboard-period__quick button.active,
#reportsGrid > .reports-dashboard__hero .manager-dashboard-period__quick button:hover,
#reportsGrid > .reports-dashboard__hero .manager-dashboard-period__range button:hover {
  border-color: #7ca7d5;
  background: #eaf3ff;
  color: #255f9e;
}

#reportsGrid > .reports-dashboard__hero .manager-dashboard-period__range label {
  border-color: #d3e0ee;
  background: #fff;
  color: #718399;
}

#reportsGrid > .reports-dashboard__hero .manager-dashboard-period__range input {
  color: #304860;
}

#reportsGrid > .reports-dashboard__hero .manager-dashboard-period__range input::-webkit-calendar-picker-indicator {
  filter: none;
}

#reportsGrid > .reports-dashboard__kpis {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

#reportsGrid > .reports-dashboard__kpis .manager-kpi {
  grid-column: auto;
  min-height: 126px;
}

#reportsGrid > .reports-dashboard__summary {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(min(225px, 100%), 1fr));
  gap: 12px;
}

.reports-summary-card {
  min-width: 0;
  padding: 16px;
  color: var(--text, #253446);
  background: var(--card, #fff);
  border: 1px solid var(--line, #dce4ee);
  border-radius: 10px;
}

.reports-summary-card__heading {
  display: flex;
  align-items: center;
  gap: 9px;
}

.reports-summary-card__heading > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  place-items: center;
  color: var(--blue, #245da2);
  background: color-mix(in srgb, currentColor 10%, transparent);
  border-radius: 6px;
}

.reports-summary-card__heading svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.reports-summary-card__heading h3,
.reports-summary-card__heading button {
  margin: 0;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.reports-summary-card__heading button {
  padding: 0;
  border: 0;
  background: none;
}

.reports-summary-card__heading button:hover {
  text-decoration: underline;
}

.reports-summary-card__value {
  margin: 12px 0;
}

.reports-summary-card p,
.reports-summary-card dl {
  margin: 0;
}

.reports-summary-card p,
.reports-summary-card dt {
  font-size: 13px;
  color: color-mix(in srgb, var(--text, #253446) 76%, var(--card, #fff));
}

.reports-summary-card__value strong {
  display: block;
  margin-top: 3px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.reports-summary-card__value .is-positive {
  color: var(--success, #176943);
}

.reports-summary-card__value .is-negative {
  color: var(--danger, #b02c34);
}

.reports-summary-card dl,
.reports-summary-card__empty {
  padding-top: 10px;
  border-top: 1px solid var(--line, #dce4ee);
}

.reports-summary-card dl {
  display: grid;
  gap: 5px;
}

.reports-summary-card dl > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 8px;
}

.reports-summary-card dd {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

#reportsGrid > .reports-dashboard__attention {
  grid-column: span 8;
}

#reportsGrid > .reports-dashboard__finance-overview {
  grid-column: span 4;
}

#reportsGrid > .reports-dashboard__state--wide,
#reportsGrid > .reports-dashboard__attention--wide {
  grid-column: 1 / -1;
}

.reports-dashboard__payroll-link {
  width: fit-content;
  margin-top: auto;
}

@media (max-width: 1180px) {
  #reportsGrid > .reports-dashboard__kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  #reportsGrid > .reports-dashboard__attention,
  #reportsGrid > .reports-dashboard__finance-overview {
    grid-column: span 6;
  }
}

@media (max-width: 680px) {
  #reportsGrid > .reports-dashboard__kpis {
    grid-template-columns: 1fr;
  }

  #reportsGrid > .reports-dashboard__attention,
  #reportsGrid > .reports-dashboard__finance-overview {
    grid-column: auto;
  }
}

#workspaceDashboardGrid > .manager-dashboard__hero {
  grid-column: 1 / -1;
  min-height: 0;
  color: #24364d;
  border-color: #d8e5f2;
  background:
    radial-gradient(circle at 88% 18%, rgba(79, 164, 193, 0.16), transparent 28%),
    linear-gradient(135deg, #f8fbff 0%, #f0f7ff 54%, #f1faf7 100%);
  box-shadow: 0 10px 28px rgba(45, 78, 115, 0.09);
}

#workspaceDashboardGrid > .manager-dashboard__hero h2 {
  color: #21344b;
}

#workspaceDashboardGrid > .manager-dashboard__hero p,
#workspaceDashboardGrid > .manager-dashboard__hero .manager-dashboard__eyebrow {
  color: #62758b;
}

#workspaceDashboardGrid > .manager-dashboard__hero .manager-dashboard-period {
  border-color: #d3e0ee;
  background: rgba(255, 255, 255, 0.68);
}

#workspaceDashboardGrid > .manager-dashboard__hero .manager-dashboard-period__quick button,
#workspaceDashboardGrid > .manager-dashboard__hero .manager-dashboard-period__range button {
  border-color: #cbd9e8;
  background: #fff;
  color: #526a84;
}

#workspaceDashboardGrid > .manager-dashboard__hero .manager-dashboard-period__quick button.active,
#workspaceDashboardGrid > .manager-dashboard__hero .manager-dashboard-period__quick button:hover,
#workspaceDashboardGrid > .manager-dashboard__hero .manager-dashboard-period__range button:hover {
  border-color: #7ca7d5;
  background: #eaf3ff;
  color: #255f9e;
}

#workspaceDashboardGrid > .manager-dashboard__hero .manager-dashboard-period__range label {
  border-color: #d3e0ee;
  background: #fff;
  color: #718399;
}

#workspaceDashboardGrid > .manager-dashboard__hero .manager-dashboard-period__range input {
  color: #304860;
}

#workspaceDashboardGrid > .manager-dashboard__hero .manager-dashboard-period__range input::-webkit-calendar-picker-indicator {
  filter: none;
}

#workspaceDashboardGrid > .manager-dashboard__kpi-group {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
}

.manager-dashboard__section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.manager-dashboard__section-head strong {
  color: #25313c;
  font-size: 15px;
}

.manager-dashboard__section-head span {
  color: #718092;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

#workspaceDashboardGrid > .manager-dashboard__kpi-group .manager-dashboard__kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

#workspaceDashboardGrid > .manager-dashboard__kpi-group .manager-kpi {
  grid-column: auto;
  min-height: 114px;
}

#workspaceDashboardGrid > .home-dashboard__half {
  grid-column: span 6;
}

#workspaceDashboardGrid > .home-dashboard__wide {
  grid-column: span 8;
}

#workspaceDashboardGrid > .home-dashboard__side {
  grid-column: span 4;
}

/* HOME_ATTENTION_STRIP_ROLLOUT: crm-home-attention-strip-1 */
#workspaceDashboardGrid > .home-attention-strip {
  display: grid;
  grid-column: 1 / -1;
  gap: 12px;
  padding: 14px 16px;
}

.home-attention-strip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-attention-strip__head > div {
  display: grid;
  gap: 2px;
}

.home-attention-strip__head h3,
.home-attention-strip__head p {
  margin: 0;
}

.home-attention-strip__head p {
  color: #718092;
  font-size: 12px;
}

.home-attention-strip__items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.home-attention-strip__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid #e1e7ee;
  border-left-width: 3px;
  border-radius: 5px;
  background: #f8fafc;
  color: #4a5868;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.home-attention-strip__item:hover {
  border-color: #c8d6e6;
  background: #f3f7fb;
  transform: translateY(-1px);
}

.home-attention-strip__item span {
  font-size: 13px;
  font-weight: 700;
}

.home-attention-strip__item strong {
  color: #263443;
  font-size: 22px;
}

.home-attention-strip__item--danger {
  border-left-color: #d14343;
  background: #fff6f6;
}

.home-attention-strip__item--danger strong {
  color: #b42318;
}

.home-attention-strip__item--warning {
  border-left-color: #d99a24;
  background: #fffaf0;
}

.home-attention-strip__item--warning strong {
  color: #9a6700;
}

.home-attention-strip__item--success {
  border-left-color: #3c9a62;
  background: #f3fbf6;
}

.home-attention-strip__item--success strong {
  color: #237a47;
}

#workspaceDashboardGrid > .home-role-dashboard__kpis {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

#workspaceDashboardGrid > .home-role-dashboard__kpis .manager-kpi {
  grid-column: auto;
  min-height: 116px;
}

.home-role-dashboard__hero {
  grid-template-columns: minmax(0, 1fr) auto;
}

.home-role-dashboard__filters {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.home-role-dashboard__filters .manager-dashboard-period {
  margin: 0;
}

.home-role-dashboard__hero--compact-controls {
  grid-template-columns: minmax(0, 1fr);
}

.home-role-dashboard__filters--compact {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.home-role-dashboard__filters--compact .manager-dashboard-period {
  flex: 0 0 auto;
}

.home-role-dashboard__compare {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #d3e0ee;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.76);
  color: #526a84;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.home-role-dashboard__compare input {
  width: 16px;
  height: 16px;
  accent-color: #2c70c9;
}

.home-role-dashboard__compare--switch {
  min-height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #526071;
}

.home-role-dashboard__compare--switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.home-role-dashboard__switch-ui {
  position: relative;
  width: 36px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #aeb9c5;
  transition: background 0.16s ease;
}

.home-role-dashboard__switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(31, 42, 52, 0.25);
  transition: transform 0.16s ease;
}

.home-role-dashboard__compare--switch input:checked + .home-role-dashboard__switch-ui {
  background: #2f74d0;
}

.home-role-dashboard__compare--switch input:checked + .home-role-dashboard__switch-ui::after {
  transform: translateX(16px);
}

.home-role-dashboard__compare--switch input:focus-visible + .home-role-dashboard__switch-ui {
  outline: 3px solid rgba(47, 116, 208, 0.24);
  outline-offset: 2px;
}

#workspaceDashboardGrid > .home-role-dashboard__orders-now,
#workspaceDashboardGrid > .home-role-dashboard__attention,
#workspaceDashboardGrid > .home-role-dashboard__masters,
#workspaceDashboardGrid > .home-role-dashboard__stock,
#workspaceDashboardGrid > .home-role-dashboard__personal-tasks {
  grid-column: span 4;
}

#workspaceDashboardGrid > .home-role-dashboard__revenue,
#workspaceDashboardGrid > .home-role-dashboard__personal-orders {
  grid-column: span 8;
}

#workspaceDashboardGrid > .home-role-dashboard__personal-activity {
  grid-column: 1 / -1;
}

.manager-dashboard__panel-head > div {
  display: grid;
  gap: 2px;
}

.manager-dashboard__panel-head p {
  margin: 0;
  color: #718092;
  font-size: 12px;
  font-weight: 600;
}

.home-role-dashboard__status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

/* HOME_ORDER_PERIOD_CARDS_ROLLOUT: crm-stable-location-rollout-fix-1 */
.home-order-period-comparison {
  display: block;
  margin-top: 5px;
  color: var(--muted, #64748b);
  font-size: 11px;
  line-height: 1.35;
}
.home-role-dashboard__status--summary {
  cursor: default;
}
.home-role-dashboard__status--summary:hover {
  transform: none;
}

.home-role-dashboard__status {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 12px;
  border: 1px solid #dfe6ee;
  border-radius: 6px;
  background: #f8fafc;
  color: #526071;
  text-align: left;
}

.home-role-dashboard__status:hover {
  border-color: #c8d6e8;
  background: #f3f7fc;
}

.home-role-dashboard__status strong {
  color: #25313c;
  font-size: 23px;
}

.home-role-dashboard__status span {
  font-size: 12px;
  font-weight: 700;
}

.home-role-dashboard__status--danger strong {
  color: #b42318;
}

.home-role-dashboard__status--warning strong {
  color: #b46500;
}

.home-role-dashboard__status--success strong {
  color: #17834b;
}

.home-role-dashboard__status--primary strong {
  color: #2868b2;
}

.home-role-dashboard__chart {
  display: grid;
  gap: 5px;
  min-height: 250px;
}

.home-role-dashboard__chart svg {
  width: 100%;
  min-height: 210px;
  overflow: visible;
}

.home-role-dashboard__chart-axis,
.home-role-dashboard__chart-grid {
  stroke: #dce5ef;
  stroke-width: 1;
}

.home-role-dashboard__chart-grid {
  stroke-dasharray: 4 6;
}

.home-role-dashboard__chart-line {
  fill: none;
  stroke: #2e70ca;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.home-role-dashboard__chart-line--compare {
  stroke: #95a4b6;
  stroke-dasharray: 7 7;
  stroke-width: 3;
}

.home-role-dashboard__chart-labels,
.home-role-dashboard__chart-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #718092;
  font-size: 11px;
  font-weight: 700;
}

.home-role-dashboard__chart-legend {
  justify-content: flex-start;
}

.home-role-dashboard__chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.home-role-dashboard__chart-legend i {
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: #2e70ca;
}

.home-role-dashboard__chart-legend i.compare {
  background: #95a4b6;
}

.home-role-dashboard__chart-empty {
  display: grid;
  place-items: center;
  min-height: 250px;
}

/* HOME_REVENUE_PROFIT_CHART_ROLLOUT: crm-home-revenue-profit-chart-1 */
/* HOME_REVENUE_CHART_AXIS_CALENDAR_ROLLOUT: crm-home-revenue-chart-axis-calendar-1 */
/* HOME_REVENUE_CHART_READABLE_DATES_ROLLOUT: crm-home-revenue-chart-readable-dates-1 */
.manager-dashboard-period--range-card {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

#workspaceDashboardGrid > .manager-dashboard__hero .manager-dashboard-period--range-card,
#reportsGrid > .reports-dashboard__hero .manager-dashboard-period--range-card,
.home-role-dashboard__filters .manager-dashboard-period--range-card {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.manager-dashboard-period__range-card {
  display: grid;
  grid-template-columns: 136px 22px 136px 38px;
  align-items: center;
  min-height: 42px;
  overflow: hidden;
  border: 1px solid #cfd9e5;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(30, 53, 78, 0.04);
}

.manager-dashboard-period__range-card input {
  min-width: 0;
  height: 40px;
  padding: 0 11px;
  border: 0;
  background: transparent;
  color: #314154;
  font-size: 13px;
  font-weight: 700;
  outline: 0;
}

.manager-dashboard-period__range-card input:focus {
  background: #f4f8fd;
}

.manager-dashboard-period__range-card input::-webkit-calendar-picker-indicator {
  width: 18px;
  opacity: 0;
  cursor: pointer;
}

.manager-dashboard-period__range-arrow {
  color: #8b99a9;
  font-size: 15px;
  text-align: center;
}

.manager-dashboard-period__calendar-button {
  display: grid;
  width: 38px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 0;
  border-left: 1px solid #e2e8ef;
  border-radius: 0;
  background: transparent;
  color: #718196;
  cursor: pointer;
}

.manager-dashboard-period__calendar-button:hover,
.manager-dashboard-period__calendar-button:focus-visible {
  background: #eef5fd;
  color: #2f679f;
}

.home-revenue-profit-panel {
  min-width: 0;
}

.home-revenue-profit-summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.home-revenue-profit-summary span {
  display: grid;
  gap: 2px;
  color: #718092;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.home-revenue-profit-summary strong {
  color: #25313c;
  font-size: 16px;
}

.home-revenue-profit-chart {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.home-revenue-profit-chart__viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.home-revenue-profit-chart svg {
  display: block;
  width: max(100%, 760px);
  height: 244px;
}

.home-revenue-profit-chart--clear-axis svg {
  height: 264px;
}

.home-revenue-profit-chart.home-revenue-profit-chart--clear-axis text {
  font-size: 12px;
}

.home-revenue-profit-chart__axis,
.home-revenue-profit-chart__grid {
  stroke: #dce5ef;
  stroke-width: 1;
}

.home-revenue-profit-chart__grid {
  stroke-dasharray: 4 6;
}

.home-revenue-profit-chart__cost {
  fill: #aebdca;
}

.home-revenue-profit-chart__profit {
  fill: #2db36d;
}

.home-revenue-profit-chart__loss {
  fill: #d94a45;
}

.home-revenue-profit-chart__hit {
  fill: transparent;
  cursor: help;
}

.home-revenue-profit-chart__bar:focus-visible .home-revenue-profit-chart__hit {
  stroke: #2f80ed;
  stroke-width: 2;
  stroke-dasharray: 4 3;
}

/* HOME_REVENUE_CHART_INSTANT_TOOLTIP_ROLLOUT: crm-home-revenue-chart-instant-tooltip-1 · data-home-revenue-chart-instant-tooltip */
.home-revenue-profit-chart__tooltip {
  position: absolute;
  z-index: 5;
  min-width: 210px;
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid #c9d5e2;
  border-radius: 7px;
  background: rgba(28, 39, 52, 0.96);
  box-shadow: 0 12px 30px rgba(18, 29, 42, 0.22);
  color: #fff;
  font-size: 12px;
  line-height: 1.25;
  pointer-events: none;
}

.home-revenue-profit-chart__tooltip[hidden] {
  display: none;
}

.home-revenue-profit-chart__tooltip strong {
  margin-bottom: 2px;
  color: #fff;
  font-size: 13px;
}

.home-revenue-profit-chart__tooltip span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.home-revenue-profit-chart__tooltip em {
  color: #b9c7d5;
  font-style: normal;
}

.home-revenue-profit-chart__tooltip b {
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
}

.home-revenue-profit-chart__bar:hover .home-revenue-profit-chart__cost,
.home-revenue-profit-chart__bar:focus .home-revenue-profit-chart__cost {
  fill: #8fa3b5;
}

.home-revenue-profit-chart__bar:hover .home-revenue-profit-chart__profit,
.home-revenue-profit-chart__bar:focus .home-revenue-profit-chart__profit {
  fill: #159553;
}

.home-revenue-profit-chart text {
  fill: #718092;
  font-size: var(--ui-text-2xs, 10px);
  font-weight: 700;
}

.home-revenue-profit-chart__legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: #657589;
  font-size: 11px;
  font-weight: 700;
}

.home-revenue-profit-chart__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.home-revenue-profit-chart__legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.home-revenue-profit-chart__legend i.cost {
  background: #aebdca;
}

.home-revenue-profit-chart__legend i.profit {
  background: #2db36d;
}

.home-revenue-profit-chart__legend i.loss {
  background: #d94a45;
}

.home-revenue-profit-chart__legend em {
  margin-left: auto;
  color: #8491a0;
  font-style: normal;
  font-weight: 600;
}

.home-revenue-profit-chart__empty {
  display: grid;
  min-height: 244px;
  place-items: center;
}

@media (max-width: 720px) {
  .manager-dashboard-period--range-card {
    width: 100%;
    justify-content: stretch;
  }

  .manager-dashboard-period__range-card {
    width: 100%;
    grid-template-columns: minmax(108px, 1fr) 20px minmax(108px, 1fr) 38px;
  }

  .manager-dashboard-period__range-card input {
    width: 100%;
    padding-inline: 8px;
    font-size: 12px;
  }

  .home-revenue-profit-summary {
    width: 100%;
    justify-content: flex-start;
  }

  .home-revenue-profit-summary span {
    text-align: left;
  }

  .home-revenue-profit-chart__legend em {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 1180px) {
  #workspaceDashboardGrid > .manager-dashboard__kpi-group .manager-dashboard__kpis {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }

  #workspaceDashboardGrid > .home-role-dashboard__kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  #workspaceDashboardGrid > .home-role-dashboard__orders-now,
  #workspaceDashboardGrid > .home-role-dashboard__revenue,
  #workspaceDashboardGrid > .home-role-dashboard__attention,
  #workspaceDashboardGrid > .home-role-dashboard__masters,
  #workspaceDashboardGrid > .home-role-dashboard__stock,
  #workspaceDashboardGrid > .home-role-dashboard__personal-orders,
  #workspaceDashboardGrid > .home-role-dashboard__personal-tasks {
    grid-column: span 6;
  }

  .home-role-dashboard__filters {
    grid-template-columns: 1fr;
  }

  .home-role-dashboard__compare {
    width: fit-content;
  }
}

@media (max-width: 760px) {
  #workspaceDashboardGrid > .manager-dashboard__kpi-group .manager-dashboard__kpis {
    grid-template-columns: 1fr;
  }

  #workspaceDashboardGrid > .home-role-dashboard__kpis {
    grid-template-columns: 1fr;
  }

  .manager-dashboard__section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .manager-dashboard__section-head span {
    text-align: left;
  }

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

@media (max-width: 480px) {
  .home-attention-strip__head {
    align-items: flex-start;
  }
}

.manager-dashboard__danger {
  color: #b42318;
  font-weight: 800;
}

.manager-dashboard__finance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #edf1f5;
}

.manager-dashboard__finance-row:last-child {
  border-bottom: 0;
}

.manager-dashboard__finance-row span {
  color: #65717f;
}

.manager-dashboard__finance-row strong {
  color: #25313c;
}

.schedule-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
}

.schedule-column {
  min-height: 180px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.messages-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 98px);
  border: 1px solid var(--line);
  background: #fff;
}

.messages-list {
  display: grid;
  align-content: start;
  border-right: 1px solid var(--line);
}

.messages-list button {
  min-height: 48px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-align: left;
  padding: 0 14px;
}

.messages-list button.active {
  background: #edf4ff;
  color: var(--blue);
  font-weight: 700;
}

.messages-thread {
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 18px;
  background: #eef3f8;
}

.message-bubble {
  max-width: 420px;
  padding: 10px 12px;
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow);
}

.message-bubble--out {
  justify-self: end;
  background: #dff0ff;
}

.settings-workspace__section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 2px 2px 8px;
}

.settings-workspace__section-head h2,
.settings-overview__hero h2 {
  margin: 3px 0 5px;
  color: #213247;
  font-size: 25px;
  font-weight: 760;
  letter-spacing: -.02em;
}

.settings-workspace__section-head p,
.settings-overview__hero p {
  max-width: 760px;
  margin: 0;
  color: #6c7a8d;
  font-size: 13px;
  line-height: 1.55;
}

.settings-workspace__eyebrow {
  color: #3673c7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.settings-workspace__saved-state {
  flex: 0 0 auto;
  margin-bottom: 4px;
  padding: 5px 8px;
  border: 1px solid #dce5ef;
  border-radius: 5px;
  background: #fff;
  color: #647388;
  font-size: 11px;
  font-weight: 650;
}

.settings-workspace-beta .settings-card {
  border-color: #dfe6ee;
  border-radius: 9px;
  box-shadow: 0 3px 14px rgba(36, 55, 78, .035);
}

.settings-overview {
  display: grid;
  gap: 16px;
}

.settings-overview__hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 26px;
  border: 1px solid #dbe5f0;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff 0%, #f5f9ff 100%);
  box-shadow: 0 5px 18px rgba(41, 69, 105, .045);
}

.settings-overview__principles {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 360px;
}

.settings-overview__principles span {
  padding: 5px 8px;
  border: 1px solid #d9e6f6;
  border-radius: 5px;
  background: #fff;
  color: #4f6683;
  font-size: 11px;
  font-weight: 650;
}

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

.settings-overview-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dfe6ee;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(36, 55, 78, .035);
}

.settings-overview-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid #edf1f5;
  color: #33465e;
  font-size: 13px;
  font-weight: 760;
}

.settings-overview-card__head small {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 10px;
  background: #edf4fd;
  color: #3c70b4;
  text-align: center;
  font-size: 10px;
}

.settings-overview-card__links {
  display: grid;
}

.settings-overview-card__links button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 9px 14px;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  background: #fff;
  color: #304258;
  text-align: left;
}

.settings-overview-card__links button:last-child {
  border-bottom: 0;
}

.settings-overview-card__links button:hover,
.settings-overview-card__links button:focus-visible {
  background: #f6f9fd;
  outline: 0;
}

.settings-overview-card__links button > span {
  display: grid;
  gap: 3px;
}

.settings-overview-card__links strong {
  font-size: 13px;
  font-weight: 700;
}

.settings-overview-card__links small {
  overflow: hidden;
  color: #768497;
  font-size: 11px;
  font-weight: 450;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-overview-card__links b {
  color: #91a0b2;
  font-size: 20px;
  font-weight: 400;
  text-align: right;
}

.settings-content:has(#orderSettingsForm) {
  max-width: none;
}

.settings-content:has(.print-forms-settings-form) {
  max-width: none;
}

.settings-content > * {
  width: 100%;
  max-width: 1180px;
  min-width: 0;
  box-sizing: border-box;
}

.settings-content:has(.print-forms-settings-form) > * {
  max-width: 1420px;
}

.settings-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid #e0e7ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(36, 55, 78, 0.045);
  box-sizing: border-box;
}

.settings-card h2 {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 750;
}

.settings-card--loading p {
  margin: 0;
  color: #66758a;
}

.settings-card--planned {
  display: grid;
  gap: 18px;
}

.settings-planned-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-planned-list span {
  padding: 7px 10px;
  border: 1px solid #dce5ef;
  border-radius: 999px;
  background: #f7f9fc;
  color: #536277;
  font-size: 13px;
}

.app-sidebar__settings--return em {
  color: #fff;
}

.settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px 18px;
}

.settings-form label {
  display: grid;
  gap: 6px;
}

.settings-form label span {
  color: #596675;
}

.settings-form__wide {
  grid-column: 1 / -1;
}

@media (max-width: 1400px) {
  .settings-content .print-forms-shell {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .settings-content .print-forms-preview {
    position: static;
    grid-column: 1 / -1;
  }

  .settings-content .audit-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-content .audit-filters > .button {
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .settings-workspace__section-head,
  .settings-overview__hero {
    align-items: start;
    flex-direction: column;
  }

  .settings-overview__principles {
    justify-content: flex-start;
    max-width: none;
  }

  .settings-overview__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .settings-overview__hero {
    padding: 20px;
  }

  .settings-overview-card__links small {
    white-space: normal;
  }

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

  .settings-form__wide {
    grid-column: auto;
  }

  .settings-card {
    padding: 16px;
  }

  .company-settings-tabs {
    overflow-x: auto;
  }

  .settings-content .print-forms-shell,
  .settings-content .audit-filters {
    grid-template-columns: minmax(0, 1fr);
  }
}

.settings-leave-dialog { width: min(460px, calc(100vw - 32px)); padding: 24px; border: 1px solid #dce3eb; border-radius: 12px; color: #253343; background: #fff; box-shadow: 0 20px 70px #16273b33; }
.settings-leave-dialog::backdrop { background: #14263d66; }
.settings-leave-dialog h2 { margin: 0 0 12px; font-size: 20px; }
.settings-leave-dialog p { margin: 0 0 24px; }
.settings-leave-dialog__actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.settings-empty {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  background: #f8fafc;
}

.settings-empty strong {
  color: #26323d;
}

.settings-empty span {
  color: #65717f;
}

.settings-switches {
  display: grid;
  gap: 10px;
}

.settings-switches label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  color: #34404c;
  font-size: 13px;
  font-weight: 400;
}

.settings-switches--compact {
  gap: 8px;
}

.settings-switches--compact label {
  min-height: 34px;
}

.settings-switches--inline {
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 8px;
}

.settings-switches input {
  width: 16px;
  height: 16px;
}

.order-export__fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 12px;
}

.order-export__fields label,
.order-export__deleted {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid #dce5ee;
  border-radius: 7px;
  background: #f8fbfe;
  color: #3d4d5d;
  font-size: 13px;
  font-weight: 650;
}

.order-export__fields input,
.order-export__deleted input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.order-export__deleted {
  width: fit-content;
  margin-bottom: 12px;
}

@media (max-width: 980px) {
  .order-export__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .order-export__fields {
    grid-template-columns: 1fr;
  }
}

.settings-table {
  display: grid;
  border: 1px solid #c9cbcc;
}

.settings-table div {
  display: grid;
  grid-template-columns: 1fr 140px auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 10px;
  border-bottom: 1px solid #e1e4e7;
}

.settings-table div:last-child {
  border-bottom: 0;
}

.settings-table span {
  color: #667381;
}

.settings-status {
  align-self: center;
  color: #667381;
  font-size: 13px;
}

.staff-invite-copy-link {
  margin-left: 6px;
  padding: 3px 8px;
  border: 1px solid #abc4df;
  border-radius: 5px;
  background: #eef6ff;
  color: #245b92;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.staff-invite-copy-link:hover,
.staff-invite-copy-link:focus-visible {
  border-color: #6f9dcc;
  background: #e2efff;
  outline: 0;
}

.directory-settings-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
}

.directory-settings-hero p {
  max-width: 760px;
  margin: 6px 0 0;
  color: #64707d;
  line-height: 1.45;
}

.directory-settings-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(86px, 1fr));
  gap: 8px;
}

.directory-settings-hero__stats div {
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid #d8e0e8;
  border-radius: 6px;
  background: #f8fbff;
}

.directory-settings-hero__stats span {
  display: block;
  color: #6b7682;
  font-size: 12px;
}

.directory-settings-hero__stats strong {
  display: block;
  margin-top: 2px;
  color: #2f3943;
  font-size: 20px;
}

.directory-settings-hero__stats em {
  display: block;
  margin-top: 2px;
  color: #8190a0;
  font-size: var(--ui-text-2xs, 10px);
  font-style: normal;
}

.directory-catalog-card,
.directory-fault-card {
  display: grid;
  gap: 14px;
}

.directory-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.directory-section-head h2 {
  margin: 0;
}

.directory-section-head > div > span {
  display: block;
  margin-top: 3px;
  color: #6d7b89;
  font-size: 12px;
}

.directory-master-detail {
  display: grid;
  grid-template-columns: minmax(230px, 0.62fr) minmax(430px, 1.38fr);
  min-height: 470px;
  overflow: hidden;
  border: 1px solid #dbe4ed;
  border-radius: 7px;
  background: #f6f9fc;
}

.directory-master,
.directory-detail {
  min-width: 0;
  padding: 14px;
}

.directory-master {
  display: grid;
  align-content: start;
  gap: 10px;
  border-right: 1px solid #dbe4ed;
  background: #f9fbfd;
}

.directory-detail {
  display: grid;
  align-content: start;
  gap: 12px;
}

.directory-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.directory-add-form input,
.directory-search input,
.directory-detail-head input,
.directory-managed-row input {
  min-width: 0;
  width: 100%;
  border-radius: 5px;
}

.directory-search {
  display: grid;
  gap: 5px;
  color: #5d6b79;
  font-size: 11px;
  font-weight: 750;
}

.directory-scope-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  border: 1px solid #dce4ec;
  border-radius: 5px;
  background: #eef3f8;
}

.directory-scope-tabs button {
  min-width: 0;
  min-height: 31px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #607080;
  font-size: 12px;
  font-weight: 750;
}

.directory-scope-tabs button.active {
  background: #fff;
  color: #2466b3;
  box-shadow: 0 1px 3px rgba(35, 55, 75, 0.12);
}

.directory-scope-tabs button span {
  margin-left: 3px;
  color: #8491a0;
}

.directory-scope-tabs--compact {
  display: inline-grid;
  grid-template-columns: repeat(2, auto);
}

.directory-master-list {
  display: grid;
  align-content: start;
  gap: 5px;
  max-height: 330px;
  overflow: auto;
}

.directory-master-list > button {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #2e3a47;
  text-align: left;
}

.directory-master-list > button:hover {
  background: #f0f5fa;
}

.directory-master-list > button.active {
  border-color: #b9d1ef;
  background: #eaf3ff;
  color: #245fa8;
}

.directory-master-list > button strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-master-list > button span {
  flex: 0 0 auto;
  color: #7a8795;
  font-size: 11px;
}

.directory-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dde5ed;
}

.directory-detail-head label {
  display: grid;
  gap: 5px;
  color: #536273;
  font-size: 12px;
  font-weight: 750;
}

.directory-detail-head > div,
.directory-managed-row > div {
  display: flex;
  gap: 6px;
}

.directory-model-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(170px, 0.75fr);
  gap: 10px;
}

.directory-model-tools .directory-scope-tabs {
  grid-column: 1 / -1;
  justify-self: start;
}

.directory-managed-list {
  display: grid;
  align-content: start;
  gap: 6px;
  max-height: 310px;
  padding-right: 3px;
  overflow: auto;
}

.directory-managed-list--faults {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 360px;
}

.directory-managed-row {
  min-width: 0;
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid #dbe4ed;
  border-radius: 5px;
  background: #fff;
}

.directory-managed-row input[readonly] {
  border-color: transparent;
  background: #f6f8fa;
  color: #697786;
}

.directory-archived-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 8px;
  color: #768493;
  font-size: 11px;
}

.directory-fault-tools {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(220px, 0.7fr);
  gap: 12px;
}

.directory-empty {
  padding: 18px 12px;
  color: #7b8895;
  font-size: 12px;
  text-align: center;
}

.directory-empty--detail {
  min-height: 260px;
  display: grid;
  place-content: center;
  gap: 4px;
}

.directory-empty--detail strong {
  color: #394858;
  font-size: 15px;
}

.directory-history-note {
  margin: -2px 2px 0;
  color: #738190;
  font-size: 11px;
  line-height: 1.45;
}

/* INTAKE_DIRECTORIES_WORKSPACE_ROLLOUT: crm-intake-directories-workspace-1 */
.directory-settings-form--workspace {
  gap: 14px;
}

.directory-settings-form--workspace .directory-settings-hero {
  align-items: center;
  border-color: #d6e1ec;
  background: linear-gradient(135deg, #ffffff 0%, #f5f9fe 100%);
}

.directory-settings-form--workspace .directory-settings-hero__stats {
  grid-template-columns: repeat(4, minmax(92px, 1fr));
}

.directory-settings-hero__status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin-top: 10px;
  padding: 3px 9px;
  border: 1px solid #d9e3ed;
  border-radius: 999px;
  background: #fff;
  color: #667688;
  font-size: 11px;
}

.directory-settings-hero__status.settings-status--success {
  border-color: #b7dcc7;
  background: #f0faf4;
  color: #287548;
}

.directory-settings-hero__status.settings-status--error {
  border-color: #ecc6c6;
  background: #fff5f5;
  color: #a23c3c;
}

.directory-workspace-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.directory-workspace-nav > button {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 11px;
  padding: 13px 14px;
  border: 1px solid #d8e1ea;
  border-radius: 7px;
  background: #fff;
  color: #2f3d4b;
  text-align: left;
  cursor: pointer;
}

.directory-workspace-nav > button:hover {
  border-color: #aac7e8;
  background: #f8fbff;
}

.directory-workspace-nav > button.active {
  border-color: #75a8df;
  background: #eef6ff;
  box-shadow: inset 0 0 0 1px rgba(64, 127, 198, 0.08);
}

.directory-workspace-nav > button > span {
  grid-row: 1 / -1;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 6px;
  background: #edf2f7;
  color: #5f7081;
  font-size: 12px;
  font-weight: 800;
}

.directory-workspace-nav > button.active > span {
  background: #3478c9;
  color: #fff;
}

.directory-workspace-nav strong,
.directory-workspace-nav small,
.directory-workspace-nav em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-workspace-nav strong {
  font-size: 13px;
}

.directory-workspace-nav small {
  margin-top: 2px;
  color: #69798a;
  font-size: 11px;
}

.directory-workspace-nav em {
  margin-top: 5px;
  color: #8492a1;
  font-size: 10px;
  font-style: normal;
}

.directory-panel--hidden {
  display: none !important;
}

.directory-device-card {
  display: grid;
  gap: 14px;
}

.directory-device-tools {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(220px, 0.7fr);
  gap: 12px;
}

.directory-managed-list--devices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 420px;
}

.directory-device-row {
  min-height: 54px;
  padding: 9px 10px;
}

.directory-device-row__name {
  min-width: 0;
}

.directory-device-row__name strong,
.directory-device-row__name span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-device-row__name strong {
  color: #2d3a47;
  font-size: 13px;
}

.directory-device-row__name span {
  margin-top: 3px;
  color: #7a8896;
  font-size: 10px;
}

.directory-workspace-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  padding: 11px 12px;
  border: 1px solid #dce6ef;
  border-radius: 6px;
  background: #f7fafc;
  color: #687888;
  font-size: 11px;
  line-height: 1.4;
}

.directory-workspace-note strong {
  color: #3c4c5c;
}

.directory-settings-form--workspace .directory-master-detail {
  min-height: 430px;
}

.directory-settings-form--workspace .directory-managed-list--faults {
  max-height: 480px;
}

@media (max-width: 1180px) {
  .directory-settings-form--workspace .directory-settings-hero {
    grid-template-columns: 1fr;
  }

  .directory-settings-form--workspace .directory-settings-hero__stats {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .directory-settings-form--workspace .directory-settings-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directory-workspace-nav,
  .directory-device-tools,
  .directory-managed-list--devices {
    grid-template-columns: 1fr;
  }

  .directory-workspace-nav > button {
    padding: 11px 12px;
  }

  .directory-workspace-note {
    grid-template-columns: 1fr;
  }
}

.order-maintenance-grid {
  display: grid;
  gap: 16px;
}

.order-maintenance-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.order-maintenance-stats div {
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.order-maintenance-stats span {
  display: block;
  color: #667381;
  font-size: 12px;
}

.order-maintenance-stats strong {
  display: block;
  margin-top: 4px;
  color: #17212b;
  font-size: 18px;
}

@media (max-width: 720px) {
  .order-maintenance-stats {
    grid-template-columns: 1fr;
  }
}

#staffStatus:empty {
  display: none;
}

.settings-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.company-settings-form {
  display: grid;
  gap: 14px;
  width: 100%;
}

.company-settings-tabs {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px;
  border: 1px solid #e0e7ef;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 18px rgba(36, 55, 78, 0.045);
  backdrop-filter: blur(8px);
}

.company-settings-tabs button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #596675;
  font-weight: 700;
}

.company-settings-tabs button:hover {
  background: #f3f6fa;
  color: #26323d;
}

.company-settings-tabs button.active {
  border-color: #cfdbe8;
  background: #edf4ff;
  color: #2763b8;
}

.company-settings-panel {
  display: none;
}

.company-settings-panel.is-active {
  display: block;
}

.company-settings-panel .settings-empty {
  margin-bottom: 14px;
}

.print-forms-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.print-forms-hero p,
.print-forms-vars p {
  max-width: 640px;
  margin: 0;
  color: #667381;
  line-height: 1.45;
}

.print-forms-hero__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.print-forms-shell {
  display: grid;
  grid-template-columns: 190px minmax(360px, 1fr) minmax(330px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.print-forms-list {
  position: sticky;
  top: 64px;
  display: grid;
  gap: 7px;
}

.print-forms-list a {
  display: grid;
  gap: 3px;
  min-height: 52px;
  padding: 9px 10px;
  border: 1px solid #dbe3ec;
  border-radius: 6px;
  background: #fff;
  color: #26323d;
  text-decoration: none;
}

.print-forms-list a:hover {
  border-color: #b8d2ed;
  background: #f4f8fd;
}

.print-forms-list strong {
  font-size: 13px;
}

.print-forms-list span,
.print-form-card__head span,
.print-forms-vars__grid span {
  color: #667381;
  font-size: 12px;
  line-height: 1.35;
}

.print-forms-editor {
  display: grid;
  gap: 12px;
}

.print-form-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 13px;
  border: 1px solid #dbe3ec;
  border-radius: 7px;
  background: #fbfcfe;
  scroll-margin-top: 72px;
}

.print-form-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.print-form-card__head strong {
  display: block;
  color: #26323d;
  font-size: 15px;
  font-weight: 800;
}

.print-form-card label {
  display: grid;
  gap: 6px;
}

.print-form-card label > span {
  color: #596675;
  font-size: 12px;
  font-weight: 700;
}

.print-forms-vars__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.print-forms-vars__grid div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid #dbe3ec;
  border-radius: 6px;
  background: #fbfcfe;
}

.print-forms-vars__grid code {
  color: #225f9d;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.print-forms-preview {
  position: sticky;
  top: 64px;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.print-forms-preview__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.print-forms-preview__head strong {
  display: block;
  color: #26323d;
  font-size: 15px;
  font-weight: 800;
}

.print-forms-preview__head span {
  display: block;
  margin-top: 3px;
  color: #667381;
  font-size: 12px;
}

.print-forms-preview__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 4px;
  border: 1px solid #dbe3ec;
  border-radius: 6px;
  background: #f7f9fc;
}

.print-forms-preview__tabs button {
  min-height: 30px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #596675;
  font-size: 12px;
  font-weight: 800;
}

.print-forms-preview__tabs button.active {
  background: #fff;
  color: #225f9d;
  box-shadow: 0 1px 3px rgba(20, 35, 52, 0.12);
}

.print-forms-preview__paper {
  max-height: calc(100vh - 230px);
  min-height: 420px;
  padding: 12px;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #eef2f6;
  overflow: auto;
}

.print-forms-preview__paper .receipt {
  min-width: 540px;
  padding: 16px;
  background: #fff;
  color: #111;
  font-size: var(--ui-text-2xs, 10px);
  box-shadow: 0 8px 24px rgba(20, 35, 52, 0.12);
}

.print-forms-preview__paper .receipt h1 {
  margin-bottom: 10px;
  font-size: 15px;
}

.print-forms-preview__paper .receipt h2 {
  margin: 10px 0 5px;
  font-size: 11px;
}

.print-forms-preview__paper .receipt__meta {
  gap: 10px;
  padding-bottom: 8px;
}

.print-forms-preview__paper .receipt--intake .receipt__meta,
.print-forms-preview__paper .receipt--document .receipt__meta {
  grid-template-columns: minmax(0, 1.35fr) minmax(150px, 0.85fr);
}

.print-forms-preview__paper .receipt__docbox,
.print-forms-preview__paper .receipt__summary div {
  padding: 6px 7px;
}

.print-forms-preview__paper .receipt__logo {
  max-width: 82px;
  max-height: 34px;
}

.print-forms-preview__paper .receipt__grid,
.print-forms-preview__paper .receipt__intake-grid {
  grid-template-columns: 132px 1fr;
}

.print-forms-preview__paper .receipt__grid div,
.print-forms-preview__paper .receipt__intake-grid div,
.print-forms-preview__paper .receipt__service-row > div {
  padding: 5px 6px;
}

.print-forms-preview__paper .receipt__service-row {
  grid-template-columns: minmax(160px, 1fr) 46px 68px 74px;
}

.print-forms-preview__paper .warranty__service-row {
  grid-template-columns: 28px 46px minmax(130px, 1fr) 52px 42px 68px 74px;
}

.print-forms-preview__paper .warranty__totals {
  padding: 6px;
  font-size: var(--ui-text-2xs, 10px);
}

.print-forms-preview__paper .receipt__summary {
  gap: 5px;
  margin-top: 8px;
}

.print-forms-preview__paper .receipt__summary span {
  font-size: var(--ui-text-3xs, 9px);
}

.print-forms-preview__paper .receipt__summary strong {
  font-size: 11px;
}

.print-forms-preview__paper .receipt__terms,
.print-forms-preview__paper .warranty__terms {
  margin-top: 10px;
}

.print-forms-preview__paper .receipt__signatures {
  margin-top: 20px;
}

.order-settings-form {
  gap: 12px;
}

.order-settings-panel {
  min-height: 0;
}

.order-settings-note {
  margin-bottom: 12px;
}

.order-settings-preview {
  margin-top: 12px;
}

.order-settings-preview div {
  grid-template-columns: 160px minmax(0, 1fr);
}

.order-acceptance-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.order-settings-group {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dbe3ec;
  border-radius: 6px;
  background: #fbfcfe;
}

.order-settings-group--wide,
.order-settings-group--source {
  grid-column: 1 / -1;
}

.order-settings-group__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.order-settings-group__head strong,
.order-settings-kv strong {
  display: block;
  color: #26323d;
  font-size: 14px;
  font-weight: 800;
}

.order-settings-group__head span {
  display: block;
  margin-top: 3px;
  color: #667381;
  font-size: 12px;
  line-height: 1.35;
}

.order-settings-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.order-settings-list--single {
  grid-template-columns: 1fr;
}

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

.order-settings-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid #e1e8f0;
  border-radius: 5px;
  background: #fff;
  color: #34404c;
  font-size: 12px;
  font-weight: 700;
}

.order-settings-toggle input {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
}

.order-settings-toggle span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-settings-toggle:has(input:checked) {
  border-color: #b8d2ed;
  background: #f1f7ff;
  color: #225f9d;
}

.order-settings-kit-preview,
.order-settings-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.order-settings-kv div {
  min-width: 0;
  min-height: 44px;
  padding: 8px 9px;
  border: 1px solid #e3e9f0;
  border-radius: 5px;
  background: #fff;
}

.order-settings-kit-card {
  min-width: 0;
  min-height: 74px;
  padding: 9px 10px;
  border: 1px solid #e3e9f0;
  border-radius: 5px;
  background: #fff;
}

.order-settings-kit-card.is-active {
  border-color: #c8dbef;
  background: #f7fbff;
}

.order-settings-kit-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.order-settings-kit-card strong {
  display: block;
  color: #26323d;
  font-size: 12px;
}

.order-settings-kit-card em {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 3px;
  background: #eef3f8;
  color: #667381;
  font-size: var(--ui-text-2xs, 10px);
  font-style: normal;
  font-weight: 800;
}

.order-settings-kit-card.is-active em {
  background: #e4f2ff;
  color: #2763b8;
}

.order-settings-kit-card span,
.order-settings-kv span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #667381;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-settings-kit-card p {
  margin: 4px 0 0;
  color: #667381;
  font-size: 11px;
  line-height: 1.35;
}

.company-logo-uploader {
  display: grid;
  gap: 10px;
}

.company-logo-uploader__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.company-logo-uploader__head > span {
  color: #596675;
}

.company-logo-uploader__head small {
  color: #8792a0;
  font-size: 12px;
}

.company-logo-uploader__body {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid #d6dde5;
  border-radius: 4px;
  background: #f8fafc;
}

.company-logo-uploader__preview {
  display: grid;
  place-items: center;
  width: 116px;
  height: 78px;
  overflow: hidden;
  border: 1px dashed #b9c3ce;
  border-radius: 4px;
  background: #fff;
  color: #8792a0;
  font-size: 12px;
}

.company-logo-uploader__preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.company-logo-uploader__controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.company-logo-uploader__button {
  position: relative;
  overflow: hidden;
}

.company-logo-uploader__button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.company-logo-uploader__status {
  flex-basis: 100%;
  color: #667381;
  font-size: 12px;
}

.company-logo-uploader__status.is-error {
  color: #b42318;
}

.company-logo-uploader__status.is-success {
  color: #16794c;
}

.settings-card--actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: #f8fbfd;
}

.directory-settings-form .settings-card--actions {
  position: static;
}

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

.staff-settings-tabs {
  position: static;
  padding-top: 9px;
}

.staff-settings-tabs button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  min-height: 18px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 9px;
  background: #dceafa;
  color: #2763b8;
  font-size: 11px;
  font-weight: 800;
}

.staff-settings-tabs button span:empty {
  display: none;
}

.staff-settings-panel {
  padding-top: 18px;
}

.staff-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.staff-page-head h2 {
  margin: 0 0 4px;
}

.staff-page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.staff-page-actions .button {
  min-height: 32px;
}

/* STAFF_DIRECTORY_CLARITY_ROLLOUT: crm-staff-directory-clarity-2 */
.staff-page-title-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.staff-page-title-actions > div {
  min-width: 0;
}

.staff-settings--directory-clarity .staff-filter-bar button {
  flex-basis: 170px;
}

.staff-settings--directory-clarity .staff-row--clarity {
  min-width: 820px;
  grid-template-columns:
    minmax(250px, 1.35fr)
    minmax(220px, 1.05fr)
    minmax(210px, 1fr)
    minmax(230px, 1.1fr);
}

.staff-settings--directory-clarity .staff-row--clarity > span:not(:first-child) {
  justify-content: flex-start;
  text-align: left;
}

.staff-settings--directory-clarity .staff-row--head.staff-row--clarity > span {
  justify-content: flex-start;
}

.staff-invite-state {
  display: block;
  margin-top: 5px;
  color: #946200;
  font-size: 11px;
  font-weight: 750;
}

.staff-access-delta {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-top: 6px;
  padding: 0 7px;
  border: 1px solid #bcd4f3;
  border-radius: 4px;
  background: #edf5ff;
  color: #2763b8;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.staff-access-delta--denied {
  border-color: #f3c78c;
  background: #fff6e8;
  color: #9a5b00;
}

.staff-access-delta--mixed {
  border-color: #d7c7ef;
  background: #f7f1ff;
  color: #6d3cac;
}

.staff-payment-profile {
  display: inline-grid;
  justify-items: start;
  gap: 2px;
  max-width: 100%;
  padding: 6px 8px;
  border-radius: 4px;
  background: #edf7f1;
  color: #176b45;
  text-align: left;
}

.staff-payment-profile strong,
.staff-payment-profile em {
  max-width: 100%;
}

.staff-payment-profile em {
  margin: 0;
  color: #4c7661;
  font-size: 11px;
}

.staff-payment-profile--legacy {
  background: #f3f5f7;
  color: #485566;
}

.staff-payment-profile--legacy em {
  color: #6b7785;
}

.staff-row > .staff-row__actions--clarity {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  max-width: none;
  margin: 0;
}

.staff-row__actions--clarity .button,
.staff-row__actions--clarity .staff-owner-lock {
  width: auto;
}

.staff-row-menu {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.staff-row-menu summary {
  display: grid;
  place-items: center;
  width: 32px;
  min-height: 30px;
  border: 1px solid #ccd7e2;
  border-radius: 4px;
  background: #fff;
  color: #405066;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  list-style: none;
}

.staff-row-menu summary::-webkit-details-marker {
  display: none;
}

.staff-row-menu button {
  min-width: 180px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #efc0c0;
  border-radius: 4px;
  background: #fff;
  color: #b42318;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.staff-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(122px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf1f5;
}

.staff-stat {
  display: grid;
  gap: 2px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid #dbe3eb;
  border-radius: 4px;
  background: #f8fafc;
}

.staff-stat span {
  color: #667381;
  font-size: 12px;
  font-weight: 700;
}

.staff-stat strong {
  color: #26323d;
  font-size: 16px;
  font-weight: 750;
  line-height: 1;
}

.staff-workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.staff-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.staff-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid #e1e7ee;
  border-radius: 4px;
  background: #fbfcfd;
}

.staff-filter-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  flex: 1 1 126px;
  gap: 6px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #596675;
  font-weight: 750;
  cursor: pointer;
}

.staff-filter-bar button:hover {
  background: #f2f6fa;
  color: #26323d;
}

.staff-filter-bar button.active {
  border-color: #c9d8e8;
  background: #edf4ff;
  color: #2763b8;
}

.staff-filter-bar button span {
  color: inherit;
  opacity: .72;
}

.staff-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px 18px;
  padding: 14px;
  border: 1px solid #d8e0e8;
  border-radius: 4px;
  background: #f8fafc;
}

.staff-form[hidden] {
  display: none;
}

.staff-form__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  grid-column: 1 / -1;
}

.staff-form__head strong {
  color: #26323d;
  font-size: 15px;
}

.staff-form label {
  display: grid;
  gap: 6px;
}

.staff-form label span {
  color: #596675;
  font-size: 12px;
  font-weight: 700;
}

.staff-form input,
.staff-form select {
  min-height: 36px;
  border-radius: 4px;
}

.staff-form--owner-locked select:disabled {
  border-color: #cfd8e3;
  background: #eef3f8;
  color: #596675;
  opacity: 1;
}

.staff-form__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  grid-column: 1 / -1;
}

.staff-table {
  display: grid;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid #d6dde5;
  border-radius: 4px;
  background: #fff;
  scrollbar-width: thin;
}

.staff-row {
  min-width: 920px;
  display: grid;
  grid-template-columns:
    minmax(250px, 1.4fr)
    minmax(220px, 1.05fr)
    minmax(180px, 1fr)
    minmax(120px, .65fr)
    minmax(220px, 1.2fr);
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid #e7ebef;
}

.staff-row:last-child {
  border-bottom: 0;
}

.staff-row:hover:not(.staff-row--head):not(.staff-row--empty) {
  background: #f8fafc;
}

.staff-row--head {
  min-height: 40px;
  background: #f1f4f7;
  color: #3d4853;
  font-size: 12px;
  font-weight: 800;
}

.staff-row--empty {
  grid-template-columns: 1fr;
  min-height: 64px;
  color: #667381;
}

.staff-row span {
  min-width: 0;
  padding: 9px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-row > span:not(:first-child) {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.staff-row > .staff-role-access {
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.staff-row--head > span:last-child {
  justify-content: center;
}

.staff-row strong,
.staff-row em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-row strong {
  color: #26323d;
}

.staff-row em {
  margin-top: 3px;
  color: #667381;
  font-size: 12px;
  font-style: normal;
}

.staff-row > .staff-row__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(88px, 1fr));
  gap: 5px;
  width: 100%;
  max-width: 220px;
  margin-inline: auto;
}

.staff-row__actions .button,
.staff-row__actions .staff-owner-lock {
  justify-content: center;
  width: 100%;
  min-width: 0;
}

.staff-owner-lock {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid #dbe5ef;
  border-radius: 4px;
  background: #f4f7fb;
  color: #607080;
  font-size: 12px;
  font-weight: 800;
}

.staff-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 3px;
  background: #e8f4fb;
  color: #2763b8;
  font-size: 12px;
  font-weight: 800;
}

.staff-status--blocked {
  background: #fee2e2;
  color: #b42318;
}

.staff-status--invited {
  background: #fff4d6;
  color: #946200;
}

.staff-payroll-badge {
  display: inline-grid;
  justify-items: start;
  gap: 1px;
  width: 100%;
  max-width: 174px;
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid rgba(45, 92, 145, 0.14);
  border-radius: 4px;
  background: #f4f8fc;
  color: #253447;
}

.staff-payroll-badge strong {
  color: #1f5f9d;
  font-size: 13px;
  line-height: 1;
}

.staff-payroll-badge em {
  margin: 0;
  color: #6a7482;
  font-size: 11px;
  line-height: 1.15;
}

.staff-page-head--compact {
  align-items: flex-start;
}

.staff-payroll-form {
  display: grid;
  gap: 12px;
}

.staff-payroll-defaults {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
}

.staff-payroll-defaults label {
  display: grid;
  gap: 6px;
  color: #607080;
  font-size: 12px;
  font-weight: 750;
}

.staff-payroll-defaults input,
.staff-payroll-defaults select {
  width: 100%;
  border-radius: 5px;
}

.staff-payroll-hint {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(45, 92, 145, 0.12);
  border-radius: 5px;
  background: #f7fafc;
}

.staff-payroll-hint strong {
  color: #223044;
  font-size: 13px;
}

.staff-payroll-hint span {
  color: #667381;
  font-size: 12px;
  line-height: 1.45;
}

.staff-payroll-table {
  display: grid;
  overflow: auto;
  border: 1px solid #dbe3eb;
  border-radius: 5px;
  background: #fff;
}

.staff-payroll-row {
  min-width: 760px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) 110px minmax(155px, 0.82fr) minmax(155px, 0.82fr) 98px;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border-bottom: 1px solid #e7ebef;
}

.staff-payroll-row:last-child {
  border-bottom: 0;
}

.staff-payroll-row--head {
  min-height: 36px;
  color: #667381;
  background: #f1f4f7;
  font-size: 12px;
  font-weight: 800;
}

.staff-payroll-row--empty {
  grid-template-columns: 1fr;
  color: #667381;
}

.staff-payroll-row span {
  min-width: 0;
}

.staff-payroll-row strong,
.staff-payroll-row em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-payroll-row strong {
  color: #26323d;
  font-size: 13px;
}

.staff-payroll-row em {
  margin-top: 2px;
  color: #667381;
  font-size: 12px;
  font-style: normal;
}

.staff-payroll-person small {
  display: inline-flex;
  margin-top: 4px;
  padding: 2px 5px;
  border-radius: 3px;
  background: #e9f6ee;
  color: #2b7d4d;
  font-size: var(--ui-text-2xs, 10px);
  font-weight: 750;
}

.staff-payroll-row.is-inherited {
  background: #fbfcfd;
}

.staff-payroll-row.is-inherited .staff-payroll-person small {
  background: #eef2f6;
  color: #768493;
}

.staff-payroll-row.is-inherited input:disabled,
.staff-payroll-row.is-inherited select:disabled {
  opacity: 1;
  border-color: #e1e7ed;
  background: #f5f7f9;
  color: #778493;
}

.staff-payroll-row input,
.staff-payroll-row select {
  width: 100%;
  border-radius: 5px;
}

.staff-percent-field {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: stretch;
}

.staff-percent-field input {
  width: 100%;
  min-width: 0;
  border-radius: 5px 0 0 5px !important;
  text-align: right;
}

.staff-percent-field > span {
  display: grid;
  place-items: center;
  border: 1px solid #cfd8e2;
  border-left: 0;
  border-radius: 0 5px 5px 0;
  background: #f4f7fa;
  color: #647383;
  font-size: 12px;
  font-weight: 800;
}

.staff-percent-field input:disabled + span {
  border-color: #e1e7ed;
  background: #f5f7f9;
  color: #8793a0;
}

.staff-percent-field input[aria-invalid="true"] {
  border-color: #d33d32;
  box-shadow: 0 0 0 2px rgba(211, 61, 50, 0.12);
}

.settings-status--error {
  color: #b42318;
}

.staff-roles-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  margin: 8px 0 10px;
  padding: 8px 10px;
  border: 1px solid #dbe3eb;
  border-radius: 4px;
  background: #f8fafc;
}

.staff-roles-intro strong {
  color: #26323d;
  font-size: 14px;
}

.staff-roles-intro span {
  color: #667381;
  font-size: 12px;
}

.staff-roles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.staff-role-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #d6dde5;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}

.staff-role-card--owner {
  border-color: #b9d7f6;
  background: #f7fbff;
}

.staff-role-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.staff-role-card__head strong {
  color: #26323d;
  font-size: 15px;
}

.staff-role-card__head p {
  margin: 3px 0 0;
  max-width: 420px;
  overflow: hidden;
  color: #667381;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-role-badge {
  flex: 0 0 auto;
  min-height: 20px;
  padding: 3px 6px;
  border-radius: 3px;
  background: #edf4ff;
  color: #2763b8;
  font-size: var(--ui-text-2xs, 10px);
  font-weight: 800;
  text-transform: uppercase;
}

.staff-role-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.staff-role-meta div {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid #e1e7ee;
  border-radius: 4px;
  background: #f8fafc;
}

.staff-role-meta strong {
  color: #26323d;
  font-size: 15px;
}

.staff-role-meta span {
  color: #667381;
  font-size: 11px;
  font-weight: 700;
}

.staff-role-card__permissions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  max-height: 156px;
  overflow: auto;
  padding-right: 4px;
}

.staff-role-card__permissions label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  padding: 4px 6px;
  border: 1px solid #edf1f5;
  border-radius: 4px;
  background: #fbfcfd;
  color: #34404c;
  font-size: 12px;
}

.staff-role-card__permissions input {
  width: 15px;
  height: 15px;
}

.staff-role-card > .button {
  justify-self: end;
  min-height: 30px;
}

.staff-role-matrix {
  display: grid;
  overflow: auto;
  border: 1px solid #d6dde5;
  border-radius: 5px;
  background: #fff;
  scrollbar-width: thin;
}

.staff-role-matrix__row {
  min-width: 860px;
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) repeat(5, minmax(122px, 1fr));
  border-bottom: 1px solid #e7ebef;
}

.staff-role-matrix__row:last-child {
  border-bottom: 0;
}

.staff-role-matrix__row > span {
  min-width: 0;
  padding: 10px;
  border-right: 1px solid #edf1f5;
}

.staff-role-matrix__row > span:last-child {
  border-right: 0;
}

.staff-role-matrix__row--head {
  background: #f1f4f7;
  color: #3d4853;
  font-size: 12px;
  font-weight: var(--ui-weight-heavy, 850);
}

.staff-role-matrix__row strong,
.staff-role-matrix__row em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-role-matrix__row em {
  margin-top: 3px;
  color: #667381;
  font-size: 11px;
  font-style: normal;
}

.staff-role-matrix__cell {
  display: grid;
  align-content: center;
  gap: 3px;
  min-height: 54px;
}

.staff-role-matrix__cell strong {
  width: max-content;
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 12px;
}

.staff-role-matrix__cell--full strong {
  background: #e8f6ee;
  color: #157347;
}

.staff-role-matrix__cell--partial strong {
  background: #fff4d6;
  color: #946200;
}

.staff-role-matrix__cell--empty strong {
  background: #eef2f6;
  color: #667381;
}

.staff-role-matrix__empty {
  padding: 14px;
  color: #667381;
}

.staff-role-modal[hidden] {
  display: none;
}

.staff-role-modal {
  position: fixed;
  inset: 0;
  z-index: 2600;
  display: grid;
  align-items: stretch;
  justify-items: end;
  padding: 0;
}

.staff-role-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, .34);
  backdrop-filter: blur(2px);
}

.staff-role-modal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 14px;
  width: min(760px, calc(100vw - 24px));
  height: 100vh;
  max-height: 100vh;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid #d6dde5;
  border-radius: 8px 0 0 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
}

.staff-role-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.staff-role-modal__head h2 {
  margin: 0 0 4px;
  color: #26323d;
  font-size: 20px;
  font-weight: 650;
}

.staff-role-modal__head span {
  color: #667381;
  font-size: 13px;
}

.staff-role-modal__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.staff-role-modal__meta div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid #e1e7ee;
  border-radius: 4px;
  background: #f8fafc;
}

.staff-role-modal__meta strong {
  color: #26323d;
  font-size: 16px;
}

.staff-role-modal__meta span {
  color: #667381;
  font-size: 12px;
  font-weight: 700;
}

.staff-role-modal__name {
  display: grid;
  gap: 6px;
}

.staff-role-modal__name[hidden] {
  display: none;
}

.staff-role-modal__name span {
  color: #596675;
  font-size: 12px;
  font-weight: 700;
}

.staff-role-modal__name input {
  min-height: 38px;
  border-radius: 4px;
}

.staff-role-modal__permissions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding: 0 5px 8px 0;
}

.staff-role-modal__permissions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
}

.staff-role-modal__permissions-head > div {
  display: grid;
  gap: 2px;
}

.staff-role-modal__permissions-head strong {
  color: #26323d;
  font-size: 14px;
}

.staff-role-modal__permissions-head span {
  color: #718096;
  font-size: 11px;
}

.staff-role-sensitive-badge {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 4px;
  background: #fff7e6;
  color: #9a6700 !important;
  font-weight: 700;
}

.staff-role-permission-group {
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid #dfe5ec;
  border-radius: 6px;
  background: #fff;
}

.staff-role-permission-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 8px 12px;
  border-bottom: 1px solid #e6ebf0;
  background: #f3f6fa;
}

.staff-role-permission-group__head strong {
  color: #334155;
  font-size: 13px;
}

.staff-role-permission-group__head span {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.staff-role-permission-group__rows {
  display: grid;
  grid-template-columns: repeat(var(--staff-role-permission-count, 1), minmax(74px, 1fr));
}

.staff-role-permission-row {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 58px;
  padding: 7px 5px;
  border-right: 1px solid #edf1f5;
  background: #fff;
  color: #34404c;
  text-align: center;
}

.staff-role-permission-row:last-child {
  border-right: 0;
}

.staff-role-permission-row:hover {
  background: #f8fbff;
}

.staff-role-permission-row > input {
  width: 15px;
  height: 15px;
}

.staff-role-permission-row > span {
  display: block;
  min-width: 0;
  width: 100%;
}

.staff-role-permission-row > span strong {
  display: block;
  overflow: hidden;
  color: #34404c;
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-role-permission-row > span em {
  display: none;
}

.staff-role-permission-row > i {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e5a323;
}

.staff-role-permission-row--sensitive {
  background: #fffdf8;
}

.staff-role-modal__panel:has(.staff-role-permissions-beta) {
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
}

.staff-role-modal__panel:has(.staff-role-permissions-beta):has(.staff-role-modal__name[hidden]) {
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

.staff-role-permissions-beta {
  flex: 0 0 auto;
  display: grid;
  gap: 18px;
}

.staff-role-access-matrix-wrap {
  overflow-x: auto;
  border: 1px solid #dfe5ec;
  border-radius: 6px;
  background: #fff;
}

.staff-role-access-matrix {
  display: grid;
  min-width: 620px;
}

.staff-role-access-matrix__row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(5, 64px);
  min-height: 42px;
  border-bottom: 1px solid #e8edf2;
}

.staff-role-access-matrix__row:last-child {
  border-bottom: 0;
}

.staff-role-access-matrix__row--head {
  min-height: 38px;
  background: #f3f6fa;
}

.staff-role-access-matrix__row--head > span {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  color: #596675;
  font-size: 11px;
  font-weight: 700;
}

.staff-role-access-matrix__row--head > span:not(:first-child) {
  justify-content: center;
  border-left: 1px solid #e4e9ef;
}

.staff-role-access-matrix__section {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px 10px;
  color: #34404c;
}

.staff-role-access-matrix__section strong {
  min-width: 0;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.staff-role-access-matrix__section input,
.staff-role-access-matrix__cell input,
.staff-role-special-permission > input {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin: 0;
}

.staff-role-access-matrix__cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  border-left: 1px solid #edf1f5;
}

.staff-role-access-matrix__cell[data-role-help],
.staff-role-access-matrix__row--head > span[data-role-help],
.staff-role-access-matrix__section[data-role-help],
.staff-role-access-matrix__lock[data-role-help],
.staff-role-special-permission[data-role-help] {
  cursor: help;
}

.staff-role-access-matrix__cell[data-role-help]:hover,
.staff-role-access-matrix__cell[data-role-help]:focus-within,
.staff-role-access-matrix__cell.is-help-active {
  background: #edf5ff;
  box-shadow: inset 0 0 0 1px #a7c8f5;
}

.staff-role-access-matrix__section.is-help-active,
.staff-role-special-permission.is-help-active {
  background: #f3f8ff;
}

.staff-role-access-matrix__row:not(.staff-role-access-matrix__row--head):hover {
  background: #f8fbff;
}

.staff-role-access-matrix__empty {
  color: #b7c0ca;
  font-size: 12px;
}

.staff-role-access-matrix__lock {
  position: relative;
  flex: 0 0 auto;
  width: 10px;
  height: 8px;
  margin-left: auto;
  border: 1px solid #c7902d;
  border-radius: 2px;
}

.staff-role-access-matrix__lock::before {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 6px;
  width: 4px;
  height: 4px;
  border: 1px solid #c7902d;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}

.staff-role-special-permissions {
  display: grid;
  gap: 10px;
}

.staff-role-special-permissions__head {
  display: grid;
  gap: 3px;
}

.staff-role-special-permissions__head strong {
  color: #26323d;
  font-size: 14px;
}

.staff-role-special-permissions__head span {
  color: #718096;
  font-size: 11px;
}

.staff-role-special-permissions__list {
  overflow: hidden;
  border: 1px solid #dfe5ec;
  border-radius: 6px;
  background: #fff;
}

.staff-role-special-permission {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  min-height: 58px;
  padding: 11px 12px;
  border-bottom: 1px solid #edf1f5;
  color: #34404c;
}

.staff-role-special-permission:last-child {
  border-bottom: 0;
}

.staff-role-special-permission:hover {
  background: #f8fbff;
}

.staff-role-special-permission > input {
  margin-top: 2px;
}

.staff-role-special-permission > span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.staff-role-special-permission__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.staff-role-special-permission__title strong {
  font-size: 13px;
  line-height: 1.25;
}

.staff-role-special-permission__title small {
  padding: 2px 5px;
  border-radius: 3px;
  background: #eef3f8;
  color: #657384;
  font-size: 10px;
  font-weight: 700;
}

.staff-role-special-permission__title mark {
  padding: 2px 5px;
  border: 1px solid #f0dcae;
  border-radius: 3px;
  background: #fff8e8;
  color: #9a6700;
  font-size: 10px;
  font-weight: 700;
}

.staff-role-special-permission em {
  color: #718096;
  font-size: 11px;
  font-style: normal;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.staff-role-special-permission--sensitive {
  background: #fffdf8;
}

.staff-role-special-permission--sensitive:hover {
  background: #fff9ed;
}

.staff-role-special-permission--sensitive.is-help-active {
  background: #fff7e5;
}

.staff-role-permission-tooltip[hidden] {
  display: none;
}

.staff-role-permission-tooltip {
  position: fixed;
  z-index: 2630;
  display: grid;
  gap: 6px;
  width: min(330px, calc(100vw - 24px));
  padding: 10px 12px;
  border: 1px solid #cbd8e7;
  border-radius: 6px;
  background: #172231;
  color: #f8fafc;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .24);
  pointer-events: none;
}

.staff-role-permission-tooltip strong {
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
}

.staff-role-permission-tooltip > span {
  color: #d9e3ee;
  font-size: 12px;
  line-height: 1.45;
}

.staff-role-permission-tooltip em {
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: #ffd88a;
  font-size: 11px;
  font-style: normal;
  line-height: 1.4;
}

.staff-role-permission-tooltip em[hidden] {
  display: none;
}

.staff-role-capability-summary {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid #d9e4f1;
  border-radius: 6px;
  background: #f6f9fd;
}

.staff-role-capability-summary strong {
  color: #26323d;
  font-size: 13px;
}

.staff-role-capability-summary span {
  color: #58687a;
  font-size: 12px;
  line-height: 1.45;
}

.staff-role-capability-summary em {
  color: #9a6700;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.staff-role-capability-summary em[hidden] {
  display: none;
}

.staff-role-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid #edf1f5;
}

/* STAFF_ACCESS_WORKSPACE_ROLLOUT: crm-staff-access-workspace-1 */
.staff-settings--access-workspace .staff-settings-tabs {
  gap: 4px;
}

.staff-settings--access-workspace .staff-form--access-workspace {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-color: #d6e0ea;
  border-radius: 7px;
  background: #fff;
}

.staff-settings--access-workspace .staff-form--access-workspace > .staff-form__head {
  min-height: 54px;
  padding: 10px 14px;
  border-bottom: 1px solid #e4eaf0;
  background: #f7f9fc;
}

.staff-settings--access-workspace .staff-editor-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #e7edf3;
}

.staff-settings--access-workspace .staff-editor-section__head {
  display: grid;
  gap: 3px;
}

.staff-settings--access-workspace .staff-editor-section__head strong {
  color: #223044;
  font-size: 14px;
}

.staff-settings--access-workspace .staff-editor-section__head span,
.staff-settings--access-workspace .staff-location-access__head span {
  color: #6b7888;
  font-size: 12px;
  line-height: 1.4;
}

.staff-settings--access-workspace .staff-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px 16px;
}

.staff-settings--access-workspace .staff-editor-note {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid #dce7f3;
  border-radius: 5px;
  background: #f6f9fd;
}

.staff-settings--access-workspace .staff-editor-note strong {
  color: #285d96;
  font-size: 12px;
}

.staff-settings--access-workspace .staff-editor-note span {
  color: #5f6f81;
  font-size: 12px;
  line-height: 1.4;
}

.staff-settings--access-workspace .staff-form__actions {
  padding: 12px 14px;
  background: #f7f9fc;
}

.staff-settings--access-workspace .staff-location-access__head {
  display: grid;
  gap: 3px;
  margin-top: 4px;
}

.staff-settings--access-workspace .staff-location-access__list {
  gap: 8px;
}

.staff-access-location {
  overflow: hidden;
  border: 1px solid #d9e2eb;
  border-radius: 5px;
  background: #fff;
}

.staff-access-location__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 8px 12px;
  background: #f7f9fc;
}

.staff-access-location__head > label,
.staff-access-warehouse-row {
  display: flex !important;
  align-items: center;
  grid-template-columns: none !important;
  gap: 10px !important;
  min-width: 0;
}

.staff-access-location__head input,
.staff-access-warehouse-row > input {
  flex: 0 0 auto;
  width: 16px;
  min-height: 16px !important;
  height: 16px;
  margin: 0;
}

.staff-access-location__head label > span,
.staff-access-warehouse-row > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.staff-access-location__head strong,
.staff-access-warehouse-row strong {
  color: #26323d;
  font-size: 13px;
}

.staff-access-location__head small,
.staff-access-warehouse-row small {
  color: #718096;
  font-size: 11px;
  font-weight: 500;
}

.staff-access-location__head > b {
  flex: 0 0 auto;
  color: #27754d;
  font-size: 11px;
  font-weight: 750;
}

.staff-access-location.is-disabled .staff-access-location__head > b {
  color: #7b8795;
}

.staff-access-warehouse-list {
  display: grid;
}

.staff-access-warehouse-row {
  min-height: 46px;
  padding: 8px 12px 8px 38px;
  border-top: 1px solid #edf1f5;
  background: #fff;
}

.staff-access-warehouse-row > span {
  flex: 1 1 auto;
}

.staff-access-warehouse-row > em {
  flex: 0 0 auto;
  color: #677587;
  font-size: 11px;
  font-style: normal;
}

.staff-access-warehouse-row:has(input:checked) > em {
  color: #27754d;
  font-weight: 700;
}

.staff-access-location.is-disabled .staff-access-warehouse-row {
  background: #fafbfc;
  opacity: .7;
}

.staff-access-location__empty {
  display: block;
  padding: 10px 12px 10px 38px;
  border-top: 1px solid #edf1f5;
  color: #718096;
  font-size: 12px;
}

.staff-payroll-model {
  display: grid;
  grid-template-columns: minmax(180px, .65fr) minmax(0, 1.35fr);
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #dce7f3;
  border-radius: 5px;
  background: #f6f9fd;
}

.staff-payroll-model > div {
  display: grid;
  gap: 3px;
}

.staff-payroll-model span {
  color: #718096;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.staff-payroll-model strong {
  color: #255f9f;
  font-size: 14px;
}

.staff-payroll-model p {
  margin: 0;
  color: #5f6f81;
  font-size: 12px;
  line-height: 1.45;
}

.staff-role-modal__panel:has(.staff-role-permission-menu) {
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  width: min(920px, calc(100vw - 24px));
}

.staff-role-modal__panel:has(.staff-role-permission-menu):has(.staff-role-modal__name[hidden]) {
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

.staff-role-permission-menu {
  display: grid;
  gap: 12px;
}

.staff-role-permission-menu__group {
  overflow: hidden;
  border: 1px solid #dce4ec;
  border-radius: 6px;
  background: #fff;
}

.staff-role-permission-menu__group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 9px 12px;
  border-bottom: 1px solid #e5ebf1;
  background: #f4f7fa;
}

.staff-role-permission-menu__group-head > div {
  display: grid;
  gap: 2px;
}

.staff-role-permission-menu__group-head strong {
  color: #243244;
  font-size: 14px;
}

.staff-role-permission-menu__group-head > div > span {
  color: #6c7989;
  font-size: 11px;
}

.staff-role-permission-menu__items {
  display: grid;
}

.staff-role-permission-menu__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 68px;
  padding: 11px 12px;
  border-bottom: 1px solid #edf1f5;
  background: #fff;
}

.staff-role-permission-menu__item:last-child {
  border-bottom: 0;
}

.staff-role-permission-menu__item:hover {
  background: #f8fbff;
}

.staff-role-permission-menu__item.is-sensitive {
  background: #fffdf8;
}

.staff-role-permission-menu__item.is-sensitive:hover {
  background: #fff9ed;
}

.staff-role-permission-menu__copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.staff-role-permission-menu__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.staff-role-permission-menu__title strong {
  color: #2b3745;
  font-size: 13px;
}

.staff-role-permission-menu__title mark {
  padding: 2px 5px;
  border: 1px solid #efd9a4;
  border-radius: 3px;
  background: #fff6df;
  color: #946200;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.staff-role-permission-menu__copy em,
.staff-role-permission-menu__copy small {
  color: #687688;
  font-size: 11px;
  font-style: normal;
  line-height: 1.42;
}

.staff-role-permission-menu__copy small {
  color: #946200;
}

.staff-role-permission-menu__control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 132px;
}

.staff-role-permission-menu__control > b {
  color: #7a8795;
  font-size: 11px;
  font-weight: 700;
}

.staff-role-permission-menu__item:has(input:checked) .staff-role-permission-menu__control > b {
  color: #27754d;
}

.staff-access-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.staff-access-switch > span {
  color: #5f6f81;
  font-size: 11px;
  font-weight: 700;
}

.staff-access-switch > input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.staff-access-switch > i {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #cbd4de;
  transition: background .16s ease;
}

.staff-access-switch > i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .28);
  transition: transform .16s ease;
}

.staff-access-switch > input:checked + i {
  background: #2f78c8;
}

.staff-access-switch > input:checked + i::after {
  transform: translateX(14px);
}

.staff-access-switch > input:focus-visible + i {
  outline: 3px solid rgba(52, 120, 229, .2);
  outline-offset: 2px;
}

.staff-access-switch > input:disabled + i {
  cursor: default;
  opacity: .55;
}

@media (max-width: 760px) {
  .staff-settings--access-workspace .staff-editor-grid,
  .staff-payroll-model {
    grid-template-columns: 1fr;
  }

  .staff-access-location__head,
  .staff-role-permission-menu__group-head {
    align-items: flex-start;
  }

  .staff-access-location__head {
    flex-direction: column;
  }

  .staff-access-location__head > b {
    padding-left: 26px;
  }

  .staff-access-warehouse-row {
    padding-left: 12px;
  }

  .staff-role-permission-menu__item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .staff-role-permission-menu__control {
    justify-content: space-between;
    min-width: 0;
  }

  .staff-role-modal__panel:has(.staff-role-permission-menu) {
    width: calc(100vw - 20px);
  }
}

.staff-invites-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.staff-invite-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(110px, .8fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 9px 10px;
  border: 1px solid #d6dde5;
  border-radius: 4px;
  background: #fff;
}

.staff-invite-row strong,
.staff-invite-row span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-invite-row strong {
  color: #26323d;
  font-size: 14px;
}

.staff-invite-row span {
  color: #667381;
  font-size: 12px;
}

.staff-invite-row__actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.staff-invites-empty {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px dashed #cbd5df;
  border-radius: 4px;
  background: #f8fafc;
}

.staff-invites-empty strong {
  color: #26323d;
}

.staff-invites-empty span {
  color: #667381;
  font-size: 13px;
}

.audit-settings .admin-card-head p {
  margin: 4px 0 0;
  color: #667381;
  font-size: 13px;
}

.audit-filters {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(160px, .9fr) minmax(150px, .8fr) minmax(220px, 1.2fr) auto;
  gap: 10px;
  align-items: end;
  margin: 12px 0;
  padding: 10px;
  border: 1px solid #dbe3eb;
  border-radius: 5px;
  background: #f8fafc;
}

.audit-filters label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #607080;
  font-size: 12px;
  font-weight: 750;
}

.audit-filters select,
.audit-filters input {
  width: 100%;
  min-height: 34px;
  border-radius: 4px;
}

.audit-log-list {
  display: grid;
  overflow: hidden;
  border: 1px solid #d6dde5;
  border-radius: 5px;
  background: #fff;
}

.audit-log-list > div,
.audit-log-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 10px 12px;
  border-bottom: 1px solid #e7ebef;
}

.audit-log-list > div:last-child,
.audit-log-row:last-child {
  border-bottom: 0;
}

.audit-log-row strong,
.audit-log-list > div > strong {
  display: block;
  color: #26323d;
  font-size: 14px;
}

.audit-log-row span,
.audit-log-list > div > span {
  display: block;
  margin-top: 3px;
  color: #667381;
  font-size: 12px;
}

.audit-log-row mark {
  padding: 5px 8px;
  border-radius: 4px;
  background: #eef2f6;
  color: #5d6875;
  font-size: 11px;
  font-weight: var(--ui-weight-heavy, 850);
  white-space: nowrap;
}

.audit-log-row--danger mark {
  background: #fee2e2;
  color: #b42318;
}

.audit-log-row--finance mark {
  background: #e8f6ee;
  color: #157347;
}

.audit-log-row--staff mark {
  background: #edf4ff;
  color: #2763b8;
}

.audit-log-row--import mark {
  background: #fff4d6;
  color: #946200;
}

.audit-log-row--orders mark {
  background: #e8f4fb;
  color: #1f5f9d;
}

.danger-confirm-box {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #f1c7c7;
  border-radius: 5px;
  background: #fff8f8;
}

.danger-confirm-box strong {
  color: #7f1d1d;
  font-size: 13px;
}

.danger-confirm-box > span {
  color: #7f3333;
  font-size: 12px;
  line-height: 1.35;
}

.danger-confirm-box label {
  display: grid;
  gap: 5px;
  color: #7f3333;
  font-size: 12px;
  font-weight: 750;
}

.danger-confirm-box input[type="text"],
.danger-confirm-box input:not([type]) {
  min-height: 34px;
  border-color: #e8b4b4;
  border-radius: 4px;
}

.danger-confirm-box__check {
  display: flex !important;
  grid-template-columns: none;
  flex-direction: row;
  align-items: center;
  gap: 8px !important;
}

.danger-confirm-box__check input {
  width: 16px;
  height: 16px;
}

.danger-confirm-box--import {
  border-color: #dbe3eb;
  background: #f8fafc;
}

.danger-confirm-box--import strong,
.danger-confirm-box--import > span,
.danger-confirm-box--import label {
  color: #34404c;
}

.status-settings-list {
  display: grid;
  border: 1px solid var(--line);
}

.status-settings-list div {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

.status-settings-list div:last-child {
  border-bottom: 0;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
}

.integration-tile {
  min-height: 92px;
  padding: 12px;
  border: 1px solid #dce5ef;
  border-radius: 10px;
  background: #f9fbfd;
  color: #26323d;
  text-align: left;
}

.integration-tile strong,
.integration-tile span,
.integration-tile small {
  display: block;
}

.integration-tile span {
  margin-top: 8px;
  color: #65717f;
  line-height: 1.35;
}

.integration-tile small {
  margin-top: 10px;
  color: #93a0af;
  font-size: 11px;
}

.settings-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.settings-card__meta {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid #d9e2ec;
  border-radius: 4px;
  background: #f7fafc;
  color: #4d5c68;
  font-size: 12px;
  font-weight: 700;
}

.settings-card__hint {
  margin: 0;
  color: #667381;
  font-size: 13px;
  line-height: 1.45;
}

.fiscal-settings-card,
.fiscal-local-card {
  display: grid;
  gap: 14px;
}

.fiscal-local-card.is-muted {
  background: #f8fafc;
}

.fiscal-settings-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(260px, 1.1fr);
  gap: 14px;
}

.fiscal-settings-field {
  display: grid;
  gap: 6px;
}

.fiscal-settings-field span,
.fiscal-methods-card > span {
  color: #596675;
  font-size: 13px;
  font-weight: 700;
}

.fiscal-settings-field small {
  color: #667381;
  font-size: 12px;
  line-height: 1.35;
}

.fiscal-settings-switches {
  align-content: start;
  padding: 10px;
  border: 1px solid #e1e7ee;
  border-radius: 4px;
  background: #f8fafc;
}

.fiscal-methods-card {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid #e1e7ee;
  border-radius: 4px;
  background: #fff;
}

.income-text {
  color: #15803d;
  font-weight: 700;
}

.expense-text {
  color: var(--danger);
  font-weight: 700;
}

.button--danger-fill {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}

.column {
  min-width: 334px;
  min-height: 0;
  max-height: 100%;
  display: grid;
  grid-template-rows: 38px minmax(0, 1fr);
  border-radius: 4px;
  background: #f7f9fb;
  border: 0;
  overflow: hidden;
}

.column--new {
  background: var(--new);
}

.column--work {
  background: var(--work);
}

.column--wait {
  background: var(--wait);
}

.column--delivery {
  background: #e8f4fb;
}

.column--done {
  background: var(--done);
}

.column__header {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 8px;
  border-bottom: 0;
  color: #35414d;
  font-weight: 700;
}

.column__total {
  color: #7a8794;
  font-size: 12px;
  font-weight: 400;
}

.column__body {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  padding: 0 12px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(89, 104, 121, 0.35) transparent;
}

.column__body::-webkit-scrollbar {
  width: 8px;
}

.column__body::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: rgba(89, 104, 121, 0.35);
}

.column__body::-webkit-scrollbar-track {
  background: transparent;
}

.orders-layout-hidden {
  display: none !important;
}

.orders-list {
  position: relative;
  min-height: 0;
  padding: 0 16px 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: #f4f7fb;
  transition: padding-right 0.18s ease;
}

.orders-list__table {
  --order-column-id: 108px;
  --order-column-status: 126px;
  --order-column-dueDate: 132px;
  --order-column-manager: 130px;
  --order-column-ticketType: 118px;
  --order-column-deviceType: 128px;
  --order-column-device: 140px;
  --order-column-problem-min: 160px;
  --order-column-client: 190px;
  --order-column-price: 96px;
  --order-column-problem: minmax(var(--order-column-problem-min), 1fr);
  position: relative;
  isolation: isolate;
  min-width: 1180px;
  border: 1px solid #d8e0e8;
  border-radius: 4px;
  overflow: visible;
  background: #fff;
}

.orders-list__previous {
  padding: 8px 0;
}

.orders-list__row {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns:
    var(--order-column-id) var(--order-column-status) var(--order-column-dueDate)
    var(--order-column-manager) var(--order-column-ticketType) var(--order-column-deviceType)
    var(--order-column-device) var(--order-column-problem) var(--order-column-client) var(--order-column-price);
  align-items: stretch;
  border: 0;
  border-bottom: 1px solid #e4e9ef;
  background: #fff;
  color: #2f3943;
  text-align: left;
}

.orders-list__row:last-child {
  border-bottom: 0;
}

.orders-list__row:not(.orders-list__row--head) {
  cursor: pointer;
}

.orders-list__row:not(.orders-list__row--head):hover {
  background: #f8fbff;
}

.orders-list__row.active {
  z-index: 2;
  background: #edf4ff;
  box-shadow: inset 3px 0 0 #2f74d0;
}

.orders-list__row > span {
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 9px 10px;
  border-right: 1px solid #eef2f6;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  line-height: 1.25;
}

.orders-list__row > span:last-child {
  border-right: 0;
}

.orders-list__row > .orders-list__client,
.orders-list__row > .orders-list__person,
.orders-list__row > .orders-list__status {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  text-align: left;
}

/* MOBILE_ORDERS_CALL_TOUCH_LAYOUT_ROLLOUT: crm-mobile-orders-call-touch-layout-1 */
.orders-list__client-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.orders-list__phone-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  pointer-events: none;
}

.orders-list__call-label,
.orders-list__urgent,
.orders-list__due > small,
.orders-list__due > strong,
.orders-list__person > small,
.orders-list__mobile-accepted,
.orders-list__price > small {
  display: none;
}

.orders-list__desktop-value {
  max-width: 100%;
  overflow: hidden;
  color: inherit;
  font-size: inherit;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orders-list__client strong,
.orders-list__client em,
.orders-list__person strong,
.orders-list__person em {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orders-list__client em,
.orders-list__person em {
  color: #6b7785;
  font-size: 12px;
  font-style: normal;
}

.orders-list__client strong {
  color: #2763b8;
}

.order-status-stack {
  display: inline-grid;
  justify-items: start;
  gap: 4px;
  min-width: 0;
}

.order-payroll-pending-badge {
  width: max-content;
  max-width: 100%;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid rgba(196, 63, 58, 0.3);
  border-radius: 4px;
  background: rgba(196, 63, 58, 0.1);
  color: #a63831;
  font-size: var(--ui-text-2xs, 10px);
  font-weight: var(--ui-weight-heavy, 850);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.orders-list__row--head {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 40px;
  background: #edf1f5;
  color: #516070;
  font-weight: 700;
  cursor: default;
  transform: translateZ(0);
  box-shadow: 0 1px 0 #d8e0e8, 0 8px 18px rgba(31, 42, 52, 0.08);
}

.orders-list__row--head > span,
.orders-list__row--head > .table-sort,
.staff-desktop-table--shared-sort .staff-desktop-row--head > [role="columnheader"] {
  background: #edf1f5;
  font-size: 12px;
  font-weight: 700;
}


.list-status {
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid #1973e1;
  border-radius: 4px;
  background: rgba(25, 115, 225, 0.1);
  color: #1973e1;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.list-status--repair {
  border-color: #099b49;
  background: rgba(9, 155, 73, 0.1);
  color: #098b43;
}

.list-status--approval,
.list-status--diagnostics {
  border-color: #d98a00;
  background: rgba(245, 166, 35, 0.14);
  color: #9a6100;
}

.list-status--ready {
  border-color: #20a8d8;
  background: rgba(32, 168, 216, 0.12);
  color: #147fa4;
}

.list-status--issued {
  border-color: #77818c;
  background: rgba(119, 129, 140, 0.12);
  color: #55616d;
}

.list-status--cancelled {
  border-color: #e4584f;
  background: rgba(228, 88, 79, 0.12);
  color: #b83a33;
}

.list-status--deleted {
  border-color: #8f98a3;
  background: rgba(143, 152, 163, 0.12);
  color: #69727d;
}

.list-status-select {
  max-width: 100%;
  height: 26px;
  width: 100%;
  min-width: 0;
  padding: 0 24px 0 9px !important;
  border: 1px solid #1973e1;
  border-radius: 4px;
  background-color: rgba(25, 115, 225, 0.1);
  color: #1973e1;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.list-status-select option,
.status-select option {
  background: #fff;
  color: var(--text);
}

.list-status-select--repair {
  border-color: #099b49;
  background-color: rgba(9, 155, 73, 0.1);
  color: #098b43;
}

.list-status-select--approval,
.list-status-select--diagnostics {
  border-color: #d98a00;
  background-color: rgba(245, 166, 35, 0.14);
  color: #9a6100;
  padding-right: 20px;
  padding-left: 6px;
  font-size: 11px;
  letter-spacing: -0.15px;
}

.list-status-select--ready {
  border-color: #20a8d8;
  background-color: rgba(32, 168, 216, 0.12);
  color: #147fa4;
}

.list-status-select--issued {
  border-color: #77818c;
  background-color: rgba(119, 129, 140, 0.12);
  color: #55616d;
}

.list-status-select--cancelled {
  border-color: #e4584f;
  background-color: rgba(228, 88, 79, 0.12);
  color: #b83a33;
}

.list-status-select--deleted {
  border-color: #8f98a3;
  background-color: rgba(143, 152, 163, 0.12);
  color: #69727d;
}

.orders-list__row--deleted {
  opacity: 0.72;
}

.orders-list__row--deleted strong {
  color: #66707a;
}

.orders-list__empty {
  padding: 22px;
  color: #6b7682;
}

.orders-list__lazy-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  border-bottom: 1px solid #e4e9ef;
  background: #f6f9fc;
  color: #55708d;
  font-size: 13px;
  font-weight: var(--ui-weight-heavy, 850);
}

.orders-list__lazy-loader span {
  width: 16px;
  height: 16px;
  border: 2px solid #c9d8ea;
  border-top-color: #2f6fca;
  border-radius: 50%;
  opacity: 0;
}

.orders-list__lazy-loader.is-loading {
  background: #eef5ff;
  color: #245da8;
}

.orders-list__lazy-loader.is-loading span {
  opacity: 1;
  animation: contacts-loader-spin 0.7s linear infinite;
}

.orders-list__footer {
  min-width: 1180px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 12px;
  border: 1px solid #d8e0e8;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  background: #fff;
  color: #3e4955;
  font-size: 13px;
}

/* ORDER_LIFECYCLE_POLISH_ROLLOUT: crm-order-lifecycle-polish-2 */
.orders-list__scroll-hint-wrap {
  position: sticky;
  z-index: 24;
  top: calc(100% - 50px);
  height: 0;
  overflow: visible;
  pointer-events: none;
  text-align: center;
}

.orders-list__scroll-hint {
  width: max-content;
  min-height: 34px;
  display: inline-block;
  margin-top: 8px;
  padding: 7px 14px;
  border: 1px solid #9db9dc;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(31, 57, 88, 0.18);
  color: #245da8;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  pointer-events: auto;
}

.orders-list__scroll-hint[hidden] {
  display: none;
}

@media (max-width: 760px) {
  .orders-list__scroll-hint {
    display: none !important;
  }
}

.orders-list__legend {
  display: flex;
  gap: 14px;
  color: #3e4955;
}

.orders-list__legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.order-preview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(18, 28, 39, 0.16);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.order-preview-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.order-preview-panel {
  position: fixed;
  top: 50%;
  left: calc(204px + (100vw - 204px) / 2);
  z-index: 51;
  width: min(760px, calc(100vw - 252px));
  max-height: min(680px, calc(100vh - 70px));
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(210, 222, 235, 0.92);
  border-radius: 8px;
  background: rgba(248, 251, 255, 0.98);
  box-shadow: 0 24px 80px rgba(17, 28, 42, 0.28);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.985);
  transition: opacity 0.16s ease, transform 0.16s ease;
  overflow: auto;
}

.order-preview-panel.is-open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.order-preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-preview__head span,
.order-preview__section > span,
.order-preview__meta span,
.order-preview__money span {
  display: block;
  color: #738092;
  font-size: 12px;
  line-height: 1.2;
}

.order-preview__head strong {
  display: block;
  margin-top: 2px;
  color: #1f5eaa;
  font-size: 20px;
  font-weight: 700;
}

.order-preview__hero,
.order-preview__section,
.order-preview__meta,
.order-preview__money,
.order-preview__actions {
  border: 1px solid #dbe5ef;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(31, 45, 61, 0.04);
}

.order-preview__hero {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.order-preview__status {
  display: inline-grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  justify-content: start;
  min-width: 0;
  color: #334155;
}

.order-preview__status strong {
  color: #26323d;
}

.order-preview__status-copy,
.ticket-summary__status-stack {
  display: inline-grid;
  justify-items: start;
  gap: 4px;
}

.order-preview__status em {
  min-width: 0;
  color: #748293;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.order-preview__status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2f74d0;
}

.order-preview__status-dot--repair {
  background: #14a15f;
}

.order-preview__status-dot--approval,
.order-preview__status-dot--diagnostics {
  background: #d98a00;
}

.order-preview__status-dot--ready {
  background: #20a8d8;
}

.order-preview__status-dot--issued {
  background: #77818c;
}

.order-preview__status-dot--cancelled {
  background: #c43f3a;
}

.order-preview__status-dot--deleted {
  background: #8f98a3;
}

.order-deleted-hint {
  margin: 0 14px 12px;
  padding: 10px 12px;
  border: 1px solid rgba(143, 152, 163, 0.22);
  border-radius: 5px;
  background: rgba(143, 152, 163, 0.1);
  color: #56616d;
  font-size: 12px;
  line-height: 1.45;
}

.order-preview__section {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 14px;
}

.order-preview__section strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #26323d;
  font-size: 14px;
}

.order-preview__section em {
  color: #667381;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.order-preview__client strong {
  color: #2763b8;
}

.order-preview__summary {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 10px;
}

.order-preview__meta,
.order-preview__money {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.order-preview__meta div,
.order-preview__money div {
  min-width: 0;
  padding: 11px 14px;
  border-left: 1px solid #edf1f5;
}

.order-preview__meta div:first-child,
.order-preview__money div:first-child {
  border-left: 0;
}

.order-preview__meta strong,
.order-preview__money strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #26323d;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-preview__money {
  background: #f4f8fc;
}

.order-preview__money div {
  padding-top: 12px;
  padding-bottom: 12px;
}

.order-preview__money strong {
  color: #1f5eaa;
  font-size: 15px;
}

.order-preview__money div:last-child strong {
  color: #0f8a53;
}

.order-preview__money-state--debt strong {
  color: #c44a35;
}

.order-preview__money-state--muted strong {
  color: #6b7682;
}

.ticket-summary__payment-state--paid strong {
  color: #0f8a53;
}

.ticket-summary__payment-state--debt strong {
  color: #c44a35;
}

.ticket-summary__payment-state--muted strong {
  color: #6b7682;
}

.order-preview__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
}

.order-preview__actions .button {
  flex: 1 1 92px;
}

.order-preview__list {
  display: grid;
  gap: 6px;
}

.order-preview__list div {
  display: grid;
  gap: 2px;
  padding-top: 6px;
  border-top: 1px solid #edf1f5;
}

.order-preview__list div:first-child {
  border-top: 0;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1973e1;
}

.legend-dot--work {
  background: #8e61d9;
}

.legend-dot--wait {
  background: #f5a623;
}

.legend-dot--ready {
  background: #43b66b;
}

.order-card {
  width: 100%;
  min-height: 247px;
  margin-top: 12px;
  padding: 13px 12px 12px;
  border: 1px solid #fff;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 6px rgba(40, 46, 51, 0.2);
  text-align: left;
  outline: 0;
  cursor: pointer;
}

.order-card:hover,
.order-card.active {
  border-color: #cdd9e6;
  box-shadow: 0 0 0 2px rgba(47, 116, 208, 0.12), 0 0 6px rgba(40, 46, 51, 0.2);
}

.order-card--deleted {
  opacity: 0.72;
}

.order-card--deleted:hover,
.order-card--deleted.active {
  border-color: #a3adb8;
  background: #f7f8fa;
  box-shadow: 0 0 0 2px rgba(143, 152, 163, 0.12), 0 0 6px rgba(40, 46, 51, 0.14);
}

.order-card__title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.order-card__title strong {
  color: #2763b8;
  font-size: 14px;
  line-height: 1.2;
}

.order-card__mark {
  width: 16px;
  height: 16px;
  border: 3px solid #e1463f;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #fff;
  flex: 0 0 auto;
}

.field {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px;
  min-height: 25px;
  color: #3d4853;
  font-size: 13px;
  line-height: 1.25;
  align-items: start;
}

.field--status {
  align-items: center;
}

.field b,
.field span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.field span:first-child {
  color: #8a96a3;
}

.status-select {
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --select-chevron-position: right 7px center;
  width: fit-content;
  max-width: 100%;
  height: 24px;
  min-width: 76px;
  padding: 0 21px 0 9px !important;
  border: 2px solid #1973e1;
  border-radius: 4px;
  background-color: #1973e1;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  cursor: pointer;
}

.status-select--repair {
  border-color: #099b49;
  background-color: #099b49;
}

.status-select--approval,
.status-select--diagnostics {
  border-color: #f5a623;
  background-color: #f5a623;
}

.status-select--ready {
  border-color: #52b7d8;
  background-color: #52b7d8;
}

.status-select--issued {
  border-color: #5e6670;
  background-color: #5e6670;
}

.status-select--cancelled {
  border-color: #e4584f;
  background-color: #e4584f;
}

.status-select--deleted {
  border-color: #8f98a3;
  background-color: #8f98a3;
}

.empty-column {
  min-height: 260px;
  padding: 16px 18px;
  display: grid;
  place-content: center;
  gap: 8px;
  color: #7f8b97;
  text-align: center;
}

.empty-column strong {
  color: #2c333a;
  font-size: 16px;
}

.empty-column span {
  color: #2f3943;
  line-height: 1.35;
}

.drawer {
  position: fixed;
  inset: auto;
  top: 50%;
  right: auto;
  bottom: auto;
  left: calc(204px + (100vw - 204px) / 2);
  width: min(980px, calc(100vw - 252px));
  max-height: min(760px, calc(100vh - 58px));
  background: #fff;
  border: 1px solid #cfd9e4;
  border-radius: 8px;
  box-shadow: var(--shadow-strong);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.985);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  overflow: hidden;
  will-change: opacity, transform;
  z-index: 10;
}

.drawer.drawer--fullscreen {
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: min(1280px, calc(100vw - 228px));
  height: 100dvh;
  max-height: none;
  border: 1px solid #cfd9e4;
  border-right: 0;
  border-radius: 8px 0 0 8px;
  box-shadow: 0 24px 70px rgba(17, 28, 42, 0.24);
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

.drawer.drawer--fullscreen.open {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.drawer.drawer--order-create {
  inset: auto;
  top: 50%;
  right: auto;
  bottom: auto;
  left: calc(204px + (100vw - 204px) / 2);
  width: min(1280px, calc(100vw - 228px));
  height: min(820px, calc(100vh - 58px));
  max-height: min(820px, calc(100vh - 58px));
  border: 1px solid #cfd9e4;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(17, 28, 42, 0.24);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.985);
  transition: opacity 0.16s ease, transform 0.16s ease;
  overflow: hidden;
}

.drawer.drawer--order-create.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.drawer.drawer--order-create.is-closing {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.985);
}

.drawer.drawer--order-create .order-form {
  height: 100%;
  border-radius: inherit;
}

.drawer.drawer--order-create .drawer__body {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.drawer.drawer--order-create .ticket-main {
  border-right: 1px solid var(--line);
}

.drawer.drawer--order-create .ticket-tabs {
  display: none;
}

.drawer.drawer--order-create .event-panel {
  display: grid;
}

.drawer.drawer--order-create .ticket-panel {
  padding: 16px 18px 70px;
}

.drawer.drawer--order-create .ticket-summary,
.drawer.drawer--order-create .ro-form,
.drawer.drawer--order-create .services-head,
.drawer.drawer--order-create .services-table,
.drawer.drawer--order-create .services-total,
.drawer.drawer--order-create .ticket-section-head,
.drawer.drawer--order-create .ticket-payment-grid,
.drawer.drawer--order-create .ticket-payment-list,
.drawer.drawer--order-create .ticket-files {
  max-width: 840px;
}

.drawer.drawer--order-create #issueOrderButton,
.drawer.drawer--order-create #orderPaymentButton,
.drawer.drawer--order-create #printActionMenu,
.drawer.drawer--order-create #moreActionMenu {
  display: none !important;
}

.drawer.drawer--order-create .order-intake-form {
  max-width: none;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  align-items: start;
  column-gap: 14px;
  row-gap: 10px;
}

.drawer.drawer--order-create .status-strip {
  grid-column: 1 / -1;
  margin-left: 0;
}

.drawer.drawer--order-create .ticket-type-row {
  align-self: start;
  width: 100%;
}

.drawer.drawer--order-create .ticket-empty-state {
  grid-column: 1 / -1;
  margin-left: 0;
}

.drawer.drawer--order-create .order-intake-column {
  min-width: 0;
  display: grid;
  align-content: start;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  background: #fbfdff;
  box-shadow: 0 1px 2px rgba(20, 32, 45, 0.04);
}

.drawer.drawer--order-create .order-intake-column--main {
  grid-column: 1;
  grid-row: 1 / span 3;
}

.drawer.drawer--order-create .order-intake-column--side {
  grid-column: 2;
  grid-template-columns: minmax(0, 1fr);
}

.drawer.drawer--order-create .order-intake-column h2,
.drawer.drawer--order-create .order-intake-section-heading {
  grid-column: 1 / -1;
}

.drawer.drawer--order-create .order-intake-column h2 {
  margin: 0;
  padding-bottom: 4px;
  border-bottom: 1px solid #edf2f6;
  color: #25313d;
  font-size: 15px;
  font-weight: 800;
}

.drawer.drawer--order-create .order-intake-column h2:not(:first-child) {
  margin-top: 5px;
}

.drawer.drawer--order-create .order-intake-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid #edf2f6;
}

.drawer.drawer--order-create .order-intake-section-heading h2 {
  padding: 0;
  border: 0;
}

.drawer.drawer--order-create .order-device-files-button {
  min-height: 30px;
  padding: 5px 11px;
  color: #3176c6;
  background: #f4f8fd;
  border-color: #cddced;
}

.drawer.drawer--order-create .order-intake-field--wide,
.drawer.drawer--order-create .device-intake-panel,
.drawer.drawer--order-create .order-intake-column--side > h2 {
  grid-column: 1 / -1;
}

.drawer.drawer--order-create .ro-row {
  grid-template-columns: 1fr;
  gap: 5px;
  font-size: 12.5px;
}

.drawer.drawer--order-create .ro-row > span {
  padding-top: 0;
  color: #5f6c79;
  text-align: left;
}

.drawer.drawer--order-create .ro-row input,
.drawer.drawer--order-create .ro-row select {
  min-height: 34px;
}

.drawer.drawer--order-create .ro-row textarea {
  min-height: 62px;
  resize: vertical;
}

.drawer.drawer--order-create .order-fault-field textarea {
  min-height: 82px;
}

.drawer.drawer--order-create .order-catalog-field {
  grid-template-columns: minmax(0, 1fr) auto;
}

.drawer.drawer--order-create .order-price-row > span {
  white-space: normal;
}

.drawer.drawer--order-create .order-price-row input {
  width: 100%;
}

.drawer.drawer--order-create .order-money-input {
  position: relative;
  display: block;
  width: 100%;
}

.drawer.drawer--order-create .order-money-input__suffix,
.drawer.drawer--order-create .order-field-info {
  display: none;
}

.drawer.drawer--order-create .order-estimate-hint:not([hidden]),
.drawer.drawer--order-create .order-intake-payment-hint:not([hidden]) {
  display: block;
  margin-top: 1px;
  color: #7a8794;
  font-size: 11px;
  line-height: 1.35;
}

html.crm-orders-intake-payment-flow-beta .order-form.is-new-order [data-order-intake-field="paid"],
html.crm-orders-intake-payment-flow-beta .order-form.is-existing-order [data-order-intake-field="prepay"],
html.crm-orders-intake-payment-flow-beta .order-form.is-existing-order [data-order-intake-field="paid"] {
  display: none !important;
}

html.crm-orders-intake-payment-ui-beta .drawer.drawer--order-create .order-money-input {
  width: min(178px, 100%);
}

html.crm-orders-intake-payment-ui-beta .drawer.drawer--order-create .order-money-input input {
  width: 100%;
  padding-right: 34px;
  font-weight: 700;
}

html.crm-orders-intake-payment-ui-beta .drawer.drawer--order-create .order-money-input__suffix {
  position: absolute;
  top: 50%;
  right: 12px;
  display: inline;
  color: #718090;
  font-size: 13px;
  font-weight: 750;
  transform: translateY(-50%);
  pointer-events: none;
}

html.crm-orders-intake-money-fields-beta .drawer.drawer--order-create .order-money-input {
  display: inline-flex;
  width: 140px;
  height: 34px;
  align-items: stretch;
  justify-self: start;
  overflow: hidden;
  border: 1px solid #cbd7e3;
  border-radius: 5px;
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

html.crm-orders-intake-layout-payment-beta .drawer.drawer--order-create .order-intake-column--side .ro-row > span:first-child {
  display: inline-flex;
  min-height: 18px;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

html.crm-orders-intake-layout-payment-beta .drawer.drawer--order-create .order-money-input {
  width: 124px;
}

html.crm-orders-intake-layout-payment-beta .drawer.drawer--order-create .order-urgent-switch {
  grid-column: 1 / -1;
  justify-content: flex-start;
  padding-top: 9px;
  border-top: 1px solid #edf2f6;
}

html.crm-orders-intake-layout-payment-beta .drawer.drawer--order-create .order-urgent-switch > span:first-child {
  min-width: 64px;
}

html.crm-orders-intake-layout-payment-beta #paymentDrawer[data-payment-context="intake"] #issuePaymentPanel .issue-final-total-field,
html.crm-orders-intake-layout-payment-beta #paymentDrawer[data-payment-context="intake"] #issuePaymentPanel > .issue-payment-panel__summary,
html.crm-orders-intake-layout-payment-beta #paymentDrawer[data-payment-context="intake"] #issuePaymentPanel > .issue-payment-panel__toggle {
  display: none;
}

html.crm-orders-intake-layout-payment-beta #paymentDrawer[data-payment-context="intake"] #issuePaymentPanel {
  order: -3;
}

html.crm-orders-intake-layout-payment-beta #paymentDrawer[data-payment-context="intake"] #issuePaymentPanel .issue-payment-panel__details {
  display: grid;
  padding-bottom: 0;
  border-bottom: 0;
}

html.crm-orders-intake-money-fields-beta .drawer.drawer--order-create .order-money-input:focus-within {
  border-color: #6aa7eb;
  box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.12);
}

html.crm-orders-intake-money-fields-beta .drawer.drawer--order-create .order-money-input input {
  min-width: 0;
  min-height: 32px;
  padding: 0 4px 0 10px;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

html.crm-orders-intake-money-fields-beta .drawer.drawer--order-create .order-money-input__suffix {
  position: static;
  display: inline-grid;
  flex: 0 0 24px;
  place-items: center start;
  padding: 0 7px 0 2px;
  color: #5f6c79;
  transform: none;
}

html.crm-orders-intake-payment-ui-beta .drawer.drawer--order-create .order-field-info {
  display: inline-grid;
  width: 16px;
  height: 16px;
  margin-left: 3px;
  place-items: center;
  border: 1px solid #c5d1dd;
  border-radius: 50%;
  color: #708092;
  font-size: var(--ui-text-2xs, 10px);
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  cursor: help;
}

html.crm-orders-intake-payment-ui-beta .drawer.drawer--order-create .order-urgent-switch {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

html.crm-orders-intake-payment-ui-beta .drawer.drawer--order-create .order-urgent-switch input[type="checkbox"] {
  position: relative;
  width: 42px;
  min-width: 42px;
  height: 24px;
  min-height: 24px;
  margin: 0;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #cbd3dc;
  box-shadow: inset 0 0 0 1px rgba(32, 49, 66, 0.08);
  cursor: pointer;
  transition: background 0.18s ease;
}

html.crm-orders-intake-payment-ui-beta .drawer.drawer--order-create .order-urgent-switch input[type="checkbox"]::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(24, 39, 54, 0.28);
  content: "";
  transition: transform 0.18s ease;
}

html.crm-orders-intake-payment-ui-beta .drawer.drawer--order-create .order-urgent-switch input[type="checkbox"]:checked {
  background: #2f80ed;
}

html.crm-orders-intake-payment-ui-beta .drawer.drawer--order-create .order-urgent-switch input[type="checkbox"]:checked::before {
  transform: translateX(18px);
}

html.crm-orders-intake-payment-ui-beta .drawer.drawer--order-create .order-urgent-switch input[type="checkbox"]:focus-visible {
  outline: 3px solid rgba(47, 128, 237, 0.24);
  outline-offset: 2px;
}

html.crm-orders-intake-layout-payment-beta .drawer.drawer--order-create .order-urgent-switch.order-urgent-switch {
  justify-content: flex-start;
  padding-top: 9px;
  border-top: 1px solid #edf2f6;
}

.drawer input[type="number"]::-webkit-inner-spin-button,
.drawer input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.drawer input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.drawer.drawer--order-create .device-intake-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.drawer.drawer--order-create .order-intake-column--side [data-order-intake-field="manager_notes"] {
  grid-column: 1;
}

.drawer.drawer--order-create [data-order-intake-field="master"],
.drawer.drawer--order-create [data-order-intake-field="status"] {
  display: none;
}

@media (min-width: 1500px) {
  .drawer.drawer--order-create .order-intake-column--main,
  .drawer.drawer--order-create .order-intake-column--side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .drawer.drawer--order-create .order-intake-column--main > .order-client-heading,
  .drawer.drawer--order-create .order-intake-column--main > .order-intake-section-heading,
  .drawer.drawer--order-create .order-intake-column--main > .device-intake-panel,
  .drawer.drawer--order-create .order-intake-column--main > .order-intake-field--wide,
  .drawer.drawer--order-create .order-intake-column--side > h2,
  .drawer.drawer--order-create .order-intake-column--side > [data-order-intake-field="manager_notes"] {
    grid-column: 1 / -1;
  }

  .drawer.drawer--order-create .order-intake-column--main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html:not(.crm-orders-intake-payment-ui-beta) .drawer.drawer--order-create .order-intake-column--side [data-order-intake-field="urgent"] {
    min-height: 34px;
    align-self: end;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 11px;
    border: 1px solid #cbd7e3;
    border-radius: 5px;
    background: #fff;
  }
}

/* ORDERS_DESKTOP_INTAKE_LAYOUT_FIX_ROLLOUT: crm-orders-desktop-intake-layout-fix-1 */
html.crm-orders-desktop-intake-layout-fix-beta .drawer.drawer--order-create .order-intake-column--side {
  grid-template-columns: minmax(0, 1fr);
}

html.crm-orders-desktop-intake-layout-fix-beta .drawer.drawer--order-create .mobile-order-client-phone-field {
  min-width: 0;
  width: 100%;
}

html.crm-orders-desktop-intake-layout-fix-beta .drawer.drawer--order-create .mobile-order-client-phone-field > input {
  width: 100%;
  max-width: 100%;
}

.drawer.drawer--order-create .device-intake-panel__section--access {
  grid-column: 1 / -1;
}

.drawer.drawer--order-create .drawer__actions {
  justify-content: flex-start;
  align-items: center;
}

.drawer.drawer--hidden-reset {
  visibility: hidden;
  opacity: 0 !important;
  transition: none !important;
  box-shadow: none !important;
  pointer-events: none;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
  z-index: 9;
}

.drawer-backdrop.open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.drawer-backdrop--modal {
  background: rgba(18, 28, 39, 0.2);
  backdrop-filter: blur(2px);
}

.drawer-backdrop--closing {
  display: block;
  opacity: 0;
  pointer-events: none;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-login-screen {
  background: #edf3f8;
}

.auth-login-screen .auth-modal__panel {
  width: min(360px, 100%);
  padding: 18px;
  box-shadow: 0 18px 60px rgba(26, 40, 55, 0.14);
}

.auth-login-screen .auth-modal__panel h2 {
  margin-bottom: 14px;
  font-size: 20px;
  text-align: center;
}

.auth-login-screen .auth-modal__panel > p {
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.35;
}

.auth-login-screen .auth-modal__panel form {
  gap: 10px;
}

.auth-login-screen .auth-modal__panel label {
  gap: 4px;
}

.auth-login-screen .auth-modal__panel input {
  height: 36px;
}

.auth-login-screen .auth-modal__status:empty {
  display: none;
}

.auth-login-screen .auth-modal__actions {
  margin-top: 2px;
}

@media (min-width: 761px) {
  .auth-login-screen .auth-modal__panel {
    border-color: rgba(255, 255, 255, 0.1);
    background:
      radial-gradient(circle at 28px 28px, rgba(79, 140, 255, 0.14), transparent 34px),
      linear-gradient(180deg, #121923 0%, #0f151d 52%, #0b1017 100%);
    color: #f4f7fa;
    box-shadow: 0 18px 60px rgba(16, 27, 38, 0.28);
  }

  .auth-login-screen .auth-modal__panel h2 {
    color: #fff;
  }

  .auth-login-screen .auth-modal__panel label {
    color: #dce4ec;
  }

  .auth-login-screen .auth-modal__panel input {
    border-color: #aebac5;
    background: #fff;
    color: var(--text);
  }

  .auth-login-screen .auth-link-button {
    color: #9fc8fb;
  }

  .auth-login-screen .auth-link-button:hover,
  .auth-login-screen .auth-link-button:focus-visible {
    color: #c8e0ff;
  }

  .auth-login-screen .auth-modal__status {
    color: #c2ccd6;
  }

  .auth-login-screen .auth-modal__actions .button--blue {
    border-color: #4a8fe7;
    background: #397ed7;
  }

  .auth-login-screen .auth-modal__actions .button:not(.button--blue) {
    border-color: rgba(220, 228, 236, 0.5);
    background: rgba(255, 255, 255, 0.08);
    color: #f4f7fa;
  }

  .auth-login-screen .auth-modal__actions .button:not(.button--blue):hover {
    border-color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.14);
  }
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 39, 53, 0.38);
}

.auth-modal__panel {
  position: relative;
  width: min(420px, 100%);
  padding: 22px;
  border: 1px solid #ccd7e2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(21, 34, 48, 0.24);
}

.auth-modal__panel--wide {
  width: min(620px, 100%);
}

.auth-modal__panel h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
}

.auth-modal__panel p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.45;
}

.auth-modal__panel form {
  display: grid;
  gap: 14px;
}

.auth-modal__panel label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.auth-modal__panel input {
  height: 38px;
  padding: 0 10px;
}

.auth-link-button {
  width: fit-content;
  border: 0;
  padding: 0;
  background: transparent;
  color: #2f74d0;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.auth-link-button:hover,
.auth-link-button:focus-visible {
  color: #1f5fb8;
  text-decoration: underline;
}

.auth-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #eef3f8;
  color: #44576a;
  font-size: 20px;
  line-height: 1;
}

.auth-modal__status {
  min-height: 20px;
  color: var(--muted);
  line-height: 1.4;
}

.auth-modal__status.is-success {
  color: #227447;
}

.auth-modal__status.is-error {
  color: var(--danger);
}

.auth-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* HOME_REPEAT_CLIENTS_DETAILS_ROLLOUT: crm-home-repeat-clients-dialog-controls-1 */
.home-repeat-clients-modal__panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(960px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  padding: 0;
  overflow: hidden;
}

.home-repeat-clients-modal__panel .auth-modal__close {
  top: 16px;
  right: 16px;
}

.home-repeat-clients-modal__heading {
  padding: 22px 58px 18px 22px;
  border-bottom: 1px solid #e2e8ef;
}

.home-repeat-clients-modal__heading > span {
  display: block;
  margin-bottom: 5px;
  color: #6d7c8e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-repeat-clients-modal__heading h2 {
  margin-bottom: 5px;
  color: #25313c;
}

.home-repeat-clients-modal__heading p {
  margin: 0;
  font-size: 13px;
}

.home-repeat-clients-modal__body {
  min-height: 220px;
  overflow: auto;
  background: #f7f9fb;
}

.home-repeat-clients-table {
  min-width: 760px;
  background: #fff;
}

.home-repeat-clients-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.35fr) minmax(150px, 1fr) 84px 128px 128px;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid #e7ecf1;
}

.home-repeat-clients-row:hover:not(.home-repeat-clients-row--head) {
  background: #f8fbff;
}

.home-repeat-clients-row--head {
  position: sticky;
  z-index: 1;
  top: 0;
  min-height: 40px;
  background: #eef3f7;
  color: #667587;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-repeat-clients-row > span {
  min-width: 0;
  padding: 9px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-repeat-clients-row strong,
.home-repeat-clients-row em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-repeat-clients-row strong {
  color: #263442;
  font-size: 13px;
}

.home-repeat-clients-row em {
  margin-top: 3px;
  color: #788697;
  font-size: 11px;
  font-style: normal;
}

.home-repeat-clients-row small {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #9a6510;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-repeat-clients-row b {
  color: #2868b2;
  font-size: 16px;
}

.home-repeat-clients-modal__state {
  display: grid;
  min-height: 260px;
  padding: 32px;
  place-content: center;
  justify-items: center;
  color: #657487;
  text-align: center;
}

.home-repeat-clients-modal__state strong {
  color: #2d3946;
  font-size: 16px;
}

.home-repeat-clients-modal__state p {
  max-width: 480px;
  margin: 6px 0 14px;
}

.home-repeat-clients-modal__state .spinner {
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  border: 3px solid #dce5ef;
  border-top-color: #2f74d0;
  border-radius: 50%;
  animation: home-repeat-clients-spin 0.8s linear infinite;
}

@keyframes home-repeat-clients-spin {
  to { transform: rotate(360deg); }
}

.home-repeat-clients-modal__footer {
  display: flex;
  min-height: 58px;
  padding: 10px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e2e8ef;
  background: #fff;
  color: #6b7888;
  font-size: 12px;
  font-weight: 700;
}

.home-repeat-clients-modal__footer > div {
  display: flex;
  gap: 8px;
}

@media (max-width: 760px) {
  .home-role-dashboard__filters--compact {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .home-role-dashboard__filters--compact .home-role-dashboard__compare {
    width: fit-content;
  }

  .home-repeat-clients-modal {
    padding: 0;
  }

  .home-repeat-clients-modal__panel {
    width: 100%;
    height: 100%;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .home-repeat-clients-table {
    min-width: 0;
    padding: 8px;
    background: transparent;
  }

  .home-repeat-clients-row,
  .home-repeat-clients-row--head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    min-height: 0;
    margin-bottom: 8px;
    padding: 12px;
    border: 1px solid #dfe6ee;
    border-radius: 6px;
    background: #fff;
  }

  .home-repeat-clients-row--head {
    display: none;
  }

  .home-repeat-clients-row > span {
    display: grid;
    gap: 3px;
    padding: 0;
    white-space: normal;
  }

  .home-repeat-clients-row > span::before {
    content: attr(data-label);
    color: #7a8796;
    font-size: var(--ui-text-2xs, 10px);
    font-weight: 800;
    text-transform: uppercase;
  }

  .home-repeat-clients-row > span:first-child,
  .home-repeat-clients-row > span:nth-child(2) {
    grid-column: 1 / -1;
  }
}

.order-device-photos-modal {
  z-index: 110;
}

.order-device-photos-modal__panel {
  width: min(640px, 100%);
}

.order-device-photos-modal__eyebrow {
  display: block;
  margin-bottom: 6px;
  color: #3176c6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-device-photos-modal__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.order-device-photo-choice {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 2px 11px;
  align-items: center;
  min-height: 78px;
  padding: 13px 14px;
  border: 1px solid #d4e0ec;
  border-radius: 10px;
  background: #f8fbff;
  color: #26384b;
  cursor: pointer;
  text-align: left;
}

.order-device-photo-choice:hover,
.order-device-photo-choice:focus-visible {
  border-color: #8eb7e7;
  background: #f1f7fe;
  outline: none;
}

.order-device-photo-choice > span {
  grid-row: 1 / span 2;
  text-align: center;
}

.order-device-photo-choice > span svg {
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 auto;
  fill: #397dc9;
}

.order-device-photo-choice strong {
  font-size: 14px;
}

.order-device-photo-choice small {
  color: #6b7b8d;
  font-size: 12px;
}

.order-device-photo-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-height: 260px;
  overflow: auto;
}

.order-device-photo-camera {
  margin-bottom: 14px;
  padding: 10px;
  border-radius: 10px;
  background: #101820;
}

.order-device-photo-camera[hidden] {
  display: none;
}

.order-device-photo-camera video {
  display: block;
  width: 100%;
  max-height: 330px;
  object-fit: contain;
  border-radius: 7px;
  background: #05080b;
}

.order-device-photo-camera > div {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.order-device-photo-preview:empty {
  display: none;
}

.order-device-photo-preview__item {
  position: relative;
  min-width: 0;
}

.order-device-photo-preview__item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid #dbe4ed;
  border-radius: 8px;
  background: #eef3f7;
}

.order-device-photo-preview__item button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(24, 35, 47, 0.78);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.order-device-photo-preview__item span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #617286;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-device-photos-modal__note {
  min-height: 20px;
  margin-top: 12px;
  color: #647588;
  font-size: 12px;
  line-height: 1.4;
}

.order-device-photos-modal__actions {
  margin-top: 12px;
}

@media (max-width: 620px) {
  .order-device-photos-modal {
    align-items: end;
    padding: 0;
  }

  .order-device-photos-modal__panel {
    width: 100%;
    max-height: min(88vh, 760px);
    overflow: auto;
    padding: 20px 16px calc(16px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
  }

  .order-device-photos-modal__choices {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .order-device-photo-choice {
    min-height: 68px;
  }

  .order-device-photo-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.issue-without-repair-modal[hidden] {
  display: none;
}

.issue-without-repair-modal {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.issue-without-repair-modal.is-open {
  opacity: 1;
}

.issue-without-repair-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 27, 39, 0.38);
  backdrop-filter: blur(8px);
}

.issue-without-repair-modal__panel {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(620px, calc(100vw - 44px));
  padding: 22px;
  border: 1px solid #d6e2ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(17, 28, 42, 0.24);
  transform: translateY(8px) scale(0.985);
  transition: transform 0.18s ease;
}

.issue-without-repair-modal.is-open .issue-without-repair-modal__panel {
  transform: translateY(0) scale(1);
}

.issue-without-repair-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid #d8e0e8;
  border-radius: 8px;
  background: #f8fafc;
  color: #53606d;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.issue-without-repair-modal__eyebrow {
  color: #9a6a1f;
  font-size: 11px;
  font-weight: var(--ui-weight-heavy, 850);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.issue-without-repair-modal h2 {
  margin: -6px 40px 0 0;
  color: #1f2a35;
  font-size: 22px;
}

.issue-without-repair-modal__lead {
  margin: -6px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.issue-without-repair-modal__summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.issue-without-repair-modal__summary > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #dfe8f2;
  border-radius: 9px;
  background: #f8fbff;
}

.issue-without-repair-modal__summary span {
  color: #728197;
  font-size: 11px;
  font-weight: 750;
}

.issue-without-repair-modal__summary strong {
  overflow: hidden;
  color: #24344a;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.issue-without-repair-modal__summary strong.is-zero {
  color: #2f8b57;
  font-size: 16px;
}

.issue-without-repair-modal__field {
  display: grid;
  gap: 6px;
}

.issue-without-repair-modal__field > span {
  color: #46566d;
  font-size: 12px;
  font-weight: 800;
}

.issue-without-repair-modal__field b {
  color: #d45555;
}

.issue-without-repair-modal__field em {
  margin-left: 5px;
  color: #8a97a8;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.issue-without-repair-modal__field select,
.issue-without-repair-modal__field textarea {
  width: 100%;
  border: 1px solid #cbd8e6;
  border-radius: 9px;
  background: #fff;
  color: #26364a;
  font: inherit;
}

.issue-without-repair-modal__field select {
  min-height: 40px;
  padding: 0 11px;
}

.issue-without-repair-modal__field textarea {
  min-height: 78px;
  padding: 10px 11px;
  resize: vertical;
}

.issue-without-repair-modal__field select:focus,
.issue-without-repair-modal__field textarea:focus {
  border-color: #6ea4de;
  outline: 3px solid rgba(74, 139, 211, 0.14);
}

.issue-without-repair-modal__warning {
  padding: 10px 12px;
  border: 1px solid #efc5c5;
  border-radius: 9px;
  background: #fff5f5;
  color: #9b3838;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.issue-without-repair-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 2px;
}

.issue-complete-modal[hidden] {
  display: none;
}

.issue-complete-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.issue-complete-modal.is-open {
  opacity: 1;
}

.issue-complete-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 27, 39, 0.38);
  backdrop-filter: blur(8px);
}

.issue-complete-modal__panel {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(560px, calc(100vw - 44px));
  padding: 22px;
  border: 1px solid rgba(206, 216, 226, 0.9);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(17, 28, 42, 0.24);
  transform: translateY(8px) scale(0.985);
  transition: transform 0.18s ease;
}

.issue-complete-modal.is-open .issue-complete-modal__panel {
  transform: translateY(0) scale(1);
}

.issue-complete-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 1px solid #d8e0e8;
  border-radius: 6px;
  background: #f8fafc;
  color: #53606d;
  font-size: 20px;
  line-height: 1;
}

.issue-complete-modal__eyebrow {
  color: #4d8a68;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.issue-complete-modal h2 {
  margin: 0;
  color: #1f2a35;
  font-size: 22px;
}

.issue-complete-modal__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.issue-complete-modal__meta div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #dde5ee;
  border-radius: 6px;
  background: #f8fafc;
}

.issue-complete-modal__meta span {
  color: #667381;
  font-size: 11px;
  font-weight: 800;
}

.issue-complete-modal__meta strong {
  overflow: hidden;
  color: #26323d;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.issue-complete-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.issue-complete-more {
  position: relative;
  display: inline-flex;
}

.issue-complete-more__trigger {
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.issue-complete-more__trigger::-webkit-details-marker {
  display: none;
}

.issue-complete-more[open] .issue-complete-more__trigger {
  border-color: #b8c7d7;
  background: #eef4f9;
  color: #26323d;
}

.issue-complete-more__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 230px;
  gap: 6px;
  padding: 8px;
  border: 1px solid #d6e0ea;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(31, 42, 53, 0.16);
}

.issue-complete-more__menu .button {
  justify-content: flex-start;
  width: 100%;
  min-height: 34px;
}

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

.onboarding-form__wide {
  grid-column: 1 / -1;
}

.release-notes-panel {
  width: min(760px, 100%);
  max-height: min(880px, calc(100vh - 40px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border-color: #d5dee8;
}

#releaseNotesModal {
  left: 204px;
}

.release-notes-panel .auth-modal__close {
  top: 18px;
  right: 18px;
}

.release-notes-heading {
  padding: 24px 58px 17px 24px;
  border-bottom: 1px solid #e7edf3;
}

.release-notes-heading > span {
  display: block;
  margin-bottom: 4px;
  color: #2f75b8;
  font-size: var(--ui-text-2xs, 10px);
  font-weight: var(--ui-weight-black, 900);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.release-notes-heading h2 {
  margin-bottom: 4px;
  font-size: 24px;
  font-weight: 750;
}

.release-notes-heading p {
  margin: 0;
  color: #6a7888;
  font-size: 13px;
}

.release-notes-summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 16px 20px 12px;
  padding: 13px 15px;
  border: 1px solid #d9e7f4;
  border-radius: 8px;
  background: linear-gradient(135deg, #f4f9ff, #f9fbfd);
}

.release-notes-summary[hidden],
.release-notes-filters[hidden] {
  display: none;
}

.release-notes-summary__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #2f7dbd;
  color: #fff;
  font-size: 18px;
}

.release-notes-summary > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.release-notes-summary strong {
  color: #1f3042;
  font-size: 14px;
}

.release-notes-summary span:not(.release-notes-summary__icon) {
  color: #708092;
  font-size: 11px;
}

.release-notes-summary > b {
  padding: 5px 8px;
  border-radius: 5px;
  background: #e7f1fc;
  color: #2e6fa8;
  font-size: var(--ui-text-2xs, 10px);
  white-space: nowrap;
}

.release-notes-summary > b.is-read {
  background: #edf5ef;
  color: #39704c;
}

.release-notes-filters {
  display: flex;
  gap: 6px;
  padding: 16px 20px 12px;
  overflow-x: auto;
}

.release-notes-filters button {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #d8e1ea;
  border-radius: 5px;
  background: #fff;
  color: #506176;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}

.release-notes-filters button b {
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 8px;
  background: #eef2f6;
  color: #708092;
  font-size: var(--ui-text-3xs, 9px);
  text-align: center;
}

.release-notes-filters button.active {
  border-color: #72a5d2;
  background: #edf6fd;
  color: #276ba4;
}

.release-notes-filters button.active b {
  background: #dcecf9;
  color: #276ba4;
}

.release-notes-list {
  min-height: 160px;
  display: grid;
  align-content: start;
  gap: 8px;
  margin: 0;
  padding: 0 20px 18px;
  overflow-y: auto;
  color: #34404c;
  line-height: 1.45;
}

.release-note-item {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid #d8e2ec;
  border-radius: 6px;
  background: #f8fafc;
}

.release-note-kind {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 4px;
  background: #e9f2ff;
  color: #285f9e;
  font-size: var(--ui-text-2xs, 10px);
  font-weight: var(--ui-weight-black, 900);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.release-note-item--fix .release-note-kind {
  background: #eaf8ef;
  color: #247044;
}

.release-note-item--important .release-note-kind {
  background: #fff0df;
  color: #9a5416;
}

.release-note-item strong {
  color: #182534;
  font-size: 14px;
}

.release-note-item span {
  color: #657384;
  font-size: 12px;
  font-weight: 800;
}

.release-note-item p {
  margin: 0;
  color: #34404c;
  font-size: 13px;
  line-height: 1.45;
}

.release-note-item.is-read {
  opacity: 0.82;
}

.release-notes-day {
  display: grid;
  gap: 8px;
}

.release-notes-day + .release-notes-day {
  margin-top: 8px;
}

.release-notes-day > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1px 2px;
}

.release-notes-day > header h3 {
  margin: 0;
  color: #607084;
  font-size: 11px;
  font-weight: var(--ui-weight-heavy, 850);
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.release-notes-day > header span {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 9px;
  background: #eef2f6;
  color: #718093;
  font-size: var(--ui-text-3xs, 9px);
  font-weight: 800;
  text-align: center;
}

.release-notes-day > div {
  display: grid;
  gap: 7px;
}

.release-note-card {
  border: 1px solid #dce4ec;
  border-left: 3px solid #7baad3;
  border-radius: 7px;
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.release-note-card--fix {
  border-left-color: #62a879;
}

.release-note-card--important {
  border-left-color: #d99a50;
}

.release-note-card.is-unread {
  background: #fbfdff;
  box-shadow: 0 5px 15px rgba(43, 75, 107, 0.06);
}

.release-note-card details > summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 14px;
  padding: 12px 40px 12px 13px;
  cursor: pointer;
  list-style: none;
}

.release-note-card details > summary::-webkit-details-marker {
  display: none;
}

.release-note-card details > summary::after {
  content: "⌄";
  position: absolute;
  top: 50%;
  right: 14px;
  color: #7c8b9c;
  font-size: 14px;
  transform: translateY(-50%) rotate(-90deg);
  transition: transform 0.16s ease;
}

.release-note-card details[open] > summary::after {
  transform: translateY(-50%) rotate(0deg);
}

.release-note-card__badges {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 5px;
}

.release-note-card__badges em,
.release-note-card__badges i {
  padding: 3px 7px;
  border-radius: 4px;
  background: #f0f3f6;
  color: #667589;
  font-size: var(--ui-text-3xs, 9px);
  font-style: normal;
  font-weight: var(--ui-weight-heavy, 850);
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.release-note-card__badges i {
  background: #fff0dd;
  color: #a5631d;
}

.release-note-card summary > strong {
  color: #1f2e3e;
  font-size: 14px;
  line-height: 1.35;
}

.release-note-card__meta {
  align-self: center;
  color: #7b8999;
  font-size: var(--ui-text-2xs, 10px);
  font-weight: 700;
  white-space: nowrap;
}

.release-note-card__meta i {
  display: none;
}

.release-note-card__body {
  margin: 0 13px;
  padding: 0 0 13px;
  border-top: 1px solid #edf1f5;
}

.release-note-card__body p {
  margin: 11px 0 0;
  color: #445568;
  font-size: 12px;
  line-height: 1.55;
}

.release-notes-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  color: #718093;
  text-align: center;
}

.release-notes-empty > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf5ef;
  color: #39704c;
  font-weight: var(--ui-weight-black, 900);
}

.release-notes-empty strong {
  color: #334558;
  font-size: 13px;
}

.release-notes-empty p {
  margin: 0;
  font-size: 11px;
}

.release-notes-actions {
  flex: 0 0 auto;
  margin: 0;
  padding: 13px 20px;
  border-top: 1px solid #e7edf3;
  background: #fff;
}

@media (max-width: 640px) {
  .release-notes-panel {
    max-height: calc(100vh - 20px);
  }

  .release-notes-summary {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .release-notes-summary__icon {
    width: 34px;
    height: 34px;
  }

  .release-notes-summary > b {
    grid-column: 2;
    width: fit-content;
  }

  .release-note-card details > summary {
    grid-template-columns: 1fr;
  }

  .release-note-card__meta {
    justify-self: start;
  }
}

.admin-view {
  padding: 0;
  background: #f3f6f9;
  overscroll-behavior: contain;
}

.admin-shell {
  width: min(1440px, 100%);
  display: grid;
  gap: 14px;
  margin: 0 auto;
  padding: 20px;
}



























.admin-grid {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.admin-section-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #dce5ed;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 42, 52, 0.06);
}



























.admin-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.admin-card-head h2 {
  margin: 0 0 3px;
  font-size: 20px;
  font-weight: 700;
}

.admin-card-note {
  color: #657384;
  font-size: 12px;
  font-weight: 800;
}

.admin-table {
  display: grid;
  gap: 8px;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto 150px auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}



.admin-row__main {
  display: grid;
  gap: 3px;
  min-width: 0;
}









.admin-row__date {
  color: #657384;
  font-size: 12px;
  font-weight: 700;
}

.admin-status-pill {
  width: fit-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef3f7;
  color: #526273;
  font-size: 11px;
  font-weight: var(--ui-weight-black, 900);
  white-space: nowrap;
}

.admin-status-pill[data-status="active"],
.admin-status-pill[data-status="approved"] {
  background: #eaf7ee;
  color: #1d6b3b;
}

.admin-status-pill[data-status="trial"],
.admin-status-pill[data-status="pending"] {
  background: #fff4df;
  color: #8a5b0a;
}

.admin-status-pill[data-status="paused"],
.admin-status-pill[data-status="blocked"],
.admin-status-pill[data-status="rejected"] {
  background: #fff0f0;
  color: #a43b3b;
}

.admin-row strong,
.admin-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-row__actions {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-request-setup {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(300px, 1.6fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #cfe0ef;
  border-radius: 6px;
  background: #f7fbff;
}

.admin-request-setup[hidden] {
  display: none;
}

.admin-request-setup__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-request-setup__copy strong {
  color: #24445f;
  font-size: 12px;
}

.admin-request-setup__copy span {
  color: #657384;
  font-size: 11px;
  font-weight: 700;
}

.admin-request-setup input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #cbd7e1;
  border-radius: 4px;
  background: #fff;
  color: #34404c;
  font: inherit;
}















.admin-subscription-history {
  width: min(680px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 48px));
  padding: 0;
  border: 1px solid #cbd8e4;
  border-radius: 10px;
  background: #f5f8fb;
  box-shadow: 0 24px 70px rgba(18, 31, 45, 0.28);
}

.admin-subscription-history::backdrop {
  background: rgba(24, 37, 52, 0.48);
  backdrop-filter: blur(2px);
}

.admin-subscription-history__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #dbe4ec;
  background: #fff;
}

.admin-subscription-history__head div {
  display: grid;
  gap: 3px;
}

.admin-subscription-history__head span {
  color: #6f7e8d;
  font-size: 11px;
  font-weight: var(--ui-weight-black, 900);
  text-transform: uppercase;
}

.admin-subscription-history__head h3 {
  margin: 0;
  font-size: 20px;
}

.admin-subscription-history__list {
  display: grid;
  gap: 8px;
  max-height: min(610px, calc(100vh - 150px));
  padding: 14px;
  overflow: auto;
}

.admin-subscription-history__list article {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(180px, 0.9fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #dbe4ec;
  border-radius: 7px;
  background: #fff;
}

.admin-subscription-history__list article span,
.admin-subscription-history__list article em {
  color: #6e7d8c;
  font-size: 12px;
  font-style: normal;
}

.admin-release-form {
  display: grid;
  grid-template-columns: 150px minmax(220px, 1fr) 170px;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.admin-release-form label {
  display: grid;
  gap: 5px;
  color: #657384;
  font-size: 12px;
  font-weight: 800;
}

.admin-release-form input,
.admin-release-form select,
.admin-release-form textarea {
  min-height: 34px;
  width: 100%;
  border: 1px solid #cbd7e1;
  border-radius: 5px;
  padding: 0 10px;
  background: #fff;
  color: #182534;
  font: inherit;
  font-weight: 700;
}

.admin-release-form textarea {
  min-height: 92px;
  padding: 9px 10px;
  resize: vertical;
}

.admin-release-form input:focus,
.admin-release-form select:focus,
.admin-release-form textarea:focus {
  border-color: #2f74d0;
  box-shadow: 0 0 0 3px rgba(47, 116, 208, 0.12);
  outline: none;
}

.admin-release-form__wide,
.admin-release-form__actions {
  grid-column: 1 / -1;
}

.admin-release-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid #d8e2ec;
  border-radius: 6px;
  background: #f8fafc;
}

.admin-release-options legend {
  padding: 0 5px;
  color: #526173;
  font-size: 12px;
  font-weight: var(--ui-weight-heavy, 850);
}

.admin-release-options label {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 8px;
  padding: 9px;
  border: 1px solid #dbe4ed;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}

.admin-release-options input {
  width: 16px;
  min-height: 16px;
  margin: 2px 0 0;
  flex: 0 0 auto;
}

.admin-release-options label > span {
  display: grid;
  gap: 2px;
}

.admin-release-options strong {
  color: #2d3b4b;
  font-size: 12px;
}

.admin-release-options em {
  color: #748294;
  font-size: var(--ui-text-2xs, 10px);
  font-style: normal;
  font-weight: 650;
  line-height: 1.35;
}

.admin-release-targets {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid #d8e2ec;
  border-radius: 5px;
  background: #f8fafc;
}

.admin-release-targets[hidden] {
  display: none;
}

.admin-release-targets > strong {
  color: #34404c;
  font-size: 12px;
}

.admin-release-targets__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 10px;
  max-height: 180px;
  overflow: auto;
}

.admin-release-targets__list label {
  display: flex;
  grid-template-columns: none;
  gap: 7px;
  align-items: flex-start;
  padding: 5px 6px;
  border-radius: 4px;
  background: #fff;
  color: #34404c;
  font-weight: 700;
}

.admin-release-targets__list input {
  width: 15px;
  min-height: 15px;
  margin: 2px 0 0;
}

.admin-release-targets__list span {
  display: grid;
  gap: 1px;
}

.admin-release-targets__list em {
  color: #788697;
  font-size: var(--ui-text-2xs, 10px);
  font-style: normal;
}

.admin-release-form__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.admin-release-overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.admin-release-overview > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #dbe3eb;
  border-radius: 6px;
  background: #fff;
}

.admin-release-overview span {
  color: #687789;
  font-size: 11px;
  font-weight: 750;
}

.admin-release-overview strong {
  color: #24374b;
  font-size: 18px;
}

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

.admin-release-group {
  border: 1px solid #d8e2ec;
  border-radius: 6px;
  background: #f7f9fb;
  overflow: hidden;
}

.admin-release-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 10px 12px;
  color: #27384b;
  cursor: pointer;
  list-style: none;
}

.admin-release-group > summary::-webkit-details-marker {
  display: none;
}

.admin-release-group > summary::after {
  content: "⌄";
  color: #6f8092;
  font-size: 16px;
  line-height: 1;
  transform: rotate(-90deg);
}

.admin-release-group[open] > summary::after {
  transform: none;
}

.admin-release-group > summary > span {
  display: grid;
  flex: 1 1 auto;
  gap: 2px;
}

.admin-release-group > summary strong {
  font-size: 14px;
}

.admin-release-group > summary em {
  color: #6f7f90;
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
}

.admin-release-group > summary > b {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: 14px;
  background: #e8eef5;
  color: #425870;
  font-size: 12px;
}

.admin-release-group--queue {
  border-color: #adc8e4;
  background: #f3f8fd;
}

.admin-release-group--queue > summary > b {
  background: #2f76b7;
  color: #fff;
}

.admin-release-group__items {
  display: grid;
  gap: 8px;
  padding: 0 8px 8px;
}

.admin-release-row--queued {
  border-left: 3px solid #4f8fc8;
}

.admin-release-order {
  width: fit-content;
  padding: 2px 6px;
  border-radius: 3px;
  background: #e9f2fb;
  color: #316c9f;
  font-size: var(--ui-text-2xs, 10px);
  font-style: normal;
  font-weight: var(--ui-weight-black, 900);
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.admin-release-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 150px auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.admin-release-row__main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-release-row__main strong {
  color: #182534;
}

.admin-release-row__main span,
.admin-release-row__meta span {
  color: #657384;
  font-size: 12px;
  font-weight: 800;
}

.admin-release-row__main p {
  max-height: 48px;
  margin: 0;
  overflow: hidden;
  color: #34404c;
  font-size: 13px;
  line-height: 1.45;
}

.admin-release-row__meta {
  display: grid;
  gap: 6px;
}

.admin-release-status {
  width: fit-content;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: var(--ui-weight-black, 900);
}

.admin-release-status--published {
  background: #f0faf3;
  color: #1d6b3b;
}

.admin-release-status--draft {
  background: #eef3f7;
  color: #607080;
}

.admin-release-status--archived {
  background: #fff4df;
  color: #8a5b0a;
}

.admin-release-channel {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: var(--ui-text-3xs, 9px);
  font-weight: var(--ui-weight-black, 900);
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.admin-release-channel--beta {
  background: #edf3fb;
  color: #356b9d;
}

.admin-release-channel--stable {
  background: #eaf7ee;
  color: #2f7147;
}

.admin-release-workflow {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #d6e1eb;
  border-radius: 8px;
  background: #fff;
}

.admin-release-workflow__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-release-workflow__head > div:first-child {
  display: grid;
  gap: 3px;
}

.admin-release-workflow__head span,
.admin-release-preview > span {
  color: #4777a5;
  font-size: 11px;
  font-weight: var(--ui-weight-black, 900);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-release-workflow__head h2,
.admin-release-list__heading h3 {
  margin: 0;
  color: #1c2d3e;
}

.admin-release-workflow__head p,
.admin-release-list__heading p {
  margin: 0;
  color: #718092;
  font-size: 12px;
  line-height: 1.45;
}

.admin-release-workflow__target {
  display: grid;
  min-width: 260px;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid #b9d1e8;
  border-radius: 6px;
  background: #f2f7fc;
}

.admin-release-workflow__target b {
  color: #28689f;
  font-size: 13px;
}

.admin-release-workflow__target span {
  color: #526b82;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.admin-release-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 14px;
  align-items: start;
}

.admin-release-form--simple {
  grid-template-columns: 1fr;
  padding: 0;
  border: 0;
}

.admin-release-form__topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 10px;
}

.admin-release-technical {
  padding: 8px 10px;
  border: 1px solid #e0e7ee;
  border-radius: 5px;
  background: #fafbfd;
}

.admin-release-technical summary {
  color: #6d7b8a;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.admin-release-technical label {
  margin-top: 8px;
}

.admin-release-preview {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #d9e3ed;
  border-radius: 6px;
  background: #f7f9fb;
}

.admin-release-preview article {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #d7e2ec;
  border-radius: 6px;
  background: #fff;
}

.admin-release-preview article > div {
  display: flex;
  gap: 6px;
}

.admin-release-preview article b,
.admin-release-preview article em {
  padding: 3px 6px;
  border-radius: 4px;
  background: #eaf2fb;
  color: #326d9f;
  font-size: var(--ui-text-3xs, 9px);
  font-style: normal;
  font-weight: var(--ui-weight-black, 900);
  text-transform: uppercase;
}

.admin-release-preview article strong {
  color: #1d2b3a;
  font-size: 14px;
}

.admin-release-preview article p {
  min-height: 38px;
  margin: 0;
  color: #536273;
  font-size: 12px;
  line-height: 1.45;
}

.admin-release-preview footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-release-preview footer span {
  padding: 3px 6px;
  border-radius: 4px;
  background: #edf1f5;
  color: #627182;
  font-size: var(--ui-text-2xs, 10px);
  font-weight: 800;
}

.admin-release-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 4px;
  border: 1px solid #d9e2eb;
  border-radius: 7px;
  background: #f5f7f9;
}

.admin-release-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #526273;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.admin-release-tabs button b {
  min-width: 20px;
  padding: 2px 5px;
  border-radius: 10px;
  background: #e3e9ef;
  font-size: var(--ui-text-2xs, 10px);
}

.admin-release-tabs button.active {
  border-color: #a9c6e2;
  background: #fff;
  color: #24649b;
}

.admin-release-tabs button.active b {
  background: #2f76b7;
  color: #fff;
}

.admin-release-list--workflow {
  padding: 12px;
  border: 1px solid #d9e2eb;
  border-radius: 7px;
  background: #f8fafc;
}

.admin-release-list__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 5px;
}

.admin-release-list__heading > div {
  display: grid;
  gap: 3px;
}

.admin-release-row--workflow {
  grid-template-columns: minmax(280px, 1fr) 155px minmax(210px, auto);
}

.admin-release-row--workflow .admin-row__actions {
  justify-content: flex-end;
}

.admin-release-confirm {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 80;
}

.admin-release-confirm__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(22, 34, 47, 0.56);
  cursor: default;
}

.admin-release-confirm__panel {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(720px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid #cbd8e4;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(25, 42, 60, 0.28);
}

.admin-release-confirm__panel > header,
.admin-release-confirm__panel > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-release-confirm__panel > header > div {
  display: grid;
  gap: 3px;
}

.admin-release-confirm__panel > header span {
  color: #4675a1;
  font-size: var(--ui-text-2xs, 10px);
  font-weight: var(--ui-weight-black, 900);
  text-transform: uppercase;
}

.admin-release-confirm__panel h2 {
  margin: 0;
  color: #1b2b3b;
  font-size: 21px;
}

.admin-release-confirm__panel > header > button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 4px;
  background: #eef2f6;
  color: #536578;
  font-size: 20px;
  cursor: pointer;
}

.admin-release-confirm__summary {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #dce5ed;
  border-radius: 6px;
  background: #f8fafc;
}

.admin-release-confirm__summary span,
.admin-release-confirm__summary p {
  margin: 0;
  color: #687789;
  font-size: 12px;
}

.admin-release-confirm__panel > footer {
  justify-content: flex-end;
}

@media (max-width: 1120px) {
  .admin-release-compose {
    grid-template-columns: 1fr;
  }

  .admin-release-preview {
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: start;
  }

  .admin-release-preview > footer {
    grid-column: 1 / -1;
  }

  .admin-release-row--workflow {
    grid-template-columns: minmax(0, 1fr) 150px;
  }

  .admin-release-row--workflow .admin-row__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .admin-release-workflow {
    padding: 12px;
  }

  .admin-release-workflow__head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-release-workflow__target {
    min-width: 0;
  }

  .admin-release-form__topline,
  .admin-release-preview,
  .admin-release-row--workflow {
    grid-template-columns: 1fr;
  }

  .admin-release-preview > footer,
  .admin-release-row--workflow .admin-row__actions {
    grid-column: auto;
  }

  .admin-release-confirm__panel .admin-release-options {
    grid-template-columns: 1fr;
  }
}

.contact-drawer {
  position: fixed;
  inset: auto;
  top: 50%;
  right: auto;
  bottom: auto;
  left: calc(204px + (100vw - 204px) / 2);
  width: min(680px, calc(100vw - 204px));
  max-height: min(760px, calc(100vh - 58px));
  background: #fff;
  border: 1px solid #cfd9e4;
  border-radius: 8px;
  box-shadow: var(--shadow-strong);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.985);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  overflow: hidden;
  will-change: opacity, transform;
  z-index: 12;
}

.contact-drawer.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.payment-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 11;
  background: rgba(18, 28, 39, 0.2);
  backdrop-filter: blur(2px);
}

.contact-form {
  height: min(760px, calc(100vh - 58px));
  max-height: min(760px, calc(100vh - 58px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-radius: inherit;
}

.contact-form__body {
  overflow: auto;
  padding: 18px;
}

.contact-section {
  display: grid;
  gap: 14px;
  padding: 10px 0 22px;
  border-bottom: 1px solid var(--line);
}

.contact-section h2 {
  margin: 0 0 0 182px;
  font-size: 18px;
}

.segmented {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  overflow: hidden;
}

.segmented label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-right: 1px solid var(--line-strong);
  font-weight: 400;
}

.segmented label:last-child {
  border-right: 0;
}

.client-orders {
  margin-left: 182px;
  display: grid;
  gap: 8px;
}

.client-order-row {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f8fafc;
}

.contact-section--compact {
  gap: 12px;
}

.contact-overview,
.contact-quick-actions,
.contact-communication,
.contact-communication-log {
  margin-left: 182px;
}

.contact-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.contact-overview-card {
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid rgba(153, 166, 183, 0.26);
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff, #f7f9fc);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.contact-overview-card--wide {
  grid-column: span 2;
}

.contact-overview-card span,
.client-order-row__main span,
.contact-communication-entry small,
.contact-communication__hint {
  color: var(--muted);
  font-size: 12px;
}

.contact-overview-card strong {
  color: #152033;
  font-size: 16px;
  font-weight: 650;
}

.contact-quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.contact-action-button {
  min-height: 34px;
  border-radius: 6px;
}

.client-orders--rich {
  gap: 9px;
}

.client-order-row--actionable {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-color: rgba(153, 166, 183, 0.26);
  border-radius: 6px;
  background: #fff;
}

.client-order-row__main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.client-order-row__main strong,
.contact-communication-entry strong {
  overflow: hidden;
  color: #152033;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-order-row__meta {
  min-width: 96px;
  display: grid;
  justify-items: end;
  gap: 4px;
  color: #152033;
  font-size: 12px;
}

.client-order-row__meta em {
  color: #697586;
  font-style: normal;
}

.client-order-row__actions {
  display: flex;
  gap: 6px;
}

.client-order-row__actions .button {
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 12px;
}

.client-order-row--empty {
  color: var(--muted);
  border-style: dashed;
  background: #fbfcfe;
}

.contact-communication {
  display: grid;
  gap: 10px;
}

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

.contact-communication .ro-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}

.contact-communication .ro-row span {
  color: #697586;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-communication select,
.contact-communication textarea {
  width: 100%;
  border-radius: 6px;
}

.contact-communication textarea {
  min-height: 104px;
  resize: vertical;
  line-height: 1.45;
}

.contact-communication__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.contact-communication__actions .button {
  border-radius: 6px;
}

.contact-communication__hint {
  margin: 0;
}

.contact-communication-log {
  display: grid;
  gap: 8px;
}

.contact-communication-filters {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.contact-communication-filters button {
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(153, 166, 183, 0.2);
  border-radius: 5px;
  color: #516072;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.contact-communication-filters button:hover,
.contact-communication-filters button.active {
  color: #0f172a;
  border-color: rgba(37, 99, 235, 0.24);
  background: #eef5ff;
}

.contact-communication-filters span {
  margin-left: 4px;
  color: #7c8796;
  font-size: 11px;
}

.contact-communication-log__list {
  display: grid;
  gap: 8px;
}

.contact-communication-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid rgba(153, 166, 183, 0.22);
  border-radius: 6px;
  background: #fbfcfe;
}

.contact-communication-entry div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.contact-communication-entry span {
  overflow: hidden;
  color: #425466;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-communication-entry small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.contact-communication-entry small b {
  padding: 2px 6px;
  border-radius: 999px;
  color: #64748b;
  background: #eef2f7;
  font-size: var(--ui-text-2xs, 10px);
  font-weight: 750;
  text-transform: uppercase;
}

.contact-communication-entry small b.is-remote {
  color: #166534;
  background: #dcfce7;
}

.contact-communication-entry small b.is-local {
  color: #92400e;
  background: #fef3c7;
}

.contact-communication-entry--empty {
  color: var(--muted);
  border-style: dashed;
}

.order-communication-panel {
  display: grid;
  gap: 8px;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid rgba(153, 166, 183, 0.22);
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.event-panel > .order-communication-panel {
  min-height: 0;
  margin: 12px 14px;
  overflow-y: auto;
}

/* ORDER_COMMUNICATION_COMPACT_ROLLOUT: crm-order-communication-compact-1 */
@media (min-width: 1000px) {
  .event-panel > .order-communication-panel--compact {
    align-content: start;
    grid-auto-rows: max-content;
  }
}

.event-panel > .client-history-panel[hidden],
.event-panel > .event-feed[hidden],
.event-panel > .order-communication-panel[hidden],
.event-panel > .comment-box[hidden],
.event-panel > small[hidden] {
  display: none !important;
}

.order-communication-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.order-communication-panel__head div,
.order-communication-panel__log article {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.order-communication-panel__head strong,
.order-communication-panel__log strong,
.order-communication-panel__empty strong {
  color: #152033;
  font-size: 13px;
  font-weight: 700;
}

.order-communication-panel__head span,
.order-communication-panel__log span,
.order-communication-panel__log small,
.order-communication-panel__empty span {
  overflow: hidden;
  color: #697586;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-communication-panel__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 0.55fr);
  gap: 6px;
}

.order-communication-panel select,
.order-communication-panel textarea {
  width: 100%;
  border-radius: 5px;
}

.order-communication-panel textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.45;
}

.order-communication-panel__actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.order-communication-panel__actions .button,
.order-communication-panel__head .button {
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 12px;
}

.order-communication-panel__log {
  display: grid;
  gap: 6px;
  padding-top: 2px;
}

.order-communication-panel__log article {
  padding: 8px;
  border-radius: 5px;
  background: rgba(241, 245, 249, 0.78);
}

.order-communication-panel__empty {
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px dashed rgba(153, 166, 183, 0.34);
  border-radius: 5px;
  background: #fbfcfe;
}

.order-communication-panel__empty--line {
  color: #697586;
  font-size: 12px;
}

.communication-settings-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  align-items: end;
  gap: 18px;
}

.communication-settings-hero p {
  max-width: 760px;
  margin: 6px 0 0;
  color: #697586;
  font-size: 13px;
  line-height: 1.55;
}

.communication-settings-hero label {
  display: grid;
  gap: 6px;
}

.communication-settings-hero label span {
  color: #697586;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.communication-settings-hero select {
  width: 100%;
  border-radius: 5px;
}

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

.communication-template-settings textarea {
  line-height: 1.5;
}

.drawer.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.order-form {
  height: min(760px, calc(100vh - 58px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border-radius: inherit;
}

.order-draft-recovery {
  position: relative;
  margin: 12px 16px 0;
  padding: 13px 44px 13px 14px;
  border: 1px solid #e9b949;
  border-radius: 7px;
  background: #fff7dc;
  color: #594515;
}

.order-draft-recovery[hidden] {
  display: none;
}

.order-draft-recovery strong {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
}

.order-draft-recovery > button:not(.order-draft-recovery__close) {
  padding: 0;
  border: 0;
  background: transparent;
  color: #1767b3;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
}

.order-draft-recovery > .order-draft-recovery__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #806b3a;
  font-size: 21px;
}

.drawer.drawer--fullscreen .order-form {
  height: 100%;
  border-radius: inherit;
}

.drawer.drawer--fullscreen:not(.drawer--order-create) .ticket-panel {
  padding: 14px 16px 52px;
}

.drawer.drawer--fullscreen:not(.drawer--order-create) .ticket-summary {
  margin-bottom: 12px;
}

.drawer.drawer--fullscreen:not(.drawer--order-create) .ticket-summary__main {
  min-height: 46px;
  padding: 8px 12px;
}

.drawer.drawer--fullscreen:not(.drawer--order-create) .ticket-summary__main strong {
  font-size: 18px;
}

.drawer.drawer--fullscreen:not(.drawer--order-create) .ticket-summary__grid > div {
  min-height: 48px;
  padding: 8px 12px;
}

.drawer.drawer--fullscreen:not(.drawer--order-create) .ticket-actions {
  padding: 8px 12px;
}

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 52px;
  padding: 8px 16px;
  border-bottom: 1px solid #d8e0e8;
  background: #fff;
}

.caption {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
}

.icon-button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: #53606d;
  font-size: 22px;
  line-height: 1;
}

.icon-button--grid {
  margin-left: auto;
}

.drawer__body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(520px, 1fr) 320px;
  overflow: hidden;
  background: #fff;
}

.ticket-main {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-right: 1px solid var(--line);
}

.ticket-tabs,
.event-tabs {
  display: flex;
  align-items: flex-end;
  gap: 0;
  min-height: 50px;
  padding: 12px 16px 0;
  border-bottom: 1px solid #d8e0e8;
}

.ticket-tab,
.event-tabs button {
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #6b7682;
}

.ticket-tab.active,
.event-tabs .active {
  border-bottom-color: var(--blue);
  color: var(--blue);
}

.ticket-panel {
  display: none;
  min-height: 0;
  overflow: auto;
  padding: 22px 16px 72px;
}

.ticket-panel.active {
  display: block;
}

.ticket-summary {
  max-width: 760px;
  margin-bottom: 18px;
  border: 1px solid #d8e0e8;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(40, 46, 51, 0.08);
}

.ticket-summary:empty {
  display: none;
}

.ticket-summary__main {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid #d8e0e8;
  background: #f8fbff;
}

.ticket-summary__caption,
.ticket-summary__grid span,
.ticket-section-head span,
.ticket-payment-card span,
.ticket-file span,
.ticket-files-empty span {
  display: block;
  color: #6b7682;
  font-size: 12px;
  font-weight: 400;
}

.ticket-summary__main strong {
  color: #2f3943;
  font-size: 20px;
}

.ticket-summary__status-stack {
  justify-items: end;
}

.ticket-actions .button--warning {
  border-color: #e7b765;
  background: #fff8e8;
  color: #8a5a06;
  font-weight: 750;
}

.ticket-summary__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.ticket-summary__grid > div {
  min-height: 58px;
  padding: 10px 14px;
  border-right: 1px solid #edf1f5;
  border-bottom: 1px solid #edf1f5;
}

.ticket-summary__grid > div:nth-child(4n) {
  border-right: 0;
}

.ticket-summary__grid strong {
  display: block;
  margin-top: 3px;
  color: #2f3943;
  font-size: 13px;
  line-height: 1.25;
}

.ticket-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid #edf1f5;
  background: #fff;
}

.ro-form {
  display: grid;
  gap: 11px;
  max-width: 690px;
}

.device-intake-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 2px 0 4px 178px;
}

.device-intake-panel[hidden] {
  display: none;
}

.device-intake-panel__section {
  min-width: 0;
  padding: 10px;
  border: 1px solid #dce4ec;
  border-radius: 6px;
  background: #f9fbfd;
}

.device-intake-panel__section--access {
  grid-column: 1 / -1;
}

.device-intake-panel__section--select {
  padding: 0;
  border: 0;
  background: transparent;
}

.device-intake-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.device-intake-panel__head strong {
  color: #2f3943;
  font-size: 12px;
  font-weight: 700;
}

.device-intake-panel__head span {
  min-width: 0;
  color: #7a8794;
  font-size: 11px;
  white-space: nowrap;
}

.device-intake-select {
  position: relative;
  min-width: 0;
}

.device-intake-select__control {
  min-height: 34px;
  display: flex;
  align-items: stretch;
  border: 1px solid #ccd7e2;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.device-intake-select.is-open .device-intake-select__control {
  border-color: #7aaee0;
  box-shadow: 0 0 0 3px rgba(47, 116, 208, 0.1);
}

.device-intake-select__selected {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
}

.device-intake-select__placeholder {
  color: #9aa5b1;
  font-size: 12px;
}

.device-intake-selected-chip {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 6px 0 8px;
  border: 0;
  border-radius: 5px;
  background: #eef1f4;
  color: #2f3943;
  font-size: 11px;
}

.device-intake-selected-chip:hover {
  background: #e3e8ed;
}

.device-intake-selected-chip b {
  color: #7b8793;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

.device-intake-select__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 18;
  display: grid;
  gap: 2px;
  max-height: 210px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #cbd9e7;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(25, 38, 52, 0.16);
}

.device-intake-select__menu[hidden] {
  display: none;
}

.device-intake-option {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #344454;
  font-size: 12px;
  text-align: left;
}

.device-intake-option:hover,
.device-intake-option:focus-visible {
  border-color: #c7d7e7;
  background: #f3f7fb;
}

.device-intake-option.active {
  background: #e8f3ff;
  color: #1e5f9e;
}

.device-intake-panel input {
  width: 100%;
  min-height: 34px;
  border: 1px solid #ccd7e2;
  border-radius: 5px;
  padding: 0 10px;
  background: #fff;
  color: #2f3943;
}

.ticket-empty-state {
  display: none;
  min-height: 330px;
  margin-left: 178px;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #64707d;
  text-align: center;
}

.ticket-empty-state strong {
  color: #2f3943;
  font-size: 18px;
}

.ticket-empty-state p {
  max-width: 360px;
  margin: 0;
  line-height: 1.45;
}

.ticket-empty-illustration {
  position: relative;
  width: 118px;
  height: 82px;
  margin-bottom: 10px;
  border: 1px solid #c6d2df;
  border-radius: 6px;
  background:
    linear-gradient(#eff5fb, #eff5fb) 18px 18px / 82px 8px no-repeat,
    linear-gradient(#dbe7f3, #dbe7f3) 18px 36px / 58px 8px no-repeat,
    #fff;
  box-shadow: 0 8px 18px rgba(70, 86, 104, 0.12);
}

.ticket-empty-illustration::before,
.ticket-empty-illustration::after,
.ticket-empty-illustration span {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #8eb7e5;
}

.ticket-empty-illustration::before {
  right: 16px;
  bottom: 14px;
  width: 20px;
  height: 20px;
}

.ticket-empty-illustration::after {
  right: 21px;
  bottom: 19px;
  width: 10px;
  height: 10px;
  background: #fff;
}

.ticket-empty-illustration span {
  right: 11px;
  bottom: 9px;
  width: 30px;
  height: 30px;
  background: rgba(43, 128, 217, 0.16);
}

.order-form.is-empty-ticket .status-strip,
.order-form.is-empty-ticket .ro-form > h2,
.order-form.is-empty-ticket .ro-form > .ro-row:not(.ticket-type-row) {
  display: none;
}

.order-form.is-empty-ticket .order-intake-column {
  display: none;
}

.order-form.is-new-order .status-strip {
  display: none;
}

.order-form.is-empty-ticket .ticket-empty-state {
  display: grid;
}

.order-form.is-empty-ticket #orderPaymentButton,
.order-form.is-empty-ticket #printButton,
.order-form.is-empty-ticket #deleteButton {
  display: none;
}

.status-strip {
  margin-left: 178px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.status-chip-stack {
  display: inline-grid;
  justify-items: start;
  gap: 4px;
}

.status-chip {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: #fff;
  color: #4c5967;
}

.status-chip.active {
  border-color: var(--blue);
  background: #eaf2ff;
  color: var(--blue);
  font-weight: 700;
}

.ro-form h2 {
  margin: 12px 0 2px 178px;
  font-size: 17px;
}

.ro-form h2.order-client-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.order-client-repeat-badge {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border: 1px solid rgba(69, 185, 120, 0.28);
  border-radius: 4px;
  background: rgba(69, 185, 120, 0.12);
  color: #16824f;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.order-client-repeat-badge[hidden] {
  display: none !important;
}

.ro-row {
  display: grid;
  grid-template-columns: 166px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  color: #2f3943;
  font-size: 13px;
  font-weight: 700;
}

.ro-row > span {
  padding-top: 9px;
  text-align: right;
}

.ro-row--required > span::after {
  content: "*";
  margin-left: 2px;
  color: var(--danger);
}

/* ORDER_REQUIRED_INLINE_ROLLOUT: crm-order-required-infield-1 */
@media (min-width: 1000px) {
  #orderForm.order-required-inline .order-fault-control { box-sizing: border-box; min-height: 32px; padding: 0 8px; gap: 4px; border-radius: 3px; }
  #orderForm.order-required-inline .device-intake-select__control { box-sizing: border-box; min-height: 32px; border-radius: 3px; }
  #orderForm.order-required-inline .device-intake-select__selected { padding: 2px 6px; }
  #orderForm.order-required-inline .order-field--invalid :is(input, select, textarea, .order-roapp-trigger, .directories-parent-picker > button, .order-fault-control, .order-money-input) { border-color: #f05252 !important; }
  #orderForm.order-required-inline .order-field--invalid :is(.order-roapp-trigger, .directories-parent-picker > button) { outline: 1px solid #f05252; outline-offset: -1px; }
  #orderForm.order-required-inline .order-field--invalid .order-fault-control input { border-color: transparent !important; box-shadow: none; }
  #orderForm.order-required-inline .ro-row.order-field--invalid { position: relative; }
  #orderForm.order-required-inline .ro-row > .order-field-error { position: absolute; box-sizing: border-box; z-index: 1; display: flex; align-items: center; padding: 0 10px; text-align: left; color: #e33a3a; background: #fff; border-radius: 3px; font-size: 14px; line-height: 20px; font-weight: 400; margin: 0; white-space: nowrap; overflow: hidden; pointer-events: none; }
  #orderForm.order-required-inline .ro-row > .order-field-error--detail { width: 1px; height: 1px; padding: 0; clip-path: inset(50%); }
  #orderForm.order-required-inline .ro-row:has(.order-fault-input:not(:placeholder-shown)) > .order-field-error { clip-path: inset(50%); }
  #orderForm.order-required-inline .ro-row:has(select, .directories-parent-picker, input[type="datetime-local"], input[type="number"]) > .order-field-error:not(.order-field-error--detail) { clip-path: inset(0 28px 0 0); }
  #orderForm.order-required-inline .order-field-error::after { content: none; }
}
/* Match the unified field layer; preserve the requested 32px single-line shell. */
@layer crm-field-system {
  @media (min-width: 1000px) {
    #orderForm.order-required-inline :is(input:not([type="hidden"], [type="checkbox"], [type="radio"], [type="file"], [type="range"], [type="color"]), select, .order-roapp-trigger, .directories-parent-picker > button, .desktop-order-serial-scan) { box-sizing: border-box; min-height: 32px !important; height: 32px !important; border-radius: 3px !important; }
    #orderForm.order-required-inline .order-fault-control .order-fault-input { min-height: 30px !important; height: 30px !important; border: 0 !important; border-radius: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; }
    #orderForm.order-required-inline .order-money-input { box-sizing: border-box !important; height: 32px !important; min-height: 32px !important; border-radius: 3px !important; }
    #orderForm.order-required-inline .order-money-input input { min-height: 30px !important; height: 30px !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; outline: 0 !important; background: transparent !important; }
    #orderForm.order-required-inline .order-field--invalid :is(input, select, textarea, .order-roapp-trigger, .directories-parent-picker > button, .order-fault-control, .order-money-input) { border-color: #f05252 !important; }
    #orderForm.order-required-inline .order-field--invalid .order-fault-control input { border-color: transparent !important; box-shadow: none !important; outline: 0 !important; }
  }
}

/* ORDER_REQUIRED_FOCUS_ROLLOUT: crm-order-required-focus-1 */
@media (min-width: 1000px) {
  #orderForm.order-required-focus .order-field--invalid:focus-within > .order-field-error { visibility: hidden; }
}
@layer crm-field-system {
  @media (min-width: 1000px) {
    #orderForm.order-required-focus .order-field--invalid:focus-within :is(input, select, textarea, .order-roapp-trigger, .directories-parent-picker > button, .order-fault-control, .order-money-input) { border-color: var(--ui-field-border, #c6d3df) !important; outline-color: var(--ui-field-focus, #267db2) !important; }
  }
}

.ro-row--inline {
  align-items: center;
}

.ro-row--inline > span {
  padding-top: 0;
}

.ro-row--inline input {
  width: 16px;
  height: 16px;
}

.order-client-name-field {
  position: relative;
  min-width: 0;
}

.order-client-name-field > input {
  width: 100%;
}

.order-client-name-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  z-index: 18;
  max-height: 286px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #cbd9e7;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(25, 38, 52, 0.18);
}

.order-client-name-suggestions[hidden] {
  display: none;
}

/* crm-order-open-performance-1: informational rows must not swallow clicks on the form. */
.order-client-name-suggestions--editing {
  pointer-events: none;
}

.order-client-name-suggestions--editing button {
  pointer-events: auto;
}

.order-service-autosave-status { font-size: 13px; color: #64748b; }
.order-service-autosave-status.is-error { color: #c53030; }
.order-service-live-distribution { margin-top: 12px; }
.order-service-live-distribution[hidden] { display: none; }
@media(min-width:1000px){
 #drawer .order-service-editor .order-service-master-label{display:flex;justify-content:space-between;align-items:center;gap:6px}
 #drawer.order-detail-roapp .order-service-editor--inline .order-service-master-label>.order-service-add-master{padding:0!important;border:0;background:none;box-shadow:none;height:16px!important;min-height:0!important;color:#1973e1;font:inherit;line-height:16px;cursor:pointer}
 #drawer .order-service-editor--inline .order-service-editor__fields.has-work-distribution>[data-editor-field=name]{grid-column:1/3}
 #drawer.order-detail-roapp.order-services-compact .service-row .order-service-live-distribution .service-field>span{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal;font-size:12px;line-height:18px}
}

.order-client-name-suggestions--matches {
  max-height: min(540px, calc(100vh - 250px));
}

#orderClientNameSuggestions.order-client-name-suggestions--combined {
  right: auto;
  width: min(520px, calc(100vw - 64px));
  min-width: 100%;
  max-height: min(380px, calc(100vh - 250px));
  padding: 5px;
  overscroll-behavior: contain;
}

#orderClientNameSuggestions.order-client-name-suggestions--combined button {
  min-height: 28px;
  padding: 5px 9px;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 500;
}

#orderClientNameSuggestions.order-client-name-suggestions--combined .order-client-name-suggestions__client {
  gap: 1px;
}

#orderClientNameSuggestions.order-client-name-suggestions--combined .order-client-name-suggestions__client span {
  overflow-wrap: anywhere;
}

#orderClientNameSuggestions.order-client-name-suggestions--combined mark {
  padding: 0;
  border-radius: 2px;
  background: #fff0b3;
  color: inherit;
  font-weight: 700;
}

.order-client-name-suggestions__title {
  padding: 5px 9px 4px;
  color: #738294;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.order-client-name-suggestions .order-client-name-suggestions__client {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-client-name-suggestions__client small,
.order-client-name-suggestions__empty {
  color: #738294;
  font-size: 12px;
  font-weight: 500;
}

.order-client-name-suggestions__empty {
  padding: 8px 9px;
}

.order-client-name-suggestions .order-client-name-suggestions__more {
  margin-top: 4px;
  border-top: 1px solid #e2e9f0;
  color: #1767b3;
}

.order-client-name-suggestions button {
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #26323d;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.order-client-name-suggestions__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 3px;
}

.order-client-name-suggestions__row > .order-client-name-suggestions__hide {
  width: 32px;
  padding: 0;
  color: #8a98a8;
  text-align: center;
}

.order-client-name-suggestions__hidden-toggle {
  margin-top: 5px;
  border-top-color: #e2e9f0 !important;
  color: #66788a !important;
  font-weight: 700 !important;
}

.order-client-name-suggestions__hidden-list {
  padding: 3px 5px 5px;
}

.order-client-name-suggestions__hidden-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 4px 5px 8px;
  color: #66788a;
  font-size: 12px;
}

.order-client-name-suggestions__hidden-list button {
  width: auto;
  min-height: 28px;
  padding: 4px 8px;
  color: #1767b3;
  font-size: 12px;
}

.order-client-name-suggestions button:hover,
.order-client-name-suggestions button:focus-visible,
.order-client-name-suggestions button[aria-selected="true"] {
  border-color: #cfe0f3;
  background: #edf5ff;
  outline: 0;
}

.order-client-name-suggestions .order-client-name-suggestions__use {
  margin-top: 5px;
  border-top-color: #e2e9f0;
  border-radius: 0 0 5px 5px;
  color: #1767b3;
  font-weight: 750;
}

.field-with-button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.order-catalog-field {
  min-width: 0;
  position: relative;
  display: block;
}

.order-catalog-field > input {
  width: 100%;
}

.order-catalog-field--single-select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 9px;
  height: 6px;
  pointer-events: none;
  transform: translateY(-50%);
  background: var(--crm-select-chevron) center / 9px 6px no-repeat;
  transition: transform 0.15s ease;
}

.order-catalog-field--single-select:focus-within::after {
  transform: translateY(-50%) rotate(180deg);
}

.order-catalog-field--single-select > input[readonly] {
  padding-right: 36px !important;
  cursor: pointer;
}

.order-catalog-field__button {
  min-height: 30px;
  padding: 0 9px;
  border-color: #cfd9e4;
  border-radius: 5px;
  background: #fff;
  color: #344454;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.order-catalog-field__button:hover {
  border-color: #b8c8d9;
  background: #f6f9fc;
}

.order-price-row > span {
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.order-price-row input {
  width: min(170px, 100%);
  min-height: 34px;
  border-radius: 5px;
}

.order-fault-field {
  min-width: 0;
  position: relative;
  display: grid;
  gap: 5px;
}

.order-fault-value {
  display: none !important;
}

.order-fault-control {
  min-width: 0;
  min-height: 42px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid #cbd6e2;
  border-radius: 6px;
  background: #fff;
  cursor: text;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.order-fault-control:focus-within {
  border-color: #74a9e9;
  box-shadow: 0 0 0 2px rgba(45, 126, 217, 0.12);
}

.order-fault-chips {
  display: contents;
}

.order-fault-chip {
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 3px 5px 3px 9px;
  border: 1px solid #cfe0f3;
  border-radius: 5px;
  background: #edf5ff;
  color: #29465f;
  font-size: 12px;
  font-weight: 700;
}

.order-fault-chip > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-fault-chip button {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #72869a;
  font-size: 16px;
  line-height: 1;
}

.order-fault-chip button:hover,
.order-fault-chip button:focus-visible {
  background: #fff;
  color: #c74747;
}

.order-fault-input {
  min-width: 150px;
  flex: 1 1 190px;
  min-height: 30px !important;
  padding: 3px 2px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px;
}

.order-fault-input:focus {
  outline: 0;
}

.order-catalog-suggestions,
.order-fault-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 12;
  display: grid;
  gap: 4px;
  max-height: 190px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #cbd9e7;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(25, 38, 52, 0.16);
}

.order-catalog-suggestions {
  top: calc(100% + 4px);
}

.order-fault-suggestions {
  top: calc(100% + 4px);
  max-height: 280px;
}

/* Beta rollout ORDER_CATALOG_SCROLL_ALL_ROLLOUT: crm-order-catalog-scroll-all-1 */
.order-catalog-suggestions--scroll-all,
.order-fault-suggestions--scroll-all {
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.order-catalog-suggestions--scroll-all {
  max-height: 330px;
}

.order-catalog-suggestions--scroll-all .order-catalog-suggestions__manage,
.order-fault-suggestions--scroll-all .order-fault-suggestions__manage {
  position: sticky;
  bottom: -1px;
  z-index: 1;
  background: #fff;
  box-shadow: 0 -1px 0 #dce5ed;
}

.order-fault-suggestions.is-dropup {
  top: auto;
  bottom: calc(100% + 4px);
  box-shadow: 0 -14px 36px rgba(25, 38, 52, 0.16);
}

.order-catalog-suggestions[hidden],
.order-fault-suggestions[hidden] {
  display: none;
}

.order-catalog-suggestions button,
.order-fault-suggestions button {
  min-height: 32px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #26323d;
  font-size: 13px;
  text-align: left;
}

.order-catalog-suggestions > [role="option"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-catalog-suggestions > [role="option"] span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-catalog-suggestions > [role="option"] em {
  color: #2d73c5;
  font-size: var(--ui-text-2xs, 10px);
  font-style: normal;
  font-weight: 800;
}

.order-fault-suggestions > [data-order-fault-suggestion] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-fault-suggestions > [data-order-fault-suggestion] em {
  color: #8795a3;
  font-size: var(--ui-text-2xs, 10px);
  font-style: normal;
  font-weight: 700;
}

.order-fault-suggestions__empty {
  padding: 12px 10px;
  color: #7a8794;
  font-size: 12px;
  text-align: center;
}

.order-fault-suggestions .order-fault-suggestions__manage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 3px;
  border-top-color: #dce5ed;
  border-radius: 0 0 5px 5px;
  color: #526477;
  font-weight: 750;
}

.order-catalog-suggestions .order-catalog-suggestions__manage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 3px;
  border-top-color: #dce5ed;
  border-radius: 0 0 5px 5px;
  color: #526477;
  font-weight: 750;
}

.order-catalog-suggestions__manage em {
  min-width: 24px;
  padding: 2px 6px;
  border-radius: 10px;
  background: #edf2f7;
  color: #718091;
  font-size: var(--ui-text-2xs, 10px);
  font-style: normal;
  text-align: center;
}

.order-fault-suggestions__manage em {
  min-width: 24px;
  padding: 2px 6px;
  border-radius: 10px;
  background: #edf2f7;
  color: #718091;
  font-size: var(--ui-text-2xs, 10px);
  font-style: normal;
  text-align: center;
}

.order-fault-manager__head {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding-bottom: 5px;
  border-bottom: 1px solid #e1e8ef;
}

.order-fault-manager__head button {
  min-height: 28px;
  padding: 0;
  text-align: center;
}

.order-fault-manager__head strong {
  color: #2c3b4a;
  font-size: 12px;
}

.order-fault-manager__tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  border-radius: 5px;
  background: #eef3f8;
}

.order-fault-manager__tabs button {
  min-height: 29px;
  padding: 4px 7px;
  text-align: center;
}

.order-fault-manager__tabs button.active {
  background: #fff;
  color: #2466b3;
  box-shadow: 0 1px 3px rgba(35, 55, 75, 0.12);
}

.order-fault-manager__tabs span {
  color: #8995a1;
  font-size: var(--ui-text-2xs, 10px);
}

.order-fault-manager__list {
  display: grid;
  gap: 4px;
  max-height: 170px;
  overflow: auto;
}

.order-fault-manager__row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 4px 5px 4px 9px;
  border: 1px solid #e0e7ee;
  border-radius: 5px;
  background: #fff;
  color: #334455;
  font-size: 12px;
}

.order-fault-manager__row > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-fault-manager__row > input {
  min-width: 0;
  min-height: 29px;
  padding: 4px 7px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: #f7f9fb;
  color: #334455;
  font: inherit;
}

.order-fault-manager__row > input:focus {
  border-color: #6aa7e8;
  background: #fff;
  outline: none;
}

.order-fault-manager__actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  overflow: visible;
}

.order-fault-manager__actions > button:first-child {
  min-height: 26px;
  padding: 3px 8px;
  color: #2466b3;
}

.order-fault-manager__row .order-fault-manager__archive,
.order-fault-manager__row .order-fault-manager__restore,
.order-fault-manager__row .order-fault-manager__delete {
  min-height: 26px;
  padding: 3px 8px;
}

.order-fault-manager__row .order-fault-manager__archive {
  width: 28px;
  color: #c34b4b;
  text-align: center;
}

.order-fault-manager__row .order-fault-manager__restore {
  color: #27753b;
}

.order-fault-manager__row .order-fault-manager__delete {
  width: 28px;
  color: #c52f2f;
  border-color: #efc3c3;
  background: #fff7f7;
  text-align: center;
}

.order-fault-manager__row .order-fault-manager__archive:hover {
  border-color: #efc3c3;
  background: #fff3f3;
}

.order-fault-manager__row .order-fault-manager__restore:hover {
  border-color: #b9ddc2;
  background: #f1faf3;
}

.order-fault-manager__row .order-fault-manager__delete:hover {
  border-color: #e69b9b;
  background: #ffecec;
}

.order-fault-suggestions > p {
  margin: 1px 3px 0;
  color: #82909d;
  font-size: var(--ui-text-2xs, 10px);
  line-height: 1.35;
}

.order-catalog-suggestions button:hover,
.order-catalog-suggestions button:focus-visible,
.order-fault-suggestions button:hover,
.order-fault-suggestions button:focus-visible {
  border-color: #c7d7e7;
  background: #f3f8fc;
}

.order-catalog-suggestions .order-catalog-suggestions__add,
.order-fault-suggestions .order-catalog-suggestions__add {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
  border-color: #b9d8c2;
  background: #f1faf3;
  color: #24733a;
  font-weight: 800;
}

.order-catalog-suggestions .order-catalog-suggestions__add span,
.order-fault-suggestions .order-catalog-suggestions__add span {
  font-size: 17px;
  line-height: 1;
}

.order-catalog-suggestions .order-catalog-suggestions__add--compact,
.order-fault-suggestions .order-catalog-suggestions__add--compact {
  min-height: 34px;
  padding: 6px 10px;
  overflow: hidden;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-catalog-suggestions .order-catalog-suggestions__add:hover,
.order-catalog-suggestions .order-catalog-suggestions__add:focus-visible,
.order-fault-suggestions .order-catalog-suggestions__add:hover,
.order-fault-suggestions .order-catalog-suggestions__add:focus-visible {
  border-color: #7fbd8d;
  background: #e6f6e9;
}

.order-catalog-editor[hidden] {
  display: none;
}

.order-catalog-editor {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 22px;
}

.order-catalog-editor__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 39, 53, 0.42);
  backdrop-filter: blur(3px);
}

.order-catalog-editor__panel {
  position: relative;
  width: min(860px, 100%);
  max-height: min(720px, calc(100vh - 44px));
  overflow: hidden;
  border: 1px solid #cbd7e3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(18, 31, 45, 0.24);
}

#orderCatalogEditorContent {
  min-height: 0;
  max-height: min(720px, calc(100vh - 44px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.order-catalog-editor__head,
.order-catalog-editor__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid #e0e7ef;
}

.order-catalog-editor__foot {
  justify-content: flex-end;
  border-top: 1px solid #e0e7ef;
  border-bottom: 0;
  background: #f8fafc;
}

.order-catalog-editor__head strong {
  display: block;
  color: #1f2c3a;
  font-size: 18px;
  font-weight: 750;
}

.order-catalog-editor__head span {
  display: block;
  margin-top: 2px;
  color: #687789;
  font-size: 12px;
}

.order-catalog-editor__close {
  width: 30px;
  height: 30px;
  border: 1px solid #d7e0ea;
  border-radius: 4px;
  background: #fff;
  color: #44576a;
  font-size: 20px;
  line-height: 1;
}

.order-catalog-editor__body {
  min-height: 0;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background: #eef3f7;
}

.order-catalog-editor__brands,
.order-catalog-editor__models {
  min-width: 0;
  min-height: 0;
  padding: 12px;
  overflow: auto;
}

.order-catalog-editor__brands {
  border-right: 1px solid #dce5ee;
  background: #f8fafc;
}

.order-catalog-editor__models {
  display: grid;
  align-content: start;
  gap: 10px;
}

.order-catalog-editor__add,
.order-catalog-editor__brand-tools {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #d9e3ed;
  border-radius: 6px;
  background: #fff;
}

.order-catalog-editor__brand-tools {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
}

.order-catalog-editor__add--model {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.order-catalog-editor label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #536273;
  font-size: 12px;
  font-weight: 750;
}

.order-catalog-editor input {
  width: 100%;
  min-width: 0;
}

.order-catalog-editor__list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.order-catalog-editor__tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin-top: 10px;
  padding: 3px;
  border: 1px solid #d7e1eb;
  border-radius: 6px;
  background: #edf2f7;
}

.order-catalog-editor__models > .order-catalog-editor__tabs {
  margin-top: 0;
}

.order-catalog-editor__tabs button {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #5a6a7a;
  font-size: 12px;
  font-weight: 750;
}

.order-catalog-editor__tabs button.active {
  background: #fff;
  color: #245da8;
  box-shadow: 0 1px 4px rgba(31, 52, 75, 0.12);
}

.order-catalog-editor__tabs span {
  min-width: 20px;
  padding: 1px 5px;
  border-radius: 999px;
  background: #e4ebf3;
  color: inherit;
  font-size: 11px;
  text-align: center;
}

.order-catalog-editor__list button {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #d7e0ea;
  border-radius: 5px;
  background: #fff;
  color: #26323d;
  text-align: left;
}

.order-catalog-editor__list button.active {
  border-color: #8fb6e7;
  background: #edf4fd;
  color: #245da8;
}

.order-catalog-editor__list span {
  color: #7a8794;
  font-size: 12px;
  white-space: nowrap;
}

.order-catalog-editor__archive-row {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 10px;
  border: 1px solid #d7e0ea;
  border-radius: 5px;
  background: #fff;
}

.order-catalog-editor__archive-row > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.order-catalog-editor__archive-row strong {
  overflow: hidden;
  color: #26323d;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-catalog-editor__archive-row small {
  color: #7a8794;
  font-size: 11px;
}

.order-catalog-editor__model-list {
  display: grid;
  gap: 6px;
}

.order-catalog-editor__model-row {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #dbe4ee;
  border-radius: 5px;
  background: #fff;
}

.order-catalog-editor__model-row:focus-within {
  border-color: #9dbde3;
  box-shadow: 0 0 0 3px rgba(58, 123, 180, 0.12);
}

.order-catalog-editor__model-row input {
  min-height: 34px;
  border-color: #dce5ee;
  background: #f8fafc;
  color: #24313e;
  font-weight: 750;
}

.order-catalog-editor__model-row strong {
  min-width: 0;
  overflow: hidden;
  color: #24313e;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-catalog-editor__model-row span {
  display: flex;
  gap: 6px;
}

.order-catalog-editor__model-row--archive {
  grid-template-columns: minmax(0, 1fr) auto;
}

.order-catalog-editor__saving {
  margin-right: auto;
  color: #637386;
  font-size: 12px;
  font-weight: 700;
}

.order-catalog-editor__empty {
  padding: 14px;
  border: 1px dashed #c7d4e2;
  border-radius: 6px;
  color: #718093;
  background: #fff;
}

.order-catalog-editor__empty--panel {
  min-height: 170px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.order-catalog-editor__empty strong {
  display: block;
  color: #26323d;
}

.order-catalog-editor__empty span {
  display: block;
  margin-top: 4px;
}

.event-panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
  background: #f2f6fa;
}

.event-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
  min-height: 50px;
  padding: 12px 14px 8px;
  border-bottom: 0;
}

.event-tabs button {
  min-width: 0;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid #cfd9e4;
  border-radius: 5px;
  background: #fff;
  color: #4d5c68;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.event-tabs button:first-child {
  border-radius: 5px;
}

.event-tabs button:last-child {
  border-radius: 5px;
}

.event-tabs .active {
  border-color: #7aaee0;
  background: #e8f3ff;
  color: #1f5f95;
}

.client-history-panel {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.client-history-head,
.client-history-stats,
.client-history-order,
.client-history-empty {
  border: 1px solid rgba(153, 166, 183, 0.28);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.client-history-head {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.client-history-head span {
  color: #1f7a55;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.client-history-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.client-history-title strong {
  min-width: 0;
  overflow: hidden;
  flex: 0 1 auto;
  color: #152033;
  font-size: 16px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-history-head em {
  color: #697586;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.client-history-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.client-history-stats div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 10px;
  border-right: 1px solid #edf1f5;
  border-bottom: 1px solid #edf1f5;
}

.client-history-stats div:nth-child(2n) {
  border-right: 0;
}

.client-history-stats div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.client-history-stats span,
.client-history-order small,
.client-history-order__bottom,
.client-history-empty span {
  color: #697586;
  font-size: 12px;
}

.client-history-stats strong {
  min-width: 0;
  overflow: hidden;
  color: #152033;
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.client-history-order {
  width: 100%;
  display: grid;
  gap: 5px;
  padding: 11px;
  border-color: rgba(153, 166, 183, 0.3);
  color: #152033;
  text-align: left;
}

.client-history-order:hover {
  border-color: #9db8d3;
  background: #fbfdff;
}

.client-history-order__top,
.client-history-order__bottom {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.client-history-order__top strong {
  color: #152033;
  font-size: 13px;
  font-weight: 750;
}

.client-history-order__top em {
  min-width: 0;
  padding: 3px 6px;
  border-radius: 4px;
  background: #eef2f6;
  color: #52606d;
  font-size: 11px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-history-order b {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-history-order small {
  display: block;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.client-history-order__bottom em,
.client-history-order__bottom i {
  font-style: normal;
}

.client-history-order__bottom strong {
  margin-left: auto;
  color: #152033;
  font-size: 12px;
}

.client-history-order__bottom i {
  padding: 2px 6px;
  border-radius: 4px;
  background: #eff6ff;
  color: #1d4f80;
  font-size: 11px;
}

.client-history-empty {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 140px;
  padding: 16px;
  color: #697586;
  text-align: center;
}

.client-history-empty--line {
  min-height: 94px;
  border-style: dashed;
  box-shadow: none;
}

.client-history-empty strong {
  color: #152033;
  font-size: 14px;
  font-weight: 750;
}

.event-feed {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  text-align: center;
}

.event-feed--empty {
  align-content: center;
  overflow: hidden;
}

.event-feed__empty {
  color: #2f3943;
}

.event-feed__empty strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.event-feed__empty span {
  display: block;
  color: #64707d;
  line-height: 1.4;
}

.event-feed__illustration {
  width: 96px;
  height: 72px;
  margin: 0 auto 14px;
  border: 1px solid #b8cbe0;
  border-radius: 6px;
  background:
    radial-gradient(circle at 68px 50px, #8eb7e5 0 10px, transparent 11px),
    linear-gradient(#fff, #fff) 18px 17px / 60px 7px no-repeat,
    linear-gradient(#eef5fb, #eef5fb) 18px 34px / 42px 7px no-repeat,
    #d7e8fa;
}

.event-item {
  padding: 10px;
  border-left: 3px solid #b8cbe0;
  border-radius: 4px;
  background: #fff;
  color: #3b4652;
  text-align: left;
}

.event-item--communication {
  border-left-color: #5d8fd3;
}

.event-item--comment {
  border-left-color: #45b978;
}

.event-item--status,
.event-item--status-change {
  border-left-color: #f0a020;
}

.event-item strong {
  display: block;
  color: #2f3943;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
}

.event-item span {
  display: block;
  margin-top: 5px;
  color: #4d5c68;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.event-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.comment-box {
  margin: 0 14px 8px;
  display: grid;
  grid-template-columns: 34px 1fr 38px;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
}

.comment-box button {
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 18px;
}

.comment-box textarea {
  min-height: 34px;
  height: 34px;
  padding: 8px 0;
  border: 0;
  resize: none;
}

.event-panel small {
  padding: 0 18px 18px;
  color: #6b7682;
}

.drawer__actions {
  position: relative;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  min-height: 50px;
  padding: 9px 16px;
  border-top: 1px solid #d8e1ea;
  background: #f3f7fb;
}

.drawer__actions [hidden] {
  display: none !important;
}

.drawer__actions .order-action--issue,
.drawer__actions .order-action--primary {
  border-color: #4aa978;
  background: #45b978;
  color: #fff;
}

.drawer__actions #createOrderButton.order-action--primary {
  border-color: #2f68c7;
  background: var(--blue);
  color: #fff;
}

.drawer__actions .order-action--issue:hover,
.drawer__actions .order-action--primary:hover {
  border-color: #3f9f6d;
  background: #3eaa6f;
}

.drawer__actions .order-action--without-repair {
  border-color: #f0c56a;
  background: #fff9eb;
  color: #8a6215;
}

.drawer__actions .order-action--without-repair:hover {
  border-color: #dfad43;
  background: #fff3d2;
  color: #724d08;
}

.drawer__actions #createOrderButton.order-action--primary:hover {
  border-color: #285ab0;
  background: #2866d4;
}

.drawer__actions .order-action--quiet {
  min-width: 78px;
}

.action-menu {
  position: relative;
}

.action-menu__list {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  z-index: 10;
  min-width: 210px;
  padding: 6px;
  border: 1px solid #d4dde6;
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow-strong);
}

.action-menu__list--right {
  right: 0;
  left: auto;
}

.action-menu__list button {
  width: 100%;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #2f3a45;
  text-align: left;
}

.action-menu__list button:hover:not(:disabled) {
  background: #f1f6fc;
}

.action-menu__list button:disabled {
  color: #9aa5b1;
  cursor: default;
}

.action-menu__list .action-menu__danger {
  color: var(--danger);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  overflow: auto;
}

.services-head,
.services-total {
  max-width: 760px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

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

.services-actions select {
  min-width: 220px;
}

.services-head strong {
  font-size: 18px;
}

.ticket-section-head {
  max-width: 760px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.ticket-section-head strong {
  display: block;
  color: #2f3943;
  font-size: 18px;
}

.ticket-payment-grid {
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.ticket-payment-card {
  min-height: 76px;
  padding: 12px;
  border: 1px solid #d8e0e8;
  border-radius: 4px;
  background: #fff;
}

.ticket-payment-card strong {
  display: block;
  margin-top: 8px;
  color: #2f3943;
  font-size: 17px;
}

.ticket-payment-card--debt strong {
  color: #c44a35;
}

.ticket-payment-list {
  max-width: 900px;
  border: 1px solid #d8e0e8;
  border-radius: 4px;
  overflow: hidden;
}

.ticket-payment-row {
  display: grid;
  grid-template-columns: 94px 96px 84px 84px 84px minmax(150px, 1fr) 94px;
  gap: 0;
  min-height: 42px;
  border-bottom: 1px solid #edf1f5;
  background: #fff;
}

.ticket-payment-row--cancelled {
  background: #fff8f6;
}

.ticket-payment-row--cancelled > strong {
  text-decoration: line-through;
  opacity: 0.72;
}

.ticket-payment-row--refund {
  background: #fffaf2;
}

.ticket-payment-row__action {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ticket-payment-refund {
  min-height: 28px;
  padding: 0 8px;
  font-size: 12px;
}

.ticket-payment-action-note {
  color: #7a8794;
  font-size: 12px;
}

.ticket-payment-row:last-child {
  border-bottom: 0;
}

.ticket-payment-row > span,
.ticket-payment-row > strong {
  padding: 11px 12px;
  border-right: 1px solid #edf1f5;
  font-size: 13px;
  font-weight: 400;
}

.ticket-payment-row > :last-child {
  border-right: 0;
}

.ticket-payment-row--head {
  min-height: 38px;
  background: #f5f8fb;
  color: #6b7682;
  font-weight: 700;
}

.ticket-payment-row--head > span {
  font-size: 12px;
  font-weight: 700;
}

.ticket-empty-line {
  padding: 18px;
  background: #fff;
  color: #6b7682;
}

.ticket-stock {
  max-width: 900px;
  display: grid;
  gap: 14px;
}

.ticket-stock__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ticket-stock__summary div {
  min-height: 70px;
  padding: 11px 12px;
  border: 1px solid #d8e0e8;
  border-radius: 4px;
  background: #fff;
}

.ticket-stock__summary span,
.ticket-stock-row small,
.ticket-stock-doc span {
  color: #6b7682;
  font-size: 12px;
}

.ticket-stock__summary strong {
  display: block;
  margin-top: 8px;
  color: #2f3943;
  font-size: 17px;
}

.ticket-stock__summary strong.is-ok {
  color: #16845a;
}

.ticket-stock__summary strong.is-error {
  color: #c44a35;
}

.ticket-stock__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6b7682;
  font-size: 12px;
}

.ticket-stock__block {
  border: 1px solid #d8e0e8;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.ticket-stock__title {
  padding: 10px 12px;
  border-bottom: 1px solid #edf1f5;
  background: #f8fafc;
  color: #2f3943;
  font-size: 13px;
  font-weight: 800;
}

.ticket-stock-row,
.ticket-stock-doc,
.ticket-stock-event {
  display: grid;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid #edf1f5;
}

.ticket-stock-row {
  grid-template-columns: minmax(170px, 1fr) 66px 78px 78px 92px 84px 86px;
}

.ticket-stock-doc {
  grid-template-columns: 110px 116px 104px 72px 92px 96px;
}

.ticket-stock-event {
  grid-template-columns: 104px 128px minmax(170px, 1fr) 76px 92px;
}

.ticket-stock-row:last-child,
.ticket-stock-doc:last-child,
.ticket-stock-event:last-child {
  border-bottom: 0;
}

.ticket-stock-row > span,
.ticket-stock-doc > span,
.ticket-stock-event > span {
  min-width: 0;
  height: 100%;
  padding: 10px 12px;
  border-right: 1px solid #edf1f5;
  font-size: 13px;
}

.ticket-stock-row > :last-child,
.ticket-stock-doc > :last-child,
.ticket-stock-event > :last-child {
  border-right: 0;
}

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

.ticket-stock-row--head,
.ticket-stock-doc--head,
.ticket-stock-event--head {
  min-height: 36px;
  background: #f5f8fb;
  color: #6b7682;
  font-weight: 700;
}

.ticket-stock-row--head > span,
.ticket-stock-doc--head > span,
.ticket-stock-event--head > span {
  font-size: 12px;
  font-weight: 700;
}

.ticket-stock-row.is-ok > :last-child {
  color: #16845a;
  font-weight: 700;
}

.ticket-stock-row.is-error > :last-child {
  color: #c44a35;
  font-weight: 700;
}

.ticket-files {
  max-width: 760px;
  display: grid;
  gap: 8px;
}

.ticket-file {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #d8e0e8;
  border-radius: 4px;
  background: #fff;
}

.ticket-file__icon,
.ticket-files-empty__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  background: #edf4fd;
  color: #2f74d0;
  font-size: 20px;
}

.ticket-files-empty {
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed #c6d2df;
  border-radius: 4px;
  background: #fff;
  color: #2f3943;
  text-align: center;
}

.ticket-files-empty span {
  max-width: 330px;
  line-height: 1.4;
}

.services-table {
  max-width: 760px;
  display: grid;
  gap: 10px;
}

.order-payroll-distribution {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #b8d9c7;
  border-radius: 6px;
  background: #f3fbf6;
}

.order-payroll-distribution--pending {
  border-color: #e7c47f;
  background: #fffaf0;
}

.order-payroll-distribution__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.order-payroll-distribution__head > div {
  display: grid;
  gap: 3px;
}

.order-payroll-distribution__head strong {
  color: #26323d;
  font-size: 14px;
}

.order-payroll-distribution__head span,
.order-payroll-distribution__empty {
  color: #657485;
  font-size: 12px;
  line-height: 1.35;
}

.order-payroll-distribution__head b {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 4px;
  background: #fff0cf;
  color: #8a5a06;
  font-size: 11px;
}

.order-payroll-distribution__head b.is-ready {
  background: #def3e7;
  color: #25704c;
}

.order-payroll-distribution__items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 7px;
}

.order-payroll-distribution__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  padding: 8px 9px;
  border: 1px solid rgba(37, 112, 76, 0.16);
  border-radius: 5px;
  background: #fff;
}

.order-payroll-distribution__item span,
.order-payroll-distribution__item strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-payroll-distribution__item span {
  color: #44515f;
  font-size: 12px;
  font-weight: 700;
}

.order-payroll-distribution__item strong {
  color: #16804e;
  font-size: 13px;
}

.order-payroll-distribution__item em {
  grid-column: 1 / -1;
  color: #718091;
  font-size: var(--ui-text-2xs, 10px);
  font-style: normal;
}

.service-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe5ef;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(31, 45, 61, 0.04);
}

.service-row--payroll {
  border-left: 3px solid #e2b45c;
}

.service-row--payroll [data-service-field="master"]:not(:disabled) {
  border-color: #d59a32;
  background: #fffdf7;
  font-weight: 750;
}

.service-row input:disabled,
.service-row select:disabled {
  border-color: #e2e7ec;
  background: #f5f7f9;
  color: #687482;
  opacity: 1;
}

.service-row__main {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.service-row__details {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 76px 112px;
  gap: 8px;
}

.service-payroll-allocations {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #d9e4ef;
  border-radius: 6px;
  background: #f8fafc;
}

.service-payroll-allocations__head,
.service-payroll-allocations__balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.service-payroll-allocations__head strong {
  color: #334252;
  font-size: 12px;
}

.service-payroll-allocations__head .button {
  min-height: 28px;
  padding: 4px 9px;
  font-size: 11px;
}

.service-payroll-allocation {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(135px, 0.8fr) minmax(155px, 0.9fr) 30px;
  gap: 8px;
  align-items: end;
  padding-top: 8px;
  border-top: 1px solid #e3eaf1;
}

.service-payroll-allocation__remove {
  width: 30px;
  height: 38px;
  border: 1px solid #ead1cb;
  border-radius: 5px;
  background: #fff8f6;
  color: #b34f39;
  font-size: 18px;
}

.service-payroll-allocations__balance {
  padding-top: 7px;
  border-top: 1px solid #e3eaf1;
  color: #687789;
  font-size: 11px;
}

.service-payroll-allocations__balance strong {
  color: #a86816;
}

.service-payroll-allocations__balance.is-ready strong {
  color: #16804e;
}

.service-row__money {
  display: grid;
  grid-template-columns: minmax(84px, 1fr) minmax(84px, 1fr) 34px;
  gap: 8px;
  align-items: end;
}

.service-field {
  min-width: 0;
  gap: 5px;
  color: #708090;
  font-size: 11px;
  font-weight: 700;
}

.issue-work-estimate-hint {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.service-row__money:has(.issue-work-estimate-hint) {
  align-items: start;
}

.service-row__money:has(.issue-work-estimate-hint) > button {
  margin-top: 18px;
}

.service-field input,
.service-field select,
.service-row__main > select {
  width: 100%;
  min-width: 0;
}

.service-row [data-service-field="qty"],
.service-row [data-service-field="price"],
.service-row [data-service-field="cost"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.service-row [data-service-field="qty"]::-webkit-inner-spin-button,
.service-row [data-service-field="qty"]::-webkit-outer-spin-button,
.service-row [data-service-field="price"]::-webkit-inner-spin-button,
.service-row [data-service-field="price"]::-webkit-outer-spin-button,
.service-row [data-service-field="cost"]::-webkit-inner-spin-button,
.service-row [data-service-field="cost"]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.service-field--name input {
  font-weight: 700;
}

.service-name-cell {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.service-stock-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  color: #667481;
  font-size: 11px;
  line-height: 1.2;
}

.service-stock-meta span {
  padding: 2px 5px;
  border: 1px solid #d8e2ec;
  border-radius: 3px;
  background: #f7fafc;
  white-space: nowrap;
}

.service-stock-meta .service-stock-meta__ok {
  border-color: #b8d9c7;
  background: #f1fbf5;
  color: #256a49;
  font-weight: 700;
}

.service-stock-meta .service-stock-meta__error {
  border-color: #efc5ba;
  background: #fff7f4;
  color: #a44731;
  font-weight: 700;
}

.service-stock-meta--ns span:first-child {
  border-color: #bfd6f6;
  background: #eef5ff;
  color: #2866b2;
  font-weight: 800;
}

.service-row button {
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: #fff;
  color: var(--danger);
}

.ticket-panel[data-panel="services"] > .ro-row {
  display: none;
}

.services-total {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
  padding: 0;
  border-top: 0;
  font-size: 16px;
  overflow-x: auto;
}

.services-total div {
  display: grid;
  gap: 3px;
  min-width: 112px;
  padding: 10px 12px;
  border: 1px solid #dbe5ef;
  border-radius: 6px;
  background: #f6f9fc;
}

.services-total span {
  color: #53606d;
  font-size: 12px;
}

.services-total strong {
  color: #24517d;
  font-size: 15px;
}

.services-total div:last-child strong {
  color: #0f8a53;
}

.issue-payment-panel {
  margin-left: 182px;
  display: grid;
  gap: 12px;
  max-width: 360px;
  padding: 12px;
  border: 1px solid #d8e0e8;
  border-radius: 4px;
  background: #f8fbff;
}

.issue-payment-panel__title {
  color: #2f3943;
  font-size: 13px;
  font-weight: 800;
}

.issue-final-total-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.issue-final-total-field span {
  color: #667381;
  font-size: 11px;
  font-weight: var(--ui-weight-heavy, 850);
  text-transform: uppercase;
}

.issue-final-total-field input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #d7e0ea;
  border-radius: 7px;
  background: #fbfdff;
  color: #26323d;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
}

.issue-payment-panel[hidden] {
  display: none;
}

.payment-mixed-panel[hidden] {
  display: none !important;
}

.payment-mixed-panel {
  display: grid;
  gap: 10px;
  max-width: 360px;
  margin-left: 182px;
  padding: 12px;
  border: 1px solid #d8e0e8;
  border-radius: 5px;
  background: #fbfdff;
}

.payment-mixed-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.payment-mixed-panel__head strong {
  color: #2f3943;
  font-size: 13px;
  font-weight: 800;
}

.payment-mixed-panel__head span {
  color: #667381;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.payment-mixed-panel__head span.is-error {
  color: #c94e37;
}

.payment-mixed-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.payment-mixed-panel label {
  display: grid;
  gap: 5px;
}

/* Disabled tenant payment methods must stay hidden despite the label grid rule. */
.payment-mixed-panel label[hidden] {
  display: none !important;
}

.payment-mixed-panel label span {
  color: #536271;
  font-size: 12px;
  font-weight: 800;
}

.payment-mixed-panel input {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid #d5dee8;
  border-radius: 5px;
  background: #ffffff;
  color: #26323d;
  font: inherit;
  font-weight: 750;
}

.issue-payment-panel__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.issue-payment-panel__summary span {
  color: #6b7682;
  font-size: 12px;
}

.issue-payment-panel__summary strong {
  color: #c44a35;
  font-size: 18px;
}

.issue-payment-panel__summary strong.is-ok {
  color: #16845a;
  font-size: 14px;
}

.issue-payment-panel__summary strong.is-warning {
  color: #c44a35;
  font-size: 14px;
}

.receipt-print-panel__check {
  width: max-content;
  height: 32px;
  padding: 0 12px;
}

.issue-payment-panel__details {
  display: grid;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d8e0e8;
}

.issue-payment-panel__details-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #2f3943;
  font-size: 13px;
}

.issue-payment-panel__details-row span {
  color: #6b7682;
  font-size: 12px;
}

.issue-payment-panel__details-row strong {
  max-width: 220px;
  color: #232b33;
  font-size: 13px;
  text-align: right;
}

.issue-payment-panel__toggle {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.contact-drawer.is-issue {
  top: 50%;
  right: auto;
  bottom: auto;
  left: calc(204px + (100vw - 204px) / 2);
  width: min(560px, calc(100vw - 252px));
  height: auto;
  max-height: min(680px, calc(100vh - 58px));
  border: 1px solid #cfd9e4;
  border-radius: 7px;
  box-shadow: 0 24px 64px rgba(17, 28, 42, 0.22);
  transform: translate(-50%, -50%) scale(0.985);
  transition: opacity 0.2s ease, transform 0.2s ease;
  opacity: 0;
  overflow: hidden;
  z-index: 13;
}

.contact-drawer.is-issue.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

#paymentDrawer.payment-drawer--center {
  inset: auto !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  left: calc(204px + (100vw - 204px) / 2) !important;
  width: min(560px, calc(100vw - 252px)) !important;
  height: auto;
  max-height: min(680px, calc(100vh - 58px));
  border: 1px solid #cfd9e4;
  border-radius: 7px;
  transform: translate(-50%, -50%) scale(0.985) !important;
  z-index: 13;
}

#paymentDrawer.payment-drawer--center.open {
  transform: translate(-50%, -50%) scale(1) !important;
}

#transferDrawer {
  width: min(600px, calc(100vw - 252px));
  border: 1px solid #cfd9e4;
  border-radius: 7px;
}

#transferDrawer .contact-form {
  height: auto;
  max-height: min(680px, calc(100vh - 58px));
  grid-template-rows: auto minmax(0, auto) auto;
}

#transferDrawer .drawer__header {
  min-height: 52px;
  padding: 10px 16px;
  border-bottom-color: #dde6ef;
  background: linear-gradient(180deg, #ffffff 0%, #f7faf5 100%);
}

#transferDrawer .drawer__header h1 {
  color: #1f2f1f;
  font-size: 18px;
  font-weight: 800;
}

#transferDrawer .icon-button {
  margin-left: auto;
}

#transferDrawer .contact-form__body {
  max-height: calc(100vh - 178px);
  padding: 14px;
  background: #f5f8f4;
}

#transferDrawer .payment-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  border-bottom: 0;
}

#transferDrawer .payment-section h2 {
  grid-column: 1 / -1;
  margin: 0;
  color: #5f6d5f;
  font-size: 12px;
  font-weight: var(--ui-weight-heavy, 850);
  text-transform: uppercase;
}

#transferDrawer .payment-field {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #dce7d4;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(31, 42, 52, 0.04);
}

#transferDrawer .payment-field > span {
  padding-top: 0;
  color: #667381;
  font-size: 11px;
  font-weight: var(--ui-weight-heavy, 850);
  text-align: left;
  text-transform: uppercase;
}

#transferDrawer .payment-field--amount,
#transferDrawer .payment-field--comment {
  grid-column: 1 / -1;
}

#transferDrawer .payment-field input,
#transferDrawer .payment-field select,
#transferDrawer .payment-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border-color: #d6e1cf;
  border-radius: 7px;
  background: #fbfdf9;
  color: #26323d;
}

#transferDrawer .payment-field textarea {
  min-height: 82px;
  resize: vertical;
}

#transferDrawer .payment-field input:focus,
#transferDrawer .payment-field select:focus,
#transferDrawer .payment-field textarea:focus {
  border-color: #8abf52;
  box-shadow: 0 0 0 3px rgba(138, 191, 82, 0.16);
  outline: 0;
}

#transferDrawer .drawer__actions {
  justify-content: flex-end;
  padding: 10px 16px;
  border-top-color: #dce7d4;
  background: #f7faf5;
}

#transferDrawer .drawer__actions .button {
  min-height: 34px;
}

.contact-drawer.is-issue .contact-form {
  height: auto;
  max-height: min(680px, calc(100vh - 58px));
  grid-template-rows: auto minmax(0, auto) auto;
}

.contact-drawer.is-issue .drawer__header {
  min-height: 48px;
  padding: 8px 14px;
  border-bottom-color: #e1e7ee;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.contact-drawer.is-issue .drawer__header h1 {
  color: #1f2a35;
  font-size: 18px;
  font-weight: 750;
}

.contact-drawer.is-issue .contact-form__body {
  max-height: calc(100vh - 178px);
  overflow-y: auto;
  padding: 14px;
  background: #f4f7fa;
}

.contact-drawer.is-issue .payment-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 0;
  border-bottom: 0;
}

.contact-drawer.is-issue .payment-section h2,
.contact-drawer.is-issue .issue-payment-panel,
.contact-drawer.is-issue .payment-field {
  margin-left: 0;
  max-width: none;
}

.contact-drawer.is-issue .payment-field--type,
.contact-drawer.is-issue .payment-field--order {
  display: none;
}

.contact-drawer.is-issue .payment-field {
  align-content: start;
  grid-template-columns: 1fr;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(31, 42, 53, 0.04);
}

.contact-drawer.is-issue .payment-field > span {
  padding-top: 0;
  color: #667381;
  font-size: 11px;
  font-weight: var(--ui-weight-heavy, 850);
  text-align: left;
  text-transform: uppercase;
}

.contact-drawer.is-issue .payment-field--comment {
  align-items: start;
}

.contact-drawer.is-issue .payment-section h2 {
  display: none;
  order: -3;
  grid-column: 1 / -1;
  color: #52606d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.contact-drawer.is-issue .payment-field--amount {
  order: -1;
  grid-column: 1;
}

.contact-drawer.is-issue .payment-field--method {
  order: -2;
  grid-column: 1;
  position: sticky;
  top: 0;
  z-index: 3;
  box-shadow: 0 10px 24px rgba(31, 42, 53, 0.08);
}

.contact-drawer.is-issue .payment-field--method select {
  display: none;
}

#paymentDrawer.payment-drawer--center .payment-field--method select {
  display: none;
}

.contact-drawer.is-issue .payment-field--account {
  display: none;
}

.contact-drawer.is-issue.is-payment-mixed .payment-field--method {
  grid-column: 1;
}

.contact-drawer.is-issue.is-payment-mixed .payment-field--account {
  display: none;
}

.contact-drawer.is-issue .payment-field--category {
  display: none;
}

.contact-drawer.is-issue .payment-field--comment {
  display: none;
}

.contact-drawer.is-issue .payment-field--amount input {
  min-height: 40px;
  font-size: 20px;
  font-weight: 800;
}

.contact-drawer.is-issue .payment-field input:not([type="checkbox"]),
.contact-drawer.is-issue .payment-field select,
.contact-drawer.is-issue .issue-problem-panel textarea {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border-color: #d7e0ea;
  border-radius: 7px;
  background: #fbfdff;
  color: #26323d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.contact-drawer.is-issue .payment-field input:not([type="checkbox"]):focus,
.contact-drawer.is-issue .payment-field select:focus,
.contact-drawer.is-issue .issue-problem-panel textarea:focus {
  border-color: #78a8d8;
  box-shadow: 0 0 0 3px rgba(77, 132, 190, 0.14);
  outline: 0;
}

.payment-field__hint {
  color: #667381;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.contact-drawer.is-issue .payment-field__hint {
  display: block;
  min-height: 18px;
  padding-top: 1px;
}

.payment-method-buttons {
  display: none;
}

.contact-drawer.is-issue .payment-method-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

#paymentDrawer.payment-drawer--center .payment-method-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.payment-method-buttons button {
  min-width: 0;
  min-height: 40px;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  background: #f8fafc;
  color: #2f3943;
  font: inherit;
  font-size: 13px;
  font-weight: var(--ui-weight-heavy, 850);
  cursor: pointer;
}

.payment-method-buttons button:hover {
  border-color: #b9c9d8;
  background: #ffffff;
}

.payment-method-buttons button.is-active {
  border-color: #2f9d6a;
  background: #edf9f2;
  color: #1f6f49;
  box-shadow: 0 0 0 3px rgba(47, 157, 106, 0.12);
}

.contact-drawer.is-issue .issue-payment-panel {
  padding: 12px;
  border-color: #dfe7ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(31, 42, 53, 0.05);
}

.contact-drawer.is-issue .payment-mixed-panel {
  order: 1;
  grid-column: 1;
  max-width: none;
  margin-left: 0;
  padding: 12px;
  border-color: #dfe7ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(31, 42, 53, 0.05);
}

.contact-drawer.is-issue .payment-mixed-panel__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-drawer.is-issue .payment-mixed-panel__sbp {
  display: none;
}

.contact-drawer.is-issue #issuePaymentPanel {
  order: 0;
  grid-column: 1;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 8px;
}

.contact-drawer.is-issue .issue-payment-panel__details {
  display: none;
}

.contact-drawer.is-issue .issue-payment-panel__details-row {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.contact-drawer.is-issue .issue-payment-panel__details-row span {
  color: #667381;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-drawer.is-issue .issue-payment-panel__details-row strong {
  max-width: none;
  overflow: hidden;
  color: #26323d;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-drawer.is-issue #issuePaymentPanel .issue-payment-panel__summary {
  grid-column: auto;
  grid-row: auto;
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}

.contact-drawer.is-issue #issuePaymentPanel .issue-payment-panel__toggle {
  grid-column: auto;
  grid-row: auto;
}

.contact-drawer.is-issue .issue-problem-panel {
  order: -4;
  grid-column: 1;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 8px 10px;
  border-color: #dfe7ef;
  background: #fff;
}

.contact-drawer.is-issue .issue-problem-panel .issue-payment-panel__title {
  padding-top: 7px;
}

.issue-problem-panel textarea {
  width: 100%;
  min-height: 42px;
  resize: vertical;
  padding: 8px 10px;
  border: 1px solid #cfd9e4;
  border-radius: 5px;
  background: #fff;
  color: #26323d;
  font: inherit;
}

.issue-problem-panel textarea:disabled {
  background: #f5f7fa;
  color: #4d5c68;
}

.issue-problem-panel__hint {
  color: #667381;
  font-size: 12px;
}

.contact-drawer.is-issue .issue-problem-panel__hint {
  display: none;
}

.contact-drawer.is-issue .issue-readiness-panel {
  order: -1;
  grid-column: 1;
  grid-row: auto;
  grid-template-columns: 1fr;
  gap: 10px;
  border-color: #dfe7ef;
  background: #fff;
}

.contact-drawer.is-issue .issue-readiness-panel .issue-payment-panel__title,
.contact-drawer.is-issue .issue-readiness__checks {
  grid-column: 1 / -1;
}

.contact-drawer.is-issue .issue-readiness__head,
.contact-drawer.is-issue .issue-readiness__compact {
  grid-column: 1 / -1;
}

.contact-drawer.is-issue .receipt-print-panel {
  order: 3;
  grid-column: 1;
  gap: 9px;
  border-color: #dfe7ef;
  background: #fff;
}

.contact-drawer.is-issue .warranty-print-panel {
  order: 2;
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 14px;
  padding: 12px;
  border-color: #dfe7ef;
  background: #fff;
}

.contact-drawer.is-issue .warranty-print-panel .issue-payment-panel__title {
  width: 100%;
  min-width: 0;
}

.contact-drawer.is-issue .warranty-print-panel .issue-payment-panel__toggle {
  min-height: 28px;
  padding-top: 0;
}

.contact-drawer.is-issue .receipt-print-panel .issue-payment-panel__title,
.contact-drawer.is-issue .issue-payment-panel__title {
  color: #26323d;
  font-size: 13px;
  font-weight: var(--ui-weight-heavy, 850);
}

.contact-drawer.is-issue .issue-payment-panel__summary {
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid #dfe7ef;
  border-radius: 7px;
  background: #f8fafc;
}

.contact-drawer.is-issue .issue-payment-panel__summary span {
  color: #667381;
  font-size: 11px;
  font-weight: var(--ui-weight-heavy, 850);
  text-transform: uppercase;
}

.contact-drawer.is-issue .issue-payment-panel__summary strong {
  color: #26323d;
  font-size: 18px;
  line-height: 1.08;
  white-space: nowrap;
}

.contact-drawer.is-issue #issuePaymentDebt {
  color: #1f6f49;
  font-size: 19px;
}

.contact-drawer.is-issue .receipt-print-panel .issue-payment-panel__summary strong {
  font-size: 14px;
  text-align: right;
  white-space: normal;
}

.contact-drawer.is-issue .receipt-print-panel .issue-payment-panel__summary {
  min-height: 34px;
  border-color: #d8e0e8;
}

.contact-drawer.is-issue .receipt-print-panel__check,
.contact-drawer.is-issue .warranty-print-panel .issue-payment-panel__summary {
  display: none;
}

.contact-drawer.is-issue.is-issue-details-open {
  width: min(1060px, calc(100vw - 252px));
}

#paymentDrawer.payment-drawer--center.is-issue-details-open {
  width: min(1060px, calc(100vw - 252px)) !important;
}

.contact-drawer.is-issue.is-issue-details-open .issue-payment-panel__details {
  display: grid;
}

.issue-complete-panel[hidden] {
  display: none !important;
}

.contact-drawer.is-issue-complete .payment-section > h2,
.contact-drawer.is-issue-complete .payment-field,
.contact-drawer.is-issue-complete #issuePaymentPanel,
.contact-drawer.is-issue-complete #issueProblemPanel,
.contact-drawer.is-issue-complete #issueReadinessPanel,
.contact-drawer.is-issue-complete #receiptPrintPanel,
.contact-drawer.is-issue-complete #warrantyPrintPanel,
.contact-drawer.is-issue-complete .drawer__actions {
  display: none !important;
}

.contact-drawer.is-issue-complete #issueCompletePanel {
  display: grid;
  order: -10;
  gap: 18px;
  align-content: start;
  min-height: 100%;
  padding: 18px;
  border-color: #b8d9c7;
  background: #f6fbf8;
}

.issue-complete-panel__eyebrow {
  color: #27754a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.issue-complete-panel h2 {
  margin: 0;
  color: #1f2a35;
  font-size: 22px;
  line-height: 1.15;
}

.issue-complete-panel__meta {
  display: grid;
  gap: 14px;
}

.issue-complete-panel__meta > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #d8e9df;
  border-radius: 6px;
  background: #ffffff;
}

.issue-complete-panel__meta span {
  color: #667381;
  font-size: 11px;
  font-weight: 800;
}

.issue-complete-panel__meta strong {
  overflow: hidden;
  color: #26323d;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.issue-complete-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-drawer.is-issue-complete .issue-complete-panel__actions {
  align-self: end;
  padding-top: 2px;
}

.issue-complete-summary {
  display: grid;
  gap: 12px;
}

.issue-complete-summary__hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #b8d9c7;
  border-radius: 7px;
  background: #ffffff;
}

.issue-complete-summary__mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #2f9d6a;
  color: #fff;
  font-size: 24px;
  font-weight: var(--ui-weight-black, 900);
}

.issue-complete-summary__hero div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.issue-complete-summary__hero strong {
  color: #1f2a35;
  font-size: 24px;
  line-height: 1.1;
}

.issue-complete-summary__hero span {
  color: #667381;
  font-size: 13px;
  font-weight: 700;
}

.issue-complete-summary__metrics,
.issue-complete-summary__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.issue-complete-summary__metrics div,
.issue-complete-summary__card {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d8e9df;
  border-radius: 7px;
  background: #ffffff;
}

.issue-complete-summary__metrics span,
.issue-complete-summary__card span,
.issue-complete-summary__services > span {
  color: #667381;
  font-size: 11px;
  font-weight: var(--ui-weight-heavy, 850);
  letter-spacing: 0;
  text-transform: uppercase;
}

.issue-complete-summary__metrics strong {
  color: #1f2a35;
  font-size: 20px;
  line-height: 1.1;
}

.issue-complete-summary__metrics strong.is-ok {
  color: #237449;
}

.issue-complete-summary__metrics strong.is-warning {
  color: #a85b20;
}

.issue-complete-summary__card strong {
  overflow: hidden;
  color: #26323d;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.issue-complete-summary__card em {
  overflow: hidden;
  color: #667381;
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.issue-complete-summary__services {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid #d8e9df;
  border-radius: 7px;
  background: #ffffff;
}

.issue-complete-summary__service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid #edf2f5;
}

.issue-complete-summary__service div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.issue-complete-summary__service strong,
.issue-complete-summary__service b {
  color: #26323d;
  font-size: 13px;
}

.issue-complete-summary__service span,
.issue-complete-summary__empty {
  color: #667381;
  font-size: 12px;
  font-weight: 700;
}

.issue-readiness__checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 6px;
}

.issue-readiness__mini,
.issue-readiness__problem {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
}

.issue-readiness__mini {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.issue-readiness__mini div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.issue-readiness__mini strong,
.issue-readiness__problem strong {
  color: #26323d;
  font-size: 14px;
  font-weight: var(--ui-weight-black, 900);
}

.issue-readiness__mini span {
  overflow: hidden;
  color: #667381;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.issue-readiness__mini .button {
  min-height: 32px;
  border-radius: 7px;
}

.issue-readiness__problem {
  padding: 2px;
}

.issue-readiness__problem ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: #a44731;
  font-size: 13px;
  font-weight: 750;
}

.issue-readiness__problem-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-drawer.is-issue .issue-readiness__checks {
  gap: 0;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: #ffffff;
}

.issue-readiness__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 2px;
}

.issue-readiness__head div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.issue-readiness__head span {
  color: #667381;
  font-size: 12px;
  font-weight: 700;
}

.issue-readiness__head .button {
  min-height: 34px;
  border-color: #cfd9e4;
  border-radius: 7px;
  background: #f8fafc;
  white-space: nowrap;
}

.issue-readiness__compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.issue-readiness__compact div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: #f8fafc;
}

.issue-readiness__compact span {
  color: #667381;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.issue-readiness__compact strong {
  overflow: hidden;
  color: #26323d;
  font-size: 14px;
  font-weight: var(--ui-weight-heavy, 850);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.issue-readiness__check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 9px 11px;
  border: 0;
  border-bottom: 1px solid #edf2f5;
  border-radius: 0;
  background: #ffffff;
  color: #53606d;
  font-size: 12px;
  font-weight: 800;
}

.issue-readiness__check:last-child {
  border-bottom: 0;
}

.issue-readiness__check span {
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #dfe6ee;
  color: #53606d;
  font-size: 12px;
}

.issue-readiness__check.is-ok {
  background: #ffffff;
  color: #2f3943;
}

.issue-readiness__check.is-ok span {
  background: #2f9d6a;
  color: #fff;
}

.issue-readiness__check.is-error {
  background: #fff8f6;
  color: #a44731;
}

.issue-readiness__check.is-error span {
  background: #d8684d;
  color: #fff;
}

.issue-readiness__check.is-warning {
  background: #fff8ea;
  color: #8a5c12;
}

.issue-readiness__check.is-warning span {
  background: #c98a22;
  color: #fff;
}

.issue-readiness__stock,
.issue-readiness__receipt {
  display: grid;
  gap: 6px;
  padding-top: 2px;
}

.issue-readiness__stock > span,
.issue-readiness__receipt > span,
.issue-readiness__empty {
  color: #6b7682;
  font-size: 12px;
  font-weight: 700;
}

.issue-readiness__stock-row,
.issue-readiness__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 8px;
  border: 1px solid #dfe7ef;
  border-radius: 7px;
  background: #f8fafc;
  font-size: 12px;
}

.issue-readiness__row strong {
  white-space: nowrap;
}

.issue-readiness__stock-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 8px;
  font-size: 11.5px;
}

.issue-readiness__stock-row strong,
.issue-readiness__stock-row em,
.issue-readiness__stock-row small {
  white-space: nowrap;
}

.issue-readiness__stock-row em {
  grid-column: 1 / -1;
  color: #6b7682;
  font-style: normal;
}

.issue-readiness__stock-row small {
  display: none;
  color: #6b7682;
  text-align: right;
}

.issue-readiness__stock-row.is-ok {
  border-color: #b8d9c7;
  background: #f3fbf6;
}

.issue-readiness__stock-row.is-error {
  border-color: #efc5ba;
  background: #fff7f4;
}

.issue-readiness__quick {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  padding: 10px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: #f8fafc;
}

.issue-readiness__quick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.issue-readiness__quick-head div {
  display: grid;
  gap: 2px;
}

.issue-readiness__quick-head strong {
  color: #26323d;
  font-size: 13px;
}

.issue-readiness__quick-head span {
  color: #6b7682;
  font-size: 12px;
  font-weight: 700;
}

.issue-readiness__assignee {
  max-width: 260px;
}

.issue-readiness__work-list {
  display: grid;
  gap: 7px;
}

.issue-readiness__work-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) minmax(150px, 0.9fr) minmax(110px, 0.55fr) minmax(110px, 0.55fr);
  align-items: end;
  gap: 8px;
  padding: 9px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: #fff;
}

.contact-drawer.is-issue .issue-readiness__work-row {
  grid-template-columns: minmax(0, 1fr) minmax(130px, 0.75fr);
}

.issue-readiness__quick-actions {
  display: flex;
  justify-content: flex-end;
}

.issue-readiness__assignee,
.issue-readiness__work-row label {
  min-width: 0;
}

.issue-readiness__assignee select,
.issue-readiness__work-row input,
.issue-readiness__work-row select {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  border: 1px solid #d7e0ea;
  border-radius: 7px;
  background: #fff;
}

.issue-readiness__quick-actions .button,
.issue-readiness__quick-head .button {
  min-height: 34px;
  white-space: nowrap;
}

.contact-drawer.is-issue .issue-payment-panel__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
  color: #2f3943;
  font-size: 13px;
  font-weight: 750;
}

.contact-drawer.is-issue .drawer__actions {
  justify-content: flex-start;
  min-height: 56px;
  padding: 10px 14px;
  border-top-color: #e1e7ee;
  background: #ffffff;
  box-shadow: 0 -12px 24px rgba(31, 42, 53, 0.05);
}

.contact-drawer.is-issue .drawer__actions .button {
  min-height: 38px;
  border-radius: 7px;
}

.contact-drawer.is-issue,
#paymentDrawer.payment-drawer--center {
  width: min(820px, calc(100vw - 252px)) !important;
  height: auto;
  max-height: min(620px, calc(100vh - 82px));
  border-color: rgba(190, 202, 214, 0.9);
  border-radius: 8px;
  background: #f3f6f8;
  box-shadow: 0 22px 58px rgba(20, 32, 45, 0.22);
}

.contact-drawer.is-issue .contact-form {
  height: auto;
  max-height: min(620px, calc(100vh - 82px));
  grid-template-rows: auto minmax(0, auto) auto;
}

.contact-drawer.is-issue .drawer__header {
  min-height: 48px;
  padding: 9px 14px;
  border-bottom: 1px solid #dfe6ed;
  background: #ffffff;
}

.contact-drawer.is-issue .drawer__header h1 {
  font-size: 17px;
  letter-spacing: 0;
}

.contact-drawer.is-issue .contact-form__body {
  max-height: none;
  padding: 10px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0) 110px),
    #f3f6f8;
}

.contact-drawer.is-issue .payment-section {
  grid-template-columns: minmax(0, 1.05fr) minmax(235px, 0.95fr);
  align-items: stretch;
  gap: 8px;
}

.contact-drawer.is-issue .payment-field,
.contact-drawer.is-issue .issue-payment-panel,
.contact-drawer.is-issue .payment-mixed-panel {
  border: 1px solid #d8e1ea;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(22, 34, 46, 0.04);
}

.contact-drawer.is-issue .payment-field--method {
  position: static;
  order: -6;
  grid-column: 1;
  gap: 7px;
  padding: 10px;
}

.contact-drawer.is-issue .payment-field--amount {
  order: -5;
  grid-column: 1;
  min-height: 86px;
  padding: 10px;
}

.contact-drawer.is-issue .payment-field--amount input {
  min-height: 38px;
  padding-inline: 12px;
  border-radius: 7px;
  background: #f8fafc;
  font-size: 18px;
  line-height: 1.1;
}

.contact-drawer.is-issue .payment-field--method > span,
.contact-drawer.is-issue .payment-field--amount > span {
  color: #667381;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.contact-drawer.is-issue .payment-method-buttons,
#paymentDrawer.payment-drawer--center .payment-method-buttons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.payment-method-buttons button {
  position: relative;
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border-color: #d8e2eb;
  border-radius: 7px;
  background: #fbfcfe;
  color: #2d3945;
  font-size: 13px;
  text-align: left;
}

.payment-method-buttons button::before {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  background: #edf2f6;
  color: #4a5967;
  font-size: 12px;
  font-weight: var(--ui-weight-black, 900);
  content: "₽";
}

.payment-method-buttons button[data-issue-payment-method="Карта"]::before {
  content: "▣";
}

.payment-method-buttons button[data-issue-payment-method="Перевод"]::before {
  content: "↗";
}

.payment-method-buttons button[data-issue-payment-method="Смешанная"]::before {
  content: "½";
}

.payment-method-buttons button:hover {
  border-color: #b8c9d9;
  background: #ffffff;
}

.payment-method-buttons button.is-active {
  border-color: #176da8;
  background: #f0f8ff;
  color: #14567f;
  box-shadow: 0 0 0 3px rgba(23, 109, 168, 0.1);
}

.payment-method-buttons button.is-active::before {
  background: #2378b8;
  color: #ffffff;
}

.contact-drawer.is-issue .payment-field__hint {
  min-height: 0;
  color: #6a7784;
  font-size: 12px;
  font-weight: 800;
}

.contact-drawer.is-issue .payment-mixed-panel {
  order: -4;
  grid-column: 1 / -1;
}

.contact-drawer.is-issue .payment-mixed-panel__grid {
  grid-template-columns: repeat(3, minmax(128px, 1fr));
}

.contact-drawer.is-issue #issuePaymentPanel {
  order: -6;
  grid-column: 2;
  gap: 8px;
  padding: 10px;
  align-self: start;
}

.contact-drawer.is-issue #issuePaymentPanel .issue-payment-panel__summary {
  min-height: 48px;
  padding: 9px 10px;
  border-color: #d9e7de;
  background: linear-gradient(180deg, #f7fcf9, #eef8f2);
}

.contact-drawer.is-issue #issuePaymentDebt {
  font-size: 20px;
}

.contact-drawer.is-issue #issuePaymentPanel .issue-payment-panel__toggle {
  min-height: 30px;
  padding: 7px 9px;
  border: 1px solid #dfe7ef;
  border-radius: 9px;
  background: #ffffff;
}

.contact-drawer.is-issue .issue-readiness-panel {
  order: -5;
  grid-column: 2;
  min-width: 0;
  min-height: 86px;
  overflow: hidden;
  padding: 10px;
}

.contact-drawer.is-issue .warranty-print-panel {
  order: -3;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
  padding: 10px 12px;
}

.contact-drawer.is-issue .receipt-print-panel {
  order: -2;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 12px;
}

.contact-drawer.is-issue .warranty-print-panel .issue-payment-panel__title,
.contact-drawer.is-issue .receipt-print-panel .issue-payment-panel__title {
  min-width: 58px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-drawer.is-issue .warranty-print-panel .issue-payment-panel__toggle,
.contact-drawer.is-issue .receipt-print-panel .issue-payment-panel__toggle {
  min-height: 28px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  line-height: 1.25;
  white-space: normal;
}

.contact-drawer.is-issue .warranty-print-panel .issue-payment-panel__toggle {
  white-space: nowrap;
}

.contact-drawer.is-issue .receipt-print-panel .issue-payment-panel__summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 30px;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid #dfe7ef;
  border-radius: 6px;
  background: #f8fafc;
}

.contact-drawer.is-issue .receipt-print-panel .issue-payment-panel__summary strong {
  min-width: 0;
  max-width: none;
  overflow: visible;
  font-size: 12px;
  line-height: 1.25;
  text-align: right;
  text-overflow: clip;
  white-space: normal;
}

.contact-drawer.is-issue .receipt-print-panel .issue-payment-panel__summary span {
  display: inline;
  color: #667381;
  font-size: 11px;
  font-weight: var(--ui-weight-heavy, 850);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.contact-drawer.is-issue .receipt-print-panel__check {
  display: inline-flex;
  width: auto;
  min-height: 31px;
  height: 31px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: linear-gradient(#fff, #f7f9fb);
  color: #2f3a45;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
}

.contact-drawer.is-issue .receipt-print-panel__check:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.contact-drawer.is-issue .receipt-print-panel__check:not(:disabled):hover {
  border-color: #aeb8c3;
}

.issue-readiness__mini--ready {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.issue-readiness__mini-status {
  position: relative;
  padding-left: 32px;
}

.issue-readiness__mini-status::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #2f9d6a;
  color: #fff;
  font-size: 13px;
  font-weight: var(--ui-weight-black, 900);
  content: "✓";
}

.issue-readiness__mini-status span {
  color: #2f9d6a;
  font-size: 11px;
  font-weight: var(--ui-weight-black, 900);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.issue-readiness__mini-status strong {
  overflow: hidden;
  color: #24313d;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.issue-readiness__mini-status em {
  overflow: hidden;
  color: #667381;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.issue-readiness__edit-button {
  min-width: 120px;
  min-height: 31px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: linear-gradient(#fff, #f7f9fb);
  color: #2f3a45;
  font-weight: 750;
  line-height: 1;
}

.contact-drawer.is-issue .issue-readiness__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

.contact-drawer.is-issue .issue-readiness__checks {
  border-radius: 10px;
}

.contact-drawer.is-issue .issue-readiness__check {
  min-height: 36px;
  padding: 8px 10px;
}

.contact-drawer.is-issue .issue-readiness__quick {
  min-width: 0;
  overflow: hidden;
  padding: 10px;
  border-radius: 10px;
}

.contact-drawer.is-issue .issue-readiness__work-row {
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: 10px;
}

.contact-drawer.is-issue .issue-readiness__work-row .issue-readiness__quick-work,
.contact-drawer.is-issue .issue-readiness__work-row label:nth-child(2) {
  grid-column: 1 / -1;
}

.contact-drawer.is-issue .issue-readiness__work-row label:nth-child(3),
.contact-drawer.is-issue .issue-readiness__work-row label:nth-child(4) {
  grid-column: auto;
}

.contact-drawer.is-issue .drawer__actions {
  position: relative;
  bottom: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  min-height: 52px;
  padding: 8px 12px;
  border-top: 1px solid #dfe6ed;
  background: rgba(255, 255, 255, 0.96);
}

.contact-drawer.is-issue .drawer__actions .button {
  min-height: 31px;
  border-radius: 3px;
  font-weight: 750;
}

.contact-drawer.is-issue .drawer__actions .button[type="submit"] {
  justify-content: center;
  min-width: 150px;
  max-width: 190px;
  padding-inline: 14px;
  border-color: #2f68c7;
  background: var(--blue);
  color: #fff;
  flex: 0 0 auto;
}

.contact-drawer.is-issue .drawer__actions .button[type="submit"]:hover {
  border-color: #285ab0;
  background: #2866d4;
}

.contact-drawer.is-issue #issueWithoutPaymentButton {
  flex: 0 0 auto;
  min-width: 132px;
}

.contact-drawer.is-issue,
#paymentDrawer.payment-drawer--center {
  width: min(860px, calc(100vw - 288px)) !important;
  height: auto;
  max-height: min(720px, calc(100vh - 58px));
  overflow: hidden;
}

.contact-drawer.is-issue .contact-form {
  height: auto;
  max-height: min(720px, calc(100vh - 58px));
  grid-template-rows: auto minmax(0, auto) auto;
}

.contact-drawer.is-issue .contact-form__body {
  min-height: 0;
  max-height: min(598px, calc(100vh - 180px));
  overflow: auto;
  padding: 10px 12px;
}

.contact-drawer.is-issue .payment-section {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.86fr);
  grid-auto-flow: dense;
  align-items: start;
  gap: 10px;
}

.contact-drawer.is-issue .payment-field,
.contact-drawer.is-issue .issue-payment-panel,
.contact-drawer.is-issue .payment-mixed-panel {
  min-width: 0;
  overflow: hidden;
}

.contact-drawer.is-issue .payment-field--method {
  grid-column: 1;
  min-height: 0;
}

.contact-drawer.is-issue.is-payment-mixed .payment-field--method,
#paymentDrawer.payment-drawer--center .payment-field--method {
  grid-column: 1;
}

.contact-drawer.is-issue .payment-field--amount {
  min-height: 78px;
}

.contact-drawer.is-issue .payment-method-buttons,
#paymentDrawer.payment-drawer--center .payment-method-buttons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.payment-method-buttons button {
  min-width: 0;
  min-height: 38px;
  padding: 0 10px;
  overflow: hidden;
  white-space: nowrap;
}

.payment-method-buttons button::before {
  width: 21px;
  height: 21px;
}

.contact-drawer.is-issue .payment-field__hint,
.contact-drawer.is-issue .issue-payment-panel__summary strong,
.contact-drawer.is-issue .issue-readiness__mini-status strong,
.contact-drawer.is-issue .issue-readiness__mini-status em {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-drawer.is-issue .payment-mixed-panel {
  grid-column: 1 / -1;
  padding: 10px 12px;
}

.contact-drawer.is-issue .payment-mixed-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.contact-drawer.is-issue .payment-mixed-panel__head strong,
.contact-drawer.is-issue .payment-mixed-panel__head span {
  min-width: 0;
}

.contact-drawer.is-issue .payment-mixed-panel__head span {
  overflow-wrap: anywhere;
  text-align: right;
}

.contact-drawer.is-issue .payment-mixed-panel__grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.contact-drawer.is-issue .payment-mixed-panel__grid label {
  min-width: 0;
}

.contact-drawer.is-issue .payment-mixed-panel__grid input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
}

.contact-drawer.is-issue #issuePaymentPanel {
  min-height: 0;
}

.contact-drawer.is-issue #issuePaymentPanel .issue-payment-panel__summary {
  min-width: 0;
}

.contact-drawer.is-issue #issuePaymentPanel .issue-payment-panel__toggle {
  align-items: center;
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-drawer.is-issue .issue-readiness-panel {
  min-height: 78px;
}

.contact-drawer.is-issue .issue-readiness__mini--ready {
  grid-template-columns: minmax(0, 1fr) auto;
}

.contact-drawer.is-issue .issue-readiness__edit-button {
  min-width: 116px;
}

.contact-drawer.is-issue .warranty-print-panel,
.contact-drawer.is-issue .receipt-print-panel {
  grid-column: 1 / -1;
}

.contact-drawer.is-issue .warranty-print-panel {
  grid-template-columns: auto minmax(0, 1fr);
}

.contact-drawer.is-issue .receipt-print-panel {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.contact-drawer.is-issue .warranty-print-panel .issue-payment-panel__toggle,
.contact-drawer.is-issue .receipt-print-panel .issue-payment-panel__toggle {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-drawer.is-issue .receipt-print-panel .issue-payment-panel__summary {
  grid-column: 1 / -1;
  min-width: 0;
}

.contact-drawer.is-issue .receipt-print-panel .issue-payment-panel__summary strong {
  overflow-wrap: anywhere;
}

.contact-drawer.is-issue .drawer__actions {
  position: sticky;
  bottom: 0;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 10px 12px;
  background: #ffffff;
  box-shadow: 0 -10px 22px rgba(22, 34, 46, 0.08);
}

.contact-drawer.is-issue .drawer__actions .button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  white-space: normal;
}

.contact-drawer.is-issue .drawer__actions .button[type="submit"] {
  flex: 1 1 280px;
  min-width: min(100%, 260px);
  max-width: none;
  min-height: 42px;
  font-weight: var(--ui-weight-heavy, 850);
}

.contact-drawer.is-issue #issueWithoutPaymentButton {
  flex: 0 1 190px;
  min-width: 150px;
}

label {
  display: grid;
  gap: 5px;
  color: #44505c;
  font-size: 12px;
  font-weight: 700;
}

.span-2 {
  grid-column: span 2;
}

.receipt {
  padding: 28px;
  font-family: Arial, sans-serif;
  color: #111;
}

.receipt h1 {
  margin-bottom: 18px;
  font-size: 22px;
}

.receipt h2 {
  margin: 18px 0 8px;
  font-size: 16px;
}

.receipt__meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #111;
}

.receipt--intake {
  max-width: 190mm;
  margin: 0 auto;
}

.receipt--document {
  max-width: 190mm;
  margin: 0 auto;
}

.receipt--intake .receipt__meta,
.receipt--document .receipt__meta {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(190px, 0.8fr);
  align-items: start;
  gap: 18px;
  padding-bottom: 14px;
}

.receipt__company,
.receipt__docbox {
  display: grid;
  gap: 4px;
}

.receipt__company strong,
.receipt__docbox strong {
  font-size: 15px;
}

.receipt__company span,
.receipt__docbox span {
  line-height: 1.35;
}

.receipt__docbox {
  padding: 10px 12px;
  border: 1px solid #999;
  background: #f7f7f7;
}

.receipt__logo {
  display: block;
  max-width: 120px;
  max-height: 46px;
  object-fit: contain;
  margin-bottom: 8px;
}

.receipt__grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-top: 1px solid #999;
  border-left: 1px solid #999;
}

.receipt__grid div {
  padding: 9px;
  border-right: 1px solid #999;
  border-bottom: 1px solid #999;
}

.receipt__intake {
  margin-top: 14px;
  border: 1px solid #8f9baa;
  border-radius: 8px;
  overflow: hidden;
  break-inside: avoid;
}

.receipt__intake h2 {
  margin: 0;
  padding: 9px 10px;
  border-bottom: 1px solid #b7c0cc;
  background: #f5f7fa;
  font-size: 14px;
}

.receipt__intake-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
}

.receipt__intake-grid div {
  padding: 9px 10px;
  border-right: 1px solid #c3cbd6;
  border-bottom: 1px solid #c3cbd6;
}

.receipt__intake-grid div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.receipt__intake-grid div:nth-child(2n) {
  border-right: 0;
}

.receipt__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  break-inside: avoid;
}

.receipt__summary--settlement {
  margin: 14px 0 0;
}

.receipt__summary div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #999;
  background: #f7f7f7;
}

.receipt__summary span {
  color: #444;
  font-size: 12px;
}

.receipt__summary strong {
  font-size: 16px;
}

.receipt__services {
  display: grid;
  border-top: 1px solid #999;
  border-left: 1px solid #999;
}

.receipt__service-row {
  display: grid;
  grid-template-columns: 1fr 70px 110px 120px;
}

.receipt__service-row > div {
  padding: 8px;
  border-right: 1px solid #999;
  border-bottom: 1px solid #999;
}

.receipt__service-row--head {
  font-weight: 700;
  background: #f1f1f1;
}

.receipt__terms {
  margin-top: 18px;
  line-height: 1.45;
}

.receipt__terms p {
  margin: 0;
}

.receipt__terms p + p {
  margin-top: 8px;
}

.receipt__signatures {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  margin-top: 38px;
}

.receipt__signatures span {
  display: grid;
  gap: 8px;
  flex: 1 1 0;
}

.receipt__signatures strong {
  font-size: 12px;
}

.receipt__signatures em {
  font-style: normal;
  white-space: nowrap;
}

.intake-receipt--legacy {
  position: relative;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 20mm 60mm 4mm;
  gap: 2.4mm;
  width: 186mm;
  height: 279mm;
  min-height: 0;
  margin: 0 auto;
  padding: 0;
  background: #fff;
  color: #111;
  font-family: Arial, sans-serif;
  font-size: 11.5pt;
  line-height: 1.15;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.intake-receipt__copy {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  break-inside: avoid;
  overflow: hidden;
}

.intake-receipt__copy--client {
  padding-bottom: 1mm;
}

.intake-receipt__cut-gap {
  min-height: 0;
  background: #fff;
}

.intake-receipt__copy--service {
  padding-top: 4mm;
  border-top: 1px dashed #777;
  font-size: 8.1pt;
  line-height: 1.1;
}

.intake-receipt--legacy h1 {
  margin: 0;
  font-size: 14.6pt;
  font-weight: 700;
  text-align: left;
}

.intake-receipt__header {
  display: block;
  padding-bottom: 2mm;
  border-bottom: 2px solid #111;
}

.intake-receipt__title {
  display: flex;
  align-items: center;
  gap: 3mm;
  min-width: 0;
}

.intake-receipt__title .receipt__logo {
  flex: 0 0 auto;
  max-width: 24mm;
  max-height: 10mm;
  margin: 0;
}

.intake-receipt__title strong {
  color: #111;
  font-size: 17.8pt;
  font-weight: var(--ui-weight-black, 900);
}

.intake-receipt__title span {
  color: #111;
  font-size: 12.5pt;
  font-weight: 800;
}

.intake-receipt__brand,
.intake-receipt__doc {
  display: grid;
  gap: 0.8mm;
}

.intake-receipt__brand span,
.intake-receipt__doc span,
.intake-receipt__service-head span {
  color: #555;
  font-size: 8.1pt;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.intake-receipt__brand strong {
  font-size: 16.6pt;
  font-weight: var(--ui-weight-black, 900);
}

.intake-receipt__brand em,
.intake-receipt__doc em,
.intake-receipt__service-head em {
  color: #333;
  font-style: normal;
}

.intake-receipt__doc {
  padding: 2.5mm;
  border-left: 3px solid #111;
  background: #f4f5f7;
}

.intake-receipt__doc strong {
  font-size: 15.6pt;
  font-weight: var(--ui-weight-black, 900);
}

.intake-receipt__client-data,
.intake-receipt__service-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.6mm;
  border-top: 1px solid #d4d7dc;
}

.intake-receipt__party-data {
  margin-top: 2.2mm;
}

.intake-receipt__device-data {
  margin-top: 2.8mm;
  border-top: 0;
}

.intake-receipt__copy--client .intake-receipt__client-data {
  grid-template-columns: 1fr;
  gap: 0.25mm;
  border-top: 0;
}

.intake-receipt__service-data {
  margin-top: 0.9mm;
}

.intake-receipt__line {
  display: grid;
  grid-template-columns: 38mm minmax(0, 1fr);
  min-height: 5.4mm;
  border-bottom: 1px solid #d4d7dc;
}

.intake-receipt__line--wide {
  grid-column: 1 / -1;
  grid-template-columns: 56mm minmax(0, 1fr);
}

.intake-receipt__line span {
  padding: 0.9mm 1.3mm 0.75mm 0;
  color: #111;
  font-weight: var(--ui-weight-black, 900);
}

.intake-receipt__line em {
  min-width: 0;
  padding: 0.9mm 0 0.75mm 1.3mm;
  border-left: 1px solid #e1e4e8;
  overflow-wrap: anywhere;
  font-style: normal;
  font-weight: 400;
}

.intake-receipt__line--spaced {
  margin-top: 0;
}

.intake-receipt__line--group-break {
  margin-top: 1.4mm;
}

.intake-receipt__copy--client .intake-receipt__line,
.intake-receipt__copy--client .intake-receipt__line--wide {
  grid-template-columns: 60mm minmax(0, 1fr);
  min-height: auto;
  border-bottom: 0;
}

.intake-receipt__copy--client .intake-receipt__line span {
  padding: 0.25mm 1.5mm 0.25mm 0;
}

.intake-receipt__copy--client .intake-receipt__line em {
  padding: 0.25mm 0;
  border-left: 0;
}

.intake-receipt__device-data .intake-receipt__line,
.intake-receipt__device-data .intake-receipt__line--wide {
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 0.8mm;
}

.intake-receipt__device-data .intake-receipt__line span {
  padding-right: 0;
  white-space: nowrap;
}

.intake-receipt__device-data .intake-receipt__line em {
  padding-left: 0;
  border-left: 0;
}

.intake-receipt__copy--service .intake-receipt__line {
  grid-template-columns: 27mm minmax(0, 1fr);
  min-height: 3.7mm;
}

.intake-receipt__copy--service .intake-receipt__line--wide {
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 0.65mm;
}

.intake-receipt__copy--service .intake-receipt__line span {
  padding: 0.25mm 0.65mm 0.2mm 0;
}

.intake-receipt__copy--service .intake-receipt__line--wide span {
  padding-right: 0;
  white-space: nowrap;
}

.intake-receipt__copy--service .intake-receipt__line em {
  padding: 0.25mm 0 0.2mm 0.65mm;
}

.intake-receipt__copy--service .intake-receipt__line--wide em {
  padding-left: 0;
}

.intake-receipt__terms {
  flex: 1 1 auto;
  min-height: 0;
  margin: 2mm 0 0;
  padding: 1.6mm 2mm 1.4mm;
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
  font-size: 8.4pt;
  line-height: 1.12;
  overflow: hidden;
}

.intake-receipt__terms h2 {
  margin: 0 0 1mm;
  font-size: 9.6pt;
  font-weight: var(--ui-weight-black, 900);
  text-transform: uppercase;
}

.crm-intake-terms-no-divider .intake-receipt__terms {
  border-bottom: 0;
}

.intake-receipt__terms ol {
  margin: 0;
  padding-left: 4.2mm;
}

.intake-receipt__terms li + li {
  margin-top: 0.45mm;
}

.intake-receipt__signatures {
  display: flex;
  justify-content: space-between;
  gap: 3mm;
  margin-top: 1.5mm;
  padding-top: 1mm;
  white-space: nowrap;
}

.intake-receipt__agreement {
  margin-top: 0.5mm;
  color: #333;
  font-size: 8.1pt;
  text-align: right;
}

.intake-receipt__template-footer,
.warranty-legacy__template-footer,
.work-act-legacy__template-footer {
  margin-top: 1.5mm;
  color: #333;
  font-size: 7.8pt;
  line-height: 1.2;
  text-align: center;
}

.intake-receipt__service-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 4mm;
  padding-bottom: 1mm;
  border-bottom: 2px solid #111;
}

.intake-receipt__service-head div {
  display: grid;
  gap: 0.35mm;
}

.intake-receipt__service-head strong {
  display: flex;
  align-items: center;
  gap: 2mm;
  font-size: 10.8pt;
  font-weight: var(--ui-weight-black, 900);
}

.intake-receipt__urgent {
  display: inline-flex;
  align-items: center;
  padding: 0.55mm 1.3mm;
  border: 1px solid #111;
  border-radius: 999px;
  font-size: 7.1pt;
  line-height: 1;
  text-transform: uppercase;
}

.intake-receipt__service-agreement {
  margin-top: 0.9mm;
  padding: 0.75mm 1.2mm;
  border-left: 3px solid #111;
  background: #f7f8fa;
  font-size: 7.4pt;
  font-weight: 700;
}

.intake-receipt__service-signatures {
  display: flex;
  justify-content: space-between;
  gap: 3mm;
  margin-top: auto;
  padding-top: 0.9mm;
  font-size: 7.5pt;
  white-space: nowrap;
}

.intake-receipt__footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  color: #333;
  font-size: 7.8pt;
}

.print-forms-preview__paper .intake-receipt--legacy {
  box-sizing: border-box;
  grid-template-rows: minmax(0, 1fr) 58px 174px 12px;
  gap: 7px;
  min-width: 540px;
  width: 540px;
  height: 812px;
  padding: 0;
  font-size: 10.2px;
}

.print-forms-preview__paper .intake-receipt--legacy h1 {
  font-size: 10.6px;
}

.print-forms-preview__paper .intake-receipt__copy {
  padding: 0;
}

.print-forms-preview__paper .intake-receipt__copy--client {
  padding-bottom: 3px;
}

.print-forms-preview__paper .intake-receipt__copy--service {
  padding-top: 11px;
}

.print-forms-preview__paper .intake-receipt__header {
  padding-bottom: 6px;
}

.print-forms-preview__paper .intake-receipt__title {
  gap: 9px;
}

.print-forms-preview__paper .intake-receipt__title strong {
  font-size: 16.8px;
}

.print-forms-preview__paper .intake-receipt__title span {
  font-size: 11.6px;
}

.print-forms-preview__paper .intake-receipt__brand strong {
  font-size: 13.6px;
}

.print-forms-preview__paper .intake-receipt__doc {
  padding: 7px;
}

.print-forms-preview__paper .intake-receipt__client-data,
.print-forms-preview__paper .intake-receipt__service-data,
.print-forms-preview__paper .intake-receipt__terms {
  margin-top: 5px;
}

.print-forms-preview__paper .intake-receipt__device-data {
  margin-top: 8px;
}

.print-forms-preview__paper .intake-receipt__party-data {
  margin-top: 7px;
}

.print-forms-preview__paper .intake-receipt__line {
  grid-template-columns: 110px minmax(0, 1fr);
  min-height: 14px;
}

.print-forms-preview__paper .intake-receipt__line--wide {
  grid-template-columns: 158px minmax(0, 1fr);
}

.print-forms-preview__paper .intake-receipt__copy--client .intake-receipt__line,
.print-forms-preview__paper .intake-receipt__copy--client .intake-receipt__line--wide {
  grid-template-columns: 174px minmax(0, 1fr);
  min-height: auto;
}

.print-forms-preview__paper .intake-receipt__device-data .intake-receipt__line,
.print-forms-preview__paper .intake-receipt__device-data .intake-receipt__line--wide,
.print-forms-preview__paper .intake-receipt__copy--service .intake-receipt__line--wide {
  grid-template-columns: max-content minmax(0, 1fr);
}

.print-forms-preview__paper .intake-receipt__line--group-break {
  margin-top: 4px;
}

.print-forms-preview__paper .intake-receipt__line span,
.print-forms-preview__paper .intake-receipt__line em {
  padding: 2px 4px;
}

.print-forms-preview__paper .intake-receipt__terms {
  padding: 5px 6px 4px;
  font-size: 7.5px;
}

.print-forms-preview__paper .intake-receipt__terms h2 {
  margin-bottom: 3px;
  font-size: 8.4px;
}

.print-forms-preview__paper .intake-receipt__signatures {
  margin-top: 4px;
  padding-top: 3px;
}

.print-forms-preview__paper .intake-receipt__agreement {
  font-size: 6.3px;
}

.warranty {
  max-width: 190mm;
  margin: 0 auto;
  font-size: 12px;
}

.warranty--legacy {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 190mm;
  min-height: 267mm;
  margin: 0 auto;
  padding: 8mm;
  background: #fff;
  color: #111;
  font-family: Arial, sans-serif;
  font-size: 9.8pt;
  line-height: 1.2;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.warranty--legacy h1 {
  margin: 0;
  font-size: 15pt;
  font-weight: 700;
  text-align: left;
}

.warranty-legacy__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52mm;
  gap: 5mm;
  padding-bottom: 4mm;
  border-bottom: 2px solid #111;
}

.warranty-legacy__brand,
.warranty-legacy__doc {
  display: grid;
  gap: 1mm;
}

.warranty-legacy__brand .receipt__logo,
.work-act-legacy__brand .receipt__logo {
  max-width: 32mm;
  max-height: 12mm;
  margin: 0 0 1mm;
}

.warranty-legacy__brand span,
.warranty-legacy__doc span {
  color: #555;
  font-size: 8pt;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.warranty-legacy__brand strong {
  font-size: 17pt;
  font-weight: var(--ui-weight-black, 900);
}

.warranty-legacy__brand em,
.warranty-legacy__doc em {
  color: #333;
  font-style: normal;
}

.warranty-legacy__doc {
  padding: 3mm;
  border: 1px solid #111;
  background: #f5f5f5;
}

.warranty-legacy__doc strong {
  font-size: 16pt;
  font-weight: var(--ui-weight-black, 900);
}

.warranty-legacy__notice {
  margin-top: 3mm;
  padding: 2.2mm 3mm;
  border: 1px solid #111;
  background: #f8f8f8;
  font-size: 9.1pt;
  font-weight: 800;
}

.warranty-legacy__info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 3mm;
  border-top: 1px solid #333;
  border-left: 1px solid #333;
}

.warranty-legacy__info div {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 1mm;
  min-height: 6.5mm;
  border-right: 1px solid #333;
  border-bottom: 1px solid #333;
}

.warranty-legacy__info .warranty-legacy__info-item--wide {
  grid-column: 1 / -1;
}

.warranty-legacy__info span {
  padding: 1.1mm 0 1.1mm 1.3mm;
  border-right: 1px solid #c8c8c8;
  background: #f5f5f5;
  color: #111;
  font-weight: var(--ui-weight-black, 900);
  white-space: nowrap;
}

.warranty-legacy__info strong {
  min-width: 0;
  padding: 1.1mm 1.3mm 1.1mm 0;
  overflow-wrap: anywhere;
  font-weight: 400;
}

.warranty-legacy__topline {
  height: 2px;
  margin: 0 0 6mm;
  background: #111;
}

.warranty-legacy__barcode {
  position: absolute;
  top: 17mm;
  right: 10mm;
  width: 25mm;
  height: 14mm;
  border: 1px solid #111;
  background:
    repeating-linear-gradient(
      90deg,
      #111 0 1px,
      transparent 1px 3px,
      #111 3px 5px,
      transparent 5px 8px
    );
}

.warranty-legacy__executor,
.warranty-legacy__customer {
  display: grid;
  gap: 2px;
  margin-bottom: 5mm;
}

.warranty--legacy .warranty__services {
  margin-top: 3mm;
  border-color: #222;
  font-size: 8.8pt;
}

.warranty--legacy .warranty__service-row {
  grid-template-columns: 8mm 18mm minmax(0, 1fr) 30mm 23mm 24mm;
}

.warranty--legacy .receipt__service-row > div {
  min-width: 0;
  min-height: 6.2mm;
  padding: 1.15mm 1.3mm;
  border-color: #222;
  overflow-wrap: anywhere;
}

.warranty--legacy .receipt__service-row--head {
  background: #efefef;
  font-weight: var(--ui-weight-black, 900);
}

.warranty--legacy .warranty__service-row > div:nth-child(1),
.warranty--legacy .warranty__service-row > div:nth-child(2),
.warranty--legacy .warranty__service-row > div:nth-child(4),
.warranty--legacy .warranty__service-row > div:nth-child(5),
.warranty--legacy .warranty__service-row > div:nth-child(6) {
  text-align: center;
}

.warranty--legacy .warranty__totals {
  display: flex;
  justify-content: flex-end;
  margin-top: -1px;
  padding: 0;
  border: 1px solid #222;
  font-size: 9.4pt;
  text-align: right;
}

.warranty--legacy .warranty__totals strong {
  min-width: 45mm;
  padding: 1.5mm 2mm;
  border-left: 1px solid #222;
  font-size: 9.8pt;
  background: #f5f5f5;
}

.warranty--legacy .warranty__terms {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 3mm;
  padding: 2.4mm 3mm 2mm;
  border: 1px solid #111;
  font-size: 8pt;
  line-height: 1.16;
  overflow: hidden;
}

.warranty--legacy .warranty__terms h2 {
  margin: 0 0 1.6mm;
  padding-bottom: 1.2mm;
  border-bottom: 1px solid #111;
  font-size: 9.8pt;
  font-weight: var(--ui-weight-black, 900);
  text-transform: uppercase;
}

.warranty--legacy .warranty__terms ol {
  columns: 2;
  column-gap: 7mm;
  margin: 0;
  padding-left: 4mm;
}

.warranty--legacy .warranty__terms li + li {
  margin-top: 1mm;
}

.warranty-legacy__signatures {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 7mm;
  margin-top: 3mm;
  padding-top: 2.4mm;
  border-top: 2px solid #111;
  font-size: 9pt;
}

.warranty-legacy__signatures div {
  display: grid;
  gap: 2mm;
}

.warranty-legacy__signatures div span {
  color: #555;
  font-size: 7.8pt;
  font-weight: 800;
  text-transform: uppercase;
}

.warranty-legacy__signatures div strong {
  font-weight: 400;
}

.warranty-legacy__signatures em {
  grid-column: 1 / -1;
  color: #333;
  font-size: 8pt;
  font-style: normal;
  text-align: right;
}

.warranty-legacy__footer {
  display: flex;
  justify-content: space-between;
  margin-top: 2mm;
  color: #333;
  font-size: 7.8pt;
}

.print-forms-preview__paper .warranty--legacy {
  box-sizing: border-box;
  min-width: 540px;
  width: 540px;
  min-height: 760px;
  padding: 22px;
  font-size: 8px;
}

.print-forms-preview__paper .warranty-legacy__head {
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 14px;
  padding-bottom: 10px;
}

.print-forms-preview__paper .warranty-legacy__brand strong {
  font-size: 16px;
}

.print-forms-preview__paper .warranty-legacy__doc {
  padding: 8px;
}

.print-forms-preview__paper .warranty-legacy__doc strong {
  font-size: 14px;
}

.print-forms-preview__paper .warranty-legacy__notice,
.print-forms-preview__paper .warranty-legacy__info,
.print-forms-preview__paper .warranty--legacy .warranty__services,
.print-forms-preview__paper .warranty--legacy .warranty__terms {
  margin-top: 8px;
}

.print-forms-preview__paper .warranty-legacy__info div {
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 4px;
  min-height: 20px;
}

.print-forms-preview__paper .warranty-legacy__info span,
.print-forms-preview__paper .warranty-legacy__info strong,
.print-forms-preview__paper .warranty--legacy .receipt__service-row > div {
  padding: 4px;
}

.print-forms-preview__paper .warranty--legacy .warranty__service-row {
  grid-template-columns: 24px 54px minmax(0, 1fr) 84px 62px 64px;
}

.print-forms-preview__paper .warranty--legacy .warranty__terms {
  padding: 7px 8px 6px;
  font-size: 6.4px;
}

.print-forms-preview__paper .warranty--legacy .warranty__terms h2 {
  margin-bottom: 4px;
  padding-bottom: 4px;
  font-size: 7.5px;
}

.print-forms-preview__paper .warranty-legacy__signatures {
  gap: 16px;
  margin-top: 8px;
  padding-top: 7px;
}

.work-act {
  max-width: 190mm;
  margin: 0 auto;
  font-size: 12px;
}

.work-act--legacy {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 190mm;
  min-height: 267mm;
  margin: 0 auto;
  padding: 8mm;
  background: #fff;
  color: #111;
  font-family: Arial, sans-serif;
  font-size: 10pt;
  line-height: 1.22;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.work-act-legacy__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56mm;
  gap: 5mm;
  padding-bottom: 4mm;
  border-bottom: 2px solid #111;
}

.work-act-legacy__brand,
.work-act-legacy__doc {
  display: grid;
  gap: 1mm;
}

.work-act-legacy__brand span,
.work-act-legacy__doc span {
  color: #555;
  font-size: 8pt;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.work-act-legacy__brand strong {
  font-size: 17pt;
  font-weight: var(--ui-weight-black, 900);
}

.work-act-legacy__brand em,
.work-act-legacy__doc em {
  color: #333;
  font-style: normal;
}

.work-act-legacy__doc {
  padding: 3mm;
  border: 1px solid #111;
  background: #f5f5f5;
}

.work-act-legacy__doc strong {
  font-size: 16pt;
  font-weight: var(--ui-weight-black, 900);
}

.work-act-legacy__notice {
  margin-top: 3mm;
  padding: 2.4mm 3mm;
  border-left: 4px solid #111;
  background: #f6f6f6;
  font-size: 9.2pt;
  font-weight: 800;
}

.work-act-legacy__info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 3mm;
  border-top: 1px solid #333;
  border-left: 1px solid #333;
}

.work-act-legacy__info div {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 1mm;
  min-height: 6.7mm;
  border-right: 1px solid #333;
  border-bottom: 1px solid #333;
}

.work-act-legacy__info .work-act-legacy__info-item--wide {
  grid-column: 1 / -1;
}

.work-act-legacy__info span {
  padding: 1.15mm 0 1.15mm 1.3mm;
  border-right: 1px solid #c8c8c8;
  background: #f5f5f5;
  color: #111;
  font-weight: var(--ui-weight-black, 900);
  white-space: nowrap;
}

.work-act-legacy__info strong {
  min-width: 0;
  padding: 1.15mm 1.3mm 1.15mm 0;
  overflow-wrap: anywhere;
  font-weight: 400;
}

.work-act--legacy .work-act__services {
  margin-top: 3mm;
  border-color: #222;
  font-size: 9pt;
}

.work-act--legacy .work-act__service-row {
  grid-template-columns: 8mm 18mm minmax(0, 1fr) 34mm 16mm 30mm;
}

.work-act--legacy .receipt__service-row > div {
  min-width: 0;
  min-height: 6.4mm;
  padding: 1.15mm 1.3mm;
  border-color: #222;
  overflow-wrap: anywhere;
}

.work-act--legacy .receipt__service-row--head {
  background: #efefef;
  font-weight: var(--ui-weight-black, 900);
}

.work-act--legacy .work-act__service-row > div:nth-child(1),
.work-act--legacy .work-act__service-row > div:nth-child(2),
.work-act--legacy .work-act__service-row > div:nth-child(4),
.work-act--legacy .work-act__service-row > div:nth-child(5),
.work-act--legacy .work-act__service-row > div:nth-child(6) {
  text-align: center;
}

.work-act--legacy .work-act__totals {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: -1px;
  border: 1px solid #222;
  font-size: 10pt;
  text-align: right;
}

.work-act--legacy .work-act__totals span,
.work-act--legacy .work-act__totals strong {
  padding: 1.6mm 2mm;
}

.work-act--legacy .work-act__totals span {
  color: #333;
  font-weight: 800;
}

.work-act--legacy .work-act__totals strong {
  min-width: 44mm;
  border-left: 1px solid #222;
  background: #f5f5f5;
  font-size: 10.4pt;
  font-weight: var(--ui-weight-black, 900);
}

.work-act--legacy .receipt__summary--settlement {
  gap: 2mm;
  margin-top: 3mm;
}

.work-act--legacy .receipt__summary--settlement div {
  padding: 1.5mm 2mm;
  border-color: #777;
}

.work-act--legacy .receipt__summary--settlement span {
  font-size: 8pt;
}

.work-act--legacy .receipt__summary--settlement strong {
  font-size: 10pt;
}

.work-act--legacy .work-act__terms {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 3mm;
  padding: 3mm;
  border: 1px solid #111;
  font-size: 9pt;
  line-height: 1.25;
  break-inside: avoid;
}

.work-act--legacy .work-act__terms h2 {
  margin: 0 0 1.8mm;
  padding-bottom: 1.2mm;
  border-bottom: 1px solid #111;
  font-size: 10pt;
  font-weight: var(--ui-weight-black, 900);
  text-transform: uppercase;
}

.work-act--legacy .work-act__terms p {
  margin: 0;
}

.work-act--legacy .work-act__terms p + p {
  margin-top: 1.6mm;
}

.work-act-legacy__signatures {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 7mm;
  margin-top: 3mm;
  padding-top: 2.4mm;
  border-top: 2px solid #111;
  font-size: 9.4pt;
}

.work-act-legacy__signatures div {
  display: grid;
  gap: 2mm;
}

.work-act-legacy__signatures div span {
  color: #555;
  font-size: 8pt;
  font-weight: 800;
  text-transform: uppercase;
}

.work-act-legacy__signatures div strong {
  font-weight: 400;
}

.work-act-legacy__signatures em {
  grid-column: 1 / -1;
  color: #333;
  font-size: 8.2pt;
  font-style: normal;
  text-align: right;
}

.work-act-legacy__footer {
  display: flex;
  justify-content: space-between;
  margin-top: 2mm;
  color: #333;
  font-size: 7.8pt;
}

.print-forms-preview__paper .work-act--legacy {
  box-sizing: border-box;
  min-width: 540px;
  width: 540px;
  min-height: 760px;
  padding: 22px;
  font-size: 8px;
}

.print-forms-preview__paper .work-act-legacy__head {
  grid-template-columns: minmax(0, 1fr) 158px;
  gap: 14px;
  padding-bottom: 10px;
}

.print-forms-preview__paper .work-act-legacy__brand strong {
  font-size: 16px;
}

.print-forms-preview__paper .work-act-legacy__doc {
  padding: 8px;
}

.print-forms-preview__paper .work-act-legacy__doc strong {
  font-size: 14px;
}

.print-forms-preview__paper .work-act-legacy__notice,
.print-forms-preview__paper .work-act-legacy__info,
.print-forms-preview__paper .work-act--legacy .work-act__services,
.print-forms-preview__paper .work-act--legacy .work-act__terms {
  margin-top: 8px;
}

.print-forms-preview__paper .work-act-legacy__notice,
.print-forms-preview__paper .work-act--legacy .work-act__terms {
  padding: 7px 8px;
}

.print-forms-preview__paper .work-act-legacy__info div {
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 4px;
  min-height: 20px;
}

.print-forms-preview__paper .work-act-legacy__info span,
.print-forms-preview__paper .work-act-legacy__info strong,
.print-forms-preview__paper .work-act--legacy .receipt__service-row > div {
  padding: 4px;
}

.print-forms-preview__paper .work-act--legacy .work-act__service-row {
  grid-template-columns: 24px 54px minmax(0, 1fr) 86px 42px 78px;
}

.print-forms-preview__paper .work-act--legacy .work-act__terms {
  font-size: 6.8px;
}

.print-forms-preview__paper .work-act--legacy .work-act__terms h2 {
  margin-bottom: 4px;
  padding-bottom: 4px;
  font-size: 7.8px;
}

.print-forms-preview__paper .work-act-legacy__signatures {
  gap: 16px;
  margin-top: 8px;
  padding-top: 7px;
}

.warranty h1 {
  text-align: left;
}

.warranty__grid {
  margin-top: 0;
}

.warranty__service-row {
  grid-template-columns: 42px 72px 1fr 92px 72px 110px 120px;
}

.warranty__totals {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 10px;
  border-right: 1px solid #999;
  border-bottom: 1px solid #999;
  font-size: 13px;
  text-align: right;
}

.warranty__terms {
  margin-top: 18px;
  line-height: 1.45;
}

.warranty__terms h2 {
  margin-bottom: 8px;
}

.warranty__terms ol {
  margin: 0;
  padding-left: 20px;
}

.warranty__terms li + li {
  margin-top: 6px;
}

.warranty__signatures {
  gap: 30px;
  align-items: flex-start;
}

.receipt--warranty .receipt__docbox,
.receipt--work-act .receipt__docbox {
  background: #f5f7fa;
}

.receipt--warranty .receipt__summary strong,
.receipt--work-act .receipt__summary strong {
  font-size: 15px;
}

/* Compact warranty is intentionally grayscale for monochrome service printers. */
.warranty--compact {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 190mm;
  min-height: 0;
  margin: 0 auto;
  padding: 6mm 8mm;
  background: #fff;
  color: #111;
  font-family: Arial, sans-serif;
  font-size: 9pt;
  line-height: 1.2;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.warranty-compact__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(58mm, max-content);
  align-items: start;
  gap: 6mm;
  padding-bottom: 2.5mm;
  border-bottom: 1px solid #555;
}

.warranty-compact__brand {
  display: grid;
  align-content: start;
  gap: 0.55mm;
}

.warranty-compact__brand .receipt__logo {
  max-width: 28mm;
  max-height: 9mm;
  margin: 0 0 0.6mm;
  filter: grayscale(1) contrast(1.15);
}

.warranty-compact__brand > span {
  color: #444;
  font-size: 7.2pt;
  font-weight: 800;
  letter-spacing: 0.25px;
  text-transform: uppercase;
}

.warranty-compact__brand > strong {
  font-size: 15pt;
  font-weight: var(--ui-weight-black, 900);
  line-height: 1.05;
}

.warranty-compact__brand > em,
.warranty-compact__doc > em {
  color: #333;
  font-size: 8pt;
  font-style: normal;
}

.warranty-compact__doc {
  display: grid;
  justify-items: end;
  gap: 0.8mm;
  padding-top: 0.5mm;
  text-align: right;
}

.warranty-compact__doc > strong {
  font-size: 13.5pt;
  font-weight: var(--ui-weight-black, 900);
  overflow-wrap: anywhere;
}

.warranty-compact__section {
  margin-top: 2.5mm;
}

.warranty-compact__info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #777;
  border-left: 1px solid #777;
}

.warranty-compact__info-item {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  min-height: 5.6mm;
  border-right: 1px solid #777;
  border-bottom: 1px solid #777;
}

.warranty-compact__info-item--wide {
  grid-column: 1 / -1;
}

.warranty-compact__info-item > span {
  padding: 0.85mm 1.1mm;
  border-right: 1px solid #bbb;
  font-size: 7.8pt;
  font-weight: 800;
  white-space: nowrap;
}

.warranty-compact__info-item > strong {
  min-width: 0;
  padding: 0.85mm 1.1mm;
  overflow-wrap: anywhere;
  font-weight: 500;
}

.warranty--compact .warranty__services {
  margin-top: 0;
  border-color: #777;
  font-size: 8.1pt;
}

.warranty--compact .warranty__service-row {
  grid-template-columns: 7mm 17mm minmax(0, 1fr) 18mm 14mm 25mm;
}

.warranty--compact .receipt__service-row > div {
  min-width: 0;
  min-height: 5.6mm;
  padding: 0.85mm 1mm;
  border-color: #777;
  overflow-wrap: anywhere;
}

.warranty--compact .receipt__service-row--head {
  background: #e9e9e9;
  font-weight: var(--ui-weight-black, 900);
}

.warranty--compact .warranty__service-row > div:not(:nth-child(3)) {
  text-align: center;
}

.warranty--compact .warranty__totals {
  display: flex;
  justify-content: flex-end;
  gap: 0;
  margin-top: -1px;
  padding: 0;
  border: 1px solid #777;
}

.warranty--compact .warranty__totals > strong {
  min-width: 43mm;
  padding: 1.1mm 1.5mm;
  border-left: 1px solid #777;
  font-size: 9pt;
  text-align: right;
}

.warranty--compact .warranty__terms {
  margin-top: 3.5mm;
  padding: 0;
  border: 0;
  font-size: 7.8pt;
  line-height: 1.17;
}

.warranty--compact .warranty__terms ol {
  columns: 2;
  column-gap: 8mm;
  margin: 0;
  padding-left: 4.5mm;
}

.warranty--compact .warranty__terms li + li {
  margin-top: 0.7mm;
}

.warranty-compact__template-footer {
  margin-top: 2mm;
  color: #333;
  font-size: 7.5pt;
  line-height: 1.2;
  text-align: center;
}

.warranty-compact__signatures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7mm;
  margin-top: 2.5mm;
  padding-top: 2.2mm;
  border-top: 1px solid #555;
  font-size: 8.4pt;
}

.warranty-compact__signatures > div {
  display: grid;
  gap: 1.5mm;
}

.warranty-compact__signatures span {
  color: #444;
  font-size: 7.3pt;
  font-weight: 800;
  text-transform: uppercase;
}

.warranty-compact__signatures strong {
  font-weight: 400;
}

.warranty-compact__signatures > em {
  grid-column: 1 / -1;
  color: #333;
  font-size: 7.4pt;
  font-style: normal;
  text-align: right;
}

.warranty-compact__footer {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5mm;
  color: #444;
  font-size: 7pt;
}

.print-forms-preview__paper .warranty--compact {
  box-sizing: border-box;
  min-width: 540px;
  width: 540px;
  min-height: 0;
  padding: 18px 22px;
  font-size: 8px;
}

.print-forms-preview__paper .warranty-compact__head {
  grid-template-columns: minmax(0, 1fr) minmax(170px, max-content);
  gap: 18px;
  padding-bottom: 8px;
}

.print-forms-preview__paper .warranty-compact__brand > strong {
  font-size: 15px;
}

.print-forms-preview__paper .warranty-compact__doc > strong {
  font-size: 12px;
}

.print-forms-preview__paper .warranty-compact__section,
.print-forms-preview__paper .warranty--compact .warranty__terms {
  margin-top: 7px;
}

.print-forms-preview__paper .warranty-compact__info-item {
  min-height: 17px;
}

.print-forms-preview__paper .warranty-compact__info-item > span,
.print-forms-preview__paper .warranty-compact__info-item > strong,
.print-forms-preview__paper .warranty--compact .receipt__service-row > div {
  padding: 3px 4px;
}

.print-forms-preview__paper .warranty--compact .warranty__service-row {
  grid-template-columns: 21px 49px minmax(0, 1fr) 54px 41px 69px;
}

.print-forms-preview__paper .warranty--compact .warranty__terms {
  padding: 0;
  font-size: 6.4px;
}

.print-forms-preview__paper .warranty-compact__signatures {
  gap: 16px;
  margin-top: 8px;
  padding-top: 7px;
}

.work-act__terms {
  break-inside: avoid;
}

@media (max-width: 1120px) {
  .drawer.drawer--order-create .drawer__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .drawer.drawer--order-create .ticket-main {
    border-right: 0;
  }

  .drawer.drawer--order-create .event-panel {
    display: none;
  }
}

@media (max-width: 860px) {
  .drawer.drawer--order-create .order-intake-form {
    grid-template-columns: 1fr;
  }

  .drawer.drawer--order-create .ticket-type-row,
  .drawer.drawer--order-create .order-intake-column--main,
  .drawer.drawer--order-create .order-intake-column--side {
    grid-column: 1;
    grid-row: auto;
  }

  .drawer.drawer--order-create .order-intake-column,
  .drawer.drawer--order-create .order-intake-column--side {
    grid-template-columns: 1fr;
  }

  .drawer.drawer--order-create .order-intake-column--side [data-order-intake-field="manager_notes"] {
    grid-column: 1;
  }

  .drawer.drawer--order-create .device-intake-panel,
  .drawer.drawer--order-create .order-catalog-field {
    grid-template-columns: 1fr;
  }

  .drawer.drawer--order-create .order-catalog-field__button {
    width: fit-content;
  }
}

@media (max-width: 980px) {
  .board {
    grid-template-columns: repeat(5, 260px);
  }

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

  .manager-dashboard__hero,
  .manager-dashboard__list,
  .manager-dashboard__list--wide,
  .manager-dashboard__loading {
    grid-column: span 6;
  }

  .manager-kpi {
    grid-column: span 3;
  }

  .company-admin-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .profile-metrics-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .company-admin-insights,
  .company-attention-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-staff-table {
    overflow-x: auto;
  }

  .company-staff-table__head,
  .company-staff-table__row {
    min-width: 880px;
  }

  .profile-order-row {
    grid-template-columns: minmax(180px, 1fr) minmax(140px, 1fr);
  }

  .profile-order-row b {
    text-align: left;
  }

  .stats {
    display: none;
  }

  .top-search {
    width: 220px;
  }

  .fiscal-settings-grid,
  .settings-switches--inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory-module-nav {
    min-height: 42px;
    padding-inline: 8px;
  }

  .inventory-module-nav button {
    min-height: 42px;
    padding: 0 12px;
    font-size: 12px;
  }

  .inventory-scope-switch {
    align-items: flex-start;
    flex-direction: column;
  }

  .inventory-scope-switch__buttons {
    width: 100%;
  }

  .inventory-own-hero,
  .inventory-own-grid,
  .inventory-own-flow {
    grid-template-columns: 1fr;
  }

  .inventory-own-actions {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .inventory-own-filters,
  .inventory-nova-history__summary,
  .inventory-nova-link,
  .inventory-nova-timeline__item,
  .inventory-nova-import__summary,
  .inventory-nova-import__row {
    grid-template-columns: 1fr;
  }

  .inventory-nova-import__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .inventory-own-flow__step {
    border-right: 0;
    border-bottom: 1px solid #e1e9f1;
  }

  .inventory-own-flow__step:last-child {
    border-bottom: 0;
  }

  .inventory-stats {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .inventory-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 6px 12px;
  }

  .inventory-toolbar__right {
    justify-content: flex-end;
  }

  .inventory-compact-stats {
    max-width: 230px;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .staff-workspace {
    grid-template-columns: 1fr;
  }

  .staff-form {
    position: static;
  }

  .settings-content:has(#orderSettingsForm) {
    max-width: none;
  }

  .order-acceptance-layout,
  .order-settings-list--four,
  .order-settings-kit-preview,
  .order-settings-kv,
  .directory-settings-hero,
  .directory-master-detail,
  .directory-model-tools,
  .directory-fault-tools,
  .print-forms-shell,
  .print-forms-vars__grid {
    grid-template-columns: 1fr;
  }

  .directory-master {
    border-right: 0;
    border-bottom: 1px solid #dbe4ed;
  }

  .directory-master-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 220px;
  }

  .directory-model-tools .directory-scope-tabs {
    grid-column: auto;
  }

  #workspaceDashboardGrid > .home-role-dashboard__orders-now,
  #workspaceDashboardGrid > .home-role-dashboard__revenue,
  #workspaceDashboardGrid > .home-role-dashboard__attention,
  #workspaceDashboardGrid > .home-role-dashboard__masters,
  #workspaceDashboardGrid > .home-role-dashboard__stock,
  #workspaceDashboardGrid > .home-role-dashboard__personal-orders,
  #workspaceDashboardGrid > .home-role-dashboard__personal-tasks,
  #workspaceDashboardGrid > .home-role-dashboard__personal-activity {
    grid-column: auto;
  }

  .print-forms-list {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .print-forms-preview {
    position: static;
  }

  .print-forms-preview__paper {
    max-height: 560px;
  }

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

  .client-order-row--actionable {
    grid-template-columns: minmax(0, 1fr);
  }

  .client-order-row__meta {
    justify-items: start;
  }

  .client-order-row__actions {
    justify-content: flex-start;
  }

  .contact-communication__grid {
    grid-template-columns: 1fr;
  }

  .communication-settings-hero,
  .communication-switches,
  .order-communication-panel__controls {
    grid-template-columns: 1fr;
  }

.admin-row,
.admin-release-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-request-setup {
    grid-template-columns: 1fr;
  }

  .admin-release-form {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .admin-release-options {
    grid-template-columns: 1fr;
  }

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






}

@media (max-width: 760px) {
  .company-content .company-admin-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .company-content .company-admin-hero h2 {
    font-size: 22px;
  }

  .company-admin-hero__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  #releaseNotesModal {
    left: 58px;
  }

  body {
    grid-template-columns: 58px 1fr;
  }

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

  .admin-shell {
    padding: 12px;
  }

.admin-row,
.admin-release-form,
.admin-release-row {
    grid-template-columns: 1fr;
  }

  .admin-release-targets__list {
    grid-template-columns: 1fr;
  }

  .admin-row__actions,
  .admin-release-form__actions {
    justify-content: flex-start;
  }



  .workspace-grid--manager {
    grid-template-columns: 1fr;
  }

  .manager-dashboard__hero,
  .manager-dashboard__list,
  .manager-dashboard__list--wide,
  .manager-kpi,
  .manager-dashboard__loading {
    grid-column: auto;
  }

  .manager-dashboard__hero-actions,
  .manager-dashboard__panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .manager-dashboard-period__range,
  .manager-dashboard-period__range label {
    width: 100%;
  }

  .manager-dashboard-period__range input {
    flex: 1 1 auto;
    width: auto;
  }

  .manager-dashboard__rows--tasks,
  .manager-dashboard__rows--events {
    grid-template-columns: 1fr;
  }

  .manager-dashboard__row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .company-admin-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-account-hero {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .profile-account-hero .profile-hero__actions {
    grid-column: 1 / -1;
  }

  .profile-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .company-admin-hero__actions,
  .profile-hero__actions {
    justify-content: flex-start;
  }

  .company-admin-grid,
  .company-admin-grid--two,
  .profile-grid--two,
  .profile-metrics-grid,
  .company-admin-insights,
  .company-attention-list,
  .company-admin-table,
  .directory-settings-hero__stats {
    grid-template-columns: 1fr;
  }

  .profile-account-hero {
    grid-template-columns: 1fr;
  }

  .profile-avatar {
    width: 52px;
    height: 52px;
  }

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

  .fiscal-settings-grid,
  .settings-switches--inline {
    grid-template-columns: 1fr;
  }

  .side-nav em {
    display: none;
  }

  .toolbar,
  .topbar {
    align-items: stretch;
    height: auto;
    min-height: 48px;
    flex-wrap: wrap;
    padding: 8px;
  }

  .location {
    flex-basis: 132px;
    min-width: 132px;
    max-width: 132px;
  }

  .shell {
    grid-template-rows: auto auto auto 1fr;
  }

  .shell.shell--starter-demo { grid-template-rows: auto auto auto auto 1fr; }

  .top-search {
    width: 100%;
  }

  .inventory-scope-button {
    width: 220px;
  }

  .inventory-own-table__row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-block: 10px;
  }

  .inventory-nova-form__grid {
    grid-template-columns: 1fr;
  }

  .inventory-nova-modal {
    padding: 10px;
  }

  .inventory-nova-modal__panel,
  .inventory-nova-modal__panel--document,
  .inventory-nova-modal__panel--history {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .inventory-nova-link > b {
    min-height: 20px;
    transform: rotate(90deg);
  }

  .inventory-nova-timeline__item div {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .drawer {
    left: 50%;
    width: calc(100vw - 58px);
    max-height: calc(100vh - 20px);
  }

  .drawer.drawer--fullscreen {
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: calc(100vw - 58px);
    height: 100dvh;
    border-right: 0;
    border-radius: 0;
  }

  .drawer.drawer--order-create {
    inset: auto;
    top: 50%;
    right: auto;
    bottom: auto;
    left: calc(58px + (100vw - 58px) / 2);
    width: calc(100vw - 58px);
    height: calc(100vh - 20px);
    max-height: calc(100vh - 20px);
    border-radius: 0;
  }

  .contact-drawer.is-issue {
    top: 50%;
    left: 50%;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .contact-drawer {
    left: 50%;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  #paymentDrawer.payment-drawer--center {
    left: 50% !important;
    width: calc(100vw - 20px) !important;
    max-height: calc(100vh - 20px);
  }

  #transferDrawer {
    width: calc(100vw - 20px) !important;
    max-height: calc(100vh - 20px);
    border-radius: 10px;
  }

  .contact-form {
    max-height: calc(100vh - 20px);
  }

  #transferDrawer .contact-form {
    max-height: calc(100vh - 20px);
  }

  .contact-drawer.is-issue .contact-form {
    max-height: calc(100vh - 20px);
  }

  #transferDrawer .contact-form__body {
    max-height: calc(100vh - 142px);
  }

  .contact-drawer.is-issue .contact-form__body {
    max-height: calc(100vh - 142px);
  }

  #transferDrawer .payment-section {
    grid-template-columns: 1fr;
  }

  #transferDrawer .payment-field--amount,
  #transferDrawer .payment-field--comment {
    grid-column: 1;
  }

  .contact-drawer.is-issue .payment-section,
  .contact-drawer.is-issue .issue-readiness-panel {
    grid-template-columns: 1fr;
  }

  .contact-drawer.is-issue .issue-readiness-panel {
    grid-row: auto;
  }

  .contact-drawer.is-issue .payment-field--amount,
  .contact-drawer.is-issue .payment-field--method,
  .contact-drawer.is-issue .payment-field--account,
  .contact-drawer.is-issue .payment-mixed-panel,
  .contact-drawer.is-issue .receipt-print-panel,
  .contact-drawer.is-issue .warranty-print-panel {
    grid-column: 1 / -1;
  }

  .contact-drawer.is-issue .payment-mixed-panel__grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .contact-drawer.is-issue .payment-method-buttons {
    grid-template-columns: 1fr 1fr;
  }

  .issue-readiness__quick-head {
    display: grid;
    gap: 3px;
  }

  .issue-readiness__head,
  .issue-readiness__compact {
    grid-template-columns: 1fr;
  }

  .issue-readiness__head {
    display: grid;
  }

  .issue-readiness__assignee {
    max-width: none;
  }

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

  .issue-complete-summary__metrics,
  .issue-complete-summary__grid {
    grid-template-columns: 1fr;
  }

  .issue-complete-summary__hero {
    align-items: flex-start;
  }

  .order-catalog-field {
    grid-template-columns: 1fr;
  }

  .contact-drawer.is-issue #issuePaymentPanel,
  .contact-drawer.is-issue .issue-problem-panel {
    grid-template-columns: 1fr;
  }

  .contact-drawer.is-issue .issue-payment-panel__details,
  .contact-drawer.is-issue #issuePaymentPanel .issue-payment-panel__summary,
  .contact-drawer.is-issue #issuePaymentPanel .issue-payment-panel__toggle {
    grid-column: auto;
    grid-row: auto;
  }

  .contact-drawer.is-issue .issue-payment-panel__details {
    grid-template-columns: 1fr;
  }

  .contact-drawer.is-issue .issue-problem-panel .issue-payment-panel__title {
    padding-top: 0;
  }

  .contact-drawer.is-issue,
  #paymentDrawer.payment-drawer--center {
    width: calc(100vw - 20px) !important;
    height: calc(100vh - 20px);
    max-height: calc(100vh - 20px);
    border-radius: 10px;
  }

  .contact-drawer.is-issue .contact-form {
    height: 100%;
    max-height: 100%;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .contact-drawer.is-issue .payment-section {
    grid-template-columns: 1fr;
  }

  .contact-drawer.is-issue .payment-field--method,
  .contact-drawer.is-issue .payment-field--amount,
  .contact-drawer.is-issue .payment-mixed-panel,
  .contact-drawer.is-issue #issuePaymentPanel,
  .contact-drawer.is-issue .issue-readiness-panel,
  .contact-drawer.is-issue .warranty-print-panel,
  .contact-drawer.is-issue .receipt-print-panel {
    grid-column: 1 / -1;
  }

  .contact-drawer.is-issue .drawer__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .contact-drawer.is-issue .warranty-print-panel,
  .contact-drawer.is-issue .receipt-print-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .contact-drawer.is-issue .warranty-print-panel .issue-payment-panel__toggle {
    white-space: normal;
  }

  .contact-drawer.is-issue .receipt-print-panel .issue-payment-panel__summary {
    justify-content: flex-start;
  }

  .contact-drawer.is-issue .payment-method-buttons,
  #paymentDrawer.payment-drawer--center .payment-method-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-drawer.is-issue .payment-mixed-panel__head {
    display: grid;
    gap: 4px;
  }

  .contact-drawer.is-issue .payment-mixed-panel__head span {
    text-align: left;
  }

  .contact-drawer.is-issue .drawer__actions .button[type="submit"],
  .contact-drawer.is-issue #issueWithoutPaymentButton {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }

  .contact-section h2,
  .client-orders,
  .contact-overview,
  .contact-quick-actions,
  .contact-communication,
  .contact-communication-log {
    margin-left: 0;
  }

  .contact-overview {
    grid-template-columns: 1fr;
  }

  .contact-overview-card--wide {
    grid-column: auto;
  }

  .issue-complete-modal {
    padding: 10px;
  }

  .issue-without-repair-modal {
    padding: 10px;
  }

  .issue-without-repair-modal__panel {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    padding: 18px;
  }

  .issue-without-repair-modal__summary {
    grid-template-columns: 1fr;
  }

  .issue-complete-modal__panel {
    width: calc(100vw - 20px);
    padding: 18px;
  }

  .issue-complete-modal__meta {
    grid-template-columns: 1fr;
  }

  .issue-complete-panel__meta {
    grid-template-columns: 1fr;
  }

  .order-preview-panel {
    top: 50%;
    left: 50%;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .order-preview__summary,
  .order-preview__meta,
  .order-preview__money {
    grid-template-columns: 1fr;
  }

  .print-forms-hero,
  .print-form-card__head {
    display: grid;
  }

  .print-forms-hero__actions {
    justify-content: flex-start;
  }

  .print-forms-list {
    grid-template-columns: 1fr;
  }

  .print-forms-preview__head {
    display: grid;
  }

  .service-row__main,
  .service-row__details,
  .service-row__money {
    grid-template-columns: 1fr;
  }

  .service-payroll-allocation {
    grid-template-columns: 1fr;
  }

  .service-payroll-allocation__remove {
    height: 32px;
  }

  .services-total {
    grid-template-columns: repeat(3, minmax(112px, 1fr));
  }

  .device-intake-panel {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .order-catalog-field {
    grid-template-columns: 1fr;
  }

  .order-catalog-field__button {
    width: fit-content;
  }

  .ro-form h2 {
    margin-left: 0;
  }

  .ro-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .ro-row > span {
    padding-top: 0;
    text-align: left;
  }

  .order-preview__meta div,
  .order-preview__money div {
    border-top: 1px solid #edf1f5;
    border-left: 0;
  }

  .order-preview__meta div:first-child,
  .order-preview__money div:first-child {
    border-top: 0;
  }

  .inventory-view {
    padding-inline: 0;
  }

  .inventory-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 14px 8px;
  }

  .inventory-tabs button {
    padding: 0;
  }

  .inventory-stats {
    grid-template-columns: 1fr;
    padding: 0 14px;
  }

  .inventory-toolbar {
    grid-template-columns: 1fr;
    padding-inline: 12px;
  }

  .inventory-toolbar__right {
    display: none;
  }

  .inventory-compact-stats {
    max-width: calc(100vw - 96px);
  }

  .inventory-table {
    margin-inline: 14px;
  }

  .team-view {
    padding-inline: 12px;
  }

  #contactDrawer {
    left: 50%;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  #contactDrawer .contact-form {
    height: calc(100vh - 20px);
    max-height: calc(100vh - 20px);
  }

  .team-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .team-table {
    min-width: 0;
  }

  .team-row {
    grid-template-columns: 1fr;
    min-width: 0;
    padding: 8px 0;
  }

  .team-row--head {
    display: none;
  }

  .team-row span {
    padding: 4px 10px;
  }

  .team-row__actions {
    justify-content: flex-start;
    padding: 4px 10px;
  }

  .staff-page-head {
    flex-direction: column;
  }

  .staff-page-actions {
    justify-content: flex-start;
  }

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

  .staff-row {
    grid-template-columns: 1fr;
    min-width: 0;
    padding: 8px 0;
  }

  .staff-row--head {
    display: none;
  }

  .staff-row span {
    padding: 4px 10px;
  }

  .staff-row > span:not(:first-child) {
    justify-content: flex-start;
    text-align: left;
  }

  .staff-row__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 320px;
    margin-inline: 0;
  }

  .staff-form {
    grid-template-columns: 1fr;
  }

  .staff-payroll-defaults {
    grid-template-columns: 1fr;
  }

  .staff-payroll-row {
    min-width: 820px;
  }

  .directory-section-head,
  .directory-detail-head {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .directory-section-head {
    flex-direction: column;
  }

  .directory-managed-list--faults,
  .directory-master-list {
    grid-template-columns: 1fr;
  }

  .staff-roles-grid {
    grid-template-columns: 1fr;
  }

  .staff-role-card {
    grid-template-columns: 1fr;
  }

  .staff-roles-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .staff-role-card__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .staff-role-card__head p {
    max-width: 100%;
    white-space: normal;
  }

  .staff-role-card__permissions {
    grid-template-columns: 1fr;
  }

  .staff-role-modal {
    padding: 10px;
  }

  .staff-role-modal__panel {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .staff-role-modal__head {
    flex-direction: column;
  }

  .staff-role-modal__meta,
  .staff-role-modal__permissions {
    grid-template-columns: 1fr;
  }

  .staff-role-permission-group:not(.staff-role-permissions-beta) .staff-role-permission-group__rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-role-permission-group:not(.staff-role-permissions-beta) .staff-role-permission-row:nth-child(2n) {
    border-right: 0;
  }

  .staff-role-access-matrix {
    min-width: 580px;
  }

  .staff-role-access-matrix__row {
    grid-template-columns: minmax(180px, 1fr) repeat(5, 64px);
  }

  .staff-role-special-permission {
    padding: 10px;
  }

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

  .staff-invite-row__actions {
    justify-content: flex-start;
  }

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

  .span-2 {
    grid-column: auto;
  }
}

.fiscal-receipt-preview {
  display: grid;
  gap: 7px;
  padding: 10px 11px;
  border: 1px solid #d9e6f5;
  border-radius: 10px;
  background: linear-gradient(145deg, #f8fbff 0%, #f4f9ff 100%);
  color: #627087;
  font-size: 12px;
}

.receipt-print-choice {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 250px;
  padding: 3px;
  border: 1px solid #d7e1ed;
  border-radius: 9px;
  background: #f3f6fa;
}

.receipt-print-choice__button {
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.receipt-print-choice__button.is-active {
  background: #ffffff;
  color: #2563ad;
  box-shadow: 0 2px 7px rgba(42, 76, 118, 0.13);
}

.receipt-print-choice__button[data-receipt-print-choice="skip"].is-active {
  color: #865b27;
  background: #fffaf1;
}

.receipt-print-choice__button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.receipt-print-choice__hint {
  grid-column: 1 / -1;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

.receipt-print-choice__hint.is-skip {
  color: #8a642e;
}

.fiscal-receipt-preview.is-skipped {
  border-color: #eadfcb;
  background: #fffbf4;
  color: #806542;
}

.fiscal-receipt-preview.is-skipped strong {
  color: #76501e;
}

.fiscal-receipt-preview > small {
  color: #7c8ca3;
  font-size: var(--ui-text-2xs, 10px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fiscal-receipt-preview__head,
.fiscal-receipt-preview__item,
.fiscal-receipt-preview__total,
.fiscal-receipt-preview > div:not([class]) {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.fiscal-receipt-preview__head {
  align-items: center;
  padding-bottom: 5px;
  border-bottom: 1px solid #e3edf8;
  color: #3f536e;
  font-size: 11px;
}

.fiscal-receipt-preview__head strong {
  color: #2767b1;
}

.fiscal-receipt-preview__item span {
  min-width: 0;
  color: #34445b;
  font-weight: 650;
}

.fiscal-receipt-preview__item em {
  display: block;
  margin-top: 2px;
  color: #8795a9;
  font-size: var(--ui-text-2xs, 10px);
  font-style: normal;
  font-weight: 500;
}

.fiscal-receipt-preview__item strong,
.fiscal-receipt-preview__total strong,
.fiscal-receipt-preview > div:not([class]) strong {
  flex: 0 0 auto;
  color: #24344a;
  white-space: nowrap;
}

.fiscal-receipt-preview__total {
  align-items: center;
  padding-top: 6px;
  border-top: 1px solid #e3edf8;
  color: #6b7b91;
}

.fiscal-cashbox-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 17px;
  border: 1px solid #dbe7f4;
  border-radius: 14px;
  background: linear-gradient(135deg, #f9fcff 0%, #f3f8ff 100%);
  box-shadow: 0 8px 24px rgba(63, 91, 128, 0.07);
}

.fiscal-cashbox-panel__head,
.fiscal-cashbox-panel__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.fiscal-cashbox-panel__head > div {
  display: grid;
  gap: 3px;
}

.fiscal-cashbox-panel__head span,
.fiscal-cashbox-panel__metrics span {
  color: #75849a;
  font-size: 11px;
}

.fiscal-cashbox-panel__head strong {
  color: #203047;
  font-size: 16px;
}

.fiscal-cashbox-panel__status {
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf2f7;
  color: #5f6f84 !important;
  font-weight: 700;
}

.fiscal-cashbox-panel__status.is-ok {
  background: #eaf8ef;
  color: #257341 !important;
}

.fiscal-cashbox-panel__status.is-warning {
  background: #fff7e8;
  color: #976512 !important;
}

.fiscal-cashbox-panel__status.is-danger {
  background: #fff0f0;
  color: #b53b3b !important;
}

.fiscal-cashbox-panel__metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 8px;
}

.fiscal-cashbox-panel__metrics > div {
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: 10px;
  border: 1px solid #e1eaf5;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
}

.fiscal-cashbox-panel__metrics strong {
  overflow: hidden;
  color: #2a3b52;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fiscal-cashbox-panel__actions {
  justify-content: flex-start;
}

.fiscal-cashbox-panel > p {
  margin: -3px 0 0;
  color: #7c899b;
  font-size: 11px;
}

@media (max-width: 980px) {
  .fiscal-cashbox-panel__metrics {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

/* NS Склад · товары на реализации */
.nsw-consignments-view,
.nsw-consignment-detail {
  padding-bottom: 32px;
}

.nsw-document-toolbar__actions--left {
  justify-content: flex-start;
}

.nsw-consignment-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 16px 14px;
}

.nsw-consignment-summary article,
.nsw-consignment-contract-card > div {
  min-width: 0;
  border: 1px solid #dce6f3;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, #f7fbff);
  padding: 14px 15px;
  box-shadow: 0 7px 20px rgba(42, 76, 116, 0.045);
}

.nsw-consignment-summary span,
.nsw-consignment-contract-card span {
  display: block;
  margin-bottom: 7px;
  color: #75869d;
  font-size: 12px;
  font-weight: 700;
}

.nsw-consignment-summary strong,
.nsw-consignment-contract-card strong {
  display: block;
  color: #20334d;
  font-size: 20px;
  line-height: 1.2;
}

.nsw-consignment-summary small {
  display: block;
  margin-top: 6px;
  color: #91a0b4;
  font-size: 11px;
}

.nsw-consignment-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px 12px;
  padding: 10px;
  border: 1px solid #dde7f3;
  border-radius: 11px;
  background: #fff;
}

.nsw-consignment-filters .nsw-status-tabs {
  flex: 0 0 auto;
}

.nsw-consignment-search {
  width: min(360px, 100%);
  margin-left: auto;
}

.nsw-consignment-filters > select {
  min-height: 38px;
  border: 1px solid #ccd9e8;
  border-radius: 8px;
  background: #fff;
  color: #33465f;
  padding: 0 32px 0 10px;
}

.nsw-consignment-table tr[data-nsw-consignment-open] {
  cursor: pointer;
}

.nsw-consignment-table tbody tr:hover {
  background: #f4f8fd;
}

.nsw-table-link {
  display: block;
  appearance: none;
  border: 0;
  background: transparent;
  color: #2473c8;
  font: inherit;
  font-weight: 750;
  padding: 0;
  cursor: pointer;
}

.nsw-consignment-direction {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.nsw-consignment-direction--in {
  color: #176d56;
  background: #eaf8f2;
}

.nsw-consignment-direction--out {
  color: #2868af;
  background: #edf5ff;
}

.nsw-back-link {
  border: 0;
  background: transparent;
  color: #3276bd;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 0 0 7px;
  cursor: pointer;
}

.nsw-consignment-contract-card {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0 16px 14px;
}

.nsw-consignment-contract-card strong {
  font-size: 16px;
}

.nsw-consignment-section {
  margin: 0 16px 14px;
  overflow: hidden;
  border: 1px solid #dce6f3;
  border-radius: 12px;
  background: #fff;
}

.nsw-consignment-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid #e4ebf4;
}

.nsw-consignment-section > header h2 {
  margin: 0;
  color: #263a54;
  font-size: 15px;
}

.nsw-consignment-section > header span {
  color: #8291a5;
  font-size: 12px;
}

.nsw-consignment-modal {
  width: min(620px, calc(100vw - 28px));
}

.nsw-consignment-modal--wide {
  width: min(980px, calc(100vw - 28px));
}

.nsw-consignment-product-search {
  width: 100%;
  margin-bottom: 0;
}

.nsw-consignment-search-results {
  display: grid;
  max-height: 220px;
  overflow: auto;
  border: 1px solid #d7e3f1;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(41, 70, 105, 0.1);
}

.nsw-consignment-search-results > span {
  padding: 14px;
  color: #73849a;
}

.nsw-consignment-search-results button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  border-bottom: 1px solid #e7edf5;
  background: #fff;
  padding: 10px 13px;
  color: #344861;
  text-align: left;
  cursor: pointer;
}

.nsw-consignment-search-results button:hover {
  background: #f3f8ff;
}

.nsw-consignment-search-results button span,
.nsw-consignment-item__name {
  min-width: 0;
}

.nsw-consignment-search-results strong,
.nsw-consignment-search-results small,
.nsw-consignment-item__name strong,
.nsw-consignment-item__name small {
  display: block;
}

.nsw-consignment-search-results small,
.nsw-consignment-item__name small {
  margin-top: 3px;
  color: #8998aa;
  font-size: 11px;
}

.nsw-consignment-items {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.nsw-consignment-item {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) 100px 130px 130px auto;
  align-items: end;
  gap: 9px;
  padding: 10px;
  border: 1px solid #dde6f1;
  border-radius: 10px;
  background: #fbfdff;
}

.nsw-consignment-item label span {
  display: block;
  margin-bottom: 5px;
  color: #718299;
  font-size: var(--ui-text-2xs, 10px);
  font-weight: 750;
}

.nsw-consignment-item input,
.nsw-consignment-item textarea,
.nsw-consignment-item select,
.nsw-consignment-table input {
  width: 100%;
  min-height: 36px;
  box-sizing: border-box;
  border: 1px solid #cdd9e8;
  border-radius: 7px;
  background: #fff;
  color: #293d57;
  padding: 7px 9px;
  font: inherit;
}

.nsw-consignment-serial-field {
  grid-column: 1 / -2;
}

.nsw-icon-danger {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #fff0f0;
  color: #d64c4c;
  font-size: 18px;
  cursor: pointer;
}

.nsw-consignment-empty {
  min-height: 130px;
  border: 1px dashed #ccdaea;
  border-radius: 10px;
}

.nsw-consignment-balance-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  border: 1px solid #cfe1f4;
  border-radius: 10px;
  background: #f2f8ff;
  padding: 13px 15px;
  color: #4e6682;
}

.nsw-consignment-balance-callout strong {
  color: #1f5f9e;
  font-size: 22px;
}

@media (max-width: 1180px) {
  .nsw-consignment-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nsw-consignment-contract-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nsw-consignment-item {
    grid-template-columns: minmax(180px, 1fr) repeat(3, 110px) auto;
  }
}

@media (max-width: 760px) {
  .nsw-consignment-summary,
  .nsw-consignment-contract-card {
    grid-template-columns: 1fr 1fr;
  }

  .nsw-consignment-filters {
    align-items: stretch;
    flex-direction: column;
  }

  .nsw-consignment-search {
    width: 100%;
    margin-left: 0;
  }

  .nsw-consignment-item {
    grid-template-columns: 1fr 1fr;
  }

  .nsw-consignment-item__name,
  .nsw-consignment-serial-field {
    grid-column: 1 / -1;
  }
}

@media (min-width: 981px) and (max-width: 1400px) {
  .orders-list__table {
    --order-column-id: 80px;
    --order-column-status: 104px;
    --order-column-dueDate: 106px;
    --order-column-manager: 104px;
    --order-column-ticketType: 92px;
    --order-column-deviceType: 106px;
    --order-column-device: 118px;
    --order-column-problem-min: 136px;
    --order-column-client: 148px;
    --order-column-price: 76px;
    min-width: 1060px;
  }


  .orders-list__row > span,
  .orders-list__row > .table-sort {
    padding-inline: 8px;
  }

  .contacts-table {
    min-width: 1080px;
  }

  .contacts-row--modern {
    grid-template-columns: minmax(190px, 1fr) 148px minmax(190px, 1fr) 64px 104px 104px 120px 160px;
  }

  .contacts-cell {
    padding-inline: 8px;
  }
}

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

  body > * {
    display: none !important;
  }

  body {
    display: block;
    background: #fff;
  }

  body.printing .receipt {
    display: block !important;
  }
}

.admin-release-bundle {
  display: grid;
  gap: 16px;
}

.admin-release-bundle__hero,
.admin-release-bundle__current,
.admin-release-bundle__add,
.admin-release-bundle__history {
  border: 1px solid #d8e2ee;
  border-radius: 8px;
  background: #fff;
}

.admin-release-bundle__hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
  background: linear-gradient(135deg, #f4f9ff, #fff);
}

.admin-release-bundle__hero > div:first-child > span,
.admin-release-bundle__current > header span,
.admin-release-bundle__add > div > span {
  color: #377fbd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.admin-release-bundle__hero h2,
.admin-release-bundle__current h3,
.admin-release-bundle__add h3 {
  margin: 4px 0;
  color: #263b51;
}

.admin-release-bundle__hero p,
.admin-release-bundle__current header p,
.admin-release-bundle__add p {
  margin: 0;
  color: #7a8da2;
}

.admin-release-bundle__hero > div:last-child {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: center;
  padding: 10px 14px;
  border: 1px solid #bdd7ee;
  border-radius: 6px;
  background: #edf6ff;
  white-space: nowrap;
}

.admin-release-bundle__hero > div:last-child b {
  color: #2477b8;
}

.admin-release-bundle__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, .75fr);
  gap: 16px;
  align-items: start;
}

.admin-release-bundle__current,
.admin-release-bundle__add {
  padding: 18px;
}

.admin-release-bundle__current > header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.admin-release-bundle__current > header > b {
  padding: 6px 10px;
  border-radius: 5px;
  background: #edf6ff;
  color: #2878b9;
  font-size: 12px;
}

.admin-release-bundle__current > header > b.is-ready {
  background: #e8f7ed;
  color: #21834b;
}

.admin-release-bundle__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
  padding: 12px 0;
  border-top: 1px solid #e4ebf3;
  border-bottom: 1px solid #e4ebf3;
}

.admin-release-bundle__changes {
  display: grid;
  gap: 8px;
  max-height: 600px;
  overflow: auto;
}

.admin-release-bundle__change,
.admin-release-bundle__stable {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #e1e8f0;
  border-radius: 5px;
  background: #fbfcfe;
}

.admin-release-bundle__change strong,
.admin-release-bundle__stable strong {
  display: block;
  margin: 3px 0;
  color: #2c4055;
}

.admin-release-bundle__change span,
.admin-release-bundle__stable span,
.admin-release-bundle__change p,
.admin-release-bundle__stable p {
  margin: 0;
  color: #7d8fa3;
  font-size: 12px;
}

.admin-release-bundle__change > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  color: #5f7388;
  font-size: 11px;
}

.admin-release-bundle__add .admin-release-form {
  margin-top: 14px;
  padding: 0;
  border: 0;
  box-shadow: none;
  grid-template-columns: 1fr;
}

.admin-release-bundle__warning {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #f0d9a8;
  border-radius: 6px;
  background: #fff9eb;
  color: #8a671a;
}

.admin-release-bundle__backlog {
  border: 1px solid #f0d9a8;
  border-radius: 6px;
  background: #fff9eb;
}

.admin-release-bundle__backlog > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  color: #755818;
  cursor: pointer;
}

.admin-release-bundle__backlog > summary span {
  display: grid;
  gap: 3px;
}

.admin-release-bundle__backlog > summary em {
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
}

.admin-release-bundle__backlog > summary b {
  flex: none;
  font-size: 12px;
}

.admin-release-bundle__backlog-list {
  display: grid;
  gap: 8px;
  max-height: 560px;
  overflow: auto;
  padding: 0 14px 14px;
}

.admin-release-bundle__backlog-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #eadfca;
  border-radius: 5px;
  background: #fff;
}

.admin-release-bundle__backlog-item.is-dependency {
  border-color: #e7bb7b;
}

.admin-release-bundle__backlog-item strong,
.admin-release-bundle__backlog-item small {
  display: block;
}

.admin-release-bundle__backlog-item small,
.admin-release-bundle__backlog-item p {
  margin: 3px 0 0;
  color: #748295;
  font-size: 12px;
}

.admin-release-bundle__backlog-item > b {
  flex: none;
  align-self: flex-start;
  color: #9a6a16;
  font-size: 12px;
}

.admin-release-bundle__connections {
  border-color: #d5e0eb;
  background: #fff;
}

.admin-release-bundle__connections > summary {
  color: #2c4055;
}

.admin-release-bundle__connections > summary em {
  color: #748295;
}

.admin-release-bundle__connections .admin-release-bundle__backlog-item {
  border-color: #d5e0eb;
}

.admin-release-bundle__connections .admin-release-bundle__backlog-item > b {
  color: #3c6c8d;
}

.admin-release-confirm__summary .admin-release-confirm__excluded {
  color: #9a5a14;
  font-weight: 700;
}

.admin-release-bundle__history > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  cursor: pointer;
}

.admin-release-bundle__history > summary span {
  display: grid;
  gap: 2px;
}

.admin-release-bundle__history > summary em {
  color: #8798aa;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
}

.admin-release-bundle__history > div {
  display: grid;
  gap: 8px;
  padding: 0 18px 18px;
}

.admin-release-confirm__panel > label {
  display: grid;
  gap: 6px;
  color: #53687d;
  font-weight: 700;
}

.admin-release-confirm__panel > label input,
.admin-release-confirm__panel > label textarea {
  width: 100%;
  border: 1px solid #cbd8e5;
  border-radius: 5px;
  padding: 9px 10px;
  color: #2c4055;
  font: inherit;
}

@media (max-width: 1100px) {
  .admin-release-bundle__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .admin-release-bundle__hero,
  .admin-release-bundle__current > header,
  .admin-release-bundle__warning {
    flex-direction: column;
  }

  .admin-release-bundle__hero > div:last-child {
    align-self: stretch;
    white-space: normal;
  }

  .admin-release-bundle__change,
  .admin-release-bundle__stable {
    grid-template-columns: 1fr;
  }

  .admin-release-bundle__backlog > summary,
  .admin-release-bundle__backlog-item {
    flex-direction: column;
  }
}
.staff-location-access__list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.staff-location-access__item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line, #d9e1ea);
  border-radius: 8px;
  background: #f8fafc;
}

.staff-location-access__item > label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.staff-location-access__item > label em {
  margin-left: auto;
  color: #708097;
  font-size: 11px;
  font-style: normal;
}

.staff-location-access__warehouses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-left: 24px;
}

/* Desktop location workspace: cards and editor. */
.location-settings {
  display: grid;
  gap: 16px;
}

.location-settings__hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  padding: 26px 28px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 15%, rgba(79, 190, 142, 0.24), transparent 28%),
    linear-gradient(135deg, #172b4d 0%, #23436d 100%);
}

.location-settings__hero h2,
.location-editor__head h2 {
  margin: 4px 0 0;
}

.location-settings__hero h2 {
  color: #fff;
}

.location-settings__hero p {
  max-width: 680px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.5;
}

.location-settings__eyebrow {
  color: #69d7aa;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.location-settings__list-card {
  padding: 20px;
}

.location-settings__list-head,
.location-settings__list-head > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.location-settings__list-head {
  margin-bottom: 16px;
}

.location-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 14px;
}

.location-card {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #dce5ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(32, 55, 84, 0.06);
}

.location-card--inactive {
  background: #f7f9fb;
  opacity: 0.76;
}

.location-card__top {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.location-card__top > div,
.location-card__details span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.location-card__top strong {
  overflow: hidden;
  color: #23364d;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-card__top span,
.location-card__details,
.location-card__meta {
  color: #758399;
  font-size: 12px;
}

.location-card__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
  color: #167953 !important;
  background: #e5f8f0;
  font-size: 16px !important;
  font-weight: 850;
}

.location-card__status,
.location-card__meta mark {
  padding: 5px 8px;
  border-radius: 999px;
  color: #187653;
  background: #e9f8f1;
  font-size: 10px;
  font-weight: 800;
}

.location-card__status.is-off {
  color: #687386;
  background: #e8ecf1;
}

.location-card__details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 13px 0;
  border-block: 1px solid #edf1f5;
}

.location-card__details b {
  color: #44556b;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.location-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.location-card__staff {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: #f7fafc;
}

.location-card__staff > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.location-card__staff > div:first-child strong {
  color: #334960;
  font-size: 12px;
}

.location-card__staff > div:first-child span {
  color: #7a8798;
  font-size: 10px;
}

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

.location-card__staff-person {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid #e7edf3;
}

.location-card__staff-person b {
  overflow: hidden;
  color: #334960;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-card__staff-person em {
  color: #718096;
  font-size: 10px;
  font-style: normal;
}

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

.staff-location-summary {
  overflow: hidden;
  color: #47715f;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-editor {
  padding: 22px;
}

.location-editor__head,
.location-editor__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.location-editor__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.location-editor__grid > label:not(.location-editor__active) {
  display: grid;
  gap: 7px;
}

.location-editor__grid > label > span {
  color: #4a5b70;
  font-size: 12px;
  font-weight: 750;
}

.location-editor__wide,
.location-editor__active {
  grid-column: 1 / -1;
}

.location-editor__active {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dce5ef;
  border-radius: 10px;
  background: #f7fafc;
}

.location-editor__active > span {
  display: grid;
  gap: 3px;
}

.location-editor__active em {
  color: #758399;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
}

.location-editor__footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e7edf3;
}
/* NS Warehouse product pricing tools: shared category picker and compact price workspace. */
.nsw-product-pricing-tools-beta .nsw-product-category-field {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid #bfd0df;
  border-radius: 5px;
  background: #fff;
  color: #30475d;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.nsw-product-pricing-tools-beta .nsw-product-category-field:hover,
.nsw-product-pricing-tools-beta .nsw-product-category-field:focus-visible {
  border-color: #2687c8;
  box-shadow: 0 0 0 2px rgba(38, 135, 200, .12);
  outline: none;
}
.nsw-product-pricing-tools-beta .nsw-product-category-field i {
  color: #7e93a6;
  font-style: normal;
  font-size: 20px;
}
.nsw-product-category-picker {
  width: min(560px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 48px));
  z-index: 2150;
}
.nsw-overlay--product-category { z-index: 2140; }
.nsw-product-category-picker .nsw-modal__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 16px;
}
.nsw-product-category-picker__search {
  position: relative;
  display: block;
}
.nsw-product-category-picker__search > span {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6f879b;
}
.nsw-product-category-picker__search input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 36px;
  border: 1px solid #bfd0df;
  border-radius: 5px;
  font: inherit;
}
.nsw-product-category-picker__tree {
  overflow: auto;
  min-height: 260px;
  max-height: min(540px, calc(100vh - 230px));
  border: 1px solid #d6e1ea;
  border-radius: 6px;
  padding: 6px;
  background: #fff;
}
.nsw-product-category-picker__root,
.nsw-product-category-picker__search-row,
.nsw-product-category-picker__choice {
  border: 0;
  background: transparent;
  color: #30475d;
  font: inherit;
  cursor: pointer;
}
.nsw-product-category-picker__root,
.nsw-product-category-picker__search-row {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  border-radius: 4px;
  text-align: left;
}
.nsw-product-category-picker__search-row span {
  display: grid;
  gap: 2px;
}
.nsw-product-category-picker__search-row small {
  color: #8295a7;
  font-size: 12px;
}
.nsw-product-category-picker__node > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  padding-left: calc(var(--nsw-category-depth, 0) * 18px);
}
.nsw-product-category-picker__toggle,
.nsw-product-category-picker__toggle-spacer {
  width: 28px;
  height: 34px;
}
.nsw-product-category-picker__toggle {
  border: 0;
  background: transparent;
  color: #698296;
  font-size: 20px;
  cursor: pointer;
  transition: transform .15s ease;
}
.nsw-product-category-picker__node.is-open > div > .nsw-product-category-picker__toggle { transform: rotate(90deg); }
.nsw-product-category-picker__choice {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 4px;
  text-align: left;
}
.nsw-product-category-picker__choice:hover,
.nsw-product-category-picker__root:hover,
.nsw-product-category-picker__search-row:hover { background: #eef6fb; }
.nsw-product-category-picker__choice.active,
.nsw-product-category-picker__root.active,
.nsw-product-category-picker__search-row.active {
  background: #dceefa;
  color: #146fae;
  font-weight: 650;
}
.nsw-product-category-picker__choice i,
.nsw-product-category-picker__root i,
.nsw-product-category-picker__search-row i { font-style: normal; color: #1986c8; }
.nsw-product-category-picker__empty { padding: 42px 16px; text-align: center; color: #7f93a5; }
@media (max-width: 640px) {
  .nsw-product-category-picker {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    max-height: none;
  }
  .nsw-product-category-picker__tree { flex: 1; max-height: none; }
}

/* PRODUCT_PRICING_TOOLS_ROLLOUT: crm-ns-warehouse-product-pricing-tools-1 */
.nsw-product-pricing-tools-beta .nsw-product-detail-prices--compact > header { margin-bottom: 4px; }
.nsw-product-pricing-tools-beta .nsw-product-detail-prices--compact > header h2 { margin: 0; }
.nsw-product-price-stack { width: min(100%, 460px); display: flex; flex-direction: column; gap: 0; }
.nsw-product-price-stack > .nsw-product-price-row,
.nsw-product-price-sale-list > .nsw-product-price-row {
  min-height: 46px;
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px solid #e3ebf2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 210px);
  align-items: center;
  gap: 14px;
}
.nsw-product-price-stack .nsw-product-price-row > span { min-width: 0; display: flex; align-items: center; gap: 6px; color: #40566b; font-weight: 600; }
.nsw-product-price-stack .nsw-product-price-row > small { grid-column: 1 / -1; margin-top: -7px; color: #8395a6; font-size: 11px; }
.nsw-product-price-main { margin-left: auto; padding: 2px 6px; border-radius: 999px; background: #e8f4fb; color: #1979b6; font-size: 10px; font-weight: 700; }
.nsw-product-minimum-price-control { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 6px; }
.nsw-product-minimum-price-control select,
.nsw-product-minimum-price-control input,
.nsw-product-price-sale-list input { min-width: 0; width: 100%; }
.nsw-product-price-fact { justify-self: stretch; padding: 8px 11px; border: 1px solid #d3e0ea; border-radius: 4px; background: #f8fafc; color: #263f56; font-weight: 700; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nsw-product-price-fact.is-empty { color: #8da0b0; }
.nsw-product-price-fact.is-loading { color: #258ac4; }
.nsw-product-price-help { position: relative; flex: 0 0 auto; width: 17px; height: 17px; padding: 0; border: 1px solid #8ebbd4; border-radius: 50%; background: #f0f8fc; color: #177fb9; font-size: 11px; font-weight: 800; line-height: 15px; text-align: center; cursor: help; }
.nsw-product-price-help::after { content: attr(data-tip); position: absolute; z-index: 40; left: 50%; bottom: calc(100% + 9px); width: min(330px, 70vw); padding: 9px 11px; border-radius: 5px; background: #24394c; color: #fff; box-shadow: 0 7px 22px rgba(24, 52, 74, .22); font-size: 12px; font-weight: 500; line-height: 1.4; text-align: left; white-space: normal; opacity: 0; visibility: hidden; transform: translate(-50%, 3px); transition: opacity .14s ease, transform .14s ease, visibility .14s ease; pointer-events: none; }
.nsw-product-price-help:hover::after,
.nsw-product-price-help:focus-visible::after { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nsw-product-price-settings-button { align-self: flex-start; margin: 10px 0 5px; }
.nsw-product-price-error { margin: 7px 0 0; color: #bc4b4b; font-size: 12px; }
.nsw-product-price-sale-list { display: flex; flex-direction: column; }
.nsw-price-types-modal { width: min(760px, calc(100vw - 32px)); }
.nsw-price-policy-settings,
.nsw-price-types-settings { padding: 12px 0; border-top: 1px solid #e2ebf2; }
.nsw-price-policy-settings h3,
.nsw-price-types-settings h3 { margin: 0 0 10px; color: #263f56; font-size: 14px; }
.nsw-price-types-settings__head,
.nsw-price-types-settings__row { display: grid; grid-template-columns: minmax(180px, 1fr) 84px 84px 105px; gap: 8px; align-items: center; }
.nsw-price-types-settings__head { padding: 0 4px 6px; color: #8294a4; font-size: 11px; font-weight: 700; }
.nsw-price-types-settings__row { padding: 7px 0; border-top: 1px solid #edf2f6; }
.nsw-price-types-settings__row > input { min-width: 0; width: 100%; }
.nsw-price-main-radio { display: flex; align-items: center; gap: 5px; color: #52677a; font-size: 12px; }
.nsw-price-main-radio input { margin: 0; }

/* PRODUCT_PRICING_SETTINGS_COMPACT_ROLLOUT: crm-ns-warehouse-product-pricing-tools-2 */
#nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-types-modal { width: min(660px, calc(100vw - 32px)); max-height: min(720px, calc(100dvh - 32px)); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
#nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-types-modal > .nsw-modal__body { padding: 8px 14px; overflow: auto; }
#nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-policy-settings,
#nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-types-settings { padding: 9px 0; }
#nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-types-settings { border-top-color: #dce6ee; }
#nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-settings-section-title { min-height: 26px; margin-bottom: 5px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
#nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-settings-section-title h3 { margin: 0; color: #263f56; font-size: 14px; }
#nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-settings-section-title > span { color: #8294a4; font-size: 11px; font-weight: 600; }
#nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-policy-settings__list { border: 1px solid #e1e9f0; border-radius: 5px; background: #fff; overflow: hidden; }
#nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-policy-row { min-height: 43px; padding: 5px 8px; display: grid; grid-template-columns: minmax(0, 1fr) 220px; align-items: center; gap: 12px; }
#nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-policy-row + .nsw-price-policy-row { border-top: 1px solid #edf2f6; }
#nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-policy-row > span { min-width: 0; display: flex; flex-direction: column; gap: 1px; color: #40566b; }
#nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-policy-row strong { font-size: 12px; }
#nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-policy-row small { color: #8798a7; font-size: 11px; font-weight: 500; line-height: 1.25; }
#nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-policy-row > input,
#nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-policy-row > select { width: 100%; min-width: 0; height: 32px; }
/* MANUAL_MINIMUM_PRICE_ROLLOUT: crm-ns-warehouse-manual-minimum-price-1. */
#nsWarehouseRoot.nsw-manual-minimum-price-beta .nsw-price-policy-row > b { justify-self: end; color: #b83e3e; font-size: 12px; }
#nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-types-settings__head,
#nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-types-settings__row { grid-template-columns: minmax(180px, 1fr) 70px 66px 84px; gap: 7px; }
#nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-types-settings__head { padding: 0 6px 4px; }
#nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-types-settings__head span:nth-child(n + 3) { text-align: center; }
#nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-types-settings__row { min-height: 39px; padding: 4px 0; }
#nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-type-name,
#nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-type-order { min-width: 0; }
#nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-type-name > span,
#nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-type-order > span { display: none; }
#nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-type-name input,
#nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-type-order input { width: 100%; min-width: 0; height: 32px; }
#nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-type-order input { text-align: center; }
#nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-type-toggle,
#nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-main-radio { min-width: 0; justify-content: center; gap: 5px; font-size: 11px; cursor: pointer; }
#nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-type-toggle { display: flex; align-items: center; color: #52677a; }
#nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-type-toggle input { margin: 0; }
.nsw-minimum-price-warning { display: block; margin-top: 4px; color: #b83e3e; font-size: 10px; font-weight: 650; line-height: 1.25; white-space: normal; }
.nsw-minimum-price-warning[hidden] { display: none; }
.nsw-sale-line.is-below-minimum,
.nsw-shipment-line.is-below-minimum { background: #fff4f4; }
.nsw-sale-line.is-below-minimum input[data-nsw-sale-item-field="unitPrice"],
.nsw-shipment-line.is-below-minimum input[data-nsw-shipment-item-field="unitPrice"] { border-color: #d96868; color: #a92f2f; background: #fffafa; }
@media (max-width: 720px) {
  .nsw-product-price-stack { width: 100%; }
  .nsw-product-price-stack > .nsw-product-price-row,
  .nsw-product-price-sale-list > .nsw-product-price-row { grid-template-columns: minmax(0, 1fr) minmax(138px, 48%); gap: 8px; }
  .nsw-product-minimum-price-control { grid-template-columns: 76px minmax(0, 1fr); }
  .nsw-price-types-settings__head { display: none; }
  .nsw-price-types-settings__row { grid-template-columns: minmax(0, 1fr) 72px; }
  .nsw-price-types-settings__row > .nsw-switch,
  .nsw-price-main-radio { justify-self: start; }
  #nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-types-modal { width: calc(100vw - 12px); max-height: calc(100dvh - 12px); }
  #nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-types-modal > .nsw-modal__body { padding: 6px 10px; }
  #nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-settings-section-title > span { display: none; }
  #nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-policy-row { grid-template-columns: minmax(0, 1fr) minmax(120px, 42%); gap: 8px; }
  #nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-policy-row small { display: none; }
  #nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-types-settings__row { padding: 7px 0; grid-template-columns: minmax(0, 1fr) 90px; gap: 6px 8px; }
  #nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-type-name > span,
  #nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-type-order > span { display: block; margin-bottom: 3px; color: #8294a4; font-size: 11px; font-weight: 700; }
  #nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-type-toggle,
  #nsWarehouseRoot.nsw-product-price-settings-compact-beta .nsw-price-main-radio { justify-content: flex-start; justify-self: stretch; }
}
.nsw-receipt-correction-notice,
.nsw-receipt-history {
  margin: 14px 20px 0;
  border: 1px solid #c9d9ee;
  border-radius: 8px;
  background: #f6f9fd;
  padding: 14px 16px;
}

.nsw-receipt-correction-notice {
  display: grid;
  gap: 6px;
  border-left: 4px solid #2f80d9;
}

.nsw-receipt-correction-notice > span,
.nsw-receipt-history header p,
.nsw-receipt-history article > div span {
  color: #667990;
  font-size: 12px;
}

.nsw-receipt-correction-notice label {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.nsw-receipt-correction-notice textarea {
  min-height: 58px;
  resize: vertical;
}

.nsw-receipt-history header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.nsw-receipt-history header h2,
.nsw-receipt-history header p {
  margin: 0;
}

.nsw-receipt-history article {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 7px 18px;
  padding: 10px 0;
  border-top: 1px solid #dce6f2;
}

.nsw-receipt-history article > div {
  display: grid;
  gap: 2px;
}

.nsw-receipt-history article > button {
  align-self: start;
  border: 0;
  background: transparent;
  color: #1769b0;
  font-weight: 700;
  cursor: pointer;
}

.nsw-receipt-history article p {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  font-size: 12px;
}

.nsw-receipt-history article p span {
  color: #40556e;
  text-align: right;
}

@media (max-width: 760px) {
  .nsw-receipt-history article,
  .nsw-receipt-history article p {
    display: grid;
  }

  .nsw-receipt-history article > button,
  .nsw-receipt-history article p span {
    text-align: left;
  }
}
/* RECEIPT_CORRECTION_HISTORY_ROLLOUT: crm-ns-warehouse-receipt-correction-history-1 */
/* WAREHOUSE_SALES_INPUT_STABILITY_ROLLOUT: crm-warehouse-sales-input-stability-1 */
/* WAREHOUSE_RESERVATIONS_REGISTER_ROLLOUT: crm-warehouse-reservations-register-1 */
/* WAREHOUSE_SALES_CLIENT_TABS_ROLLOUT: crm-warehouse-sales-client-tabs-1 */
/* WAREHOUSE_SALES_FIELDS_COMPACT_ROLLOUT: crm-warehouse-sales-fields-compact-1 */

/* STAFF_COMPENSATION_ROLLOUT: crm-staff-compensation-1 */
.staff-comp {
  display: grid;
  gap: 18px;
}

.staff-comp__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.staff-comp__card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #dbe5f0;
  border-radius: 16px;
  background: #fff;
}

.staff-comp__card h3,
.staff-comp__card h4,
.staff-comp__card p {
  margin: 0;
}

.staff-comp__card p,
.staff-comp__personal-title small,
.staff-comp__empty {
  color: #6a7b90;
  font-size: 13px;
  line-height: 1.45;
}

.staff-comp__card-head,
.staff-comp__actions,
.staff-comp__personal-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.staff-comp label,
.staff-comp__rules,
.staff-comp form {
  display: grid;
  gap: 8px;
}

.staff-comp label > span {
  color: #42546b;
  font-size: 12px;
  font-weight: 700;
}

.staff-comp input,
.staff-comp select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #ccd8e6;
  border-radius: 10px;
  background: #fff;
  color: #17253a;
  padding: 8px 10px;
}

.staff-comp__rule-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, .72fr);
  gap: 10px;
}

.staff-comp__rule > span input,
.staff-comp__rule-pair span input {
  width: 16px;
  min-height: 16px;
  margin: 0 6px 0 0;
  vertical-align: -3px;
}

.staff-comp__members,
.staff-comp__events,
.staff-comp__permissions {
  display: grid;
  gap: 8px;
}

.staff-comp__member,
.staff-comp__events > div,
.staff-comp__permissions > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
  border: 1px solid #dfe7f1;
  border-radius: 12px;
  background: #f9fbfd;
  color: #23354b;
  text-align: left;
}

button.staff-comp__member {
  cursor: pointer;
}

.staff-comp__member.is-active {
  border-color: #5f9ee8;
  background: #eef6ff;
}

.staff-comp__member span,
.staff-comp__events span,
.staff-comp__permissions span {
  display: grid;
  gap: 2px;
}

.staff-comp__member small,
.staff-comp__events small,
.staff-comp__permissions small {
  color: #73849a;
  font-size: 11px;
  font-weight: 500;
}

.staff-comp__member em {
  color: #1769b0;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.staff-comp__events b {
  white-space: nowrap;
  color: #198754;
}

.staff-comp__events b.is-negative {
  color: #c0392b;
}

.staff-comp__permissions > label {
  grid-template-columns: minmax(0, 1fr) 170px;
}

.staff-comp__status {
  min-height: 18px;
  color: #b44b36;
  font-size: 13px;
}

.staff-comp__permission-picker {
  max-width: 420px;
}

/* STAFF_PERSONAL_PERMISSIONS_WORKSPACE_ROLLOUT: crm-staff-role-scroll-1 */
.staff-personal-rights__status:empty {
  display: none;
}

.staff-personal-rights__status:not(:empty) {
  min-height: 0;
  padding: 9px 11px;
  border: 1px solid #b8dfc7;
  border-radius: 5px;
  background: #f1fbf5;
  color: #27754d;
  font-weight: 700;
}

.staff-personal-rights__directory {
  overflow: hidden;
  border: 1px solid #d7e0e9;
  border-radius: 7px;
  background: #fff;
}

.staff-personal-rights__directory > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 12px 14px;
  border-bottom: 1px solid #e4eaf0;
  background: #f7f9fc;
}

.staff-personal-rights__directory > header > div {
  display: grid;
  gap: 3px;
}

.staff-personal-rights__directory h3,
.staff-personal-rights__directory p {
  margin: 0;
}

.staff-personal-rights__directory h3 {
  color: #243244;
  font-size: 17px;
}

.staff-personal-rights__directory p {
  color: #667587;
  font-size: 12px;
  line-height: 1.4;
}

.staff-personal-rights__directory > header > span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 4px;
  background: #eaf2fc;
  color: #2766a5;
  font-size: 11px;
  font-weight: 750;
}

.staff-personal-rights__people {
  display: grid;
}

.staff-personal-rights__person {
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) minmax(150px, .85fr) minmax(150px, .75fr) 112px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 68px;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid #e8edf2;
  background: #fff;
  color: #26323d;
  text-align: left;
  cursor: pointer;
}

.staff-personal-rights__person:last-child {
  border-bottom: 0;
}

.staff-personal-rights__person:hover,
.staff-personal-rights__person:focus-visible {
  background: #f6f9fd;
  outline: none;
}

.staff-personal-rights__identity,
.staff-personal-rights__role,
.staff-personal-rights__summary {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.staff-personal-rights__identity strong,
.staff-personal-rights__role strong {
  overflow: hidden;
  color: #26323d;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-personal-rights__identity em,
.staff-personal-rights__role em,
.staff-personal-rights__summary small {
  overflow: hidden;
  color: #6c7a8b;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-personal-rights__delta,
.staff-personal-rights__inherited {
  justify-self: start;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 750;
}

.staff-personal-rights__delta.is-allowed {
  background: #e8f7ee;
  color: #24754a;
}

.staff-personal-rights__delta.is-denied {
  background: #fff0ec;
  color: #b34a36;
}

.staff-personal-rights__delta.is-mixed {
  background: #fff7e6;
  color: #946200;
}

.staff-personal-rights__inherited {
  background: #eef2f6;
  color: #667587;
}

.staff-personal-rights__open {
  justify-self: end;
  color: #276db3;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.staff-personal-rights__open i {
  margin-left: 3px;
  font-style: normal;
}

.staff-personal-rights-drawer {
  position: fixed;
  inset: 0;
  z-index: 2700;
  display: grid;
  align-items: stretch;
  justify-items: end;
}

.staff-personal-rights-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, .38);
  backdrop-filter: blur(2px);
}

.staff-personal-rights-drawer__panel {
  position: relative;
  z-index: 1;
  display: grid !important;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 13px !important;
  width: min(980px, calc(100vw - 24px));
  height: 100vh;
  max-height: 100vh;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid #d6dde5;
  border-radius: 8px 0 0 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

.staff-personal-rights-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.staff-personal-rights-drawer__head h2 {
  margin: 0 0 4px;
  color: #26323d;
  font-size: 20px;
  font-weight: 650;
}

.staff-personal-rights-drawer__head span {
  color: #667381;
  font-size: 13px;
}

.staff-personal-rights-drawer__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.staff-personal-rights-drawer__meta > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #e1e7ee;
  border-radius: 5px;
  background: #f8fafc;
}

.staff-personal-rights-drawer__meta strong {
  color: #26323d;
  font-size: 16px;
}

.staff-personal-rights-drawer__meta span {
  color: #667381;
  font-size: 11px;
  font-weight: 700;
}

.staff-personal-rights-drawer__meta .is-allowed strong {
  color: #24754a;
}

.staff-personal-rights-drawer__meta .is-denied strong {
  color: #b34a36;
}

.staff-personal-rights-drawer__intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 2px;
}

.staff-personal-rights-drawer__intro > div {
  display: grid;
  gap: 2px;
}

.staff-personal-rights-drawer__intro strong {
  color: #26323d;
  font-size: 14px;
}

.staff-personal-rights-drawer__intro > div > span {
  color: #718096;
  font-size: 11px;
}

.staff-comp .staff-personal-rights-drawer__intro > label {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  color: #516174;
  cursor: pointer;
}

.staff-comp .staff-personal-rights-drawer__intro input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  margin: 0;
}

.staff-comp .staff-personal-rights-drawer__intro label > span {
  font-size: 11px;
}

.staff-personal-rights-drawer__permissions {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-height: 0;
  overflow: auto;
  padding: 0 5px 8px 0;
}

.staff-personal-rights-group {
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid #dce4ec;
  border-radius: 6px;
  background: #fff;
}

.staff-personal-rights-group > header {
  min-height: 48px;
  padding: 9px 12px;
  border-bottom: 1px solid #e5ebf1;
  background: #f4f7fa;
}

.staff-personal-rights-group > header > div {
  display: grid;
  gap: 2px;
}

.staff-personal-rights-group > header strong {
  color: #243244;
  font-size: 14px;
}

.staff-personal-rights-group > header span {
  color: #6c7989;
  font-size: 11px;
}

.staff-personal-rights-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px 132px;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 10px 12px;
  border-bottom: 1px solid #e8edf2;
  border-left: 3px solid transparent;
  background: #fff;
}

.staff-personal-rights-row:last-child {
  border-bottom: 0;
}

.staff-personal-rights-row.is-allow {
  border-left-color: #3b9a66;
  background: #fbfefc;
}

.staff-personal-rights-row.is-deny {
  border-left-color: #d66751;
  background: #fffdfc;
}

.staff-personal-rights-row.is-sensitive {
  background: #fffdf8;
}

.staff-personal-rights-row__copy,
.staff-personal-rights-row__copy > span {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
}

.staff-personal-rights-row__copy {
  align-items: stretch;
  flex-direction: column;
  gap: 4px;
}

.staff-personal-rights-row__copy strong {
  color: #26323d;
  font-size: 13px;
}

.staff-personal-rights-row__copy mark {
  padding: 2px 5px;
  border-radius: 4px;
  background: #fff1cc;
  color: #946200;
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.staff-personal-rights-row__copy p,
.staff-personal-rights-row__copy small {
  margin: 0;
  color: #69788a;
  font-size: 11px;
  line-height: 1.35;
}

.staff-personal-rights-row__copy small {
  color: #9a6700;
  font-weight: 650;
}

.staff-comp .staff-personal-rights-row__choice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid #d5dee7;
  border-radius: 6px;
  background: #edf1f5;
}

.staff-comp .staff-personal-rights-row__choice label {
  display: block;
  position: relative;
  cursor: pointer;
}

.staff-comp .staff-personal-rights-row__choice input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.staff-comp .staff-personal-rights-row__choice label > span {
  display: block;
  min-height: 28px;
  padding: 6px 5px;
  border-radius: 4px;
  color: #5f6e80;
  font-size: 10px;
  font-weight: 750;
  text-align: center;
  white-space: nowrap;
}

.staff-comp .staff-personal-rights-row__choice input:checked + span {
  background: #fff;
  color: #276db3;
  box-shadow: 0 1px 3px rgba(28, 43, 60, .16);
}

.staff-comp .staff-personal-rights-row__choice label:nth-child(2) input:checked + span {
  color: #24754a;
}

.staff-comp .staff-personal-rights-row__choice label:nth-child(3) input:checked + span {
  color: #b34a36;
}

.staff-personal-rights-row__result {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.staff-personal-rights-row__result span,
.staff-personal-rights-row__result b {
  font-size: 10px;
  white-space: nowrap;
}

.staff-personal-rights-row__result small {
  color: #6c7989;
  font-size: 10px;
}

.staff-comp .staff-personal-rights-row.is-inherit .staff-personal-rights-row__choice input:checked + span {
  color: #5f6e80;
}

.staff-personal-rights-row__result span {
  color: #7a8795;
}

.staff-personal-rights-row__result b.is-allowed {
  color: #24754a;
}

.staff-personal-rights-row__result b.is-denied {
  color: #b34a36;
}

.staff-personal-rights-drawer__actions {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid #edf1f5;
}

.staff-personal-rights-drawer__empty {
  padding: 22px;
  border: 1px dashed #cbd6e1;
  border-radius: 6px;
  color: #687789;
  font-size: 12px;
  text-align: center;
}

.staff-personal-rights-group[hidden],
.staff-personal-rights-row[hidden],
.staff-personal-rights-drawer__empty[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .staff-comp__grid,
  .staff-comp__rule-pair {
    grid-template-columns: 1fr;
  }

  .staff-comp__permissions > label {
    grid-template-columns: 1fr;
  }

  .staff-personal-rights__person {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .staff-personal-rights__role,
  .staff-personal-rights__summary {
    grid-column: 1;
  }

  .staff-personal-rights__open {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .staff-personal-rights-drawer__panel {
    width: calc(100vw - 12px);
    padding: 14px;
  }

  .staff-personal-rights-row {
    grid-template-columns: 1fr;
  }

  .staff-personal-rights-row__result {
    grid-template-columns: 1fr 1fr;
    justify-items: start;
  }
}

@media (max-width: 620px) {
  .staff-personal-rights__directory > header,
  .staff-personal-rights-drawer__intro,
  .staff-personal-rights-drawer__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .staff-personal-rights-drawer__panel {
    width: 100vw;
    border-radius: 0;
  }

  .staff-personal-rights-drawer__meta {
    grid-template-columns: 1fr;
  }

  .staff-personal-rights-drawer__actions {
    grid-template-columns: 1fr 1fr;
  }

  .staff-personal-rights-drawer__actions > span {
    display: none;
  }
}

/* STAFF_ROLE_SCROLL_ROLLOUT: crm-staff-role-scroll-1 */
.staff-role-modal[data-scroll-fix="true"] .staff-access-switch {
  position: relative;
}
.staff-role-modal[data-scroll-fix="true"] .staff-role-modal__permissions {
  position: relative;
  overscroll-behavior: contain;
}
.staff-role-modal[data-scroll-fix="true"] .staff-role-permission-menu {
  flex: 0 0 auto;
}

/* STAFF_PAY_WORKSPACE_ROLLOUT: crm-staff-pay-workspace-1 */
.staff-pay-directory { border: 1px solid #dce4ee; border-radius: 7px; overflow: hidden; margin: 18px 0; }
.staff-pay-directory > header { padding: 16px; background: #f7f9fc; }
.staff-pay-directory h3, .staff-pay-rule h3 { margin: 0 0 6px; font-size: 16px; }
.staff-pay-directory p, .staff-pay-rule p { margin: 4px 0; color: #68798d; font-size: 13px; line-height: 1.5; }
.staff-pay-list__row { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(240px, 2fr) auto; gap: 20px; width: 100%; padding: 17px; text-align: left; background: white; border: 0; border-bottom: 1px solid #e6ecf3; cursor: pointer; color: #293849; align-items: center; }
.staff-pay-list__row:last-child { border-bottom: 0; }
.staff-pay-list__row:hover { background: #f5f8ff; }
.staff-pay-list__row small { display: block; color: #788697; margin-top: 5px; }
.staff-pay-summary { display: grid; gap: 5px; font-size: 13px; line-height: 1.5; }
.staff-pay-summary b { font-weight: 500; }
.staff-pay-configure { color: #2675c8; font-weight: 600; }
.staff-pay-drawer .staff-personal-rights-drawer__panel { grid-template-rows: auto minmax(0, 1fr) auto; width: min(820px, 100vw); overflow: hidden; }
.staff-pay-drawer__body { flex: 1; min-height: 0; overflow: auto; padding: 0 24px 24px; overscroll-behavior: contain; }
.staff-pay-drawer__body > label, .staff-pay-rule__fields label { display: grid; gap: 7px; margin: 12px 0; }
.staff-pay-drawer input:not([type=checkbox]), .staff-pay-drawer select { min-height: 38px; width: 100%; border: 1px solid #cdd8e5; border-radius: 5px; padding: 8px; background: white; }
.staff-pay-rule { border: 1px solid #dce4ee; border-radius: 6px; padding: 16px; margin: 14px 0; }
.staff-pay-rule > header { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.staff-pay-rule fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.staff-pay-rule fieldset:disabled { opacity: .55; }
.staff-pay-toggle { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; white-space: nowrap; font-size: 13px; }
.staff-pay-toggle input { width: 17px !important; height: 17px; margin: 0; }
.staff-pay-rule__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.staff-pay-rule__fields[hidden], .staff-pay-rule [hidden] { display: none !important; }
.staff-pay-rule__fields > div, .staff-pay-example { grid-column: 1 / -1; }
.staff-pay-rule__fields > div { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.staff-pay-example, .staff-pay-note, .staff-pay-inherited-summary { background: #f3f7fc; border-radius: 5px; padding: 12px; font-size: 13px; line-height: 1.5; color: #53647a; }
.staff-pay-rule small { display: block; margin-top: 10px; color: #52667e; }
.staff-pay-drawer summary { cursor: pointer; color: #2868aa; padding: 14px 0; font-weight: 600; }
.staff-pay-error { color: #b63434; }
.staff-pay-error:empty { display: none; }
.nsw-staff-reward { margin-top: 16px; }
.nsw-staff-reward:has(select[name=staffRewardMode] option:checked:not([value=custom])) [data-staff-reward-custom] { display: none; }
@media (max-width: 700px) {
  .staff-pay-list__row { grid-template-columns: 1fr; gap: 8px; }
  .staff-pay-drawer__body { padding: 0 14px 14px; }
  .staff-pay-rule > header { flex-direction: column; gap: 8px; }
  .staff-pay-rule__fields, .staff-pay-rule__fields > div { grid-template-columns: 1fr; }
  .staff-pay-drawer .staff-personal-rights-drawer__actions { flex-wrap: wrap; }
}
/* INTEGRATIONS_WORKSPACE_ROLLOUT: crm-order-intake-layout-1 */
.integrations-workspace { display: grid; gap: 18px; }
.integrations-connection { display: flex; align-items: flex-start; gap: 20px; padding-top: 22px; }
.integrations-connection__icon { display: grid; place-items: center; flex: 0 0 58px; height: 58px; border-radius: 14px; color: #276bc0; background: #edf4fe; font-weight: 800; }
.integrations-connection__body { flex: 1; min-width: 0; }
.integrations-connection h3 { margin: 0 0 8px; font-size: 20px; }
.integrations-connection p, .integrations-transfer-link p, .integrations-panel p { margin: 6px 0; color: #6a7b90; line-height: 1.55; }
.integrations-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.integrations-tags span { border-radius: 6px; background: #f1f5fa; padding: 5px 9px; font-size: 12px; color: #526780; }
.integrations-connection__status { display: grid; gap: 4px; }
.integrations-workspace .is-success, .integrations-panel .is-success { color: #268054; }
.integrations-workspace .is-error, .integrations-panel .is-error { color: #ba4639; }
.integrations-workspace .is-neutral { color: #617389; }
.integrations-transfer-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; background: #f7f9fc; border: 1px solid #e0e7f0; border-radius: 12px; }
.integrations-panel { position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; width: min(820px, 95vw); height: 100dvh; max-width: none; max-height: none; border: 0; border-radius: 14px 0 0 14px; color: #263447; background: #fff; box-shadow: -12px 0 60px #14223630; }
.integrations-panel[open] { display: flex; flex-direction: column; }
.integrations-panel::backdrop { background: #18283e66; backdrop-filter: blur(3px); }
.integrations-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 28px 18px; border-bottom: 1px solid #e4eaf2; }
.integrations-panel__head h2 { margin: 0; font-size: 24px; }
.integrations-panel__scroll { overflow: auto; min-height: 0; padding: 0 28px 28px; overscroll-behavior: contain; }
.integrations-panel__scroll > form { padding: 24px 0; }
.integrations-panel__scroll > form + form { border-top: 1px solid #dce4ef; }
.integrations-discard { padding: 16px 28px; border-top: 1px solid #edd7b8; background: #fff8eb; }
.integrations-discard > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.integrations-panel h3 { margin: 0 0 6px; font-size: 18px; }
.integrations-panel__intro { margin-bottom: 20px; }
.integrations-panel .settings-form { margin: 16px 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.integrations-panel small { display: block; color: #718198; line-height: 1.5; font-size: 12px; }
.integrations-option { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; cursor: pointer; }
.integrations-option > input { margin-top: 4px; }
.integrations-option strong { font-size: 14px; }
.integrations-methods { margin: 18px 0; border: 1px solid #dfe7f1; border-radius: 8px; padding: 12px 16px; }
.integrations-methods legend { padding: 0 6px; font-size: 13px; font-weight: 700; }
.integrations-methods .settings-switches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.integrations-form-actions { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.integrations-form-actions .settings-status { flex: 1; font-size: 12px; }
.integrations-requirements { background: #f3f7fc; border-radius: 10px; padding: 14px 16px; font-size: 13px; }
.integrations-discovery { padding: 18px; background: #f3f7fc; border: 1px solid #dae5f2; border-radius: 10px; margin: 18px 0; }
.integrations-discovery p { font-size: 13px; }
.integrations-discovery [data-found-cashbox] { padding-top: 14px; margin-top: 14px; border-top: 1px solid #d6e2ef; overflow-wrap: anywhere; }
.integrations-advanced { margin: 18px 0; padding: 14px 16px; border: 1px solid #e0e7f0; border-radius: 8px; }
.integrations-advanced summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.integrations-check { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin: 24px 0 16px; padding: 18px; border-radius: 10px; background: #f7f9fc; border: 1px solid #e1e8f1; }
.integrations-check > div { flex: 1; min-width: 180px; }
.integrations-check p { font-size: 13px; }
.integrations-check [data-check-result] { width: 100%; overflow-wrap: anywhere; }
@media (max-width: 650px) {
  .integrations-connection { flex-wrap: wrap; gap: 12px; }
  .integrations-connection__icon { flex-basis: 44px; height: 44px; font-size: 13px; }
  .integrations-connection > button { margin-left: 56px; }
  .integrations-transfer-link { align-items: flex-start; flex-direction: column; padding: 18px; }
  .integrations-panel { width: 100%; border-radius: 0; }
  .integrations-panel__head { padding: 18px; }
  .integrations-panel__scroll { padding: 0 18px 18px; }
  .integrations-panel .settings-form { grid-template-columns: 1fr; }
  .integrations-form-actions { align-items: flex-start; flex-direction: column; }
}

/* ORDER_NUMBERING_ROLLOUT: crm-order-intake-layout-1 */
[data-import-numbering] .order-numbering-continue { display:flex; flex-direction:row; align-items:center; gap:10px; margin:16px 0; }
[data-import-numbering] .order-numbering-continue input { width:18px; height:18px; min-height:0; margin:0; flex:0 0 18px; }
[data-import-numbering] [data-import-number-fields][hidden], [data-order-general-actions][hidden] { display:none !important; }

/* IMPORT_NUMBERING_SETUP_ROLLOUT: crm-order-intake-layout-1 */
.import-numbering-setup { margin-top: 18px; }
.import-numbering-setup__choice { display: flex !important; align-items: flex-start; gap: 12px; padding: 14px; margin-top: 10px; border: 1px solid #dbe3ed; border-radius: 8px; cursor: pointer; }
.import-numbering-setup__choice:has(input:checked) { background: #f1f6ff; border-color: #86aee4; }
.import-numbering-setup__choice:has(input:disabled) { opacity: .65; cursor: default; }
.import-numbering-setup__choice input[type="radio"] { width: 18px !important; height: 18px !important; min-height: 18px !important; flex: 0 0 18px; margin: 2px 0 0; }
.import-numbering-setup__choice strong, .import-numbering-setup__choice small { display: block; }
.import-numbering-setup__choice small { margin-top: 5px; color: #64748b; }
.import-numbering-setup__field { display: grid; gap: 8px; max-width: 400px; margin-top: 16px; }

/* TRANSFER_LAYOUT_ROLLOUT: crm-order-intake-layout-1 */
.transfer-workspace { display: grid; gap: 20px; min-width: 0; }
.transfer-workspace > .settings-card { margin: 0; padding: 24px; }
.transfer-workspace .settings-card__header h2 { font-size: 21px; margin: 0; }
.transfer-workspace .settings-card__hint { line-height: 1.6; margin: 8px 0 16px; }
.transfer-steps { display: flex; gap: 24px; list-style: none; padding: 0 0 20px; margin: 22px 0 20px; border-bottom: 1px solid #e6ebf2; }
.transfer-steps li { display: flex; align-items: center; gap: 9px; color: #7a8798; font-size: 13px; }
.transfer-steps li > span { display: grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: #eef2f7; font-weight: 700; }
.transfer-steps .is-current { color: #245fa8; font-weight: 700; }
.transfer-steps .is-current > span { background: #e8f0ff; }
.transfer-steps .is-done { color: #29815b; }
.transfer-steps .is-done > span { background: #e8f6ee; }
.transfer-workspace .inventory-nova-import { gap: 16px; }
.transfer-workspace .inventory-nova-import__drop { display: grid; justify-items: start; grid-template-columns: 48px minmax(0,1fr) auto; grid-template-rows: auto auto; text-align: left; align-items: center; gap: 4px 16px; padding: 22px; min-height: 100px; background: #fafcff; border: 1px dashed #b9cce2; border-radius: 10px; }
.transfer-workspace .inventory-nova-import__drop:focus-within { outline: 2px solid #347ac7; outline-offset: 3px; }
.transfer-workspace .inventory-nova-import__drop strong { grid-column: 2; font-size: 15px; overflow-wrap: anywhere; }
.transfer-workspace .inventory-nova-import__drop > span:not([class]) { grid-column: 2; }
.transfer-workspace .transfer-file-icon { grid-column: 1; grid-row: 1 / 3; display: grid; place-items: center; width: 48px; height: 48px; background: #eaf1fc; color: #326dad; border-radius: 10px; font-size: 27px; }
.transfer-workspace .transfer-file-action { grid-column: 3; grid-row: 1 / 3; padding: 9px 14px; border: 1px solid #cad8e8; border-radius: 6px; background: white; color: #2c5788; font-weight: 700; white-space: nowrap; }
.transfer-help { font-size: 13px; color: #63758b; }
.transfer-help summary { cursor: pointer; color: #465c76; width: fit-content; }
.transfer-help p { line-height: 1.6; max-width: 850px; margin: 10px 0; }
.transfer-empty-hint { margin: 0; color: #7a8798; font-size: 12px; line-height: 1.5; }
.transfer-workspace .contacts-toolbar[hidden] { display: none !important; }
.transfer-preview-title { font-size: 16px; margin: 12px 0 0; }
.transfer-workspace .inventory-nova-import__summary { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.transfer-workspace .inventory-nova-import__summary > div { box-shadow: none; background: #f7f9fc; padding: 12px 16px; min-height: 0; border: 0; border-radius: 8px; }
.transfer-workspace .inventory-nova-import__summary strong { font-size: 22px; }
.transfer-workspace .order-xlsx-import__table { max-height: 460px; overflow: auto; border-radius: 8px; }
.transfer-workspace .order-xlsx-import__table .inventory-nova-import__row { min-width: 850px; }
.transfer-workspace .inventory-nova-import__row--head { position: sticky; top: 0; z-index: 1; }
.transfer-workspace .danger-confirm-box--import { border: 1px solid #dbe5f0; background: #f7faff; box-shadow: none; padding: 16px; }
.transfer-workspace .import-numbering-setup { margin-top: 0; padding: 18px; box-shadow: none; background: #fcfdff; }
.transfer-workspace .contacts-toolbar { margin-top: 8px; gap: 10px; flex-wrap: wrap; }
.transfer-export-options { margin: 18px 0; border: 1px solid #e1e7f0; border-radius: 9px; }
.transfer-export-options > summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px; cursor: pointer; color: #32465f; font-size: 14px; font-weight: 700; }
.transfer-export-options > summary small { display: block; font-size: 12px; font-weight: 400; color: #7a8798; margin-top: 5px; }
.transfer-export-customize { color: #2b6ebd; font-size: 13px; }
.transfer-export-customize::after { content: ' ⌄'; }
.transfer-export-options[open] .transfer-export-customize::after { content: ' ⌃'; }
.transfer-export-presets { display: flex; gap: 8px; padding: 0 16px 16px; }
.transfer-export-groups { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; padding: 4px 16px 20px; }
.transfer-export-groups fieldset { border: 0; min-width: 0; padding: 0; margin: 0; }
.transfer-export-groups legend { font-size: 13px; font-weight: 700; margin-bottom: 10px; color: #334860; }
.transfer-export-groups label { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 13px; color: #52657c; cursor: pointer; }
.transfer-export-groups input, .transfer-workspace .order-export__deleted input { width: 16px !important; height: 16px !important; min-height: 0 !important; flex: 0 0 16px; margin: 0; }
.transfer-workspace .order-export__deleted { margin: 0 16px 16px; border: 0; background: transparent; padding: 12px 0 0; border-top: 1px solid #e6ebf2; border-radius: 0; font-weight: 400; }
@media(max-width: 1000px) { .transfer-export-groups { grid-template-columns: repeat(2,minmax(0,1fr)); } .transfer-steps { gap: 12px; flex-wrap: wrap; } }
@media(max-width: 650px) { .transfer-workspace > .settings-card { padding: 16px; } .transfer-workspace .inventory-nova-import__drop { grid-template-columns: 40px minmax(0,1fr); padding: 16px; } .transfer-workspace .transfer-file-icon { width: 40px; height: 40px; } .transfer-workspace .transfer-file-action { grid-column: 2; grid-row: 3; justify-self: start; margin-top: 10px; } .transfer-export-groups { grid-template-columns: 1fr; } .transfer-workspace .inventory-nova-import__summary { grid-template-columns: repeat(2,minmax(0,1fr)); } }

/* TRANSFER_EXPORT_PANEL_ROLLOUT: crm-order-intake-layout-1 */
.transfer-file-actions { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 16px; align-items: stretch; }
.transfer-workspace .transfer-export-launch { display: flex; align-items: center; gap: 14px; padding: 22px; border: 1px solid #d2dfee; border-radius: 10px; background: #f5f9ff; color: #2e527d; text-align: left; cursor: pointer; font: inherit; }
.transfer-export-launch:hover { background: #eaf2ff; border-color: #8eadd2; }
.transfer-export-launch:focus-visible { outline: 2px solid #347ac7; outline-offset: 3px; }
.transfer-export-launch > span:nth-child(2) { flex: 1; }
.transfer-export-launch strong { display: block; font-size: 15px; }
.transfer-export-launch small { display: block; margin-top: 7px; color: #687e98; font-size: 12px; }
.transfer-export-launch > span:last-child { font-size: 20px; }
.transfer-workspace .transfer-export-launch .transfer-file-icon { flex-shrink: 0; width: 40px; height: 40px; }
.transfer-export-panel { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(720px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; padding: 0; border: 0; border-radius: 14px 0 0 14px; background: #fff; color: #29394c; box-shadow: -12px 0 50px #14284226; }
.transfer-export-panel[open] { display: flex; flex-direction: column; }
.transfer-export-panel .button { border-radius: 6px; min-height: 34px; font-weight: 600; }
.transfer-export-panel::backdrop { background: #15253c60; backdrop-filter: blur(2px); }
.transfer-export-panel__header { display: flex; gap: 20px; justify-content: space-between; align-items: flex-start; padding: 26px 28px 22px; border-bottom: 1px solid #e2e9f2; }
.transfer-export-panel__header h2 { font-size: 23px; margin: 0 0 8px; }
.transfer-export-panel__header p { margin: 0; color: #708198; font-size: 14px; }
.transfer-export-panel__body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 28px; flex: 1; }
.transfer-export-panel__scope { margin: 0 0 22px; padding: 12px 14px; border-radius: 8px; background: #f4f7fb; color: #687d96; font-size: 13px; line-height: 1.5; }
.transfer-export-panel__presets { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; font-size: 13px; color: #62748b; }
.transfer-export-panel__presets > div { display: flex; gap: 6px; }
.transfer-export-panel__groups { display: grid; gap: 10px; }
.transfer-export-group { border: 1px solid #dce5f0; border-radius: 10px; overflow: hidden; }
.transfer-export-group > summary { display: flex; align-items: center; gap: 12px; padding: 16px; cursor: pointer; list-style: none; font-size: 14px; background: #fafcff; }
.transfer-export-group > summary::-webkit-details-marker { display: none; }
.transfer-export-group > summary::after { content: '⌄'; color: #7589a2; transition: transform .15s; }
.transfer-export-group[open] > summary::after { transform: rotate(180deg); }
.transfer-export-group > summary strong { flex: 1; }
.transfer-export-group > summary [data-export-group-count] { font-size: 12px; color: #617a98; background: #edf2f8; border-radius: 5px; padding: 3px 8px; }
.transfer-export-group__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; padding: 0 16px 8px; border-top: 1px solid #e7edf4; }
.transfer-export-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; margin: 0; padding: 10px 0; border-bottom: 1px solid #edf1f6; cursor: pointer; font-size: 13px; font-weight: 500; line-height: 1.4; }
.transfer-export-toggle input[type=checkbox] { appearance: none; -webkit-appearance: none; flex: 0 0 34px; width: 34px; height: 20px; margin: 0; padding: 2px; background: #ccd6e2; border: none; border-radius: 20px; cursor: pointer; transition: background .15s; }
.transfer-export-toggle input[type=checkbox]::before { content: ''; display: block; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #172b4826; transition: transform .15s; }
.transfer-export-toggle input[type=checkbox]:checked { background: #347ac7; }
.transfer-export-toggle input[type=checkbox]:checked::before { transform: translateX(14px); }
.transfer-export-toggle input:focus-visible { outline: 2px solid #347ac7; outline-offset: 3px; }
.transfer-export-toggle input:disabled { opacity: .5; cursor: wait; }
.transfer-export-toggle small { display: block; margin-top: 4px; font-weight: 400; font-size: 12px; color: #7a899c; }
.transfer-export-panel__deleted { margin-top: 22px; padding: 16px 0; border-top: 1px solid #e2e9f2; border-bottom: 0; }
.transfer-export-panel__footer { padding: 18px 28px; border-top: 1px solid #e2e9f2; background: #fff; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.transfer-export-panel__footer .settings-status { flex: 1; min-width: 180px; font-size: 13px; overflow-wrap: anywhere; }
.transfer-export-panel__footer > div { display: flex; gap: 10px; margin-left: auto; }
.transfer-export-panel #downloadOrdersExportButton { background: #347ac7; color: #fff; border-color: #347ac7; }
.transfer-export-panel #downloadOrdersExportButton:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 1150px) { .transfer-file-actions { grid-template-columns: minmax(0, 1fr); } .transfer-workspace .transfer-export-launch { padding: 16px 22px; } }
@media (max-width: 600px) { .transfer-export-panel { border-radius: 0; } .transfer-export-panel__header, .transfer-export-panel__body, .transfer-export-panel__footer { padding: 20px; } .transfer-export-group__fields { grid-template-columns: 1fr; } }

/* ORDER_INTAKE_LAYOUT_ROLLOUT: crm-order-intake-layout-1 */
.intake-settings-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(250px,1fr); gap: 22px; align-items: start; }
.intake-settings-intro { grid-column: 1 / -1; }
.intake-settings-intro h2 { margin: 0 0 7px; }
.intake-settings-intro p, .intake-settings-section-head p { color: #718198; font-size: 13px; line-height: 1.5; margin: 0; }
.intake-settings-fields, .intake-settings-devices { border: 1px solid #dee6f0; border-radius: 10px; overflow: hidden; background: #fff; }
.intake-settings-section-head { padding: 18px; border-bottom: 1px solid #e6edf4; }
.intake-settings-section-head h3 { margin: 0 0 7px; font-size: 17px; }
.intake-settings-columns, .intake-settings-field { display: grid; grid-template-columns: minmax(0,1fr) 130px 105px; gap: 12px; padding: 12px 18px; align-items: center; }
.intake-settings-columns { background: #f5f8fc; color: #77879c; font-size: 12px; }
.intake-settings-columns > span:not(:first-child) { text-align: center; }
.intake-settings-field { min-height: 68px; border-bottom: 1px solid #edf1f6; }
.intake-settings-field strong { font-size: 13px; font-weight: 600; }
.intake-settings-field small { display: block; font-size: 12px; line-height: 1.4; margin-top: 4px; color: #8190a3; }
.intake-settings-cell { display: flex; justify-content: center; }
.intake-settings-fixed { font-size: 12px; color: #8190a3; }
.intake-brand-visibility { display: grid; width: 100%; gap: 9px; }
.intake-brand-visibility label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: #60738c; }
.intake-setting-switch[type=checkbox] { appearance: none; -webkit-appearance: none; flex: 0 0 34px; width: 34px; height: 20px; border: 0; border-radius: 20px; padding: 2px; margin: 0; background: #cbd5e1; cursor: pointer; transition: background .15s; }
.intake-setting-switch[type=checkbox]::before { content: ''; display: block; width: 16px; height: 16px; background: #fff; border-radius: 50%; box-shadow: 0 1px 2px #172b4826; transition: transform .15s; }
.intake-setting-switch[type=checkbox]:checked { background: #347ac7; }
.intake-setting-switch[type=checkbox]:checked::before { transform: translateX(14px); }
.intake-setting-switch:focus-visible { outline: 2px solid #347ac7; outline-offset: 3px; }
.intake-setting-switch:disabled { opacity: .4; cursor: not-allowed; }
.intake-settings-footnote { margin: 0; padding: 14px 18px; font-size: 12px; line-height: 1.5; color: #7b8ba0; background: #fafcff; }
.intake-settings-device { padding: 16px 18px; border-bottom: 1px solid #e9eef5; }
.intake-settings-device__header { display: flex; gap: 12px; align-items: center; }
.intake-settings-device__header strong { flex: 1; font-size: 13px; }
.intake-settings-device__header > span { color: #8291a4; font-size: 11px; }
.intake-settings-device details { margin-top: 12px; }
.intake-settings-device summary { cursor: pointer; font-size: 12px; color: #587da8; }
.intake-settings-device__details { margin-top: 12px; padding: 12px; background: #f6f9fd; border-radius: 7px; font-size: 12px; color: #657a92; }
.intake-settings-device__details p { margin: 0 0 10px; }
.intake-settings-kit { display: flex; flex-wrap: wrap; gap: 5px; }
.intake-settings-kit span { padding: 4px 7px; border: 1px solid #dfe7f1; border-radius: 5px; background: #fff; }
.intake-settings-device-status { margin: 0; padding: 0 18px; color: #9a660f; font-size: 12px; }
.intake-settings-device-status:not(:empty) { padding: 12px 18px; }
@media(max-width:1450px) { .intake-settings-layout { grid-template-columns: minmax(0,1fr); } .intake-settings-devices { max-width: none; } }
@media(max-width:650px) { .intake-settings-columns, .intake-settings-field { grid-template-columns: minmax(0,1fr) 100px 90px; padding: 12px 10px; gap: 7px; } .intake-settings-field small { font-size: 11px; } .intake-settings-columns { font-size: 11px; } }

/* COMMUNICATION_WORKSPACE_ROLLOUT: crm-communication-workspace-1 */
.comm-workspace__fieldset { display: grid; gap: 16px; min-width: 0; border: 0; padding: 0; margin: 0; }
.comm-workspace__options { display: grid; grid-template-columns: minmax(200px,280px) 1fr; gap: 14px 30px; align-items: center; }
.comm-workspace__options > label:first-child { display: grid; gap: 7px; font-size: 13px; }
.comm-workspace__toggle { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.comm-workspace__delivery { grid-column: 1 / -1; margin: 0; color: #6b7c91; font-size: 13px; line-height: 1.5; }
.comm-workspace__body { display: grid; grid-template-columns: 220px minmax(0,1fr); padding: 0 !important; overflow: hidden; }
.comm-workspace__tabs { padding: 12px; background: #f8fafc; border-right: 1px solid #e4ebf3; }
.comm-workspace__tabs button { display: grid; gap: 6px; width: 100%; padding: 14px 12px; text-align: left; border: 1px solid transparent; background: transparent; border-radius: 7px; cursor: pointer; color: #52647a; font: inherit; }
.comm-workspace__tabs button[aria-selected=true] { background: #eaf2fe; color: #285b96; border-color: #d7e5f8; }
.comm-workspace__tabs strong { font-size: 13px; font-weight: 600; }
.comm-workspace__tabs small { font-size: 11px; color: #7a899b; }
.comm-workspace__editor { padding: 18px; min-width: 0; }
.comm-workspace__heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.comm-workspace__heading h2 { margin: 0; font-size: 18px; }
.comm-workspace__manual { color: #7a899b; font-size: 12px; }
.comm-workspace__text { display: grid; gap: 8px; font-size: 12px; color: #65758a; }
.comm-workspace__text textarea { width: 100%; box-sizing: border-box; min-height: 110px; resize: vertical; font-size: 14px; font-weight: 400; line-height: 1.6; }
.comm-workspace__variables { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.comm-workspace__variables > span { font-size: 12px; color: #7a899b; margin-right: 4px; }
.comm-workspace__variables .button { font-size: 12px; min-height: 29px; padding: 5px 9px; }
.comm-workspace__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 11px; color: #7a899b; margin: 8px 0 14px; }
.comm-workspace__preview { border: 1px solid #dfe8f3; background: #f6f9fd; border-radius: 9px; padding: 14px; }
.comm-workspace__preview h3 { margin: 0 0 6px; font-size: 14px; }
.comm-workspace__sample { font-size: 11px; color: #7a899b; margin: 0 0 13px; }
.comm-workspace [data-comm-preview] { font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.comm-workspace__warning { font-size: 12px; color: #98640d; overflow-wrap: anywhere; }
.comm-workspace__warning:empty { display: none; }
.comm-workspace__fieldset:disabled { opacity: .7; }
.comm-workspace [hidden] { display: none !important; }
@media (max-width: 1100px) {
  .comm-workspace__body { grid-template-columns: 180px minmax(0,1fr); }
  .comm-workspace__editor { padding: 16px; }
}
@media (max-width: 760px) {
  .comm-workspace__options, .comm-workspace__body { grid-template-columns: minmax(0,1fr); }
  .comm-workspace__tabs { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid #e4ebf3; }
  .comm-workspace__tabs button { flex: 0 0 160px; }
  .comm-workspace__heading { align-items: flex-start; flex-direction: column; }
}

/* CASHBOX_BRANDS_ROLLOUT: crm-cashbox-brands-1 */
.integrations-brands { margin: 14px 0; }
.integrations-brands > p { margin: 0 0 8px; font-size: 13px; }
.integrations-brands ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.integrations-brands li { padding: 5px 10px; border: 1px solid #dce4e9; border-radius: 8px; background: #f7f9fb; color: #344455; font-size: 13px; }
.integrations-compatibility { margin-top: 12px; color: #526274; font-size: 13px; line-height: 1.55; }
.integrations-compatibility summary { cursor: pointer; color: #263b50; font-weight: 600; }
.integrations-compatibility p { margin: 10px 0; }
.integrations-compatibility a { color: #237b63; }

/* FINANCE_ACCOUNTS_ROLLOUT: crm-finance-accounts-2 */
.finance-catalog { padding: 20px; }
.finance-catalog__head { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 16px; }
.finance-catalog__head h3 { margin: 0 0 8px; }
.finance-catalog__head p, .finance-catalog__row small { color: #687887; font-size: 13px; }
.finance-catalog__archive { display: flex; gap: 8px; align-items: center; margin: 14px 0; font-size: 14px; }
.finance-catalog__row { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(220px, 1.6fr) 110px auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid #e4e9ee; }
.finance-catalog__row small { display: block; margin-top: 6px; line-height: 1.5; }
.finance-catalog__row span { font-size: 13px; }
.finance-catalog__row.is-archived { opacity: .7; }
.finance-catalog__actions { display: flex; gap: 8px; }
.finance-account-editor form { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.finance-account-editor fieldset { display: grid; gap: 12px; margin: 20px 0; padding: 16px; border: 1px solid #dce4e9; border-radius: 8px; }
.finance-account-editor fieldset label { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.finance-account-editor__footer { padding: 16px 24px; border-top: 1px solid #e4e9ee; display: flex; align-items: center; gap: 16px; justify-content: space-between; }
/* crm-order-payment-auto-account-1: autoIssueAccountEnabled hides the only valid account. */
.contact-drawer.is-issue.has-managed-accounts:not(.is-payment-mixed):not(.auto-payment-account) .payment-field--account { display: grid; }
/* crm-order-prepayment-account-1: order prepayments use the configured account without a duplicate selector. */
.contact-drawer.auto-payment-account .payment-field--account { display: none; }
/* crm-order-payment-recipient-position-1: keep the transfer recipient beside the chosen method. */
.contact-drawer.is-issue.auto-payment-account .payment-field--method .payment-field__hint { display: none; }
.contact-drawer.is-issue.auto-issue-warranty .payment-field--staff:not([hidden]) { order: -1; grid-column: 1; }
.contact-drawer.is-issue.auto-issue-warranty #warrantyPrintPanel { display: none; }
/* ISSUE_COMPACT_PAYMENT_ROLLOUT: crm-order-issue-compact-payment-1 */
.issue-payment-column { display: contents; }
@media (min-width: 1100px) {
  .contact-drawer.is-issue.compact-issue-payment .payment-section {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: start;
  }
  .contact-drawer.is-issue.compact-issue-payment .issue-payment-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    align-self: start;
  }
  .contact-drawer.is-issue.compact-issue-payment .issue-payment-column--left { grid-column: 1; }
  .contact-drawer.is-issue.compact-issue-payment .issue-payment-column--right { grid-column: 2; }
  .contact-drawer.is-issue.compact-issue-payment .issue-payment-column > :not([hidden]) {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
  }
  .contact-drawer.is-issue.compact-issue-payment .payment-field--method { order: 1; }
  .contact-drawer.is-issue.compact-issue-payment .payment-field--account { order: 2; }
  .contact-drawer.is-issue.compact-issue-payment #receiptPrintPanel { order: 3; }
  .contact-drawer.is-issue.compact-issue-payment .payment-field--staff:not([hidden]) { order: 4; }
  .contact-drawer.is-issue.compact-issue-payment .payment-field--amount { order: 5; min-height: 0; }
  .contact-drawer.is-issue.compact-issue-payment .payment-mixed-panel:not([hidden]) { order: 6; }
  .contact-drawer.is-issue.compact-issue-payment #issuePaymentPanel { order: 1; }
  .contact-drawer.is-issue.compact-issue-payment .issue-readiness-panel { order: 2; min-height: 0; }
  .contact-drawer.is-issue.compact-issue-payment .issue-problem-panel { order: 3; }
  .contact-drawer.is-issue.compact-issue-payment #issuePaymentPanel .issue-final-total-field {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 145px);
    align-items: center;
  }
  .contact-drawer.is-issue.compact-issue-payment #issuePaymentPanel .issue-payment-panel__summary {
    min-height: 38px;
    align-items: center;
    flex-direction: row;
  }
  .contact-drawer.is-issue.compact-issue-payment #issuePaymentPanel .issue-payment-panel__toggle { min-height: 34px; }
  .contact-drawer.is-issue.compact-issue-payment .issue-readiness__mini-status em {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
  .contact-drawer.is-issue-complete.compact-issue-payment .payment-section { display: block; }
  .contact-drawer.is-issue-complete.compact-issue-payment .issue-payment-column--left { display: none; }
}
/* ISSUE_MIXED_RECIPIENT_ROLLOUT: crm-order-issue-mixed-recipient-1 */
.contact-drawer.is-issue .payment-mixed-panel__grid > #paymentStaffField:not([hidden]) {
  display: grid;
  grid-column: auto;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  order: 0;
  gap: 5px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}
.contact-drawer.is-issue .payment-mixed-panel__grid > #paymentStaffField > span {
  padding-top: 0;
  text-align: left;
  color: #536271;
  font-size: 12px;
  font-weight: 800;
  line-height: normal;
  text-transform: none;
}
.contact-drawer.is-issue .payment-mixed-panel__grid > #paymentStaffField select {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 7px 26px 7px 9px;
  border: 1px solid #d5dee8;
  border-radius: 5px;
  background-color: #ffffff;
  font-size: 12px;
  font-weight: 750;
}
@layer crm-field-system {
  html.crm-ui-fields-beta .contact-drawer.is-issue .payment-mixed-panel__grid > #paymentStaffField select {
    min-height: 38px !important;
    height: 38px !important;
    padding: 7px 26px 7px 9px !important;
    border-color: #d5dee8 !important;
    border-radius: 5px !important;
    font-size: 12px !important;
    font-weight: 750 !important;
  }
}
/* KKT_AUTO_ROLLOUT: crm-order-payment-kkt-auto-1 */
/* KKT_SELECT_ROLLOUT: crm-order-payment-kkt-select-1 */
/* KKT_MANUAL_ROLLOUT: crm-order-payment-kkt-manual-1 */
.contact-drawer.auto-kkt-payment #receiptPrintPanel .receipt-print-choice,
.contact-drawer.auto-kkt-payment #receiptPrintPanel .issue-payment-panel__title,
.contact-drawer.auto-kkt-payment #receiptPrintPanel .receipt-print-choice__hint,
.contact-drawer.auto-kkt-payment #receiptPrintPanel .issue-payment-panel__summary,
.contact-drawer.auto-kkt-payment #receiptPrintPanel .fiscal-receipt-preview,
.contact-drawer.auto-kkt-payment #receiptPrintPanel .receipt-print-panel__check { display: none; }
.contact-drawer.auto-kkt-payment #receiptPrintPanel:not([hidden]) { display: block; }
.payment-cashbox-choice:not([hidden]) { display: grid; gap: 7px; }
.payment-cashbox-choice span { color: #687887; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.payment-cashbox-choice select { width: 100%; min-height: 38px; }
.payment-cashbox-choice strong { font-size: 14px; color: #263b50; }
.payment-cashbox-choice select[hidden], .payment-cashbox-choice strong[hidden] { display: none; }
.payment-cashbox-status:not([hidden]) { display: block; margin-top: 8px; color: #a32d2d; }
[data-mixed-account] { margin-top: 6px; width: 100%; }
@media (max-width: 1200px) { .finance-catalog__row { grid-template-columns: minmax(150px, 1fr) 1.4fr; } .finance-catalog__head { flex-wrap: wrap; } }

/* COMPANY_DEFAULTS_ROLLOUT: crm-company-reset-4 */
.company-defaults-panel { grid-column: 1 / -1; width: 100%; min-width: 0; margin-top: 16px; }
.company-defaults-panel p { max-width: 760px; line-height: 1.5; }
.company-defaults-panel hr { border: 0; border-top: 1px solid #e1e6ec; margin: 20px 0; }
.company-defaults-panel dl { display: grid; grid-template-columns: minmax(140px, 190px) minmax(0, 1fr); gap: 10px 18px; margin: 20px 0; }
.company-defaults-panel dd { margin: 0; }
.company-defaults-panel [data-defaults-confirm]:not([hidden]) { background: #f5f8fc; padding: 12px; margin-top: 12px; border-radius: 6px; }
@media (max-width: 600px) { .company-defaults-panel dl { grid-template-columns: 1fr; gap: 4px; } .company-defaults-panel dd { margin-bottom: 10px; } }

.company-defaults-panel .company-reset-fiscal-confirm { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; }
.company-defaults-panel input[data-company-reset-fiscal] { width: 18px; height: 18px; flex: 0 0 18px; margin: 2px 0 0; }

.company-defaults-panel [data-company-reset-status] { white-space: pre-line; }
.session-center-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(18, 32, 51, .5);
}
.session-center {
  width: min(620px, 100%);
  max-height: min(88vh, 780px);
  overflow: auto;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(18, 32, 51, .22);
}
.session-center-head, .session-center-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.session-center-head h2, .session-center-policy h3 { margin: 0; }
.session-center-list { margin: 18px 0; border-top: 1px solid #e0e5eb; }
.session-center-row { padding: 14px 0; border-bottom: 1px solid #e0e5eb; }
.session-center-row small { display: block; margin-top: 4px; color: #657283; }
.session-center-current { color: #08774e; font-size: .85em; }
.session-center-policy { margin: 20px 0; padding: 16px; border-radius: 12px; background: #f4f7fb; }
.session-center-policy label, .session-center-password { display: grid; gap: 7px; margin: 12px 0; }
.session-center-policy select, .session-center-password input { width: 100%; max-width: 360px; }
.session-center-status { min-height: 1.4em; color: #9b2f2f; }
/* crm-auth-login-alerts-1: scoped to the gated history tab. */
.session-center--history { width: min(1120px, 100%); }
.auth-history-tabs:empty { display: none; }
.auth-history-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.auth-history-filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin: 18px 0; }
.auth-history-filters label { display: grid; gap: 6px; flex: 1 1 140px; font-size: 13px; }
.auth-history-filters label:first-child { flex-basis: 220px; }
.auth-history-filters input, .auth-history-filters select { width: 100%; min-height: 38px; }
.auth-history-table-wrap { overflow-x: auto; }
.auth-history-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.auth-history-table th, .auth-history-table td { padding: 12px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid #e0e5eb; }
.auth-history-table th { color: #526071; font-size: 12px; background: #f4f7fb; }
.auth-history-table code { white-space: nowrap; font-size: 12px; }
.auth-history-pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0; }
.auth-history-note { color: #657283; font-size: 12px; }
@media (max-width: 600px) {
  .session-center { padding: 18px; }
  .session-center-row { align-items: flex-start; }
}

/* PAYROLL_PAYOUT_FORM_ROLLOUT: crm-payroll-payout-form-1 */
.payroll-payment-fields { display:grid; gap:14px; }
.payroll-payment-fields[hidden] { display:none !important; }
.payroll-payment-summary { margin:0 0 0 178px; padding:12px; border:1px solid #d8e5f1; border-radius:8px; background:#f3f8fd; line-height:1.6; }
.payroll-payment-tools { margin:0 0 0 178px; display:flex; gap:8px; flex-wrap:wrap; }
#paymentDrawer.is-payroll-payout .payment-field--staff,
#paymentDrawer.is-payroll-payout .payment-field--order,
#paymentDrawer.is-payroll-payout #paymentMixedPanel,
#paymentDrawer.is-payroll-payout #receiptPrintPanel,
#paymentDrawer.is-payroll-payout #issuePaymentMethodButtons,
#paymentDrawer.is-payroll-payout #paymentAccountHint { display:none !important; }
@media(max-width:640px) { .payroll-payment-summary,.payroll-payment-tools { margin-left:0; } }

/* PAYROLL_ADVANCE_ROLLOUT: crm-payroll-advance-1 — shared form, target gate class only. */
#paymentDrawer.is-payroll-advance { width:min(620px, calc(100vw - 32px)) !important; height:auto; max-height:calc(100dvh - 32px); }
#paymentDrawer.is-payroll-advance .contact-form { height:auto; max-height:calc(100dvh - 32px); grid-template-rows:auto minmax(0,1fr) auto; }
#paymentDrawer.is-payroll-advance .contact-form__body { padding:18px; min-height:0; overflow:auto; }
#paymentDrawer.is-payroll-advance .payment-section { display:flex; flex-direction:column; gap:12px; padding:0; }
#paymentDrawer.is-payroll-advance #paymentSectionTitle,
#paymentDrawer.is-payroll-advance .payment-field--type,
#paymentDrawer.is-payroll-advance .payment-field--category { display:none !important; }
#paymentDrawer.is-payroll-advance .payroll-payment-fields { order:0; gap:12px; }
#paymentDrawer.is-payroll-advance .payment-field--account { order:1; }
#paymentDrawer.is-payroll-advance .payment-field--method { order:2; }
#paymentDrawer.is-payroll-advance .payment-field--amount { order:3; }
#paymentDrawer.is-payroll-advance .payment-field--comment { order:4; }
#paymentDrawer.is-payroll-advance .ro-row { display:grid; grid-template-columns:140px minmax(0,1fr); gap:10px; margin:0; }
#paymentDrawer.is-payroll-advance .ro-row[hidden] { display:none; }
#paymentDrawer.is-payroll-advance .ro-row > span { text-align:left; }
#paymentDrawer.is-payroll-advance .payroll-payment-summary,
#paymentDrawer.is-payroll-advance .payroll-payment-tools { margin-left:0; }
#paymentDrawer.is-payroll-advance textarea { min-height:64px; }
@media(max-width:540px) { #paymentDrawer.is-payroll-advance .ro-row { grid-template-columns:1fr; gap:5px; } }

/* ACQUIRING_FEE_ROLLOUT: crm-acquiring-fee-1 */
.finance-account-editor .finance-acquiring-rule { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; }
.finance-account-editor .finance-acquiring-rule[hidden] { display:none; }
.finance-account-editor .finance-acquiring-rule input[type=number] { width:90px; }

/* FINANCE_INTERFACE_ROLLOUT: crm-finance-interface-3 */
dialog.finance-interface-editor { width:min(680px,calc(100vw - 24px)); height:auto; max-height:calc(100dvh - 32px); inset:16px; margin:auto; border-radius:14px; }
.finance-interface-editor .integrations-panel__head { padding:18px 22px; }
.finance-interface-editor .integrations-panel__head h2 { font-size:21px; }
.finance-interface-editor .integrations-panel__scroll { padding:18px 22px; overflow-y:auto; }
.finance-interface-editor fieldset { margin:14px 0; padding:12px 14px; gap:10px; }
.finance-interface-editor .settings-form { gap:12px; }
.finance-interface-editor .finance-account-editor__footer { padding:14px 22px; }
@media (max-width:760px) { dialog.finance-interface-editor { width:100%; max-height:100dvh; height:100dvh; inset:0; border-radius:0; } }

/* FINANCE_INTERFACE_ROLLOUT: crm-finance-interface-3 */
#paymentDrawer.is-unified-payout { width:min(540px,calc(100vw - 24px)) !important; }
#paymentDrawer.is-unified-payout .ro-row { grid-template-columns:1fr; gap:5px; }
#paymentDrawer.is-unified-payout .payroll-modes { display:flex; gap:4px; padding:4px; background:#edf2f9; border-radius:9px; }
#paymentDrawer.is-unified-payout .payroll-modes[hidden] { display:none; }
#paymentDrawer.is-unified-payout .payroll-modes button { flex:1; padding:10px 6px; border:0; border-radius:6px; background:transparent; color:#52647b; font-weight:650; cursor:pointer; }
#paymentDrawer.is-unified-payout .payroll-modes button[aria-pressed=true] { background:#2869d3; color:#fff; }
#paymentDrawer.is-unified-payout .payroll-payment-summary { background:#f0f5fc; padding:14px; border-radius:8px; line-height:1.7; }

/* FINANCE_INTERFACE_ROLLOUT: crm-finance-interface-3 */
#paymentDrawer.finance-operation-v3:not(.is-issue){width:min(540px,calc(100vw - 24px))!important;max-height:calc(100dvh - 32px);height:auto;border-radius:14px}
#paymentDrawer.finance-operation-v3:not(.is-issue) .contact-form{height:auto;max-height:calc(100dvh - 32px);grid-template-rows:auto minmax(0,1fr) auto}
#paymentDrawer.finance-operation-v3:not(.is-issue) .contact-form__body{padding:20px 24px;overflow:auto;min-height:0}
#paymentDrawer.finance-operation-v3:not(.is-issue) .payment-section{gap:14px;padding:0}
#paymentDrawer.finance-operation-v3:not(.is-issue) .ro-row{display:grid;grid-template-columns:1fr;gap:6px;margin:0}
#paymentDrawer.finance-operation-v3:not(.is-issue) .ro-row>span{text-align:left}
#paymentDrawer.finance-operation-v3:not(.is-issue) .payment-field--amount input{font-size:22px;min-height:46px;font-weight:650}
#paymentDrawer.finance-operation-v3:not(.is-issue) textarea{min-height:64px}
#paymentDrawer.finance-operation-v3:not(.is-issue) .drawer__actions{padding:16px 24px;justify-content:flex-end}
#paymentDrawer.finance-operation-v3:not(.is-issue) .payroll-payment-summary{font-size:13px;line-height:1.7}
#paymentDrawer.finance-operation-v3:not(.is-issue) .payroll-payment-tools{margin:0}
#paymentDrawer.finance-operation-v3:not(.is-issue) .ro-row[hidden]{display:none}

/* Finance employee card — crm-finance-interface-4 */
.payroll-staff-link{border:0;background:none;padding:0;color:#235b9f;font:inherit;font-weight:700;text-align:left;cursor:pointer}.payroll-staff-link:hover{text-decoration:underline}.payroll-staff-link span{margin-left:6px;color:#8796ab}
.payroll-staff-card{width:min(900px,calc(100vw - 32px));max-height:90vh;box-sizing:border-box;border:1px solid #dce4ee;border-radius:16px;padding:0;color:#243348;box-shadow:0 24px 80px #152b4a33;background:white}.payroll-staff-card::backdrop{background:#172c4a66}.payroll-staff-card header,.payroll-staff-card footer{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:22px 26px}.payroll-staff-card h2{margin:5px 0 0;font-size:24px}.payroll-staff-card small{display:block;color:#738198;font-size:12px}.payroll-staff-card__totals{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:0 26px 22px}.payroll-staff-card__totals>div{border:1px solid #e2e8f1;border-radius:10px;padding:14px}.payroll-staff-card__totals strong{display:block;font-size:21px;margin-top:8px}.payroll-staff-card nav{display:flex;border-bottom:1px solid #e2e8f1;padding:0 26px;gap:22px}.payroll-staff-card nav button{padding:14px 0;border:0;border-bottom:2px solid transparent;background:none;font:inherit;color:#738198;cursor:pointer}.payroll-staff-card nav button.active{color:#2464ac;border-bottom-color:#2464ac}.payroll-staff-card section{padding:18px 26px}.payroll-staff-card section[hidden]{display:none}.payroll-staff-card section p{font-size:13px;color:#738198}.payroll-staff-card footer{border-top:1px solid #e2e8f1;background:#f8fafc;font-size:13px}.payroll-staff-card__scroll,.payroll-staff-card .payroll-breakdown{overflow-x:auto}.payroll-staff-card table{width:100%;border-collapse:collapse;font-size:14px}.payroll-staff-card th,.payroll-staff-card td{padding:14px 10px;text-align:left;border-bottom:1px solid #e8edf4}.payroll-staff-card th{color:#738198;font-weight:500}.payroll-staff-card .payroll-breakdown__row{min-width:680px}.payroll-staff-card .payroll-breakdown__title{margin-bottom:15px}@media(max-width:600px){.payroll-staff-card__totals{grid-template-columns:repeat(2,1fr)}.payroll-staff-card header,.payroll-staff-card footer,.payroll-staff-card section{padding:16px}.payroll-staff-card__totals{margin:0 16px 16px}.payroll-staff-card nav{padding:0 16px;gap:14px}}
.payroll-staff-card .payroll-breakdown{min-width:0;padding:0;background:transparent}.payroll-staff-card .payroll-breakdown__row{grid-template-columns:105px 95px minmax(140px,1fr) minmax(140px,1fr) 70px 100px}.payroll-staff-card .payroll-breakdown__row>*{white-space:normal;overflow-wrap:anywhere}.payroll-staff-card .payroll-breakdown__title{flex-wrap:wrap}

/* FINANCE_MOBILE_LAYOUT_ROLLOUT: crm-finance-mobile-layout-1 */
@media(max-width:760px){
 html.finance-mobile-layout #paymentDrawer.finance-operation-v3:not(.is-issue){width:100%!important;max-width:100vw;height:100dvh;max-height:100dvh;inset:0;margin:0;border-radius:0;transform:none!important}
 html.finance-mobile-layout #paymentDrawer.finance-operation-v3:not(.is-issue) .contact-form{height:100%;max-height:100dvh}
 html.finance-mobile-layout #paymentDrawer.finance-operation-v3:not(.is-issue) .contact-form__body{padding:16px;overscroll-behavior:contain}
 html.finance-mobile-layout #paymentDrawer.finance-operation-v3:not(.is-issue) input,html.finance-mobile-layout #paymentDrawer.finance-operation-v3:not(.is-issue) select{font-size:16px;min-height:44px;max-width:100%;min-width:0}
 html.finance-mobile-layout #paymentDrawer.finance-operation-v3:not(.is-issue) .drawer__actions{padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:white}
 html.finance-mobile-layout #paymentDrawer.finance-operation-v3:not(.is-issue) .drawer__actions .button{width:100%;min-height:48px}
 html.finance-mobile-layout .payroll-staff-card{width:100vw;max-width:100vw;max-height:100dvh;height:100dvh;border-radius:0;margin:0;inset:0}
 html.finance-mobile-layout .payroll-staff-card footer{padding-bottom:calc(16px + env(safe-area-inset-bottom))}
 html.finance-mobile-layout .payroll-staff-card .button{min-height:44px}
 html.finance-mobile-layout .payroll-staff-card .payroll-breakdown__row{min-width:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;margin-bottom:10px;border:1px solid #e1e8ef;border-radius:10px}
 html.finance-mobile-layout .payroll-staff-card .payroll-breakdown__row--head{display:none}
 html.finance-mobile-layout .payroll-staff-card .payroll-breakdown__row>*{padding:0}
 html.finance-mobile-layout .payroll-staff-card .payroll-breakdown__row>*::before{display:block;font-size:11px;color:#718097;font-weight:400;margin-bottom:4px}
 html.finance-mobile-layout .payroll-staff-card .payroll-breakdown__row>:nth-child(1)::before{content:'Документ'}
 html.finance-mobile-layout .payroll-staff-card .payroll-breakdown__row>:nth-child(2)::before{content:'Дата'}
 html.finance-mobile-layout .payroll-staff-card .payroll-breakdown__row>:nth-child(3){grid-column:1/-1}
 html.finance-mobile-layout .payroll-staff-card .payroll-breakdown__row>:nth-child(4)::before{content:'База расчёта'}
 html.finance-mobile-layout .payroll-staff-card .payroll-breakdown__row>:nth-child(5)::before{content:'Правило'}
 html.finance-mobile-layout .payroll-staff-card .payroll-breakdown__row>:nth-child(6)::before{content:'Начислено'}
 html.finance-mobile-layout .payroll-staff-card table,html.finance-mobile-layout .payroll-staff-card tbody{display:block}
 html.finance-mobile-layout .payroll-staff-card thead{display:none}
 html.finance-mobile-layout .payroll-staff-card tr{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #e1e8ef;padding:12px 0;gap:8px}
 html.finance-mobile-layout .payroll-staff-card td{border:0;padding:0;overflow-wrap:anywhere}
 html.finance-mobile-layout .payroll-staff-card td:last-child{text-align:right;font-weight:700}
 html.finance-mobile-layout .finance-detail-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);box-sizing:border-box;padding:20px}
}

/* FINANCE_MOBILE_REVIEW_ROLLOUT: crm-finance-mobile-layout-2 */
@media(max-width:760px){
 html.finance-mobile-review .finance-interface-editor .settings-form{grid-template-columns:minmax(0,1fr)}
 html.finance-mobile-review .finance-interface-editor input:not([type=checkbox]),html.finance-mobile-review .finance-interface-editor select{min-height:44px;font-size:16px;box-sizing:border-box;max-width:100%}
 html.finance-mobile-review .finance-interface-editor .button{min-height:44px;font-size:14px}
 html.finance-mobile-review .finance-interface-editor fieldset>label{min-height:44px;display:flex;align-items:center;gap:10px}
 html.finance-mobile-review .finance-interface-editor .finance-account-editor__footer{padding:12px 16px calc(12px + env(safe-area-inset-bottom))}
 html.finance-mobile-review .finance-interface-editor .finance-account-editor__footer .button{width:100%}
 html.finance-mobile-review .finance-interface-editor .integrations-panel__head{padding:14px 16px;gap:12px}
 html.finance-mobile-review .finance-interface-editor .integrations-panel__head h2{font-size:20px}
 html.finance-mobile-review .finance-interface-editor .integrations-panel__scroll{padding:16px}
}
@media(max-width:760px){
 html.finance-mobile-review #transferDrawer{width:100%!important;max-width:100vw;height:100dvh;max-height:100dvh;inset:0;margin:0;border-radius:0;transform:none!important}
 html.finance-mobile-review #transferDrawer .contact-form{height:100%;max-height:100dvh;grid-template-rows:auto minmax(0,1fr) auto}
 html.finance-mobile-review #transferDrawer .contact-form__body{padding:16px;overflow:auto;min-height:0}
 html.finance-mobile-review #transferDrawer .payment-section{padding:0;gap:16px}
 html.finance-mobile-review #transferDrawer .ro-row{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;margin:0}
 html.finance-mobile-review #transferDrawer input,html.finance-mobile-review #transferDrawer select,html.finance-mobile-review #transferDrawer textarea{font-size:16px;min-width:0;max-width:100%;min-height:44px;box-sizing:border-box;width:100%}
 html.finance-mobile-review #transferDrawer .drawer__header h1{font-size:20px;white-space:normal}
 html.finance-mobile-review #transferDrawer .drawer__actions{display:grid;grid-template-columns:1fr;padding:12px 16px calc(12px + env(safe-area-inset-bottom));gap:8px;background:white}
 html.finance-mobile-review #transferDrawer .button{min-height:44px;font-size:14px}
 html.finance-mobile-review .finance-settings-form .settings-form{grid-template-columns:minmax(0,1fr)}
 html.finance-mobile-review .finance-settings-form input:not([type=checkbox]),html.finance-mobile-review .finance-settings-form select{font-size:16px;min-height:44px;min-width:0;max-width:100%}
 html.finance-mobile-review .finance-settings-form .button{min-height:44px;white-space:normal}
}
@media(max-width:760px){html.finance-mobile-review #transferDrawer,html.finance-mobile-review #transferDrawer .contact-form__body{background:#fff}html.finance-mobile-review #transferDrawer .payment-field{padding:0;background:none;border:0;box-shadow:none}html.finance-mobile-review #transferDrawer .payment-field>span{text-transform:none;font-size:13px}html.finance-mobile-review #transferDrawer input,html.finance-mobile-review #transferDrawer select,html.finance-mobile-review #transferDrawer textarea{background:white;border-radius:6px}html.finance-mobile-review #transferDrawer .payment-section>h2{display:none}}

/* FINANCE_MOBILE_PAYOUT_FIX: crm-finance-mobile-payout-fix-1 */
@media(max-width:760px){
 html.finance-mobile-payout-fix :is(#paymentDrawer,#transferDrawer).open{z-index:90}
 html.finance-mobile-payout-fix :is(#paymentDrawerBackdrop,#transferDrawerBackdrop):not([hidden]){z-index:89}
 html.finance-mobile-payout-fix body:has(:is(#paymentDrawer,#transferDrawer).open) .mobile-bottom-nav{visibility:hidden;pointer-events:none}
 html.finance-mobile-payout-fix #paymentDrawer.finance-operation-v3:not(.is-issue) .contact-form{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto}
 html.finance-mobile-payout-fix #paymentDrawer.finance-operation-v3:not(.is-issue) .drawer__actions{position:relative;z-index:1;flex-shrink:0}
}

/* WAREHOUSE_CATALOG_TOOLS_ROLLOUT: crm-order-status-settings-1 */
.inventory-catalog-tools { position:relative; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.inventory-catalog-tools[hidden] { display:none; }
.inventory-catalog-selection { color:#65758c; font-size:12px; }
.inventory-catalog-tools .nsw-columns-menu { box-shadow:none; border-radius:8px; top:calc(100% + 6px); }
.inventory-catalog-tools .nsw-column-option { grid-template-columns:26px minmax(0,1fr) 60px 52px; }
.inventory-catalog-tools .nsw-column-move-actions { display:flex; gap:2px; }
.inventory-catalog-tools .nsw-column-move-actions button { width:24px; height:24px; padding:0; border:1px solid #cad6e2; border-radius:4px; background:white; color:#52677d; cursor:pointer; }
.inventory-catalog-tools .nsw-column-move-actions button:disabled { opacity:.3; }
.inventory-catalog-scroll { overflow-x:auto; max-width:100%; min-width:0; }
.inventory-catalog-data { border-collapse:collapse; table-layout:fixed; font-size:13px; }
.inventory-catalog-data th { position:relative; background:#f6f8fb; color:#63738b; text-align:left; font-weight:600; }
.inventory-catalog-data th, .inventory-catalog-data td.inventory-cell, .inventory-catalog-data td { display:table-cell; padding:12px 10px; min-height:0; min-width:0; height:auto; vertical-align:middle; border-bottom:1px solid #e3eaf2; border-right:1px solid #e9eef5; overflow:hidden; text-overflow:ellipsis; }
.inventory-catalog-data th:last-child, .inventory-catalog-data td:last-child { border-right:0; }
.inventory-catalog-data td .inventory-product { min-width:0; }
.inventory-catalog-data .inventory-product .contact-link { white-space:normal; text-align:left; }
.inventory-catalog-data .inventory-actions .button { margin:2px; }
.inventory-catalog-data .nsw-column-resizer { position:absolute; top:0; right:-3px; width:7px; height:100%; cursor:col-resize; z-index:2; }
.inventory-catalog-data .nsw-column-resizer:hover, .inventory-catalog-data .nsw-column-resizer:focus-visible { background:#bdd7f7; outline:none; }
.inventory-catalog-overlay { position:fixed; inset:0; background:rgba(19,34,52,.25); }
#inventoryCatalogDialog { position:fixed; inset:0; z-index:1500; display:flex; align-items:center; justify-content:center; }
.inventory-catalog-modal { position:relative; display:flex; flex-direction:column; width:min(980px,calc(100vw - 48px)); max-height:calc(100vh - 48px); background:#fff; border:1px solid #c9d6e4; border-radius:10px; overflow:hidden; }
.inventory-catalog-modal > header, .inventory-catalog-modal > footer { display:flex; align-items:center; justify-content:space-between; padding:14px 18px; gap:10px; border-bottom:1px solid #e1e8f0; }
.inventory-catalog-modal > header h2 { margin:0; font-size:20px; }
.inventory-catalog-modal > footer { justify-content:flex-end; border-bottom:0; border-top:1px solid #e1e8f0; background:#f6f9fc; }
.inventory-catalog-modal-body { padding:18px; overflow:auto; min-height:0; }
.inventory-catalog-modal-body > label { display:flex; align-items:center; gap:12px; margin:12px 0; }
.inventory-catalog-modal-body select, .inventory-catalog-modal-body input { min-height:34px; border:1px solid #c9d6e4; border-radius:4px; padding:6px 8px; background:white; color:#43566c; }
.inventory-import-mapping { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:12px 0; }
.inventory-import-mapping label { display:flex; flex-direction:column; gap:5px; font-size:12px; }
.inventory-import-mapping select { max-width:100%; }
.inventory-import-report { overflow:auto; max-height:290px; margin:12px 0; border:1px solid #e1e8f0; }
.inventory-import-report table { width:100%; border-collapse:collapse; font-size:13px; }
.inventory-import-report th, .inventory-import-report td { text-align:left; padding:7px 9px; border-bottom:1px solid #e1e8f0; }
.inventory-import-report th { background:#f5f8fc; position:sticky; top:0; }
.inventory-print-preview { width:100%; height:360px; border:1px solid #d5dee9; background:white; }

/* Catalog selection: no ellipsis or baseline overflow around checkbox. */
.inventory-catalog-data th.inventory-catalog-select-cell, .inventory-catalog-data td.inventory-catalog-select-cell { padding: 0; text-align: center; white-space: nowrap; text-overflow: clip; font-size: 0; line-height: 0; }
.inventory-catalog-data .inventory-catalog-select-cell input[type="checkbox"] { display: inline-block; width: 16px; height: 16px; min-width: 16px; min-height: 16px; margin: 0; padding: 0; vertical-align: middle; }

.warehouse-price-settings { max-width: 780px; }
.warehouse-price-row { display:grid!important; grid-template-columns:130px minmax(180px,1fr) 130px; gap:12px; align-items:center; padding:10px 0; border-bottom:1px solid #e3eaf2; }
.warehouse-price-row span { font-size:13px; }
.warehouse-price-row input[type=checkbox] { min-height:16px; width:16px; height:16px; vertical-align:middle; }
.warehouse-price-settings footer { display:flex; justify-content:flex-end; gap:8px; }

#warehousePriceSettings { position:fixed; inset:0; z-index:1600; display:flex; align-items:center; justify-content:center; background:rgba(19,34,52,.25); }

/* ORDER_STATUS_MENU_ROLLOUT: crm-order-status-settings-1 */
.order-status-trigger { font-family: inherit; text-align: left; cursor: pointer; }
.order-status-trigger:disabled { cursor: default; opacity: .6; }
/* ORDER_STATUS_TRIGGER_LAYOUT_ROLLOUT: crm-order-status-trigger-layout-1 */
.order-status-trigger--fixed-chevron { display: grid; grid-template-columns: minmax(0, 1fr) 8px; align-items: center; gap: 5px; padding: 0 8px !important; white-space: nowrap; }
.order-status-trigger__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-status-trigger__chevron { width: 6px; height: 6px; justify-self: end; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.order-status-menu { position: fixed; inset: auto; margin: 0; padding: 4px; box-sizing: border-box; border: 1px solid #d5dfeb; border-radius: 8px; background: #fff; color: #27384c; box-shadow: 0 6px 18px #20334d1c; z-index: 100100; overflow-y: auto; font-family: inherit; }
.order-status-menu__head { min-height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 1px 2px 4px 8px; color: #738195; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.order-status-menu__settings { width: 28px; height: 28px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #65758a; cursor: pointer; }
.order-status-menu__settings:hover, .order-status-menu__settings:focus-visible { background: #edf4ff; color: #2367bd; outline: 2px solid #8ab5ef; outline-offset: -2px; }
.order-status-menu__settings svg { width: 17px; height: 17px; }
.order-status-menu__item { width: 100%; min-height: 31px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 0; border-radius: 5px; padding: 3px 6px; background: transparent; color: #2763ba; font: inherit; cursor: pointer; text-align: left; }
.order-status-menu__item:hover, .order-status-menu__item:focus-visible { background: #edf4ff; outline: 2px solid #8ab5ef; outline-offset: -2px; }
.order-status-menu__badge { padding: 2px 7px; border: 1px solid; border-radius: 4px; font-size: 12px; font-weight: 600; line-height: 1.25; letter-spacing: normal; }
.order-status-menu__badge.list-status-select--accepted { color: #1973e1; background: #eaf2fe; }

/* ORDER_STATUS_SETTINGS_ROLLOUT: crm-order-status-settings-1 */
.order-status-settings-backdrop { position: fixed; inset: 0; z-index: 100200; display: grid; place-items: center; padding: 24px; background: rgba(26, 39, 56, .34); }
.order-status-settings { width: min(620px, calc(100vw - 32px)); max-height: min(760px, calc(100vh - 48px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #cad6e4; border-radius: 10px; background: #fff; color: #26364a; box-shadow: 0 18px 54px rgba(27, 44, 67, .2); font-family: inherit; }
.order-status-settings > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 18px 20px 14px; border-bottom: 1px solid #e1e8f0; }
.order-status-settings h2 { margin: 0; font-size: 20px; line-height: 1.25; }
.order-status-settings header p { margin: 5px 0 0; color: #6b7889; font-size: 13px; line-height: 1.45; }
.order-status-settings__close { width: 32px; height: 32px; flex: 0 0 auto; border: 1px solid #cad6e4; border-radius: 5px; background: #fff; color: #405169; font-size: 21px; line-height: 1; cursor: pointer; }
.order-status-settings__list { overflow-y: auto; padding: 8px 20px; }
.order-status-settings__row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #edf1f6; }
.order-status-settings__row:last-child { border-bottom: 0; }
.order-status-settings__row > input[type="color"] { width: 34px; height: 34px; padding: 2px; border: 1px solid #c9d5e3; border-radius: 5px; background: #fff; cursor: pointer; }
.order-status-settings__row label { min-width: 0; display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 10px; }
.order-status-settings__row label span { color: #748195; font-size: 12px; }
.order-status-settings__row input[type="text"] { width: 100%; min-width: 0; height: 34px; box-sizing: border-box; border: 1px solid #c9d5e3; border-radius: 5px; padding: 0 10px; color: #26364a; font: inherit; }
.order-status-settings__move { display: flex; gap: 4px; }
.order-status-settings__move button { width: 30px; height: 30px; border: 1px solid #c9d5e3; border-radius: 5px; background: #fff; color: #405169; cursor: pointer; }
.order-status-settings__move button:disabled { opacity: .35; cursor: default; }
.order-status-settings > footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 13px 20px; border-top: 1px solid #e1e8f0; background: #f7f9fc; }
.order-status-settings > footer .settings-status { margin-right: auto; }

/* crm-auth-login-alerts-1: notification preferences inside the device dialog. */
.session-center-policy .auth-login-alerts-choice { display: flex; align-items: flex-start; gap: 10px; max-width: none; }
.session-center-policy .auth-login-alerts-choice input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; margin: 1px 0 0; }

/* ORDER_DETAIL_FORM_LAYOUT_ROLLOUT: crm-order-detail-form-layout-1 */
@media (min-width: 1000px) {
  #drawer .order-detail-form-layout {
    display: block;
    max-width: none;
    width: 100%;
  }
  #drawer .order-detail-form-layout > .order-intake-column,
  #drawer .order-detail-form-layout > .status-strip,
  #drawer .order-detail-form-layout > .ticket-empty-state { display: none; }
  #drawer .order-detail-form-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
    padding: 22px 0;
    border-bottom: 1px solid #dce4ed;
    min-width: 0;
  }
  #drawer .order-detail-form-section > h2 {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.4;
    color: #283440;
  }
  #drawer .order-detail-form-section > h2:has(+ #orderDeviceFilesButton) { grid-column: 1; }
  #drawer .order-detail-form-section > #orderDeviceFilesButton {
    grid-column: 2;
    justify-self: end;
    margin: 0;
    align-self: start;
  }
  #drawer .order-detail-form-section > .ro-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin: 0;
    width: auto;
    min-width: 0;
    grid-column: auto;
  }
  #drawer .order-detail-form-section > .ro-row > span:first-child {
    text-align: left;
    padding-top: 0;
    font-size: 12px;
    font-weight: 600;
    width: auto;
    color: #67778a;
  }
  #drawer .order-detail-form-section > .ro-row > :is(input, select, textarea, div),
  #drawer .order-detail-form-section .order-money-input {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  #drawer .order-detail-form-section :is(input:not([type="checkbox"]), select, textarea) {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 3px;
  }
  #drawer .order-detail-form-section .mobile-order-serial-field { display: flex; }
  #drawer .order-detail-form-section .mobile-order-serial-field > input { flex: 1 1 0; width: 0; }
  #drawer .order-detail-form-section > :is([data-order-intake-field="problem"], [data-order-intake-field="intake_comment"], [data-order-intake-field="manager_notes"], #deviceIntakePanel) {
    grid-column: 1 / -1;
  }
  #drawer .order-detail-form-section > .device-intake-panel {
    margin: 0;
    gap: 14px 20px;
    width: 100%;
    min-width: 0;
  }
  #drawer .order-detail-form-section > #deviceIntakeAccessPanel { grid-template-columns: minmax(0, 1fr); }
  #drawer .order-detail-form-section .device-intake-panel__section--access {
    padding: 0;
    border: 0;
    background: transparent;
  }
  #drawer .order-detail-form-section > [data-order-intake-field="urgent"] {
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    grid-column: 1 / -1;
  }
  #drawer .order-detail-form-section > [hidden] { display: none !important; }
}

/* ORDER_SINGLE_CARD_ROLLOUT: crm-order-single-card-1 */
@media (min-width: 1000px) {
  #drawer.order-single-card.drawer--fullscreen { width: min(1080px, calc(100vw - 80px)); }
  #drawer.order-single-card .drawer__body { grid-template-columns: minmax(0, 1fr) 280px; }
  #drawer.order-single-card .ticket-main { grid-template-rows: auto auto minmax(0, 1fr); overflow: hidden; }
  #drawer.order-single-card .ticket-panel { min-height: 0; overflow: auto; }
  #drawer.order-single-card .event-tabs { padding-left: 8px; padding-right: 8px; }
  #drawer.order-single-card .event-tabs button { flex: 1; min-width: 0; padding-left: 5px; padding-right: 5px; font-size: 12px; }
  #drawer.order-single-card .drawer__header > div:first-child {
    display: flex; align-items: center; flex-wrap: wrap; gap: 14px; min-width: 0;
  }
  #drawer.order-single-card .order-single-card__status {
    display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px;
  }
  #drawer.order-single-card .icon-button--grid { margin-left: 0; }
  #drawer.order-single-card .order-single-card__location {
    margin-left: auto; padding: 6px 10px; border: 1px solid var(--border, #dce3ec);
    border-radius: 4px; font-size: 12px; color: var(--text, #283343);
    max-width: 240px; overflow-wrap: anywhere;
  }
  #drawer.order-single-card .ticket-summary { max-width: none; margin: 0; padding: 0 16px; border: 0; box-shadow: none; }
  #drawer.order-single-card .ticket-summary__main { display: none; }
  #drawer.order-single-card .order-single-card__metrics {
    display: grid; grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(100px, 1fr));
    gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border, #dce3ec);
  }
  #drawer.order-single-card .order-single-card__metrics > div { display: grid; gap: 4px; }
  #drawer.order-single-card .order-single-card__metrics span { font-size: 12px; color: var(--muted, #748195); }
  #drawer.order-single-card .order-single-card__metrics strong { font-size: 14px; }
  #drawer.order-single-card .ticket-actions { border: 0; padding: 8px 0; }
  #drawer.order-single-card .ticket-actions:empty { display: none; }
  #drawer.order-single-card #printActionMenu { margin-left: auto; }
}

/* ORDER_DETAIL_COMPACT_ROLLOUT: crm-order-detail-compact-1 */
/* ORDER_CARD_LAYOUT_ROLLOUT: crm-order-card-layout-1.
   Recovery notice, summary and tabs keep their own height; only the active panel
   consumes remaining space, regardless of the optional notice being present. */
@media (min-width: 1000px) {
  #drawer.order-single-card.order-card-layout-fixed .ticket-main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  #drawer.order-card-layout-fixed .ticket-main > :is(.order-draft-recovery, .ticket-summary, .ticket-tabs) {
    flex: 0 0 auto;
  }
  #drawer.order-card-layout-fixed .ticket-main > .ticket-panel.active {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
  }
}

@media (min-width: 1000px) {
  #drawer.order-detail-compact .ticket-main { grid-template-rows: auto auto minmax(0, 1fr); }
  #drawer.order-detail-compact .ticket-summary { margin-bottom: 0; }
  #drawer.order-detail-compact .order-intake-form {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: start;
    gap: 12px;
    max-width: none;
    width: 100%;
  }
  #drawer.order-detail-compact .order-intake-form > .status-strip { display: none; }
  #drawer.order-detail-compact .order-intake-column {
    min-width: 0;
    display: grid;
    align-content: start;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 10px;
    padding: 12px;
    border: 1px solid #dce4ec;
    border-radius: 8px;
    background: #fbfdff;
  }
  #drawer.order-detail-compact .order-intake-column--main { grid-column: 1; }
  #drawer.order-detail-compact .order-intake-column--side { grid-column: 2; grid-template-columns: minmax(0, 1fr); }
  #drawer.order-detail-compact .order-intake-column > :is(h2, .order-intake-section-heading, .device-intake-panel, .order-intake-field--wide),
  #drawer.order-detail-compact .order-intake-column--side > [data-order-intake-field="manager_notes"] { grid-column: 1 / -1; }
  #drawer.order-detail-compact .order-intake-column h2 {
    margin: 0;
    font-size: 15px;
    border-bottom: 1px solid #edf2f6;
    padding-bottom: 5px;
  }
  #drawer.order-detail-compact .order-intake-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 6px;
    border-bottom: 1px solid #edf2f6;
  }
  #drawer.order-detail-compact .order-intake-section-heading h2 { border: 0; padding: 0 0 5px; }
  #drawer.order-detail-compact .ro-row { grid-template-columns: minmax(0, 1fr); gap: 5px; min-width: 0; }
  #drawer.order-detail-compact .ro-row > span:first-child { width: auto; padding-top: 0; text-align: left; }
  #drawer.order-detail-compact .ro-row :is(input, select, textarea) { min-width: 0; max-width: 100%; }
  #drawer.order-detail-compact .ro-row :is(input, select) { width: 100%; }
  #drawer.order-detail-compact .order-catalog-field,
  #drawer.order-detail-compact .mobile-order-serial-field { display: flex; min-width: 0; width: 100%; }
  #drawer.order-detail-compact .mobile-order-serial-field > input { flex: 1 1 0; width: 0; }
  #drawer.order-detail-compact .mobile-order-serial-field > button { flex: 0 0 auto; }
  #drawer.order-detail-compact .device-intake-panel { margin: 0; }
  #drawer.order-detail-compact [data-order-intake-field="status"] { display: none; }
  #drawer.order-detail-compact [data-order-intake-field="urgent"] { display: flex; align-items: center; justify-content: flex-start; gap: 12px; }
  #drawer.order-detail-compact [data-order-intake-field="urgent"] input[type="checkbox"] { width: auto; min-width: 16px; }
  #drawer.order-detail-compact .order-intake-column > [hidden] { display: none !important; }
  #drawer.order-detail-compact .services-actions { flex-wrap: wrap; justify-content: flex-end; }
}

/* ORDER_DETAIL_CENTERED_ROLLOUT: crm-order-detail-centered-1 */
@media (min-width: 1000px) {
  #drawer.order-detail-centered.drawer--fullscreen {
    inset: auto;
    top: 50%;
    left: calc(204px + (100vw - 204px) / 2);
    width: min(1280px, calc(100vw - 228px));
    height: min(820px, calc(100dvh - 58px));
    max-height: min(820px, calc(100dvh - 58px));
    border: 1px solid #cfd9e4;
    border-radius: 8px;
    transform: translate(-50%, -50%) scale(0.985);
    transition: opacity 0.16s ease, transform 0.16s ease;
  }
  #drawer.order-detail-centered.drawer--fullscreen.open {
    transform: translate(-50%, -50%) scale(1);
  }
  #drawer.order-detail-centered.drawer--fullscreen.is-closing {
    transform: translate(-50%, -50%) scale(0.985);
  }
  #drawer.order-detail-centered .drawer__body {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

@media (min-width: 1000px) and (max-width: 1360px) {
  #drawer.order-detail-centered .drawer__body { grid-template-columns: minmax(0, 1fr); }
  #drawer.order-detail-centered .event-panel { display: none; }
  #drawer.order-detail-centered .order-intake-form { grid-template-columns: minmax(0, 1fr); }
  #drawer.order-detail-centered .order-intake-column--main,
  #drawer.order-detail-centered .order-intake-column--side { grid-column: 1; }
}

/* ORDER_DETAIL_CENTERED_NARROW_ROLLOUT: crm-order-detail-centered-narrow-1 */
@media (min-width: 1000px) {
  #drawer.order-detail-centered-narrow.drawer--fullscreen {
    width: min(1080px, calc(100vw - 228px));
  }
  #drawer.order-detail-centered-narrow .drawer__body {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}
@media (min-width: 1000px) and (max-width: 1360px) {
  #drawer.order-detail-centered-narrow .drawer__body {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* ISSUED_COST_CORRECTION: crm-issued-cost-correction-1 */
.issued-cost-correction { border-top: 1px solid #dbe5f0; margin-top: 12px; padding-top: 10px; }
.issued-cost-correction > summary { color: #287caf; cursor: pointer; font-weight: 600; }
.issued-cost-correction__body { display: grid; gap: 12px; margin-top: 12px; }
.issued-cost-correction__body p { margin: 0; color: #627389; font-size: 13px; }
.issued-cost-correction__body textarea { width: 100%; resize: vertical; }
.issued-cost-correction__allocations { display: grid; gap: 10px; }
.issued-cost-correction__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.issued-cost-correction__actions [role="status"] { color: #b83434; font-size: 13px; }
/* ISSUED_WORK_EDITOR: crm-issued-work-editor-1 */
.issued-work-editor { margin-top: 12px; padding: 12px; background: #f7f9fc; border: 1px solid #dbe5f0; border-radius: 6px; }
.issued-work-editor__head, .issued-work-editor__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.issued-work-editor__totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.issued-work-editor__master-summary { margin-top: 8px; color: #627389; font-size: 13px; }
.issued-work-editor__body:not([hidden]) { display: grid; gap: 12px; }
.issued-work-editor__allocation { display: grid; grid-template-columns: minmax(180px, 1.4fr) minmax(100px, 1fr) minmax(100px, 1fr) auto; gap: 10px; align-items: end; margin-top: 10px; }
.issued-work-editor__body textarea { width: 100%; resize: vertical; }
.issued-work-editor__feedback { color: #627389; font-size: 13px; }
.issued-work-editor [role="status"] { color: #b83434; font-size: 13px; }

/* ORDER_ESTIMATE_ROLLOUT: crm-order-estimate-layout-1 */
.order-estimate-value { display: block; color: #738195; font-size: 12px; font-style: normal; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
[data-order-intake-field="estimate"] .order-money-input__suffix[hidden] { display: none; }

/* ORDER_ESTIMATE_LAYOUT_ROLLOUT: crm-order-estimate-layout-1; marker supplied by gated renderHint. */
@media (min-width: 761px) {
  .orders-list__table:has(:is(.order-estimate-value--stacked, .order-estimate-primary--stacked)) {
    --order-column-price: 120px;
    min-width: 1454px;
  }
  .orders-list__row > .orders-list__price:has(:is(.order-estimate-value--stacked, .order-estimate-primary--stacked)) {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
  }
  .orders-list__price .order-estimate-value--stacked { width: 100%; }
}
@media (min-width: 981px) and (max-width: 1400px) {
  .orders-list__table:has(:is(.order-estimate-value--stacked, .order-estimate-primary--stacked)) {
    --order-column-price: 120px;
    min-width: 1116px;
  }
}

/* ORDER_ESTIMATE_PRIMARY_ROLLOUT: crm-order-estimate-primary-1; rendered by the addressed gate. */
.order-estimate-primary { white-space: normal; overflow-wrap: anywhere; }

/* SALES_ROAPP_CONTACT_DOCUMENTS_ROLLOUT: crm-sales-roapp-flow-15.
   warehouse-sales.js applies CRMReleaseRollout only with Sales core + gate15.
   The owned child root class is limited to Contact document navigation.
   Share the existing important layers so common button/field adapters and
   correction gates cannot place a child behind Contact; Contact501 is unchanged. */
@layer crm-button-system {
  @media (min-width:901px) {
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-contact-tabs { display:flex;flex:none;align-items:center;gap:24px;min-height:42px;padding:0 16px;border-bottom:1px solid #dedfe1;background:#fff; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-contact-tabs > [data-contact-tab] { height:42px!important;min-height:42px!important;padding:8px 0!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:none!important;color:#272d32!important;font:inherit;font-size:14px!important;line-height:24px!important;font-weight:600!important;box-shadow:none;cursor:pointer; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-contact-tabs > [data-contact-tab].is-active { border-bottom-color:#2874bd!important;color:#2874bd!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-contact-tabs > [data-contact-tab]:focus-visible { outline:2px solid #87aee4;outline-offset:-2px; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-contact-documents { display:flex;flex-direction:column;gap:16px;min-width:0; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-contact-documents-toolbar > label { display:flex;align-items:center;gap:12px;margin:0;color:#272d32!important;font-size:14px!important;line-height:20px!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-contact-documents-toolbar > label > span { font-weight:500!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-contact-documents-table { width:100%;min-width:0;background:#fff; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-contact-document-row { display:grid;align-items:center;gap:0;min-height:55px;box-sizing:border-box;border-bottom:1px solid #dedfe1;color:#272d32!important;font-size:14px!important;line-height:20px!important;font-weight:400!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot :is(.warehouse-contact-document-row--sale,.warehouse-contact-document-row--refund) { grid-template-columns:110px 240px minmax(0,1fr) 110px; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-contact-document-row--return { grid-template-columns:110px 240px minmax(0,1fr); }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-contact-document-row > div { min-width:0;padding:8px;overflow-wrap:anywhere; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-contact-document-row--head { min-height:42px;background:#f3f3f3;font-weight:600!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-contact-document-row:not(.warehouse-contact-document-row--head) > :nth-child(2) { display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-contact-document-row:not(.warehouse-contact-document-row--head) > :nth-child(2) > span { order:1;white-space:nowrap;color:#272d32!important;font-size:14px!important;line-height:20px!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-contact-document-row:not(.warehouse-contact-document-row--head) > :nth-child(2) > small { order:2;color:#999!important;font-size:12px!important;line-height:18px!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-contact-document-row--return > :first-child { text-align:center; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot :is(.warehouse-contact-document-row--sale,.warehouse-contact-document-row--refund) > :last-child { text-align:right;white-space:nowrap; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-contact-documents-footer { display:flex;align-items:center;justify-content:space-between;gap:16px;box-sizing:border-box;min-height:45px;padding:8px 0;color:#272d32!important;font-size:14px!important;line-height:20px!important;font-weight:400!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-contact-documents-footer > div { display:flex;align-items:center;gap:8px; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-contact-documents-footer > span:has(strong) { display:flex;align-items:center;gap:12px;margin-left:auto; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-contact-documents-footer strong { min-width:110px;box-sizing:border-box;padding:4px 12px;border-radius:4px;background:#ccc;text-align:right;color:#272d32!important;font-weight:600!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-sale-return-document--contact-goods { width:680px!important;min-width:0; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-sale-return-document--contact-goods .warehouse-sale-detail__requisites { margin:0 0 24px!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-sale-return-document--contact-goods .warehouse-sale-detail__requisites dd { margin:0!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-sale-return-document--contact-goods .warehouse-return-document-line--goods { grid-template-columns:minmax(0,1fr) 90px!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-sales-shell.warehouse-sales-contact-child .warehouse-sales-drawer-backdrop[data-warehouse-sale-detail-close] { z-index:601!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-sales-shell.warehouse-sales-contact-child .warehouse-sale-return-backdrop[data-warehouse-return-document-close] { z-index:601!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-sales-shell.warehouse-sales-contact-child :is(.warehouse-sale-detail,.warehouse-sale-return-document) { z-index:602!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-sales-shell.warehouse-sales-contact-child .warehouse-sales-drawer-backdrop[data-warehouse-payment-view-close] { z-index:611!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-sales-shell.warehouse-sales-contact-child :is(.warehouse-sale-payment-view,.warehouse-sale-refund-payment) { z-index:612!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-sales-shell.warehouse-sales-contact-child .warehouse-sale-checkout__backdrop[data-warehouse-payment-close] { z-index:611!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-sales-shell.warehouse-sales-contact-child .warehouse-sale-checkout { z-index:612!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-sales-shell.warehouse-sales-contact-child .warehouse-sale-return-backdrop[data-warehouse-return-close] { z-index:611!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-sales-shell.warehouse-sales-contact-child .warehouse-sale-return:not(.warehouse-sale-return-document) { z-index:612!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-sales-shell.warehouse-sales-contact-child .warehouse-sale-correction-backdrop { z-index:621!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-sales-shell.warehouse-sales-contact-child .warehouse-sale-correction { z-index:622!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-sales-shell.warehouse-sales-contact-child .warehouse-sale-payment-lifecycle-backdrop { z-index:631!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-sales-shell.warehouse-sales-contact-child .warehouse-sale-payment-lifecycle { z-index:632!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-sales-shell.warehouse-sales-contact-child .warehouse-sale-correction-discard-backdrop { z-index:641!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-sales-shell.warehouse-sales-contact-child .warehouse-sale-correction-discard { z-index:642!important; }
  }
}
@layer crm-field-system {
  @media (min-width:901px) {
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-contact-documents-beta #warehouseSalesRoot .warehouse-contact-documents-toolbar [data-contact-document-type-filter] { width:220px!important;max-width:100%;min-height:34px!important;height:34px!important;box-sizing:border-box;padding:6px 30px 6px 12px!important;border:1px solid #dedfe1!important;border-radius:8px!important;background:linear-gradient(#fff,#ededee)!important;color:#272d32!important;font:inherit;font-size:14px!important;font-weight:400!important;line-height:20px!important; }
  }
}

/* SALES_ROAPP_RETURN_LINKS_ROLLOUT: crm-sales-roapp-flow-16.
   warehouse-sales.js applies CRMReleaseRollout with Sales core + gate16.
   Exact linked RT/RF frames inherit their integer depth; upper sibling dialogs
   use the current maximum. Reuse the existing Contact tiers without a depth cap
   or a new wrapper stacking context. Root and linked goods RT reuse the accepted
   compact15 values; all other Sales/Contact layout stays unchanged. */
@layer crm-button-system {
  @media (min-width:901px) {
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-return-links-beta #warehouseSalesRoot .warehouse-sale-return-document--contact-goods { width:680px!important;min-width:0; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-return-links-beta #warehouseSalesRoot .warehouse-sale-return-document--contact-goods .warehouse-sale-detail__requisites { margin:0 0 24px!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-return-links-beta #warehouseSalesRoot .warehouse-sale-return-document--contact-goods .warehouse-sale-detail__requisites dd { margin:0!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-return-links-beta #warehouseSalesRoot .warehouse-sale-return-document--contact-goods .warehouse-return-document-line--goods { grid-template-columns:minmax(0,1fr) 90px!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-return-links-beta #warehouseSalesRoot .warehouse-sales-shell.warehouse-sales-linked-return-stack .warehouse-return-link-frame .warehouse-sale-return-backdrop { z-index:calc(601 + var(--sales-return-frame-depth,0) * 100)!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-return-links-beta #warehouseSalesRoot .warehouse-sales-shell.warehouse-sales-linked-return-stack .warehouse-return-link-frame .warehouse-sale-return-document { z-index:calc(602 + var(--sales-return-frame-depth,0) * 100)!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-return-links-beta #warehouseSalesRoot .warehouse-sales-shell.warehouse-sales-linked-return-stack .warehouse-sales-drawer-backdrop[data-warehouse-payment-view-close] { z-index:calc(611 + var(--sales-return-link-depth,0) * 100)!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-return-links-beta #warehouseSalesRoot .warehouse-sales-shell.warehouse-sales-linked-return-stack :is(.warehouse-sale-payment-view,.warehouse-sale-refund-payment) { z-index:calc(612 + var(--sales-return-link-depth,0) * 100)!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-return-links-beta #warehouseSalesRoot .warehouse-sales-shell.warehouse-sales-linked-return-stack .warehouse-sale-checkout__backdrop[data-warehouse-payment-close] { z-index:calc(611 + var(--sales-return-link-depth,0) * 100)!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-return-links-beta #warehouseSalesRoot .warehouse-sales-shell.warehouse-sales-linked-return-stack .warehouse-sale-checkout { z-index:calc(612 + var(--sales-return-link-depth,0) * 100)!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-return-links-beta #warehouseSalesRoot .warehouse-sales-shell.warehouse-sales-linked-return-stack .warehouse-sale-return-backdrop[data-warehouse-return-close] { z-index:calc(611 + var(--sales-return-link-depth,0) * 100)!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-return-links-beta #warehouseSalesRoot .warehouse-sales-shell.warehouse-sales-linked-return-stack .warehouse-sale-return:not(.warehouse-sale-return-document) { z-index:calc(612 + var(--sales-return-link-depth,0) * 100)!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-return-links-beta #warehouseSalesRoot .warehouse-sales-shell.warehouse-sales-linked-return-stack .warehouse-sale-correction-backdrop { z-index:calc(621 + var(--sales-return-link-depth,0) * 100)!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-return-links-beta #warehouseSalesRoot .warehouse-sales-shell.warehouse-sales-linked-return-stack .warehouse-sale-correction { z-index:calc(622 + var(--sales-return-link-depth,0) * 100)!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-return-links-beta #warehouseSalesRoot .warehouse-sales-shell.warehouse-sales-linked-return-stack .warehouse-sale-payment-lifecycle-backdrop { z-index:calc(631 + var(--sales-return-link-depth,0) * 100)!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-return-links-beta #warehouseSalesRoot .warehouse-sales-shell.warehouse-sales-linked-return-stack .warehouse-sale-payment-lifecycle { z-index:calc(632 + var(--sales-return-link-depth,0) * 100)!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-return-links-beta #warehouseSalesRoot .warehouse-sales-shell.warehouse-sales-linked-return-stack .warehouse-sale-correction-discard-backdrop { z-index:calc(641 + var(--sales-return-link-depth,0) * 100)!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-return-links-beta #warehouseSalesRoot .warehouse-sales-shell.warehouse-sales-linked-return-stack .warehouse-sale-correction-discard { z-index:calc(642 + var(--sales-return-link-depth,0) * 100)!important; }
  }
}

/* SALES_ROAPP_GOODS_RETURN_CANCEL_ROLLOUT: crm-sales-roapp-flow-18
   CRMReleaseRollout in warehouse-sales.js supplies this class only for
   Sales core + goods-return cancellation. Reuse accepted compact RT values
   when Contact15/linked16 are off; linked lifecycle depth tiers stay in16. */
@layer crm-button-system {
  @media (min-width:901px) {
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-goods-return-cancel-beta #warehouseSalesRoot .warehouse-sale-return-document--contact-goods { width:680px!important;min-width:0; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-goods-return-cancel-beta #warehouseSalesRoot .warehouse-sale-return-document--contact-goods .warehouse-sale-detail__requisites { margin:0 0 24px!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-goods-return-cancel-beta #warehouseSalesRoot .warehouse-sale-return-document--contact-goods .warehouse-sale-detail__requisites dd { margin:0!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-goods-return-cancel-beta #warehouseSalesRoot .warehouse-sale-return-document--contact-goods .warehouse-return-document-line--goods { grid-template-columns:minmax(0,1fr) 90px!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-goods-return-cancel-beta #warehouseSalesRoot .warehouse-sale-return-document--contact-goods .warehouse-sales-document__footer .button.warehouse-sale-payment-trash {
      box-sizing:border-box;width:50px!important;min-width:50px!important;
      height:34px!important;min-height:34px!important;border-radius:8px!important;
      background:#e34c4c!important;border-color:#e34c4c!important;color:#fff!important;
      display:flex;align-items:center;justify-content:center;padding:8px!important;
    }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-goods-return-cancel-beta #warehouseSalesRoot .warehouse-sale-payment-lifecycle.warehouse-goods-return-delete { width:406px!important; }
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-goods-return-cancel-beta #warehouseSalesRoot .warehouse-goods-return-delete footer .button.warehouse-sale-payment-trash { background:#e34c4c!important;border-color:#e34c4c!important;color:#fff!important; }
  }
}

/* Goods-return17 notices are siblings of the active Sales workspace. The
   strict17 owner supplies the current linked depth on the html element;
   inactive workspaces, other tenants and gate-off notices keep their layer. */
@layer crm-button-system {
  @media (min-width:901px) {
    html.crm-sales-roapp-flow-beta.crm-sales-roapp-goods-return-cancel-beta body:has(.workspace-view[data-view="sales"].active #warehouseSalesRoot .warehouse-sales-shell) > #appNotice { z-index:var(--sales-return-notice-layer,650)!important; }
  }
}

/* MOBILE_ISSUE_KEYBOARD: crm-mobile-issue-keyboard-1 */
.issue-guide-modal { position:fixed; inset:0; z-index:760; display:grid; place-items:center; padding:24px; }
.issue-guide-modal__backdrop { position:absolute; inset:0; background:rgba(15,23,42,.38); }
.issue-guide-modal__panel { position:relative; width:min(100%,560px); max-height:calc(100dvh - 48px); overflow:auto; padding:28px; border:1px solid var(--border-color,#dce4ee); border-radius:14px; background:var(--card-bg,#fff); color:var(--text-color,#243245); box-shadow:0 20px 60px rgba(15,23,42,.2); }
.issue-guide-modal__close { position:absolute; top:14px; right:14px; width:32px; height:32px; border:1px solid #dce4ee; border-radius:6px; background:transparent; color:inherit; cursor:pointer; font-size:22px; }
.issue-guide-modal__eyebrow { margin:0 40px 10px 0; color:var(--muted-color,#63748a); font-size:13px; }
.issue-guide-modal h2 { margin:0 26px 12px 0; font-size:23px; line-height:1.3; }
.issue-guide-modal__lead { margin:0 0 22px; color:var(--muted-color,#63748a); line-height:1.55; }
.issue-guide-modal__items { list-style:none; padding:0; margin:0 0 22px; border:1px solid #e2e8f0; border-radius:8px; }
.issue-guide-modal__items li { display:flex; justify-content:space-between; gap:18px; padding:12px 14px; font-size:14px; }
.issue-guide-modal__items li + li { border-top:1px solid #e2e8f0; }
.issue-guide-modal__items strong { flex-shrink:0; font-size:13px; color:#8a5b15; }
.issue-guide-modal__actions { display:flex; flex-wrap:wrap; gap:10px; }
.issue-guide-modal__actions .button { min-height:40px; white-space:normal; }
.service-row--issue-invalid { outline:2px solid #c98927; outline-offset:-2px; border-radius:6px; }
.issue-row-validation { grid-column:1/-1; margin:0; padding:10px 12px; color:#87550c; background:#fff5df; font-size:13px; line-height:1.4; }
#paymentDrawer.is-free-work-issue #receiptPrintPanel,
#paymentDrawer.is-free-work-issue .payment-field--method,
#paymentDrawer.is-free-work-issue .payment-field--amount,
#paymentDrawer.is-free-work-issue .issue-payment-panel__toggle,
#paymentDrawer.is-free-work-issue #issueWithoutPaymentButton { display:none !important; }

#paymentDrawer.is-free-work-issue .payment-section { display: block; }
#paymentDrawer.is-free-work-issue .issue-payment-column--left { display: none; }
#paymentDrawer.is-free-work-issue .issue-payment-column--right { display: flex; flex-direction: column; gap: 8px; }

#paymentDrawer.is-free-work-issue #issuePaymentPanel { width: 100%; grid-template-columns: minmax(0, 1fr); }

/* ORDER_INTAKE_ACTIONS_ROLLOUT: crm-order-intake-actions-2 */
.order-history-toggle { display: none; }
@media (min-width: 1000px) {
  #drawer.drawer--intake-actions { --order-shell-width: min(980px, calc(100vw - 252px)); }
  #drawer.drawer--intake-actions.drawer--fullscreen { --order-shell-width: min(1280px, calc(100vw - 228px)); }
  #drawer.drawer--intake-actions.order-detail-centered-narrow { --order-shell-width: min(1080px, calc(100vw - 228px)); }
  #drawer.drawer--intake-actions.drawer--order-create {
    --order-shell-width: min(1180px, calc(100vw - 228px));
    inset: 0 0 0 auto;
    width: var(--order-shell-width);
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 8px 0 0 8px;
    border-right: 0;
    transform: translateX(40px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  #drawer.drawer--intake-actions.drawer--order-create.open { transform: translateX(0); }
  #drawer.drawer--intake-actions.drawer--order-create.is-closing { transform: translateX(40px); }
  #drawer.drawer--intake-actions .order-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 14px 320px;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }
  #drawer.drawer--intake-actions .drawer__body { display: contents; }
  #drawer.drawer--intake-actions .drawer__header { grid-column: 1; grid-row: 1; }
  #drawer.drawer--intake-actions .drawer__header { padding: 0 0 0 16px; min-height: 53px; gap: 8px; }
  #drawer.drawer--intake-actions .drawer__header > div { flex: 1; min-width: 0; }
  #drawer.drawer--intake-actions .drawer__header .icon-button--grid { display: none; }
  #drawer.drawer--intake-actions #closeDrawerButton {
    position: relative;
    flex: none;
    min-width: 49px !important;
    width: 49px !important;
    height: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-left: 1px solid #eee !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #939699 !important;
    font-size: 0 !important;
  }
  #drawer.drawer--intake-actions #closeDrawerButton::before,
  #drawer.drawer--intake-actions #closeDrawerButton::after {
    content: "";
    position: absolute;
    top: 25px;
    left: 15px;
    width: 19px;
    height: 1.5px;
    background: currentColor;
    transform: rotate(45deg);
  }
  #drawer.drawer--intake-actions #closeDrawerButton::after { transform: rotate(-45deg); }
  #drawer.drawer--intake-actions #closeDrawerButton:hover { background: #f7f9fc; }
  #drawer.drawer--intake-actions .ticket-main { grid-column: 1; grid-row: 2; border-right: 0; }
  #drawer.drawer--intake-actions .drawer__actions { grid-column: 1; grid-row: 3; flex-wrap: wrap; }
  #drawer.drawer--intake-actions .event-panel { display: grid; grid-column: 3; grid-row: 1 / 4; background: #edf4fd; }
  #drawer.drawer--intake-actions .order-history-toggle {
    display: flex;
    grid-column: 2;
    grid-row: 1 / 4;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #dceafa;
    color: #939699;
    cursor: pointer;
  }
  #drawer.drawer--intake-actions .order-history-toggle svg { width: 6px; height: 9px; pointer-events: none; }
  #drawer.drawer--intake-actions .order-history-toggle:hover { background: #d3e4f8; }
  #drawer.drawer--intake-actions .order-history-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
  #drawer.drawer--intake-actions.order-history-collapsed { width: calc(var(--order-shell-width) - 320px); }
  #drawer.drawer--intake-actions.order-history-collapsed .order-form { grid-template-columns: minmax(0, 1fr) 14px; }
  #drawer.drawer--intake-actions.order-history-collapsed .event-panel { display: none; }
  #drawer.drawer--intake-actions.order-history-collapsed .order-history-toggle svg { transform: rotate(180deg); }
  #drawer.drawer--intake-actions.drawer--order-create .order-action--another { margin-left: auto; }
}
@media (min-width: 1000px) and (max-width: 1360px) {
  #drawer.drawer--intake-actions.drawer--order-create .order-intake-form { grid-template-columns: minmax(0, 1fr); }
  #drawer.drawer--intake-actions.drawer--order-create .order-intake-column { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #drawer.drawer--intake-actions.drawer--order-create { transition: none; }
}

/* ORDER_ROAPP_SELECTS_ROLLOUT: crm-order-roapp-selects-2 */
/* ORDER_DETAIL_PANEL_ROLLOUT: crm-order-detail-panel-1 */
@media (min-width: 1000px) {
  #drawer.order-detail-panel.drawer--fullscreen,
  #drawer.order-detail-panel.drawer--fullscreen.open,
  #drawer.order-detail-panel.drawer--fullscreen.is-closing {
    --order-shell-width: min(1014px, calc(100vw - 228px));
    inset: 0 0 0 auto;
    width: var(--order-shell-width);
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 8px 0 0 8px;
    border-right: 0;
    transform: none;
    transition: none;
    animation: none;
    will-change: auto;
  }
  #drawer.order-detail-panel.drawer--intake-actions .order-form {
    grid-template-columns: minmax(0, 1fr) 14px 320px;
  }
  #drawer.order-detail-panel.drawer--intake-actions.order-history-collapsed {
    width: calc(var(--order-shell-width) - 320px);
  }
  #drawer.order-detail-panel.drawer--intake-actions.order-history-collapsed .order-form {
    grid-template-columns: minmax(0, 1fr) 14px;
  }
  #drawer.order-detail-panel .drawer__header > div:first-child {
    flex-wrap: nowrap;
    gap: 10px;
    overflow: hidden;
  }
  #drawer.order-detail-panel .drawer__header h1 {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 20px;
    line-height: 28px;
  }
  #drawer.order-detail-panel .order-single-card__status { flex: none; }
  #drawer.order-detail-panel .order-single-card__location {
    flex: 0 1 auto;
    max-width: 130px;
    padding: 4px 8px;
    border-color: transparent;
    background: #f3f6fb;
    color: #637186;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #drawer.order-detail-panel .ticket-summary { padding: 0 14px; background: #f8fafd; }
  #drawer.order-detail-panel .order-single-card__metrics {
    grid-template-columns: minmax(130px, 1.7fr) repeat(3, minmax(72px, 1fr));
    gap: 8px;
    padding: 10px 0;
    border-bottom: 0;
  }
  #drawer.order-detail-panel .order-single-card__metrics > div { min-width: 0; gap: 2px; }
  #drawer.order-detail-panel .order-single-card__metrics span { font-size: 11px; }
  #drawer.order-detail-panel .order-single-card__metrics strong { font-size: 13px; overflow-wrap: anywhere; }
  #drawer.order-detail-panel .ticket-tabs {
    min-height: 44px;
    padding: 6px 14px 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    flex-shrink: 0;
  }
  #drawer.order-detail-panel .ticket-tab {
    flex: none;
    min-height: 36px;
    padding: 0 10px;
    font-size: 13px;
    white-space: nowrap;
  }
  #drawer.order-detail-panel .ticket-panel { padding: 14px 14px 24px; }
  #drawer.order-detail-panel .services-head { gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
  #drawer.order-detail-panel .services-head strong { font-size: 16px; }
  #drawer.order-detail-panel .services-actions { gap: 6px; }
  #drawer.order-detail-panel .service-row { gap: 8px; padding: 10px; border-radius: 8px; box-shadow: none; }
  #drawer.order-detail-panel .service-field { gap: 4px; }
  #drawer.order-detail-panel .service-row :is(input, select) { min-height: 32px; padding: 5px 8px; font-size: 13px; }
  #drawer.order-detail-panel .services-total { margin-top: 12px; }
  #drawer.order-detail-panel .services-total div { padding: 8px 10px; border-radius: 8px; }
  #drawer.order-detail-panel .drawer__actions { gap: 6px; padding: 12px 14px; background: #edf4fd; }
  #drawer.order-detail-panel .drawer__actions > .button,
  #drawer.order-detail-panel .drawer__actions > .action-menu > .button {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 8px;
  }
}

/* ORDER_DETAIL_STYLE_ROLLOUT: crm-order-detail-style-1.
   Roapp desktop measurements; own fields, controls and handlers stay in place. */
@font-face {
  font-family: "NS Order Inter";
  src: url("./frontend/assets/fonts/inter/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
#drawer [data-tab="checklists"][hidden],
#drawer [data-panel="checklists"][hidden] { display: none !important; }
@media (min-width: 1000px) {
  #drawer.order-detail-panel.order-detail-roapp.drawer--fullscreen {
    --order-shell-width: min(1060px, calc(100vw - 228px));
  }
  #drawer.order-detail-roapp {
    --ui-font-sans: "NS Order Inter", sans-serif;
    --ui-field-height: 34px;
    --ui-field-radius: 8px;
    --ui-field-padding: 6px 10px;
    --ui-field-border: #e5e5e5;
    --ui-field-text: #282e33;
    --ui-field-focus: #1973e1;
    --blue: #1973e1;
    color: #282e33;
    font: 400 14px/20px "NS Order Inter", sans-serif;
  }
  #drawer.order-detail-roapp :is(button, input, select, textarea) { font-family: "NS Order Inter", sans-serif !important; }
  #drawer.order-detail-roapp .drawer__header { border-color: #e5e5e5; }
  #drawer.order-detail-roapp .drawer__header h1 { font-size: 24px; line-height: 32px; font-weight: 500; color: #282e33; }
  #drawer.order-detail-roapp .order-single-card__location { font-size: 12px; font-weight: 400; background: #f5f5f5; color: #939699; }
  #drawer.order-detail-roapp .order-single-card__status { font-size: 14px; font-weight: 500; }
  #drawer.order-detail-roapp .ticket-summary { background: #fff; }
  #drawer.order-detail-roapp .order-single-card__metrics { border-bottom: 1px solid #e5e5e5; padding: 12px 0; }
  #drawer.order-detail-roapp .order-single-card__metrics span { color: #939699; font-size: 12px; font-weight: 400; }
  #drawer.order-detail-roapp .order-single-card__metrics strong { color: #282e33; font-size: 14px; font-weight: 500; }
  #drawer.order-detail-roapp .ticket-tabs { min-height: 48px; padding: 12px 14px 0; gap: 0; border-color: #e5e5e5; }
  #drawer.order-detail-roapp .ticket-tab {
    box-sizing: border-box; height: 36px;
    padding: 8px 12px; min-height: 36px; border-bottom: 2px solid transparent;
    border-radius: 0; background: transparent; box-shadow: none; color: #333;
    font-size: 14px; line-height: 20px; font-weight: 400 !important;
  }
  #drawer.order-detail-roapp .ticket-tab.active { color: #282e33; border-bottom-color: #282e33; }
  #drawer.order-detail-roapp .ticket-tab:hover { background: #f7f7f7; }
  #drawer.order-detail-roapp .ticket-panel { padding: 20px 16px 24px; }
  #drawer.order-detail-roapp .order-intake-column { border-color: #e5e5e5; background: #fff; padding: 12px; gap: 12px 10px; }
  #drawer.order-detail-roapp :is(.ro-row, .service-field) { color: #282e33; font-size: 13px; line-height: 20px; font-weight: 500; }
  #drawer.order-detail-roapp :is(.order-intake-column h2, .services-head strong, .ticket-section-head h2, .ticket-section-head strong) { color: #282e33; font-size: 15px; line-height: 22px; font-weight: 500; }
  #drawer.order-detail-roapp .ticket-panel :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea, .order-roapp-select > button) {
    min-height: 34px; padding: 6px 10px; border: 1px solid #e5e5e5; border-radius: 8px;
    background-color: #fff; color: #282e33; box-shadow: none; font-size: 14px; line-height: 20px; font-weight: 400 !important;
  }
  #drawer.order-detail-roapp .ticket-panel :is(input, select, textarea):disabled { background-color: #f5f5f5; color: #939699; }
  #drawer.order-detail-roapp .ticket-panel :is(input, select, textarea):focus-visible { outline: 0; border-color: #1973e1; box-shadow: 0 0 0 1px #1973e1; }
  #drawer.order-detail-roapp .ticket-panel :is(input, textarea)::placeholder { color: #a6a8aa; font-weight: 400; }
  #drawer.order-detail-roapp .service-row { padding: 12px; border-color: #e5e5e5; background: #fff; box-shadow: none; gap: 10px; }
  #drawer.order-detail-roapp .service-row--payroll { border-left-color: #e2b45c; }
  #drawer.order-detail-roapp .service-row--payroll [data-service-field="master"]:not(:disabled) { border-color: #d59a32; background-color: #fffdf7; }
  #drawer.order-detail-roapp .service-field { gap: 4px; }
  #drawer.order-detail-roapp .service-payroll-allocations { background: #f7f7f7; border-color: #e5e5e5; }
  #drawer.order-detail-roapp .services-total { gap: 0; border: 1px solid #e5e5e5; border-radius: 8px; overflow: hidden; }
  #drawer.order-detail-roapp .services-total > div { padding: 10px 12px; border: 0; border-right: 1px solid #e5e5e5; border-radius: 0; background: #f7f7f7; }
  #drawer.order-detail-roapp .services-total > div:last-child { border-right: 0; }
  #drawer.order-detail-roapp .services-total :is(span, strong) { font-size: 14px; font-weight: 500; }
  #drawer.order-detail-roapp .ticket-panel .button,
  #drawer.order-detail-roapp .drawer__actions > .button,
  #drawer.order-detail-roapp .drawer__actions > .action-menu > .button {
    box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
    min-height: 34px; height: 34px; padding: 0 16px; margin-block: 0;
    border: 1px solid #e5e5e5; border-radius: 8px; background: #fff; color: #282e33;
    font-size: 14px; line-height: 20px; font-weight: 400 !important; white-space: nowrap; box-shadow: none;
  }
  #drawer.order-detail-roapp .ticket-panel .button:hover,
  #drawer.order-detail-roapp .drawer__actions .button:hover { background: #f7f9fc; }
  #drawer.order-detail-roapp .drawer__actions { min-height: 66px; padding: 16px 16px 8px; gap: 8px; align-items: flex-start; background: #edf4fd; border-top: 0; }
  #drawer.order-detail-roapp .drawer__actions > #saveOrderActionButton { background: #1973e1; border-color: #1973e1; color: #fff; font-weight: 500 !important; }
  #drawer.order-detail-roapp .drawer__actions > #saveOrderActionButton:hover { background: #1565c7; border-color: #1565c7; }
  #drawer.order-detail-roapp :is(.ticket-panel, .drawer__actions) .button:disabled { opacity: .5; cursor: default; }
  #drawer.order-detail-roapp :is(.ticket-panel, .drawer__actions) .button:focus-visible { outline: 2px solid #1973e1; outline-offset: 2px; }
  #drawer.order-detail-roapp .action-menu__list { border: 0; border-radius: 8px; box-shadow: 0 0 6px #282e3333; padding: 8px 0; }
  #drawer.order-detail-roapp .action-menu__list button { min-height: 32px; padding: 6px 12px; font-size: 14px; font-weight: 400; }
  #drawer.order-detail-roapp .action-menu__list button:hover { background: #dceafa; }
  #drawer.order-detail-roapp .event-tabs { gap: 0; padding: 16px 12px 8px; }
  #drawer.order-detail-roapp .event-tabs button { min-height: 34px; border: 1px solid #e5e5e5; border-right: 0; border-radius: 0; background: #fff; color: #282e33; font-size: 13px; font-weight: 400 !important; }
  #drawer.order-detail-roapp .event-tabs button:first-child { border-radius: 8px 0 0 8px; }
  #drawer.order-detail-roapp .event-tabs button:last-child { border-right: 1px solid #e5e5e5; border-radius: 0 8px 8px 0; }
  #drawer.order-detail-roapp .event-tabs button.active { background: #eeeeef; box-shadow: inset 0 1px 3px #00000012; }
  #drawer.order-detail-roapp :is(.client-history-head, .client-history-stats, .client-history-order, .client-history-empty) { box-shadow: none; border-color: #e5e5e5; border-radius: 8px; }
  #drawer.order-detail-roapp :is(.client-history-title strong, .client-history-stats strong, .event-item strong) { color: #282e33; font-weight: 500; }
  #drawer.order-detail-roapp .event-item { border-radius: 8px; box-shadow: none; }
  #drawer.order-detail-roapp .event-item :is(span, small) { font-weight: 400; }
  #drawer.order-detail-roapp .comment-box { border-color: #e5e5e5; border-radius: 8px; }
  #drawer.order-detail-roapp .comment-box textarea { font-size: 14px; font-weight: 400; }
  #drawer.order-detail-roapp .order-checklist-placeholder { display: grid; justify-items: center; align-content: center; min-height: 280px; gap: 12px; padding: 24px; color: #939699; text-align: center; }
  #drawer.order-detail-roapp .order-checklist-placeholder h2 { margin: 0; color: #282e33; font-size: 18px; font-weight: 500; }
  #drawer.order-detail-roapp .order-checklist-placeholder p { margin: 0; font-size: 14px; }
}

/* Match the same controls when the shared button system is enabled. */
@layer crm-button-system {
  @media screen and (min-width: 1000px) {
    #drawer.order-detail-roapp .ticket-panel .button,
    #drawer.order-detail-roapp .drawer__actions > .button,
    #drawer.order-detail-roapp .drawer__actions > .action-menu > .button {
      min-height: 34px !important; height: 34px !important; padding: 0 16px !important;
      border: 1px solid #e5e5e5 !important; border-radius: 8px !important;
      background: #fff !important; color: #282e33 !important;
      font-size: 14px !important; line-height: 20px !important; font-weight: 400 !important;
    }
    #drawer.order-detail-roapp :is(.ticket-panel, .drawer__actions) .button:hover { background: #f7f9fc !important; }
    #drawer.order-detail-roapp .drawer__actions > #saveOrderActionButton { background: #1973e1 !important; border-color: #1973e1 !important; color: #fff !important; font-weight: 500 !important; }
    #drawer.order-detail-roapp .drawer__actions > #saveOrderActionButton:hover { background: #1565c7 !important; border-color: #1565c7 !important; }
  }
}

/* ORDER_ISSUE_STYLE_ROLLOUT: crm-order-issue-style-1.
   Presentation only: keep payment/issue/fiscal controls and state unchanged. */
@media (min-width: 1000px) {
  #paymentDrawer.order-issue-roapp.is-issue,
  #paymentDrawer.order-issue-roapp.is-issue.open {
    inset: 0 0 0 auto !important; top: 0 !important; right: 0 !important;
    bottom: 0 !important; left: auto !important;
    width: min(800px, calc(100vw - 228px)) !important;
    height: 100dvh; max-height: 100dvh;
    border: 1px solid #e5e5e5; border-right: 0; border-radius: 8px 0 0 8px;
    transform: none !important; transition: none; animation: none;
    --ui-font-sans: "NS Order Inter", sans-serif;
    --ui-field-height: 34px; --ui-field-radius: 8px; --ui-field-padding: 6px 12px;
    --ui-field-border: #e5e5e5; --ui-field-text: #282e33; --ui-field-focus: #1973e1;
    color: #282e33; background: #fff; font: 400 14px/20px "NS Order Inter", sans-serif;
  }
  #paymentDrawer.order-issue-roapp.is-issue .contact-form {
    height: 100%; max-height: 100%; grid-template-rows: auto minmax(0, 1fr) auto;
  }
  #paymentDrawer.order-issue-roapp.is-issue :is(button, input, select, textarea) { font-family: "NS Order Inter", sans-serif !important; }
  #paymentDrawer.order-issue-roapp.is-issue .drawer__header { min-height: 53px; padding: 0 0 0 16px; gap: 12px; background: #fff; border-color: #e5e5e5; }
  #paymentDrawer.order-issue-roapp.is-issue .drawer__header h1 { flex: 1; min-width: 0; font-size: 24px; line-height: 32px; font-weight: 500; color: #282e33; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #paymentDrawer.order-issue-roapp.is-issue #closePaymentDrawerButton { position: relative; flex: none; width: 49px; min-width: 49px; height: 52px; margin: 0; padding: 0; border: 0; border-left: 1px solid #eee; border-radius: 0; background: #fff; color: #939699; font-size: 0; box-shadow: none; }
  #paymentDrawer.order-issue-roapp.is-issue #closePaymentDrawerButton::before,
  #paymentDrawer.order-issue-roapp.is-issue #closePaymentDrawerButton::after { content: ""; position: absolute; left: 15px; top: 25px; width: 19px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
  #paymentDrawer.order-issue-roapp.is-issue #closePaymentDrawerButton::after { transform: rotate(-45deg); }
  #paymentDrawer.order-issue-roapp.is-issue .contact-form__body { min-height: 0; max-height: none; padding: 20px 16px 24px; overflow-y: auto; overscroll-behavior: contain; background: #fff; }
  #paymentDrawer.order-issue-roapp.is-issue .payment-section { padding: 0; gap: 16px; }
  #paymentDrawer.order-issue-roapp.is-issue :is(.payment-field, .issue-payment-panel, .payment-mixed-panel) { border: 1px solid #e5e5e5; border-radius: 8px; background: #fff; box-shadow: none; padding: 12px; }
  #paymentDrawer.order-issue-roapp.is-issue .payment-field--method { position: static; }
  #paymentDrawer.order-issue-roapp.is-issue :is(.payment-field > span, .issue-payment-panel__title, .issue-final-total-field > span, .payment-mixed-panel__head strong) { color: #282e33; font-size: 14px; line-height: 20px; font-weight: 500; text-transform: none; letter-spacing: 0; }
  #paymentDrawer.order-issue-roapp.is-issue :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { min-height: 34px; max-width: 100%; padding: 6px 12px; border: 1px solid #e5e5e5; border-radius: 8px; background-color: #fff; color: #282e33; box-shadow: none; font-size: 14px; line-height: 20px; font-weight: 400; }
  #paymentDrawer.order-issue-roapp.is-issue input[name="amount"] { font-size: 24px; line-height: 32px; font-weight: 500; min-height: 46px; }
  #paymentDrawer.order-issue-roapp.is-issue :is(input,select,textarea):disabled { background-color: #f5f5f5; color: #939699; }
  #paymentDrawer.order-issue-roapp.is-issue input[readonly] { background-color: #f7f7f7; }
  #paymentDrawer.order-issue-roapp.is-issue :is(input,select,textarea):focus-visible { outline: 0; border-color: #1973e1; box-shadow: 0 0 0 1px #1973e1; }
  #paymentDrawer.order-issue-roapp.is-issue input[type="checkbox"] { accent-color: #1973e1; }
  #paymentDrawer.order-issue-roapp.is-issue .payment-method-buttons { gap: 8px; }
  #paymentDrawer.order-issue-roapp.is-issue .payment-method-buttons button { min-height: 34px; padding: 6px 10px; border: 1px solid #e5e5e5; border-radius: 8px; background: #fff; color: #282e33; font-size: 14px; line-height: 20px; font-weight: 400; box-shadow: none; }
  #paymentDrawer.order-issue-roapp.is-issue .payment-method-buttons button.is-active { border-color: #1973e1; background: #eaf3ff; color: #1973e1; }
  #paymentDrawer.order-issue-roapp.is-issue :is(.payment-field__hint, .issue-problem-panel__hint, .issue-payment-panel__summary span) { color: #939699; font-size: 12px; line-height: 18px; font-weight: 400; white-space: normal; overflow-wrap: anywhere; }
  #paymentDrawer.order-issue-roapp.is-issue :is(.issue-payment-panel__summary strong, .issue-payment-panel__toggle, .issue-readiness__mini-status strong) { font-size: 14px; line-height: 20px; font-weight: 500; white-space: normal; overflow-wrap: anywhere; }
  #paymentDrawer.order-issue-roapp.is-issue .issue-payment-panel__summary { border-color: #e5e5e5; background: #f7f7f7; border-radius: 8px; }
  #paymentDrawer.order-issue-roapp.is-issue .drawer__actions { min-height: 66px; padding: 16px 16px 8px; gap: 8px; background: #edf4fd; border-top: 0; }
  #paymentDrawer.order-issue-roapp.is-issue .button { min-height: 34px; height: 34px; padding: 0 16px; border: 1px solid #e5e5e5; border-radius: 8px; background: #fff; color: #282e33; box-shadow: none; font-size: 14px; line-height: 20px; font-weight: 400; }
  #paymentDrawer.order-issue-roapp.is-issue .button--blue { border-color: #1973e1; background: #1973e1; color: #fff; font-weight: 500; }
  #paymentDrawer.order-issue-roapp.is-issue .button:disabled { opacity: .5; }
  .issue-guide-modal--side { --ui-font-sans: "NS Order Inter", sans-serif; padding: 0; place-items: stretch end; font: 400 14px/20px "NS Order Inter", sans-serif; }
  .issue-guide-modal--side .issue-guide-modal__panel { box-sizing: border-box; width: min(800px, calc(100vw - 228px)); height: 100dvh; max-height: 100dvh; padding: 24px 16px 0; display: flex; flex-direction: column; border-color: #e5e5e5; border-radius: 8px 0 0 8px; background: #fff; color: #282e33; }
  .issue-guide-modal--side h2 { font-size: 24px; line-height: 32px; font-weight: 500; }
  .issue-guide-modal--side .issue-guide-modal__lead { color: #939699; font-size: 14px; line-height: 22px; }
  .issue-guide-modal--side .issue-guide-modal__items { border-color: #e5e5e5; }
  .issue-guide-modal--side .issue-guide-modal__items li { flex-wrap: wrap; gap: 8px; }
  .issue-guide-modal--side .issue-guide-modal__actions { position: sticky; bottom: 0; margin: auto -16px 0; padding: 16px; min-height: 66px; background: #edf4fd; }
  .issue-guide-modal--side .button { font-family: "NS Order Inter", sans-serif; font-size: 14px; line-height: 20px; font-weight: 400; min-height: 34px; padding: 0 16px; border: 1px solid #e5e5e5; border-radius: 8px; background: #fff; color: #282e33; box-shadow: none; }
  .issue-guide-modal--side .button--blue { background: #1973e1; border-color: #1973e1; color: #fff; font-weight: 500; }
  /* ORDER_ISSUE_GUIDE_COMPACT: warning fits its content; payment keeps its side panel. */
  .issue-guide-modal--side.issue-guide-modal--compact { padding: 24px; place-items: center; }
  .issue-guide-modal--compact .issue-guide-modal__panel { width: min(600px, 100%); height: auto; max-height: calc(100dvh - 48px); padding: 20px; border-radius: 12px; }
  .issue-guide-modal--compact h2 { margin-bottom: 10px; font-size: 20px; line-height: 26px; }
  .issue-guide-modal--compact .issue-guide-modal__eyebrow { margin-bottom: 8px; }
  .issue-guide-modal--compact .issue-guide-modal__lead { margin-bottom: 16px; color: #63748a; font-size: 13px; line-height: 20px; }
  .issue-guide-modal--compact .issue-guide-modal__items { flex: 0 1 auto; min-height: 0; max-height: min(240px, 30dvh); margin-bottom: 16px; overflow: auto; }
  .issue-guide-modal--compact .issue-guide-modal__items li { padding: 10px 12px; }
  .issue-guide-modal--compact .issue-guide-modal__items span { min-width: 0; overflow-wrap: anywhere; }
  .issue-guide-modal--compact .issue-guide-modal__actions { position: static; flex: none; margin: 0 -20px -20px; padding: 14px 20px; min-height: 0; border-top: 1px solid #e5e5e5; }
}
@layer crm-button-system {
  @media screen and (min-width: 1000px) {
    #paymentDrawer.order-issue-roapp.is-issue .button,
    html body .issue-guide-modal--side .button { min-height: 34px !important; height: 34px !important; padding: 0 16px !important; border: 1px solid #e5e5e5 !important; border-radius: 8px !important; background: #fff !important; color: #282e33 !important; font-size: 14px !important; line-height: 20px !important; font-weight: 400 !important; }
    #paymentDrawer.order-issue-roapp.is-issue .button--blue,
    html body .issue-guide-modal--side .button--blue { border-color: #1973e1 !important; background: #1973e1 !important; color: #fff !important; font-weight: 500 !important; }
    #paymentDrawer.order-issue-roapp.is-issue #closePaymentDrawerButton { min-width: 49px !important; width: 49px !important; height: 52px !important; border: 0 !important; border-left: 1px solid #eee !important; padding: 0 !important; border-radius: 0 !important; background: #fff !important; color: #939699 !important; font-size: 0 !important; box-shadow: none !important; }
  }
}

/* ORDER_ISSUE_CHECKOUT_ROLLOUT: crm-order-issue-checkout-1 */
.issue-document-picker[hidden] { display: none !important; }
@media (min-width: 1000px) {
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue:not(.is-issue-complete) .payment-section { display: flex; flex-direction: column; gap: 16px; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue:not(.is-issue-complete) .issue-payment-column { display: contents; }
  #paymentDrawer.order-issue-checkout.is-free-work-issue .issue-payment-column--left { display: none; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue .payment-section > h2 { display: none; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue .issue-payment-column > :not([hidden]) { width: 100%; min-width: 0; margin: 0; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue #issuePaymentPanel { order: -10; padding: 16px; gap: 12px; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue #issuePaymentDetails { display: block; margin: 0; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue .issue-checkout-client { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue .issue-checkout-client strong { font-size: 16px; line-height: 22px; font-weight: 500; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue .issue-checkout-client span { color: #939699; font-size: 14px; line-height: 20px; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue .issue-checkout-totals { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue .issue-checkout-totals > div { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 8px; background: #f7f7f7; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue .issue-checkout-totals > div:last-child { background: #eaf3ff; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue .issue-checkout-totals span { color: #939699; font-size: 12px; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue .issue-checkout-totals strong { color: #282e33; font-size: 24px; line-height: 32px; font-weight: 500; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue #issuePaymentPanel > .issue-payment-panel__summary { display: none; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue .issue-final-total-field:has(input[readonly]) { display: none; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue .payment-field--method { order: 0; padding: 16px; gap: 10px; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue .payment-field--method .payment-field__hint { display: block; font-size: 12px; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue .payment-cashbox-choice > span { font-size: 14px; font-weight: 500; text-transform: none; color: #282e33; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue #issuePaymentMethodButtons { display: flex; flex-wrap: wrap; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue #issuePaymentMethodButtons button { flex: 1 1 120px; min-height: 44px; font-size: 14px; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue .payment-field--account { order: 1; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue .payment-field--staff:not([hidden]) { order: 2; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue .payment-field--amount { order: 3; grid-template-columns: minmax(0,1fr) minmax(160px,240px); align-items: center; padding: 16px; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue #paymentMixedPanel { order: 4; padding: 16px; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue #receiptPrintPanel { order: 5; padding: 16px; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue #warrantyPrintPanel:not([hidden]) { display: block; order: 6; padding: 16px; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue #warrantyPrintPanel > :not(.issue-document-picker) { display: none; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue .issue-document-picker__options { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 12px 0; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue .issue-document-picker__options label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 400; cursor: pointer; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue .issue-document-picker input { width: 16px; height: 16px; min-height: 0; margin: 0; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue .issue-document-picker small { color: #939699; font-size: 12px; line-height: 18px; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue #issueReadinessPanel { order: 7; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue #issueProblemPanel { order: 8; }
  #paymentDrawer:is(.order-issue-checkout, .order-intake-payment-roapp).is-issue .drawer__actions { flex-wrap: wrap; align-items: center; padding: 16px; }
}

/* ORDER_ISSUE_STACK_ROLLOUT: crm-order-issue-stack-1 */
@media (min-width: 1000px) {
  #paymentDrawer.order-issue-stack.order-issue-checkout.is-issue { width: min(480px, calc(100vw - 228px)) !important; box-shadow: -8px 0 24px #282e331a; }
  #paymentDrawer.order-issue-stack.is-issue .drawer__header h1 { font-size: 20px; line-height: 28px; }
  #paymentDrawer.order-issue-stack.is-issue .contact-form__body { padding: 16px; }
  #paymentDrawer.order-issue-stack.is-issue .payment-section { gap: 12px; }
  #paymentDrawer.order-issue-stack.is-issue #issuePaymentPanel { padding: 0; border: 0; border-radius: 0; }
  #paymentDrawer.order-issue-stack.is-issue #issuePaymentDetails { display: flex; flex-direction: column; border: 0; padding: 0; }
  #paymentDrawer.order-issue-stack.is-issue .issue-checkout-client { margin: 12px 0 0; padding: 12px 0; border-bottom: 1px solid #eee; }
  #paymentDrawer.order-issue-stack.is-issue .issue-checkout-totals { order: -1; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  #paymentDrawer.order-issue-stack.is-issue .issue-checkout-totals > div { padding: 8px 12px; gap: 2px; }
  #paymentDrawer.order-issue-stack.is-issue .issue-checkout-totals > div:last-child { grid-column: 1 / -1; grid-row: 1; padding: 16px; }
  #paymentDrawer.order-issue-stack.is-issue .issue-checkout-totals strong { font-size: 16px; line-height: 24px; }
  #paymentDrawer.order-issue-stack.is-issue .issue-checkout-totals > div:last-child strong { font-size: 32px; line-height: 40px; }
  #paymentDrawer.order-issue-stack.is-issue .payment-field--method { padding: 0; border: 0; }
  #paymentDrawer.order-issue-stack.is-issue .payment-field--method > span { display: none; }
  #paymentDrawer.order-issue-stack.is-issue #issuePaymentMethodButtons { display: flex; flex-direction: column; gap: 8px; }
  #paymentDrawer.order-issue-stack.is-issue #issuePaymentMethodButtons button { flex: none; min-height: 52px; width: 100%; padding: 10px 16px; justify-content: flex-start; text-align: left; }
  #paymentDrawer.order-issue-stack.is-issue[data-issue-stack-step="choose"] #issuePaymentMethodButtons button.is-active { background: #fff; border-color: #e5e5e5; color: #282e33; }
  #paymentDrawer.order-issue-stack.is-issue[data-issue-stack-step="choose"] :is(.payment-field--amount,.payment-field--staff,.payment-mixed-panel,#receiptPrintPanel,#issueReadinessPanel,#issueProblemPanel,.issue-payment-panel__toggle,.issue-final-total-field,.issue-stack-submit,.issue-stack-back) { display: none !important; }
  #paymentDrawer.order-issue-stack.is-issue[data-issue-stack-step="pay"] .payment-field--method { display: none; }
  #paymentDrawer.order-issue-stack.order-issue-checkout.is-issue #warrantyPrintPanel { display: none; }
  body:has(#paymentDrawer.order-issue-stack.open) #paymentDrawerBackdrop { backdrop-filter: none; background: #121c2740; }
  #paymentDrawer.order-issue-stack.is-issue #paymentAccountHint { order: 1; font-size: 12px; line-height: 18px; color: #939699; font-style: normal; }
  #paymentDrawer.order-issue-stack.is-issue[data-issue-stack-step="choose"] #paymentAccountHint { display: none; }
  #paymentDrawer.order-issue-stack.is-issue .payment-field--amount { padding: 12px; grid-template-columns: minmax(0,1fr) 150px; }
  #paymentDrawer.order-issue-stack.is-issue[data-issue-stack-step="pay"] .issue-checkout-totals { display: block; }
  #paymentDrawer.order-issue-stack.is-issue[data-issue-stack-step="pay"] .issue-checkout-totals > div:not(:last-child) { display: none; }
  #paymentDrawer.order-issue-stack.is-issue[data-issue-stack-step="pay"] .issue-checkout-totals > div:last-child { display: flex; flex-direction: row; align-items: center; justify-content: space-between; padding: 10px 12px; }
  #paymentDrawer.order-issue-stack.is-issue[data-issue-stack-step="pay"] .issue-checkout-totals > div:last-child strong { font-size: 24px; line-height: 32px; }
  #paymentDrawer.order-issue-stack.is-issue[data-issue-stack-step="pay"] .issue-checkout-client { margin: 8px 0 0; padding: 8px 0; }
  #paymentDrawer.order-issue-stack.is-issue #issuePaymentPanel > .issue-payment-panel__toggle { border: 0; background: none; padding: 6px 0; min-height: 32px; font-size: 13px; }
  #paymentDrawer.order-issue-stack.is-issue .issue-stack-back { order: -9; text-align: left; background: none; border: 0; padding: 8px 0; color: #1973e1; font: inherit; cursor: pointer; }
  #paymentDrawer.order-issue-stack.is-issue[data-issue-stack-without] .issue-stack-submit [type="submit"] { display: none; }
  #paymentDrawer.order-issue-stack.is-issue .issue-stack-no-payment { min-height: 48px; border: 1px solid #e5e5e5; border-radius: 8px; background: #fff; color: #282e33; font: inherit; font-weight: 400; text-align: left; padding: 10px 16px; cursor: pointer; }
  #paymentDrawer.order-issue-stack.is-issue .issue-stack-submit { order: 10; display: flex; flex-direction: column; gap: 8px; width: 100%; }
  #paymentDrawer.order-issue-stack.is-issue .issue-stack-submit .button { flex: 0 0 auto; width: 100%; min-height: 40px; height: auto; }
  #paymentDrawer.order-issue-stack.is-issue .issue-stack-tools { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  #paymentDrawer.order-issue-stack.is-issue .issue-stack-print { position: relative; }
  #paymentDrawer.order-issue-stack.is-issue .issue-stack-print summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; }
  #paymentDrawer.order-issue-stack.is-issue .issue-stack-print summary::-webkit-details-marker { display: none; }
  #paymentDrawer.order-issue-stack.is-issue .issue-stack-print__menu { position: absolute; bottom: calc(100% + 12px); right: 0; width: min(350px, calc(100vw - 40px)); padding: 16px; border: 1px solid #e5e5e5; border-radius: 8px; background: #fff; box-shadow: 0 2px 12px #282e3326; z-index: 2; }
  #paymentDrawer.order-issue-stack.is-issue .issue-document-picker__options { flex-direction: column; gap: 12px; }
  #paymentDrawer.order-issue-stack.is-issue .issue-document-picker__options label span { font-weight: 400; }
  #paymentDrawer.order-issue-stack.is-issue[aria-busy="true"] :is(.issue-stack-tools,.issue-stack-back) { pointer-events: none; }
  #paymentDrawer.order-issue-stack.is-issue .payment-field--account { padding: 12px; }
  #paymentDrawer.order-issue-stack.is-free-work-issue .issue-stack-back { display: none; }
  #paymentForm[aria-busy="true"] :is(.issue-stack-tools,.issue-stack-back,.issue-stack-no-payment) { pointer-events: none; }
}

/* ORDER_CREATE_INSTANT_ROLLOUT: crm-order-create-instant-1 */
@media (min-width: 1000px) {
  #drawer.drawer--intake-actions.drawer--instant-create.drawer--order-create,
  #drawer.drawer--intake-actions.drawer--instant-create.drawer--order-create.open,
  #drawer.drawer--intake-actions.drawer--instant-create.drawer--order-create.is-closing {
    transform: none;
    transition: none;
    animation: none;
    will-change: auto;
  }
}

/* ORDER_OPEN_PERFORMANCE_ROLLOUT: crm-order-open-performance-1 */
@media (min-width: 1000px) {
  #drawer.drawer--intake-actions.drawer--sale-motion.drawer--order-create.open {
    transform: none;
    transition: none;
    animation: order-create-sale-in 190ms ease-out;
  }
  #drawer.drawer--intake-actions.drawer--sale-motion.drawer--order-create.is-closing {
    transform: none;
    animation: none;
  }
}
@keyframes order-create-sale-in {
  from { transform: translateX(28px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #drawer.drawer--intake-actions.drawer--sale-motion.drawer--order-create.open { animation: none; }
}

.order-roapp-native { display: none !important; }
.order-roapp-select {
  position: relative; min-width: 0; width: 100%;
  color: var(--order-select-color, var(--text));
  font-family: var(--order-select-font-family, inherit);
  font-size: var(--order-select-font-size, inherit);
  font-weight: var(--order-select-font-weight, inherit);
  line-height: var(--order-select-line-height, normal);
}
.order-roapp-trigger, .order-roapp-search {
  display: flex; align-items: center; width: 100%; box-sizing: border-box;
  height: var(--order-select-height, 32px); min-height: var(--order-select-min-height, 34px);
  padding: var(--order-select-padding, 0 30px 0 9px);
  border: var(--order-select-border, 1px solid var(--line-strong));
  border-radius: var(--order-select-border-radius, 3px);
  background: var(--order-select-background, #fff);
  box-shadow: var(--order-select-box-shadow, none);
  color: inherit; text-align: left; font: inherit; appearance: none;
}
.order-roapp-trigger { cursor: pointer; }
.order-roapp-trigger:disabled { cursor: not-allowed; }
.order-roapp-trigger[aria-invalid="true"] { border-color: var(--ui-field-error, #cf3c3c); }
.order-roapp-trigger:focus-visible, .order-roapp-search:focus-within {
  border-color: var(--ui-field-focus, #267db2); outline: 2px solid #267db23d; outline-offset: 1px;
}
.order-roapp-caption { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-roapp-search input { min-width: 0; appearance: none; font: inherit; }
.order-roapp-search input::-webkit-search-cancel-button { display: none; }
.order-roapp-select [hidden] { display: none !important; }
.order-roapp-menu {
  position: fixed; inset: auto; margin: 0; box-sizing: border-box; z-index: 40;
  max-height: 250px; overflow: auto; overscroll-behavior: contain; padding: 8px 0;
  border: 0; border-radius: 8px; background: #fff; color: #282e33;
  box-shadow: 0 0 6px #282e3333; font-family: inherit; font-size: 14px; line-height: 20px; font-weight: 400;
}
.order-roapp-menu > button { display: block; width: 100%; min-height: 32px; padding: 6px 12px; border: 0; border-radius: 0; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.order-roapp-menu > button:hover, .order-roapp-menu > button[aria-selected="true"], .order-roapp-menu > button.is-active { background: #dceafa; }
.order-roapp-menu > button:disabled { color: #939699; opacity: .65; cursor: default; }
.order-roapp-menu > p { margin: 0; padding: 6px 12px; color: #939699; }
#drawer.drawer--roapp-selects .order-catalog-suggestions,
#drawer.drawer--roapp-selects .order-fault-suggestions,
#drawer.drawer--roapp-selects .device-intake-select__menu {
  max-height: 250px; padding: 8px 0; gap: 0; border: 0; border-radius: 8px; background: #fff; box-shadow: 0 0 6px #282e3333;
}
#drawer.drawer--roapp-selects .order-catalog-suggestions > [role="option"],
#drawer.drawer--roapp-selects .order-fault-suggestions > button,
#drawer.drawer--roapp-selects .device-intake-select__menu > button {
  min-height: 32px; padding: 6px 12px; border: 0; border-radius: 0; background: #fff; font-size: 14px; font-weight: 400;
}
#drawer.drawer--roapp-selects :is(.order-catalog-suggestions, .order-fault-suggestions, .device-intake-select__menu) > button:hover,
#drawer.drawer--roapp-selects :is(.order-catalog-suggestions, .order-fault-suggestions, .device-intake-select__menu) > button[aria-selected="true"] { background: #dceafa; }
#drawer.drawer--roapp-selects :is(.order-catalog-suggestions, .order-fault-suggestions, .device-intake-select__menu) > button:focus-visible,
#drawer.drawer--roapp-selects .device-intake-select__menu > button.active { background: #dceafa; color: #282e33; }

/* ORDER_INTAKE_COMPACT_SIDE: crm-order-roapp-selects-2 */
@media (min-width: 1361px) {
  #drawer.drawer--intake-actions.drawer--roapp-selects.drawer--order-create {
    --order-shell-width: min(1100px, calc(100vw - 228px));
  }
  #drawer.drawer--intake-actions.drawer--roapp-selects.drawer--order-create .order-intake-form {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

/* ORDER_INTAKE_FOOTER_ROLLOUT: crm-order-intake-footer-1 */
.order-intake-print[hidden], .order-intake-print__menu[hidden] { display: none !important; }
@media (min-width: 1000px) {
  #drawer.drawer--roapp-footer.drawer--order-create .drawer__actions {
    padding: 16px 16px 8px; min-height: 66px; gap: 8px; align-items: flex-start;
    background: #edf4fd; border-top: 0;
  }
  #drawer.drawer--roapp-footer.drawer--order-create .drawer__actions > :is(#createOrderButton, [data-order-create-action]),
  #drawer.drawer--roapp-footer.drawer--order-create .order-intake-print__toggle {
    box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
    flex: none; height: 34px; min-height: 34px; margin-block: 0; padding: 0 16px;
    border: 1px solid #e5e5e5; border-radius: 8px; background: #fff; color: #282e33;
    font-family: inherit; font-size: 14px; font-weight: 400; line-height: 20px; white-space: nowrap;
    box-shadow: none; cursor: pointer;
  }
  #drawer.drawer--roapp-footer.drawer--order-create .drawer__actions > #createOrderButton {
    background: #1973e1; border-color: #1973e1; color: #fff; font-weight: 500;
  }
  #drawer.drawer--roapp-footer.drawer--order-create .drawer__actions > #createOrderButton:hover { background: #1565c7; border-color: #1565c7; }
  #drawer.drawer--roapp-footer.drawer--order-create .drawer__actions > [data-order-create-action]:hover,
  #drawer.drawer--roapp-footer.drawer--order-create .order-intake-print__toggle:hover { background: #f7f9fc; }
  #drawer.drawer--roapp-footer.drawer--order-create #closeOrderActionButton { display: none; }
  #drawer.drawer--roapp-footer.drawer--order-create .drawer__actions :is(#createOrderButton, [data-order-create-action], .order-intake-print__toggle):disabled { opacity: .5; cursor: default; }
  #drawer.drawer--roapp-footer.drawer--order-create .drawer__actions :is(#createOrderButton, [data-order-create-action], .order-intake-print__toggle):focus-visible { outline: 2px solid #1973e1; outline-offset: 2px; }
  .order-intake-print { position: relative; flex: none; }
  #drawer.drawer--roapp-footer.drawer--order-create .order-intake-print__toggle { gap: 6px; padding: 0 8px 0 12px; }
  .order-intake-print__toggle > svg { flex: none; }
  .order-intake-print__divider { height: 16px; margin-left: 2px; border-left: 1px solid #b6b8ba; }
}
.order-intake-print__menu {
  position: fixed; inset: auto; margin: 0; box-sizing: border-box; z-index: 50;
  width: max-content; max-width: calc(100vw - 16px); overflow: auto; padding: 8px 0;
  border: 0; border-radius: 8px; background: #fff; color: #282e33; box-shadow: 0 0 6px #282e3333;
  font-family: inherit; font-size: 14px; font-weight: 400; line-height: 20px;
}
.order-intake-print__menu > label { font: inherit; font-weight: 400; display: flex; align-items: center; gap: 8px; min-height: 28px; padding: 4px 12px; cursor: pointer; }
.order-intake-print__menu > label:hover { background: #dceafa; }
.order-intake-print__menu input[type="checkbox"] { appearance: auto; width: 16px !important; height: 16px !important; min-height: 0 !important; margin: 0; accent-color: #1973e1; }
@media print {
  body.printing > .order-intake-print-batch { display: block !important; width: auto; min-height: 0; margin: 0; padding: 0; border: 0; box-shadow: none; }
  .order-intake-print-batch > .receipt + .receipt { break-before: page; page-break-before: always; }
}

/* ORDER_SERVICES_TABLE_ROLLOUT: crm-order-services-table-1.
   The original inputs and issued correction commands remain in their rows. */
.service-table-head, .service-table-total, .service-table-toggle,
.service-table-master, .service-table-issued-values { display: none; }
@media (min-width: 1000px) {
  #drawer.order-detail-roapp.order-services-compact {
    --service-table-columns: minmax(150px, 1fr) 50px 80px 86px 90px 54px;
  }
  #drawer.order-detail-roapp.order-services-compact .services-head { margin-bottom: 8px; }
  #drawer.order-detail-roapp.order-services-compact .services-table { gap: 0; }
  #drawer.order-detail-roapp.order-services-compact .service-table-head {
    display: grid; grid-template-columns: var(--service-table-columns); gap: 8px;
    padding: 6px 0; border-bottom: 1px solid #e5e5e5;
    color: #939699; font-size: 12px; line-height: 20px;
  }
  #drawer.order-detail-roapp.order-services-compact .service-table-head > span:nth-child(n+2) { text-align: right; }
  #drawer.order-detail-roapp.order-services-compact .service-row {
    display: grid; grid-template-columns: var(--service-table-columns); gap: 4px 8px;
    align-items: center; padding: 8px 0; border: 0; border-bottom: 1px solid #e5e5e5;
    border-radius: 0; box-shadow: none; background: #fff;
  }
  #drawer.order-detail-roapp.order-services-compact .service-row > :is(.service-row__main, .service-row__details, .service-row__money) { display: contents; }
  #drawer.order-detail-roapp.order-services-compact .service-row .service-field:not(.issued-work-editor .service-field) { min-width: 0; margin: 0; gap: 0; }
  #drawer.order-detail-roapp.order-services-compact .service-row .service-field:not(.issued-work-editor .service-field) > span {
    position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  #drawer.order-detail-roapp .issued-work-editor .service-field:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    color: #475569;
    font-size: 12px;
    line-height: 1.35;
  }
  #drawer.order-detail-roapp .issued-work-editor__allocation {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)) auto;
  }
  #drawer.order-detail-roapp .issued-work-editor[data-distribution-only="true"] .issued-work-editor__totals input[readonly] {
    padding-inline: 0;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    color: #334155;
    font-weight: 600;
  }
  #drawer.order-detail-roapp.order-services-compact .service-row__main > .service-field--name { grid-column: 1; grid-row: 1; }
  #drawer.order-detail-roapp.order-services-compact .service-row__details > .service-field:not(.service-field--qty):not(.service-field--warranty) { grid-column: 1; grid-row: 2; }
  #drawer.order-detail-roapp.order-services-compact .service-row__details > .service-field--qty { grid-column: 2; grid-row: 1 / 3; }
  #drawer.order-detail-roapp.order-services-compact .service-row__details > .service-field--warranty { grid-column: 3; grid-row: 1 / 3; }
  #drawer.order-detail-roapp.order-services-compact .service-row__money > .service-field:first-of-type { grid-column: 4; grid-row: 1 / 3; }
  #drawer.order-detail-roapp.order-services-compact .service-table-total { display: block; grid-column: 5; grid-row: 1 / 3; text-align: right; font-size: 13px; font-weight: 500; white-space: nowrap; }
  #drawer.order-detail-roapp.order-services-compact .service-row__money > [data-remove-service] { grid-column: 6; grid-row: 2; justify-self: end; width: 24px; height: 24px; border: 0; background: transparent; }
  #drawer.order-detail-roapp.order-services-compact .service-table-toggle {
    display: block; grid-column: 6; grid-row: 1; justify-self: end;
    width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #637186; font-size: 22px; line-height: 20px;
  }
  #drawer.order-detail-roapp.order-services-compact .service-table-toggle:hover { background: #edf4fd; color: #1973e1; }
  #drawer.order-detail-roapp.order-services-compact .service-row__main > select,
  #drawer.order-detail-roapp.order-services-compact .service-row__money > .service-field:nth-of-type(2),
  #drawer.order-detail-roapp.order-services-compact .service-row__main .service-stock-meta,
  #drawer.order-detail-roapp.order-services-compact .service-row > :is(.issued-work-editor, .issued-cost-correction),
  #drawer.order-detail-roapp.order-services-compact .service-row__details > .service-payroll-allocations { display: none; }
  #drawer.order-detail-roapp.order-services-compact .service-row--expanded > .service-row__main > select { display: block; grid-column: 1; grid-row: 3; }
  #drawer.order-detail-roapp.order-services-compact .service-row--expanded > .service-row__money > .service-field:nth-of-type(2) { display: flex; flex-direction: row; align-items: center; gap: 10px; grid-column: 2 / -1; grid-row: 3; }
  #drawer.order-detail-roapp.order-services-compact .service-row--expanded > .service-row__money > .service-field:nth-of-type(2) > span { position: static; clip-path: none; width: auto; height: auto; font-size: 12px; }
  #drawer.order-detail-roapp.order-services-compact .service-row--expanded > .service-row__money > .service-field:nth-of-type(2) > input { width: 100px; }
  #drawer.order-detail-roapp.order-services-compact .service-row--expanded > .service-row__main .service-stock-meta { display: flex; }
  #drawer.order-detail-roapp.order-services-compact .service-row--expanded > :is(.issued-work-editor, .issued-cost-correction),
  #drawer.order-detail-roapp.order-services-compact .service-row--expanded > .service-row__details > .service-payroll-allocations { display: grid; grid-column: 1 / -1; grid-row: auto; }
  #drawer.order-detail-roapp.order-services-compact .service-row__money > .issue-work-estimate-hint { grid-column: 1 / -1; }
  #drawer.order-detail-roapp.order-services-compact .service-row__main input[data-service-field="name"] { height: 32px; min-height: 32px; font-size: 13px; padding: 4px 6px; }
  #drawer.order-detail-roapp.order-services-compact .service-row__details > .service-field select[data-service-field="master"] { height: 24px; min-height: 24px; padding: 1px 6px; border-color: transparent; color: #939699; font-size: 12px; }
  #drawer.order-detail-roapp.order-services-compact :is(.service-row__details > .service-field, .service-row__money > .service-field) > input { min-width: 0; width: 100%; height: 32px; min-height: 32px; padding: 4px 6px; font-size: 13px; text-align: right; }
  #drawer.order-detail-roapp.order-services-compact .service-table-master { display: block; grid-column: 1; grid-row: 2; padding: 0 6px; color: #939699; font-size: 12px; }
  #drawer.order-detail-roapp.order-services-compact .service-table-issued-values { display: contents; }
  #drawer.order-detail-roapp.order-services-compact .service-table-issued-values > span { grid-row: 1 / 3; text-align: right; font-size: 13px; }
  #drawer.order-detail-roapp.order-services-compact .service-table-qty { grid-column: 2; }
  #drawer.order-detail-roapp.order-services-compact .service-table-warranty { grid-column: 3; }
  #drawer.order-detail-roapp.order-services-compact .service-table-price { grid-column: 4; }
  #drawer.order-detail-roapp.order-services-compact .services-total { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; padding: 10px 0; margin-top: 0; border: 0; border-radius: 0; }
  #drawer.order-detail-roapp.order-services-compact .services-total > div { display: flex; align-items: baseline; gap: 8px; padding: 0; border: 0; background: none; }
  #drawer.order-detail-roapp.order-services-compact .services-total span { font-size: 12px; font-weight: 400; color: #939699; }
  #drawer.order-detail-roapp.order-services-compact .services-total strong { font-size: 13px; font-weight: 500; }
}

@media (min-width: 1000px) {
  #drawer.order-detail-roapp.order-services-compact .services-table { container-type: inline-size; }
  @container (max-width: 620px) {
    #drawer.order-detail-roapp.order-services-compact :is(.service-row, .service-table-head) {
      --service-table-columns: minmax(80px, 1fr) 38px 58px 66px 72px 24px;
      column-gap: 4px;
    }
  }
}
/* ORDER_SERVICE_EDITOR_ROLLOUT: crm-order-service-editor-1. Only enhanced desktop rows. */
@media(min-width:1000px){
 #drawer .order-service-list{display:block!important}
 #drawer .order-service-list>.service-table-head{display:none!important}
 #drawer .order-service-list .order-service-list-row{display:block!important;padding:0!important;border:0!important;border-bottom:1px solid #e5e5e5!important;border-radius:0!important;background:#fff!important;box-shadow:none!important}
 #drawer .order-service-list-row> :not(.order-service-line):not(.order-service-editor){display:none!important}
 #drawer .order-service-list-head,#drawer .order-service-line{display:grid;grid-template-columns:minmax(0,1fr) 85px 55px 90px 64px;gap:8px;align-items:start}
 #drawer .order-service-list-head{padding:8px 0 10px;color:#939699;font:400 12px/18px "NS Order Inter",sans-serif;border-bottom:1px solid #e5e5e5}
 #drawer .order-service-line{padding:12px 0;font:400 14px/20px "NS Order Inter",sans-serif;color:#282e33}
 #drawer .order-service-line> :not(:first-child),#drawer .order-service-list-head> :not(:first-child){text-align:right}
 #drawer .order-service-line button{min-height:0;min-width:0;border:0;background:none;box-shadow:none;border-radius:4px;padding:2px 3px;color:inherit;font:inherit;cursor:pointer}
 #drawer .order-service-line button:hover{background:#edf4fd;color:#1973e1}
 #drawer .order-service-line button:disabled{background:none;color:#939699;cursor:default}
 #drawer .order-service-line button[hidden],#drawer .order-service-line [hidden]{display:none!important}
 #drawer .order-service-line__name{display:flex;gap:9px;min-width:0}
 #drawer .order-service-line__name>div{min-width:0}
 #drawer .order-service-line [data-line-name]{display:block;text-align:left;font-weight:500;overflow-wrap:anywhere}
 #drawer .order-service-line small{display:block;margin:3px 3px 0;font-size:11px;line-height:17px;color:#939699;overflow-wrap:anywhere}
 #drawer .order-service-line svg,.order-service-editor svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
 #drawer .order-service-line__name>svg{margin-top:4px;color:#939699}
 #drawer .order-service-line .order-service-note{display:flex;align-items:flex-start;gap:6px;max-width:100%;margin-top:5px;text-align:left;color:#60758f;font-size:11px;line-height:17px}
 #drawer .order-service-note span{overflow-wrap:anywhere}
 #drawer .order-service-line .order-service-note--internal{color:#967739}
 #drawer .order-service-note svg{width:12px;height:15px}
 #drawer .order-service-line__actions{display:flex;justify-content:flex-end;gap:3px}
 #drawer .order-service-line__actions button{width:28px;height:28px;color:#939699}
 #drawer .order-service-list--hover-tools :is(.order-service-list-head,.order-service-line) {
   grid-template-columns:minmax(0,1fr) 85px 55px 90px 90px;
 }
 #drawer .order-service-list--hover-tools .order-service-line:is(:hover,:focus-within) {background:#e8f1fc}
 #drawer .order-service-list--hover-tools .order-service-line:is(:hover,:focus-within) [data-line-name] {color:#1973e1}
 #drawer .order-service-list--hover-tools .order-service-line__actions {opacity:0;pointer-events:none}
 #drawer .order-service-list--hover-tools .order-service-line:is(:hover,:focus-within) .order-service-line__actions {opacity:1;pointer-events:auto}
 #drawer .order-service-list--hover-tools .order-service-line__actions button {color:#70787f}
 #drawer .order-service-list--hover-tools .order-service-line__actions button:hover {color:#1973e1}
 #drawer .order-service-line output{padding-top:2px;font-variant-numeric:tabular-nums}
 #drawer .order-service-line input.order-service-inline{box-sizing:border-box;width:100%;min-width:0;height:30px;min-height:30px;padding:3px!important;font:400 14px/20px "NS Order Inter",sans-serif;text-align:right;border:1px solid #1973e1!important;border-radius:4px}
 .order-service-editor-mask{position:fixed;inset:0;z-index:2390;background:#192c482e}
 #drawer .order-service-editor{position:fixed!important;inset:0 0 0 auto!important;z-index:2391!important;width:min(480px,calc(100vw - 228px));display:flex!important;flex-direction:column;min-height:0;background:#fff;color:#282e33;box-shadow:-8px 0 25px #192c4829;cursor:default;white-space:normal;font:400 14px/20px "NS Order Inter",sans-serif;text-align:left}
 #drawer .order-service-editor--comments{width:420px}
 #drawer .order-service-editor>header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:18px 20px;border-bottom:1px solid #e5e5e5;flex:none}
 #drawer .order-service-editor h2{margin:4px 0 0;font:500 20px/28px "NS Order Inter",sans-serif;overflow-wrap:anywhere}
 #drawer .order-service-editor header small{color:#939699;font-size:11px}
 #drawer .order-service-editor [data-editor-close]{padding:0;border:0;background:none;box-shadow:none;color:#939699;font:400 28px/28px "NS Order Inter",sans-serif}
 #drawer .order-service-editor__body{padding:20px;flex:1;min-height:0;overflow:auto}
 #drawer .order-service-editor__fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 #drawer .order-service-editor__fields>label{display:flex;flex-direction:column;gap:5px;min-width:0;font:500 12px/18px "NS Order Inter",sans-serif}
 #drawer .order-service-editor__fields>label:nth-child(2),#drawer .order-service-editor__fields>label:nth-child(3){grid-column:1/-1}
 #drawer .order-service-editor :is(input,select,textarea){box-sizing:border-box;min-width:0;width:100%;height:34px;min-height:34px;border:1px solid #e5e5e5;border-radius:8px;padding:6px 10px;background:#fff;color:#282e33;font:400 14px/20px "NS Order Inter",sans-serif;box-shadow:none}
 #drawer .order-service-editor :is(input,select,textarea):disabled,#drawer .order-service-editor input:read-only{background:#f5f5f5;color:#939699}
 #drawer .order-service-editor__hint{font-size:11px;line-height:17px;color:#939699;margin:12px 0}
 #drawer .order-service-comments{margin-top:20px}
 #drawer .order-service-comments h3{margin:0 0 10px;font:500 13px/20px "NS Order Inter",sans-serif}
 #drawer .order-service-comments [role=tablist]{display:flex;border:1px solid #e5e5e5;border-radius:8px;overflow:hidden}
 #drawer .order-service-comments [role=tab]{display:flex;align-items:center;justify-content:center;gap:6px;flex:1;padding:8px 6px;border:0;background:#fff;color:#939699;font:400 12px/18px "NS Order Inter",sans-serif;box-shadow:none}
 #drawer .order-service-comments [role=tab]+[role=tab]{border-left:1px solid #e5e5e5}
 #drawer .order-service-comments [aria-selected=true]{background:#edf4fd;color:#1973e1}
 #drawer .order-service-comments [data-visibility=internal][aria-selected=true]{background:#fcf7ed;color:#967739}
 #drawer .order-service-comments [data-comment-hint]{margin:8px 0;color:#939699;font-size:11px;line-height:17px;min-height:34px}
 #drawer .order-service-comments textarea{height:100px;resize:vertical}
 #drawer .order-service-editor>footer{display:flex;gap:10px;align-items:center;padding:16px 20px;min-height:66px;background:#edf4fd;border-top:1px solid #e5e5e5;flex:none}
 #drawer .order-service-editor footer .button{min-height:34px;padding:6px 16px;border:1px solid #e5e5e5;border-radius:8px;background:#fff;color:#282e33;font:400 14px/20px "NS Order Inter",sans-serif;box-shadow:none}
 #drawer.order-detail-roapp .order-service-editor footer .button--blue{background:#1973e1;color:#fff;border-color:#1973e1}
 #drawer .order-service-editor__error{color:#ba3f49;font-size:12px}
 #drawer .order-service-editor .issued-work-editor,#drawer .order-service-editor .issued-cost-correction{display:block!important;grid-column:auto!important;width:100%;margin:0!important}
 #drawer .order-service-editor .service-payroll-allocations{display:block!important}
}

@media(min-width:1000px){#drawer .order-service-editor__remove{margin:18px 0 0;padding:0;background:none;border:0;box-shadow:none;color:#b87478;font:400 12px/18px "NS Order Inter",sans-serif;}}

@media(min-width:1000px){#drawer .order-service-line button{height:auto!important;min-height:0!important;padding:2px 3px!important;}#drawer .order-service-line__actions button{height:28px!important;width:28px;}}

@media(min-width:1000px){#drawer.order-detail-roapp .order-service-editor footer .button--blue{background:#1973e1!important;border-color:#1973e1!important;color:#fff!important;}#drawer .order-service-line [data-line-name]{font-weight:500!important;}#drawer .order-service-line .order-service-note{font-weight:400!important;}}

@media(min-width:1000px){#drawer .order-service-editor__totals{margin:16px 0;padding:10px 12px;border-radius:8px;background:#f5f8fc;font:400 12px/18px "NS Order Inter",sans-serif;color:#60758f;}#drawer .order-service-editor .service-stock-meta{display:flex!important;flex-wrap:wrap;gap:6px;font:400 11px/17px "NS Order Inter",sans-serif;}}

.receipt__service-comment{font-size:11px;line-height:1.35;font-weight:400;white-space:normal;overflow-wrap:anywhere;}

@layer crm-button-system {
 @media screen and (min-width:1000px){
  #drawer.order-detail-roapp .order-service-editor>footer>.button[data-editor-apply]{background:#1973e1!important;border-color:#1973e1!important;color:#fff!important;}
  #drawer.order-detail-roapp .order-service-editor>footer>.button[data-editor-apply]:hover{background:#1565c7!important;border-color:#1565c7!important;}
 }
}

/* ORDER_SERVICE_EDITOR_FIX: inline draft inside the current card, no extra sheet. */
@media(min-width:1000px){
 #drawer .order-service-editor.order-service-editor--inline{position:relative!important;inset:auto!important;z-index:auto!important;width:100%!important;max-width:none;margin:4px 0 12px;border:1px solid #d6e4f5;border-radius:8px;box-shadow:none;overflow:hidden}
 #drawer .order-service-editor--inline>header{padding:10px 14px;background:#f7faff;align-items:center}
 #drawer .order-service-editor--inline h2{font-size:15px;line-height:22px;margin:0}
 #drawer .order-service-editor--inline header small{display:none}
 #drawer .order-service-editor--inline .order-service-editor__body{padding:14px;overflow:visible;flex:none}
 /* ORDER_SERVICE_EDITOR_COMPACT: master/name/quantity, then price/cost/warranty. */
 #drawer .order-service-editor--inline .order-service-editor__fields{grid-template-columns:minmax(0,1fr) minmax(0,1.6fr) 100px;gap:8px 10px}
 #drawer .order-service-editor--inline .order-service-editor__fields>label{gap:3px}
 #drawer .order-service-editor--inline .order-service-editor__fields>[hidden]{display:none!important}
 #drawer .order-service-editor--inline .order-service-editor__fields>[data-editor-field=master]{grid-column:1;grid-row:1}
 #drawer .order-service-editor--inline .order-service-editor__fields>[data-editor-field=name]{grid-column:2;grid-row:1}
 #drawer .order-service-editor--inline .order-service-editor__fields>[data-editor-field=qty]{grid-column:3;grid-row:1}
 #drawer .order-service-editor--inline .order-service-editor__fields>[data-editor-field=price]{grid-column:1;grid-row:2}
 #drawer .order-service-editor--inline .order-service-editor__fields>[data-editor-field=cost]{grid-column:2;grid-row:2}
 #drawer .order-service-editor--inline .order-service-editor__fields>[data-editor-field=warranty]{grid-column:3;grid-row:2}
 #drawer .order-service-editor--inline .order-service-comments{margin-top:12px}
 #drawer .order-service-editor--inline .order-service-comments textarea{height:70px}
 #drawer .order-service-editor--inline .order-service-comments [data-comment-hint]{min-height:0}
 #drawer .order-service-editor--inline>footer{min-height:0;padding:10px 14px}
 #drawer .order-service-draft> :not(.order-service-editor){display:none!important}
 /* ORDER_SERVICE_EDITOR_HEADER_ACTIONS: no delete row between totals and notes. */
 #drawer .order-service-editor--inline .order-service-editor__actions{display:flex;align-items:center;gap:8px;flex:none}
 #drawer .order-service-editor--inline .order-service-editor__actions>.order-service-editor__remove{display:flex;align-items:center;justify-content:center;box-sizing:border-box;margin:0!important;padding:5px!important;width:28px;min-width:28px;height:28px;min-height:28px;border:0;background:transparent;border-radius:5px;box-shadow:none;color:#b87478;cursor:pointer}
 #drawer .order-service-editor--inline .order-service-editor__actions>.order-service-editor__remove:hover{background:#fff0f0;color:#b53b48}
 #drawer .order-service-editor--inline .order-service-editor__totals{margin:8px 0 0;padding:0;background:none;border-radius:0;line-height:18px}
 #drawer .order-service-editor--inline .order-service-comments{margin-top:10px}
}

/* ORDER_FORM_FIELDS_ROLLOUT: crm-order-form-fields-1; new and saved orders share real fields. */
@media (min-width: 1000px) {
  #paymentDrawer.order-intake-payment-roapp.order-issue-roapp.is-issue { width: min(480px, calc(100vw - 228px)) !important; box-shadow: -8px 0 24px #282e331a; }
  #paymentDrawer.order-intake-payment-roapp #issuePaymentDetails { gap: 0; }
  #paymentDrawer.order-intake-payment-roapp .issue-payment-panel__details-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 0; }
  #paymentDrawer.order-intake-payment-roapp .issue-payment-panel__details-row > span { font-size: 12px; font-weight: 400; text-transform: none; color: #939699; }
  #paymentDrawer.order-intake-payment-roapp .issue-payment-panel__details-row > strong { font-size: 14px; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
  #paymentDrawer.order-intake-payment-roapp .issue-payment-panel__details-row:last-child { order: -1; margin-bottom: 8px; padding: 12px; border: 1px solid #e5e5e5; border-radius: 8px; background: #f7f7f7; }
  #paymentDrawer.order-intake-payment-roapp .issue-payment-panel__details-row:last-child > strong { font-size: 24px; line-height: 32px; }
  html.crm-order-form-fields-beta #drawer.drawer--order-create [data-order-intake-field="master"] { display: grid; }
  html.crm-order-form-fields-beta #drawer .order-intake-column--side { grid-template-columns: minmax(0, 1fr); }
  html.crm-order-form-fields-beta #drawer .order-intake-column--side .ro-row { min-width: 0; }
  html.crm-order-form-fields-beta #drawer .order-intake-column--side .ro-row > span:first-child { white-space: normal; flex-wrap: wrap; }
  html.crm-order-form-fields-beta #drawer .order-intake-column--side .order-money-input { box-sizing: border-box; width: 100%; min-width: 0; justify-self: stretch; }
  html.crm-order-form-fields-beta #drawer .order-intake-column--side .order-money-input input { box-sizing: border-box; width: 100%; min-width: 0; flex: 1; }
  html.crm-order-form-fields-beta #drawer.drawer--order-create .order-money-input input { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  html.crm-order-form-fields-beta #drawer [data-order-intake-field="estimate"] .order-money-input input { text-align: left; }
  html.crm-order-form-fields-beta #drawer .order-urgent-switch { display: flex; align-items: center; justify-content: flex-start; gap: 12px; min-height: 34px; }
  html.crm-order-form-fields-beta #drawer .order-urgent-switch input[type="checkbox"] { position: relative; appearance: none; box-sizing: border-box; flex: 0 0 42px; width: 42px; min-width: 42px; height: 24px; min-height: 24px; padding: 0; margin: 0; border: 0; border-radius: 999px; background: #cbd3dc; box-shadow: inset 0 0 0 1px rgba(32,49,66,.08); cursor: pointer; }
  html.crm-order-form-fields-beta #drawer .order-urgent-switch input[type="checkbox"]::before { position: absolute; content: ""; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(24,39,54,.28); transform: none; }
  html.crm-order-form-fields-beta #drawer .order-urgent-switch input[type="checkbox"]:checked { background: #2f80ed; }
  html.crm-order-form-fields-beta #drawer .order-urgent-switch input[type="checkbox"]:checked::before { transform: translateX(18px); }
  html.crm-order-form-fields-beta #drawer .order-urgent-switch input[type="checkbox"]:focus-visible { outline: 3px solid rgba(47,128,237,.3); outline-offset: 2px; }
  html.crm-order-form-fields-beta #drawer .order-urgent-switch input[type="checkbox"]:disabled { opacity: .5; cursor: default; }
}
@media (min-width: 1361px) {
  html.crm-order-form-fields-beta #drawer.drawer--intake-actions.drawer--roapp-selects.drawer--order-create { --order-shell-width: min(1140px, calc(100vw - 228px)); }
  html.crm-order-form-fields-beta #drawer.drawer--intake-actions.drawer--roapp-selects.drawer--order-create .order-intake-form { grid-template-columns: minmax(0, 1fr) 320px; }
}

/* ORDER_PREPAYMENT_ENTRY_ROLLOUT: crm-order-prepayment-entry-1; controls inserted only behind the gate. */
@media (min-width:1000px) {
  #drawer .order-saved-prepayment:not([hidden]) {display:grid;gap:8px;min-width:0;padding:10px 0;border-top:1px solid #e5e9ee;border-bottom:1px solid #e5e9ee}
  #drawer .order-saved-prepayment > div {display:flex;align-items:baseline;justify-content:space-between;gap:12px;color:#637487;font-size:12px}
  #drawer .order-saved-prepayment strong {color:#283238;font-size:14px;font-weight:500}
  #drawer .order-saved-prepayment > .button {box-sizing:border-box;width:100%;min-width:0;height:34px;min-height:34px;padding:0 10px;border:1px solid #1973e1;border-radius:8px;background:#fff;color:#1973e1;font-family:inherit;font-size:13px;font-weight:500;cursor:pointer}
  #drawer .order-saved-prepayment > .button:hover {background:#edf4fd}
}

/* ORDER_CATALOG_DENSITY_ROLLOUT: crm-warehouse-posting-actions-1. Open desktop lists only. */
@media (min-width: 1000px) {
  #drawer.drawer--catalog-compact :is(.order-catalog-suggestions, .order-fault-suggestions) {
    padding: 4px 0; gap: 0; align-content: start; grid-auto-rows: max-content;
  }
  #drawer.drawer--catalog-compact :is(.order-catalog-suggestions, .order-fault-suggestions) > :is(button, [role="option"]) {
    box-sizing: border-box; min-height: 28px; padding: 4px 10px;
    border: 0; border-radius: 0; line-height: 20px;
  }
  #drawer.drawer--catalog-compact :is(.order-catalog-suggestions__manage, .order-fault-suggestions__manage) {
    margin: 0; white-space: nowrap;
  }
  #drawer.drawer--catalog-compact :is(.order-catalog-suggestions__manage, .order-fault-suggestions__manage) em {
    padding: 0 6px; line-height: 20px;
  }
}

/* crm-warehouse-posting-actions-1: bounded desktop report and observed serial input. */
.inventory-stock-document-lines textarea[data-stock-document-field="serialNumbers"] { box-sizing: border-box; display: block; width: 100%; min-height: 96px; resize: vertical; margin: 6px 0; }
.inventory-stock-document-lines [data-stock-document-line] details p { overflow-wrap: anywhere; max-height: 160px; overflow-y: auto; }
.inventory-stock-document-lines [data-copy-count-serials] { width: auto; min-width: 0; height: auto; white-space: normal; }
.inventory-stock-document-lines [data-serial-count-row] > div:nth-child(5) { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.inventory-serial-count-summary, .inventory-serial-count-issue, .inventory-serial-count-confirm { padding: 12px; margin: 12px 0; border: 1px solid #d9e1eb; border-radius: 6px; overflow-wrap: anywhere; }
.inventory-serial-count-summary article + article { border-top: 1px solid #d9e1eb; padding-top: 8px; }
.inventory-serial-count-confirm { background: #eef5fc; }
[data-serial-count-report] textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; }

/* WAREHOUSE_POSTING_ACTIONS_ROLLOUT: crm-warehouse-posting-actions-1 */
[data-posting-actions] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid #d7e0e8;
}
[data-posting-actions] > p,
[data-posting-actions] > details,
[data-posting-actions] > label { flex-basis: 100%; margin: 0; }
[data-posting-actions] > label { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
[data-posting-actions] > label > input { width: 100px; flex: 0 0 100px; }
[data-posting-actions] details { padding: 8px 0; }
[data-posting-actions] summary { cursor: pointer; }

/* SETTINGS_NAV_COMPACT_ROLLOUT: crm-settings-nav-compact-2 */
.settings-nav__back { display: none; }
@media (min-width: 901px) {
  body.settings-nav-compact-beta { grid-template-columns: 72px minmax(0, 1fr); }
  body.settings-nav-compact-beta .app-sidebar { min-width: 0; padding: 12px 6px; }
  body.settings-nav-compact-beta .app-sidebar__avatar { width: 40px; height: 40px; margin: 0 auto 16px; flex-shrink: 0; font-size: 20px; }
  body.settings-nav-compact-beta .app-sidebar__nav { display: flex; flex-direction: column; flex: 1; gap: 4px; min-height: 0; padding: 0 0 8px; }
  body.settings-nav-compact-beta .app-sidebar__nav button:not([hidden]),
  body.settings-nav-compact-beta .app-sidebar__settings:not([hidden]) { display: flex; align-items: center; justify-content: center; gap: 0; min-height: 44px; padding: 0; flex-shrink: 0; }
  body.settings-nav-compact-beta .app-sidebar em { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  body.settings-nav-compact-beta .settings-layout { grid-template-columns: 248px minmax(0, 1fr); }
  body.settings-nav-compact-beta .settings-nav { gap: 18px; padding: 0 12px 20px; background: #fafafa; border-right: 1px solid #e4e4e4; }
  body.settings-nav-compact-beta .settings-nav__back:not([hidden]) { display: flex; position: sticky; top: 0; z-index: 1; align-items: center; gap: 10px; min-height: 56px; margin: 0 -12px; padding: 0 18px; background: #fafafa; border-bottom: 1px solid #e4e4e4; color: #36393d; text-decoration: none; font-size: 14px; font-weight: 400; flex-shrink: 0; }
  body.settings-nav-compact-beta .settings-nav__back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
  body.settings-nav-compact-beta .settings-nav__back:hover { background: #f0f0f0; }
  body.settings-nav-compact-beta .settings-nav__back:focus-visible { outline: 2px solid #4d86c4; outline-offset: -3px; }
  body.settings-nav-compact-beta .settings-nav__group { gap: 2px; }
  body.settings-nav-compact-beta .settings-nav__group > strong { padding: 0 10px 6px; color: #777c82; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; }
  body.settings-nav-compact-beta .settings-nav button { min-height: 36px; padding: 0 10px; border: 0; border-radius: 6px; color: #4a4d52; font-size: 14px; font-weight: 400; }
  body.settings-nav-compact-beta .settings-nav button:hover { background: #f0f0f0; }
  body.settings-nav-compact-beta .settings-nav button.active { background: #e8e8e8; color: #24272b; }
}

/* crm-settings-polish-1 — desktop settings only, isolated from other tenants. */
@media (min-width: 1000px) {
  .settings-polish-beta .settings-content { --settings-panel-gap: 16px; gap: var(--settings-panel-gap); align-content: start; }
  .settings-polish-beta .settings-content[data-settings-layout="form"] { max-width: 1120px; width: 100%; }
  .settings-polish-beta .settings-content .settings-card { border-radius: 8px; padding: 20px; box-shadow: none; }
  .settings-polish-beta .settings-content .settings-card--actions { padding: 14px 20px; background: #f7f9fc; }
  .settings-polish-beta .settings-workspace__section-head { padding: 0 0 16px; margin-bottom: 0; border-bottom: 1px solid #dfe5ec; }
  .settings-polish-beta .settings-workspace__section-head h2 { font-size: 22px; line-height: 1.3; }
  .settings-polish-beta .settings-content .settings-card h2,
  .settings-polish-beta .settings-content .location-settings__hero h2,
  .settings-polish-beta .settings-content .directory-settings-hero h2 { font-size: 18px; line-height: 1.4; }
  .settings-polish-beta .settings-content .settings-polish-duplicate-title { display: none; }
  .settings-polish-beta .settings-content .button { min-height: 34px; font-size: 13px; border-radius: 5px; padding: 6px 12px; font-weight: 600; }
  .settings-polish-beta .settings-content .company-settings-tabs { gap: 4px; margin-bottom: 16px; }
  .settings-polish-beta .settings-content .company-settings-tabs > button { font: inherit; font-size: 13px; min-height: 36px; border-radius: 5px; }
  .settings-polish-beta .settings-content :is(input,select,textarea) { font-family: inherit; font-size: 14px; }
  .settings-polish-beta .settings-content input[type="checkbox"] { accent-color: #2b78b8; }
  .settings-polish-beta .settings-content :is(.location-settings__hero,.directory-settings-hero) { padding: 20px; border-radius: 8px; box-shadow: none; }
  .settings-polish-beta .settings-content .company-defaults-panel { grid-column: 1 / -1; }
  .settings-polish-beta .settings-nav__group--danger > button { color: #ad3030; }
  .settings-polish-beta .audit-settings { min-width: 0; }
  .settings-polish-beta .audit-period { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 16px 0; }
  .settings-polish-beta .audit-period label { display: grid; gap: 5px; min-width: 160px; }
  .settings-polish-beta .audit-period small { color: #64748b; font-size: 12px; }
  .settings-polish-beta .settings-nav__search > span { display: none; }
  .settings-polish-beta .audit-period [hidden] { display: none; }
  .settings-polish-beta .audit-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin: 0 0 16px; }
  .settings-polish-beta .audit-pagination > span { font-size: 13px; color: #53657a; }
  .settings-polish-beta .audit-filters { grid-template-columns: repeat(3,minmax(140px,1fr)); gap: 12px; }
  .settings-polish-beta .audit-filters__search { grid-column: span 2; }
  .settings-polish-beta .settings-nav__search { display: grid; padding: 8px 12px 16px; }
  .settings-polish-beta .settings-nav__search[hidden] { display: none; }
  .settings-polish-beta .settings-nav__search input { width: 100%; min-width: 0; min-height: 34px; padding: 6px 9px; border: 1px solid #d5dee8; border-radius: 5px; font: inherit; font-size: 13px; background: #fff; }
}

/* SETTINGS_ACCESS_UX_ROLLOUT: crm-settings-access-ux-1 */
.staff-settings--access-ux .staff-permission-search { display: flex; align-items: end; gap: 16px; padding: 12px 20px; border-bottom: 1px solid #e4e9f0; background: #f8fafc; flex: 0 0 auto; }
.staff-settings--access-ux .staff-permission-search label { display: grid; gap: 6px; flex: 1; min-width: 0; font-size: 13px; font-weight: 500; }
.staff-settings--access-ux .staff-permission-search input { width: 100%; height: 34px; padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 6px; font: inherit; background: white; color: #263646; }
.staff-settings--access-ux [data-permission-search-count] { min-width: 105px; padding-bottom: 7px; color: #64748b; font-size: 12px; }
.staff-settings--access-ux .staff-seat-usage { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px; margin: 12px 0; border: 1px solid #dce5ef; border-radius: 6px; background: #f5f8fc; font-size: 13px; }
.staff-settings--access-ux .staff-seat-usage p { flex: 1; min-width: 220px; margin: 0; line-height: 1.5; }
.staff-settings--access-ux .staff-seat-usage small { flex-basis: 100%; color: #64748b; }
.staff-settings--access-ux .staff-seat-usage .is-full { color: #934b12; }
.staff-settings--access-ux .staff-invite-feedback { grid-column: 1 / -1; padding: 10px 12px; margin: 8px 0; border-radius: 6px; background: #f1f6fd; line-height: 1.5; font-size: 13px; }
.staff-settings--access-ux .staff-invite-feedback.settings-status--error { color: #a12b25; background: #fff1f0; }
.staff-settings--access-ux .staff-form__actions button:disabled { cursor: wait; opacity: .6; }
.staff-settings--access-ux .staff-role-permission-group[hidden],
.staff-settings--access-ux .staff-role-permission-menu__item[hidden],
.staff-settings--access-ux .staff-role-permission-row[hidden],
.staff-settings--access-ux .staff-role-special-permission[hidden],
.staff-settings--access-ux .staff-personal-rights-group[hidden],
.staff-settings--access-ux .staff-personal-rights-row[hidden],
.staff-settings--access-ux .staff-comp__permissions > label[hidden],
.staff-settings--access-ux .staff-invite-feedback[hidden] { display: none !important; }
.staff-settings--access-ux .staff-role-modal__panel { grid-template-rows: auto auto auto auto auto minmax(0, 1fr) auto; }
.staff-settings--access-ux .staff-role-modal__panel:has(.staff-role-modal__name[hidden]) { grid-template-rows: auto auto auto auto minmax(0, 1fr) auto; }
.staff-settings--access-ux .staff-personal-rights-drawer__panel:has([data-permission-search]) { grid-template-rows: auto auto auto auto minmax(0, 1fr) auto; }

/* SETTINGS_TIMEZONE_ROLLOUT: crm-warehouse-movement-period-1 */
#companySettingsForm:has(.company-timezone-field) .settings-form > label { align-content: start; grid-auto-rows: max-content; }
#companySettingsForm .company-timezone-field small { color: #64748b; font-size: 12px; font-weight: 400; line-height: 1.4; }

/* WAREHOUSE_MOVEMENT_PERIOD_ROLLOUT: crm-warehouse-movement-period-1 */
.inventory-history-period {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #edf2f6;
}

/* SETTINGS_CONTROLS_LAYOUT_ROLLOUT: crm-settings-controls-layout-1 */
@media (min-width: 1000px) {
  .settings-controls-beta .settings-content .staff-row > .staff-row__actions--clarity {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    max-width: none;
    margin: 0;
  }
  .settings-controls-beta .settings-content .staff-row__actions--clarity > :is(.button, .staff-owner-lock) { width: auto; }
  .settings-controls-beta .settings-content .directory-model-tools > .directory-add-form { align-self: end; align-items: end; }
  .settings-controls-beta .settings-content .audit-filters > .button { justify-self: start; width: auto; }
}


/* STAFF_ROAPP_DESKTOP_ROLLOUT: crm-staff-roapp-desktop-1 */
@media (min-width: 1000px) {
  .settings-content .staff-settings.staff-settings--roapp {--ui-font-sans:"NS Order Inter",Arial,sans-serif;--ui-button-radius:3px;font-family:var(--ui-font-sans);color:#30343b;}
  .settings-content .staff-settings.staff-settings--roapp > .staff-settings-tabs {display:flex;gap:28px;padding:0 0 0 2px;border:0;border-bottom:1px solid #dce1e7;border-radius:0;box-shadow:none;backdrop-filter:none;background:none;}
  .settings-content .staff-settings.staff-settings--roapp > .staff-settings-tabs > button {border:0;border-radius:0;box-shadow:none;background:none;padding:13px 0;font-size:14px;font-weight:500;color:#66717e;}
  .settings-content .staff-settings.staff-settings--roapp > .staff-settings-tabs > button.active {color:#1677ff;background:none;box-shadow:inset 0 -2px #1677ff;}
  .settings-content .staff-settings.staff-settings--roapp > .staff-settings-panel {padding:20px 0;border:0;box-shadow:none;background:none;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-toolbar {display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-toolbar h2 {display:none;}
  .settings-content .staff-settings.staff-settings--roapp .staff-page-title-actions {display:flex;align-items:center;gap:14px;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-toolbar .staff-page-title-actions > div {order:2;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-toolbar .settings-status {font-size:12px;}
  .settings-content .staff-settings.staff-settings--roapp .staff-page-actions {display:flex;align-items:center;gap:10px;}
  .settings-content .staff-settings.staff-settings--roapp .button {--_crm-button-height:34px;--_crm-button-font:13px;--_crm-button-padding:7px 13px;font-weight:500!important;min-height:34px;border-radius:3px;font:500 13px "NS Order Inter",Arial,sans-serif;}
  .settings-content .staff-settings.staff-settings--roapp #newStaffButton {--_crm-button-bg:#00a046;--_crm-button-border:#00a046;--_crm-button-hover:#008d3e;background:#00a046;border-color:#00a046;color:#fff;padding:8px 14px;}
  .settings-content .staff-settings.staff-settings--roapp .staff-filter-bar {display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px;padding:0;border:0;background:none;}
  .settings-content .staff-settings.staff-settings--roapp .staff-filter-bar button {border:1px solid #dce1e7;border-radius:3px;padding:7px 10px;background:#fff;min-height:32px;font-size:13px;flex:0 0 auto;font-weight:500;}
  .settings-content .staff-settings.staff-settings--roapp .staff-filter-bar button.active {color:#1677ff;border-color:#91bfff;background:#edf5ff;}
  .settings-content .staff-settings.staff-settings--roapp .staff-main {display:block;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-table {border:1px solid #e1e5ea;border-radius:0;overflow-x:auto;background:#fff;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-row {display:grid;grid-template-columns:var(--staff-columns);align-items:stretch;min-width:fit-content;border-bottom:1px solid #e9edf1;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-row:last-child {border-bottom:0;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-row > * {display:flex;align-items:center;gap:7px;padding:13px 14px;font-size:13px;line-height:1.5;min-width:0;overflow-wrap:anywhere;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-row--head {background:#f8fafc;color:#707a88;font-weight:500;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-row--head > * {padding-top:10px;padding-bottom:10px;font-size:12px;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-row:not(.staff-desktop-row--head):hover {background:#f8fbff;}
  .settings-content .staff-settings.staff-settings--roapp [data-staff-column="role"] {flex-wrap:wrap;}
  .settings-content .staff-settings.staff-settings--roapp [data-staff-column="actions"] {justify-content:flex-end;position:relative;gap:5px;padding:9px 8px;}
  .settings-content .staff-settings.staff-settings--roapp .staff-person {display:flex;align-items:center;gap:10px;border:0;background:none;color:#1677ff;text-align:left;padding:0;cursor:pointer;font:500 13px "NS Order Inter",Arial,sans-serif;}
  .settings-content .staff-settings.staff-settings--roapp .staff-avatar {display:flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:#edf2f7;color:#7b8795;font-size:12px;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-status {white-space:nowrap;color:#29955a;font-size:12px;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-status.is-pending {color:#b07815;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-owner {display:inline-flex;width:20px;height:20px;color:#7b8795;}
  .settings-content .staff-settings.staff-settings--roapp .staff-icon-button,.settings-content .staff-settings.staff-settings--roapp .staff-row-menu > summary {display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:7px;border:1px solid #dce1e7;border-radius:3px;background:#fff;color:#788696;cursor:pointer;list-style:none;box-sizing:border-box;}
  .settings-content .staff-settings.staff-settings--roapp .staff-icon-button svg,.settings-content .staff-settings.staff-settings--roapp .staff-row-menu svg {width:18px;height:18px;flex-shrink:0;}
  .settings-content .staff-settings.staff-settings--roapp summary::-webkit-details-marker {display:none;}
  .settings-content .staff-settings.staff-settings--roapp .staff-row-menu {position:relative;}
  .settings-content .staff-settings.staff-settings--roapp .staff-row-menu[open] {z-index:4;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-menu {position:fixed;display:grid;gap:2px;width:230px;padding:5px;background:#fff;border:1px solid #dce1e7;box-shadow:0 5px 20px #14243d26;border-radius:4px;z-index:1260;}
  .settings-content .staff-settings.staff-settings--roapp .staff-row-menu button {white-space:normal;border:0;border-radius:2px;font-weight:400;font-size:13px;width:100%;}
  .settings-content .staff-settings.staff-settings--roapp .staff-row-menu button:hover {background:#f4f7fa;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-total {padding:15px 0;color:#647080;font-size:13px;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-empty {padding:35px;color:#7b8795;}
  .settings-content .staff-settings.staff-settings--roapp .staff-column-picker {position:relative;z-index:5;}
  .settings-content .staff-settings.staff-settings--roapp .staff-column-picker fieldset {position:absolute;right:0;top:38px;min-width:210px;padding:14px;border:1px solid #dce1e7;border-radius:4px;box-shadow:0 5px 20px #14243d1a;background:white;}
  .settings-content .staff-settings.staff-settings--roapp .staff-column-picker legend {float:left;width:100%;font-weight:600;font-size:13px;padding:0 0 8px;}
  .settings-content .staff-settings.staff-settings--roapp .staff-column-picker label {display:flex;align-items:center;gap:9px;padding:5px 0;font-size:13px;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-drawer {position:fixed;inset:0;z-index:1250;display:flex;justify-content:flex-end;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-drawer[hidden],.settings-content .staff-settings.staff-settings--roapp [hidden] {display:none!important;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-backdrop {position:absolute;inset:0;border:0;border-radius:0;background:#1b273c59;cursor:default;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-panel {position:relative;display:flex;flex-direction:column;min-width:0;width:680px;max-width:calc(100vw - 80px);height:100%;background:#fff;box-shadow:-8px 0 24px #1520311a;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-head {display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:68px;padding:0 24px;border-bottom:1px solid #e5e9ee;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-head h2 {margin:0;font-size:21px;font-weight:500;overflow-wrap:anywhere;line-height:1.4;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-head .staff-icon-button {flex-shrink:0;border:0;background:none;width:34px;height:34px;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-tabs,.settings-content .staff-settings.staff-settings--roapp .staff-desktop-access-tabs {display:flex;flex-shrink:0;gap:24px;padding:0 24px;border-bottom:1px solid #e5e9ee;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-tabs button,.settings-content .staff-settings.staff-settings--roapp .staff-desktop-access-tabs button {border:0;border-radius:0;background:none;color:#677280;padding:13px 0;font:500 13px "NS Order Inter",Arial,sans-serif;cursor:pointer;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-tabs button.active,.settings-content .staff-settings.staff-settings--roapp .staff-desktop-access-tabs button.active {color:#1677ff;box-shadow:inset 0 -2px #1677ff;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-access-tabs {gap:20px;background:#fbfcfe;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-access-tabs button {font-size:12px;padding:11px 0;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-body {flex:1;min-height:0;overflow:hidden;}
  .settings-content .staff-settings.staff-settings--roapp [data-staff-profile-host],.settings-content .staff-settings.staff-settings--roapp [data-staff-rights-host] {height:100%;min-height:0;}
  .settings-content .staff-settings.staff-settings--roapp #staffForm {display:flex;flex-direction:column;gap:0;height:100%;padding:0;margin:0;border:0;border-radius:0;overflow:hidden;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-fields {flex:1;min-height:0;overflow-y:auto;padding:24px;}
  .settings-content .staff-settings.staff-settings--roapp #staffForm .staff-editor-section {border:0;padding:0;background:none;}
  .settings-content .staff-settings.staff-settings--roapp #staffForm .staff-editor-section__head {display:none;}
  .settings-content .staff-settings.staff-settings--roapp #staffForm .staff-editor-grid {display:flex;flex-direction:column;gap:20px;}
  .settings-content .staff-settings.staff-settings--roapp #staffForm .staff-editor-grid > label {display:grid;grid-template-columns:145px minmax(0,1fr);align-items:start;gap:16px;margin:0;font-size:13px;}
  .settings-content .staff-settings.staff-settings--roapp #staffForm .staff-editor-grid > label > span {padding-top:9px;color:#677280;font-size:13px;font-weight:400;}
  .settings-content .staff-settings.staff-settings--roapp #staffForm :is(input:not([type="checkbox"]),select) {min-height:36px;font:400 13px "NS Order Inter",Arial,sans-serif;border:1px solid #d3dbe5;border-radius:3px;background:#fff;box-sizing:border-box;}
  .settings-content .staff-settings.staff-settings--roapp #staffForm input:disabled,.settings-content .staff-settings.staff-settings--roapp #staffForm select:disabled {background:#f5f7fa;color:#85909d;}
  .settings-content .staff-settings.staff-settings--roapp #staffForm .staff-editor-note {margin:24px 0 18px;}
  .settings-content .staff-settings.staff-settings--roapp #staffForm .staff-form__actions {flex-shrink:0;justify-content:flex-start;gap:10px;border-top:1px solid #dce5ee;background:#f1f7fd;padding:15px 24px;margin:0;}
  .settings-content .staff-settings.staff-settings--roapp #staffForm .staff-form__actions [type="submit"] {--_crm-button-bg:#1677ff;--_crm-button-border:#1677ff;--_crm-button-hover:#0869ec;background:#1677ff;border-color:#1677ff;color:#fff;}
  .settings-content .staff-settings.staff-settings--roapp #staffPersonalPermissionsWorkspace {height:100%;display:flex;flex-direction:column;padding:0;gap:0;}
  .settings-content .staff-settings.staff-settings--roapp #staffPersonalPermissionsWorkspace > [data-permission-status]:empty {display:none;}
  .settings-content .staff-settings.staff-settings--roapp #staffPersonalPermissionsWorkspace > [data-permission-status] {padding:10px 24px;}
  .settings-content .staff-settings.staff-settings--roapp #staffPersonalPermissionsWorkspace .staff-personal-rights-drawer {position:static;display:flex;flex:1;min-height:0;background:none;}
  .settings-content .staff-settings.staff-settings--roapp #staffPersonalPermissionsWorkspace .staff-personal-rights-drawer__backdrop,.settings-content .staff-settings.staff-settings--roapp #staffPersonalPermissionsWorkspace .staff-personal-rights-drawer__head,.settings-content .staff-settings.staff-settings--roapp #staffPersonalPermissionsWorkspace [data-permission-close] {display:none;}
  .settings-content .staff-settings.staff-settings--roapp #staffPersonalPermissionsForm {position:static;display:flex!important;flex-direction:column;gap:0!important;padding:0;width:100%;height:100%;max-width:none;max-height:none;border:0;border-radius:0;box-shadow:none;overflow-y:auto;}
  .settings-content .staff-settings.staff-settings--roapp #staffPersonalPermissionsWorkspace .staff-personal-rights-drawer__meta {margin:16px 24px 0;flex-shrink:0;}
  .settings-content .staff-settings.staff-settings--roapp #staffPersonalPermissionsWorkspace .staff-personal-rights-drawer__intro {padding:16px 24px;gap:14px;flex-wrap:wrap;}
  .settings-content .staff-settings.staff-settings--roapp #staffPersonalPermissionsWorkspace .staff-personal-rights-drawer__permissions {flex:1;overflow:visible;padding:0 24px 20px;}
  .settings-content .staff-settings.staff-settings--roapp #staffPersonalPermissionsWorkspace .staff-personal-rights-row {grid-template-columns:minmax(0,1fr) 275px;gap:12px;}
  .settings-content .staff-settings.staff-settings--roapp #staffPersonalPermissionsWorkspace .staff-personal-rights-row__result {grid-column:1 / -1;text-align:left;justify-items:start;}
  .settings-content .staff-settings.staff-settings--roapp #staffPersonalPermissionsWorkspace .staff-personal-rights-drawer__actions {position:sticky;bottom:0;flex-shrink:0;margin-top:auto;padding:15px 24px;background:#f1f7fd;z-index:2;}
  .settings-content .staff-settings.staff-settings--roapp #staffPersonalPermissionsWorkspace .staff-personal-rights-drawer__actions [type="submit"] {--_crm-button-bg:#1677ff;--_crm-button-border:#1677ff;--_crm-button-hover:#0869ec;background:#1677ff;border-color:#1677ff;}
  .settings-content .staff-settings.staff-settings--roapp #staffPersonalPermissionsWorkspace .staff-personal-rights-drawer__actions .button {white-space:normal;}
}

/* STAFF_PROFILE_FIELDS_ROLLOUT: crm-staff-profile-fields-1 */
@media (min-width:1000px) {
  .settings-content .staff-settings--profile-fields .staff-group-filter {display:flex;align-items:center;gap:10px;margin:0 0 12px;font-size:13px;color:#677280;}
  .settings-content .staff-settings--profile-fields .staff-group-filter select {width:220px;min-height:34px;border:1px solid #d3dbe5;border-radius:3px;background:#fff;padding:5px 10px;font:13px "NS Order Inter",Arial,sans-serif;}
  .settings-content .staff-settings--profile-fields #staffForm .staff-profile-group-field {display:flex;align-items:center;gap:8px;padding:0;}
  .settings-content .staff-settings--profile-fields #staffForm .staff-profile-group-field select {flex:1;min-width:0;}
  .settings-content .staff-settings--profile-fields #staffForm textarea {width:100%;min-height:80px;padding:9px;border:1px solid #d3dbe5;border-radius:3px;resize:vertical;font:13px "NS Order Inter",Arial,sans-serif;box-sizing:border-box;}
  .settings-content .staff-settings--profile-fields .staff-groups {margin-top:24px;max-width:720px;}
  .settings-content .staff-settings--profile-fields .staff-groups > header {display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;}
  .settings-content .staff-settings--profile-fields .staff-groups h3 {font-size:16px;font-weight:500;margin:0;}
  .settings-content .staff-settings--profile-fields [data-staff-groups-list] {border:1px solid #e1e5ea;background:#fff;}
  .settings-content .staff-settings--profile-fields .staff-groups-row {display:grid;grid-template-columns:minmax(0,1fr) 120px 55px;align-items:center;border-bottom:1px solid #e9edf1;min-height:48px;font-size:13px;}
  .settings-content .staff-settings--profile-fields .staff-groups-row:last-child {border:0;}
  .settings-content .staff-settings--profile-fields .staff-groups-row > span {padding:8px 14px;overflow-wrap:anywhere;}
  .settings-content .staff-settings--profile-fields .staff-groups-row--head {background:#f8fafc;color:#707a88;min-height:40px;}
  .settings-content .staff-settings--profile-fields [data-staff-group-edit] {border:0;background:none;padding:0;color:#1677ff;font:inherit;text-align:left;cursor:pointer;}
  .settings-content .staff-settings--profile-fields .staff-group-dialog {width:480px;max-width:calc(100vw - 40px);padding:0;border:1px solid #dce1e7;border-radius:5px;background:#fff;color:#30343b;box-shadow:0 10px 50px #15203133;font:13px "NS Order Inter",Arial,sans-serif;}
  .settings-content .staff-settings--profile-fields .staff-group-dialog::backdrop {background:#1b273c59;}
  .settings-content .staff-settings--profile-fields .staff-group-dialog form {display:flex;flex-direction:column;gap:0;}
  .settings-content .staff-settings--profile-fields .staff-group-dialog header {display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #e5e9ee;}
  .settings-content .staff-settings--profile-fields .staff-group-dialog h3 {margin:0;font-size:18px;font-weight:500;}
  .settings-content .staff-settings--profile-fields .staff-group-dialog label {display:grid;gap:8px;padding:20px;}
  .settings-content .staff-settings--profile-fields .staff-group-dialog input:not([type="hidden"]) {min-height:36px;padding:7px 10px;border:1px solid #d3dbe5;border-radius:3px;font:inherit;}
  .settings-content .staff-settings--profile-fields .staff-group-dialog [data-staff-group-error] {padding:0 20px;margin:0 0 15px;color:#ba3838;}
  .settings-content .staff-settings--profile-fields .staff-group-dialog footer {display:flex;gap:10px;padding:15px 20px;background:#f1f7fd;border-top:1px solid #dce5ee;}
  .settings-content .staff-settings--profile-fields .staff-group-dialog [type="submit"] {--_crm-button-bg:#1677ff;--_crm-button-border:#1677ff;--_crm-button-hover:#0869ec;}
  .settings-content .staff-settings--profile-fields .staff-desktop-row [data-staff-column="note"] {white-space:pre-wrap;align-items:flex-start;}
  .settings-content:has(.staff-settings--profile-fields) {background:#fff;}
  .settings-content .staff-settings.staff-settings--profile-fields {color:#2b3034;font-size:14px;}
  .settings-content .staff-settings.staff-settings--profile-fields > .staff-settings-tabs {gap:0;}
  .settings-content .staff-settings.staff-settings--profile-fields > .staff-settings-tabs > button {padding:14px 12px;color:#2b3034;font-weight:400;}
  .settings-content .staff-settings.staff-settings--profile-fields > .staff-settings-tabs > button.active {color:#2b3034;box-shadow:inset 0 -2px #2b3034;}
  .settings-content .staff-settings.staff-settings--profile-fields .staff-desktop-table {border-color:#dedfe1;border-radius:8px 8px 0 0;}
  .settings-content .staff-settings.staff-settings--profile-fields .staff-desktop-row > * {padding:3px 8px;font-size:14px;line-height:1.5;min-height:36px;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .settings-content .staff-settings.staff-settings--profile-fields .staff-desktop-row--head {background:#fff;color:#2b3034;font-weight:500;}
  .settings-content .staff-settings.staff-settings--profile-fields .staff-desktop-row--head > * {min-height:42px;}
  .settings-content .staff-settings.staff-settings--profile-fields .staff-person {font-size:14px;font-weight:400;color:#2b3034;gap:8px;}
  .settings-content .staff-settings.staff-settings--profile-fields .staff-avatar {width:28px;height:28px;flex-basis:28px;font-size:16px;color:#fff;background:#838dc5;}
  .settings-content .staff-settings.staff-settings--profile-fields .staff-desktop-row:nth-child(3n) .staff-avatar {background:#f4512d;}
  .settings-content .staff-settings.staff-settings--profile-fields [data-staff-column="actions"] {padding:2px 6px;}
  .settings-content .staff-settings.staff-settings--profile-fields .staff-desktop-total {padding:17px 8px;border:1px solid #dedfe1;border-top:0;border-radius:0 0 8px 8px;color:#2b3034;font-size:14px;}
  .settings-content .staff-settings.staff-settings--profile-fields .staff-groups {max-width:none;margin-top:16px;}
  .settings-content .staff-settings.staff-settings--profile-fields .staff-groups > header {justify-content:flex-start;margin-bottom:15px;}
  .settings-content .staff-settings.staff-settings--profile-fields .staff-groups [data-staff-group-new] {background:#00a046;border-color:#00a046;color:#fff;border-radius:8px;font-size:14px;}
  .settings-content .staff-settings.staff-settings--profile-fields [data-staff-groups-list] {border-color:#dedfe1;border-radius:8px;overflow:hidden;}
  .settings-content .staff-settings.staff-settings--profile-fields .staff-groups-row {min-height:36px;font-size:14px;grid-template-columns:minmax(0,1fr) 120px 42px;}
  .settings-content .staff-settings.staff-settings--profile-fields .staff-groups-row--head {background:#fff;color:#2b3034;font-weight:500;min-height:42px;}
  .settings-content .staff-settings.staff-settings--profile-fields .staff-groups-row > span {padding:6px 8px;}
  .settings-content .staff-settings.staff-settings--profile-fields .staff-groups-row > span:nth-child(2) {text-align:right;}
  .settings-content .staff-settings.staff-settings--profile-fields [data-staff-group-edit] {color:#2b3034;}
  .settings-content .staff-settings.staff-settings--profile-fields .staff-groups-total {padding:17px 8px;font-size:14px;}
  .settings-content .staff-settings.staff-settings--profile-fields .staff-desktop-head {min-height:52px;padding:0 0 0 16px;}
  .settings-content .staff-settings.staff-settings--profile-fields .staff-desktop-head h2 {font-size:24px;font-weight:400;}
  .settings-content .staff-settings.staff-settings--profile-fields .staff-desktop-head .staff-icon-button {width:48px;height:52px;border-left:1px solid #eee;border-radius:0;}
  .settings-content .staff-settings.staff-settings--profile-fields .staff-desktop-head .staff-icon-button svg {width:24px;height:24px;}
  .settings-content .staff-settings.staff-settings--profile-fields .staff-desktop-tabs {padding:8px 16px 0;gap:0;}
  .settings-content .staff-settings.staff-settings--profile-fields .staff-desktop-tabs button {font-size:14px;padding:17px 12px 10px;font-weight:400;color:#2b3034;}
  .settings-content .staff-settings.staff-settings--profile-fields .staff-desktop-tabs button.active {color:#2b3034;box-shadow:inset 0 -2px #2b3034;}
  .settings-content .staff-settings.staff-settings--profile-fields .staff-desktop-fields {padding:32px 16px;}
  .settings-content .staff-settings.staff-settings--profile-fields #staffForm .staff-editor-section:first-child {display:grid;grid-template-columns:210px minmax(0,1fr);gap:24px;}
  .settings-content .staff-settings.staff-settings--profile-fields #staffForm .staff-editor-section:first-child .staff-editor-section__head {display:block;margin:0;padding:0;}
  .settings-content .staff-settings.staff-settings--profile-fields #staffForm .staff-editor-section:first-child .staff-editor-section__head strong {font-size:16px;font-weight:600;}
  .settings-content .staff-settings.staff-settings--profile-fields #staffForm .staff-editor-section:first-child .staff-editor-section__head > span {display:none;}
  .settings-content .staff-settings.staff-settings--profile-fields #staffForm .staff-editor-section:first-child .staff-editor-grid {gap:18px;}
  .settings-content .staff-settings.staff-settings--profile-fields #staffForm .staff-editor-section:first-child .staff-editor-grid > label {display:flex;flex-direction:column;align-items:stretch;gap:6px;}
  .settings-content .staff-settings.staff-settings--profile-fields #staffForm .staff-editor-section:first-child .staff-editor-grid > label > span {font-size:14px;font-weight:500;color:#2b3034;padding-top:0;}
  .settings-content .staff-settings.staff-settings--profile-fields #staffForm :is(input:not([type="checkbox"]),select,textarea) {font-size:14px;min-height:34px;border-color:#dedfe1;border-radius:8px;}
  .settings-content .staff-settings.staff-settings--profile-fields #staffForm [name="started_work_at"] {width:140px;max-width:100%;}
  .settings-content .staff-settings.staff-settings--profile-fields #staffForm .staff-form__actions {padding:16px;background:#eaf3fd;}
  .settings-content .staff-settings.staff-settings--profile-fields #staffForm .staff-form__actions .button {border-radius:8px;font-size:14px;}
  .settings-content .staff-settings.staff-settings--profile-fields #newStaffButton {display:inline-flex;gap:8px;align-items:center;border-radius:8px!important;font-size:14px!important;}
  .settings-content .staff-settings.staff-settings--profile-fields #newStaffButton svg {width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;}
  .settings-content .staff-settings.staff-settings--profile-fields .staff-groups [data-staff-group-new] {--_crm-button-bg:#00a046;--_crm-button-border:#00a046;--_crm-button-hover:#008d3e;border-radius:8px!important;}
  .settings-content .staff-settings.staff-settings--profile-fields .staff-column-picker > summary {width:68px;height:34px;border-radius:8px;gap:8px;color:#2b3034;}
  .settings-content .staff-settings.staff-settings--profile-fields .staff-column-picker__arrow {display:flex;padding-left:8px;border-left:1px solid #a5a8aa;}
  .settings-content .staff-settings.staff-settings--profile-fields .staff-column-picker__arrow svg {width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.5;}
  .settings-content .staff-settings.staff-settings--profile-fields [data-staff-sort] {display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;background:none;padding:0;width:100%;font:500 14px "NS Order Inter",Arial,sans-serif;color:#2b3034;text-align:left;cursor:pointer;}
  .settings-content .staff-settings.staff-settings--profile-fields [data-staff-sort] > span {overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
  .settings-content .staff-settings.staff-settings--profile-fields [data-staff-sort] svg {width:14px;height:14px;flex-shrink:0;fill:none;stroke:#95999d;stroke-width:1.5;}
  .settings-content .staff-settings.staff-settings--profile-fields [aria-sort="ascending"]:not([data-staff-shared-sort-header]),.settings-content .staff-settings.staff-settings--profile-fields [aria-sort="descending"]:not([data-staff-shared-sort-header]) {background:#ededee;}
}
/* STAFF_ROLE_PAYROLL_DESKTOP_ROLLOUT: crm-staff-role-payroll-desktop-1 */
@media(min-width:1000px){
  .settings-content:has(.staff-settings--role-payroll){background:#fff;}
  .settings-content .staff-settings.staff-settings--role-payroll [data-staff-settings-panel="roles"]>.staff-page-head h2,.settings-content .staff-settings.staff-settings--role-payroll [data-staff-settings-panel="roles"]>.staff-page-head .settings-status{display:none;}
  .settings-content .staff-settings.staff-settings--role-payroll [data-staff-settings-panel="roles"]>.staff-page-head{justify-content:flex-start;margin:0 0 12px;}
  .settings-content .staff-settings.staff-settings--role-payroll [data-staff-settings-panel="roles"]>.staff-page-head>.staff-page-title-actions{display:none;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-roles-intro{padding:0;border:0;background:none;box-shadow:none;margin:0 0 16px;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-roles-intro strong{font-size:14px;font-weight:400;color:#2b3034;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-roles-intro>span{display:none;}
  .settings-content .staff-settings.staff-settings--role-payroll #newStaffRoleButton,.settings-content .staff-settings.staff-settings--role-payroll [data-comp-new]{--_crm-button-bg:#00a046;--_crm-button-border:#00a046;--_crm-button-hover:#008d3e;border-radius:8px!important;font-size:14px!important;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-role-desktop-table{display:block;border:1px solid #dedfe1;border-radius:8px;overflow:hidden;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-role-desktop-row{display:grid;grid-template-columns:minmax(0,1fr) 245px;border-bottom:1px solid #dedfe1;min-height:36px;font-size:14px;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-role-desktop-row>span{display:flex;align-items:center;padding:6px 8px;min-width:0;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-role-desktop-row>span:last-child{justify-content:flex-end;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-role-desktop-row button{background:none;border:0;padding:0;width:100%;font:400 14px "NS Order Inter",Arial,sans-serif;text-align:left;cursor:pointer;color:#2b3034;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-role-desktop-row.is-head{min-height:42px;font-weight:500;}
  .settings-content .staff-settings.staff-settings--role-payroll [data-role-desktop-sort]{display:flex;justify-content:space-between;align-items:center;gap:10px;font-weight:500;}
  .settings-content .staff-settings.staff-settings--role-payroll [data-role-desktop-sort]>svg{width:16px;height:16px;fill:none;stroke:#95999d;stroke-width:1.5;flex-shrink:0;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-role-desktop-row:not(.is-head):hover{background:#eaf4ff;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-role-desktop-total{padding:17px 8px;font-size:14px;}
  .settings-content .staff-settings.staff-settings--role-payroll #staffRoleModal{display:flex;justify-content:flex-end;align-items:stretch;position:fixed;inset:0;z-index:1260;padding:0;}
  .settings-content .staff-settings.staff-settings--role-payroll #staffRoleModal[hidden],.settings-content .staff-settings.staff-settings--role-payroll [hidden]{display:none!important;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-role-modal__backdrop{position:absolute;inset:0;background:#0008;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-role-modal__panel{position:relative;display:flex;flex-direction:column;grid-template-columns:none;grid-template-rows:none;width:680px;max-width:calc(100vw - 80px);height:100%;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#fff;overflow:hidden;box-shadow:-4px 0 12px #0002;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-role-modal__head{display:flex;align-items:center;justify-content:space-between;min-height:52px;padding:0 0 0 16px;margin:0;border-bottom:1px solid #eee;flex-shrink:0;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-role-modal__head h2{margin:0;font-size:24px;font-weight:400;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-role-modal__head span,.settings-content .staff-settings.staff-settings--role-payroll .staff-role-modal__meta,.settings-content .staff-settings.staff-settings--role-payroll .staff-role-modal__permissions-head{display:none;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-role-modal__head button{width:48px;height:52px;min-height:52px;border:0!important;border-left:1px solid #eee!important;border-radius:0!important;padding:12px;background:#fff!important;color:#999;box-shadow:none;flex-shrink:0;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-role-modal__head svg{width:24px;height:24px;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-role-desktop-body{flex:1;min-height:0;overflow-y:auto;display:grid;grid-template-columns:210px minmax(0,1fr);gap:24px;padding:20px 16px;align-content:start;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-role-desktop-section-title{font-size:16px;font-weight:600;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-role-desktop-fields{min-width:0;}
  .settings-content .staff-settings.staff-settings--role-payroll #staffRoleModalNameField{display:grid;gap:6px;padding:0;margin:0 0 18px;font-size:14px;font-weight:500;}
  .settings-content .staff-settings.staff-settings--role-payroll #staffRoleModalName{min-height:34px;border:1px solid #dedfe1;border-radius:8px;padding:6px 12px;font:400 14px "NS Order Inter",Arial,sans-serif;}
  .settings-content .staff-settings.staff-settings--role-payroll [data-role-desktop-status]{margin:0 0 12px;color:#b43737;font-size:13px;}
  .settings-content .staff-settings.staff-settings--role-payroll [data-role-desktop-status]:empty{display:none;}
  .settings-content .staff-settings.staff-settings--role-payroll #staffRoleModalPermissions{overflow:visible;max-height:none;padding:0;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-role-tree{display:block;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-role-tree section{padding:0;margin:0 0 18px;border:0;background:none;border-radius:0;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-role-tree header{display:block;padding:0;margin-bottom:8px;border:0;background:none;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-role-tree header label{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:600;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-role-tree section>div{display:block;padding:0 0 0 24px;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-role-tree .staff-role-permission-menu__item{display:flex;align-items:flex-start;gap:8px;min-height:26px;line-height:18px;padding:4px 0;margin:0;border:0;background:none;border-radius:0;font-size:14px;font-weight:400;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-role-tree input[type="checkbox"]{appearance:auto;accent-color:#1976e3;flex-shrink:0;width:16px;height:16px;min-height:16px;margin:2px 0 0;border-radius:3px;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-role-tree small{color:#90969b;font-size:12px;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-permission-search{background:none;border:0;padding:0;margin-bottom:16px;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-permission-search input{min-height:34px;font-size:14px;border-radius:8px;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-role-modal__actions{flex-shrink:0;margin:0;padding:16px;background:#eaf3fd;border-top:1px solid #eee;display:flex;justify-content:flex-end;gap:10px;}
  .settings-content .staff-settings.staff-settings--role-payroll #saveStaffRoleButton{order:-1;margin-right:auto;--_crm-button-bg:#1976e3;--_crm-button-border:#1976e3;border-radius:8px!important;font-size:14px!important;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-comp--roapp>h3,.settings-content .staff-settings.staff-settings--role-payroll .staff-pay-desktop-employees>h3{margin:0 0 16px;font-size:18px;font-weight:600;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-comp--roapp{gap:0;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-comp--roapp>p,.settings-content .staff-settings.staff-settings--role-payroll .staff-pay-desktop-employees>p{font-size:14px;margin:0 0 16px;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-desktop-toolbar{display:flex;align-items:flex-end;gap:20px;margin:0 0 16px;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-desktop-toolbar>label{display:grid;gap:6px;font-size:14px;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-desktop-toolbar select{width:320px;font:400 14px "NS Order Inter",Arial,sans-serif;min-height:34px;border:1px solid #dedfe1;border-radius:8px;background:linear-gradient(#fff,#f1f2f4);padding:5px 12px;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-desktop-toolbar>[data-comp-refresh]{margin-left:auto;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-desktop-table{border:1px solid #dedfe1;border-radius:8px;overflow-x:auto;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-desktop-row,.settings-content .staff-settings.staff-settings--role-payroll .staff-pay-desktop-employee-row{display:grid;align-items:stretch;grid-template-columns:minmax(220px,1fr) minmax(360px,2fr) 160px;min-width:780px;border-bottom:1px solid #dedfe1;font-size:14px;min-height:36px;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-desktop-employee-row{grid-template-columns:minmax(180px,1.2fr) minmax(130px,1fr) 170px minmax(180px,1.2fr) minmax(180px,1.2fr);min-width:900px;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-desktop-row>span,.settings-content .staff-settings.staff-settings--role-payroll .staff-pay-desktop-employee-row>span{display:flex;align-items:center;padding:6px 8px;min-width:0;overflow-wrap:anywhere;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-desktop-row>span:last-child{justify-content:flex-end;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-desktop-table button{border:0;background:none;padding:0;cursor:pointer;font:400 14px "NS Order Inter",Arial,sans-serif;color:#2b3034;text-align:left;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-desktop-table .is-head{min-height:42px;font-weight:500;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-desktop-table .staff-pay-summary{display:grid;gap:4px;font-size:13px;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-desktop-row:not(.is-head):hover,.settings-content .staff-settings.staff-settings--role-payroll .staff-pay-desktop-employee-row:not(.is-head):hover{background:#eaf4ff;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-desktop-total{padding:17px 8px;font-size:14px;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-desktop-employees{margin-top:22px;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-desktop-empty{min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;font-size:14px;text-align:center;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-desktop-empty svg{width:100px;height:60px;fill:none;stroke:#2f80ed;stroke-width:1.5;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-desktop-empty strong{font-weight:600;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-desktop-empty p{margin:0 12px;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-base-settings{margin-top:24px;border-top:1px solid #dedfe1;padding-top:20px;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-base-settings>summary{font-size:16px;font-weight:600;cursor:pointer;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-base-settings[open]>summary{margin-bottom:16px;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-drawer{position:fixed;inset:0;z-index:1260;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-drawer .staff-personal-rights-drawer__backdrop{background:#0008;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-drawer .staff-personal-rights-drawer__panel{width:800px;max-width:calc(100vw - 80px);height:100%;max-height:none;display:flex;flex-direction:column;border-radius:0;padding:0;gap:0;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-drawer .staff-personal-rights-drawer__head{min-height:52px;flex-shrink:0;padding:0 0 0 16px;border-bottom:1px solid #eee;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-drawer .staff-personal-rights-drawer__head [data-pay-close]{width:48px;height:52px;padding:12px;border:0!important;border-left:1px solid #eee!important;border-radius:0!important;background:#fff!important;color:#999;box-shadow:none;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-drawer .staff-personal-rights-drawer__head h2{font-size:24px;font-weight:400;margin:0;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-drawer .staff-personal-rights-drawer__head span{display:none;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-drawer__body{flex:1;min-height:0;overflow-y:auto;padding:20px 16px;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-drawer__body>label{display:grid;gap:6px;font-size:14px;max-width:420px;margin-bottom:20px;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-drawer :is(input:not([type="checkbox"]),select){min-height:34px;border:1px solid #dedfe1;border-radius:8px;font:400 14px "NS Order Inter",Arial,sans-serif;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-rule{background:none;border:0;border-top:1px solid #eee;border-radius:0;padding:16px 0;margin:0;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-rule h3{font-size:16px;font-weight:600;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-rule header p,.settings-content .staff-settings.staff-settings--role-payroll .staff-pay-note,.settings-content .staff-settings.staff-settings--role-payroll .staff-pay-example{font-size:12px;color:#687078;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-rule fieldset{padding:0;margin:12px 0;border:0;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-toggle{font-size:14px;font-weight:400;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-rule__fields{display:flex;align-items:flex-start;gap:16px;flex-wrap:wrap;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-rule__fields label{display:grid;gap:6px;font-size:14px;min-width:140px;max-width:320px;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-rule__fields input{width:150px;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-rule__fields>p{flex-basis:100%;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-drawer .staff-personal-rights-drawer__actions{flex-shrink:0;position:static;margin:0;padding:16px;background:#eaf3fd;border-top:1px solid #eee;gap:10px;}
  .settings-content .staff-settings.staff-settings--role-payroll .staff-pay-drawer [type="submit"]{order:-1;--_crm-button-bg:#1976e3;--_crm-button-border:#1976e3;border-radius:8px!important;}
}

/* STAFF_PERSONAL_RIGHTS_SWITCHES_ROLLOUT: crm-staff-personal-rights-switches-1 */
@media(min-width:1000px){
  .settings-content .staff-settings.staff-settings--roapp #staffPersonalPermissionsWorkspace .staff-personal-rights--switches .staff-personal-rights-row{grid-template-columns:minmax(0,1fr) 190px;align-items:start;}
  .staff-personal-rights--switches [data-permission-switch-adapter],.staff-personal-rights--switches .staff-personal-rights-row__result{display:none!important;}
  .staff-personal-rights--switches .staff-personal-switch-control{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:2px 0;}
  .staff-personal-rights--switches>[data-permission-search]{margin:0 24px 16px;}
  .staff-personal-rights--switches .staff-access-switch{display:flex;align-items:center;gap:8px;cursor:pointer;min-height:26px;margin:0;}
  .staff-personal-rights--switches .staff-access-switch>span{font-size:13px;font-weight:500;}
  .staff-personal-rights--switches [data-permission-source]{font-size:11px;line-height:1.4;color:#687582;}
  .staff-personal-rights--switches [data-permission-inherit]{border:0;background:none;color:#1976d2;padding:2px 0;font:400 12px "NS Order Inter",Arial,sans-serif;cursor:pointer;text-align:left;}
  .staff-personal-rights--switches [data-permission-inherit][hidden]{display:none;}
  .staff-personal-rights--switches [data-permission-inherit]:focus-visible{outline:2px solid #1976d2;outline-offset:3px;}
}

/* ORDINARY_SALE_COMPENSATION_ROLLOUT: crm-staff-payroll-sales-1 */
@media(min-width:1000px){
  .staff-pay-sections .staff-pay-section-tabs{display:flex;gap:24px;border-bottom:1px solid #dfe5eb;margin:0 0 24px;}
  .staff-pay-sections .staff-pay-section-tabs button{background:none;border:0;padding:12px 2px;color:#687582;font:400 15px "NS Order Inter",Arial,sans-serif;cursor:pointer;}
  .staff-pay-sections .staff-pay-section-tabs [aria-selected="true"]{color:#1976d2;box-shadow:inset 0 -2px #1976d2;}
  .staff-pay-sections [data-salary-panel][hidden],.inventory-staff-reward label[hidden]{display:none!important;}
  .staff-pay-sections #staffLegacyPayrollSettings{margin-bottom:32px;}
  .staff-pay-sections #staffOrdinarySalesForm{display:block;max-width:1120px;}
  .staff-pay-sections #staffOrdinarySalesForm h3{font-size:20px;margin:0 0 8px;}
  .staff-pay-sections #staffOrdinarySalesForm h4{font-size:15px;margin:0 0 16px;}
  .staff-pay-sections #staffOrdinarySalesForm p{color:#687582;line-height:1.5;margin:10px 0 20px;}
  .staff-pay-sections .staff-sale-rule,.staff-pay-sections .staff-sale-person{padding:20px;border:1px solid #e0e5eb;border-radius:8px;background:#fff;margin:12px 0;}
  .staff-pay-sections .staff-sale-rule-fields{display:grid;grid-template-columns:1.2fr 1.4fr 1fr 1.3fr;gap:16px;align-items:end;}
  .staff-pay-sections .staff-sale-rule-fields label{display:flex;flex-direction:column;gap:7px;color:#536273;font-size:13px;}
  .staff-pay-sections .staff-sale-rule-fields label.staff-sale-enabled{display:flex;flex-direction:row;align-items:center;align-self:center;}
  .staff-pay-sections .staff-sale-person header{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:16px;}
  .staff-pay-sections .staff-sale-person header label{display:flex;gap:8px;align-items:center;font-size:13px;color:#687582;}
  .staff-pay-sections .staff-sale-rule-fields input:not([type="checkbox"]),.staff-pay-sections .staff-sale-rule-fields select{width:100%;height:36px;border:1px solid #cdd6e0;border-radius:5px;padding:6px 8px;background:#fff;font-size:13px;}
  .staff-pay-sections .staff-sale-rule-fields :disabled{background:#f5f7fa;color:#84909b;}
  .staff-pay-sections .staff-sales-status{min-height:20px;}
}
.inventory-staff-reward{padding:18px;border:1px solid #e0e5eb;border-radius:8px;background:#fff;display:flex;flex-direction:column;gap:12px;margin:12px 0;}
.inventory-staff-reward h3{margin:0;font-size:16px;}.inventory-staff-reward p,.inventory-staff-reward small{margin:0;color:#687582;line-height:1.5;}
.inventory-staff-reward label{display:flex;flex-direction:column;gap:6px;font-size:13px;}.inventory-staff-reward select,.inventory-staff-reward input{min-height:36px;width:100%;border:1px solid #cdd6e0;border-radius:4px;padding:7px 9px;}

/* SALES_RULES_CLARITY_ROLLOUT: crm-staff-sales-rules-clarity-1 */
@media(min-width:1000px){
 .staff-sales-compact .staff-sale-rule-fields .staff-sale-product-toggle{grid-column:1/-1;flex-direction:row;align-items:center;gap:8px;}
 .staff-sales-compact .staff-sale-priority{padding:12px 16px;background:#f3f7fc;border-left:3px solid #5b9cdb;border-radius:3px;}
 .staff-sales-table,.staff-sales-products-table{width:100%;border-collapse:collapse;table-layout:fixed;background:#fff;border:1px solid #dfe5eb;font-size:13px;}
 .staff-sales-table th,.staff-sales-table td,.staff-sales-products-table th,.staff-sales-products-table td{padding:12px 14px;text-align:left;border-bottom:1px solid #e5e9ef;vertical-align:middle;overflow-wrap:anywhere;}
 .staff-sales-table th,.staff-sales-products-table th{background:#f4f6f9;color:#526170;font-weight:600;}
 .staff-sales-table th:first-child{width:23%;}.staff-sales-table th:nth-child(2){width:14%;}.staff-sales-table th:nth-child(3){width:25%;}.staff-sales-table th:nth-child(4){width:23%;}.staff-sales-table th:last-child{width:15%;}
 .staff-sales-table small{display:block;color:#7a8694;font-size:12px;margin-top:5px;}
 .staff-sales-table .button{min-height:30px;height:auto;padding:5px 10px;font-size:12px;white-space:normal;}
 .staff-sales-table [data-sales-editor][hidden]{display:none!important;}.staff-sales-table [data-sales-editor]>td{padding:16px 18px;background:#f8fafc;}
 .staff-sales-table .staff-sales-personal{display:flex;align-items:center;gap:8px;margin-bottom:16px;font-weight:600;}
 .staff-sales-products{margin-top:32px;max-width:1120px;}
 .staff-sales-products h3{font-size:18px;margin-bottom:8px;}.staff-sales-products p{color:#687582;line-height:1.5;}
 .staff-sales-products [data-sales-product-search]{display:flex;gap:10px;margin:16px 0;}.staff-sales-products [data-sales-product-search] label{width:min(420px,70%);}
 .staff-sales-products [name="search"]{height:36px;width:100%;padding:7px 10px;border:1px solid #cdd6e0;border-radius:4px;}
 .staff-sales-products-table th:first-child{width:45%;}.staff-sales-products-table th:nth-child(2){width:22%;}.staff-sales-products-table th:last-child{width:33%;}
 .staff-sales-products-table [data-sales-product]{border:0;padding:0;background:none;text-align:left;cursor:pointer;font:inherit;color:#287fc1;}
 .staff-sales-product-pager{display:flex;gap:10px;align-items:center;margin-top:12px;font-size:13px;color:#687582;}.staff-sales-product-pager span{margin-right:auto;}
 .staff-sales-compact .staff-sale-rule-fields label input[type="checkbox"]{width:16px;height:16px;min-height:0;flex:0 0 auto;}
}
@media(min-width:1000px){
 .staff-sales-products [data-sales-product-search]{align-items:flex-end;}
 .staff-sales-products [data-sales-product-search] .button{height:36px;min-height:36px;padding:6px 14px;}
}

/* STAFF_REPAIR_BASE_ONLY_ROLLOUT: crm-staff-repair-base-only-1 */
.staff-pay-sections--repair-base-only #staffCompensationWorkspace{display:none!important;}

/* STAFF_PAY_CARD_ENTRY_ROLLOUT: crm-staff-pay-card-entry-1 */
@media (min-width:1000px) {
  .settings-content .staff-settings--roapp .staff-desktop-drawer--pay-entry > .staff-desktop-panel > .staff-desktop-tabs {flex-wrap:wrap;}
  .settings-content .staff-settings--roapp .staff-pay-card {height:100%;overflow-y:auto;padding:20px 24px;overscroll-behavior:contain;color:#282e33;font:400 14px/1.5 "NS Order Inter",Arial,sans-serif;}
  .staff-pay-card__content {display:grid;gap:20px;}
  .staff-pay-card__content > section {display:grid;gap:10px;padding-bottom:20px;border-bottom:1px solid #e5e7eb;}
  .staff-pay-card__content h3 {margin:0;font-size:16px;font-weight:500;}
  .staff-pay-card__content strong {font-weight:500;}
  .staff-pay-card__content p,.staff-pay-card__content small {margin:0;}
  .staff-pay-card__content small,.staff-pay-card__note {color:#6f7881;}
  .staff-pay-card__content .button {justify-self:start;}
  .staff-pay-return {position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 16px;padding:12px;border:1px solid #dedfe1;border-radius:8px;background:#f5f8fb;}
  .staff-pay-return small {color:#6f7881;}
  .staff-pay-entry-target {outline:2px solid #87b7f5;outline-offset:-2px;}
  .staff-pay-sections--repair-base-only #staffCompensationWorkspace.staff-comp--card-entry {display:block!important;}
}

/* STAFF_PAY_CARD_EDITOR_ROLLOUT: crm-staff-pay-card-editor-2 */
@media (min-width:1000px) {
  .settings-content .staff-settings--roapp .staff-pay-card.staff-pay-card--editing {padding:0;overflow:hidden;}
  .staff-pay-card--editing .staff-pay-inline-sections,
  .staff-pay-card--editing [data-salary-panel]:not([hidden]),
  .staff-pay-card--editing #staffLegacyPayrollSettings,
  .staff-pay-card--editing #staffOrdinarySalesSettings {height:100%;min-height:0;margin:0;}
  .staff-pay-card--editing .staff-pay-section-tabs,
  .staff-pay-card--editing #staffCompensationWorkspace,
  .staff-pay-card--editing .staff-sales-products {display:none!important;}
  .settings-content .staff-settings--roapp .staff-pay-card--editing form.staff-pay-inline-form {display:flex!important;flex-direction:column;height:100%;min-height:0;max-width:none;margin:0;padding:0;border:0;border-radius:0;background:#fff;gap:0;}
  .staff-pay-card--editing form.staff-pay-inline-form > :not(.staff-pay-inline-fields):not(.staff-pay-inline-actions) {display:none!important;}
  .staff-pay-card--editing .staff-pay-inline-fields {flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:24px;}
  .staff-pay-card--editing .staff-pay-inline-title {margin:0 0 12px;font-size:18px;font-weight:500;color:#282e33;}
  .staff-pay-card--editing .staff-pay-inline-note {margin:0 0 24px!important;color:#6f7881;font-size:13px;}
  .staff-pay-card--editing .staff-pay-inline-table {min-width:0;width:100%;border:0;background:none;}
  .staff-pay-card--editing .staff-pay-inline-table > :not(.staff-pay-inline-selected),
  .staff-pay-card--editing .staff-pay-inline-sales > :not(.staff-pay-inline-selected) {display:none!important;}
  .staff-pay-card--editing .staff-payroll-row {display:flex;flex-direction:column;align-items:stretch;gap:20px;min-width:0;width:100%;padding:0;border:0;background:none;}
  .staff-pay-card--editing .staff-payroll-person {display:flex;flex-direction:column;gap:4px;}
  .staff-pay-card--editing .staff-payroll-person strong {display:none;}
  .staff-pay-card--editing .staff-payroll-person em {display:none;}
  .staff-pay-card--editing .staff-payroll-person small {align-self:flex-start;font-weight:400;font-size:13px;}
  .staff-pay-card--editing [data-staff-payroll-toggle] {order:5;align-self:flex-start;}
  .staff-pay-card--editing .staff-pay-inline-label,
  .staff-pay-card--editing .staff-sale-rule-fields label {display:flex;flex-direction:column;gap:8px;color:#282e33;font-size:14px;font-weight:400;}
  .staff-pay-card--editing .staff-percent-field {display:flex;align-items:center;gap:8px;max-width:220px;}
  .staff-pay-card--editing .staff-percent-field input {min-width:0;border-radius:8px!important;}
  .staff-pay-card--editing .staff-percent-field > span {border:0;background:none;color:#282e33;font:400 14px "NS Order Inter",Arial,sans-serif;}
  .settings-content .staff-settings--roapp .staff-pay-card--editing input:not([type="checkbox"]),
  .settings-content .staff-settings--roapp .staff-pay-card--editing select {width:100%;height:36px;border:1px solid #dedfe1;border-radius:8px;padding:6px 12px;background:#fff;color:#282e33;font:400 14px "NS Order Inter",Arial,sans-serif;}
  .staff-pay-card--editing :is(input,select):disabled {background:#f7f7f7!important;color:#8c9297!important;}
  .staff-pay-card--editing .staff-pay-inline-sales,
  .staff-pay-card--editing .staff-pay-inline-sales :is(tbody,tr,td) {display:block;width:100%;padding:0;border:0;background:transparent;}
  .staff-pay-card--editing .staff-pay-inline-sales tbody > tr:first-child {display:none;}
  .staff-pay-card--editing .staff-sales-personal {display:flex;gap:8px;align-items:center;margin:0 0 24px;color:#282e33;font-size:14px;font-weight:400;}
  .staff-pay-card--editing .staff-sale-example {font-size:13px;}
  .staff-pay-card--editing .staff-sale-rule-fields {display:grid;grid-template-columns:1fr;gap:20px;}
  .staff-pay-card--editing .staff-sale-rule-fields .staff-sale-enabled {flex-direction:row;justify-content:flex-start;gap:8px;}
  .settings-content .staff-settings--roapp .staff-pay-card--editing .staff-pay-inline-actions {flex-shrink:0;display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0;padding:16px 24px;background:#edf4ff;border-top:1px solid #e5edf6;}
  .staff-pay-card--editing .staff-pay-inline-actions :is(.settings-status,.staff-sales-status) {flex:0 0 100%;margin:0!important;min-height:0;font-size:13px;}
  .staff-pay-card--editing .staff-pay-inline-actions :is(.settings-status,.staff-sales-status):empty {display:none;}
  .staff-pay-card--editing .staff-pay-inline-actions .button {min-height:34px;font:500 14px "NS Order Inter",Arial,sans-serif;}
}

/* STAFF_RIGHTS_COLUMN_ROLLOUT: crm-staff-rights-column-1 */
@media (min-width:1000px) {
  .settings-content .staff-settings--roapp [data-staff-column="rights"] {gap:8px;white-space:nowrap;}
  .settings-content .staff-settings--roapp .staff-rights-column {display:inline-flex;align-items:center;gap:8px;min-height:30px;padding:3px 6px;border:0;border-radius:4px;background:none;font:400 14px/20px "NS Order Inter",sans-serif;cursor:pointer;white-space:nowrap;}
  .staff-rights-column:hover {background:#edf4ff!important;}
  .staff-rights-column:focus-visible {outline:2px solid #1677ff;outline-offset:2px;}
  .staff-rights-column__added {color:#1677ff;}
  .staff-rights-column__denied {color:#bb4242;}
  .staff-rights-column__muted {color:#6f7881;}
}

/* STAFF_PAYROLL_OVERVIEW_ROLLOUT: crm-staff-payroll-overview-1 */
@media (min-width:1000px) {
  [data-staff-settings-panel="payroll"] > .staff-pay-sections--overview-source {display:none!important;}
  [data-staff-settings-panel="payroll"] > .staff-pay-sections--overview-source.staff-pay-sections--profile-entry {display:block!important;}
  .staff-pay-sections--profile-entry > .staff-pay-section-tabs,
  .staff-pay-sections--profile-entry #staffLegacyPayrollSettings {display:none!important;}
  .staff-payroll-overview {color:#282e33;font:400 14px/1.5 "NS Order Inter",Arial,sans-serif;}
  .staff-payroll-overview__section {margin:0 0 32px;}
  .staff-payroll-overview__section h3 {margin:0 0 12px;font-size:18px;font-weight:600;}
  .staff-payroll-overview__section > p {margin:0 0 18px;color:#6f7881;}
  .staff-payroll-overview__table {overflow-x:auto;border:1px solid #dedfe1;border-radius:8px;}
  .staff-payroll-overview__table table {border-collapse:collapse;width:100%;min-width:760px;margin:0;text-align:left;}
  .staff-payroll-overview__table :is(th,td) {padding:12px 14px;border:0;border-bottom:1px solid #dedfe1;vertical-align:middle;font-size:14px;line-height:1.5;color:#282e33;background:#fff;}
  .staff-payroll-overview__table th {font-weight:600;white-space:nowrap;}
  .staff-payroll-overview__table td strong {font-weight:400;}
  .staff-payroll-overview__table td small {display:block;margin-top:4px;color:#92969a;font-size:13px;}
  .staff-payroll-overview__table tbody tr:hover td {background:#edf4ff;}
  .staff-payroll-overview__table tbody tr:last-child td {border-bottom:0;}
  .staff-payroll-overview__table tfoot td {padding:16px 14px;border-top:1px solid #dedfe1;border-bottom:0;}
  .staff-payroll-overview .staff-payroll-link {display:inline;border:0;border-radius:0;padding:0;background:none;color:#1677ff;text-align:left;cursor:pointer;font:inherit;}
  .staff-payroll-overview .staff-payroll-link:hover {text-decoration:underline;}
  .staff-payroll-overview .staff-payroll-link:focus-visible {outline:2px solid #1677ff;outline-offset:3px;}
  .staff-payroll-overview [data-sales-product-list] > p {padding:14px;margin:0;color:#6f7881;}
  .staff-payroll-overview .staff-sales-product-pager {padding:12px;}
  .settings-content .staff-settings.staff-settings--roapp .staff-payroll-rule-drawer > .staff-desktop-panel {width:560px;}
  .staff-payroll-rule-drawer .staff-desktop-head {flex-shrink:0;min-height:52px;}
  .staff-payroll-rule-drawer .staff-desktop-body {flex:1;min-height:0;overflow:hidden;}
  .staff-payroll-rule-drawer .staff-pay-card {height:100%;}
  .staff-pay-card--general .staff-pay-inline-table,
  .staff-pay-card--general .staff-pay-inline-sales {display:none!important;}
  .staff-pay-card--general .staff-payroll-defaults {display:grid;grid-template-columns:1fr;gap:20px;padding:0;margin:0;border:0;background:none;}
  .staff-pay-card--general .staff-payroll-defaults > label {display:flex;flex-direction:column;gap:8px;color:#282e33;font-size:14px;}
  .staff-pay-card--general .staff-payroll-defaults > label > span {font-weight:400;}
  .staff-pay-card--general .staff-pay-inline-title {display:none;}
  .staff-pay-card--general .staff-sale-rule {padding:0!important;margin:0!important;border:0!important;background:none!important;}
  .staff-pay-card--general .staff-sale-rule > h4 {display:none;}
}

/* INTAKE_DIRECTORIES_ROAPP_ROLLOUT: crm-intake-directories-roapp-1 */
.settings-content:has(>.directories-roapp) {padding:0!important;gap:0!important;background:#fff;}
.settings-content:has(>.directories-roapp)>* {max-width:none;width:100%;}
.directories-section-head {padding:16px;border-bottom:1px solid #eee;background:#fff;font-family:"NS Order Inter",Arial,sans-serif;}
.directories-section-head>h2 {font-size:24px;line-height:32px;font-weight:500;color:#000;margin:0;letter-spacing:0;}
.directories-roapp {--dir-border:#dedfe1;--dir-text:#282e33;--dir-blue:#1973e1;font-family:"NS Order Inter",Arial,sans-serif;font-size:14px;line-height:1.5;color:var(--dir-text);background:#fff;padding:0 16px 24px;min-width:0;}
.directories-roapp *, .directories-roapp *::before, .directories-roapp *::after {box-sizing:border-box;}
.directories-roapp [hidden] {display:none!important;}
.directories-roapp button,.directories-roapp input,.directories-roapp select,.directories-roapp textarea {font:inherit;}
.directories-roapp button {cursor:pointer;color:inherit;}
.directories-roapp button:disabled {cursor:default;opacity:.5;}
.directories-roapp button:focus-visible {outline:2px solid #1973e1;outline-offset:2px;}
.directories-roapp svg {width:18px;height:18px;flex-shrink:0;vertical-align:middle;}
.directories-roapp .directories-tabs {display:flex;align-items:center;gap:0;border-bottom:1px solid #eee;margin:0 -16px 24px;padding:0 16px;}
.directories-tabs>button {border:0;background:transparent;padding:20px 12px 12px;white-space:nowrap;box-shadow:none;border-radius:0;}
.directories-tabs>button[aria-selected=true] {box-shadow:inset 0 -2px #282e33;}
.directories-tabs>.directories-archive-toggle {margin-left:auto;font-size:12px;color:#8b9095;padding-right:0;}
.directories-roapp [data-dir-status]:not(:empty) {padding:8px 0;color:#5c6975;}
.directories-roapp .directories-description {margin:0 0 16px;}
.directories-roapp .directories-tools {display:flex;align-items:center;gap:12px;margin:0 0 24px;}
.directories-roapp :is(.directories-tools>button,.directories-columns>section>button,.directories-book-new>button) {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:34px;padding:5px 14px;background:#fff;border:1px solid var(--dir-border);border-radius:7px;box-shadow:0 1px 1px #00000005;font-weight:400;}
.directories-roapp :is(.directories-tools>button,.directories-columns>section>button,.directories-book-new>button):hover {background:#f7f8f9;}
.directories-roapp .directories-tools>.directories-add {background:#059d4f;border-color:#059d4f;color:#fff;font-weight:600;}
.directories-roapp .directories-tools-divider {height:34px;border-left:1px solid #eee;margin:0 8px;}
.directories-roapp .directories-columns {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;align-items:start;}
.directories-columns>section {min-width:0;}
.directories-columns>section>button {margin:0 0 16px;}
.directories-roapp .directories-table {border:1px solid var(--dir-border);border-radius:8px;overflow:hidden;}
.directories-roapp .directories-table-head {display:flex;align-items:center;gap:12px;min-height:42px;padding:8px;border-bottom:1px solid var(--dir-border);}
.directories-table-head>button {border:0;border-radius:0;background:none;display:flex;align-items:center;justify-content:space-between;gap:8px;flex:1;padding:0;font-weight:600;text-align:left;min-width:0;}
.directories-table-head svg {width:11px;color:#a4a7aa;}
.directories-roapp input[type=checkbox] {width:16px;height:16px;min-width:16px;padding:0;margin:0;accent-color:#1973e1;cursor:pointer;box-shadow:none;}
.directories-roapp .directories-rows {max-height:560px;overflow:auto;overscroll-behavior:contain;}
.directories-roapp .directories-row {display:flex;gap:12px;align-items:center;min-height:36px;padding:0 8px;border-bottom:1px solid var(--dir-border);position:relative;}
.directories-roapp .directories-row.is-selected {background:#deedfc;}
.directories-roapp .directories-row:hover {background:#edf4fc;}
.directories-roapp .directories-name {display:flex;align-items:center;gap:8px;flex:1;min-width:0;padding:8px 0;border:0;border-radius:0;background:transparent;text-align:left;font-weight:400;}
.directories-name>span {flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.directories-name>img {object-fit:contain;width:22px;height:22px;}
.directories-name>svg {color:#979da2;width:16px;height:16px;}
.directories-name[data-dir-item] {color:#1973e1;}
.directories-roapp .directories-edit {width:24px;height:30px;flex-shrink:0;border:0;background:transparent;color:#979da2;padding:3px;visibility:hidden;}
.directories-row:hover .directories-edit,.directories-row:focus-within .directories-edit {visibility:visible;}
.directories-roapp .directories-total {padding:16px 8px;border-top:0;}
.directories-roapp .directories-selection {display:flex;align-items:center;gap:6px;padding:12px 8px;border-top:1px solid var(--dir-border);}
.directories-selection>button {border:0;background:none;color:#aaa;padding:0;}
.directories-selection>.directories-delete {margin-left:auto;background:#fd3345;color:#fff;padding:6px 12px;border-radius:7px;}
.directories-roapp .directories-empty {min-height:250px;padding:48px 10px 24px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:12px;}
.directories-empty>svg {width:100px;height:76px;color:#86b6e2;stroke-width:.8;}
.directories-empty>strong {font-size:16px;font-weight:600;}
.directories-empty>p {margin:0;max-width:230px;}
.directories-roapp .directories-book {display:grid;grid-template-columns:280px minmax(0,1fr);gap:32px;margin:0 0 48px;}
.directories-book h3 {display:flex;align-items:center;gap:8px;font-size:18px;line-height:26px;font-weight:600;margin:0 0 10px;}
.directories-book h3>button {border:0;background:none;padding:0;color:#aaa;}
.directories-book p {margin:0;}
.directories-book .directories-tools {margin-bottom:16px;}
.directories-book-new>button {justify-self:start;align-self:start;}
dialog.directories-editor {position:fixed;left:auto;right:0;top:0;bottom:0;width:480px;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;background:#fff;padding:0;box-shadow:-2px 0 10px #0002;color:#282e33;overflow:hidden;}
.directories-editor::backdrop {background:#0008;}
.directories-editor>form {height:100%;display:flex;flex-direction:column;}
.directories-editor header {height:52px;min-height:52px;display:flex;align-items:center;border-bottom:1px solid #eee;}
.directories-editor header>h2 {font-size:24px;line-height:32px;font-weight:400;padding-left:16px;margin:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.directories-editor header>button {height:52px;width:48px;min-width:48px;border:0;border-left:1px solid #eee;border-radius:0;background:none;color:#aaa;padding:12px;}
.directories-editor .directories-editor-fields {flex:1;overflow:auto;padding:20px 16px 32px;display:flex;flex-direction:column;align-items:stretch;gap:18px;}
.directories-editor-fields>label {display:block;font-weight:500;}
.directories-editor-fields :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea) {display:block;width:100%;margin-top:4px;min-height:34px;border:1px solid #dedfe1;border-radius:7px;background:#fff;padding:6px 10px;box-shadow:none;color:#282e33;}
.directories-editor-fields textarea {min-height:90px;resize:vertical;}
.directories-required {color:#e6333f;margin-left:3px;}
.directories-editor footer {display:flex;gap:12px;align-items:center;padding:16px;background:#edf5ff;min-height:66px;}
.directories-roapp .directories-primary,.directories-editor .directories-primary {background:#087bff;color:#fff;border:1px solid #087bff;border-radius:7px;min-height:34px;padding:6px 16px;font-weight:500;}
.directories-editor :is(button,input,select,textarea) {font:inherit;}
.directories-editor {font-family:"NS Order Inter",Arial,sans-serif;font-size:14px;line-height:1.5;}
.directories-editor,.directories-editor * {box-sizing:border-box;}
.directories-editor svg {width:18px;height:18px;vertical-align:middle;}
.directories-editor footer>.directories-delete-book {margin-left:auto;border:0;background:none;color:#e63946;padding:0;font-size:13px;}
.directories-editor [data-dir-editor-status]:empty {display:none;}
.directories-editor [data-dir-editor-status] {margin:0;color:#b44138;font-weight:400;}
.directories-editor .directories-icon-grid {display:grid;grid-template-columns:repeat(6,36px);gap:4px;margin-top:6px;}
.directories-icon-picker {position:relative;}
.directories-icon-picker>summary {display:flex;align-items:center;gap:8px;width:64px;list-style:none;border:1px solid #dedfe1;border-radius:7px;padding:6px 10px;cursor:pointer;margin-top:4px;}
.directories-icon-picker>summary::-webkit-details-marker {display:none;}
.directories-icon-picker>summary>svg:last-child {width:12px;transform:rotate(90deg);}
.directories-icon-picker>.directories-icon-grid {position:absolute;z-index:2;background:#fff;border:1px solid #dedfe1;border-radius:7px;box-shadow:0 4px 12px #0002;padding:8px;}
.directories-icon-grid>button {background:#fff;border:1px solid transparent;border-radius:4px;padding:6px;}
.directories-icon-grid>button[aria-pressed=true] {background:#edf5ff;border-color:#84b8f6;color:#1973e1;}
.directories-locations {margin:0;padding:0;border:0;}
.directories-locations legend {padding:0;margin-bottom:4px;font-weight:500;}
.directories-segment {display:inline-flex;border:1px solid #e5e5e5;border-radius:7px;overflow:hidden;}
.directories-segment>label {position:relative;padding:6px 16px;cursor:pointer;background:#fff;font-weight:400;}
.directories-segment>label:has(input:checked) {background:#f0f1f2;box-shadow:inset 0 0 3px #0001;}
.directories-segment input {position:absolute;width:1px;height:1px;opacity:0;}
.directories-location-list {display:flex;flex-direction:column;gap:8px;margin-top:10px;}
.directories-location-list>label {display:flex;gap:8px;align-items:center;font-weight:400;}
.directories-locations:has(input[value=all]:checked) .directories-location-list {display:none;}
.directories-image-drop {position:relative;border:2px dashed #e5e5e5;border-radius:7px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:260px;min-height:250px;padding:16px;margin-top:4px;text-align:center;font-weight:400;}
.directories-image-drop>svg {width:32px;height:32px;}
.directories-image-drop>img {width:140px;max-height:100px;object-fit:contain;}
.directories-image-drop b {color:#1973e1;}
.directories-image-drop>input[type=file] {position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;}
.directories-image-drop>label {position:relative;z-index:1;display:flex;align-items:center;gap:6px;background:#fff;}
.directories-image-drop small {font-size:12px;}
.directories-usage {font-size:13px;color:#7e8489;border-top:1px solid #eee;padding-top:16px;}
.directories-editor .directories-parent-native {display:none!important;}
.directories-parent-picker {position:relative;max-width:100%;width:240px;margin-top:4px;font-weight:400;}
.directories-parent-picker>button {display:flex;align-items:center;gap:8px;justify-content:space-between;background:#fafafa;width:100%;border:1px solid #e5e5e5;border-radius:7px;padding:6px 10px;text-align:left;}
.directories-parent-picker>button>span {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.directories-parent-picker>button>svg {width:12px;height:12px;transform:rotate(90deg);color:#999;}
.directories-parent-picker>[role=listbox] {position:absolute;top:calc(100% + 4px);left:0;min-width:100%;width:max-content;max-width:420px;max-height:260px;overflow:auto;z-index:3;background:#fff;border:1px solid #dedfe1;border-radius:7px;box-shadow:0 4px 12px #0002;padding:4px 0;}
.directories-parent-picker [role=option] {display:block;border:0;border-radius:0;background:#fff;width:100%;text-align:left;padding:6px 12px;}
.directories-parent-picker [role=option]:hover,.directories-parent-picker [role=option]:focus-visible,.directories-parent-picker [role=option][aria-selected=true] {background:#e6f2ff;color:#1973e1;}
/* ORDER_DIRECTORY_FIELDS_ROLLOUT: crm-order-directory-fields-1 */
.intake-custom-settings {grid-column:1/-1;border:1px solid #e4e7eb;border-radius:10px;padding:20px;margin:16px 0;}
.intake-custom-settings>h3 {margin:0 0 8px;font-size:18px;}
.intake-custom-settings>p {margin:0 0 16px;color:#66717f;}
.intake-custom-fields-table>div {display:grid;grid-template-columns:minmax(140px,1fr) minmax(140px,1fr) 140px 100px;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid #e4e7eb;}
.intake-custom-fields-table button {border:0;background:transparent;color:#2779bd;text-align:left;padding:0;cursor:pointer;font:inherit;}
.intake-custom-fields-table+[data-directory-field-new] {margin-top:16px;}
.directories-editor .intake-custom-required {display:flex;align-items:center;gap:10px;font-size:14px;font-weight:400;}
.directories-editor .intake-custom-required>input {width:16px;height:16px;margin:0;}
.order-directory-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;grid-column:1/-1;}
.order-directory-fields[hidden] {display:none;}
.order-directory-fields .directories-parent-native {display:none!important;}
.order-directory-fields .directories-parent-picker {width:100%;margin-top:0;}
.order-directory-fields .directories-parent-picker>button {height:34px;background:#fff;border-color:#c6d5e5;border-radius:4px;font-size:14px;padding:6px 10px;}
.order-directory-fields .directories-parent-picker>[role=listbox] {z-index:30;max-width:min(420px,90vw);border-radius:4px;}
.order-custom-historical {display:flex;flex-direction:column;gap:5px;font-size:13px;color:#718096;}
.order-custom-historical>strong {color:#334155;font-weight:400;}
.order-directory-fields .required-mark {color:#d43f3a;}
.directories-import-steps {display:flex;gap:24px;padding:0;list-style-position:inside;margin:0;color:#8d969e;}
.directories-file-picker {display:inline-flex!important;align-self:flex-start;border:1px solid #dedfe1;border-radius:7px;padding:6px 14px;position:relative;overflow:hidden;cursor:pointer;}
.directories-file-picker>input {position:absolute;inset:0;opacity:0;cursor:pointer;}
.directories-template {border:0;background:none;color:#1973e1!important;text-align:left;padding:0;align-self:flex-start;}
.directories-import-preview {max-height:240px;overflow:auto;border:1px solid #dedfe1;border-radius:7px;margin-top:12px;}
.directories-import-preview>div {padding:5px 8px;border-bottom:1px solid #eee;}


/* ORDER_MONEY_FIELDS_COMPACT_ROLLOUT: crm-order-money-fields-compact-1; desktop create + saved estimate. */
@media (min-width: 1000px) {
  #drawer #orderForm.order-money-fields-compact :is([data-order-intake-field="estimate"], [data-order-intake-field="prepay"]) .order-money-input {
    box-sizing: border-box; display: inline-flex; align-items: center; justify-self: start;
    width: min(240px, 100%); max-width: 100%; min-width: 0; height: 32px; min-height: 32px;
    border: 1px solid var(--ui-field-border, #c6d3df); border-radius: 3px; background: #fff;
  }
  #drawer #orderForm.order-money-fields-compact :is([data-order-intake-field="estimate"], [data-order-intake-field="prepay"]) .order-money-input:focus-within {
    border-color: var(--ui-field-focus, #267db2); box-shadow: 0 0 0 2px rgba(38, 125, 178, .18);
  }
  #drawer #orderForm.order-money-fields-compact :is([data-order-intake-field="estimate"], [data-order-intake-field="prepay"]) .order-money-input input {
    box-sizing: border-box; flex: 1; width: 100%; max-width: 100%; min-width: 0;
    height: 30px; min-height: 30px; padding: 0 9px; border: 0; border-radius: 0;
    outline: 0; box-shadow: none; background: transparent; text-align: left; font-variant-numeric: tabular-nums;
  }
  #drawer #orderForm.order-money-fields-compact :is([data-order-intake-field="estimate"], [data-order-intake-field="prepay"]) .order-money-input__suffix:not([hidden]) {
    position: static; display: inline-grid; flex: 0 0 24px; place-items: center start;
    padding: 0 7px 0 2px; transform: none; color: #5f6c79;
  }
}

/* ORDER_NEXT_CLIENT_CHOICE_ROLLOUT: crm-order-next-client-choice-1 */
.order-next-client-choice {width:min(520px,calc(100vw - 32px));padding:24px;margin:auto;border:1px solid #dce3eb;border-radius:8px;background:#fff;color:#253343;box-shadow:0 20px 70px #16273b33;}
.order-next-client-choice::backdrop {background:#14263d66;}
.order-next-client-choice header {display:flex;align-items:center;justify-content:space-between;gap:16px;}
.order-next-client-choice h2 {margin:0;font-size:20px;}
.order-next-client-choice header .icon-button {flex:none;font-size:24px;}
.order-next-client-choice p {margin:12px 0 16px;color:#69798a;}
.order-next-client-choice__client {display:grid;gap:5px;padding:14px 16px;border:1px solid #e1e8f0;border-radius:4px;background:#f6f8fb;overflow-wrap:anywhere;}
.order-next-client-choice__client span {color:#69798a;font-size:14px;}
.order-next-client-choice__actions {display:flex;gap:10px;margin-top:24px;}
.order-next-client-choice__actions .button {flex:1;min-width:0;min-height:38px;height:auto;white-space:normal;overflow-wrap:anywhere;line-height:1.4;}

/* ORDER_INTAKE_STABILITY_ROLLOUT: crm-order-intake-stability-1 */
@media (min-width: 1000px) {
  #drawer.drawer--intake-stable.drawer--order-create #orderClientHeading,
  #drawer.drawer--intake-stable.drawer--order-create .order-intake-column--side > h2 {
    box-sizing: border-box;
    height: 28px;
    min-height: 28px;
    line-height: 22px;
  }
  #drawer.drawer--intake-stable.drawer--order-create #orderClientHeading {
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 8px;
  }
  #drawer.drawer--intake-stable.drawer--order-create #orderClientRepeatBadge {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 33%;
    height: 22px;
    box-sizing: border-box;
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #drawer.drawer--intake-stable.drawer--order-create #mobileOrderClientLookup {
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
  }
  #drawer.drawer--intake-stable.drawer--order-create [data-mobile-order-client-lookup-text] {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #drawer.drawer--intake-stable.drawer--order-create .mobile-order-client-lookup__actions {
    flex-wrap: nowrap;
  }
  #drawer.drawer--intake-stable.drawer--order-create .mobile-order-client-lookup button {
    box-sizing: border-box;
    height: 22px;
    min-height: 22px;
    white-space: nowrap;
  }
}

/* ORDER_INTAKE_BACKDROP_ROLLOUT: crm-order-intake-backdrop-1 */
@media (min-width: 1000px) {
  #drawerBackdrop.drawer-backdrop--sales {
    background: rgba(20, 29, 38, .48);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: none;
  }
  #drawerBackdrop.drawer-backdrop--sales-reference { background: rgb(0 0 0 / 50%); }
  #drawerBackdrop.drawer-backdrop--sales.open { animation: order-intake-backdrop-in 160ms ease-out; }
  #drawerBackdrop.drawer-backdrop--sales.drawer-backdrop--closing { animation: none; }
}
@keyframes order-intake-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #drawerBackdrop.drawer-backdrop--sales.open { animation: none; }
}

/* HOME_REVENUE_BREAKDOWN_ROLLOUT: crm-home-revenue-breakdown-1 */
#workspaceDashboardGrid > .home-revenue-breakdown,
#workspaceDashboardGrid > .home-role-dashboard__kpis--secondary {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.home-revenue-breakdown__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 20px;
  border-radius: 12px;
  color: #2a3035;
  background: #dcebfa;
}
.home-revenue-breakdown__card--sales { background: #eef0f2; }
.home-revenue-breakdown__card--total { background: #d0eadf; }
.home-revenue-breakdown__card > span { font-size: 15px; font-weight: 500; }
.home-revenue-breakdown__card > strong { font-size: 28px; font-weight: 650; line-height: 1.2; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.home-revenue-breakdown__card > small { margin-top: auto; color: #52616d; font-size: 12px; line-height: 1.4; }
@media (max-width: 760px) {
  #workspaceDashboardGrid > .home-revenue-breakdown,
  #workspaceDashboardGrid > .home-role-dashboard__kpis--secondary { grid-template-columns: 1fr; }
}
/* crm-warehouse-shared-receipts-1: only the pending row shows opening feedback. */
[data-order-opening="true"] { cursor: progress; }
.orders-list__row[data-order-opening="true"] .orders-list__number,
.order-card[data-order-opening="true"] { position: relative; }
.orders-list__row[data-order-opening="true"] .orders-list__number::after,
.order-card[data-order-opening="true"]::after {
  content: "Открытие…";
  position: absolute;
  top: calc(50% + 8px);
  left: 10px;
  display: block;
  color: #1a73e8;
  font-size: 10px;
  line-height: 12px;
  white-space: nowrap;
  pointer-events: none;
}
.order-card[data-order-opening="true"]::after { top: 6px; right: 8px; left: auto; background: #fff; }

/* New markup only: crm-warehouse-shared-catalog-stable-1. */
#nsWarehouseRoot .nsw-retail-client { margin-bottom: 12px; }
#nsWarehouseRoot .nsw-retail-client__selected,
#nsWarehouseRoot .nsw-retail-client__balance { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; }
#nsWarehouseRoot .nsw-retail-client__selected small,
#nsWarehouseRoot .nsw-retail-client__balance small { color: #687a90; }
#nsWarehouseRoot .nsw-retail-client__balance small { flex-basis: 100%; }
#nsWarehouseRoot .nsw-retail-client > .nsw-receipt-product-search { margin: 12px 16px; }
#nsWarehouseRoot .nsw-retail-client > p { margin: 12px 16px; color: #687a90; }
/* Shared NS groups: the native dialog does not change catalogue row geometry. */
.inventory-shared-category-dialog { width: min(520px, calc(100vw - 40px)); }
.inventory-shared-category-dialog form { padding: 0 22px; }
.inventory-shared-category-dialog label { display: grid; gap: 6px; margin: 12px 0; font-size: 14px; }
.inventory-shared-category-dialog input,
.inventory-shared-category-dialog select,
.inventory-shared-category-dialog textarea { width: 100%; box-sizing: border-box; border: 1px solid #ced9e4; border-radius: 4px; padding: 8px 10px; font: inherit; }
.inventory-shared-category-dialog footer { gap: 8px; flex-wrap: wrap; }
.inventory-shared-column-settings { position: relative; }
.inventory-shared-column-settings > summary { cursor: pointer; padding: 6px 10px; }
.inventory-shared-column-settings > div { position: absolute; bottom: 100%; left: 0; z-index: 5; min-width: 210px; background: white; border: 1px solid #ced9e4; border-radius: 6px; padding: 12px; box-shadow: 0 4px 16px #23334a26; }
.inventory-shared-column-settings label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.inventory-shared-source-preview th[data-source-column] { position: relative; }

/* SETTINGS_NAV_HIERARCHY_ROLLOUT: crm-settings-nav-hierarchy-1.
   CRMReleaseRollout via syncSettingsStructure; existing section buttons/permissions retained. */
.settings-nav__group-icon { display:none; }
@media (min-width:901px) {
  body.settings-nav-compact-beta .settings-nav.settings-nav-hierarchy-beta { gap:16px; }
  body.settings-nav-compact-beta .settings-nav.settings-nav-hierarchy-beta .settings-nav__group { position:relative; gap:0; }
  body.settings-nav-compact-beta .settings-nav.settings-nav-hierarchy-beta .settings-nav__group::after {
    content:""; position:absolute; top:36px; bottom:0; left:19px; width:1px;
    background:#e5e5e5; pointer-events:none;
  }
  body.settings-nav-compact-beta .settings-nav.settings-nav-hierarchy-beta .settings-nav__group > strong {
    display:flex; align-items:center; gap:8px; box-sizing:border-box; min-height:32px;
    margin:0 0 4px; padding:0 12px; font:400 14px/20px "NS Order Inter",sans-serif;
    color:#333; letter-spacing:0; text-transform:none;
  }
  body.settings-nav-compact-beta .settings-nav.settings-nav-hierarchy-beta .settings-nav__group-icon {
    display:block; flex:0 0 16px; width:16px; height:16px; fill:none;
    stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round;
  }
  body.settings-nav-compact-beta .settings-nav.settings-nav-hierarchy-beta .settings-nav__group > button {
    margin-left:29px; width:calc(100% - 29px); min-height:34px; padding:6px 7px;
    border:0; border-radius:8px; background:transparent;
  }
  body.settings-nav-compact-beta .settings-nav.settings-nav-hierarchy-beta .settings-nav__group > button:hover { background:#eee; }
  body.settings-nav-compact-beta .settings-nav.settings-nav-hierarchy-beta .settings-nav__group > button.active { background:#e5e5e5; }
  @layer crm-button-system {
    body.settings-nav-compact-beta .settings-nav.settings-nav-hierarchy-beta .settings-nav__group > button {
      font-family:"NS Order Inter",sans-serif!important; font-size:14px!important;
      line-height:20px!important; font-weight:400!important; color:#333!important;
      background:transparent!important; border:0!important; box-shadow:none!important;
    }
    body.settings-nav-compact-beta .settings-nav.settings-nav-hierarchy-beta .settings-nav__group > button:hover { background:#eee!important; }
    body.settings-nav-compact-beta .settings-nav.settings-nav-hierarchy-beta .settings-nav__group > button.active { background:#e5e5e5!important; }
    body.settings-nav-compact-beta .settings-nav.settings-nav-hierarchy-beta .settings-nav__group--danger > button { color:#ad3030!important; }
  }
}

/* STAFF_VISUAL_COMPACT_ROLLOUT: crm-staff-visual-compact-1.
   Desktop presentation only; permission values, endpoints and payroll remain unchanged. */
@media (min-width:1000px) {
  body.settings-polish-beta .settings-content:has(> .staff-settings--compact-beta) > .settings-workspace__section-head {
    padding:0 0 12px;margin:0 0 12px;min-height:0;
  }
  body.settings-polish-beta .settings-content:has(> .staff-settings--compact-beta) > .settings-workspace__section-head h2 {
    margin:0;font:500 22px/30px "NS Order Inter",sans-serif;color:#282e33;
  }
  body.settings-polish-beta .settings-content:has(> .staff-settings--compact-beta) > .settings-workspace__section-head :is(.settings-workspace__eyebrow,p,.settings-workspace__saved-state) {display:none;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta {
    font-family:"NS Order Inter",sans-serif;color:#282e33;--ui-button-radius:8px;
  }
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta > .staff-settings-tabs {gap:24px;margin-bottom:0;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta > .staff-settings-tabs > button {
    min-height:42px;padding:10px 0;color:#282e33;font:400 14px/20px "NS Order Inter",sans-serif;
  }
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta > .staff-settings-tabs > button.active {box-shadow:inset 0 -2px #282e33;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta > .staff-settings-panel {padding:16px 0;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta .staff-desktop-toolbar {margin-bottom:12px;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta .staff-group-filter {margin-bottom:10px;font-weight:400;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta .staff-filter-bar {gap:6px;margin-bottom:12px;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta .staff-filter-bar button {border-radius:8px;font-weight:400;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta .staff-desktop-row > * {font:400 14px/20px "NS Order Inter",sans-serif;color:#282e33;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta .staff-desktop-row--head > * {font-weight:500;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta .staff-person {font-weight:400;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta [data-staff-column="actions"] > [data-staff-edit] {display:none!important;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta .staff-groups:has(.staff-desktop-empty) {display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta .staff-groups:has(.staff-desktop-empty) > header {margin:0;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta .staff-groups:has(.staff-desktop-empty) [data-staff-groups-list] {border:0;background:none;overflow:visible;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta .staff-groups:has(.staff-desktop-empty) :is(.staff-groups-row--head,.staff-groups-total) {display:none;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta .staff-groups .staff-desktop-empty {margin:0;padding:8px 0;font:400 13px/20px "NS Order Inter",sans-serif;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta :is(.staff-desktop-fields,.staff-role-desktop-fields) :is(input,select,textarea) {font:400 14px/20px "NS Order Inter",sans-serif;color:#282e33;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta .staff-desktop-fields {padding-top:20px;padding-bottom:20px;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta #staffForm .staff-editor-section > .staff-editor-section__head strong {font-weight:500;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta .staff-role-tree details {margin:0 0 16px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta .staff-role-tree details > summary {display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta .staff-role-tree details > summary label {display:flex;align-items:center;gap:8px;margin:0;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta .staff-role-tree details > summary strong {font-size:14px;font-weight:500;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta .staff-role-tree details > div {padding:4px 0 0 24px;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta #staffPersonalPermissionsForm {
    min-height:0;flex:1 1 0;overflow:hidden;
  }
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta .staff-personal-rights-scroll {
    position:relative;isolation:isolate;flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior:contain;
  }
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta .staff-access-switch {position:relative;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta .staff-access-switch > input {width:1px!important;height:1px!important;min-width:0;min-height:0;padding:0;margin:0;clip-path:inset(50%);}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta .staff-personal-rights-scroll > [data-permission-search] {margin:0 24px 16px;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta #staffPersonalPermissionsWorkspace .staff-personal-rights-drawer__permissions {flex:none;min-height:0;overflow:visible;padding-bottom:16px;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta #staffPersonalPermissionsWorkspace .staff-personal-rights-drawer__actions {
    position:static;flex:0 0 auto;margin:0;padding:16px;z-index:auto;
  }
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta .staff-personal-rights-group > summary {display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer;background:#f6f7f9;padding:12px 14px;border-bottom:1px solid #e3e7ec;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta .staff-personal-rights-group > summary > div {display:grid;gap:3px;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta .staff-personal-rights-group > summary strong {font-size:14px;font-weight:500;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta .staff-personal-rights-group > summary span {font-size:12px;color:#717b86;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta details[data-permission-group] > summary::-webkit-details-marker,
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta details[data-role-permission-group] > summary::-webkit-details-marker {display:none;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta details:is([data-permission-group],[data-role-permission-group]) > summary::before {content:"";flex:0 0 6px;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta details[open]:is([data-permission-group],[data-role-permission-group]) > summary::before {transform:rotate(45deg);}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta .staff-personal-rights-row {padding:12px 14px;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta .staff-personal-rights-row__copy strong {font-weight:500;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta .staff-personal-rights-row__copy p {font:400 13px/19px "NS Order Inter",sans-serif;}
  .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta .staff-personal-rights-row__copy small {font-weight:500;}
  @layer crm-button-system {
    .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta :is(.button,.staff-filter-bar button,.staff-person,.staff-settings-tabs > button,.staff-desktop-tabs button,.staff-role-desktop-row button) {
      font-family:"NS Order Inter",sans-serif!important;font-size:14px!important;font-weight:400!important;line-height:20px!important;
    }
    .settings-content .staff-settings.staff-settings--roapp.staff-settings--compact-beta .button {border-radius:8px!important;}
  }
}

/* STAFF_TABLE_COLUMNS_ROLLOUT: crm-staff-table-columns-1 — same controls as Orders. */
@media (min-width:1000px) {
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-table--columns .staff-desktop-row {width:max(100%,var(--staff-table-minimum));min-width:var(--staff-table-minimum);box-sizing:border-box;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-table--columns .staff-desktop-row--head {position:relative;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-table--columns [data-staff-header] {position:relative;overflow:hidden;white-space:nowrap;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-table--columns [data-staff-header][draggable] {cursor:grab;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-table--columns [data-staff-header] > button {max-width:100%;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-table--columns [data-staff-sort] > span {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-table--columns [data-staff-header]:not(:hover,:focus-within) [data-staff-sort] > svg {opacity:0;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-table--columns [data-staff-header][data-staff-column-dragging] {cursor:grabbing;background:#e4ebf4;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-table--columns [data-staff-header][data-staff-column-drop] {background:#e1edfd;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-table--columns [data-staff-header][data-staff-column-drop]::after {content:"";position:absolute;inset-block:2px;width:3px;background:#245da8;pointer-events:none;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-table--columns [data-staff-column-drop="before"]::after {inset-inline-start:0;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-table--columns [data-staff-column-drop="after"]::after {inset-inline-end:0;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-table--columns [data-staff-column-settings] {position:absolute;grid-column:-2 / -1;grid-row:1 / 2;z-index:3;right:8px;top:50%;transform:translateY(-50%);display:grid;place-items:center;box-sizing:border-box;width:17px;min-width:0;height:26px;min-height:0;padding:0;border:0;background:transparent;color:#52677f;cursor:pointer;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-table--columns [data-staff-column-settings] svg {width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-table--columns [data-staff-column-settings]:hover {color:#245da8;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-table--columns [data-staff-column-settings]:focus-visible {outline:2px solid #245da8;outline-offset:1px;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-table--columns [data-staff-column-resize] {position:absolute;grid-row:1 / 2;z-index:3;right:-7px;top:50%;transform:translateY(-50%);display:block;width:14px;height:22px;min-width:0;min-height:0;padding:0;border:0;overflow:visible;background:transparent;cursor:col-resize;touch-action:none;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-table--columns [data-staff-column-resize]::before {content:"";position:absolute;inset-block:-5px;left:50%;width:2px;background:#245da8;opacity:0;pointer-events:none;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-table--columns [data-staff-column-resize]::after {content:"↔";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);padding:0 1px;background:#edf1f5;color:#245da8;font:700 14px/1 system-ui,sans-serif;opacity:0;pointer-events:none;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-table--columns [data-staff-column-resize]:is(:hover,:focus-visible,[data-staff-column-hover],[data-staff-column-resizing])::after {opacity:1;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-table--columns [data-staff-column-resize]:is(:hover,:focus-visible,[data-staff-column-resizing])::before {opacity:1;}
}
.staff-column-settings {font-family:"NS Order Inter",Arial,sans-serif;}
.staff-column-settings ul {max-height:calc(100vh - 230px);overflow:auto;}
.staff-column-settings footer {position:sticky;bottom:0;background:#fff;padding-top:10px;}
/* STAFF_SHARED_TABLE_SORT_ROLLOUT: crm-staff-shared-table-sort-1 */
@media (min-width:1000px) {
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-table--shared-sort [data-staff-shared-sort-header] {display:block;padding:0;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-table--shared-sort [data-staff-shared-sort-header] > .table-sort {width:100%;height:100%;max-width:none;}
}
/* STAFF_DIRECT_CREATE_ROLLOUT: crm-staff-direct-create-1 */
@media (min-width:1000px) {
  .settings-content .staff-settings.staff-settings--roapp #directStaffButton {font-weight:400!important;}
  .settings-content .staff-settings.staff-settings--roapp .staff-direct-credentials {grid-column:1 / -1;display:grid;gap:10px;margin-top:12px;padding-top:20px;border-top:1px solid #e5e9ee;}
  .settings-content .staff-settings.staff-settings--roapp .staff-direct-credentials[hidden] {display:none;}
  .settings-content .staff-settings.staff-settings--roapp .staff-direct-credentials > strong {font-size:14px;font-weight:500;}
  .settings-content .staff-settings.staff-settings--roapp .staff-direct-credentials > p {margin:0;color:#687582;font-size:13px;}
  .settings-content .staff-settings.staff-settings--roapp .staff-direct-credentials label {max-width:440px;}
  .settings-content .staff-settings.staff-settings--roapp .staff-direct-credentials label b {font-weight:400;color:#ed3333;}
}
/* STAFF_TABLE_SORT_INDICATOR_ROLLOUT: crm-staff-table-sort-indicator-2 */
@media (min-width:1000px) {
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-table--sort-indicator [data-staff-sort] em {min-width:14px;color:#245da8;font-style:normal;font-weight:var(--ui-weight-black,900);text-align:center;}
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-table--sort-indicator [role="columnheader"],
  .settings-content .staff-settings.staff-settings--roapp .staff-desktop-table--sort-indicator [data-staff-sort],
  .settings-content .staff-settings.staff-settings--roapp:has(.staff-desktop-table--sort-indicator) .staff-groups > header [data-staff-group-new] {font-weight:400!important;}
}
/* STAFF_CARD_APPEARANCE_ROLLOUT: crm-staff-card-appearance-1 */
@media (min-width:1000px) {
  .settings-content .staff-settings.staff-settings--card-appearance .staff-desktop-head {min-height:52px;padding:0 0 0 16px;}
  .settings-content .staff-settings.staff-settings--card-appearance .staff-desktop-head h2 {font:400 24px/1.35 "NS Order Inter",Arial,sans-serif;color:#2b3034;}
  .settings-content .staff-settings.staff-settings--card-appearance .staff-desktop-drawer .staff-desktop-tabs {flex-wrap:nowrap;overflow-x:auto;gap:0;padding:8px 16px 0;}
  .settings-content .staff-settings.staff-settings--card-appearance .staff-desktop-tabs > button {flex-shrink:0;white-space:nowrap;padding:17px 12px 10px;font:400 14px/1.5 "NS Order Inter",Arial,sans-serif;color:#2b3034;}
  .settings-content .staff-settings.staff-settings--card-appearance #staffForm .staff-editor-section[data-staff-card-page="general"] {display:grid;grid-template-columns:210px minmax(0,1fr);gap:24px;}
  .settings-content .staff-settings.staff-settings--card-appearance #staffForm .staff-editor-section[data-staff-card-page="general"] .staff-editor-section__head {display:block;margin:0;padding:0;}
  .settings-content .staff-settings.staff-settings--card-appearance #staffForm .staff-editor-section__head strong {color:#2b3034;font-size:16px;font-weight:600;}
  .settings-content .staff-settings.staff-settings--card-appearance #staffForm .staff-editor-section__head > span {display:none;}
  .settings-content .staff-settings.staff-settings--card-appearance #staffForm .staff-editor-section[data-staff-card-page="general"] .staff-editor-grid {display:flex;flex-direction:column;gap:18px;}
  .settings-content .staff-settings.staff-settings--card-appearance #staffForm .staff-editor-grid > label,
  .settings-content .staff-settings.staff-settings--card-appearance #staffForm [data-staff-direct-credentials] > label {display:flex;flex-direction:column;gap:6px;align-items:stretch;margin:0;}
  .settings-content .staff-settings.staff-settings--card-appearance #staffForm .staff-editor-grid > label > span,
  .settings-content .staff-settings.staff-settings--card-appearance #staffForm [data-staff-direct-credentials] > label > span {padding:0;font:500 14px/1.5 "NS Order Inter",Arial,sans-serif;color:#2b3034;}
  .settings-content .staff-settings.staff-settings--card-appearance #staffForm .staff-card-credentials {margin-top:30px;}
  .settings-content .staff-settings.staff-settings--card-appearance #staffForm .staff-card-login-note {margin:0;color:#777e86;font-size:14px;line-height:1.5;}
  .settings-content .staff-settings.staff-settings--card-appearance #staffForm [data-staff-direct-credentials] {margin:0;padding:0;border:0;}
  .settings-content .staff-settings.staff-settings--card-appearance #staffForm [data-staff-direct-credentials] > :is(strong,p) {display:none;}
  .settings-content .staff-settings.staff-settings--card-appearance #staffForm .staff-editor-note {display:none;}
  .settings-content .staff-settings.staff-settings--card-appearance .staff-card-access-intro {margin:0 0 24px;color:#2b3034;font-size:14px;line-height:1.5;}
  .settings-content .staff-settings.staff-settings--card-appearance .staff-card-access-empty {margin:0;color:#777e86;font-size:14px;line-height:1.5;}
  .settings-content .staff-settings.staff-settings--card-appearance #staffLocationAccess > .staff-location-access__head {display:none;}
  .settings-content .staff-settings.staff-settings--card-appearance .staff-access-location {margin:0 0 24px;border:0;border-radius:0;background:#fff;padding:0;}
  .settings-content .staff-settings.staff-settings--card-appearance .staff-access-location__head {padding:10px 0;border-bottom:1px solid #e5e7eb;background:#fff;}
  .settings-content .staff-settings.staff-settings--card-appearance .staff-access-location__head strong {color:#2b3034;font-weight:500;}
  .settings-content .staff-settings.staff-settings--card-appearance :is(.staff-access-location__head,.staff-access-warehouse-row) strong {font-size:14px;font-weight:400;color:#2b3034;}
  .settings-content .staff-settings.staff-settings--card-appearance :is(.staff-access-location__head,.staff-access-warehouse-row) small {font-size:12px;font-weight:400;color:#777e86;}
  .settings-content .staff-settings.staff-settings--card-appearance :is(.staff-access-location__head > b,.staff-access-warehouse-row > em) {font-size:12px;font-weight:400;}
  .settings-content .staff-settings.staff-settings--card-appearance .staff-access-warehouse-list {padding:0;}
  .settings-content .staff-settings.staff-settings--card-appearance .staff-access-warehouse-row {margin:0;padding:12px 0;border:0;border-bottom:1px solid #e5e7eb;border-radius:0;background:#fff;}
  .settings-content .staff-settings.staff-settings--card-appearance #staffForm .staff-form__actions {display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:16px;background:#eaf3fd;}
  .settings-content .staff-settings.staff-settings--card-appearance .staff-card-lifecycle {display:flex;align-items:center;gap:8px;margin-left:auto;}
  .settings-content .staff-settings.staff-settings--card-appearance .staff-card-lifecycle > .button {min-height:34px;font:400 14px/1.4 "NS Order Inter",Arial,sans-serif;border:1px solid #dedfe1;border-radius:8px;background:#fff;color:#2b3034;padding:7px 12px;}
  .settings-content .staff-settings.staff-settings--card-appearance .staff-card-lifecycle [data-staff-card-action="status"] > svg {width:18px;height:18px;flex-shrink:0;stroke:#ef3535;vertical-align:middle;}
  .settings-content .staff-settings.staff-settings--card-appearance .staff-card-lifecycle [data-status="active"] > svg {stroke:#16a34a;}
  .settings-content .staff-settings.staff-settings--card-appearance .staff-card-lifecycle > .staff-card-remove {background:#f21e24;border-color:#f21e24;color:#fff;width:48px;padding:7px 12px;}
  .settings-content .staff-settings.staff-settings--card-appearance .staff-card-remove > svg {display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;}
  .settings-content .staff-settings.staff-settings--card-appearance .staff-card-lifecycle > button:disabled {opacity:.5;cursor:default;}
  .settings-content .staff-settings.staff-settings--card-appearance .staff-desktop-status.is-inactive {color:#8b9098;}
}

/* STAFF_SALARY_CARD_ROLLOUT: crm-staff-salary-card-1 */
@media (min-width: 1000px) {
  .staff-settings--card-appearance .staff-salary { height: 100%; flex: 1; min-height: 0; overflow: hidden; color: #2b3034; }
  .staff-settings--card-appearance .staff-salary:not([hidden]) { display: flex; }
  .staff-salary__scroll { width: 100%; overflow: auto; padding: 28px 16px 24px; }
  .staff-salary__summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 16px; border-radius: 8px; background: #f5f5f5; }
  .staff-salary__summary > div:not(.staff-salary__advance) { display: flex; flex-direction: column; gap: 8px; }
  .staff-salary__summary span { font-size: 14px; }
  .staff-salary__summary strong { font-size: 23px; font-weight: 600; overflow-wrap: anywhere; }
  .staff-salary__advance { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 24px; color: #727a81; }
  .staff-salary__toolbar { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 24px 0 16px; }
  .staff-salary__toolbar label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
  .staff-salary__toolbar input { width: 210px; min-height: 34px; color: inherit; background: #fff; }
  .staff-salary__status { margin: 12px 0; font-size: 14px; }
  .staff-salary__table { border: 1px solid #dedfe1; border-radius: 8px; overflow: hidden; }
  .staff-salary table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
  .staff-salary th, .staff-salary td { padding: 12px; border-bottom: 1px solid #e3e4e6; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
  .staff-salary th { font-weight: 600; }
  .staff-salary th:first-child { width: 28%; }
  .staff-salary th:last-child, .staff-salary td:last-child { width: 23%; text-align: right; }
  .staff-salary tr:last-child td { border-bottom: 0; }
  .staff-salary small { display: block; margin-top: 4px; color: #899096; font-size: 12px; }
  .staff-salary td.staff-salary__empty { padding: 52px 16px; text-align: center; }
  .staff-salary__empty strong, .staff-salary__empty span { display: block; margin: 10px 0; }
  .staff-salary__details { margin-top: 20px; }
  .staff-salary__details summary { cursor: pointer; color: #287ad5; padding: 12px 0; }
  .staff-salary__note { color: #899096; font-size: 12px; margin: 20px 0 0; }
}

/* STAFF_SALARY_APPEARANCE_ROLLOUT: crm-staff-salary-appearance-1 */
@media (min-width: 1000px) {
  .settings-content .staff-settings.staff-settings--card-appearance .staff-desktop-drawer--salary-appearance .staff-desktop-body { position: relative; }
  .settings-content .staff-settings.staff-settings--card-appearance .staff-desktop-drawer--salary-appearance [data-staff-profile-host] { position: absolute; inset: auto 0 0; height: 66px; min-height: 0; z-index: 1; }
  .settings-content .staff-settings.staff-settings--card-appearance .staff-desktop-drawer--salary-appearance #staffForm { height: 66px; }
  .settings-content .staff-settings.staff-settings--card-appearance .staff-desktop-drawer--salary-appearance .staff-desktop-fields { display: none !important; }
  .settings-content .staff-settings.staff-settings--card-appearance .staff-desktop-drawer--salary-appearance .staff-form__actions { box-sizing: border-box; height: 66px; min-height: 66px; flex-wrap: nowrap; background: #edf4fe; }
  .settings-content .staff-settings.staff-settings--card-appearance .staff-desktop-drawer--salary-appearance .staff-form__actions [data-staff-desktop-close] { display: none; }
  .settings-content .staff-settings.staff-settings--card-appearance .staff-desktop-drawer--salary-appearance .staff-salary { height: calc(100% - 66px); }
  .staff-salary--appearance .staff-salary__scroll { padding: 32px 16px 24px; }
  .staff-salary__overview { box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; min-height: 148px; padding: 12px 16px; border-radius: 8px; background: #f5f5f5; }
  .staff-salary__overview strong, .staff-salary__overview b, .staff-salary__balance > span { display: block; }
  .staff-salary__overview-main strong { font-size: 14px; line-height: 21px; color: #287bd3; font-weight: 700; }
  .staff-salary__balance > b { font-size: 16px; font-weight: 700; line-height: 20px; }
  .staff-salary__balance > span { font-size: 14px; line-height: 21px; min-height: 21px; }
  .staff-salary__estimate { margin-top: 12px; }
  .staff-salary__estimate > b { font-size: 24px; line-height: 30px; font-weight: 700; }
  .staff-salary__months { display: flex; flex-direction: column; gap: 15px; padding-top: 14px; text-align: right; font-size: 14px; line-height: 21px; }
  .staff-salary__months > div { white-space: nowrap; }
  .staff-salary__months strong { display: inline; font-size: 14px; font-weight: 700; }
  .staff-salary__months span { font-weight: 400; }
  .staff-salary__recent-retry { border: 0; padding: 0; background: none; color: #287bd3; cursor: pointer; font-size: 12px; }
  .staff-salary__actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0 16px; }
  .staff-salary__actions > div { display: flex; gap: 14px; }
  .staff-salary__actions .button > span { font-size: 19px; line-height: 14px; font-weight: 700; vertical-align: -1px; }
  .settings-content .staff-salary--appearance .staff-salary__future-action:disabled { color: #2b3034 !important; background: #fff !important; border-color: #dedfe1 !important; font-weight: 400 !important; opacity: 1 !important; }
  .staff-salary__filter { margin: 0 0 16px; }
  .staff-salary__filter > label { display: block; margin: 0 0 4px; color: #2b3034; font-size: 14px; font-weight: 500; line-height: 21px; }
  .staff-salary__filter > div { display: flex; align-items: center; gap: 8px; }
  .staff-salary__month-control { position: relative; display: flex; width: 216px; height: 34px; box-sizing: border-box; border: 1px solid #dedfe1; border-radius: 8px; background: #fff; overflow: hidden; }
  .staff-salary__month-control:focus-within { outline: 1px solid #4285ed; border-color: #4285ed; }
  .staff-salary__month-control > button { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 34px; padding: 0; border: 0; background: #fff; cursor: pointer; }
  .staff-salary__month-control svg { width: 18px; height: 18px; fill: none; stroke: #999; stroke-width: 1.5; stroke-linecap: round; }
  .settings-content .staff-salary--appearance .staff-salary__month-control > input { box-sizing: border-box; position: relative; width: 180px; min-width: 0; height: 32px !important; min-height: 0 !important; padding: 0 8px 0 0 !important; border: 0 !important; border-radius: 0 !important; background: #fff !important; box-shadow: none !important; outline: none !important; font: 400 14px/1.5 "NS Order Inter",Arial,sans-serif !important; color: #2b3034; }
  .staff-salary__month-control input::-webkit-calendar-picker-indicator { display: none; }
  .staff-salary__month-control input::-webkit-datetime-edit-month-field { text-transform: capitalize; }
  .staff-salary__month-reset { width: 24px; height: 30px; display: flex; align-items: center; justify-content: center; border: 0; padding: 0; background: transparent; cursor: pointer; }
  .staff-salary__month-reset svg { width: 20px; height: 20px; fill: none; stroke: #ed8c0b; stroke-width: 3.5; stroke-linecap: round; }
  .staff-salary--appearance .staff-salary__table th { padding: 10px 12px; height: 41px; box-sizing: border-box; }
  .staff-salary--appearance .staff-salary__table th:first-child { width: 25%; padding-left: 40px; }
  .staff-salary--appearance .staff-salary__table th:last-child { width: 23%; padding-right: 8px; }
  .staff-salary--appearance td.staff-salary__empty { padding: 0; height: 268px; text-align: center; }
  .staff-salary--appearance .staff-salary__empty > div { min-height: 268px; padding: 20px 16px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; }
  .staff-salary--appearance .staff-salary__empty-image { display: block; width: 160px; height: 90px; margin: 0 0 16px; flex-shrink: 0; }
  .staff-salary--appearance .staff-salary__empty strong { margin: 0 0 12px; font-size: 16px; line-height: 24px; font-weight: 700; }
  .staff-salary--appearance .staff-salary__empty span { margin: 0; font-size: 14px; line-height: 21px; }
}
@media (min-width: 1000px) {
  .staff-salary--appearance { --ui-button-height: 34px; --ui-button-font-size: 14px; --ui-button-padding: 6px 14px; --ui-button-radius: 8px; --ui-button-success: #00a346; --ui-button-success-hover: #008e3d; --ui-button-secondary-color: #2b3034; --ui-button-border: #dedfe1; }
  .staff-desktop-drawer--salary-appearance { --ui-button-primary: #1a73e8; --ui-button-primary-hover: #1767d0; --ui-button-danger: #ff1e24; --ui-button-danger-hover: #e61b21; }
  .staff-salary--appearance [data-staff-salary-pay] { width: 105px; }
  .staff-salary--appearance .staff-salary__future-action:first-child { width: 106px; }
  .staff-salary--appearance .staff-salary__future-action:last-child { width: 98px; }
  @layer crm-button-system {
    .settings-content .staff-settings.staff-settings--card-appearance .staff-salary--appearance .button { font-family: "NS Order Inter",Arial,sans-serif !important; font-size: 14px !important; line-height: 20px !important; border-radius: 8px !important; }
    .settings-content .staff-settings.staff-settings--card-appearance .staff-salary--appearance .button--green { font-weight: 700 !important; }
    .settings-content .staff-settings.staff-settings--card-appearance .staff-salary--appearance .staff-salary__future-action:disabled { color: #2b3034 !important; background: #fff !important; border-color: #dedfe1 !important; font-weight: 400 !important; opacity: 1 !important; }
    .settings-content .staff-settings.staff-settings--card-appearance .staff-desktop-drawer--salary-appearance .staff-form__actions > .button[type="submit"] { font-weight: 700 !important; }
  }
}
@media (min-width: 1000px) {
  .staff-salary--appearance [data-staff-salary-pay] { box-sizing: border-box; min-height: 34px; padding: 6px 14px; border: 1px solid #00a346; border-radius: 8px; background: #00a346; color: #fff; font: 700 14px/20px "NS Order Inter",Arial,sans-serif; }
}
