body.hurt-partner-mode [data-screen-panel="quote"] .crm-pipeline-toolbar,
body.hurt-partner-mode #quoteDealIdentity,
body.hurt-partner-mode #quoteWorkflowStatus,
body.hurt-partner-mode [data-quote-primary-action],
body.hurt-partner-mode [data-screen-panel="quote"] .form-grid[data-wholesale-only],
body.hurt-partner-mode [data-screen-panel="quote"] .actions:has([data-start-scratch-quote]),
body.hurt-partner-mode #quoteClientInput,
body.hurt-partner-mode .field:has(#quoteClientInput),
body.hurt-partner-mode #quoteJumpNav {display:none!important}
body:not(.hurt-partner-mode) #hurtDraftHeader {display:none}
#hurtSettings {width:min(1000px,96vw);max-height:90dvh;overflow:auto;border:0;border-radius:16px;padding:20px}
#hurtSettings input {min-width:95px;width:120px;min-height:44px}
#hurtSettings summary {padding:12px;font-weight:600;cursor:pointer}
#hurtSettings th,#hurtSettings td {padding:10px}

body.hurt-partner-mode #quoteSheet .hurt-empty-table-wrap {overflow-x:auto;width:100%}
body.hurt-partner-mode #quoteSheet .hurt-empty-table {display:table;width:100%;min-width:650px;table-layout:fixed}
body.hurt-partner-mode #quoteSheet .hurt-empty-table thead {display:table-header-group}
body.hurt-partner-mode #quoteSheet .hurt-empty-table tbody {display:table-row-group}
body.hurt-partner-mode #quoteSheet .hurt-empty-table tr {display:table-row}
body.hurt-partner-mode #quoteSheet .hurt-empty-table th,body.hurt-partner-mode #quoteSheet .hurt-empty-table td {display:table-cell;padding:10px;vertical-align:top}
body.hurt-partner-mode #quoteSheet .hurt-empty-table th:first-child {width:220px}
body.hurt-partner-mode #quoteSheet .hurt-empty-table input,body.hurt-partner-mode #quoteSheet .hurt-empty-table select {width:100%;min-width:0;min-height:44px}
body.hurt-partner-mode #quoteSheet .hurt-empty-table td::before {display:none}

/* The native shell already provides its own navigation and logout. */
html:has(#emperol-hurt-layout) body.hurt-partner-mode .topbar,
html:has(#emperol-hurt-layout) body.hurt-partner-mode .mobile-nav,
html:has(#emperol-hurt-layout) body.hurt-partner-mode .sidebar,
html:has(#emperol-hurt-layout) body.hurt-partner-mode #logoutButton,
html:has(#emperol-hurt-layout) body.hurt-partner-mode #caseContextBar {display:none!important}
html:has(#emperol-hurt-layout) body.hurt-partner-mode .workspace {padding:8px!important;padding-bottom:16px!important}
body.hurt-partner-mode [data-screen-panel="quote"] > .card.panel {display:flex;flex-direction:column;min-width:0}
body.hurt-partner-mode [data-screen-panel="quote"] > .card.panel > * {order:2}
body.hurt-partner-mode #hurtDraftHeader {order:0;margin:0;padding:10px;gap:6px}
body.hurt-partner-mode #hurtDraftHeader .actions {gap:6px;flex-wrap:wrap}
body.hurt-partner-mode #hurtSaveStatus:empty {display:none}
body.hurt-partner-mode #quoteSheet {order:1;margin-top:8px;min-width:0;width:100%}
body.hurt-partner-mode #quoteSheet .system-sheet {display:flex;flex-direction:column;overflow-x:auto}
body.hurt-partner-mode #quoteSheet .system-sheet > table,
body.hurt-partner-mode #quoteSheet .hurt-empty-table-wrap {order:0}
body.hurt-partner-mode #quoteSheet .system-sheet > :not(table):not(.hurt-empty-table-wrap):not(.hurt-grid-scroll) {order:1}
body.hurt-partner-mode #quoteSheet .system-sheet-head {padding:8px;gap:6px}
body.hurt-partner-mode #quoteSheet .quote-keyboard-hint {display:none}
body.hurt-partner-mode #quoteSheet .system-sheet > table > thead {display:table-header-group;position:static;width:auto;height:auto;clip-path:none;overflow:visible}
body.hurt-partner-mode #quoteSheet .system-sheet > table > tbody {display:table-row-group}
body.hurt-partner-mode #quoteSheet tr[data-quote-line] {display:table-row}
body.hurt-partner-mode #quoteSheet tr[data-quote-line]::before,
body.hurt-partner-mode #quoteSheet td::before {display:none;content:none}

body.hurt-partner-mode #quoteSheet .system-sheet > .panel-head {order:-1;padding:8px 10px;margin:0}

@media(max-width:900px) {
  body.hurt-partner-mode [data-screen-panel="quote"] > .card.panel {padding:5px!important;border-radius:8px}
  body.hurt-partner-mode #hurtDraftHeader {padding:5px;gap:4px}
  body.hurt-partner-mode #hurtDraftHeader .field {font-size:11px;gap:3px}
  body.hurt-partner-mode #hurtDraftHeader input {min-height:36px;padding:5px 8px;font-size:16px}
  body.hurt-partner-mode #hurtDraftHeader .actions {display:flex;justify-content:flex-start;gap:5px}
  body.hurt-partner-mode #hurtDraftHeader .btn {min-height:34px;padding:5px 9px;font-size:11px}
  body.hurt-partner-mode #quoteSheet .hurt-empty-table {width:100%;min-width:330px}
  body.hurt-partner-mode #quoteSheet .hurt-empty-table th,body.hurt-partner-mode #quoteSheet .hurt-empty-table td {padding:4px 3px;font-size:10px;width:56px;box-sizing:border-box}
  body.hurt-partner-mode #quoteSheet .hurt-empty-table th:first-child {width:100px}
  body.hurt-partner-mode #quoteSheet .hurt-empty-table th:nth-child(4) {width:40px}
  body.hurt-partner-mode #quoteSheet .hurt-empty-table input,body.hurt-partner-mode #quoteSheet .hurt-empty-table select {min-height:36px;font-size:16px;padding:4px 2px;box-sizing:border-box}
  body.hurt-partner-mode #quoteSheet .system-sheet > .panel-head {display:none}
  body.hurt-partner-mode #quoteSheet .system-sheet-head {font-size:11px;padding:5px}
  body.hurt-partner-mode #quoteSheet .system-sheet-head .btn {font-size:11px;padding:5px;min-height:34px}
  body.hurt-partner-mode .quote-inline-add {margin:6px 0}
  body.hurt-partner-mode .quote-inline-add .btn {min-height:36px;font-size:12px;padding:6px}
  body.hurt-partner-mode [data-screen-panel="quote"] > .card.panel > .panel-head h1 {display:none}
}
@media(max-width:900px) {
  body.hurt-partner-mode #quoteSheet .system-sheet {min-width:0;width:100%;max-width:100%}
  body.hurt-partner-mode #quoteSheet .hurt-empty-table-wrap {min-width:0;max-width:100%;box-sizing:border-box;padding:0}
}

/* One row per product, including its configuration, in a single scroll region. */
body.hurt-partner-mode #quoteSheet .system-sheet {min-width:0;width:100%;max-width:100%;overflow:visible}
body.hurt-partner-mode #quoteSheet .system-sheet > .hurt-grid-scroll {order:0;min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
body.hurt-partner-mode #quoteSheet .hurt-product-grid {table-layout:fixed;border-collapse:collapse;font-size:12px}
body.hurt-partner-mode #quoteSheet .hurt-product-grid th,
body.hurt-partner-mode #quoteSheet .hurt-product-grid td {display:table-cell;width:auto;box-sizing:border-box;padding:5px 6px;vertical-align:middle;border:1px solid #dce3e5;overflow-wrap:break-word}
body.hurt-partner-mode #quoteSheet .hurt-product-grid th {font-size:11px;font-weight:600;line-height:1.3;background:#f1f2f5}
body.hurt-partner-mode #quoteSheet .hurt-product-grid td {background:white}
body.hurt-partner-mode #quoteSheet .hurt-product-grid input,
body.hurt-partner-mode #quoteSheet .hurt-product-grid select {box-sizing:border-box;width:100%;min-width:0;min-height:36px;font-size:16px;padding:5px 3px;margin:0}
body.hurt-partner-mode #quoteSheet .hurt-product-grid label {display:block;font-size:11px}
body.hurt-partner-mode #quoteSheet .hurt-product-grid .actions {display:flex;flex-wrap:wrap;gap:3px}
body.hurt-partner-mode #quoteSheet .hurt-product-grid button {font-size:11px;min-height:32px;padding:4px 6px}
body.hurt-partner-mode #quoteSheet .hurt-product-grid .price-source {font-size:11px;line-height:1.3}
body.hurt-partner-mode #quoteSheet .hurt-product-grid .mph-terrain-matrix {min-width:0;grid-template-columns:40px repeat(4,minmax(28px,1fr));gap:2px}
body.hurt-partner-mode #quoteSheet .hurt-product-grid input[type=checkbox],
body.hurt-partner-mode #quoteSheet .hurt-product-grid input[type=radio] {width:18px;min-height:18px}
body.hurt-partner-mode #quoteSheet .hurt-product-grid th:first-child,
body.hurt-partner-mode #quoteSheet .hurt-product-grid td:first-child {position:sticky;left:0;z-index:1;text-align:center}
