/* Desktop admin chrome. Mobile, tablet, public/customer pages and home keep their design. */
@media screen and (min-width: 981px) {
  .admin-workspace-tooltip { display: none; }
  body.trsa-admin-workspace .admin-workspace-tooltip:not([hidden]) {
    display: block;
    position: fixed;
    z-index: 10020;
    box-sizing: border-box;
    width: max-content;
    max-width: min(280px, calc(100vw - 24px));
    padding: 9px 13px;
    border: 1px solid #000;
    border-radius: 11px;
    background: #000;
    color: #fff;
    box-shadow: 0 6px 22px rgba(15, 23, 42, .1), 0 1px 3px rgba(15, 23, 42, .04);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    font: 500 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: .01em;
    overflow-wrap: anywhere;
    pointer-events: none;
  }
  body.trsa-admin-workspace.has-admin-workspace-tooltips .baza-compact-tooltip { display: none; }
  body.trsa-admin-workspace.has-admin-workspace-tooltips :is(#bazaSidebar, #prodAdminSidebar).is-compact :is(.baza-side-item, .baza-side-group-title)::after { content: none !important; }
  body.trsa-admin-workspace {
    --admin-ink: #111827;
    --admin-muted: #626b80;
    --admin-line: #e9ecf2;
    --admin-blue: #164bff;
    --admin-rail-bg: #f8f9fc;
    --admin-sidebar-width: 0px;
    --admin-drawer-motion: 220ms cubic-bezier(.22, 1, .36, 1);
    --baza-filters-h: 0px;
    background: #fff;
    color: var(--admin-ink);
    transition: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }
  body.trsa-admin-workspace #site-header-root .site-header {
    display: block !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    background: #fff;
    border: 0;
    box-shadow: none;
    transform: none;
  }
  body.trsa-admin-workspace #site-header-root .site-header-inner {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap !important;
    gap: 18px;
    width: 100% !important;
    max-width: none !important;
    min-height: 68px;
    box-sizing: border-box;
    margin: 0 !important;
    /* Center the 46px account control in the 52px edge slot when no right rail exists. */
    padding: 10px 3px 10px calc(var(--admin-sidebar-width) + 20px) !important;
    border-bottom: 1px solid var(--admin-line);
    box-shadow: none;
  }
  body.trsa-admin-workspace #site-header-root .site-header :is(.site-header-benefits, .site-header-utility, .site-header-subnav, .cart-button, .site-header-cart-back, .site-header-cart-title, .site-header-more-toggle, .site-header-search-collapse),
  body.trsa-admin-workspace #site-header-root .site-header-mobile-tabs,
  body.trsa-admin-workspace #site-header-root .site-header-nav-link:not(.admin-account-trigger) { display: none !important; }
  body.trsa-admin-workspace #site-header-root .site-header .site-header-search {
    display: block !important;
    flex: 0 1 600px !important;
    width: min(600px, 100%) !important;
    max-width: 600px !important;
    min-width: 0 !important;
    margin: 0 !important;
    order: 1 !important;
    transform: none;
    opacity: 1;
    visibility: visible;
    overflow: visible !important;
  }
  body.trsa-admin-workspace #site-header-root .site-header #search-bar {
    display: block !important;
    height: 44px !important;
    border: 1px solid #e3e7f0 !important;
    border-radius: 11px;
    background-color: #f8f9fc;
    font-size: 16px;
    color: var(--admin-ink);
    box-shadow: none;
  }
  body.trsa-admin-workspace #site-header-root .site-header #search-bar:focus { border-color: #6c8aff !important; box-shadow: 0 0 0 3px #164bff12; background-color: #fff; }
  body.trsa-admin-workspace #site-header-root .site-header .site-header-nav { display: flex !important; flex: 0 0 auto !important; width: auto !important; min-width: 46px !important; overflow: visible !important; order: 2 !important; margin: 0 0 0 auto !important; gap: 0; }
  body.trsa-admin-workspace #site-header-root .site-header .admin-account-trigger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    max-height: 46px;
    box-sizing: border-box;
    padding: 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #111827;
    box-shadow: none;
  }
  body.trsa-admin-workspace .admin-account-trigger :is(.label, .icon) { display: none !important; }
  body.trsa-admin-workspace #site-header-root .site-header .admin-account-trigger::before,
  body.trsa-admin-workspace #site-header-root .site-header .admin-account-trigger::after { content: none !important; }
  body.trsa-admin-workspace .admin-account-glyph { display: flex; width: 24px; height: 24px; color: #111827; }
  body.trsa-admin-workspace .admin-account-glyph svg { width: 24px; height: 24px; fill: none; stroke: currentColor; }
  body.trsa-admin-workspace #site-header-root .site-header .admin-account-trigger:hover,
  body.trsa-admin-workspace #site-header-root .site-header .admin-account-trigger[aria-expanded='true'] { background: #edf1f8; }
  body.trsa-admin-workspace #site-header-root .site-header-logo { flex: 0 0 auto; order: 0; }
  body.trsa-admin-workspace #site-header-root .site-header-logo img { max-width: 140px; max-height: 48px; }
  body.trsa-admin-workspace .admin-sidebar-brand { display: flex; align-items: center; min-width: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--admin-ink); text-decoration: none; font: inherit; font-size: 24px; font-weight: 700; cursor: pointer; }
  body.trsa-admin-workspace .admin-sidebar-brand img { width: 142px; max-width: 100%; height: 44px; object-fit: contain; }
  body.trsa-admin-workspace .admin-sidebar-brand:focus-visible { outline: 2px solid var(--admin-blue); outline-offset: 4px; }
  body.trsa-admin-workspace .admin-sidebar-brand-menu:not([hidden]) { position: fixed; z-index: 10010; display: grid; gap: 2px; width: 240px; max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); overflow: auto; box-sizing: border-box; padding: 6px; border: 1px solid #e5e5ea; border-radius: 14px; background: rgba(255, 255, 255, .98); box-shadow: 0 12px 36px #1d1d1f1a, 0 2px 8px #1d1d1f0a; }
  body.trsa-admin-workspace .admin-sidebar-brand-menu [role="menuitem"] { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: #1d1d1f; font: 500 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-align: left; text-decoration: none; cursor: pointer; }
  body.trsa-admin-workspace .admin-sidebar-brand-menu [role="menuitem"]:is(:hover, :focus-visible) { background: #f0f3f9; outline: none; color: #164bff; }
  body.trsa-admin-workspace .admin-sidebar-brand-menu [role="menuitem"]:disabled { opacity: .4; cursor: default; }
  body.trsa-admin-workspace .admin-sidebar-brand-menu svg { flex: 0 0 18px; width: 18px; height: 18px; }
  body.trsa-admin-workspace .baza-sidebar-head:has(.admin-sidebar-brand) .baza-sidebar-title { display: none !important; }
  body.trsa-admin-workspace :is(#bazaSidebar, #prodAdminSidebar) {
    background: var(--admin-rail-bg);
    box-shadow: none;
    border: 0;
    border-right: 1px solid var(--admin-line);
    border-radius: 0;
  }
  body.trsa-admin-workspace :is(#bazaSidebar, #prodAdminSidebar) .baza-sidebar-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 40px;
    align-items: center;
    gap: 4px;
    height: 68px;
    min-height: 68px;
    padding: 12px 12px 12px 20px;
    background: transparent;
    border: 0;
    border-radius: 0;
  }
  body.trsa-admin-workspace :is(#bazaSidebar, #prodAdminSidebar) .baza-sidebar-head .actions { display: contents; }
  body.trsa-admin-workspace :is(#bazaSidebar, #prodAdminSidebar) .baza-sidebar-nav { padding: 6px 16px 24px; }
  body.trsa-admin-workspace :is(#bazaSidebar, #prodAdminSidebar) .baza-side-group { margin: 0 0 22px; }
  body.trsa-admin-workspace :is(#bazaSidebar, #prodAdminSidebar) .baza-side-group-title {
    padding: 10px 12px 8px;
    font-size: 14px;
    font-weight: 500;
    color: #5c6477;
    opacity: 1;
    text-transform: none;
    letter-spacing: 0;
  }
  body.trsa-admin-workspace :is(#bazaSidebar, #prodAdminSidebar):not(.is-compact) .baza-side-group-title .icon { display: none; }
  body.trsa-admin-workspace :is(#bazaSidebar, #prodAdminSidebar) .baza-side-item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 46px;
    margin: 2px 0;
    padding: 10px 12px;
    gap: 14px;
    border-radius: 9px;
    color: var(--admin-ink);
    font-size: 16px;
    font-weight: 400;
    transform: none;
  }
  body.trsa-admin-workspace :is(#bazaSidebar, #prodAdminSidebar) .baza-side-item .label { font-size: 16px; font-weight: 400; }
  body.trsa-admin-workspace :is(#bazaSidebar, #prodAdminSidebar) .baza-side-item .icon { width: 24px; height: 24px; color: inherit; }
  body.trsa-admin-workspace :is(#bazaSidebar, #prodAdminSidebar) .baza-side-item .icon svg { display: block; width: 24px; height: 24px; }
  body.trsa-admin-workspace :is(#bazaSidebar, #prodAdminSidebar) .baza-side-item:hover { background: #edf0f7; transform: none; }
  body.trsa-admin-workspace :is(#bazaSidebar, #prodAdminSidebar) .baza-side-item.is-active { background: #e8edff; color: var(--admin-blue); }
  body.trsa-admin-workspace :is(#bazaSidebar, #prodAdminSidebar) .baza-sidebar-head .rn-menu-toggle { background: transparent; border: 0; border-radius: 8px; width: 30px; height: 30px; padding: 5px; color: #475066; }
  body.trsa-admin-workspace :is(button, a, summary):focus-visible { outline: 2px solid #315dff; outline-offset: 2px; }

  body.trsa-admin-workspace .baza-main > .topbar { padding: 0 0 12px; background: #fff; backdrop-filter: none; }
  body.trsa-admin-workspace .baza-main > .topbar .badge { font-size: 30px; font-weight: 650; letter-spacing: -.8px; }
  body.trsa-admin-workspace .baza-main > .topbar :is(.baza-back-btn, .rn-menu-toggle) { border: 0; border-radius: 8px; background: transparent; box-shadow: none; color: #626b80; }

  /* One heading row for all existing database and order filters. */
  body.trsa-admin-workspace tr[data-admin-merged] { display: none !important; }
  body.trsa-admin-workspace .admin-column-controls { display: flex; align-items: center; gap: 2px; min-width: 0; }
  body.trsa-admin-workspace :is(.baza-filter-preview, #view-order-history .oh-filter-preview)[data-column-label] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 8px;
    justify-content: start;
    align-items: center;
    gap: 4px 8px;
    width: 100%;
    min-width: 0;
    cursor: pointer;
    max-width: 100%;
    min-height: 28px;
    margin: 0;
    padding: 4px 6px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #515b72;
    box-shadow: none;
    text-align: left;
    font: 500 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow: visible;
    white-space: nowrap;
  }
  body.trsa-admin-workspace :is(.baza-filter-preview, #view-order-history .oh-filter-preview)[data-column-label]::after { content: none; }
  body.trsa-admin-workspace .admin-column-label { overflow: hidden; text-overflow: ellipsis; }
  body.trsa-admin-workspace .admin-column-chevron { width: 6px; height: 6px; border: solid #8993a8; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
  body.trsa-admin-workspace [data-column-label]:is(.is-active, .is-sorted, [aria-expanded='true']) { color: var(--admin-blue) !important; }
  body.trsa-admin-workspace [data-column-label]:is(.is-active, .is-sorted, [aria-expanded='true']) .admin-column-chevron { border-color: var(--admin-blue); border-width: 0 2px 2px 0; }
  body.trsa-admin-workspace .admin-column-summary {
    grid-column: 1 / -1; justify-self: start; display: grid;
    grid-template-columns: 12px minmax(0, 1fr); align-items: center; gap: 4px;
    box-sizing: border-box; width: fit-content; min-width: 0; max-width: min(180px, 100%);
    padding: 2px 7px; border-radius: 6px; background: #173e9a; color: #f5f8ff;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 12px; font-weight: 500; line-height: 1.4;
  }
  body.trsa-admin-workspace .admin-column-summary > svg { display: block; width: 12px; height: 12px; }
  body.trsa-admin-workspace .admin-column-summary-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  body.trsa-admin-workspace .admin-column-sort-options { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--admin-line); }
  body.trsa-admin-workspace .admin-column-sort-options > span { margin-right: auto; font-size: 12px; color: var(--admin-muted); }
  body.trsa-admin-workspace .admin-column-sort-options > button { padding: 7px 10px; border: 0; border-radius: 6px; background: #f3f5fa; color: var(--admin-ink); font: 500 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; cursor: pointer; }
  body.trsa-admin-workspace .admin-column-sort-options > button:hover,
  body.trsa-admin-workspace .admin-column-sort-options > button[aria-pressed='true'] { color: var(--admin-blue); background: #e3eaff; }
  body.trsa-admin-workspace .table-wrap thead th,
  body.trsa-admin-workspace #view-order-history .order-history-table thead th { background: #f6f7fb; color: #515b72; font-size: 14px; font-weight: 500; padding: 4px 6px; border-bottom: 0; vertical-align: top; }
  body.trsa-admin-workspace .table-wrap { border-color: var(--admin-line); border-radius: 12px; box-shadow: none; }
  body.trsa-admin-workspace :is(.baza-filter-popover, .order-history-filter-popover) { border: 1px solid #e4e8f0; border-radius: 14px; box-shadow: 0 12px 40px #1c29461a; }
  body.trsa-admin-workspace :is(.baza-filter-popover, .order-history-filter-popover) :is(.head, .footer, .oh-actions) { border-color: #eceef4; }

  /* Database filters use the order popup's compact fields, rounded choices and
     clear secondary/primary actions, with the desktop workspace's lighter type. */
  body.trsa-admin-workspace .baza-filter-popover { width: min(420px, calc(100vw - 18px)); padding: 16px; color: var(--admin-ink); font-family: inherit; }
  body.trsa-admin-workspace .baza-filter-popover .head { align-items: flex-start; gap: 12px; margin-bottom: 14px; }
  body.trsa-admin-workspace .baza-filter-popover .title { font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--admin-ink); }
  body.trsa-admin-workspace .baza-filter-popover .sub { color: var(--admin-muted); line-height: 1.4; margin-top: 3px; }
  body.trsa-admin-workspace .baza-filter-popover .close { flex: 0 0 30px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--admin-muted); box-shadow: none; }
  body.trsa-admin-workspace .baza-filter-popover .close:hover { background: #edf1f8; color: var(--admin-ink); }
  body.trsa-admin-workspace .baza-filter-popover .body { display: grid; gap: 12px; padding-right: 2px; }
  body.trsa-admin-workspace .baza-filter-popover .field { min-width: 0; gap: 6px; margin-bottom: 0; }
  body.trsa-admin-workspace .baza-filter-popover .field label { font-size: 12px; font-weight: 500; color: #515b72; }
  body.trsa-admin-workspace .baza-filter-popover .row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.trsa-admin-workspace .baza-filter-popover :is(.input, .workshop-worker-filter-search) { display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 40px; padding: 10px; border: 1px solid #dfe4ed; border-radius: 10px; background: #fff; color: var(--admin-ink); font: 400 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; box-shadow: none; }
  body.trsa-admin-workspace .baza-filter-popover :is(.input, .workshop-worker-filter-search)::placeholder { color: #8a92a3; }
  body.trsa-admin-workspace .baza-filter-popover :is(.input, .workshop-worker-filter-search):focus { outline: none; border-color: #6c8aff; box-shadow: 0 0 0 3px #164bff12; }
  body.trsa-admin-workspace .baza-filter-popover .pills { gap: 8px; margin-top: 0; }
  body.trsa-admin-workspace .baza-filter-popover :is(.pill, button.lead-pill) { padding: 7px 11px; border-radius: 999px; font-size: 12px; font-weight: 500; box-shadow: none; }
  body.trsa-admin-workspace .baza-filter-popover .pill { border: 1px solid #e1e6ef; background: #fff; color: var(--admin-ink); }
  body.trsa-admin-workspace .baza-filter-popover :is(.pill, button.lead-pill):hover { border-color: #becbfa; box-shadow: none; }
  body.trsa-admin-workspace .baza-filter-popover :is(.pill, button.lead-pill).is-selected { background: #eef2ff; border-color: #b9c9ff; color: var(--admin-blue); box-shadow: none; }
  body.trsa-admin-workspace .baza-filter-popover .checkbox-actions { gap: 6px; margin-top: 0; }
  body.trsa-admin-workspace .baza-filter-popover .checkbox-actions .pill { padding: 5px 9px; border: 0; background: #f3f5fa; font-size: 12px; }
  body.trsa-admin-workspace .baza-filter-popover .checkboxes { gap: 4px; margin-top: 0; }
  body.trsa-admin-workspace .baza-filter-popover label.cb-item { min-height: 38px; gap: 10px; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; background: #f8f9fc; box-shadow: none; }
  body.trsa-admin-workspace .baza-filter-popover label.cb-item:hover { background: #f0f3fa; box-shadow: none; }
  body.trsa-admin-workspace .baza-filter-popover label.cb-item:has(input:checked) { border-color: #dbe4ff; background: #eef2ff; }
  body.trsa-admin-workspace .baza-filter-popover .cb-label { font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--admin-ink); }
  body.trsa-admin-workspace .baza-filter-popover label.cb-item input[type='checkbox'] { appearance: none; display: inline-grid; place-content: center; flex: 0 0 18px; width: 18px; height: 18px; margin: 0; border: 1px solid #aeb9ca; border-radius: 6px; background: #fff; cursor: pointer; }
  body.trsa-admin-workspace .baza-filter-popover label.cb-item input[type='checkbox']:checked { background: var(--admin-blue); border-color: var(--admin-blue); }
  body.trsa-admin-workspace .baza-filter-popover label.cb-item input[type='checkbox']:checked::after { content: ''; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
  body.trsa-admin-workspace .baza-filter-popover label.cb-item input[type='checkbox']:focus-visible { outline: 2px solid #315dff; outline-offset: 2px; }
  body.trsa-admin-workspace .baza-filter-popover :is(.workshop-filter-option, .workshop-worker-option) { border-color: #e1e6ef; border-radius: 10px; box-shadow: none; font-weight: 500; }
  body.trsa-admin-workspace .baza-filter-popover :is(.workshop-filter-option, .workshop-worker-option).is-selected { border-color: #b9c9ff; background: #eef2ff; color: var(--admin-blue); box-shadow: none; }
  body.trsa-admin-workspace .baza-filter-popover .workshop-filter-option-title { font-weight: 500; }
  body.trsa-admin-workspace .baza-filter-popover .admin-column-sort-options { margin: 0 0 12px; padding: 0 0 12px; }
  body.trsa-admin-workspace .baza-filter-popover .footer { align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--admin-line); }
  body.trsa-admin-workspace .baza-filter-popover .footer .filter-btn { min-height: 38px; padding: 9px 14px; border: 0; border-radius: 10px; font: 500 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; box-shadow: none; transform: none; }
  body.trsa-admin-workspace .baza-filter-popover .footer .filter-btn-secondary { background: #f3f5fa; color: #515b72; }
  body.trsa-admin-workspace .baza-filter-popover .footer .filter-btn-secondary:hover { background: #e9edf5; color: var(--admin-ink); }
  body.trsa-admin-workspace .baza-filter-popover .footer .filter-btn-primary { margin-left: auto; background: var(--admin-blue); color: #fff; }
  body.trsa-admin-workspace .baza-filter-popover .footer .filter-btn-primary:hover { background: #123bd0; }

  body.trsa-admin-workspace #view-order-history .order-history-card { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
  body.trsa-admin-workspace #view-order-history .order-history-table-wrap { border: 1px solid var(--admin-line); border-radius: 12px; }
  body.trsa-admin-workspace #view-order-history .order-history-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0 12px; }
  body.trsa-admin-workspace #view-order-history .order-history-header .cart-heading { margin: 0; text-align: left; font-size: 30px; font-weight: 650; letter-spacing: -.8px; }
  body.trsa-admin-workspace #view-order-history .order-history-actions { margin-left: auto; }
  body.trsa-admin-workspace #view-order-history #order-history-new { background: #eef2ff; color: #164bff; border: 0; border-radius: 8px; box-shadow: none; min-height: 38px; padding: 8px 14px; font: 500 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; gap: 8px; transform: none; }
  body.trsa-admin-workspace #view-order-history #order-history-new:hover { background: #dfe7ff; color: #123bd0; box-shadow: none; transform: none; }
  body.trsa-admin-workspace #view-order-history .order-history-header .cart-heading { display: flex; align-items: center; gap: 12px; }
  body.trsa-admin-workspace #view-order-history .order-history-load-indicator { position: static; transform: none; margin: 0; }
  body.trsa-admin-workspace #view-order-history #order-history-bulk-toggle { border: 0; border-radius: 8px; width: 38px; height: 38px; background: transparent; color: #626b80; box-shadow: none; }
  body.trsa-admin-workspace #view-order-history #order-history-bulk-toggle:hover { background: #edf1f8; color: #111827; }
  body.trsa-admin-workspace :is(.baza-filter-preview, #view-order-history .oh-filter-preview)[data-column-label]:is(:hover, :focus-visible, [aria-expanded='true']) { background: #dfe7ff; color: #164bff; }
  body.trsa-admin-workspace [data-column-label]:hover .admin-column-chevron { border-color: #164bff; }
  body.trsa-admin-workspace :is(.baza-main, #view-rn, #view-order-history) .rn-menu-toggle { border: 0; box-shadow: none; }
}
@media screen and (min-width: 981px) {
  body.trsa-admin-workspace.has-prod-admin-sidebar { --admin-sidebar-width: var(--prod-admin-sidebar-w, 290px); }
  body.trsa-admin-workspace:has(.baza-shell:not(.no-sidebar)) { --admin-sidebar-width: 290px; }
  body.trsa-admin-workspace:has(.baza-shell:not(.no-sidebar) #bazaSidebar.is-compact) { --admin-sidebar-width: 52px; }
  body.trsa-admin-workspace:is(.has-prod-admin-sidebar, :has(.baza-shell:not(.no-sidebar))) .site-header-logo { display: none !important; }
  body.trsa-admin-workspace :is(#bazaSidebar, #prodAdminSidebar).baza-sidebar { position: fixed; left: 0; top: 0; width: var(--admin-sidebar-width); min-width: var(--admin-sidebar-width); max-width: var(--admin-sidebar-width); height: 100dvh; max-height: 100dvh; z-index: 510; }
  body.trsa-admin-workspace.baza-preboot #bazaSidebar[data-admin-sidebar-preview] #bazaSidebarNav { visibility: visible; }
  body.trsa-admin-workspace .baza-shell:not(.no-sidebar) { padding-left: calc(var(--admin-sidebar-width) + 20px); gap: 0; }
  body.trsa-admin-workspace.page-baza > .page { padding-top: 12px; padding-right: 20px; }
  /* Embedded apps fill the area directly below the header and beside the rail. */
  body.trsa-admin-workspace.page-baza.baza-mode-iframe > .page { padding: 0; }
  body.trsa-admin-workspace.baza-mode-iframe .baza-shell:not(.no-sidebar) { padding-left: var(--admin-sidebar-width); gap: 0; }
  body.trsa-admin-workspace.baza-mode-iframe :is(.baza-main, .baza-iframe-pane, .baza-iframe) { margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }

  body.trsa-admin-workspace :is(#bazaSidebar, #prodAdminSidebar).is-compact .baza-sidebar-head { grid-template-columns: 40px; padding: 12px 0; justify-content: center; }
  body.trsa-admin-workspace :is(#bazaSidebar, #prodAdminSidebar).is-compact .admin-sidebar-brand { display: none; }
  body.trsa-admin-workspace :is(#bazaSidebar, #prodAdminSidebar).is-compact .baza-sidebar-nav { padding: 6px 0 24px; }
  body.trsa-admin-workspace :is(#bazaSidebar, #prodAdminSidebar).is-compact .baza-side-item { width: 40px; min-height: 40px; margin: 3px auto; padding: 8px; }
  body.trsa-admin-workspace :is(#bazaSidebar, #prodAdminSidebar).is-compact .baza-side-group { margin-bottom: 10px; }
  body.trsa-admin-workspace :is(#bazaSidebar, #prodAdminSidebar).is-compact .baza-side-group-title { padding: 8px 0; }
  body.trsa-admin-workspace #view-order-history .order-history-back-btn { display: none; }
  body.trsa-admin-workspace #view-order-history .page-inner { padding-top: 8px; padding-right: 20px; }
  body.trsa-admin-workspace #view-order-history .order-history-table { font-size: 14px; min-width: 1140px; }
  body.trsa-admin-workspace #view-order-history .order-history-table td { padding: 10px 10px; border-color: #eff1f6; }
  body.trsa-admin-workspace #view-order-history th.order-history-col-date { width: 130px; }
  body.trsa-admin-workspace #view-order-history th.order-history-col-creator { width: 172px; }
  body.trsa-admin-workspace #view-order-history .order-history-thumbs { flex-wrap: wrap; }
  body.trsa-admin-workspace #view-order-history .order-history-thumb { width: 34px; height: 34px; flex-basis: 34px; }
  body.trsa-admin-workspace #view-order-history .oh-name-line .order-history-buyer-text { font-weight: 600; }
  /* Keep the buyer actions inside their cell when either rail narrows the table. */
  body.trsa-admin-workspace #view-order-history :is(.order-history-buyer, .order-history-buyer-main, .oh-buyer-hover-tools) { min-width: 0; max-width: 100%; }
  body.trsa-admin-workspace #view-order-history .order-history-buyer-main { flex: 1 1 0; }
  body.trsa-admin-workspace #view-order-history .oh-buyer-hover-tools .oh-inline-contacts { display: flex; width: 100%; min-width: 0; flex-wrap: wrap; gap: 2px 8px; }
  body.trsa-admin-workspace #view-order-history .oh-buyer-hover-tools .order-history-phone-actions { display: contents; }
  body.trsa-admin-workspace #view-order-history .oh-buyer-hover-tools .oh-inline-contacts button { max-width: 100%; white-space: normal; text-align: left; overflow-wrap: anywhere; }
  body.trsa-admin-workspace #view-order-history .oh-buyer-hover-tools :is(.oh-contact-label, [data-oh-orders-label]) { min-width: 0; }
  body.trsa-admin-workspace #view-order-history .oh-address-actions { flex-wrap: wrap; min-width: 0; max-width: 100%; }

  /* Fill the actual scrollport, including when either sidebar changes its width.
     Keep a readable minimum on narrow layouts; the auto-sized buyer column
     absorbs spare space so the total ends at the table's right edge. */
  body.trsa-admin-workspace:not(.rn-review-active) #view-order-history .order-history-table-wrap { max-width: 100%; min-width: 0; overflow-x: auto; }
  body.trsa-admin-workspace:not(.rn-review-active) #view-order-history .order-history-table { width: 100%; min-width: 1340px; }
  body.trsa-admin-workspace:not(.rn-review-active) #view-order-history .order-history-table td { padding: 10px 7px; }
  body.trsa-admin-workspace:not(.rn-review-active) #view-order-history .order-history-table thead th { padding: 4px 1px; }
  body.trsa-admin-workspace:not(.rn-review-active) #view-order-history .order-history-table .order-history-col-actions { width: 34px; padding-left: 2px; padding-right: 2px; }
  body.trsa-admin-workspace:not(.rn-review-active) #view-order-history th.order-history-col-date { width: 110px; }
  body.trsa-admin-workspace:not(.rn-review-active) #view-order-history th.order-history-col-status { width: 104px; }
  body.trsa-admin-workspace:not(.rn-review-active) #view-order-history th.order-history-col-creator { width: 144px; }
  body.trsa-admin-workspace:not(.rn-review-active) #view-order-history .oh-filter-preview[data-column-label] { display: inline-grid; width: max-content; grid-template-columns: minmax(0, max-content) 8px; gap: 4px 9px; padding: 4px 6px; font-size: 13px; }
  body.trsa-admin-workspace #view-order-history th:is(.order-history-col-content, .order-history-col-total) { text-align: right; }
  body.trsa-admin-workspace #view-order-history th:is(.order-history-col-content, .order-history-col-total) .admin-column-controls { justify-content: flex-end; }
  body.trsa-admin-workspace #view-order-history th:is(.order-history-col-content, .order-history-col-total) .admin-column-summary { justify-self: end; }
  body.trsa-admin-workspace:not(.rn-review-active) #view-order-history .oh-buyer-hover-tools .oh-inline-contacts { width: max-content; max-width: none; flex-wrap: nowrap; gap: 8px; }
  body.trsa-admin-workspace:not(.rn-review-active) #view-order-history .oh-buyer-hover-tools .oh-inline-contacts button { max-width: none; white-space: nowrap; overflow-wrap: normal; }
  body.trsa-admin-workspace:not(.rn-review-active) #view-order-history .oh-address-actions { flex-wrap: nowrap; }

}
/* Mirror the left rail on desktop, with the account button in the center area. */
@media screen and (min-width: 1001px) {
  body.trsa-admin-workspace[data-view="order-history"] #view-order-history.has-callback-drawer .page-inner { padding-right: calc(var(--callback-drawer-width, 360px) + 20px) !important; }
  /* One divider per RN pane; section cards retain their original border and shadow. */
  body.trsa-admin-workspace[data-view="rn"] #view-rn { --rn-sidebar-gap: 0px; }
  body.trsa-admin-workspace[data-view="rn"] #view-rn > .page { padding: 0; }
  body.trsa-admin-workspace[data-view="rn"] #view-rn .rn-page-inner { padding-top: 0; padding-bottom: 24px; }
  body.trsa-admin-workspace[data-view="rn"] #view-rn.has-callback-drawer .rn-page-inner { padding-right: var(--callback-drawer-width, 360px) !important; }
  body.trsa-admin-workspace[data-view="rn"] #view-rn .rn-main { max-width: none; margin: 0; }
  body.trsa-admin-workspace[data-view="rn"] #view-rn .rn-sheet { border: 0; border-radius: 0; box-shadow: none; padding: 16px 20px 24px; }
  body.trsa-admin-workspace[data-view="rn"] #view-rn :is(.rn-sidebar, .rn-chat-sidebar) { border: 0; border-radius: 0; box-shadow: none; }
  body.trsa-admin-workspace[data-view="rn"] #view-rn .rn-sidebar { border-right: 1px solid var(--admin-line); }
  body.trsa-admin-workspace[data-view="rn"] #view-rn .rn-chat-sidebar { border-left: 1px solid var(--admin-line); }
  body.trsa-admin-workspace[data-view="rn"] #view-rn .rn-chat-sidebar #ai-chat-panel,
  body.trsa-admin-workspace[data-view="rn"] #order-history-ai-chat-sidebar #ai-chat-panel { border: 0; border-radius: 0; box-shadow: none; }
  body.trsa-admin-workspace[data-view="rn"] #view-rn .rn-chat-host { margin-bottom: 0; }
  /* Simplify only the admin RN sidebar, leaving fullscreen and other chat surfaces intact. */
  body.trsa-admin-workspace[data-view="rn"]:not(.ai-chat-expanded) #rn-chat-sidebar #ai-chat-panel[data-context="rn"] :is(.ai-chat-preinput-title, #ai-chat-mic) { display: none !important; }
  body.trsa-admin-workspace[data-view="rn"]:not(.ai-chat-expanded) #rn-chat-sidebar #ai-chat-panel[data-context="rn"]:not(.ai-chat-super-minimized) #ai-chat-title-text { display: none; }
  body.trsa-admin-workspace[data-view="rn"]:not(.ai-chat-expanded) #rn-chat-sidebar #ai-chat-panel[data-context="rn"]:not(.ai-chat-super-minimized) .ai-chat-admin-sidebar-title { display: inline !important; }
  /* The hidden Admin heading used to separate this action from the product chips. */
  body.trsa-admin-workspace[data-view="rn"]:not(.ai-chat-expanded) #rn-chat-sidebar #ai-chat-panel[data-context="rn"] #ai-chat-preinput .ai-chat-preinput-title:not(:first-child) + .ai-chat-followup-buttons { margin-top: 14px; }
  body.trsa-admin-workspace[data-view="rn"]:not(.ai-chat-expanded) #rn-chat-sidebar #ai-chat-panel[data-context="rn"] .ai-chat-input-row { align-items: center; }
  body.trsa-admin-workspace[data-view="rn"]:not(.ai-chat-expanded) #rn-chat-sidebar #ai-chat-panel[data-context="rn"] #ai-chat-input { display: block; margin: 0; }
  /* Keep input guidance for individual steps; hide only the generic invitation. */
  body.trsa-admin-workspace[data-view="rn"]:not(.ai-chat-expanded) #rn-chat-sidebar #ai-chat-panel[data-context="rn"] #ai-chat-input[placeholder="Dodaj još stavki u ovaj radni nalog"]::placeholder { opacity: 0; }
  body.trsa-admin-workspace[data-view="rn"] #view-rn .rn-chat-resizer:not(:hover)::before { background: transparent; }
  body.trsa-admin-workspace[data-view="rn"] #order-history-ai-chat-sidebar .order-history-chat-resizer:not(:hover)::before { background: transparent; }
  body.trsa-admin-workspace:is([data-view="rn"], [data-view="order-history"]) #site-header-root .admin-callback-trigger:not([hidden]) {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 46px;
    position: relative;
    width: 46px; height: 46px; margin: 0; padding: 10px; box-sizing: border-box;
    border: 0; border-radius: 8px; box-shadow: none; background: transparent; color: var(--admin-ink); cursor: pointer;
  }
  body.trsa-admin-workspace #site-header-root .admin-callback-trigger svg { position: absolute; inset: 11px; width: 24px; height: 24px; pointer-events: none; }
  body.trsa-admin-workspace #site-header-root .admin-callback-trigger .admin-callback-chevron { inset: 13px; width: 20px; height: 20px; opacity: 0; transform: scale(.8); }
  body.trsa-admin-workspace #site-header-root .admin-callback-trigger:is(:hover, :focus-visible, [aria-expanded="true"]) .admin-callback-phone { opacity: 0; transform: scale(.8); }
  body.trsa-admin-workspace #site-header-root .admin-callback-trigger:is(:hover, :focus-visible, [aria-expanded="true"]) .admin-callback-chevron { opacity: 1; transform: scale(1); }
  body.trsa-admin-workspace #site-header-root .admin-callback-trigger[aria-expanded="true"] .admin-callback-chevron { transform: translateX(6px) rotate(180deg) scale(.9); }
  body.trsa-admin-workspace:is([data-view="rn"], [data-view="order-history"]) #site-header-root .admin-callback-trigger:not([hidden])[aria-expanded="true"] { background: transparent; transform: translateX(20px); z-index: 0; }
  /* A small paper tab sits flush against the drawer, with a generous hit area. */
  body.trsa-admin-workspace #site-header-root .admin-callback-trigger[aria-expanded="true"]::before {
    content: ""; position: absolute; top: 6px; bottom: 6px; left: 12px; right: -1px;
    border: 1px solid #d5dbe5; border-right: 0; border-radius: 8px 0 0 8px;
    background: #fff; box-shadow: -2px 2px 5px #18243b0a; z-index: -1; pointer-events: none;
  }
  body.trsa-admin-workspace:is([data-view="rn"], [data-view="order-history"]) #site-header-root .admin-callback-trigger:not([hidden]):not([aria-expanded="true"]):is(:hover, :focus-visible) { background: #e8edf5; }
  body.trsa-admin-workspace #site-header-root .admin-callback-trigger[aria-expanded="true"]:is(:hover, :focus-visible)::before { background: #e8edf5; }
  body.trsa-admin-workspace #site-header-root .admin-callback-trigger:focus-visible { outline: 2px solid var(--admin-blue); outline-offset: 2px; }
  body.trsa-admin-workspace #site-header-root .admin-callback-count:not([hidden]) { position: absolute; top: 1px; left: 0; z-index: 1; display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 4px; box-sizing: border-box; border-radius: 999px; background: #e53935; color: #fff; font: 600 10px/1 system-ui; pointer-events: none; }
  body.trsa-admin-workspace .order-callback-alerts[data-header-overlay="true"] { z-index: 520; max-height: none; }
  /* Reserve space only for a visible drawer or its saved startup geometry.
     Users without drawer access must not inherit an unused sidebar offset. */
  body.trsa-admin-workspace:is([data-view="order-history"], [data-view="rn"]):has(#order-history-ai-chat-sidebar.has-callback-drawer:not([hidden])) #site-header-root .site-header-inner,
  body.trsa-admin-workspace:is([data-view="order-history"], [data-view="rn"]):has(#view-order-history[data-oh-reserve-drawer="1"]) #site-header-root .site-header-inner {
    padding-right: calc(var(--admin-right-rail-width, 0px) + 20px) !important;
  }
  body.trsa-admin-workspace:is([data-view="order-history"], [data-view="rn"]) #order-history-ai-chat-sidebar.has-callback-drawer:not([hidden]) {
    top: 0 !important;
    height: 100dvh !important;
    max-height: 100dvh;
    border-radius: 0;
    border-left: 1px solid var(--admin-line);
    background: var(--admin-rail-bg);
    box-shadow: none;
    z-index: 510;
    transition: none;
  }
  body.trsa-admin-workspace #order-history-ai-chat-sidebar.has-callback-drawer .order-callback-shell { transition: none; }
  body.trsa-admin-workspace #order-history-ai-chat-sidebar.has-callback-drawer .order-callback-header { height: 68px; min-height: 68px; grid-template-columns: 40px minmax(0, 1fr) auto; padding-left: 6px; background: var(--admin-rail-bg); border-color: var(--admin-line); }
  body.trsa-admin-workspace #order-history-ai-chat-sidebar.has-callback-drawer:is([data-callback-state="compact"], [data-queue-compact="true"]) .order-callback-header { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr; place-items: center; gap: 0; padding: 0; border: 0; border-bottom: 1px solid transparent; }
  body.trsa-admin-workspace #order-history-ai-chat-sidebar.has-callback-drawer [data-drawer-toggle] { position: relative; box-sizing: border-box; width: 40px; height: 40px; margin: 0; padding: 0; border-radius: 9px; background: transparent; color: var(--admin-ink); }
  body.trsa-admin-workspace #order-history-ai-chat-sidebar.has-callback-drawer .order-callback-rail { display: none; }
  body.trsa-admin-workspace #order-history-ai-chat-sidebar.has-callback-drawer .order-callback-toggle-phone { position: absolute; inset: 8px; display: grid; opacity: 0; place-items: center; pointer-events: none; }
  body.trsa-admin-workspace #order-history-ai-chat-sidebar.has-callback-drawer .order-callback-toggle-phone svg { width: 24px; height: 24px; transform: none; }
  body.trsa-admin-workspace #order-history-ai-chat-sidebar.has-callback-drawer [data-drawer-toggle] > svg { position: absolute; inset: 10px; width: 20px; height: 20px; opacity: 1; }
  body.trsa-admin-workspace #order-history-ai-chat-sidebar.has-callback-drawer [data-drawer-toggle][aria-expanded="false"] .order-callback-toggle-phone { opacity: 1; }
  body.trsa-admin-workspace #order-history-ai-chat-sidebar.has-callback-drawer [data-drawer-toggle][aria-expanded="false"] > svg { opacity: 0; }
  body.trsa-admin-workspace #order-history-ai-chat-sidebar.has-callback-drawer [data-drawer-toggle][aria-expanded="false"]:is(:hover, :focus-visible) > svg { opacity: 1; }
  body.trsa-admin-workspace #order-history-ai-chat-sidebar.has-callback-drawer [data-drawer-toggle][aria-expanded="false"]:is(:hover, :focus-visible) .order-callback-toggle-phone { opacity: 0; transform: scale(.8); }
  body.trsa-admin-workspace #order-history-ai-chat-sidebar.has-callback-drawer:is([data-callback-state="compact"], [data-queue-compact="true"]) .order-callback-toggle-count:not([hidden]) { display: inline-flex; position: absolute; top: 0; right: 0; min-width: 14px; height: 14px; padding: 0 3px; font-size: 9px; }
  body.trsa-admin-workspace #order-history-ai-chat-sidebar.has-callback-drawer [data-drawer-toggle]:hover { background: #edf0f7; }

  /* The header replaces the closed rail. Calls cover the preserved chat, while
     the page reserves the full drawer width so order content stays alongside it. */
  body.trsa-admin-workspace:is([data-view="order-history"], [data-view="rn"]) { overflow-x: clip; }
  body.trsa-admin-workspace:is([data-view="order-history"], [data-view="rn"]) #order-history-ai-chat-sidebar.has-callback-drawer[data-callback-overlay="true"] {
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
  }
  body.trsa-admin-workspace:is([data-view="order-history"], [data-view="rn"]) #order-history-ai-chat-sidebar.has-callback-drawer[data-callback-overlay="true"][data-callback-open="true"] {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  /* Interrupt the divider only where the tab attaches to the drawer. */
  body.trsa-admin-workspace #order-history-ai-chat-sidebar[data-callback-overlay="true"][data-callback-open="true"]::after {
    content: ""; position: absolute; left: -1px; top: 18px; width: 1px; height: 32px;
    background: #fff; pointer-events: none;
  }
  body.trsa-admin-workspace:has(#site-header-rn-calls[aria-expanded="true"]:is(:hover, :focus-visible)) #order-history-ai-chat-sidebar[data-callback-overlay="true"][data-callback-open="true"]::after { background: #e8edf5; }
  body.trsa-admin-workspace #order-history-ai-chat-sidebar[data-callback-overlay="true"] [data-drawer-dismiss] { display: none !important; }
  body.trsa-admin-workspace #order-history-ai-chat-sidebar[data-callback-overlay="true"] [data-drawer-toggle] { display: none !important; }
  body.trsa-admin-workspace #order-history-ai-chat-sidebar.has-callback-drawer[data-callback-overlay="true"] .order-callback-header { grid-template-columns: minmax(0, 1fr) auto; padding-left: 12px; }
  body.trsa-admin-workspace #order-history-ai-chat-sidebar.has-callback-drawer[data-callback-overlay="true"] .order-callback-header.is-searching .order-callback-tools { left: 12px; }

}
/* Reminder banners replace the current header row instead of stacking below it.
   Keep their content within the same workspace area as the search/account row. */
@media screen and (min-width: 1024px) {
  body.trsa-admin-workspace #site-header-root .site-header.rn-review-host > [data-rn-review-original] { display: none !important; }
  body.trsa-admin-workspace #site-header-root .rn-review-header {
    margin-left: var(--admin-sidebar-width, 0px);
    margin-right: 0;
    padding: 10px 20px;
    gap: 16px;
  }
  body.trsa-admin-workspace:is([data-view="order-history"], [data-view="rn"]):has(#order-history-ai-chat-sidebar.has-callback-drawer:not([hidden])) #site-header-root .rn-review-header,
  body.trsa-admin-workspace:is([data-view="order-history"], [data-view="rn"]):has(#view-order-history[data-oh-reserve-drawer="1"]) #site-header-root .rn-review-header { margin-right: var(--admin-right-rail-width, 0px); }
  body.trsa-admin-workspace #site-header-root .rn-review-sentence { min-width: 0; overflow-wrap: anywhere; }
  body.trsa-admin-workspace #site-header-root .rn-review-header.rn-review-preview { padding-right: 88px; }
}
@media screen and (min-width: 981px) and (prefers-reduced-motion: reduce) {
  body.trsa-admin-workspace *, body.trsa-admin-workspace *::before, body.trsa-admin-workspace *::after { scroll-behavior: auto; }
}

/* One brand/phone control per rail; both line up with the 68px account header. */
@media screen and (min-width: 981px) {
  body.trsa-admin-workspace :is(#bazaSidebar, #prodAdminSidebar) :is(#bazaSidebarCompact, #prodAdminSidebarCompact) { position: relative; width: 40px; height: 40px; padding: 0; border: 0; background: transparent; border-radius: 9px; }
  /* Keep the supplied brand artwork; its white background blends into the rail. */
  body.trsa-admin-workspace :is(#bazaSidebarCompact, #prodAdminSidebarCompact) .admin-sidebar-toggle-mark { display: block; position: absolute; inset: 3px; width: 34px; height: 34px; opacity: 0; object-fit: contain; mix-blend-mode: multiply; pointer-events: none; }
  body.trsa-admin-workspace :is(#bazaSidebarCompact, #prodAdminSidebarCompact) > svg { position: absolute; inset: 10px; width: 20px; height: 20px; opacity: 1; }
  body.trsa-admin-workspace :is(#bazaSidebar, #prodAdminSidebar).is-compact :is(#bazaSidebarCompact, #prodAdminSidebarCompact) .admin-sidebar-toggle-mark { opacity: 1; }
  body.trsa-admin-workspace :is(#bazaSidebar, #prodAdminSidebar).is-compact :is(#bazaSidebarCompact, #prodAdminSidebarCompact) > svg { opacity: 0; }
  body.trsa-admin-workspace :is(#bazaSidebar, #prodAdminSidebar).is-compact :is(#bazaSidebarCompact, #prodAdminSidebarCompact):is(:hover, :focus-visible) > svg { opacity: 1; }
  body.trsa-admin-workspace :is(#bazaSidebar, #prodAdminSidebar).is-compact :is(#bazaSidebarCompact, #prodAdminSidebarCompact):is(:hover, :focus-visible) .admin-sidebar-toggle-mark { opacity: 0; transform: scale(.8); }
}
@media screen and (min-width: 981px) and (prefers-reduced-motion: no-preference) {
  body.trsa-admin-workspace .admin-workspace-tooltip:not([hidden]) { animation: admin-tooltip-appear 120ms ease-out; }
  @keyframes admin-tooltip-appear {
    from { opacity: 0; transform: translateY(2px); }
    to { opacity: 1; transform: translateY(0); }
  }
  body.trsa-admin-workspace.baza-sidebar-animating :is(#bazaSidebar, #prodAdminSidebar).baza-sidebar { transition: width var(--admin-drawer-motion), min-width var(--admin-drawer-motion), max-width var(--admin-drawer-motion); }
  body.trsa-admin-workspace.baza-sidebar-animating .baza-shell:not(.no-sidebar) { transition: padding-left var(--admin-drawer-motion); }
  body.trsa-admin-workspace.baza-sidebar-animating #site-header-root .site-header-inner { transition: padding-left var(--admin-drawer-motion), padding-right var(--admin-drawer-motion); }
  body.trsa-admin-workspace :is(#bazaSidebarCompact, #prodAdminSidebarCompact) > svg,
  body.trsa-admin-workspace :is(#bazaSidebarCompact, #prodAdminSidebarCompact) .admin-sidebar-toggle-mark { transition: opacity 150ms ease, transform 150ms ease; }
}
@media screen and (min-width: 1001px) and (prefers-reduced-motion: no-preference) {
  body.trsa-admin-workspace #site-header-root .admin-callback-trigger svg { transition: opacity 150ms ease, transform 150ms ease; }
  body.trsa-admin-workspace.callback-sidebar-animating:is([data-view="order-history"], [data-view="rn"]) #order-history-ai-chat-sidebar.has-callback-drawer:not([hidden]) { transition: width var(--admin-drawer-motion); }
  body.trsa-admin-workspace.callback-sidebar-animating #order-history-ai-chat-sidebar.has-callback-drawer .order-callback-shell { transition: grid-template-columns var(--admin-drawer-motion); }
  body.trsa-admin-workspace.callback-sidebar-animating :is(#view-order-history, #view-rn):is(.has-callback-drawer, .has-callback-overlay) .page-inner { transition: padding-left var(--admin-drawer-motion), padding-right var(--admin-drawer-motion); }
  body.trsa-admin-workspace.callback-sidebar-animating #site-header-root .site-header-inner { transition: padding-left var(--admin-drawer-motion), padding-right var(--admin-drawer-motion); }
  body.trsa-admin-workspace.callback-sidebar-animating #site-header-root .admin-callback-trigger { transition: transform var(--admin-drawer-motion); }
  body.trsa-admin-workspace #order-history-ai-chat-sidebar.has-callback-drawer [data-drawer-toggle] > svg,
  body.trsa-admin-workspace #order-history-ai-chat-sidebar.has-callback-drawer .order-callback-toggle-phone { transition: opacity 150ms ease, transform 150ms ease; }
  body.trsa-admin-workspace.callback-sidebar-animating:is([data-view="order-history"], [data-view="rn"]) #order-history-ai-chat-sidebar.has-callback-drawer[data-callback-overlay="true"] {
    transition: transform var(--admin-drawer-motion), width var(--admin-drawer-motion), visibility 0s linear 220ms;
  }
  body.trsa-admin-workspace.callback-sidebar-animating:is([data-view="order-history"], [data-view="rn"]) #order-history-ai-chat-sidebar.has-callback-drawer[data-callback-overlay="true"][data-callback-open="true"] { transition-delay: 0s; }
}

@media screen and (min-width: 981px) and (prefers-reduced-motion: reduce) {
  body.trsa-admin-workspace :is(#bazaSidebarCompact, #prodAdminSidebarCompact) > svg,
  body.trsa-admin-workspace :is(#bazaSidebarCompact, #prodAdminSidebarCompact) .admin-sidebar-toggle-mark,
  body.trsa-admin-workspace #order-history-ai-chat-sidebar.has-callback-drawer [data-drawer-toggle] > svg,
  body.trsa-admin-workspace #order-history-ai-chat-sidebar.has-callback-drawer .order-callback-toggle-phone { transition: none !important; }
}
