/* Approved quote reference. Every rule is limited to the quote tab. */
@media screen {
  .shell.is-order-view:has(.co-view-quote) { background: var(--crm-bg); }
  .shell.is-order-view:has(.co-view-quote) > .main > .content {
    padding: 16px 20px 20px;
    overflow: auto;
    scrollbar-gutter: auto;
    background: radial-gradient(ellipse at 105% 85%,#baf2f8,transparent 57%),radial-gradient(ellipse at 92% 3%,#d3f6fc,transparent 57%),radial-gradient(ellipse at 6% 82%,#d9d4f5,transparent 60%),#eef1fc;
  }
  .shell.is-order-view:has(.co-view-quote) .topbar { height: 46px; min-height: 46px; flex-basis: 46px; background: linear-gradient(105deg,#f0f3ff,#effbff 70%,#f7f4ff); border-color: rgba(170,184,218,.42); }
  .shell.is-order-view:has(.co-view-quote) .topbar .breadcrumb { color: var(--crm-ink); font-size: 16px; font-weight: 650; }
  .shell.is-order-view:has(.co-view-quote) > .sidebar { background: linear-gradient(175deg,#fff 5%,#f7f9ff 76%,#f4f0ff); border-color: #dce2f1; }
  .shell.is-order-view:has(.co-view-quote) .nav-item.is-active { background: linear-gradient(120deg,#eee2ff,#e6eaff); color: var(--crm-indigo); }
  .shell.is-order-view:has(.co-view-quote) :is(.co-shell-avatar,.co-rail-user) { color: #fff; background: var(--crm-gradient); box-shadow: 0 3px 9px rgba(99,60,222,.18); }

  .order-screen.compact-order.co-view-quote { --co-ink: var(--crm-ink); --co-muted: var(--crm-muted); --co-purple: var(--crm-indigo); --co-line: var(--crm-border); --cq-line: #d4dcef; --cq-muted: #586b8e; height: auto; min-height: 100%; min-width: 0; overflow: visible; font: 14px/1.4 var(--crm-font); color: var(--crm-ink); }
  .order-screen.compact-order.co-view-quote > .co-tab-content { display: block; height: auto; min-height: 0; flex: 0 0 auto; overflow: visible; }
  .order-screen.compact-order.co-view-quote .co-btn { min-height: 34px; border-color: #c6d1e7; border-radius: 8px; color: var(--crm-ink); background: linear-gradient(120deg,#fff,#f9fbff); box-shadow: 0 1px 3px rgba(60,63,120,.03); font: 600 14px/1.3 var(--crm-font); transition: border-color var(--crm-motion),background-color var(--crm-motion),box-shadow var(--crm-motion),transform var(--crm-motion); }
  .order-screen.compact-order.co-view-quote .co-btn:hover:not(:disabled) { border-color: #af96e6; background: #f2ecff; box-shadow: 0 3px 9px rgba(84,59,181,.08); }
  .order-screen.compact-order.co-view-quote .co-btn.primary { color: #fff; border-color: transparent; background: var(--crm-gradient); box-shadow: inset 0 1px 0 rgba(255,255,255,.4),0 5px 14px rgba(99,53,225,.22); }
  .order-screen.compact-order.co-view-quote .co-btn.primary:hover:not(:disabled) { background: var(--crm-gradient); box-shadow: 0 7px 17px rgba(99,53,225,.28); transform: translateY(-1px); }
  .order-screen.compact-order.co-view-quote .co-btn.subtle { color: var(--crm-indigo); border-color: transparent; background: transparent; box-shadow: none; }
  .order-screen.compact-order.co-view-quote .co-btn.subtle:hover:not(:disabled) { background: #eee8ff; border-color: transparent; box-shadow: none; }
  .order-screen.compact-order.co-view-quote .co-btn:is(.outline,.outline-primary) { color: var(--crm-indigo); border-color: #aa8df1; background: linear-gradient(115deg,#fff,#faf7ff); }
  .order-screen.compact-order.co-view-quote .co-btn:active:not(:disabled) { transform: translateY(0); }
  .order-screen.compact-order.co-view-quote .co-btn:disabled { opacity: .5; transform: none; box-shadow: none; cursor: default; }
  .order-screen.compact-order.co-view-quote :is(button,a,input,select,textarea):focus-visible { outline: 2px solid var(--crm-violet); outline-offset: 3px; }
  .order-screen.compact-order.co-view-quote :is(input:not([type=checkbox],[type=radio]),select,textarea) { min-height: 32px; border: 1px solid #becbed; border-radius: 7px; padding: 5px 9px; color: var(--crm-ink); background: linear-gradient(120deg,#fff,#fcfdff); box-shadow: 0 1px 3px rgba(46,51,111,.035); font: 400 14px/1.35 var(--crm-font); }
  .order-screen.compact-order.co-view-quote :is(input,select,textarea):focus { outline: none; border-color: var(--crm-violet); box-shadow: var(--crm-focus); }
  .order-screen.compact-order.co-view-quote :is(input,select,textarea)::placeholder { color: #7b8bad; opacity: 1; }
  .order-screen.compact-order.co-view-quote input[type=number] { appearance: textfield; -moz-appearance: textfield; }
  .order-screen.compact-order.co-view-quote input[type=number]::-webkit-inner-spin-button,.order-screen.compact-order.co-view-quote input[type=number]::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
  .order-screen.compact-order.co-view-quote :is(input,select,textarea):disabled { color: #66738a; background: #f1f4fa; box-shadow: none; }

  .order-screen.compact-order.co-view-quote .co-header { min-height: 0; padding: 0 0 10px; margin: 0; gap: 0; border: 0; box-shadow: none; background: transparent; }
  .order-screen.compact-order.co-view-quote .co-title-row { flex-wrap: wrap; gap: 8px 16px; min-height: 42px; }
  .order-screen.compact-order.co-view-quote .co-title-row > .co-ov-order-heading { display: flex; flex: 0 1 auto; align-items: center; gap: 11px; min-width: 0; font-size: 26px; line-height: 1.22; letter-spacing: -.025em; }
  .order-screen.compact-order.co-view-quote .co-ov-order-heading > .co-icon { width: 23px; height: 23px; flex: 0 0 23px; color: var(--crm-violet); }
  .order-screen.compact-order.co-view-quote .co-title-row > .co-chip { padding: 5px 11px; min-height: 30px; font-size: 15px; font-weight: 650; }
  .order-screen.compact-order.co-view-quote .co-title-row > .co-chip.success { border: 1px solid #a1eab1; background: #defae6; color: #155628; }
  .order-screen.compact-order.co-view-quote .co-title-row > .co-chip.success > .co-icon { width: 15px; height: 15px; flex: 0 0 15px; padding: 2px; border-radius: 50%; color: #fff; background: #15843a; }
  .order-screen.compact-order.co-view-quote .co-header-actions { flex: 0 0 auto; gap: 8px; margin-left: auto; }
  .order-screen.compact-order.co-view-quote .co-ov-order-menu > summary { border-color: transparent; background: transparent; box-shadow: none; color: var(--crm-indigo); }
  .order-screen.compact-order.co-view-quote .co-ov-order-menu > div { width: min(300px,calc(100vw - 32px)); max-height: min(480px,60dvh); overflow: auto; }
  .order-screen.compact-order.co-view-quote .co-ov-menu-meta { display: grid; gap: 5px; padding: 7px 10px 9px; border-bottom: 1px solid var(--crm-border); color: var(--crm-muted); font-size: 13px; overflow-wrap: anywhere; }
  .order-screen.compact-order.co-view-quote .co-ov-menu-meta > strong { color: var(--crm-ink); font-size: 15px; }
  .order-screen.compact-order.co-view-quote .cq-menu-actions { display: grid; gap: 4px; }
  .order-screen.compact-order.co-view-quote .cq-menu-actions > .co-btn { justify-content: flex-start; border-color: transparent; }
  .order-screen.compact-order.co-view-quote .co-header-actions > .co-btn { min-height: 36px; padding: 7px 11px; font-size: 13px; }
  .order-screen.compact-order.co-view-quote .co-title-row > .icon-button,.order-screen.compact-order.co-view-quote .co-menu > summary { width: 36px; min-width: 36px; min-height: 36px; flex-basis: 36px; padding: 7px; }
  .order-screen.compact-order.co-view-quote button.co-inline-trigger { all: unset; box-sizing: border-box; display: inline-block; min-width: 0; max-width: 100%; border: 1px solid transparent; border-radius: 5px; margin: -2px -4px; padding: 2px 4px; color: inherit; font: inherit; letter-spacing: inherit; line-height: inherit; white-space: inherit; overflow-wrap: inherit; cursor: pointer; }
  .order-screen.compact-order.co-view-quote button.co-inline-trigger:hover:not(:disabled) { background: #eee9ff; border-color: #d7c8f3; }
  .order-screen.compact-order.co-view-quote button.co-inline-trigger:focus-visible { outline: 2px solid var(--crm-violet); outline-offset: 2px; }
  .order-screen.compact-order.co-view-quote > .co-tabs { min-height: 44px; flex: 0 0 auto; gap: 6px; align-items: center; padding: 0 0 4px; margin: 0 0 28px; border: 0; overflow-x: auto; scrollbar-width: thin; }
  .order-screen.compact-order.co-view-quote > .co-tabs .co-tab { min-height: 42px; padding: 8px 20px; border: 1px solid transparent; border-radius: 9px; color: #405374; background: transparent; box-shadow: none; font-size: 16px; font-weight: 600; }
  .order-screen.compact-order.co-view-quote > .co-tabs .co-tab:hover { background: rgba(242,236,255,.85); color: var(--crm-indigo); }
  .order-screen.compact-order.co-view-quote > .co-tabs .co-tab.active { color: #fff; background: var(--crm-gradient); border-color: transparent; box-shadow: 0 4px 12px rgba(99,53,225,.18); }
  .order-screen.compact-order.co-view-quote > .co-tabs .co-tab > span { display: none; }

  .order-screen.compact-order.co-view-quote .cq-layout { display: grid; grid-template-columns: minmax(0,2.22fr) minmax(292px,1fr); align-items: start; gap: 18px; min-width: 0; height: auto; overflow: visible; }
  .order-screen.compact-order.co-view-quote .cq-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
  .order-screen.compact-order.co-view-quote .cq-aside { position: sticky; top: 10px; min-width: 0; max-height: calc(100dvh - 70px); overflow: auto; scrollbar-width: thin; align-self: start; }
  .order-screen.compact-order.co-view-quote .cq-card { position: relative; min-width: 0; height: auto; border: 1px solid transparent; border-radius: 14px; background: radial-gradient(ellipse at 100% 0%,rgba(61,205,230,.14),transparent 52%) padding-box,radial-gradient(ellipse at 0% 100%,rgba(155,109,243,.09),transparent 55%) padding-box,linear-gradient(125deg,rgba(255,255,255,.98),rgba(255,255,255,.96)) padding-box,linear-gradient(125deg,rgba(124,58,237,.27),rgba(199,210,239,.8) 40%,rgba(55,198,208,.45) 78%,rgba(255,255,255,.9)) border-box; box-shadow: var(--crm-shadow),0 1px 3px rgba(58,64,110,.04); overflow: visible; }
  .order-screen.compact-order.co-view-quote .cq-workspace { padding: 20px; }
  .order-screen.compact-order.co-view-quote .cq-workspace:has(.cq-search-results:not([hidden]):not(:empty)) { z-index: 35; }
  .order-screen.compact-order.co-view-quote .cq-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 4px 5px; min-width: 0; }
  .order-screen.compact-order.co-view-quote .cq-heading { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; min-width: 0; color: #111a30; font-size: 22px; font-weight: 730; line-height: 1.3; letter-spacing: -.02em; }
  .order-screen.compact-order.co-view-quote .cq-heading > h2,.order-screen.compact-order.co-view-quote .cq-summary .cq-card-head > h2 { display: inline-flex; align-items: center; gap: 10px; color: #111a30; font-size: 25px; font-weight: 730; line-height: 1.3; letter-spacing: -.02em; }
  .order-screen.compact-order.co-view-quote .cq-heading .co-icon,.order-screen.compact-order.co-view-quote .cq-summary .cq-card-head > h2 .co-icon { width: 25px; height: 25px; color: var(--crm-violet); }
  .order-screen.compact-order.co-view-quote .cq-count { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 23px; padding: 3px 9px; border-radius: 8px; background: linear-gradient(110deg,#e9e3fa,#e1eafa); color: #41547a; font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
  .order-screen.compact-order.co-view-quote .cq-save-status { display: flex; align-items: center; gap: 8px; margin: 9px 0 0; color: var(--crm-muted); font-size: 14px; font-weight: 600; }
  .order-screen.compact-order.co-view-quote .cq-save-status[data-quote-dirty="true"] { color: #895009; }
  .order-screen.compact-order.co-view-quote .cq-undo { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 9px 0 0; color: var(--crm-muted); font-size: 13px; }
  .order-screen.compact-order.co-view-quote .cq-save-status[data-quote-dirty="true"]::before { content: ""; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #dc931f; }
  .order-screen.compact-order.co-view-quote .cq-card-head-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-left: auto; }
  .order-screen.compact-order.co-view-quote :is(.cq-add-equipment,.cq-add-service) { min-height: 36px; padding: 6px 12px; font-size: 13px; }
  .order-screen.compact-order.co-view-quote :is(.cq-add-equipment,.cq-add-service) > .co-icon { width: 17px; height: 17px; }
  .order-screen.compact-order.co-view-quote .cq-history { padding: 4px 2px; min-height: 28px; font-size: 14px; color: var(--crm-violet); }
  .order-screen.compact-order.co-view-quote .cq-history > .co-icon { width: 17px; height: 17px; }
  .order-screen.compact-order.co-view-quote .cq-period-caption { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 7px 4px 16px; color: #455d82; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
  .order-screen.compact-order.co-view-quote .cq-search-anchor { position: relative; min-width: 0; z-index: 5; }
  .order-screen.compact-order.co-view-quote .cq-search-control { display: flex; align-items: center; min-height: 46px; border: 1px solid #b5b8ed; border-radius: 8px; background: linear-gradient(110deg,#fff,#f9fdff); box-shadow: 0 1px 3px rgba(46,51,111,.035); }
  .order-screen.compact-order.co-view-quote .cq-search-control:focus-within { border-color: var(--crm-violet); box-shadow: var(--crm-focus); }
  .order-screen.compact-order.co-view-quote .cq-search-control > .co-icon { width: 18px; height: 18px; margin-left: 12px; color: #61749b; }
  .order-screen.compact-order.co-view-quote .cq-search-control > input { width: 100%; min-width: 0; min-height: 35px; padding: 7px 10px; border: 0; border-radius: 8px; background: transparent; box-shadow: none; font-size: 14px; }
  .order-screen.compact-order.co-view-quote .cq-search-control > input:focus { border: 0; outline: none; box-shadow: none; }
  .order-screen.compact-order.co-view-quote .cq-search-control > .co-btn { width: 31px; min-height: 31px; flex: 0 0 31px; padding: 5px; margin-right: 3px; border: 0; background: transparent; box-shadow: none; color: #65769a; }
  .order-screen.compact-order.co-view-quote .cq-search-results { position: absolute; inset: calc(100% + 6px) 0 auto; z-index: 60; max-height: min(390px,58dvh); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 5px; border: 1px solid #b59af4; border-radius: 10px; background: linear-gradient(115deg,rgba(255,255,255,.99),rgba(247,252,255,.99)); box-shadow: 0 13px 30px rgba(46,35,99,.19),0 1px 5px rgba(92,57,170,.1); }
  .order-screen.compact-order.co-view-quote .cq-search-results:is(:empty,[hidden]) { display: none!important; }
  .order-screen.compact-order.co-view-quote .cq-search-option { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 57px; padding: 9px 11px; border: 0; border-bottom: 1px solid #e0e6f5; border-radius: 7px; background: transparent; text-align: left; white-space: normal; box-shadow: none; }
  .order-screen.compact-order.co-view-quote .cq-search-option:hover:not(:disabled),.order-screen.compact-order.co-view-quote .cq-search-option:is(.active,[aria-selected=true]) { background: linear-gradient(110deg,#f1eaff,#edf8ff); border-color: #d6c9f8; box-shadow: none; }
  .order-screen.compact-order.co-view-quote .cq-search-option > :is(.co-icon,img) { width: 25px; height: 25px; flex: 0 0 25px; object-fit: contain; color: #7252ad; }
  .order-screen.compact-order.co-view-quote .cq-search-option > span:first-of-type { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
  .order-screen.compact-order.co-view-quote .cq-search-option strong { color: #24304c; font-size: 14px; line-height: 1.35; font-weight: 650; overflow-wrap: anywhere; }
  .order-screen.compact-order.co-view-quote .cq-search-option small { color: #63769a; font-size: 12px; line-height: 1.4; font-weight: 400; }
  .order-screen.compact-order.co-view-quote .cq-product-available { color: var(--crm-success); font-size: 12px; white-space: nowrap; }
  .order-screen.compact-order.co-view-quote .cq-product-available:is(.is-shortage,.warning) { color: #a66d17; }
  .order-screen.compact-order.co-view-quote .cq-product-price { flex: 0 0 auto; color: #273451; font-size: 14px; font-weight: 650; white-space: nowrap; }
  .order-screen.compact-order.co-view-quote .cq-product-add { display: grid; place-items: center; flex: 0 0 29px; width: 29px; height: 29px; border-radius: 7px; color: var(--crm-violet); background: #ede6ff; }
  .order-screen.compact-order.co-view-quote .cq-search-create { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-start; gap: 3px 8px; margin: 3px 5px; padding: 3px 0; color: var(--crm-violet); font-size: 13px; }
  .order-screen.compact-order.co-view-quote .cq-search-create > .co-btn { justify-content: flex-start; min-height: 30px; max-width: 100%; padding: 4px 7px; font-size: 12px; font-weight: 500; text-align: left; white-space: normal; overflow-wrap: anywhere; }
  .order-screen.compact-order.co-view-quote .cq-search-message { margin: 0; padding: 10px; color: #63769a; font-size: 13px; line-height: 1.45; }
  .order-screen.compact-order.co-view-quote .cq-search-credit,.order-screen.compact-order.co-view-quote .cq-search-caption { margin: 0; padding: 9px 0 12px; color: #5a7198; font-size: 14px; line-height: 1.4; }

  .order-screen.compact-order.co-view-quote .cq-table-wrap { width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #c2c9e4 transparent; border: 1px solid #d6ddf0; border-radius: 9px; }
  .order-screen.compact-order.co-view-quote .cq-table { width: 100%; min-width: 850px; margin: 0; table-layout: fixed; border-collapse: separate; border-spacing: 0; color: #26344e; font-size: 15px; line-height: 1.35; font-variant-numeric: tabular-nums; }
  .order-screen.compact-order.co-view-quote .cq-table th { height: 44px; padding: 6px 10px; background: linear-gradient(110deg,#ece9f9,#e6eefb); color: #425a80; border: 0; font-size: 15px; line-height: 1.35; font-weight: 600; text-align: left; white-space: nowrap; }
  .order-screen.compact-order.co-view-quote .cq-table th:nth-child(1) { width: 28%; padding-left: 15px; }
  .order-screen.compact-order.co-view-quote .cq-table th:nth-child(2) { width: 15%; text-align: center; }
  .order-screen.compact-order.co-view-quote .cq-table th:nth-child(3) { width: 22%; text-align: center; }
  .order-screen.compact-order.co-view-quote .cq-table th:nth-child(4) { width: 13%; text-align: center; }
  .order-screen.compact-order.co-view-quote .cq-table th:nth-child(5) { width: 17%; text-align: right; }
  .order-screen.compact-order.co-view-quote .cq-table th:nth-child(6) { width: 5%; padding: 0; }
  .order-screen.compact-order.co-view-quote .cq-table td { padding: 8px 10px; border: 0; border-bottom: 1px solid #dce3f3; vertical-align: middle; background: rgba(255,255,255,.34); }
  .order-screen.compact-order.co-view-quote .cq-table .cq-line > td:nth-child(2),.order-screen.compact-order.co-view-quote .cq-table .cq-line > td:nth-child(3) { text-align: center; }
  .order-screen.compact-order.co-view-quote .cq-table .cq-line > td:nth-child(5) { text-align: right; }
  .order-screen.compact-order.co-view-quote .cq-table .cq-line > td:nth-child(4) { text-align: center; }
  .order-screen.compact-order.co-view-quote .cq-line:not(.is-shortage):focus-within > td { background: #f0ebff; }
  .order-screen.compact-order.co-view-quote .cq-line-calculation { display: block; margin-top: 2px; color: var(--crm-muted); font: 400 12px/1.35 var(--crm-font); }
  .order-screen.compact-order.co-view-quote .cq-table .cq-line > td:last-child { padding: 5px 3px; text-align: center; }
  .order-screen.compact-order.co-view-quote .cq-table .cq-line:last-child > td { border-bottom: 0; }
  .order-screen.compact-order.co-view-quote .cq-category > td { padding: 0; border: 0; background: linear-gradient(105deg,#eae3fb,#e5f4fd); }
  .order-screen.compact-order.co-view-quote .cq-category-toggle { display: flex; justify-content: flex-start; align-items: center; gap: 8px; width: 100%; min-height: 39px; padding: 5px 11px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #304d79; font-size: 14px; line-height: 1.35; text-align: left; white-space: normal; }
  .order-screen.compact-order.co-view-quote .cq-category-toggle:hover:not(:disabled) { background: rgba(227,217,253,.6); border: 0; box-shadow: none; }
  .order-screen.compact-order.co-view-quote .cq-category .cq-category-toggle { color: #304d79; }
  .order-screen.compact-order.co-view-quote .cq-category-toggle > .co-icon { width: 19px; height: 19px; color: #6c4db6; }
  .order-screen.compact-order.co-view-quote .cq-category-toggle > .co-icon:first-child { width: 14px; height: 14px; }
  .order-screen.compact-order.co-view-quote .cq-category-toggle small { color: #667b9d; font-size: 11px; font-weight: 400; }
  .order-screen.compact-order.co-view-quote .cq-category-toggle > strong { min-width: 0; overflow-wrap: anywhere; }
  .order-screen.compact-order.co-view-quote .cq-category-toggle > :last-child,.order-screen.compact-order.co-view-quote .cq-category-subtotal { margin-left: auto; color: #2f496e; font-size: 14px; font-weight: 650; white-space: nowrap; }
  .order-screen.compact-order.co-view-quote .cq-category-toggle > .cq-category-subtotal { margin-inline-end: 5%; }
  .order-screen.compact-order.co-view-quote .cq-item-title { display: flex; align-items: flex-start; gap: 7px; min-width: 0; }
  .order-screen.compact-order.co-view-quote .cq-item-title > div { min-width: 0; }
  .order-screen.compact-order.co-view-quote .cq-item-title strong { display: block; color: #1a2943; font-size: 15px; line-height: 1.35; font-weight: 650; overflow-wrap: anywhere; }
  .order-screen.compact-order.co-view-quote .cq-item-title small { display: block; margin-top: 3px; color: #6a7b99; font-size: 11px; line-height: 1.4; }
  .order-screen.compact-order.co-view-quote .cq-item-title > .co-btn { width: 24px; min-width: 24px; min-height: 25px; flex: 0 0 24px; padding: 3px; margin: -2px 0 0 -2px; border: 0; background: transparent; color: #4c5687; box-shadow: none; }
  .order-screen.compact-order.co-view-quote .cq-quantity { display: inline-flex; align-items: center; width: 116px; max-width: 100%; min-height: 34px; border: 1px solid #c2ccef; border-radius: 8px; background: #fff; box-shadow: 0 1px 3px rgba(46,51,111,.025); }
  .order-screen.compact-order.co-view-quote .cq-quantity > input { width: 36px; min-width: 0; min-height: 29px; flex: 1; padding: 3px 0; border: 0; border-radius: 0; text-align: center; box-shadow: none; background: transparent; }
  .order-screen.compact-order.co-view-quote .cq-quantity > .co-btn { min-width: 25px; width: 25px; min-height: 29px; flex: 0 0 25px; border: 0; padding: 3px; color: #6553c3; background: transparent; box-shadow: none; font-size: 18px; font-weight: 400; }
  .order-screen.compact-order.co-view-quote .cq-quantity > .co-btn:hover:not(:disabled) { background: #f0e9ff; box-shadow: none; }
  .order-screen.compact-order.co-view-quote .cq-quantity:focus-within { border-color: var(--crm-violet); box-shadow: var(--crm-focus); }
  .order-screen.compact-order.co-view-quote .cq-quantity > input:focus { outline: none; box-shadow: none; }
  .order-screen.compact-order.co-view-quote .cq-period { display: inline-flex; align-items: center; justify-content: center; gap: 5px; max-width: 100%; }
  .order-screen.compact-order.co-view-quote .cq-period > input { width: 45px; min-width: 38px; min-height: 31px; padding: 4px; text-align: center; }
  .order-screen.compact-order.co-view-quote .cq-period > [data-quote-days] { display: inline-flex; min-width: 0; flex: 0 1 45px; }
  .order-screen.compact-order.co-view-quote .cq-period > [data-quote-days] > input { width: 45px; min-width: 38px; min-height: 31px; padding: 4px; text-align: center; }
  .order-screen.compact-order.co-view-quote .cq-period > select { width: 108px; flex: 0 0 108px; min-height: 31px; padding: 4px 8px; text-align: left; }
  .order-screen.compact-order.co-view-quote .cq-period:has(> [data-quote-days][hidden]) > select { width: 158px; flex-basis: 158px; }
  .order-screen.compact-order.co-view-quote .cq-price { width: 98px; max-width: 100%; min-height: 32px; padding: 4px 8px; text-align: right; }
  .order-screen.compact-order.co-view-quote [data-line-total] { color: #172740; font-size: 15px; font-weight: 700; white-space: normal; overflow-wrap: anywhere; }
  .order-screen.compact-order.co-view-quote .cq-remove { width: 30px; min-width: 25px; min-height: 32px; padding: 4px; color: #7382a0; border: 0; background: transparent; box-shadow: none; }
  .order-screen.compact-order.co-view-quote .cq-remove:hover:not(:disabled) { color: #b63654; background: #fff1f4; border: 0; }
  .order-screen.compact-order.co-view-quote .cq-row-availability { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 7px; margin-top: 5px; padding-left: 0; color: #687a9a; font-size: 11px; line-height: 1.4; }
  .order-screen.compact-order.co-view-quote .cq-row-availability:empty,.order-screen.compact-order.co-view-quote .cq-availability:empty { display: none; }
  .order-screen.compact-order.co-view-quote .cq-row-availability .co-icon { width: 14px; height: 14px; }
  .order-screen.compact-order.co-view-quote .cq-row-availability .co-btn { min-height: 21px; padding: 1px 2px; border: 0; border-radius: 4px; background: transparent; box-shadow: none; color: var(--crm-violet); font-size: 11px; font-weight: 500; }
  .order-screen.compact-order.co-view-quote .cq-shortage-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 5px; border-radius: 5px; color: #a75e04; background: #fff0cd; font-size: 11px; font-weight: 650; white-space: nowrap; }
  .order-screen.compact-order.co-view-quote .cq-available-note { color: #667b9b; }
  .order-screen.compact-order.co-view-quote .cq-line.is-shortage > td { background: linear-gradient(110deg,rgba(255,239,214,.57),rgba(255,250,245,.3)); }
  .order-screen.compact-order.co-view-quote .cq-line.is-shortage .cq-quantity { border-color: #e8a044; }
  .order-screen.compact-order.co-view-quote .cq-kit-row > td { padding: 0 13px 9px 35px; background: rgba(249,251,255,.7); border-top: 0; }
  .order-screen.compact-order.co-view-quote .cq-kit-components { min-width: 0; border: 1px solid #cbd6ed; border-radius: 8px; background: linear-gradient(120deg,#f2f5fc,#f8fcff); }
  .order-screen.compact-order.co-view-quote .cq-kit-components > header { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 6px 12px; border-bottom: 1px solid #d5dded; color: #314b73; font-size: 12px; line-height: 1.4; }
  .order-screen.compact-order.co-view-quote .cq-kit-components > header small { color: #687d9e; font-size: 11px; }
  .order-screen.compact-order.co-view-quote .cq-kit-components > header > span { color: #687d9e; font-size: 11px; }
  .order-screen.compact-order.co-view-quote .cq-kit-scroll { max-height: 190px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #b3bfdf transparent; padding: 0 10px; }
  .order-screen.compact-order.co-view-quote .cq-components-table { width: 100%; min-width: 0; margin: 0; border-collapse: collapse; table-layout: fixed; color: #294263; font-size: 12px; }
  .order-screen.compact-order.co-view-quote .cq-components-table td { padding: 5px 3px; border-bottom: 1px solid #dce3f0; background: transparent; vertical-align: top; overflow-wrap: anywhere; }
  .order-screen.compact-order.co-view-quote .cq-components-table td:last-child { width: 90px; text-align: right; white-space: nowrap; }
  .order-screen.compact-order.co-view-quote .cq-components-table tr:last-child td { border-bottom: 0; }
  .order-screen.compact-order.co-view-quote .cq-component-availability { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-left: 7px; }
  .order-screen.compact-order.co-view-quote .cq-component-availability .co-icon { width: 12px; height: 12px; }
  .order-screen.compact-order.co-view-quote .cq-details-row > td { padding: 0 9px 9px; border-top: 0; background: rgba(255,249,240,.55); text-align: left; }
  .order-screen.compact-order.co-view-quote .cq-availability-details { padding: 11px 12px; border: 1px solid #edcf9a; border-radius: 8px; background: linear-gradient(110deg,#fffdf9,#fff); color: #4c5c78; font-size: 12px; line-height: 1.5; text-align: left; overflow-wrap: anywhere; }
  .order-screen.compact-order.co-view-quote .cq-availability-details :is(h3,h4,strong) { color: #3a4a64; font-size: 13px; text-align: left; }
  .order-screen.compact-order.co-view-quote .cq-availability-details ul { margin: 6px 0 0; padding-left: 17px; }
  .order-screen.compact-order.co-view-quote .cq-component-facts + .cq-component-facts { padding-top: 10px; margin-top: 10px; border-top: 1px solid #ece0cf; }
  .order-screen.compact-order.co-view-quote .cq-component-facts p { margin-top: 3px; }
  .order-screen.compact-order.co-view-quote .cq-conflicts li { margin-top: 4px; }
  .order-screen.compact-order.co-view-quote .cq-conflicts a { color: var(--crm-indigo); text-decoration: none; }
  .order-screen.compact-order.co-view-quote .cq-conflicts a:hover { text-decoration: underline; }
  .order-screen.compact-order.co-view-quote .cq-conflicts a .co-icon { width: 14px; height: 14px; margin-right: 4px; }
  .order-screen.compact-order.co-view-quote .cq-conflicts li > span { margin-left: 8px; color: #6b7e9c; }
  .order-screen.compact-order.co-view-quote .cq-details-note { margin-top: 8px; color: #7a765e; font-size: 11px; }
  .order-screen.compact-order.co-view-quote .cq-availability { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 14px; min-height: 33px; margin-top: 8px; padding: 7px 10px; border: 1px solid #e2ddf2; border-radius: 7px; background: linear-gradient(110deg,#faf7ff,#f5fcff); color: #61769b; font-size: 12px; line-height: 1.4; }
  .order-screen.compact-order.co-view-quote .cq-availability:has(.cq-warning) { border-color: #f0d29a; background: linear-gradient(110deg,#fff5df,#fffaf0); }
  .order-screen.compact-order.co-view-quote .cq-warning { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; color: #9f5b07; font-size: 12px; font-weight: 600; line-height: 1.4; }
  .order-screen.compact-order.co-view-quote .cq-warning > .co-icon { width: 16px; height: 16px; }
  .order-screen.compact-order.co-view-quote .cq-empty { padding: 30px 16px; color: #7487a7; font-size: 13px; line-height: 1.5; text-align: center; }

  .order-screen.compact-order.co-view-quote .cq-summary { padding: 20px; }
  .order-screen.compact-order.co-view-quote .cq-summary .cq-card-head { margin: 0 0 17px; gap: 8px; }
  .order-screen.compact-order.co-view-quote .cq-summary .cq-heading { font-size: 23px; }
  .order-screen.compact-order.co-view-quote .cq-summary .cq-card-head > h2 { font-size: 25px; }
  .order-screen.compact-order.co-view-quote .cq-total { position: relative; isolation: isolate; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; padding: 14px 16px; border: 1px solid rgba(166,125,238,.4); border-radius: 11px; background: linear-gradient(112deg,#162238,#212649 56%,#5c2e9e); color: #fff; box-shadow: inset 0 1px 1px rgba(255,255,255,.17),0 3px 7px rgba(39,42,92,.13); overflow: hidden; }
  .order-screen.compact-order.co-view-quote .cq-total::before { content: ""; position: absolute; z-index: -1; inset: -24% -10% -130% 28%; border: 1px solid rgba(182,144,255,.1); border-radius: 47%; background: linear-gradient(170deg,rgba(102,73,213,.42),rgba(124,58,237,.07) 60%); transform: rotate(-17deg); pointer-events: none; }
  .order-screen.compact-order.co-view-quote .cq-total::after { content: ""; position: absolute; z-index: -1; inset: 26% -16% -75% 44%; border: 1px solid rgba(200,153,255,.12); border-radius: 48%; background: linear-gradient(145deg,rgba(160,86,246,.16),rgba(124,58,237,.04)); transform: rotate(-17deg); pointer-events: none; }
  .order-screen.compact-order.co-view-quote .cq-total > strong { color: #fff; font-size: 22px; font-weight: 730; line-height: 1.2; }
  .order-screen.compact-order.co-view-quote .cq-total [data-quote-amount] { min-width: 0; max-width: 100%; margin-left: auto; color: #fff; font-size: clamp(23px,1.7vw,30px); font-weight: 750; line-height: 1.2; text-align: right; white-space: normal; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
  .order-screen.compact-order.co-view-quote .cq-discount-toggle { justify-content: flex-start; margin: 11px 0 12px; min-height: 29px; padding: 3px 1px; border: 0; color: var(--crm-violet); background: transparent; box-shadow: none; font-size: 13px; }
  .order-screen.compact-order.co-view-quote .cq-discount-editor { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 13px; padding: 9px 10px; border: 1px solid #dcd6f2; border-radius: 8px; background: rgba(249,247,255,.75); }
  .order-screen.compact-order.co-view-quote .cq-discount-editor input { width: 90px; max-width: 100%; min-height: 31px; }
  .order-screen.compact-order.co-view-quote .cq-discount-editor .co-btn { min-height: 30px; padding: 5px 9px; font-size: 12px; }
  .order-screen.compact-order.co-view-quote .cq-discount-editor > label { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: #51688e; }
  .order-screen.compact-order.co-view-quote .cq-discount-switch { display: inline-flex; align-items: center; padding: 2px; border: 1px solid #d9d7ef; border-radius: 7px; background: #f0edf9; }
  .order-screen.compact-order.co-view-quote .cq-discount-switch > .co-btn { min-height: 26px; padding: 4px 8px; border-radius: 5px; border: 0; }
  .order-screen.compact-order.co-view-quote .cq-discount-remove { min-height: 25px; margin-left: auto; padding: 3px; font-size: 11px; }
  .order-screen.compact-order.co-view-quote .cq-subtotal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; margin-top: 9px; color: #6b7f9e; font-size: 12px; }
  .order-screen.compact-order.co-view-quote .cq-money { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; padding: 10px 0; border-bottom: 1px solid #d6dded; font-size: 13px; color: #556d94; }
  .order-screen.compact-order.co-view-quote .cq-money strong { color: #243650; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
  .order-screen.compact-order.co-view-quote .cq-money.success strong { color: #0c8d52; }
  .order-screen.compact-order.co-view-quote .cq-money.due { border-bottom: 0; }
  .order-screen.compact-order.co-view-quote .cq-money.due strong { color: #16263e; font-size: 17px; }
  .order-screen.compact-order.co-view-quote .cq-money.warn { color: #9d6412; }
  .order-screen.compact-order.co-view-quote .cq-money.warn strong { color: #9d6412; }
  .order-screen.compact-order.co-view-quote .cq-summary-warning { display: flex; align-items: flex-start; gap: 8px; margin: 15px 0; padding: 9px 10px; border: 1px solid #efd19c; border-radius: 8px; background: linear-gradient(110deg,#fff6e5,#fffaf2); color: #9a5e0e; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
  .order-screen.compact-order.co-view-quote .cq-summary-warning > .co-icon { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 1px; }
  .order-screen.compact-order.co-view-quote .cq-save { width: 100%; min-height: 48px; margin: 9px 0 0; border-radius: 10px; font-size: 16px; font-weight: 700; }
  .order-screen.compact-order.co-view-quote .cq-save > .co-icon { width: 21px; height: 21px; }
  .order-screen.compact-order.co-view-quote .cq-cancel { width: 100%; min-height: 34px; margin: 8px 0 10px; border: 0; background: transparent; box-shadow: none; color: #52688f; font-size: 13px; }
  .order-screen.compact-order.co-view-quote .cq-preview { width: 100%; min-height: 43px; margin: 13px 0 5px; font-size: 14px; }
  .order-screen.compact-order.co-view-quote .cq-print { width: 100%; min-height: 33px; border: 0; color: #526b92; background: transparent; box-shadow: none; font-size: 13px; }
  .order-screen.compact-order.co-view-quote .cq-summary-documents { margin-top: 6px; padding-top: 5px; border-top: 1px solid #d6dded; }
  .order-screen.compact-order.co-view-quote .cq-readonly { margin: 14px 0; color: #6b7e9c; font-size: 12px; line-height: 1.45; }
  .order-screen.compact-order.co-view-quote .cq-summary .co-error,.order-screen.compact-order.co-view-quote .cq-error { margin: 12px 0; padding: 9px 10px; border: 1px solid #edc3cb; border-radius: 8px; background: #fff4f6; color: #ad3c55; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
  .order-screen.compact-order.co-view-quote .cq-comment { padding: 0; }
  .order-screen.compact-order.co-view-quote .cq-comment-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 48px; padding: 10px 17px; border: 0; border-radius: 14px; background: transparent; box-shadow: none; color: #2d4366; font-size: 15px; text-align: left; white-space: normal; }
  .order-screen.compact-order.co-view-quote .cq-comment-toggle > span { display: inline-flex; align-items: center; gap: 9px; }
  .order-screen.compact-order.co-view-quote .cq-comment-toggle > strong { margin-right: auto; }
  .order-screen.compact-order.co-view-quote .cq-comment-toggle .co-icon { color: var(--crm-violet); }
  .order-screen.compact-order.co-view-quote .cq-comment textarea { display: block; width: calc(100% - 28px); min-height: 100px; margin: 0 14px 14px; resize: vertical; font-size: 14px; line-height: 1.5; }
  .order-screen.compact-order.co-view-quote .cq-comment p { padding: 0 17px 14px; color: #566d90; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
  .order-screen.compact-order.co-view-quote .cq-inline-editor { margin: 11px 0; padding: 12px; border: 1px solid #d1c6ed; border-radius: 10px; background: linear-gradient(115deg,#faf7ff,#f4fcff); }
  .order-screen.compact-order.co-view-quote .cq-inline-editor h3 { margin: 0 0 10px; color: #273854; font-size: 16px; }
  .order-screen.compact-order.co-view-quote .cq-inline-editor .cq-inline-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 12px; }
  .order-screen.compact-order.co-view-quote .cq-inline-editor label { display: flex; flex-direction: column; gap: 5px; min-width: 0; color: #53698d; font-size: 12px; }
  .order-screen.compact-order.co-view-quote .cq-inline-editor :is(input,select) { width: 100%; min-width: 0; }
  .order-screen.compact-order.co-view-quote .cq-inline-editor .cq-inline-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
  .order-screen.compact-order.co-view-quote .cq-quick-add { margin: 10px 0 12px; padding: 12px; border: 1px solid #d0c4ed; border-radius: 10px; background: linear-gradient(115deg,#faf7ff,#f4fcff); }
  .order-screen.compact-order.co-view-quote .cq-quick-add > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
  .order-screen.compact-order.co-view-quote .cq-quick-add h3 { margin: 0; color: #273854; font-size: 16px; line-height: 1.35; }
  .order-screen.compact-order.co-view-quote .cq-quick-add > header .co-btn { width: 29px; min-height: 29px; padding: 4px; }
  .order-screen.compact-order.co-view-quote .cq-quick-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px 12px; }
  .order-screen.compact-order.co-view-quote .cq-quick-add:has(.service-category-picker) .cq-quick-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .order-screen.compact-order.co-view-quote .cq-quick-fields > label { display: flex; flex-direction: column; gap: 5px; min-width: 0; color: #53698d; font-size: 12px; }
  .order-screen.compact-order.co-view-quote .cq-quick-fields > label:first-child { grid-column: 1 / -1; }
  .order-screen.compact-order.co-view-quote .cq-quick-fields :is(input,select) { width: 100%; min-width: 0; }
  .order-screen.compact-order.co-view-quote .cq-quick-note { margin-top: 9px; color: #6b7f9c; font-size: 12px; line-height: 1.45; }
  .order-screen.compact-order.co-view-quote .cq-quick-save-service { display: flex; align-items: flex-start; gap: 8px; margin-top: 11px; color: #5b6e8d; font-size: 12px; line-height: 1.5; }
  .order-screen.compact-order.co-view-quote .cq-quick-save-service > input { width: 17px; height: 17px; min-height: 17px; flex: 0 0 17px; margin-top: 1px; }
  .order-screen.compact-order.co-view-quote .cq-quick-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
  .order-screen.compact-order.co-view-quote [hidden] { display: none!important; }
}

@media screen and (min-width: 1100px) {
  .shell.is-order-view.nav-collapsed:has(.co-view-quote) { --quote-rail: clamp(68px,5.4vw,92px); grid-template-columns: var(--quote-rail) minmax(0,1fr); }
  .shell.is-order-view.nav-collapsed:has(.co-view-quote) > .sidebar { width: var(--quote-rail); }
}

@media screen and (max-width: 1380px) {
  .order-screen.compact-order.co-view-quote .cq-layout { grid-template-columns: minmax(0,2.22fr) minmax(270px,1fr); gap: 13px; }
  .order-screen.compact-order.co-view-quote .cq-workspace { padding: 12px; }
  .order-screen.compact-order.co-view-quote .cq-summary { padding: 14px; }
  .order-screen.compact-order.co-view-quote .cq-heading,.order-screen.compact-order.co-view-quote .cq-heading > h2 { font-size: 21px; }
  .order-screen.compact-order.co-view-quote .cq-total { padding: 13px; }
  .order-screen.compact-order.co-view-quote .cq-total > strong { font-size: 20px; }
}
@media screen and (max-width: 1180px) {
  .shell.is-order-view:has(.co-view-quote) > .main > .content { padding: 14px 16px 18px; }
  .order-screen.compact-order.co-view-quote .cq-layout { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .order-screen.compact-order.co-view-quote .cq-aside { position: static; width: 100%; max-height: none; overflow: visible; }
  .order-screen.compact-order.co-view-quote .cq-summary { max-width: none; }
  .order-screen.compact-order.co-view-quote .cq-summary .cq-heading { font-size: 22px; }
  .order-screen.compact-order.co-view-quote .cq-total [data-quote-amount] { font-size: 28px; }
  .order-screen.compact-order.co-view-quote .co-header-actions { flex-wrap: wrap; }
}
@media screen and (max-width: 740px) {
  .shell.is-order-view:has(.co-view-quote) > .main > .content { padding: 12px 10px 18px; }
  .shell.is-order-view:has(.co-view-quote) .topbar .breadcrumb { font-size: 13px; }
  .order-screen.compact-order.co-view-quote { min-height: 0; }
  .order-screen.compact-order.co-view-quote .co-header { padding-bottom: 9px; }
  .order-screen.compact-order.co-view-quote .co-title-row { gap: 7px; }
  .order-screen.compact-order.co-view-quote .co-title-row > .co-ov-order-heading { max-width: 100%; font-size: 21px; }
  .order-screen.compact-order.co-view-quote .co-title-row > .co-chip { min-height: 27px; padding: 5px 8px; font-size: 12px; }
  .order-screen.compact-order.co-view-quote > .co-tabs { min-height: 42px; gap: 4px; margin-bottom: 10px; }
  .order-screen.compact-order.co-view-quote > .co-tabs .co-tab { min-height: 34px; padding: 7px 9px; font-size: 12px; }
  .order-screen.compact-order.co-view-quote .cq-workspace { padding: 10px; }
  .order-screen.compact-order.co-view-quote .cq-card { border-radius: 11px; }
  .order-screen.compact-order.co-view-quote .cq-card-head { gap: 7px 9px; margin-inline: 1px; }
  .order-screen.compact-order.co-view-quote .cq-heading { gap: 7px; font-size: 19px; }
  .order-screen.compact-order.co-view-quote .cq-heading > h2 { gap: 7px; font-size: 19px; }
  .order-screen.compact-order.co-view-quote .cq-heading > .co-icon { width: 22px; height: 22px; }
  .order-screen.compact-order.co-view-quote .cq-count { min-height: 21px; font-size: 11px; padding: 3px 7px; }
  .order-screen.compact-order.co-view-quote .cq-history { min-height: 24px; font-size: 11px; padding: 2px; }
  .order-screen.compact-order.co-view-quote .cq-period-caption { margin: 5px 1px 10px; font-size: 11px; }
  .order-screen.compact-order.co-view-quote .cq-search-control { min-height: 39px; }
  .order-screen.compact-order.co-view-quote .cq-search-control > input { font-size: 16px; min-height: 37px; }
  .order-screen.compact-order.co-view-quote .cq-search-results { max-height: min(360px,55dvh); }
  .order-screen.compact-order.co-view-quote .cq-search-option { flex-wrap: wrap; gap: 6px 9px; padding: 9px; }
  .order-screen.compact-order.co-view-quote .cq-search-option > span:first-of-type { flex-basis: calc(100% - 45px); }
  .order-screen.compact-order.co-view-quote .cq-product-available { margin-left: 34px; }
  .order-screen.compact-order.co-view-quote .cq-product-price { margin-left: auto; font-size: 13px; }
  .order-screen.compact-order.co-view-quote .cq-product-add { width: 25px; height: 25px; flex-basis: 25px; }
  .order-screen.compact-order.co-view-quote .cq-search-credit,.order-screen.compact-order.co-view-quote .cq-search-caption { padding-top: 6px; font-size: 11px; }
  .order-screen.compact-order.co-view-quote .cq-table th { font-size: 11px; }
  .order-screen.compact-order.co-view-quote .cq-table .cq-line :is(input,select) { font-size: 16px; }
  .order-screen.compact-order.co-view-quote .cq-kit-scroll { max-height: 210px; }
  .order-screen.compact-order.co-view-quote .cq-availability { gap: 5px; padding: 7px 8px; }
  .order-screen.compact-order.co-view-quote .cq-billing-hint { flex: 1 0 100%; font-size: 11px; }
  .order-screen.compact-order.co-view-quote .cq-summary { padding: 14px; }
  .order-screen.compact-order.co-view-quote .cq-summary .cq-card-head { margin-bottom: 12px; }
  .order-screen.compact-order.co-view-quote .cq-summary .cq-heading { font-size: 22px; }
  .order-screen.compact-order.co-view-quote .cq-total { min-height: 63px; padding: 13px 14px; }
  .order-screen.compact-order.co-view-quote .cq-total [data-quote-amount] { font-size: 26px; }
  .order-screen.compact-order.co-view-quote .cq-save { font-size: 16px; }
  .order-screen.compact-order.co-view-quote .cq-comment-toggle { padding: 10px 13px; font-size: 13px; }
  .order-screen.compact-order.co-view-quote .cq-comment textarea { font-size: 16px; }
  .order-screen.compact-order.co-view-quote .cq-inline-editor .cq-inline-fields { grid-template-columns: minmax(0,1fr); }
  .order-screen.compact-order.co-view-quote .cq-inline-editor :is(input,select) { font-size: 16px; }
  .order-screen.compact-order.co-view-quote .cq-quick-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .order-screen.compact-order.co-view-quote .cq-quick-fields :is(input,select) { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .order-screen.compact-order.co-view-quote .co-btn { transition: none; }
  .order-screen.compact-order.co-view-quote .co-btn:hover:not(:disabled) { transform: none; }
}
@media print {
  .shell.is-order-view:has(.co-view-quote) > .sidebar,.shell.is-order-view:has(.co-view-quote) .topbar { display: none!important; }
  .shell.is-order-view:has(.co-view-quote) { display: block; background: #fff; }
  .shell.is-order-view:has(.co-view-quote) > .main { height: auto; overflow: visible; }
  .shell.is-order-view:has(.co-view-quote) > .main > .content { padding: 0; overflow: visible; background: #fff; }
  .order-screen.compact-order.co-view-quote,.order-screen.compact-order.co-view-quote > .co-tab-content { display: block; height: auto; overflow: visible; }
  .order-screen.compact-order.co-view-quote .cq-layout { display: block; }
  .order-screen.compact-order.co-view-quote .cq-card { border: 1px solid #ddd; box-shadow: none; background: #fff; margin-bottom: 12px; }
  .order-screen.compact-order.co-view-quote :is(.co-tabs,.co-header-actions,.cq-search-anchor,.cq-search-credit,.cq-card-head-actions,.cq-save,.cq-cancel,.cq-preview,.cq-print,.cq-remove,.cq-inline-editor,.cq-save-area,.cq-undo,.cq-row-availability,.cq-availability,.cq-summary-warning) { display: none!important; }
  .order-screen.compact-order.co-view-quote .cq-table-wrap,.order-screen.compact-order.co-view-quote .cq-kit-scroll { overflow: visible; max-height: none; }
  .order-screen.compact-order.co-view-quote .cq-table { width: 100%; min-width: 0; border-collapse: collapse; font-size: 10pt; }
  .order-screen.compact-order.co-view-quote .cq-table th,.order-screen.compact-order.co-view-quote .cq-table td { padding: 5px; border-bottom: 1px solid #ddd; }
  .order-screen.compact-order.co-view-quote .cq-quantity > button { display: none; }
  .order-screen.compact-order.co-view-quote :is(input,select,textarea) { border: 0; box-shadow: none; padding: 0; color: #000; background: transparent; }
  .order-screen.compact-order.co-view-quote .cq-total { display: flex; justify-content: space-between; padding: 12px; color: #000; border-bottom: 1px solid #ccc; }
  .order-screen.compact-order.co-view-quote .cq-total::before,.order-screen.compact-order.co-view-quote .cq-total::after { display: none; }
}
