.mobile-order-serial-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  min-width: 0;
}

.mobile-order-serial-scan {
  display: none;
}

.mobile-order-serial-scan__scanner {
  display: none;
}

html.crm-mobile-order-serial-scan-icon-beta .mobile-order-serial-scan__camera {
  display: none;
}

html.crm-mobile-order-serial-scan-icon-beta .mobile-order-serial-scan__scanner {
  display: block;
}

.mobile-orders-search-scan[hidden] { display: none !important; }


.desktop-order-serial-scan {
  width: 38px;
  min-width: 38px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #cddced;
  border-radius: 5px;
  background: #f4f8fd;
  color: #3176c6;
  cursor: pointer;
}

.desktop-order-serial-scan svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.desktop-order-serial-scan[hidden] {
  display: none !important;
}

.desktop-order-serial-scan.is-scanning {
  border-color: #69ad78;
  background: #edf8ef;
  color: #20743b;
}

@media (max-width: 760px) {
  .desktop-order-serial-scan {
    display: none !important;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .mobile-order-serial-field {
    position: relative;
    display: block;
    min-width: 0;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .mobile-order-serial-field > input {
    width: 100%;
    padding-right: 58px;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .mobile-order-serial-scan {
    position: absolute;
    top: 50%;
    right: 5px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: #e9f5ff;
    color: #1683c7;
    transform: translateY(-50%);
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .mobile-order-serial-scan svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .app-orders-toolbar {
    min-height: 52px;
    padding: 7px max(10px, env(safe-area-inset-right)) 7px max(10px, env(safe-area-inset-left));
    background: #fff;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .app-orders-toolbar__left {
    width: 100%;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .app-orders-toolbar__primary,
  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .app-orders-toolbar__action {
    min-height: 40px;
    border-radius: 9px;
    font-weight: 800;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .app-orders-view-switch,
  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .app-orders-toolbar .toolbar-separator {
    display: none;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .app-orders-status-tabs.app-view.active {
    min-height: 94px;
    display: grid !important;
    align-content: center;
    gap: 6px;
    padding: 6px max(10px, env(safe-area-inset-right)) 7px max(10px, env(safe-area-inset-left));
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr);
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .app-orders-status-tabs > * {
    grid-column: 1;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .orders-status-tabs__filters {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .orders-status-tabs__filters::-webkit-scrollbar {
    display: none;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .orders-status-tab {
    min-height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 12px;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .orders-status-tabs__tools {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .orders-status-search {
    width: 100%;
    min-width: 0;
    height: 38px;
    display: flex !important;
    margin: 0;
    flex: 1 1 auto;
    border-radius: 9px;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .orders-status-search input {
    min-width: 0;
    font-size: 16px;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .orders-assignee-counter {
    width: 42px;
    height: 38px;
    justify-content: center;
    padding: 0;
    border-radius: 9px;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .orders-assignee-counter span {
    display: none;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .orders-assignee-counter strong {
    position: absolute;
    margin: -23px 0 0 24px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    font-size: var(--ui-text-3xs, 9px);
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .app-orders-filter-panel.app-view.active.open {
    position: fixed;
    top: calc(110px + env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    left: max(10px, env(safe-area-inset-left));
    z-index: 48;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    border: 1px solid #cfdae6;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(23, 40, 59, 0.22);
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .app-orders-filter-panel select,
  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .app-orders-filter-panel .button {
    width: 100%;
    min-height: 46px;
    border-radius: 8px;
    font-size: 16px;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .orders-list {
    grid-row: 4;
    padding: 10px max(10px, env(safe-area-inset-right)) 14px max(10px, env(safe-area-inset-left));
    background: #f3f6fa;
    overflow-x: hidden;
    overflow-y: auto;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .orders-list__table {
    min-width: 0;
    display: grid;
    gap: 9px;
    border: 0;
    background: transparent;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .orders-list__row--head {
    display: none;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .orders-list__row:not(.orders-list__row--head) {
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "number status"
      "client price"
      "device manager"
      "problem due";
    gap: 8px 12px;
    padding: 13px;
    border: 1px solid #dce5ee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(31, 52, 78, 0.06);
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .orders-list__row.active {
    border-color: #9cc3ef;
    background: #f7fbff;
    box-shadow: inset 3px 0 0 #2f74d0, 0 5px 16px rgba(31, 52, 78, 0.08);
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .orders-list__row > span {
    min-width: 0;
    min-height: 0;
    display: block;
    padding: 0;
    border: 0;
    overflow: visible;
    font-size: 13px;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .orders-list__row > span:nth-child(1) {
    grid-area: number;
    color: #1f5fae;
    font-size: 15px;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .orders-list__row > span:nth-child(2) {
    grid-area: status;
    align-items: end;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .orders-list__row > span:nth-child(3) {
    grid-area: due;
    color: #5f7083;
    text-align: right;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .orders-list__row > span:nth-child(4) {
    grid-area: manager;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .orders-list__row > span:nth-child(5),
  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .orders-list__row > span:nth-child(6) {
    display: none;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .orders-list__row > span:nth-child(7) {
    grid-area: device;
    color: #293b4f;
    font-size: 14px;
    font-weight: 800;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .orders-list__row > span:nth-child(8) {
    grid-area: problem;
    color: #5e6e7e;
    line-height: 1.4;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .orders-list__row > span:nth-child(9) {
    grid-area: client;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .orders-list__row > span:nth-child(10) {
    grid-area: price;
    align-self: center;
    color: #26394d;
    font-size: 15px;
    text-align: right;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .orders-list__client,
  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .orders-list__person,
  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .orders-list__status {
    display: grid !important;
    align-content: start;
    gap: 2px;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .list-status-select {
    width: auto;
    min-width: 104px;
    height: 32px;
    font-size: 12px;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .orders-list__footer {
    min-width: 0;
    display: grid;
    gap: 8px;
    margin-top: 10px;
    padding: 11px 12px;
    border: 1px solid #d8e0e8;
    border-radius: 10px;
    font-size: 12px;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .orders-list__legend {
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .order-preview-panel,
  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .order-preview-backdrop {
    display: none !important;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer:is(.drawer--fullscreen, .drawer--order-create) {
    inset: 0;
    z-index: 90;
    width: 100%;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
    opacity: 0;
    transform: translateY(18px);
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer:is(.drawer--fullscreen, .drawer--order-create).open {
    opacity: 1;
    transform: translateY(0);
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer-backdrop.open {
    z-index: 89;
    background: rgba(18, 30, 44, 0.38);
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer .order-form {
    width: 100%;
    height: 100dvh;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer__header {
    min-height: calc(58px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 12px 0;
    gap: 8px;
    box-shadow: 0 2px 12px rgba(31, 52, 78, 0.06);
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer__header h1 {
    max-width: calc(100vw - 78px);
    overflow: hidden;
    font-size: 18px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer__header .icon-button--grid {
    display: none;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer__header #closeDrawerButton {
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 0;
    border-radius: 10px;
    background: #eef3f8;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer__body,
  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer.drawer--order-create .drawer__body {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    background: #f4f7fa;
    overscroll-behavior: contain;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer .ticket-main {
    display: block;
    border: 0;
    background: #fff;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer:not(.drawer--order-create) .ticket-tabs {
    position: sticky;
    top: 0;
    z-index: 4;
    min-height: 48px;
    align-items: center;
    padding: 5px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    background: #fff;
    scrollbar-width: none;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer:not(.drawer--order-create) .ticket-tabs::-webkit-scrollbar {
    display: none;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer .ticket-tab {
    min-height: 38px;
    flex: 0 0 auto;
    padding: 0 11px;
    white-space: nowrap;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer .ticket-panel,
  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer.drawer--fullscreen:not(.drawer--order-create) .ticket-panel,
  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer.drawer--order-create .ticket-panel {
    padding: 12px 10px 24px;
    overflow: visible;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer .ticket-summary {
    max-width: none;
    margin-bottom: 12px;
    border-radius: 10px;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer .ticket-summary__main {
    align-items: flex-start;
    flex-direction: column;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer .ticket-summary__status-stack {
    width: 100%;
    justify-items: start;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer .ticket-summary__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer .ticket-summary__grid > div:nth-child(odd) {
    border-right: 1px solid #edf1f5;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer .ticket-summary__grid > div:nth-child(even) {
    border-right: 0;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer .ticket-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer .ticket-actions .button {
    min-height: 42px;
    white-space: normal;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer .ro-form,
  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer.drawer--order-create .order-intake-form {
    max-width: none;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer.drawer--order-create .order-intake-column,
  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer.drawer--order-create .order-intake-column--main,
  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer.drawer--order-create .order-intake-column--side {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: 1fr;
    padding: 12px;
    border-radius: 10px;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer .ro-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer .ro-row > span {
    padding: 0;
    text-align: left;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer :is(input:not([type="checkbox"]), select, textarea) {
    min-height: 46px;
    font-size: 16px;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer textarea {
    min-height: 88px;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer .device-intake-panel,
  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer.drawer--order-create .device-intake-panel {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer .ticket-empty-state {
    min-height: 240px;
    margin-left: 0;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer .services-head,
  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer .ticket-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer .services-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer .services-actions .button,
  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer .ticket-section-head .button {
    min-height: 44px;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer .services-table,
  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer .ticket-payment-grid,
  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer .ticket-payment-list,
  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer .ticket-stock {
    max-width: 100%;
    overflow-x: auto;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer:not(.drawer--order-create) .event-panel {
    display: grid;
    min-height: 420px;
    margin: 0 10px 20px;
    border: 1px solid #dce5ee;
    border-radius: 10px;
    overflow: hidden;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer.drawer--order-create .event-panel {
    display: none;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer__actions {
    min-height: calc(58px + env(safe-area-inset-bottom));
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 7px;
    padding: 7px 10px max(7px, env(safe-area-inset-bottom));
    overflow-x: auto;
    overflow-y: visible;
    background: #fff;
    scrollbar-width: none;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer__actions::-webkit-scrollbar {
    display: none;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer__actions > .button,
  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer__actions > .action-menu > .button {
    min-height: 44px;
    flex: 0 0 auto;
    border-radius: 8px;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer.drawer--order-create .drawer__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer.drawer--order-create #createOrderButton {
    width: 100%;
    min-height: 46px;
  }

  html:is(.crm-mobile-order-create-polish-preview, .crm-mobile-order-create-polish-beta) .drawer.drawer--order-create .order-intake-column--side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html:is(.crm-mobile-order-create-polish-preview, .crm-mobile-order-create-polish-beta) .drawer.drawer--order-create .order-intake-column--side > * {
    grid-column: 1 / -1;
  }

  html:is(.crm-mobile-order-create-polish-preview, .crm-mobile-order-create-polish-beta) .drawer.drawer--order-create .order-intake-column--side > [data-order-intake-field="estimate"],
  html:is(.crm-mobile-order-create-polish-preview, .crm-mobile-order-create-polish-beta) .drawer.drawer--order-create .order-intake-column--side > [data-order-intake-field="prepay"] {
    grid-column: auto;
  }

  html:is(.crm-mobile-order-create-polish-preview, .crm-mobile-order-create-polish-beta) .drawer.drawer--order-create .drawer__actions {
    grid-template-columns: minmax(0, 1fr);
  }

  html:is(.crm-mobile-order-create-polish-preview, .crm-mobile-order-create-polish-beta) .drawer.drawer--order-create #closeOrderActionButton {
    display: none;
  }

  html:is(.crm-mobile-order-client-lookup-preview, .crm-mobile-order-client-lookup-beta, .crm-mobile-order-intake-ux-preview, .crm-mobile-order-intake-ux-beta) .drawer.drawer--order-create .mobile-order-client-phone-field {
    min-width: 0;
  }

  html:is(.crm-mobile-order-client-lookup-preview, .crm-mobile-order-client-lookup-beta, .crm-mobile-order-intake-ux-preview, .crm-mobile-order-intake-ux-beta) .drawer.drawer--order-create .mobile-order-client-phone-field > input {
    width: 100%;
  }

  html:is(.crm-mobile-order-client-lookup-preview, .crm-mobile-order-client-lookup-beta, .crm-mobile-order-intake-ux-preview, .crm-mobile-order-intake-ux-beta) .drawer.drawer--order-create .mobile-order-client-lookup {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
    padding: 8px 10px;
    border: 1px solid #cfe0f3;
    border-radius: 8px;
    background: #f2f7fd;
    color: #38516d;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
  }

  html:is(.crm-mobile-order-intake-ux-preview, .crm-mobile-order-intake-ux-beta) .drawer.drawer--order-create .mobile-order-client-lookup {
    align-items: flex-start;
    flex-direction: column;
  }

  html:is(.crm-mobile-order-intake-ux-preview, .crm-mobile-order-intake-ux-beta) .drawer.drawer--order-create .mobile-order-client-lookup__actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  html:is(.crm-mobile-order-client-lookup-preview, .crm-mobile-order-client-lookup-beta, .crm-mobile-order-intake-ux-preview, .crm-mobile-order-intake-ux-beta) .drawer.drawer--order-create .mobile-order-client-lookup[hidden] {
    display: none;
  }

  html:is(.crm-mobile-order-client-lookup-preview, .crm-mobile-order-client-lookup-beta, .crm-mobile-order-intake-ux-preview, .crm-mobile-order-intake-ux-beta) .drawer.drawer--order-create .mobile-order-client-lookup button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 5px 9px;
    border: 1px solid #b9d2ed;
    border-radius: 7px;
    background: #fff;
    color: #1767b3;
    font-size: 12px;
    font-weight: 800;
  }

  html:is(.crm-mobile-order-intake-ux-preview, .crm-mobile-order-intake-ux-beta) .drawer.drawer--order-create .order-catalog-suggestions {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 151;
    max-height: min(72dvh, 560px);
    gap: 6px;
    padding: 0 12px calc(12px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 34px rgba(18, 35, 54, 0.22), 0 0 0 100vmax rgba(15, 27, 40, 0.38);
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  html:is(.crm-mobile-order-intake-ux-preview, .crm-mobile-order-intake-ux-beta) .drawer.drawer--order-create .order-catalog-suggestions > [role="option"],
  html:is(.crm-mobile-order-intake-ux-preview, .crm-mobile-order-intake-ux-beta) .drawer.drawer--order-create .order-catalog-suggestions > button,
  html:is(.crm-mobile-order-catalog-picker-preview, .crm-mobile-order-catalog-picker-beta) .drawer.drawer--order-create .mobile-order-catalog-results > [role="option"],
  html:is(.crm-mobile-order-catalog-picker-preview, .crm-mobile-order-catalog-picker-beta) .drawer.drawer--order-create .mobile-order-catalog-results > button {
    min-height: 48px;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 15px;
    touch-action: pan-y;
  }

  /* MOBILE_ORDER_CATALOG_PICKER_ROLLOUT: crm-mobile-order-catalog-picker-1 */
  html:is(.crm-mobile-order-catalog-picker-preview, .crm-mobile-order-catalog-picker-beta) .drawer.drawer--order-create .mobile-order-catalog-results {
    display: grid;
    gap: 6px;
  }

  html:is(.crm-mobile-order-catalog-picker-preview, .crm-mobile-order-catalog-picker-beta) .drawer.drawer--order-create .mobile-order-catalog-results > [role="option"] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  html:is(.crm-mobile-order-intake-ux-preview, .crm-mobile-order-intake-ux-beta) .mobile-order-catalog-head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 -12px 4px;
    padding: 13px 12px 10px;
    border-bottom: 1px solid #e2eaf2;
    border-radius: 20px 20px 0 0;
    background: #fff;
  }

  html:is(.crm-mobile-order-intake-ux-preview, .crm-mobile-order-intake-ux-beta) .mobile-order-catalog-head > div {
    min-width: 0;
    display: grid;
    flex: 1 1 auto;
    gap: 4px;
  }

  html:is(.crm-mobile-order-catalog-picker-preview, .crm-mobile-order-catalog-picker-beta) .mobile-order-catalog-head input[type="search"] {
    width: 100%;
    min-height: 46px;
    margin-top: 4px;
    padding: 10px 12px;
    border: 1px solid #bdd2e8;
    border-radius: 11px;
    background: #f7faff;
    color: #18293b;
    font-size: 16px;
    font-weight: 650;
    appearance: none;
  }

  html:is(.crm-mobile-order-catalog-picker-preview, .crm-mobile-order-catalog-picker-beta) .mobile-order-catalog-head input[type="search"]:focus {
    border-color: #58a9ee;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(88, 169, 238, 0.2);
  }

  html:is(.crm-mobile-order-intake-ux-preview, .crm-mobile-order-intake-ux-beta) .mobile-order-catalog-head small {
    color: #718299;
    font-size: 11px;
  }

  html:is(.crm-mobile-order-intake-ux-preview, .crm-mobile-order-intake-ux-beta) .mobile-order-catalog-head strong {
    color: #18293b;
    font-size: 17px;
  }

  html:is(.crm-mobile-order-intake-ux-preview, .crm-mobile-order-intake-ux-beta) .mobile-order-catalog-head > button {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
    background: #eef3f8;
    font-size: 25px;
    text-align: center;
  }

  html:is(.crm-mobile-order-intake-ux-preview, .crm-mobile-order-intake-ux-beta) .mobile-order-client-history:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 155;
    display: grid;
    align-items: end;
  }

  html:is(.crm-mobile-order-intake-ux-preview, .crm-mobile-order-intake-ux-beta) .mobile-order-client-history__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: rgba(15, 27, 40, 0.48);
  }

  html:is(.crm-mobile-order-intake-ux-preview, .crm-mobile-order-intake-ux-beta) .mobile-order-client-history__sheet {
    position: relative;
    z-index: 1;
    max-height: 86dvh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    border-radius: 22px 22px 0 0;
    background: #f5f8fb;
    box-shadow: 0 -10px 40px rgba(18, 35, 54, 0.25);
  }

  html:is(.crm-mobile-order-intake-ux-preview, .crm-mobile-order-intake-ux-beta) .mobile-order-client-history__sheet > header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 14px 12px;
    border-bottom: 1px solid #dbe5ef;
    background: #fff;
  }

  html:is(.crm-mobile-order-intake-ux-preview, .crm-mobile-order-intake-ux-beta) .mobile-order-client-history__sheet header > div {
    min-width: 0;
    display: grid;
    gap: 3px;
  }

  html:is(.crm-mobile-order-intake-ux-preview, .crm-mobile-order-intake-ux-beta) .mobile-order-client-history__sheet h2 {
    margin: 0;
    color: #18293b;
    font-size: 20px;
  }

  html:is(.crm-mobile-order-intake-ux-preview, .crm-mobile-order-intake-ux-beta) .mobile-order-client-history__sheet header small,
  html:is(.crm-mobile-order-intake-ux-preview, .crm-mobile-order-intake-ux-beta) .mobile-order-client-history__sheet header span {
    color: #66788c;
    font-size: 12px;
  }

  html:is(.crm-mobile-order-intake-ux-preview, .crm-mobile-order-intake-ux-beta) .mobile-order-client-history__sheet header > button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #edf2f7;
    color: #34475b;
    font-size: 26px;
  }

  html:is(.crm-mobile-order-intake-ux-preview, .crm-mobile-order-intake-ux-beta) .mobile-order-client-history__list {
    display: grid;
    align-content: start;
    gap: 9px;
    overflow-y: auto;
    padding: 12px 12px calc(14px + env(safe-area-inset-bottom));
  }

  html:is(.crm-mobile-order-intake-ux-preview, .crm-mobile-order-intake-ux-beta) .mobile-order-client-history__order {
    border: 1px solid #d7e1eb;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
  }

  html:is(.crm-mobile-order-intake-ux-preview, .crm-mobile-order-intake-ux-beta) .mobile-order-client-history__order summary {
    position: relative;
    min-height: 96px;
    display: grid;
    gap: 5px;
    padding: 12px 44px 12px 12px;
    list-style: none;
  }

  html:is(.crm-mobile-order-intake-ux-preview, .crm-mobile-order-intake-ux-beta) .mobile-order-client-history__order summary::after {
    content: "⌄";
    position: absolute;
    top: 14px;
    right: 15px;
    color: #65788d;
    font-size: 20px;
  }

  html:is(.crm-mobile-order-intake-ux-preview, .crm-mobile-order-intake-ux-beta) .mobile-order-client-history__order summary > span {
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }

  html:is(.crm-mobile-order-intake-ux-preview, .crm-mobile-order-intake-ux-beta) .mobile-order-client-history__order summary :is(em, small, i) {
    color: #6d7e90;
    font-size: 12px;
    font-style: normal;
  }

  html:is(.crm-mobile-order-intake-ux-preview, .crm-mobile-order-intake-ux-beta) .mobile-order-client-history__order summary > i {
    color: #235f9e;
    font-weight: 800;
  }

  html:is(.crm-mobile-order-intake-ux-preview, .crm-mobile-order-intake-ux-beta) .mobile-order-client-history__order > div {
    display: grid;
    gap: 6px;
    padding: 11px 12px 13px;
    border-top: 1px solid #e4ebf2;
    color: #405367;
    font-size: 13px;
  }

  html:is(.crm-mobile-order-intake-ux-preview, .crm-mobile-order-intake-ux-beta) .mobile-order-client-history__order > div p {
    margin: 2px 0;
  }

  body.mobile-order-client-history-open {
    overflow: hidden;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) .drawer .action-menu__list {
    position: fixed;
    right: 10px;
    bottom: calc(66px + env(safe-area-inset-bottom));
    left: 10px;
    z-index: 95;
    max-height: 60dvh;
    overflow-y: auto;
    border-radius: 12px;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) #paymentDrawer.payment-drawer--center {
    inset: 0 !important;
    z-index: 110;
    width: 100% !important;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
    transform: translateY(18px) !important;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) #paymentDrawer.payment-drawer--center.open {
    transform: translateY(0) !important;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) #paymentDrawerBackdrop:not([hidden]) {
    z-index: 109;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) #paymentDrawer .contact-form {
    width: 100%;
    height: 100dvh;
    max-height: none;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) #paymentDrawer .contact-form__body {
    max-height: none;
    padding: 10px 10px 20px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) #paymentDrawer .payment-section {
    grid-template-columns: minmax(0, 1fr);
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) #paymentDrawer :is(input:not([type="checkbox"]), select, textarea) {
    min-height: 44px;
    font-size: 16px;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) #paymentDrawer .drawer__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px max(10px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    background: #fff;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) #paymentDrawer .drawer__actions .button {
    width: 100%;
    min-height: 46px;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) #drawer[data-mobile-issue-viewport],
  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) #paymentDrawer[data-mobile-issue-viewport] {
    top: var(--mobile-issue-top, 0px) !important;
    bottom: auto !important;
    height: var(--mobile-issue-height, 100dvh);
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) #drawer[data-mobile-issue-viewport] .order-form,
  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) #paymentDrawer[data-mobile-issue-viewport] .contact-form {
    height: 100%;
    min-height: 0;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) :is(#drawer, #paymentDrawer)[data-mobile-issue-viewport] :is(.drawer__body, .contact-form__body) {
    min-height: 0;
  }

  .mobile-issue-price-hint:not([hidden]) {
    display: grid;
    gap: 6px;
    color: #526579;
    font-size: 13px;
  }

  .mobile-issue-price-hint .button {
    min-height: 44px;
    white-space: normal;
  }

  html:is(.crm-mobile-orders-preview, .crm-mobile-orders-beta) body.mobile-order-editor-open .mobile-bottom-nav {
    display: none;
  }

  html:is(.crm-mobile-order-catalog-picker-preview, .crm-mobile-order-catalog-picker-beta) .order-catalog-editor {
    z-index: 170;
    place-items: stretch;
    padding: 0;
  }

  html:is(.crm-mobile-order-catalog-picker-preview, .crm-mobile-order-catalog-picker-beta) .order-catalog-editor__panel,
  html:is(.crm-mobile-order-catalog-picker-preview, .crm-mobile-order-catalog-picker-beta) #orderCatalogEditorContent {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  html:is(.crm-mobile-order-catalog-picker-preview, .crm-mobile-order-catalog-picker-beta) .order-catalog-editor__head {
    padding: calc(12px + env(safe-area-inset-top)) 12px 12px;
  }

  html:is(.crm-mobile-order-catalog-picker-preview, .crm-mobile-order-catalog-picker-beta) .order-catalog-editor__head strong {
    font-size: 21px;
  }

  html:is(.crm-mobile-order-catalog-picker-preview, .crm-mobile-order-catalog-picker-beta) .order-catalog-editor__body {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
  }

  html:is(.crm-mobile-order-catalog-picker-preview, .crm-mobile-order-catalog-picker-beta) .order-catalog-editor__brands,
  html:is(.crm-mobile-order-catalog-picker-preview, .crm-mobile-order-catalog-picker-beta) .order-catalog-editor__models {
    padding: 12px;
    overflow: visible;
  }

  html:is(.crm-mobile-order-catalog-picker-preview, .crm-mobile-order-catalog-picker-beta) .order-catalog-editor__brands {
    border-right: 0;
    border-bottom: 1px solid #dce5ee;
  }

  html:is(.crm-mobile-order-catalog-picker-preview, .crm-mobile-order-catalog-picker-beta) .order-catalog-editor__brand-tools,
  html:is(.crm-mobile-order-catalog-picker-preview, .crm-mobile-order-catalog-picker-beta) .order-catalog-editor__add--model,
  html:is(.crm-mobile-order-catalog-picker-preview, .crm-mobile-order-catalog-picker-beta) .order-catalog-editor__model-row {
    grid-template-columns: minmax(0, 1fr);
  }

  html:is(.crm-mobile-order-catalog-picker-preview, .crm-mobile-order-catalog-picker-beta) .order-catalog-editor :is(input, .button) {
    min-height: 44px;
    font-size: 16px;
  }

  html:is(.crm-mobile-order-catalog-picker-preview, .crm-mobile-order-catalog-picker-beta) .order-catalog-editor__model-row > span {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html:is(.crm-mobile-order-catalog-picker-preview, .crm-mobile-order-catalog-picker-beta) .order-catalog-editor__foot {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }

  /* MOBILE_ORDERS_CALL_TOUCH_LAYOUT_ROLLOUT: crm-mobile-orders-call-touch-layout-1 */
  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .orders-list__row:not(.orders-list__row--head) {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "number status"
      "client price"
      "device manager"
      "problem due";
    gap: 7px 10px;
    padding: 12px;
    border-radius: 14px;
  }

  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .orders-list__number {
    align-self: center;
  }

  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .orders-list__number strong {
    font-size: 16px;
  }

  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .orders-list__status {
    max-width: 142px;
    justify-self: end;
    align-items: flex-end !important;
    gap: 4px !important;
  }

  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .list-status-select {
    width: auto;
    min-width: 94px;
    max-width: 142px;
    height: 34px;
    padding-right: 30px !important;
    border-radius: 9px;
    font-size: 13px;
  }

  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .orders-list__urgent {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #fff0df;
    color: #a65300;
    font-size: var(--ui-text-2xs, 10px);
    font-weight: var(--ui-weight-heavy, 850);
    text-transform: uppercase;
  }

  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .orders-list__client {
    grid-area: client;
    min-width: 0;
    display: block !important;
  }

  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .orders-list__client-copy {
    min-width: 0;
    line-height: 1.25;
  }

  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .orders-list__phone-line {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    color: inherit;
    text-decoration: none;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(36, 116, 58, 0.14);
  }

  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .orders-list__client-copy strong,
  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .orders-list__phone-line em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .orders-list__client-copy strong {
    color: #225fae;
    font-size: 15px;
  }

  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .orders-list__phone-line em {
    flex: 0 0 auto;
    color: #69798a;
    font-size: 12px;
    font-style: normal;
    text-overflow: clip;
  }

  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .orders-list__call-label {
    position: relative;
    z-index: 3;
    min-height: 28px;
    margin: -5px -3px;
    padding: 5px 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #24743a;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .orders-list__phone-line:focus-visible {
    outline: 3px solid rgba(55, 135, 76, 0.22);
    outline-offset: 2px;
  }

  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .orders-list__call-label svg {
    width: 13px;
    height: 13px;
  }

  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .orders-list__price {
    grid-area: price;
    align-self: center;
    display: grid !important;
    gap: 1px;
    text-align: right;
  }

  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .orders-list__price small,
  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .orders-list__due small,
  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .orders-list__person > small {
    display: block;
    color: #8391a0;
    font-size: var(--ui-text-2xs, 10px);
    font-weight: 750;
  }

  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .orders-list__price strong {
    color: #26394d;
    font-size: 16px;
    white-space: nowrap;
  }

  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .orders-list__device {
    margin-top: 2px;
    overflow: hidden !important;
    font-size: 14px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .orders-list__problem {
    display: -webkit-box !important;
    overflow: hidden !important;
    color: #5e6e7e;
    line-height: 1.35 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .orders-list__person {
    grid-area: manager;
    min-width: 0;
    display: grid !important;
    gap: 1px !important;
    align-self: end;
    text-align: right !important;
  }

  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .orders-list__person > strong {
    overflow: hidden;
    color: #2b3948;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .orders-list__person.is-unassigned > strong {
    color: #a83b36;
  }

  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .orders-list__mobile-accepted {
    min-width: 0;
    display: flex;
    gap: 4px;
    overflow: hidden;
    color: #6d7c8c;
    font-size: 11px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
    justify-content: flex-end;
  }

  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .orders-list__mobile-accepted span {
    color: #8391a0;
  }

  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .orders-list__due {
    grid-area: due;
    align-self: end;
    display: grid !important;
    gap: 1px;
    text-align: right !important;
  }

  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .orders-list__due > strong {
    display: block;
    color: #52667b;
    font-size: 11px;
    white-space: nowrap;
  }

  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .orders-list__due.is-today > :is(small, strong) {
    color: #a45a00;
  }

  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .orders-list__due.is-overdue > :is(small, strong) {
    color: #b33b35;
  }

  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .orders-list__desktop-value {
    display: none;
  }

  html:is(.crm-mobile-orders-list-compact-preview, .crm-mobile-orders-list-compact-beta) .orders-list__row--status-issued {
    background: #fbfcfd;
  }

  /* MOBILE_ORDERS_ACCEPTED_PRIORITY_ROLLOUT: crm-mobile-orders-accepted-priority-1 */
  html:is(.crm-mobile-orders-accepted-priority-preview, .crm-mobile-orders-accepted-priority-beta) .orders-list__phone-line em {
    font-size: 14px;
  }

  html:is(.crm-mobile-orders-accepted-priority-preview, .crm-mobile-orders-accepted-priority-beta) .orders-list__mobile-accepted {
    color: #364b61;
    font-size: 13px;
    font-weight: 750;
  }

  html:is(.crm-mobile-orders-accepted-priority-preview, .crm-mobile-orders-accepted-priority-beta) .orders-list__mobile-accepted span {
    color: #64778b;
    font-weight: 700;
  }

  html:is(.crm-mobile-orders-accepted-priority-preview, .crm-mobile-orders-accepted-priority-beta) .orders-list__due > strong {
    color: #6d7c8c;
    font-size: 11px;
    font-weight: 600;
  }

  /* MOBILE_ORDERS_LARGE_SCREEN_TYPE_ROLLOUT: crm-mobile-orders-large-screen-type-1 */
  /* MOBILE_ORDERS_HEADING_BALANCE_ROLLOUT: crm-mobile-orders-heading-balance-1 */
  @media (min-width: 400px) {
    html:is(.crm-mobile-orders-large-screen-type-preview, .crm-mobile-orders-large-screen-type-beta) .orders-list__client-copy strong {
      font-size: 17px;
    }

    html:is(.crm-mobile-orders-large-screen-type-preview, .crm-mobile-orders-large-screen-type-beta) .orders-list__phone-line em {
      font-size: 16px;
    }

    html:is(.crm-mobile-orders-large-screen-type-preview, .crm-mobile-orders-large-screen-type-beta) .orders-list__price strong {
      font-size: 18px;
    }

    html:is(.crm-mobile-orders-large-screen-type-preview, .crm-mobile-orders-large-screen-type-beta) .orders-list__device {
      font-size: 16px !important;
    }

    html:is(.crm-mobile-orders-large-screen-type-preview, .crm-mobile-orders-large-screen-type-beta) .orders-list__problem {
      font-size: 15px !important;
    }

    html:is(.crm-mobile-orders-large-screen-type-preview, .crm-mobile-orders-large-screen-type-beta) .orders-list__person > strong {
      font-size: 14px;
    }

    html:is(.crm-mobile-orders-large-screen-type-preview, .crm-mobile-orders-large-screen-type-beta) .orders-list__mobile-accepted {
      font-size: 14px;
    }

    html:is(.crm-mobile-orders-large-screen-type-preview, .crm-mobile-orders-large-screen-type-beta) .orders-list__due > strong {
      font-size: 12px;
    }
  }

  /* MOBILE_ORDERS_IMG1089_RESTORE_ROLLOUT: crm-mobile-orders-img1089-restore-1 */
  /* Historical rules below remain inert because their rollout classes are no longer enabled. */
  html:is(.crm-mobile-orders-service-compact-preview, .crm-mobile-orders-service-compact-beta) .list-status-select--issued {
    width: 86px;
    min-width: 86px;
    max-width: 86px;
    height: 30px;
    padding-right: 27px !important;
    font-size: 12px;
  }

  html:is(.crm-mobile-orders-service-compact-preview, .crm-mobile-orders-service-compact-beta) .order-payroll-pending-badge {
    min-height: 18px;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: var(--ui-text-3xs, 9px);
  }

  html:is(.crm-mobile-orders-service-compact-preview, .crm-mobile-orders-service-compact-beta) .orders-list__device.is-placeholder {
    color: #6d7c8c !important;
    font-size: 13px !important;
    font-weight: 600 !important;
  }

  html:is(.crm-mobile-orders-service-compact-preview, .crm-mobile-orders-service-compact-beta) .orders-list__problem.is-empty {
    display: none !important;
  }
}

html:is(.crm-mobile-order-create-polish-preview, .crm-mobile-order-create-polish-beta) .drawer.drawer--order-create [data-order-intake-field="source"].ro-row--required > [data-order-source-label]::after {
  content: "";
}

/* MOBILE_ORDERS_TOOLBAR_ROLLOUT: crm-mobile-orders-toolbar-scan-1 */
@media (max-width: 760px) {
  html.crm-mobile-orders-toolbar-beta body:not(.auth-locked):not(.subscription-locked):not(.ns-warehouse-workspace) .shell:has(.app-orders-toolbar.active) {
    grid-template-rows: calc(58px + env(safe-area-inset-top)) 56px auto minmax(0, 1fr);
  }
  html.crm-mobile-orders-toolbar-beta .app-topbar { align-items: center; }
  html.crm-mobile-orders-toolbar-beta .app-topbar__location {
    flex: 0 1 auto;
    min-width: 0;
  }
  html.crm-mobile-orders-toolbar-beta .app-topbar__location strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  html.crm-mobile-orders-toolbar-beta .app-topbar__tenant {
    flex: 1 1 180px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    align-self: center;
    max-width: 240px;
    min-width: 0;
    margin-left: auto;
  }
  html.crm-mobile-orders-toolbar-beta .app-topbar__tenant #tenantSwitcher {
    min-width: 0;
    width: 100%;
    max-width: none;
    height: 44px;
    padding: 0 28px 0 8px;
    font-size: 16px;
    text-overflow: ellipsis;
  }
  html.crm-mobile-orders-toolbar-beta .app-orders-toolbar {
    height: 56px;
    min-height: 56px;
    padding-top: 6px;
    padding-bottom: 6px;
    overflow: visible;
  }
  html.crm-mobile-orders-toolbar-beta .app-orders-toolbar__left {
    display: flex !important;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  html.crm-mobile-orders-toolbar-beta .app-orders-toolbar__left > :is(#newOrderButton, #filterToggleButton, #myRepairCounter) {
    width: auto;
    flex: 0 0 auto;
    height: 44px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 7px;
    font-size: 13px;
    line-height: 18px;
  }
  html.crm-mobile-orders-toolbar-beta .app-orders-toolbar__left > #myRepairCounter {
    margin-left: auto;
    min-width: 52px;
    position: relative;
    gap: 4px;
    padding: 0 8px;
  }
  html.crm-mobile-orders-toolbar-beta #myRepairCounter strong {
    position: static;
    margin: 0;
    font-size: 11px;
  }
  html.crm-mobile-orders-toolbar-beta #myRepairCounter span { display: none; }
  html.crm-mobile-orders-toolbar-beta #filterToggleButton { margin-left: auto; gap: 5px; }
  html.crm-mobile-orders-toolbar-beta #myRepairCounter + #filterToggleButton { margin-left: 0; }
  html.crm-mobile-orders-toolbar-beta #mobileOrdersFilterCount:not([hidden]) {
    min-width: 18px;
    border-radius: 4px;
    background: #e4efff;
    color: #235ba6;
    font-size: 12px;
  }
  html.crm-mobile-orders-toolbar-beta .orders-status-tabs__tools { grid-template-columns: minmax(0, 1fr) 44px; }
  html.crm-mobile-orders-toolbar-beta .orders-status-search { height: 44px; }
  html.crm-mobile-orders-toolbar-beta .orders-status-search input { width: 100%; min-width: 0; }
  html.crm-mobile-orders-toolbar-beta .mobile-orders-search-scan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 7px;
    color: #235ba6;
  }
  html.crm-mobile-orders-toolbar-beta .mobile-orders-search-scan svg { width: 23px; height: 23px; }
  html.crm-mobile-orders-toolbar-beta .orders-status-tabs__filters {
    scroll-padding-inline: 2px;
    padding-right: 12px;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 10px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 10px), transparent);
  }
}


/* MOBILE_ORDERS_SALE_ROLLOUT: crm-mobile-orders-sale-button-1 */
#mobileOrdersNewSale[hidden] { display: none !important; }
@media (max-width: 760px) {
  html.crm-mobile-orders-sale-beta .app-orders-toolbar__left { gap: 6px; }
  html.crm-mobile-orders-sale-beta .app-orders-toolbar__left > :is(#newOrderButton, #mobileOrdersNewSale, #filterToggleButton, #myRepairCounter) {
    flex: 0 0 auto;
    width: auto;
    height: 44px;
    min-height: 44px;
    padding: 0 8px;
    border-radius: 7px;
    font-size: 12px;
  }
  html.crm-mobile-orders-sale-beta .app-orders-toolbar__left > #myRepairCounter { min-width: 44px; padding: 0 5px; }
  @media (max-width: 350px) {
    html.crm-mobile-orders-sale-beta .app-orders-toolbar__left { gap: 4px; --ui-button-padding: 0 5px; }
    html.crm-mobile-orders-sale-beta #myRepairCounter strong { max-width: 28px; overflow: hidden; text-overflow: ellipsis; }
    html.crm-mobile-orders-sale-beta #filterToggleButton .filter-toggle__icon { display: none; }
  }
}

/* MOBILE_SALES_HISTORY_ROLLOUT: crm-mobile-sales-history-1 */
#mobileSalesHistory[hidden] { display: none !important; }
@media (max-width: 760px) {
  html.crm-mobile-sales-history-beta .app-orders-toolbar__left { --ui-button-height: 36px; --ui-button-touch-height: 36px; }
  html.crm-mobile-sales-history-beta .app-orders-toolbar__left > :is(#newOrderButton, #mobileOrdersNewSale, #filterToggleButton, #myRepairCounter) { height: 36px; min-height: 36px; }
  html.crm-mobile-sales-history-beta .app-orders-toolbar { height: 48px; min-height: 48px; }
  html.crm-mobile-sales-history-beta body:not(.auth-locked):not(.subscription-locked):not(.ns-warehouse-workspace) .shell:has(.app-orders-toolbar.active) {
    grid-template-rows: calc(58px + env(safe-area-inset-top)) 48px auto minmax(0, 1fr);
  }
  html.crm-mobile-sales-history-beta .mobile-bottom-nav { gap: 0; }
  html.crm-mobile-sales-history-beta .mobile-bottom-nav button span { font-size: 10px; white-space: nowrap; }
}

/* ORDER_CLIENT_NAME_CHOICE_ROLLOUT: crm-order-client-name-choice-1 */
@media (max-width: 760px) {
  html.crm-order-client-name-choice-beta .drawer.drawer--order-create .mobile-order-client-lookup {
    align-items: center;
    flex: 0 1 auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 6px;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #536474;
    font-size: 11px;
    line-height: 1.2;
  }
  html.crm-order-client-name-choice-beta .drawer.drawer--order-create .mobile-order-client-lookup__actions {
    width: auto;
    flex: 0 1 auto;
    flex-wrap: wrap;
    gap: 4px;
  }
  html.crm-order-client-name-choice-beta .drawer.drawer--order-create .mobile-order-client-lookup button {
    min-height: 22px;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 11px;
  }
}
