/* XParts layout v2 (2026-09-28): list and quote desk closer to the legacy Bubble layout.
   Loaded after app.css/compact.css. Visual only: no markup hooks used by app.js are changed. */

/* ---------- Quote list: 5 cards per row, colored header by status ---------- */
.quote-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
@media(max-width:1500px){.quote-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1180px){.quote-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:860px){.quote-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){.quote-grid{grid-template-columns:1fr}}
.quote-card{--quote-color:#5b6773;--quote-tint:#eef1f4;display:flex;flex-direction:column}
.quote-card--pending{--quote-color:#1f3a5f;--quote-tint:#e7f0fb}
.quote-card--quoted{--quote-color:#1d6b3a;--quote-tint:#e5f4ea}
.quote-card--noquote{--quote-color:#8a5a00;--quote-tint:#fbf0d9}
.quote-card>header{padding:7px 12px;min-height:34px;box-sizing:border-box}
.quote-card>header strong{font-size:15px;letter-spacing:.01em}
.quote-card>header span{font-weight:700;letter-spacing:.03em;white-space:nowrap}
.quote-card-body{padding:9px 12px 10px;display:flex;flex-direction:column;flex:1}
.quote-card-body h2{font-size:14px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
.quote-card-reference{margin:3px 0 7px}
.quote-card dl{gap:3px}
.quote-card-footer{margin-top:auto;padding:0;background:none;border-radius:0;padding-top:9px}
.quote-card-status{background:var(--quote-color);color:#fff;border-radius:10px;padding:2px 9px;font-size:11px;font-weight:700;letter-spacing:.02em}
.quote-card-footer strong{background:var(--quote-tint);color:var(--quote-color);border-radius:6px;padding:3px 10px;font-size:12px}

/* ---------- Quote desk: legacy two-line PN rows ---------- */
.quote-desk{grid-template-columns:minmax(620px,1fr) minmax(520px,1fr)}
.inline-part{border-left-width:1px;border-radius:8px;padding:7px 9px;background:#eef5fc;border-color:#a9c9ea}
.inline-part.state-confirmed{background:#e7f5ec;border-color:#9fcfb1}
.inline-part.state-noquote{background:#fbe9ee;border-color:#e2a3b2}
.inline-part.is-selected{outline:2px solid #1668b8;outline-offset:0;background:#d9e9f9}
.inline-part.state-confirmed.is-selected{background:#d7eedf}
.inline-part.state-noquote.is-selected{background:#f6d9e0}
.inline-part-heading{margin-bottom:5px}
.inline-part-heading>strong{font-size:14px;color:#12303a}
.desk-left .compact-action.save-part:not(:disabled){background:#1d6b3a;border-color:#1d6b3a;color:#fff;font-weight:700}
.desk-left .compact-action.noquote-action:not(:disabled){background:#fff;border-color:#c2415d;color:#9b2c45;font-weight:700}
.desk-left .compact-action[data-support-url]{background:#1668b8;border-color:#1668b8;color:#fff;font-weight:700}
.desk-left .compact-action[data-part-action=delete]{color:#b42323;border-color:#e3a5a5}

/* 12-column grid, two rows:
   row 1: Description(4) Trace(2) Certificate(2) Warranty(2) Lead time(2)
   row 2: Qty req(1) Qty avail(1) MOQ(1) Condition(2) Unit(1) Price(2) Notes(4) */
.desk-left .inline-fields{grid-template-columns:repeat(12,minmax(0,1fr));gap:3px 6px}
.desk-left .inline-fields>div{grid-column:span 1;min-width:0}
.desk-left .inline-fields label{font-size:10px;line-height:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.desk-left .inline-fields>div:has([name=Description]){order:1;grid-column:span 4}
.desk-left .inline-fields>div:has([name=Trace]){order:2;grid-column:span 2}
.desk-left .inline-fields>div:has([name=Certificado]){order:3;grid-column:span 2}
.desk-left .inline-fields>div:has([name=Garantia]){order:4;grid-column:span 2}
.desk-left .inline-fields>div:has([name=Lead_Time]){order:5;grid-column:span 2}
.desk-left .inline-fields>div:has([name=Quantity]){order:6}
.desk-left .inline-fields>div:has([name=Qty_Disponivel]){order:7}
.desk-left .inline-fields>div:has([name=MOQ]){order:8}
.desk-left .inline-fields>div:has([name=Condition]){order:9;grid-column:span 2}
.desk-left .inline-fields>div:has([name=Unit]){order:10}
.desk-left .inline-fields>div:has([name=Preco_Unit]){order:11;grid-column:span 2}
.desk-left .inline-fields>div:has([name=Observacao]){order:12;grid-column:span 4}
.desk-left .inline-fields [name=Preco_Unit]{font-weight:700}
@media(max-width:1000px){.desk-left .inline-fields{grid-template-columns:repeat(6,minmax(0,1fr))}.desk-left .inline-fields>div{grid-column:span 2!important}.desk-left .inline-fields>div:has([name=Description]),.desk-left .inline-fields>div:has([name=Observacao]){grid-column:span 6!important}}

/* ---------- Supporting panel: section bars like the legacy screen ---------- */
.desk-support .support-heading{background:#4f5d6b;color:#fff;border-radius:6px 6px 0 0}
.desk-support .support-heading h3{color:#fff;text-transform:uppercase;letter-spacing:.05em}
.desk-support .support-heading label{color:#fff}
.desk-support .support-block[data-source=stock] .support-heading,.desk-support .support-block[data-source=consigned] .support-heading{background:#1f3a5f}
.desk-support .support-block{border:1px solid #d5dde5;border-radius:6px;overflow:hidden;background:#fff}
.desk-support [data-quote-offer]{background:#1668b8!important;border-color:#1668b8!important;color:#fff!important;font-weight:700}

/* History as a compact table: fixed layout, full value on hover (title) */
.desk-support .history-table{width:100%;table-layout:fixed;border-collapse:collapse}
.desk-support .history-table th,.desk-support .history-table td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.desk-support .history-table th.history-col-customer,.desk-support .history-table td.history-col-customer{width:16%}
.desk-support .history-table th.history-col-Observacao,.desk-support .history-table td.history-col-Observacao{width:12%}
.desk-support .history-table tr.support-noquote td{background:#fbe9ee}
.desk-support .history-table .history-col-Preco_Unit{font-weight:700}
.desk-support .support-heading h3{background:none!important;border:0;margin:0;padding:0}
.desk-support .history-table tr{display:table-row}
.desk-support .history-table th,.desk-support .history-table td{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;overflow-wrap:normal!important;word-break:normal!important;max-width:none}
/* Secondary history fields are in the row tooltip (title) to avoid a cramped table */
.desk-support .history-table .history-col-Atualizacao_User,.desk-support .history-table .history-col-Trace,.desk-support .history-table .history-col-Certificado,.desk-support .history-table .history-col-Garantia{display:none}
.desk-support .history-table .history-col-Atualizacao_Date{width:78px}
.desk-support .history-table .history-col-email_info_id{width:58px}
.desk-support .history-table .history-col-customer{width:auto}
.desk-support .history-table .history-col-seller{width:62px}
.desk-support .history-table .history-col-Condition{width:44px}
.desk-support .history-table .history-col-Quantity,.desk-support .history-table .history-col-Qty_Disponivel,.desk-support .history-table .history-col-MOQ{width:40px}
.desk-support .history-table .history-col-Preco_Unit{width:70px}
.desk-support .history-table .history-col-Lead_Time{width:78px}
.desk-support .history-table .history-col-Observacao{width:88px}
.desk-support .history-table tbody tr{cursor:help}

/* ---------- v2.1: denser quote desk (closer to the approved mockup) ---------- */
/* Left column as a wrapping flow: header / [Add PN · legend · refresh+show] / items */
.desk-left{display:flex;flex-wrap:wrap;align-items:center;column-gap:10px;align-content:flex-start}
.desk-left>*{flex:0 0 100%;order:4;min-width:0}
.desk-left>.quote-header-compact{order:0}
.desk-left>.quote-add-inline{order:1;flex:0 1 auto;margin:8px 0}
.desk-left>.color-key{order:2;flex:0 1 auto;margin:8px 0}
.desk-left>.desk-toolbar{order:3;flex:1 1 auto;justify-content:flex-end;margin:8px 0}
.desk-left>.desk-toolbar strong{margin-right:auto;margin-left:6px}
.quote-add-inline label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.quote-add-inline .pn-search{min-width:200px;max-width:240px}
.content .quote-add-inline input,.content .quote-add-inline .button{height:30px!important;min-height:30px!important;padding-top:0;padding-bottom:0}
.color-key{gap:10px;font-size:11px;font-weight:600}

/* Customer header: 28px fields, legacy grid (Client|Contact|Phone / Address|Email / Country|Region|Save) */
.quote-header-compact{padding:8px 12px}
.content .customer-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px 8px}
.content .customer-grid label{font-size:10.5px;margin-bottom:1px}
.content .customer-grid input{height:28px!important;min-height:28px!important;font-size:13px;padding:2px 7px}
.customer-grid .customer-Client_Company_Name{grid-column:1/4}
.customer-grid .customer-Client_Contact_Name{grid-column:4/5}
.customer-grid .customer-Client_Phone{grid-column:5/7}
.customer-grid .customer-Client_Address{grid-column:1/4}
.customer-grid .customer-Client_Email{grid-column:4/7}
.customer-grid .customer-Client_Country{grid-column:1/3}
.customer-grid .customer-cliente_regiao{grid-column:3/5}
.customer-save{width:calc(33.33% - 6px);margin:-28px 0 0 auto;height:28px}
.customer-save .compact-action{height:28px!important;min-height:28px!important;padding:0 12px!important;background:#1668b8;border-color:#1668b8;color:#fff;font-weight:700;font-size:12px}
.quote-meta{font-size:12px}
.quote-admin select{height:28px}

/* PN rows: actions on the heading line, 28px fields */
.desk-left .inline-part{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:6px;align-items:center}
.desk-left .inline-part>.inline-part-heading{grid-column:1;margin-bottom:4px}
.desk-left .inline-part>.part-record-actions{grid-column:2;margin:0 0 4px}
.desk-left .inline-part>fieldset,.desk-left .inline-part>.inline-result{grid-column:1/-1}
.desk-left .inline-part-heading .compact-action,.desk-left .part-record-actions .compact-action{height:24px!important;min-height:24px!important;padding:0 9px!important;font-size:11px;line-height:22px}
.content .desk-left .inline-fields input,.content .desk-left .inline-fields select{height:28px!important;min-height:28px!important;font-size:12.5px;padding:2px 6px}
.desk-left .inline-fields .money-input input{padding-left:16px}
.content .customer-grid .customer-Email_Title{grid-row:1}
.content .customer-grid .customer-Client_Company_Name,.content .customer-grid .customer-Client_Contact_Name,.content .customer-grid .customer-Client_Phone{grid-row:2}
.content .customer-grid .customer-Client_Address,.content .customer-grid .customer-Client_Email{grid-row:3}
.content .customer-grid .customer-Client_Country,.content .customer-grid .customer-cliente_regiao{grid-row:4}
@media(max-width:650px){.content .customer-grid .customer-field{grid-row:auto!important}.customer-save{width:auto;margin-top:6px}}

/* ---------- v2.2 ---------- */
/* Original email button no longer steals width from the customer grid */
.quote-header-compact{position:relative}
.quote-header-compact>.email-original{position:absolute;top:7px;right:12px;float:none;margin:0;height:26px!important;min-height:26px!important;padding:0 10px!important;line-height:24px;font-size:12px}
.quote-header-compact .quote-meta{padding-right:130px;min-height:26px;display:flex;align-items:center;gap:14px;border-bottom:1px solid #e3e9ee;margin-bottom:6px}
/* Supporting tables: one line per record, full value on hover */
.desk-support .support-block table{width:100%;table-layout:fixed;border-collapse:collapse}
.desk-support .support-block th,.desk-support .support-block td{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;overflow-wrap:normal!important;word-break:normal!important}
.desk-support .support-block th:last-child,.desk-support .support-block td:last-child{overflow:visible!important}
.desk-support .support-block:has([data-quote-offer]) th:last-child{width:84px}
.desk-support .support-block tbody tr:nth-child(even) td{background:#f7f9fb}
.desk-support .support-block tbody tr:hover td{background:#e7f0fb}
.desk-support .support-filters{margin:4px 0 6px;font-size:12px}
.desk-support .support-title{padding-bottom:4px;border-bottom:1px solid #e3e9ee;margin-bottom:4px}
.desk-support .support-title h2{font-size:17px}
.desk-support .support-title .compact-action{margin-left:auto}

/* ---------- v2.3: column widths by content (numbers narrow, text wider) ---------- */
.desk-support .support-block[data-source=offers] th:nth-child(1){width:13%}
.desk-support .support-block[data-source=offers] th:nth-child(2){width:8%}
.desk-support .support-block[data-source=offers] th:nth-child(3),.desk-support .support-block[data-source=offers] th:nth-child(4){width:5%}
.desk-support .support-block[data-source=offers] th:nth-child(5){width:11%}
.desk-support .support-block[data-source=offers] th:nth-child(6){width:8%}
.desk-support .support-block[data-source=offers] th:nth-child(7){width:15%}
.desk-support .support-block[data-source=offers] th:nth-child(8){width:14%}
.desk-support .support-block[data-source=consigned] th:nth-child(1){width:16%}
.desk-support .support-block[data-source=consigned] th:nth-child(2){width:9%}
.desk-support .support-block[data-source=consigned] th:nth-child(3),.desk-support .support-block[data-source=consigned] th:nth-child(4){width:6%}
.desk-support .support-block[data-source=consigned] th:nth-child(5){width:10%}
.desk-support .support-block[data-source=consigned] th:nth-child(6){width:13%}
.desk-support .support-block[data-source=stock] th:nth-child(1){width:16%}
.desk-support .support-block[data-source=stock] th:nth-child(2){width:10%}
.desk-support .support-block[data-source=stock] th:nth-child(3),.desk-support .support-block[data-source=stock] th:nth-child(4){width:7%}
.desk-support .support-block[data-source=stock] th:nth-child(5){width:15%}
.desk-support .pn-detail-scroll:focus{outline:none}
.desk-support .pn-detail-scroll:focus-visible{outline:2px solid #1668b8;outline-offset:-2px}
.desk-support .support-block td[title*=": $"],.desk-support .support-block td:has(+ td [data-quote-offer]){font-variant-numeric:tabular-nums}

/* ---------- v2.4 ---------- */
/* 1. Quote screen: sidebar collapses to icons; hovering it opens the full menu over the page */
@media(min-width:761px){
body:has(.quote-desk) .sidebar{width:64px;padding:22px 8px;overflow:hidden;transition:width .15s ease;white-space:nowrap}
body:has(.quote-desk) .workspace{margin-left:64px}
body:has(.quote-desk) .sidebar .wordmark{font-size:26px;margin:0 0 22px 12px}
body:has(.quote-desk) .sidebar .wordmark span,body:has(.quote-desk) .sidebar .nav-caption,body:has(.quote-desk) .sidebar .nav-legacy,body:has(.quote-desk) .sidebar .nav-group,body:has(.quote-desk) .sidebar .sidebar-bottom{display:none}
body:has(.quote-desk) .sidebar nav a{font-size:0;justify-content:center;padding:10px 0;gap:0}
body:has(.quote-desk) .sidebar nav a span{font-size:17px}
body:has(.quote-desk) .sidebar:hover,body:has(.quote-desk) .sidebar:focus-within{width:228px;padding:22px 14px;box-shadow:6px 0 24px #0b1f2640}
body:has(.quote-desk) .sidebar:hover .wordmark span,body:has(.quote-desk) .sidebar:focus-within .wordmark span{display:inline}
body:has(.quote-desk) .sidebar:hover .nav-caption,body:has(.quote-desk) .sidebar:hover .nav-group,body:has(.quote-desk) .sidebar:hover .nav-legacy,body:has(.quote-desk) .sidebar:focus-within .nav-caption,body:has(.quote-desk) .sidebar:focus-within .nav-group{display:block}
body:has(.quote-desk) .sidebar:hover .sidebar-bottom{display:flex}
body:has(.quote-desk) .sidebar:hover nav a,body:has(.quote-desk) .sidebar:focus-within nav a{font-size:12px;justify-content:flex-start;padding:9px 12px;gap:14px}
body:has(.quote-desk) .sidebar:hover nav a span,body:has(.quote-desk) .sidebar:focus-within nav a span{font-size:inherit}
}

/* 2. Status/Rep on the RFQ line (admin), next to Original email */
.quote-header-compact:has(.quote-admin) .quote-meta{padding-right:560px}
.quote-header-compact>.quote-admin{position:absolute;top:6px;right:128px;display:flex;align-items:center;gap:8px;margin:0}
.quote-header-compact>.quote-admin label{min-width:0;display:flex;align-items:center;gap:5px;font-size:11px;font-weight:600;color:#4b5967;margin:0}
.quote-header-compact>.quote-admin select{height:26px!important;min-height:26px!important;width:130px;padding:0 6px;font-size:12px}
.quote-header-compact>.quote-admin .compact-action{height:26px!important;min-height:26px!important;padding:0 10px!important;background:#12303a;border-color:#12303a;color:#fff;font-weight:700}
@media(max-width:1500px){.quote-header-compact:has(.quote-admin) .quote-meta{padding-right:130px}.quote-header-compact>.quote-admin{position:static;margin:0 0 6px}}

/* 3. Supporting panel fills the screen height; history and suppliers take the remaining space */
@media(min-width:1101px){
.quote-desk>.desk-support{position:sticky;top:10px;height:calc(100vh - 250px);min-height:560px;display:flex;flex-direction:column;overflow:hidden}
.quote-desk>.desk-support>*{flex:0 0 auto}
/* (v2.4 growth rules replaced in v2.8: every table shows up to 5 rows, see fitDetailRows) */
}

/* ---------- v2.5: quote title bar inside the header card (as in the mockup) ---------- */
.quote-header-compact .quote-titlebar{display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;font-size:13px;min-height:34px;padding:0 130px 7px 0;margin-bottom:6px}
.quote-titlebar .quote-back{font-size:12px;font-weight:600;color:#1668b8;text-decoration:none;white-space:nowrap}
.quote-titlebar h1{margin:0;font-size:22px;line-height:28px;font-weight:700;color:#12303a;letter-spacing:-.01em;white-space:nowrap}
.quote-titlebar b{color:#4b5967;font-weight:600;margin-right:3px}
.quote-status-pill{--pill:#5b6773;background:var(--pill);color:#fff;font-size:11px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;padding:3px 10px;border-radius:10px;white-space:nowrap}
.quote-status--pending{--pill:#1f3a5f}.quote-status--quoted{--pill:#1d6b3a}.quote-status--noquote{--pill:#8a5a00}.quote-status--order{--pill:#65509c}.quote-status--canceled{--pill:#91443e}
.quote-titlebar .quote-review-link{margin-left:auto;height:26px!important;min-height:26px!important;padding:0 12px!important;line-height:24px;font-size:12px;font-weight:700;background:#eef5fc;border-color:#1668b8;color:#1668b8}
.quote-header-compact>.email-original{top:9px}
.quote-header-compact:has(.quote-admin) .quote-titlebar{padding-right:560px}
@media(max-width:1500px){.quote-header-compact:has(.quote-admin) .quote-titlebar{padding-right:130px}}
/* read-only header values look like the fields */
.quote-header-compact .header-value{min-height:28px;display:flex;align-items:center;padding:2px 7px;background:#f3f6f8;border:1px solid #e1e7ec;border-radius:5px;font-size:13px}
/* admin Status/Rep: own compact row under the title bar (the left pane is too narrow for one line) */
.quote-header-compact:has(.quote-admin) .quote-titlebar{padding-right:130px}
.quote-header-compact>.quote-admin{position:static;margin:0 0 6px;padding-bottom:6px;border-bottom:1px solid #e3e9ee}

/* ---------- v2.6: round icon buttons like the mockup (text kept for screen readers) ---------- */
.desk-left .inline-part-heading .compact-action,.desk-left .part-record-actions .compact-action:not([data-cancel-part]),.quote-header-compact>.email-original{
  position:relative;width:30px!important;height:30px!important;min-height:30px!important;padding:0!important;border-radius:50%;font-size:0!important;line-height:0;color:transparent;overflow:hidden;flex:0 0 30px}
.desk-left .inline-part-heading .compact-action::before,.desk-left .part-record-actions .compact-action:not([data-cancel-part])::before,.quote-header-compact>.email-original::before{
  content:"";position:absolute;inset:0;margin:auto;width:16px;height:16px;background:var(--ic,#fff);-webkit-mask:var(--svg) center/contain no-repeat;mask:var(--svg) center/contain no-repeat}
.desk-left .compact-action[data-support-url]{background:#1668b8!important;border:0!important;--ic:#fff;--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 11v7M12 6.5h.01'/%3E%3C/svg%3E")}
.desk-left .compact-action[data-unlock]{background:#fff!important;border:1.5px solid #1f3a5f!important;--ic:#1f3a5f;--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16z'/%3E%3C/svg%3E")}
.desk-left .compact-action.save-part{background:#1d6b3a!important;border:0!important;--ic:#fff;--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E")}
.desk-left .compact-action.noquote-action{background:#c2415d!important;border:0!important;--ic:#fff;--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 14V3H7l-3 9v2h6l-1 5 2 2 6-7zM17 3h3v11h-3'/%3E%3C/svg%3E")}
.desk-left .compact-action[data-part-action=clone]{background:#fff!important;border:1.5px solid #1668b8!important;--ic:#1668b8;--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Crect x='8' y='8' width='12' height='12' rx='2'/%3E%3Cpath d='M16 8V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h3'/%3E%3C/svg%3E")}
.desk-left .compact-action[data-part-action=delete]{background:#fff!important;border:1.5px solid #d64545!important;--ic:#d64545;--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13'/%3E%3C/svg%3E")}
.quote-header-compact>.email-original{background:#eef5fc!important;border:1.5px solid #1668b8!important;--ic:#1668b8;top:8px;--svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E")}
.desk-left .compact-action:disabled{opacity:.3;cursor:not-allowed}
.desk-left .compact-action:not(:disabled):hover{filter:brightness(1.12);box-shadow:0 0 0 3px #1668b826}
.desk-left .inline-part-heading{gap:6px}
.desk-left .inline-part-heading [data-support-url]{margin-left:auto}
.desk-left .part-record-actions{gap:6px}
.quote-header-compact .quote-titlebar{padding-right:44px}
.quote-header-compact:has(.quote-admin) .quote-titlebar{padding-right:44px}
.quote-header-compact>.email-original{position:absolute!important;top:8px;right:12px;left:auto}

/* ---------- Supplier Information entry row (legacy bottom bar) ---------- */
.supplier-add{border:1px solid #d5dde5;border-top:3px solid #4f5d6b;border-radius:6px;background:#f7f9fb;padding:6px 8px;margin-top:6px;flex:0 0 auto}
.supplier-add-grid{display:grid;grid-template-columns:52px 1.3fr 1fr 1fr .6fr .6fr .7fr .8fr 1fr 1.3fr 1.1fr 1fr 34px;gap:4px 5px;align-items:end}
.supplier-add-grid label{display:block;font-size:10px;font-weight:600;color:#4b5967;margin-bottom:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.supplier-add-grid input:not([type=checkbox]),.supplier-add-grid select{width:100%;min-width:0;box-sizing:border-box;height:26px;padding:1px 5px;font-size:12px;border:1px solid #c5d0db;border-radius:4px;background:#fff}
.supplier-add-stock{display:flex!important;flex-direction:column;align-items:center;gap:3px;margin:0!important}
.supplier-add-stock input{width:16px;height:16px;margin:0}
.supplier-add-notes{grid-column:span 1}
.supplier-add-grid [data-supplier-forecast][hidden]{display:none}
.supplier-add:has([data-supplier-forecast]:not([hidden])) .supplier-add-grid{grid-template-columns:52px 1.3fr 1fr 1fr .6fr .6fr .7fr .8fr 1fr 1.3fr 1fr 1fr 1fr 34px}
.supplier-add-save{width:30px;height:30px;border-radius:50%;border:0;background:#1668b8;color:transparent;font-size:0;position:relative;cursor:pointer;align-self:end}
.supplier-add-save::before{content:"";position:absolute;inset:0;margin:auto;width:16px;height:16px;background:#fff;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M5 4h11l3 3v13H5z'/%3E%3Cpath d='M8 4v5h7V4M8 20v-6h8v6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M5 4h11l3 3v13H5z'/%3E%3Cpath d='M8 4v5h7V4M8 20v-6h8v6'/%3E%3C/svg%3E") center/contain no-repeat}
.supplier-add-save:disabled{opacity:.4}
.supplier-add .inline-result{margin:3px 0 0;font-size:12px;min-height:0}
.supplier-add .inline-result.error{color:#b42323}
.offer-expired{color:#8a96a3}
@media(max-width:1500px){.supplier-add-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}.supplier-add-save{grid-column:6}}

/* column widths after dates/users were added (2026-09-28) */
.desk-support .support-block[data-source=offers] th:nth-child(1){width:74px}
.desk-support .support-block[data-source=offers] th:nth-child(2){width:11%}
.desk-support .support-block[data-source=offers] th:nth-child(3){width:8%}
.desk-support .support-block[data-source=offers] th:nth-child(4){width:8%}
.desk-support .support-block[data-source=offers] th:nth-child(5){width:6%}
.desk-support .support-block[data-source=offers] th:nth-child(6){width:5%}
.desk-support .support-block[data-source=offers] th:nth-child(7){width:5%}
.desk-support .support-block[data-source=offers] th:nth-child(8){width:9%}
.desk-support .support-block[data-source=offers] th:nth-child(9){width:8%}
.desk-support .support-block[data-source=offers] th:nth-child(10){width:12%}
.desk-support .support-block[data-source=offers] th:nth-child(11){width:11%}
.desk-support .support-block[data-source=offers] th:nth-child(12){width:auto}
.desk-support .support-block[data-source=offers] th:nth-child(13){width:10%}
.desk-support .support-block[data-source=consigned] th:nth-child(1){width:13%}
.desk-support .support-block[data-source=consigned] th:nth-child(2){width:7%}
.desk-support .support-block[data-source=consigned] th:nth-child(3){width:5%}
.desk-support .support-block[data-source=consigned] th:nth-child(4){width:5%}
.desk-support .support-block[data-source=consigned] th:nth-child(5){width:8%}
.desk-support .support-block[data-source=consigned] th:nth-child(6){width:10%}
.desk-support .support-block[data-source=consigned] th:nth-child(7){width:auto}
.desk-support .support-block[data-source=consigned] th:nth-child(8){width:74px}
.desk-support .support-block[data-source=consigned] th:nth-child(9){width:74px}
.desk-support .support-block[data-source=consigned] th:nth-child(10){width:11%}
.desk-support .support-block[data-source=stock] th:nth-child(1){width:10%}
.desk-support .support-block[data-source=stock] th:nth-child(2){width:10%}
.desk-support .support-block[data-source=stock] th:nth-child(3){width:7%}
.desk-support .support-block[data-source=stock] th:nth-child(4){width:5%}
.desk-support .support-block[data-source=stock] th:nth-child(5){width:5%}
.desk-support .support-block[data-source=stock] th:nth-child(6){width:9%}
.desk-support .support-block[data-source=stock] th:nth-child(7){width:auto}
.desk-support .support-block[data-source=stock] th:nth-child(8){width:74px}
.desk-support .support-block[data-source=stock] th:nth-child(9){width:11%}
.desk-support .support-block[data-source=offers] th:nth-child(12){width:8%}
.desk-support .support-block[data-source=offers] th:nth-child(13){width:9%}
.desk-support .support-block[data-source=offers] th:nth-child(4){width:7%}
.content .supplier-add-grid input:not([type=checkbox]),.content .supplier-add-grid select{height:26px!important;min-height:26px!important;padding:1px 5px!important;font-size:12px!important}
.supplier-add-grid>div,.supplier-add-grid>label{min-width:0}

/* v2.7: supplier row order = In stock | Est. avail | Company | Location | Contact | Qty | MOQ | Cond | Price | Trace | Cert | Lead time | Notes | Save */
.supplier-add-grid{grid-template-columns:52px 1.3fr 1fr 1fr .6fr .6fr .7fr .8fr 1fr 1.3fr 1fr 1fr 34px}
.supplier-add:has([data-supplier-forecast]:not([hidden])) .supplier-add-grid{grid-template-columns:52px 1fr 1.3fr 1fr 1fr .6fr .6fr .7fr .8fr 1fr 1.3fr 1fr 1fr 34px}
/* Part information: PN, description, then tags and actions */
.desk-support .support-title{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px}
.desk-support .support-title .eyebrow{order:0;flex-basis:100%}
.desk-support .support-title h2{order:1}
.desk-support .support-title p:not(.eyebrow){order:2;flex:0 1 auto;font-size:13px}
.desk-support .support-title .pn-tag{order:3}
.desk-support .support-title .compact-action{order:4;margin-left:auto}
/* group filters live in the group header bar */
.desk-support .support-heading label{display:flex;align-items:center;gap:5px;font-size:11px;font-weight:600;white-space:nowrap;margin-left:auto}
.desk-support .support-heading{display:flex;align-items:center;gap:8px}

/* ---------- v2.8 ---------- */
/* Quote 40% / part information 60% */
@media(min-width:1101px){.quote-desk{grid-template-columns:minmax(0,2fr) minmax(0,3fr)}}
/* Legacy history hidden in the quote desk (space goes to the other groups) */
.desk-support .legacy-support{display:none}
/* Every group shows at most 5 rows (JS sets max-height), scrolls beyond, shrinks when fewer */
.desk-support .pn-detail-scroll{overflow-y:auto;overflow-x:hidden}
/* Supplier Information + entry row sit at the bottom of the panel, like the legacy screen */
@media(min-width:1101px){.quote-desk>.desk-support>.support-block[data-source=offers]{margin-top:auto}}
@media(min-width:1101px){.quote-desk>.desk-support{position:static;height:auto;min-height:calc(100vh - 250px);overflow:visible}}
/* narrower quote column (40%): tighter title bar */
.quote-header-compact .quote-titlebar{gap:4px 10px;font-size:12px}
.quote-titlebar h1{font-size:18px}
.quote-titlebar .quote-review-link{padding:0 8px!important;font-size:11px}
.quote-titlebar .quote-back{font-size:11px}

/* v2.9: part panel = stock + consigned on top, history in the middle, supplier info + entry at the bottom */
@media(min-width:1101px){
.quote-desk>.desk-support{display:flex;flex-direction:column;min-height:calc(100vh - 250px)}
.quote-desk>.desk-support>.support-block[data-source=history]{margin-top:auto}
.quote-desk>.desk-support>.support-block[data-source=offers]{margin-top:auto}
}
.supplier-add .supplier-noquote{background:#fbe3e8!important;border-color:#e2a3b2!important;color:#9b2c45!important}

/* v2.10: items toolbar = row 1 [Add PN ........ Refresh | Show]; row 2 [N items · legend] */
.desk-left>.desk-toolbar{display:contents}
.desk-left>.quote-add-inline{order:1;flex:1 1 calc(100% - 300px);margin:8px 0}
.desk-left>.desk-toolbar>.compact-action{order:2;margin:8px 0}
.desk-left>.desk-toolbar>label{order:3;margin:8px 0 8px 4px;display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600}
.desk-left>.desk-toolbar>label select{height:30px;width:110px}
.desk-left>.desk-toolbar>strong{order:4;flex:0 0 auto;margin:0 4px 6px 0;font-size:14px}
.desk-left>.color-key{order:5;flex:1 1 auto;margin:0 0 6px}
.desk-left>*{order:6}
.desk-left>.quote-header-compact{order:0}
.desk-left>.quote-add-inline{order:1}
.desk-left>.color-key{order:5}

/* v2.11: quote control buttons after the legend (row 2, right side) */
.desk-left>.quote-controls{order:5;flex:0 0 auto;display:flex;gap:6px;align-items:center;margin:0 0 6px auto}
.desk-left>.color-key{flex:0 1 auto}
.quote-control-form{margin:0;display:inline}
.quote-control{min-width:32px;height:30px;padding:0 8px;display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.quote-control.danger{color:#b42318;border-color:#f1b8b2}
.quote-control.danger:hover{background:#fdecea}
.quote-control.primary{background:#087f7c;color:#fff;border-color:#087f7c}
.quote-control.primary:hover{background:#066b69}
.quote-control[disabled]{opacity:.45;cursor:not-allowed}
.quote-control.armed{background:#b42318!important;color:#fff!important;border-color:#b42318!important}

/* v2.12: header Status/Rep selects belong to the customer form (saved by Save customer) */
.quote-header-compact:has(.quote-admin) .quote-titlebar{padding-right:420px}

/* v2.13: header selects replace the duplicated Rep/Status texts; bottom action bar */
.quote-header-compact>.quote-admin{position:static;display:flex;align-items:center;gap:14px;margin:6px 0 2px}
.quote-header-compact:has(.quote-admin) .quote-titlebar{padding-right:60px}
.quote-header-compact>.quote-admin label{font-size:12px;font-weight:700;color:#12303a;gap:6px}
.quote-header-compact>.quote-admin select.quote-status-select{--pill:#5b6773;background:var(--pill)!important;color:#fff!important;border:0!important;border-radius:13px;font-weight:700;text-transform:uppercase;letter-spacing:.03em;font-size:11px!important;height:26px!important;padding:0 26px 0 12px!important;width:auto;min-width:120px}
.quote-header-compact>.quote-admin select.quote-status-select option{background:#fff;color:#12303a;text-transform:none}
.quote-header-compact>.quote-admin select.quote-rep-select{font-weight:700;color:#12303a;border:1px solid #9fb3bf!important;background:#fff;font-size:13px!important;height:26px!important;width:auto;min-width:160px}
.quote-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;position:sticky;bottom:0;z-index:5;background:#fff;border-top:1px solid #d6e0e5;padding:10px 4px;margin-top:6px}
.quote-footer-left,.quote-footer-right{display:flex;align-items:center;gap:8px}
.quote-footer-right{margin-left:auto}
.quote-footer .quote-control,.quote-footer .quote-review-link{height:32px;display:inline-flex;align-items:center;padding:0 12px}
.quote-footer .quote-control.primary{font-weight:700;padding:0 16px}
.quote-footer-hint{font-size:12px;color:#6b7a86}

/* v2.14: Status/Rep dropdowns on the same line as the quote title */
.quote-titlebar>.quote-admin{display:flex;align-items:center;gap:14px;margin:0 0 0 8px;padding:0;border:0;position:static}
.quote-titlebar>.quote-admin label{display:flex;align-items:center;gap:6px;margin:0;min-width:0;font-size:12px;font-weight:700;color:#12303a}
.quote-titlebar>.quote-admin select.quote-status-select{--pill:#5b6773;background:var(--pill)!important;color:#fff!important;border:0!important;border-radius:13px;font-weight:700;text-transform:uppercase;letter-spacing:.03em;font-size:11px!important;height:26px!important;min-height:26px!important;padding:0 26px 0 12px!important;width:auto;min-width:120px}
.quote-titlebar>.quote-admin select.quote-status-select option{background:#fff;color:#12303a;text-transform:none}
.quote-titlebar>.quote-admin select.quote-rep-select{font-weight:700;color:#12303a;border:1px solid #9fb3bf!important;background:#fff;font-size:13px!important;height:26px!important;min-height:26px!important;width:auto;min-width:160px;padding:0 6px}
.quote-header-compact .quote-titlebar:has(.quote-admin){flex-wrap:nowrap;gap:4px 10px}
.quote-titlebar:has(.quote-admin) h1{font-size:19px}
.quote-titlebar>.quote-admin{margin-left:auto;gap:8px;flex:0 1 auto;min-width:0}
.quote-titlebar>.quote-admin label{gap:4px;font-size:11px}
.quote-titlebar>.quote-admin select.quote-status-select{min-width:0;width:112px;padding:0 20px 0 10px!important}
.quote-titlebar>.quote-admin select.quote-rep-select{min-width:0;width:150px;font-size:12px!important}
.quote-titlebar:has(.quote-admin){flex-wrap:wrap}
.quote-titlebar:has(.quote-admin)>span{white-space:nowrap}
.quote-titlebar>.quote-admin{flex:0 0 auto}
.quote-titlebar>.quote-admin .admin-label-status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.quote-titlebar>.quote-admin select.quote-status-select{width:104px}
.quote-titlebar>.quote-admin select.quote-rep-select{width:140px}

/* v2.15: Reopen/Spam/Delete in the header with text labels */
.quote-header-actions{display:flex;justify-content:flex-end;gap:6px;margin:-2px 0 6px}
.quote-header-actions .quote-control{height:26px!important;min-height:26px!important;padding:0 10px!important;font-size:12px;font-weight:600;gap:4px}
.quote-header-actions .quote-control.danger{background:#fff;color:#b42318;border:1px solid #f1b8b2}
.quote-header-actions .quote-control.danger:hover{background:#fdecea}
.quote-header-actions .quote-control--archive{background:#fff;color:#1668b8;border:1px solid #9cc3ea}

/* v2.16: shorter Subject with the customer RFQ beside it (RFQ left the title line) */
.content .customer-grid .customer-Email_Title{grid-column:1/5;grid-row:1}
.content .customer-grid .customer-RFQ{grid-column:5/7;grid-row:1}
.content .customer-grid .customer-RFQ .header-value{height:28px;min-height:28px;font-weight:700;color:#12303a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.quote-header-actions .quote-control--clone{background:#fff;color:#12303a;border:1px solid #9fb3bf}
.quote-header-actions .quote-control--clone:hover{background:#eef3f6}

/* v2.17: one-line header (ID · status · rep · actions) and Date first on the Subject row */
.quote-header-compact .quote-titlebar:has(.quote-admin){flex-wrap:wrap;gap:4px 8px}
.quote-titlebar h1{font-size:18px!important}
.quote-titlebar>.quote-admin{margin-left:6px;gap:6px}
.quote-titlebar>.quote-admin select.quote-status-select{width:98px}
.quote-titlebar>.quote-admin select.quote-rep-select{width:128px}
.quote-titlebar>.quote-header-actions{margin:0 0 0 auto;gap:4px}
.quote-titlebar>.quote-header-actions .quote-control{height:26px!important;padding:0 8px!important;font-size:11.5px}
.content .customer-grid .customer-Date{grid-column:1/2;grid-row:1}
.content .customer-grid .customer-Email_Title{grid-column:2/5;grid-row:1}
.content .customer-grid .customer-Date .header-value{height:28px;min-height:28px;white-space:nowrap;font-size:12.5px}
.quote-titlebar>.quote-admin select.quote-status-select{width:110px;padding:0 22px 0 10px!important}

/* v2.18: Show filter must win over the card display rule */
[data-inline-part][hidden]{display:none!important}

/* v2.19: keep toolbar layout when the "Add PN" area is hidden (answered quotes) */
.quote-add-placeholder{visibility:hidden;min-height:40px;margin:8px 0}

/* v2.20: toolbar order Refresh · Add PN · Show · items; card shows who last updated */
.desk-left>.desk-toolbar>.compact-action{order:1!important;margin:8px 0}
.desk-left>.quote-add-inline{order:2!important;flex:1 1 calc(100% - 330px)}
.desk-left>.desk-toolbar>label{order:3!important}
.desk-left>.desk-toolbar>strong{order:4!important;margin:8px 0 8px 6px;align-self:center}
.desk-left>.color-key{order:5!important;flex:1 1 100%}
.quote-card-updater{color:#6b7a86;font-weight:500}

/* v2.21: quote cards in the classic XParts layout (icon lines + full-width action) */
.quote-card>header strong{display:inline-flex;align-items:center;gap:6px;font-size:16px}
.quote-card .qc-ic{width:14px;height:14px;flex:0 0 14px;color:#8a97a3}
.quote-card>header .qc-ic{color:#fff;width:16px;height:16px}
.qc-lines{list-style:none;margin:0 0 10px;padding:0;display:flex;flex-direction:column;gap:5px}
.qc-lines li{display:flex;align-items:center;gap:7px;font-size:13px;color:#4b5967;min-width:0}
.qc-company b{font-weight:700;color:#12303a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qc-rep span{font-weight:700;color:var(--quote-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qc-status .quote-card-status{font-size:11px;padding:2px 10px;border-radius:11px}
.qc-action{margin-top:auto;display:flex;align-items:center;justify-content:center;gap:6px;height:32px;border-radius:7px;background:var(--quote-tint);border:1px solid color-mix(in srgb,var(--quote-color) 30%,transparent);color:var(--quote-color);font-weight:700;font-size:13px}
.qc-action .qc-ic{color:var(--quote-color)}
.quote-card:hover .qc-action{background:var(--quote-color);color:#fff}
.quote-card:hover .qc-action .qc-ic{color:#fff}

/* v2.22: all Bubble fields visible in the PN panel (history Conf./Trace/Certificate/Warranty, stock/consigned availability, cost, suggested price) */
.desk-support .history-table .history-col-Atualizacao_User,.desk-support .history-table .history-col-Trace,.desk-support .history-table .history-col-Certificado,.desk-support .history-table .history-col-Garantia{display:table-cell!important}
.desk-support .history-rows{overflow-x:auto!important}
.desk-support .history-table{min-width:1180px;table-layout:auto!important}
.desk-support .history-table .history-col-Atualizacao_Date{width:108px!important}
.desk-support .table-scroll{overflow-x:auto!important}
.desk-support .support-block[data-source="stock"] table,.desk-support .support-block[data-source="consigned"] table,.desk-support .support-block[data-source="offers"] table{min-width:980px}
.avail{display:inline-block;padding:1px 7px;border-radius:9px;font-size:10.5px;font-weight:700;letter-spacing:.02em}
.avail--available{background:#e5f4ea;color:#1d6b3a}
.avail--unavailable{background:#f3e6e4;color:#91443e}

/* ======================================================================
   v3 — single colour rule (29/09)
   Colour tells the STATE (status colours only), shape tells the IMPORTANCE.
   Buttons: primary (filled blue, one per area) · secondary (blue outline) ·
            danger (red outline) · icon (grey square, tooltip).
   ====================================================================== */
:root{--act:#1668b8;--act-hover:#11508f;--act-tint:#eef5fc;--danger:#b42318;--danger-tint:#fdecea;
      --ink:#12303a;--ink-2:#4b5967;--line:#d6e0e5;--panel:#f3f6f8;--btn-h:32px;--btn-r:7px}

/* --- base shape for every button in the quote screen & list --- */
.content .compact-action,.content .button,.content .quote-control,.content .supplier-add-save,.content .qc-action,
.quote-add-inline .button{height:var(--btn-h)!important;min-height:var(--btn-h)!important;border-radius:var(--btn-r)!important;
  font-size:12.5px!important;font-weight:600!important;padding:0 12px!important;display:inline-flex!important;align-items:center;gap:6px;
  box-shadow:none!important;filter:none!important;letter-spacing:0}

/* secondary (default) */
.content .compact-action,.content .quote-control{background:#fff!important;color:var(--act)!important;border:1px solid var(--act)!important}
.content .compact-action:not(:disabled):hover,.content .quote-control:not(:disabled):hover{background:var(--act-tint)!important}

/* primary: Add PN, Send quote, supplier Save, Save customer when dirty, list Search */
.content .button.primary,.quote-add-inline .button.primary,.content .quote-control--send,.content .supplier-add-save,
.content form.is-dirty .customer-save .compact-action,.content .filter-bar .button.primary{
  background:var(--act)!important;color:#fff!important;border:1px solid var(--act)!important}
.content .button.primary:hover,.content .quote-control--send:not(:disabled):hover,.content .supplier-add-save:hover,
.content form.is-dirty .customer-save .compact-action:hover{background:var(--act-hover)!important}

/* Save customer: secondary until something changes */
.content .customer-save .compact-action{background:#fff!important;color:var(--act)!important;border:1px solid var(--act)!important;height:30px!important;min-height:30px!important}
.content form.is-dirty .customer-save .compact-action{color:#fff!important}

/* danger */
.content .quote-control.danger{background:#fff!important;color:var(--danger)!important;border:1px solid #e7a59f!important}
.content .quote-control.danger:hover{background:var(--danger-tint)!important}
.content .quote-control.armed{background:var(--danger)!important;color:#fff!important;border-color:var(--danger)!important}

/* disabled */
.content .compact-action:disabled,.content .quote-control:disabled,.content .button:disabled{opacity:.4!important;cursor:not-allowed}

/* NOQUOTE all is a normal (secondary) action; Review is secondary */
.content .quote-control--noquote,.content .quote-review-link{background:#fff!important;color:var(--act)!important;border:1px solid var(--act)!important}

/* --- icon buttons: grey square, one thin stroke, tooltip carries the meaning --- */
.desk-left .inline-part-heading .compact-action,.desk-left .part-record-actions .compact-action:not([data-cancel-part]),
.quote-header-compact>.email-original{width:var(--btn-h)!important;height:var(--btn-h)!important;min-height:var(--btn-h)!important;
  flex:0 0 var(--btn-h)!important;border-radius:var(--btn-r)!important;padding:0!important;
  background:#fff!important;border:1px solid var(--line)!important;--ic:var(--ink-2)!important}
.desk-left .inline-part-heading .compact-action:not(:disabled):hover,.desk-left .part-record-actions .compact-action:not([data-cancel-part]):not(:disabled):hover,
.quote-header-compact>.email-original:hover{background:var(--act-tint)!important;border-color:var(--act)!important;--ic:var(--act)!important}
.desk-left .compact-action[data-part-action=delete]:not(:disabled):hover{background:var(--danger-tint)!important;border-color:#e7a59f!important;--ic:var(--danger)!important}
.desk-left .compact-action[data-cancel-part]{height:var(--btn-h)!important}

/* table "Use offer": compact secondary */
.desk-support td .compact-action[data-quote-offer]{height:24px!important;min-height:24px!important;padding:0 8px!important;font-size:11px!important}

/* --- group titles: one style everywhere --- */
.desk-support .support-heading,
.desk-support .support-block[data-source=stock] .support-heading,.desk-support .support-block[data-source=consigned] .support-heading{
  background:var(--panel)!important;color:var(--ink)!important;border-bottom:1px solid var(--line);border-radius:6px 6px 0 0;padding:6px 10px}
.desk-support .support-heading h3{color:var(--ink)!important;font-size:11.5px!important;font-weight:800!important;letter-spacing:.06em;text-transform:uppercase}
.desk-support .support-heading label{color:var(--ink-2)!important}
.desk-support .support-title .eyebrow,.content .eyebrow{color:var(--ink-2)!important}
.supplier-add{border-top:1px solid var(--line)!important}
.desk-support .support-block{border-color:var(--line)!important}

/* --- quote list cards: action button follows the same rule (secondary; status keeps its colour on header/pill) --- */
.qc-action{background:#fff!important;border:1px solid var(--act)!important;color:var(--act)!important}
.qc-action .qc-ic{color:var(--act)!important}
.quote-card:hover .qc-action{background:var(--act)!important;color:#fff!important}
.quote-card:hover .qc-action .qc-ic{color:#fff!important}
/* v3 fixes: hidden stays hidden; icon-only buttons keep their text for screen readers only */
.content .compact-action[hidden],.content .quote-control[hidden],.content .button[hidden]{display:none!important}
.desk-left .inline-part-heading .compact-action,.desk-left .part-record-actions .compact-action:not([data-cancel-part]),
.quote-header-compact>.email-original,.content .supplier-add-save{font-size:0!important;color:transparent!important;padding:0!important;justify-content:center}
.content .supplier-add-save{width:var(--btn-h)!important;flex:0 0 var(--btn-h)}

/* v3.1: history fits without horizontal scroll (Rep/Conf as initials, full name on hover) and shows 5 rows */
.desk-support .history-rows{overflow-x:hidden!important}
.desk-support .history-table{min-width:0!important;width:100%;table-layout:auto!important}
.desk-support .history-table .history-col-seller,.desk-support .history-table .history-col-Atualizacao_User{width:40px!important;text-align:center}
.desk-support .history-table .history-col-Atualizacao_Date{width:100px!important}
.desk-support .history-table .history-col-customer{max-width:150px}
.desk-support .history-table .history-col-Certificado,.desk-support .history-table .history-col-Lead_Time,.desk-support .history-table .history-col-Observacao{max-width:90px}
.desk-support .history-table .history-col-Trace,.desk-support .history-table .history-col-Garantia{max-width:70px}
.who{display:inline-block;min-width:26px;padding:1px 4px;border-radius:9px;background:#eef1f4;color:#12303a;font-weight:700;font-size:10.5px;cursor:help}

/* v3.2: items toolbar — row 1: Refresh (left) · Add PN (middle, grows) · Show (right)
                          row 2: N items (left) · legend (right) */
.desk-left>.desk-toolbar>.compact-action{order:1!important;margin:8px 0!important}
.desk-left>.quote-add-inline{order:2!important;flex:1 1 0!important;min-width:220px;margin:8px 10px!important}
.desk-left>.desk-toolbar>label{order:3!important;margin:8px 0 8px auto!important}
.desk-left>.desk-toolbar::after{content:"";order:4;flex:0 0 100%;height:0}
.desk-left>.desk-toolbar>strong{order:5!important;flex:0 0 auto!important;margin:0 0 6px!important;align-self:center}
.desk-left>.color-key{order:5!important;flex:0 0 auto!important;margin:0 0 6px auto!important}
/* v3.3: Add PN block centred between Refresh and Show */
.desk-left>.quote-add-inline{display:flex!important;justify-content:center!important;align-items:center}
.desk-left>.quote-add-inline>*{flex:0 1 auto}
.desk-left>.quote-add-inline .pn-search{flex:0 1 260px!important;min-width:180px}

/* ======================================================================
   v3.4 — fixed-height quote workspace (desktop): the page does not scroll,
   only the inner areas do. Footer (Review/Send) and Supplier information
   stay anchored at the bottom of each panel.
   ====================================================================== */
/* items bar now lives in .desk-bar (same order rules as v3.2/v3.3) */
.desk-bar{display:flex;flex-wrap:wrap;align-items:center;column-gap:10px;flex:0 0 auto}
.desk-bar>.desk-toolbar{display:contents}
.desk-bar>.desk-toolbar>.compact-action{order:1;margin:8px 0}
.desk-bar>.quote-add-inline{order:2;flex:1 1 0;min-width:220px;margin:8px 10px;display:flex;justify-content:center;align-items:center}
.desk-bar>.quote-add-inline>*{flex:0 1 auto}
.desk-bar>.quote-add-inline .pn-search{flex:0 1 260px;min-width:180px}
.desk-bar>.quote-add-placeholder{visibility:hidden;min-height:40px}
.desk-bar>.desk-toolbar>label{order:3;margin:8px 0 8px auto;display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600}
.desk-bar>.desk-toolbar>label select{height:32px;width:110px}
.desk-bar>.desk-toolbar::after{content:"";order:4;flex:0 0 100%;height:0}
.desk-bar>.desk-toolbar>strong{order:5;margin:0 0 6px;font-size:14px}
.desk-bar>.color-key{order:5;margin:0 0 6px auto}

@media(min-width:1101px){
  .quote-desk{height:var(--desk-h,calc(100vh - 150px));align-items:stretch;overflow:hidden}
  .quote-desk>.desk-left{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;height:100%;min-height:0;overflow:hidden;align-content:normal}
  .quote-desk>.desk-left>*{flex:0 0 auto;width:100%;order:0!important}
  .quote-desk>.desk-left>.desk-parts{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding-right:4px;scrollbar-gutter:stable}
  .quote-desk>.desk-left>.quote-footer{position:static!important;margin-top:6px;border-top:1px solid var(--line)}
  .quote-desk>.desk-left>.desk-note:last-of-type{display:none}
  .quote-desk>.desk-support{position:static!important;height:100%!important;min-height:0!important;display:flex!important;flex-direction:column;overflow:hidden!important}
  .quote-desk>.desk-support>*{flex:0 0 auto}
  .quote-desk>.desk-support>.support-block[data-source=offers]{flex:1 1 auto!important;min-height:120px;margin-top:6px!important;display:flex;flex-direction:column;overflow:hidden}
  .quote-desk>.desk-support>.legacy-support{max-height:160px;overflow:auto}
  .quote-desk>.desk-support>.supplier-add{margin-top:6px}
}
@media(min-width:1101px){body:has(.quote-desk) .app-footer{display:none}}
@media(min-width:1101px){.quote-desk>.desk-support>.support-block[data-source=offers]{min-height:70px!important}.quote-desk>.desk-support{overflow-y:auto!important}}

/* v3.5: every PN group (incl. Supplier information) shows at most 5 rows and compacts when shorter;
   the new-supplier form stays anchored at the bottom; the old "preview" banner is gone. */
.migration-banner{display:none!important}
@media(min-width:1101px){
  .quote-desk>.desk-support>.support-block[data-source=offers]{flex:0 0 auto!important;min-height:0!important;display:block}
  .quote-desk>.desk-support>.support-block[data-source=offers]>.table-scroll{max-height:none;flex:none}
  .quote-desk>.desk-support>.supplier-add{margin-top:auto!important}
}
@media(min-width:1101px){.quote-desk>.desk-support>.support-block[data-source=history]{margin-top:5px!important}}
/* v3.6: Supplier information sits at the bottom together with the new-supplier form */
@media(min-width:1101px){
  .quote-desk>.desk-support>.support-block[data-source=offers]{margin-top:auto!important}
  .quote-desk>.desk-support>.supplier-add{margin-top:6px!important}
}
.desk-support .support-block[data-source=offers] .support-col-08USUARIO{width:44px;text-align:center}

/* v3.7 — PN panel tables (stock / consigned / supplier info): fit the width, no horizontal scroll, compact columns. */
.desk-support .support-block[data-source="stock"] .table-scroll,.desk-support .support-block[data-source="consigned"] .table-scroll,.desk-support .support-block[data-source="offers"] .table-scroll{overflow-x:hidden!important}
.desk-support .support-block[data-source="stock"] table,.desk-support .support-block[data-source="consigned"] table,.desk-support .support-block[data-source="offers"] table{min-width:0!important;width:100%!important;table-layout:fixed}
.desk-support .support-block[data-source="stock"] :is(th,td),.desk-support .support-block[data-source="consigned"] :is(th,td),.desk-support .support-block[data-source="offers"] :is(th,td){padding:4px 5px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.desk-support .support-block :is(th,td) .compact-action{padding:2px 6px;font-size:11px;white-space:nowrap}
/* offers: Data Forn Local Contato Cond Qtd MOQ Preço Trace Cert Prazo Obs User Ação */
.desk-support .support-block[data-source="offers"] th:nth-child(1){width:74px}
.desk-support .support-block[data-source="offers"] th:nth-child(5){width:46px}
.desk-support .support-block[data-source="offers"] th:nth-child(6),.desk-support .support-block[data-source="offers"] th:nth-child(7){width:40px}
.desk-support .support-block[data-source="offers"] th:nth-child(8){width:72px}
.desk-support .support-block[data-source="offers"] th:nth-child(13){width:40px}
.desk-support .support-block[data-source="offers"] th:nth-child(14){width:84px}
/* stock: Disp Loc Bin Cond Qtd MOQ Custo Sug Serial Obs Atualizado User Ação */
.desk-support .support-block[data-source="stock"] th:nth-child(1){width:78px}
.desk-support .support-block[data-source="stock"] th:nth-child(3),.desk-support .support-block[data-source="stock"] th:nth-child(4){width:48px}
.desk-support .support-block[data-source="stock"] th:nth-child(5),.desk-support .support-block[data-source="stock"] th:nth-child(6){width:40px}
.desk-support .support-block[data-source="stock"] th:nth-child(7),.desk-support .support-block[data-source="stock"] th:nth-child(8){width:72px}
.desk-support .support-block[data-source="stock"] th:nth-child(11){width:74px}
.desk-support .support-block[data-source="stock"] th:nth-child(13){width:84px}
/* consigned: Disp Empresa Cond Qtd MOQ Custo Sug Obs Data Atualizado User Ação */
.desk-support .support-block[data-source="consigned"] th:nth-child(1){width:78px}
.desk-support .support-block[data-source="consigned"] th:nth-child(3){width:48px}
.desk-support .support-block[data-source="consigned"] th:nth-child(4),.desk-support .support-block[data-source="consigned"] th:nth-child(5){width:40px}
.desk-support .support-block[data-source="consigned"] th:nth-child(6),.desk-support .support-block[data-source="consigned"] th:nth-child(7){width:72px}
.desk-support .support-block[data-source="consigned"] th:nth-child(9),.desk-support .support-block[data-source="consigned"] th:nth-child(10){width:74px}
.desk-support .support-block[data-source="consigned"] th:nth-child(12){width:84px}
.desk-support .support-block[data-source="stock"] th:nth-child(12),.desk-support .support-block[data-source="consigned"] th:nth-child(11){width:40px}
.desk-support .support-block :is(.support-col-nomeatualizacao,.support-col-updname,.support-col-08USUARIO){text-align:center}
/* v3.8: stock/consigned at the top, XParts history centred in the free space, Supplier information + new-supplier form at the bottom */
@media(min-width:1101px){
  .quote-desk>.desk-support>.support-block[data-source=history]{margin-top:auto!important;margin-bottom:auto!important}
  .quote-desk>.desk-support>.support-block[data-source=offers]{margin-top:5px!important}
}

/* v3.9: compact PN cards — label close to its input, shorter inputs, less padding,
   24-column grid: narrower Trace, wider Lead time ("05 to 10 business days"), quantity fields fit 5+ digits. */
.desk-left .inline-part{padding:5px 8px!important;margin-bottom:6px!important}
.desk-left .inline-part-heading{margin-bottom:2px!important}
.desk-left .inline-fields{gap:2px 5px!important}
.desk-left .inline-fields label{margin:0 0 1px!important;line-height:12px!important}
.content .desk-left .inline-fields input,.content .desk-left .inline-fields select{height:25px!important;min-height:25px!important;padding:1px 5px!important;font-size:12.5px}
.content .desk-left .inline-fields select{padding-right:18px!important;background-position:right 4px center}
.content .desk-left .inline-fields .money-input input{padding-left:16px!important}
.desk-left .inline-fields input[type=number]{-moz-appearance:textfield}
.desk-left .inline-fields input[type=number]::-webkit-inner-spin-button,.desk-left .inline-fields input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
@media(min-width:1001px){
  .desk-left .inline-fields{grid-template-columns:repeat(24,minmax(0,1fr))!important}
  .desk-left .inline-fields>div{grid-column:span 2}
  .desk-left .inline-fields>div:has([name=Description]){grid-column:span 6}
  .desk-left .inline-fields>div:has([name=Trace]){grid-column:span 3}
  .desk-left .inline-fields>div:has([name=Certificado]){grid-column:span 5}
  .desk-left .inline-fields>div:has([name=Garantia]){grid-column:span 4}
  .desk-left .inline-fields>div:has([name=Lead_Time]){grid-column:span 6}
  .desk-left .inline-fields>div:has([name=Quantity]),.desk-left .inline-fields>div:has([name=Qty_Disponivel]),.desk-left .inline-fields>div:has([name=MOQ]){grid-column:span 2}
  .desk-left .inline-fields>div:has([name=Condition]){grid-column:span 3}
  .desk-left .inline-fields>div:has([name=Unit]){grid-column:span 2}
  .desk-left .inline-fields>div:has([name=Preco_Unit]){grid-column:span 4}
  .desk-left .inline-fields>div:has([name=Observacao]){grid-column:span 9}
}
/* v3.10: a confirmed/NOQUOTE PN being edited is pending again — show it blue (red only for real NOQUOTE) */
.inline-part.is-editing,.inline-part.is-editing.state-confirmed,.inline-part.is-editing.state-noquote{background:#eef5fc!important;border-color:#a9c9ea!important}
.inline-part.is-editing.is-selected{background:#d9e9f9!important}
.inline-part.is-editing .part-state{color:#1668b8!important}

/* v3.11: quote list header — Create New Quote (contact origin menu) and Get Next Quote to Respond (Bubble parity) */
.page-heading .quote-queue-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.quote-queue-actions form{margin:0}
.quote-queue-actions .button{height:34px;padding:0 14px;font-weight:700;white-space:nowrap}
.quote-queue-actions .quote-next{background:#eaf3fd;color:#1668b8;border:1px solid #8fbbe8}
.quote-queue-actions .quote-next:hover{background:#d9e9f9}
.quote-queue-limit{font-size:12px;color:#9b2c45;border:1px solid #e2a3b2;background:#fbe9ee;border-radius:7px;padding:6px 10px;font-weight:700}
.quote-new{position:relative}
.quote-new>summary{list-style:none;display:inline-flex;align-items:center;cursor:pointer}
.quote-new>summary::-webkit-details-marker{display:none}
.quote-new-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:30;display:flex;flex-direction:column;gap:6px;min-width:190px;padding:10px;background:#fff;border:1px solid #d5dde8;border-radius:9px;box-shadow:0 10px 30px rgba(16,32,56,.16)}
.quote-new-menu p{margin:0 0 2px;font-size:11px;font-weight:700;color:#5b6778;text-transform:uppercase;letter-spacing:.04em}
.quote-new-menu .button{width:100%;justify-content:flex-start}
.quote-notice{margin:0 0 12px;padding:10px 14px;border-radius:9px;font-size:13.5px;font-weight:600}
.quote-notice--info{background:#eaf3fd;color:#12508f;border:1px solid #8fbbe8}
.quote-notice--error{background:#fbe9ee;color:#9b2c45;border:1px solid #e2a3b2}
/* v3.12: customer autocomplete in the quote header */
.customer-Client_Company_Name{position:relative}
.client-suggestions{position:absolute;left:0;right:0;top:100%;z-index:40;max-height:260px;overflow:auto;background:#fff;border:1px solid #d5dde8;border-radius:8px;box-shadow:0 10px 30px rgba(16,32,56,.16);margin-top:2px}
.client-suggestions [role=option]{display:flex;flex-direction:column;gap:1px;padding:6px 10px;cursor:pointer;border-bottom:1px solid #eef2f7}
.client-suggestions [role=option]:last-child{border-bottom:0}
.client-suggestions [role=option] strong{font-size:13px}
.client-suggestions [role=option] small{font-size:11.5px;color:#5b6778;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.client-suggestions [role=option]:hover,.client-suggestions [aria-selected=true]{background:#eaf3fd}
.client-hint{position:absolute;top:0;right:2px;max-width:72%;font-size:10.5px;line-height:13px;color:#1668b8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.client-hint:empty{display:none}

/* v3.13: PN analysis follows the quote-desk standard — same groups/partials as the quote panel,
   and "Quote this PN" docked at the bottom of the window (sticky), so it never needs scrolling. */
.content:has(.analysis-page){max-width:none}
.analysis-page{display:flex;flex-direction:column;gap:6px;min-height:calc(100vh - 90px)}
.analysis-page>.desk-heading{display:flex;align-items:center;gap:12px;margin:0}
.analysis-page>.desk-heading h1{margin:0;font-size:24px}
.analysis-page>p[data-product-description]{margin:0;font-weight:600;color:#33475b}
.analysis-page>.analysis-support{padding:8px 10px;background:#fff;border:1px solid #d5dde8;border-radius:10px;display:flex;flex-direction:column;gap:6px;flex:1 1 auto}
.analysis-page>.analysis-support>.support-block,.analysis-page>.analysis-support>details{margin:0!important}
.analysis-dock{position:sticky;bottom:0;z-index:25;display:flex;flex-direction:column;gap:6px;padding:6px 0 8px;background:linear-gradient(to bottom,rgba(243,246,249,0),#f3f6f9 10px)}
.analysis-dock>form,.analysis-dock>section{margin:0!important;background:#fff;border:1px solid #9fbfdf;border-radius:10px;box-shadow:0 -6px 18px rgba(16,32,56,.12)}
.analysis-dock .analysis-offer-form{padding:7px 10px 8px!important}
.analysis-dock .analysis-offer-form h2{font-size:14px!important;margin:0 0 3px!important}
.analysis-dock .analysis-offer-form .inline-fields{display:grid;grid-template-columns:repeat(24,minmax(0,1fr))!important;gap:2px 5px!important;border:0;padding:0;margin:0}
.analysis-dock .analysis-offer-form .inline-fields>div{grid-column:span 2!important;min-width:0}
.analysis-dock .analysis-offer-form .inline-fields>div:has([name=Description]){order:1;grid-column:span 6!important}
.analysis-dock .analysis-offer-form .inline-fields>div:has([name=Trace]){order:2;grid-column:span 3!important}
.analysis-dock .analysis-offer-form .inline-fields>div:has([name=Certificado]){order:3;grid-column:span 5!important}
.analysis-dock .analysis-offer-form .inline-fields>div:has([name=Garantia]){order:4;grid-column:span 4!important}
.analysis-dock .analysis-offer-form .inline-fields>div:has([name=Lead_Time]){order:5;grid-column:span 6!important}
.analysis-dock .analysis-offer-form .inline-fields>div:has([name=Qty_Disponivel]){order:6;grid-column:span 2!important}
.analysis-dock .analysis-offer-form .inline-fields>div:has([name=MOQ]){order:7;grid-column:span 2!important}
.analysis-dock .analysis-offer-form .inline-fields>div:has([name=Condition]){order:8;grid-column:span 3!important}
.analysis-dock .analysis-offer-form .inline-fields>div:has([name=Unit]){order:9;grid-column:span 2!important}
.analysis-dock .analysis-offer-form .inline-fields>div:has([name=Preco_Unit]){order:10;grid-column:span 4!important}
.analysis-dock .analysis-offer-form .inline-fields>div:has([name=Observacao]){order:11;grid-column:span 11!important}
.analysis-dock .analysis-offer-form label{font-size:10px!important;line-height:12px!important;margin:0 0 1px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.analysis-dock .analysis-offer-form .inline-fields input,.analysis-dock .analysis-offer-form .inline-fields select{height:25px!important;min-height:25px!important;padding:1px 5px!important;font-size:12.5px!important}
.analysis-dock .analysis-offer-form .inline-fields select{padding-right:18px!important}
.analysis-dock .analysis-offer-form .money-input{height:25px!important;min-height:25px!important}
.analysis-dock .analysis-offer-form .money-input input{padding-left:16px!important}
.analysis-dock .analysis-offer-form [data-money]{font-weight:700}
.analysis-dock .analysis-actions{display:flex;align-items:center;gap:8px;margin-top:6px!important}
.analysis-dock .analysis-actions .button{height:30px;min-height:30px;padding:0 16px;font-weight:700}
.analysis-dock .analysis-next{padding:8px 12px!important;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.analysis-dock .analysis-next h2{font-size:14px;margin:0 auto 0 0}
.analysis-dock .analysis-confirmed h3{font-size:11px;margin:0;padding:5px 8px}
@media(max-width:1000px){.analysis-dock .analysis-offer-form .inline-fields{grid-template-columns:repeat(6,minmax(0,1fr))!important}.analysis-dock .analysis-offer-form .inline-fields>div{grid-column:span 2!important}.analysis-dock .analysis-offer-form .inline-fields>div:has([name=Description]),.analysis-dock .analysis-offer-form .inline-fields>div:has([name=Observacao]){grid-column:span 6!important}}
.analysis-dock input[type=number]{-moz-appearance:textfield}
.analysis-dock input[type=number]::-webkit-inner-spin-button,.analysis-dock input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
/* v3.13b: analysis page has a fixed height like the quote desk (no page scroll): groups scroll inside, "Quote this PN" stays at the bottom */
.analysis-page{height:var(--desk-h,calc(100vh - 110px));min-height:0!important;overflow:hidden}
.analysis-page>.analysis-support{overflow-y:auto;overflow-x:hidden;min-height:0}
.analysis-dock{position:static;flex:0 0 auto;padding:0;background:none}
.analysis-dock>form,.analysis-dock>section{box-shadow:none}
.desk-support .support-block :is(th,td) .compact-action{padding:1px 8px!important;font-size:11.5px!important;height:24px!important;min-height:24px!important;line-height:20px!important}
.desk-support .support-block td:has(.compact-action){overflow:visible!important;text-overflow:clip!important}
.analysis-page>.analysis-support>*{flex:0 0 auto!important}
/* v3.14: Supplier information edit (author only) */
.desk-support .support-block[data-source="offers"] th:nth-child(14){width:112px!important}
.desk-support .support-block td .supplier-edit-btn{margin-left:4px;padding:1px 6px!important;font-size:13px!important}
.supplier-add.is-editing{outline:2px solid #1668b8;outline-offset:2px;border-radius:9px;background:#f4f9ff}
.supplier-add .supplier-edit-title{margin:0 0 4px;font-size:11px;font-weight:700;color:#1668b8}
.supplier-add .supplier-cancel{height:30px;padding:0 10px}
.supplier-add .supplier-edit-title{display:flex;align-items:center;gap:8px}
.supplier-add .supplier-edit-title .supplier-cancel{height:22px!important;min-height:22px!important;padding:0 10px!important;font-size:11px!important}
.supplier-add.is-editing .supplier-add-stock,.supplier-add.is-editing [data-supplier-forecast]{display:none!important}

/* v3.15: Users registry (Bubble "User Registration") */
.user-search{height:34px;min-width:220px;border:1px solid #cfd8e3;border-radius:8px;padding:0 10px}
.users-table{width:100%;border-collapse:collapse;font-size:13px}
.users-table th{font-size:10.5px;text-transform:uppercase;letter-spacing:.03em;color:#5b6778;text-align:left;padding:6px 8px;border-bottom:1px solid #dfe6ee;white-space:nowrap}
.users-table td{padding:5px 8px;border-bottom:1px solid #eef2f7;vertical-align:middle}
.users-table tbody tr[data-user-row]{cursor:pointer}
.users-table tbody tr[data-user-row]:hover{background:#f2f7fd}
.users-table tr.user-inactive td{color:#8a96a6}
.users-table th.flag,.users-table td.flag{text-align:center;width:64px}
.user-flag{display:inline-flex;width:18px;height:18px;border-radius:4px;align-items:center;justify-content:center;font-size:12px;font-weight:700}
.user-flag.on{background:#1668b8;color:#fff}.user-flag.off{border:1px solid #c5d0dc}
.user-avatar{width:40px}.user-avatar img,.user-avatar span{width:30px;height:30px;border-radius:50%;object-fit:cover;display:inline-flex;align-items:center;justify-content:center;background:#e3ecf6;color:#12508f;font-size:11px;font-weight:700}
.user-actions{width:48px;text-align:center}.user-actions form{margin:0}
.user-delete{color:#9b2c45!important;border-color:#e2a3b2!important;background:#fff!important}
.user-dialog{border:0;border-radius:12px;padding:0;width:min(820px,94vw);box-shadow:0 24px 60px rgba(16,32,56,.3)}
.user-dialog::backdrop{background:rgba(16,32,56,.45)}
.user-form{padding:18px 20px;display:flex;flex-direction:column;gap:12px}
.user-form header{display:flex;align-items:center;justify-content:space-between}.user-form h2{margin:0;font-size:18px}
.user-photo-lg{width:52px;height:52px;border-radius:50%;object-fit:cover}
.user-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 12px}
.user-grid label,.user-modules label{font-size:11.5px;font-weight:600;color:#33475b;display:flex;flex-direction:column;gap:3px}
.user-grid input,.user-grid select{height:32px;border:1px solid #cfd8e3;border-radius:7px;padding:0 8px;font-size:13px}
.user-grid .user-readonly{background:#f1f4f8;color:#5b6778}
.user-grid .user-initials{text-transform:uppercase}
.user-grid .user-active{flex-direction:row;align-items:center;gap:6px;align-self:end;height:32px}
.user-modules{border:1px solid #d5dde8;border-radius:9px;padding:8px 12px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 12px;margin:0}
.user-modules legend{font-size:11px;font-weight:700;text-transform:uppercase;color:#5b6778;padding:0 4px}
.user-modules label{flex-direction:row;align-items:center;gap:6px;font-weight:500;font-size:13px}
.user-form footer{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.user-form .user-password{margin-left:auto}
.user-hint{margin:0 0 0 auto;font-size:12px}
@media(max-width:700px){.user-grid,.user-modules{grid-template-columns:1fr 1fr}}
/* Quotation dashboard: compact controls and status-aware interaction. */
.quotes-dashboard .filter-bar{display:flex;justify-content:flex-start;align-items:flex-start;gap:8px;flex-wrap:wrap}
.quotes-dashboard .filter-bar>div{flex:0 1 150px;min-width:120px}
.quotes-dashboard .filter-bar>.filter-grow{flex:0 1 220px}
.quotes-dashboard .filter-bar input,.quotes-dashboard .filter-bar select{height:32px!important;min-height:32px!important;padding:4px 8px!important;width:100%}
.quotes-dashboard .filter-bar .clear-filters{margin:24px 0 0 2px}
.quotes-dashboard .pagination{gap:3px;width:auto;justify-content:flex-end}
.quotes-dashboard .pagination .button{height:24px!important;min-height:24px!important;min-width:24px!important;padding:2px 6px!important;font-size:11px!important;border-radius:4px}
.quotes-dashboard .pagination-current{padding:0 4px;font-size:11px}
.quotes-dashboard .section-heading{padding:8px 10px;min-height:0;margin:0}
.quote-filter-feedback{display:block;padding:0 12px;color:var(--muted)}
.quote-filter-feedback:empty{display:none}
.quote-filter-feedback[data-failed]{color:#a52a38;padding:8px 12px}
.quotes-dashboard [aria-busy=true]{opacity:.65}
.quotes-dashboard .quote-card .qc-action{color:var(--quote-color)!important;border-color:color-mix(in srgb,var(--quote-color) 45%,white)!important;background:var(--quote-tint)!important;transition:background .15s,color .15s}
.quotes-dashboard .quote-card .qc-action .qc-ic{color:inherit!important}
.quotes-dashboard .quote-card:is(:hover,:focus-visible) .qc-action{background:var(--quote-color)!important;color:#fff!important;border-color:var(--quote-color)!important}
.quotes-dashboard .quote-card:is(:hover,:focus-visible){border-color:var(--quote-color);box-shadow:0 3px 12px #173c4720;transform:none}
.quotes-dashboard .filter-bar :is(input,select):hover{border-color:#438ca4;background:#f5fafc}
.quotes-dashboard .pagination a:is(:hover,:focus-visible),.quotes-dashboard .clear-filters:is(:hover,:focus-visible){background:#e8f3f7!important;color:#145c78!important;border-color:#438ca4!important}
@media(max-width:640px){.quotes-dashboard .filter-bar>div,.quotes-dashboard .filter-bar>.filter-grow{flex:1 1 140px}.quotes-dashboard .section-heading{gap:6px;flex-wrap:wrap}}
.quotes-dashboard .quote-card--neutral{--quote-color:#087dad;--quote-tint:#edf7fc}
.quotes-dashboard .quote-grid{padding-top:4px;padding-bottom:4px}

.page-size-control{display:flex!important;align-items:center;gap:6px;white-space:nowrap;font-size:11px!important;flex:0 0 auto!important}.page-size-control select{width:86px!important;min-width:0!important;height:28px!important;padding:2px 6px!important;font-size:12px!important}

/* Shared list toolbar: navigation and page size stay together above results. */
.section-heading.list-pagination{margin:0;min-height:0;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 14px;flex-wrap:wrap}
.list-pagination>span,.list-pagination>h2{margin:0;font-size:11px}
.pagination-controls{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-left:auto;max-width:100%}
.pagination-controls .pagination{display:flex;align-items:center;gap:4px;margin:0;flex-wrap:nowrap}
.pagination-controls .page-size-control{margin:0}
@media(max-width:480px){.pagination-controls{gap:5px}.pagination-controls .pagination .button{padding:3px 5px}.pagination-controls .page-size-control{gap:3px;font-size:10px!important}.pagination-controls .page-size-control select{width:60px!important}}

.pagination-controls .pagination .button{height:24px!important;min-height:24px!important;min-width:24px!important;padding:2px 6px!important;font-size:11px!important;border-radius:4px}
.pagination-controls .pagination-current{padding:0 4px;font-size:11px;white-space:nowrap}

.quotes-dashboard .filter-bar>.quote-date-filter{flex:0 1 132px;min-width:122px}.quotes-dashboard .quote-date-filter input{padding:3px 5px!important}

.online-person[data-status="INACTIVE"],.online-person[data-status="IDLE"]{opacity:.5}
.online-person[data-status="OFFLINE"]{opacity:.25}
.online-person:not([data-status="ACTIVE"]) .online-dot{background:#8b98a2}
.team-presence[hidden]{display:none!important}

/* PN Analysis: market offer entry remains visible above the separate customer response. */
.analysis-dock .analysis-supplier-entry{padding:8px 10px;border-color:#79adb8;background:#f4fafb}
.analysis-supplier-entry>h2{font-size:13px;margin:0 0 5px;color:#075f6d}
.analysis-supplier-entry .supplier-add{margin:0!important;padding:0!important;border:0!important;background:transparent}
.analysis-supplier-entry .supplier-add-grid{gap:4px 6px}
.analysis-supplier-entry .inline-result:empty{display:none}
.analysis-dock .analysis-offer-form h2 span{font-weight:400;font-size:12px}
.analysis-dock .analysis-offer-form .inline-fields{grid-template-columns:repeat(24,minmax(0,1fr))!important}
.analysis-dock .analysis-offer-form .inline-fields>div:has([name=Condition]),.analysis-dock .analysis-offer-form .inline-fields>div:has([name=Unit]),.analysis-dock .analysis-offer-form .inline-fields>div:has([name=MOQ]),.analysis-dock .analysis-offer-form .inline-fields>div:has([name=Qty_Disponivel]){grid-column:span 1!important}
.analysis-dock .analysis-offer-form .inline-fields>div:has([name=Garantia]){grid-column:span 2!important}
.analysis-dock .analysis-offer-form .inline-fields>div:has([name=Trace]),.analysis-dock .analysis-offer-form .inline-fields>div:has([name=Lead_Time]),.analysis-dock .analysis-offer-form .inline-fields>div:has([name=Preco_Unit]){grid-column:span 3!important}
.analysis-dock .analysis-offer-form .inline-fields>div:has([name=Certificado]){grid-column:span 4!important}
.analysis-dock .analysis-offer-form .inline-fields>div:has([name=Observacao]){grid-column:span 5!important}
@media(max-width:1200px){.analysis-dock .analysis-offer-form .inline-fields{grid-template-columns:repeat(12,minmax(0,1fr))!important}.analysis-dock .analysis-offer-form .inline-fields>div:has([name=Garantia]),.analysis-dock .analysis-offer-form .inline-fields>div:has([name=Qty_Disponivel]){grid-column:span 2!important}}
@media(max-width:700px){.analysis-page{height:auto!important;overflow:visible}.analysis-page>.analysis-support{max-height:45vh}.analysis-dock .analysis-offer-form .inline-fields{grid-template-columns:repeat(6,minmax(0,1fr))!important}.analysis-dock .analysis-offer-form .inline-fields>div{grid-column:span 2!important}.analysis-dock .analysis-offer-form .inline-fields>div:has([name=Observacao]){grid-column:span 6!important}}
