@font-face { font-family: "Portal Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("portal-geist-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Portal Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("portal-geist-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --v2-bg: oklch(0.982 0.004 150);
  --v2-surface: oklch(0.997 0.002 150);
  --v2-surface-low: oklch(0.955 0.007 155);
  --v2-surface-mid: oklch(0.94 0.01 158);
  --v2-line: oklch(0.9 0.009 160);
  --v2-line-soft: oklch(0.93 0.007 160);
  --v2-ink: oklch(0.21 0.018 175);
  --v2-text: oklch(0.21 0.018 175);
  --v2-muted: oklch(0.51 0.018 168);
  --v2-muted-2: oklch(0.57 0.016 168);
  --v2-primary: oklch(0.35 0.065 172);
  --v2-primary-2: oklch(0.43 0.07 172);
  font-family: "Portal Geist", Arial, sans-serif;
}
body { font-family: "Portal Geist", Arial, sans-serif; font-size: 13px; }
html, body { background: var(--v2-surface-low); }
[hidden] { display: none !important; }
.auth-layout { height: 100dvh; display: grid; place-items: center; align-items: safe center; overflow-y: auto; padding: 24px; background: var(--v2-surface-low); scrollbar-color: var(--v2-muted-2) var(--v2-surface-low); }
.auth-layout::-webkit-scrollbar-track { background: var(--v2-surface-low); }
.auth-card { width: min(440px, 100%); padding: 42px; border: 1px solid var(--v2-line); border-radius: 10px; background: #fff; }
.auth-card .eyebrow { color: var(--v2-muted); font-size: 10px; letter-spacing: .08em; }
.auth-card h1 { margin: 17px 0 10px; font-size: 28px; font-weight: 500; }
.auth-card p { margin: 0 0 25px; color: var(--v2-muted); font-size: 12px; line-height: 1.55; }
.auth-card form { display: grid; gap: 9px; }
.auth-card label { margin-top: 13px; font-size: 10px; }
.auth-card input { box-sizing: border-box; width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--v2-line); border-radius: 8px; background: var(--v2-surface-low); outline-color: var(--v2-primary); }
.password-field { position: relative; }
.auth-card .password-field input { padding-right: 46px; }
.password-eye { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 44px; height: 40px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--v2-muted); cursor: pointer; }
.password-eye:hover, .password-eye[aria-pressed="true"] { color: var(--v2-primary); }
.password-eye:focus-visible { outline: 2px solid var(--v2-primary); outline-offset: -3px; }
.password-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.password-eye-slash { display: none; }
.password-eye[aria-pressed="true"] .password-eye-slash { display: block; }
.button-dark { display: flex; align-items: center; justify-content: space-between; min-height: 42px; margin-top: 14px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--v2-primary); color: #fff; font-size: 11px; font-weight: 600; cursor: pointer; }
.form-error { color: #a32b2b !important; min-height: 20px; margin: 13px 0 0 !important; }
.text-button { padding: 9px 0; border: 0; background: none; text-decoration: underline; color: var(--v2-muted); cursor: pointer; }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 0; padding: 12px 0 1px; list-style: none; color: var(--v2-muted); font-size: 11px; }
.rules li::before { content: "○"; margin-right: 7px; }
.rules li.valid { color: #237356; }
.rules li.valid::before { content: "✓"; }
.portal-table .portal-size-stack { flex-direction: column; flex-wrap: nowrap; align-items: center; gap: 5px; }
.portal-component { max-width: 100%; color: var(--v2-muted); font-size: 10px; line-height: 1.3; text-align: center; overflow-wrap: anywhere; }

/* Layout, table and typography come from kgest-v3.css. */
.portal-shell { height: 100vh; min-height: 0; overflow: hidden; }
.portal-topbar { height: 56px; flex: 0 0 56px; border-top: 10px solid #303030; box-sizing: border-box; }
.portal-topbar .v2-brand { min-width: 0; }
.portal-top-controls { display: flex; align-items: center; gap: 10px; margin-left: auto; min-width: 0; }
.portal-period { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid #dce3e0; border-radius: 9px; background: #fbfdfc; white-space: nowrap; }
.portal-period button, .portal-period select { height: 32px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #313d40; font-size: 12px; }
.portal-period button { padding: 0 9px; cursor: pointer; }
.portal-period button.is-active { border-color: #e5e9e7; background: #fff; color: #263033; font-weight: 600; box-shadow: 0 1px 3px #15282312; }
.portal-period select { padding: 0 8px; border-color: #dce3e0; background: #fff; cursor: pointer; }
.portal-global-search-button { display: flex; align-items: center; gap: 10px; width: clamp(165px, 22vw, 300px); height: 42px; padding: 0 11px; border: 1px solid #dce3e0; border-radius: 9px; background: #fbfdfc; color: #667175; text-align: left; cursor: pointer; white-space: nowrap; }
.portal-global-search-button > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; }
.portal-global-search-button kbd { margin-left: auto; padding: 2px 6px; border: 1px solid #dce3e0; border-radius: 5px; background: #fff; font-size: 11px; }
.portal-new-button { height: 36px; padding: 0 13px; border: 0; border-radius: 8px; background: #173f3a; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.portal-new-button span { margin-right: 4px; font-size: 17px; font-weight: 400; }
.portal-global-search-dialog, .portal-new-dialog { width: min(92vw, 560px); max-height: 86vh; padding: 18px; border: 1px solid #dce3e0; border-radius: 10px; background: #fff; color: #263033; box-shadow: 0 18px 60px #17221c33; }
.portal-global-search-dialog::backdrop, .portal-new-dialog::backdrop { background: #1b262777; }
.portal-global-search-header, .portal-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.portal-global-search-header button, .portal-dialog-heading button { width: 30px; height: 30px; border: 1px solid #dce3e0; background: #fff; cursor: pointer; }
.portal-dialog-heading h2 { margin: 0; font-size: 18px; }
.portal-global-search-dialog input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid #dce3e0; outline-color: #173f3a; }
.portal-global-search-results { max-height: 55vh; overflow: auto; margin-top: 10px; }
.portal-global-search-results button { display: flex; width: 100%; gap: 10px; padding: 10px; border: 0; border-bottom: 1px solid #e9edeb; background: #fff; color: #263033; text-align: left; cursor: pointer; }
.portal-global-search-results button:hover, .portal-global-search-results button:focus-visible { background: #f3f7f5; }
.portal-global-search-results small { margin-left: auto; color: #697678; }
.portal-global-search-results p { color: #697678; }
.portal-new-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-height: 68vh; overflow: auto; }
.portal-new-form[hidden], .portal-wizard-panel[hidden] { display: none; }
.portal-new-form label { display: grid; gap: 5px; color: #526061; font-size: 11px; }
.portal-new-form input:not([type=checkbox]), .portal-new-form select { width: 100%; height: 38px; padding: 0 9px; border: 1px solid #dce3e0; background: #fbfdfc; color: #263033; }
.portal-color-field { display: grid; gap: 5px; color: #526061; font-size: 11px; }
.portal-color-trigger { display: flex; align-items: center; gap: 9px; width: 100%; height: 38px; padding: 0 9px; border: 1px solid var(--v2-line); border-radius: 4px; background: var(--v2-bg); color: var(--v2-text); text-align: left; cursor: pointer; }
.portal-color-trigger span:last-child { margin-left: auto; }
.portal-color-trigger.is-invalid { border-color: #ba1a1a; }
.portal-color-panel { grid-column: 1 / -1; padding: 12px; border: 1px solid var(--v2-line); border-radius: 6px; background: var(--v2-surface); }
.portal-color-panel[hidden] { display: none; }
.portal-color-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; max-height: 180px; overflow-y: auto; }
.portal-color-option { display: flex; align-items: center; gap: 7px; min-height: 32px; padding: 4px 7px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--v2-text); text-align: left; cursor: pointer; }
.portal-color-option:hover, .portal-color-option:focus-visible { border-color: var(--v2-line); background: var(--v2-bg); }
.portal-color-swatch { flex: none; width: 17px; height: 17px; border: 1px solid #aeb8b0; border-radius: 50%; }
.portal-color-swatch[hidden] { display: none; }
.portal-color-create { display: flex; align-items: end; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--v2-line); }
.portal-color-create label:first-child { flex: 1; }
.portal-new-form .portal-color-create input[type=color] { width: 45px; padding: 3px; cursor: pointer; }
.portal-color-create button { min-height: 38px; padding: 0 10px; border: 1px solid var(--v2-primary); border-radius: 4px; background: var(--v2-primary); color: #fff; cursor: pointer; }
.portal-color-panel .portal-new-error { margin-top: 8px; }
@media (max-width: 520px) { .portal-color-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.portal-new-form .portal-new-check { display: flex; align-items: center; gap: 7px; }
.portal-new-error, .portal-new-actions { grid-column: 1 / -1; }
.portal-new-error { margin: 0; color: #ba1a1a; }
#quote-options-status { grid-column: 1 / -1; margin: 0; color: #526061; }
.portal-new-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 8px; }
.portal-new-actions[hidden] { display: none; }
.portal-new-actions button { min-height: 35px; padding: 0 12px; border: 1px solid #dce3e0; background: #fff; cursor: pointer; }
.portal-new-actions button[type=submit] { border-color: #173f3a; background: #173f3a; color: #fff; }
.portal-wizard-steps { display: flex; gap: 4px; margin-bottom: 16px; }
.portal-wizard-steps span { flex: 1; padding: 8px 4px; border-bottom: 2px solid #dce3e0; color: #667175; font-size: 11px; text-align: center; }
.portal-wizard-steps span.is-active { border-color: #173f3a; color: #173f3a; font-weight: 700; }
.portal-wizard-panel { display: grid; gap: 12px; }
.portal-wizard-panel p { margin: 0; }
.portal-wizard-panel .portal-upload-input { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.portal-upload-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 250px; padding: 24px; border: 1px dashed #9bb3aa; border-radius: 15px; background: #fcfefd; color: var(--v2-text); text-align: center; cursor: pointer; transition: background .15s, border-color .15s; }
.portal-upload-zone:hover, .portal-upload-zone:focus-within, .portal-upload-zone.is-dragging { border-color: var(--v2-primary); background: #f0f8f4; }
.portal-upload-zone.is-busy { cursor: progress; }
.portal-upload-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: #eaf1ee; color: var(--v2-primary); font-size: 32px; line-height: 1; }
.portal-upload-zone strong { font-size: 15px; font-weight: 600; }
.portal-upload-zone > span:not(.portal-upload-icon) { color: #66736e; font-size: 12px; }
.portal-upload-zone button { min-height: 35px; margin-top: 6px; padding: 0 14px; border: 1px solid #d7e0dc; border-radius: 8px; background: #fff; color: var(--v2-text); font-weight: 600; cursor: pointer; }
.portal-upload-zone button:hover { border-color: var(--v2-primary); }
.portal-wizard-panel select { width: 100%; height: 38px; padding: 0 9px; border: 1px solid #dce3e0; background: #fbfdfc; color: #263033; }
.portal-uploaded-files { display: grid; gap: 6px; max-height: 190px; overflow: auto; }
.portal-uploaded-files div { padding: 8px 10px; border: 1px solid var(--v2-line); border-radius: 6px; overflow-wrap: anywhere; }
.portal-uploaded-files .portal-queued-file { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.portal-queued-file button { flex: none; border: 0; background: transparent; color: #9b2d27; cursor: pointer; }
.portal-upload-zone[hidden], .portal-uploaded-files[hidden], .portal-upload-status[hidden] { display: none; }
.portal-detail-upload-zone { min-height: 180px; margin: 16px 0 0; }
.portal-detail-upload-zone.is-busy { opacity: .7; }
.portal-detail-upload-progress { margin-top: 10px; }
.portal-detail-upload-progress:empty { display: none; }
.portal-upload-status { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--v2-line); border-radius: 10px; background: var(--v2-bg); }
.portal-upload-status p { color: #53615b; font-size: 13px; }
.portal-upload-meter-wrap { display: grid; gap: 8px; }
.portal-upload-meter-wrap[hidden] { display: none; }
.portal-upload-meter-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #53615b; font-size: 12px; }
.portal-upload-meter-caption strong { flex: none; color: #237450; font-variant-numeric: tabular-nums; }
#quote-upload-meter { appearance: none; display: block; width: 100%; height: 12px; overflow: hidden; border: 0; border-radius: 999px; background: #e2eee7; accent-color: #237450; }
#quote-upload-meter::-webkit-progress-bar { border-radius: 999px; background: #e2eee7; box-shadow: inset 0 1px 2px rgb(23 63 58 / 8%); }
#quote-upload-meter::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, #237450, #6aac86); transition: width .25s ease; }
#quote-upload-meter::-moz-progress-bar { border-radius: 999px; background: linear-gradient(90deg, #237450, #6aac86); }
.portal-upload-meter-wrap.is-error #quote-upload-meter::-webkit-progress-value { background: #c64b54; }
.portal-upload-meter-wrap.is-error #quote-upload-meter::-moz-progress-bar { background: #c64b54; }
.portal-upload-meter-wrap.is-error .portal-upload-meter-caption strong { color: #c64b54; }
@media (prefers-reduced-motion: reduce) { #quote-upload-meter::-webkit-progress-value { transition: none; } }
.portal-upload-progress { display: grid; gap: 5px; max-height: 220px; overflow: auto; font-size: 12px; }
.portal-upload-progress > div { padding: 6px 0; border-bottom: 1px solid var(--v2-line); overflow-wrap: anywhere; }
.portal-upload-status > button { justify-self: end; min-height: 32px; padding: 0 10px; border: 1px solid var(--v2-line); border-radius: 6px; background: var(--v2-surface); cursor: pointer; }
.portal-upload-status > button[hidden] { display: none; }
.portal-conditions-button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #e6c767; border-radius: 0; background: #fff8db; cursor: pointer; }
.portal-conditions-button:hover, .portal-conditions-button:focus-visible { background: #fff3bd; outline: 2px solid #c99d16; outline-offset: 2px; }
.portal-warning-triangle { width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 18px solid #f5c542; filter: drop-shadow(0 1px 0 rgba(31, 41, 51, .22)); }
.portal-conditions-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(17, 24, 39, .42); }
.portal-conditions-dialog { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 91; display: flex; flex-direction: column; width: min(92vw, 760px); max-height: min(88vh, 820px); padding: 20px; box-sizing: border-box; border: 1px solid var(--v2-line); border-radius: 0; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .2); color: var(--v2-text); }
.portal-conditions-backdrop[hidden], .portal-conditions-dialog[hidden] { display: none; }
.portal-conditions-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex: 0 0 auto; padding-bottom: 12px; border-bottom: 1px solid var(--v2-line); }
.portal-conditions-header small { color: var(--v2-muted); font-size: 10px; letter-spacing: .08em; }
.portal-conditions-header h2 { margin: 5px 0 0; font-size: 21px; }
.portal-conditions-header button { width: 30px; height: 30px; border: 1px solid var(--v2-line); border-radius: 0; background: #fff; font-size: 22px; cursor: pointer; }
.portal-conditions-content { overflow: auto; display: grid; gap: 14px; padding: 16px 4px 0 0; color: #374151; font-size: 14px; line-height: 1.55; }
.portal-conditions-content section { display: grid; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid #e5e7eb; }
.portal-conditions-content section:last-child { border-bottom: 0; padding-bottom: 0; }
.portal-conditions-content h3, .portal-conditions-content p { margin: 0; }
.portal-conditions-content h3 { color: #1f2933; font-size: 15px; font-weight: 800; }
.portal-conditions-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex: 0 0 auto; padding-top: 14px; }
.portal-conditions-footer [hidden] { display: none; }
.portal-conditions-error { margin: 0 auto 0 0; color: #ba1a1a; font-size: 11px; }
.portal-conditions-footer button { padding: 8px 18px; border: 1px solid var(--v2-line); border-radius: 0; background: #fff; cursor: pointer; }
.portal-shell .v2-body { height: 100%; }
.portal-sidebar, .portal-list-pane, .portal-detail-pane { min-height: 0; }
.portal-sidebar { overflow: auto; }
.portal-sidebar nav { display: flex; flex-direction: column; gap: 8px; padding-top: 22px; }
.portal-account { display: grid; justify-content: stretch; gap: 3px; overflow-wrap: anywhere; }
.portal-account small { color: var(--v2-muted); }
.portal-account button { justify-self: start; padding: 0; }
.portal-main { min-height: 0; }
.portal-list-pane .v2-list-header { min-height: 50px; }
.portal-count { padding: 4px 8px; border-radius: 999px; background: var(--v2-surface-low); color: var(--v2-muted); font-size: 9px; white-space: nowrap; }
.portal-toolbar { grid-template-columns: minmax(220px, 1fr) auto !important; align-items: center; }
.portal-quote-actions { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.portal-quote-actions > span { color: var(--v2-muted); font-size: 9px; }
.portal-quote-actions button:disabled { cursor: default; opacity: .45; }
.portal-action-error { margin: -5px 18px 9px; color: #ba1a1a; font-size: 10px; }
.portal-print-frame { position: fixed; right: 0; bottom: 0; width: 1px; height: 1px; border: 0; opacity: 0; pointer-events: none; }
.portal-list-pane .v2-content { overflow: auto; }
.portal-detail-pane { overflow: auto; }
.portal-sidebar, .portal-list-pane .v2-content, .portal-detail-pane { scrollbar-width: thin; scrollbar-color: #9eafb7 transparent; }
.portal-sidebar::-webkit-scrollbar, .portal-list-pane .v2-content::-webkit-scrollbar, .portal-detail-pane::-webkit-scrollbar { width: 4px; height: 4px; }
.portal-sidebar::-webkit-scrollbar-thumb, .portal-list-pane .v2-content::-webkit-scrollbar-thumb, .portal-detail-pane::-webkit-scrollbar-thumb { background: #9eafb7; }
.portal-table { min-width: 0; }
.portal-table col:nth-child(1) { width: 13%; }
.portal-table col:nth-child(2) { width: 21%; }
.portal-table col:nth-child(3) { width: 7%; }
.portal-table col:nth-child(4) { width: 7%; }
.portal-table col:nth-child(5) { width: 8%; }
.portal-table col:nth-child(6) { width: 12%; }
.portal-table col:nth-child(7) { width: 12%; }
.portal-table col:nth-child(8) { width: 10%; }
.portal-table col:nth-child(9) { width: 10%; }
.portal-table.without-quantity col:nth-child(1) { width: 13%; }
.portal-table.without-quantity col:nth-child(2) { width: 25%; }
.portal-table.without-quantity col:nth-child(3) { width: 7%; }
.portal-table.without-quantity col:nth-child(4) { width: 10%; }
.portal-table.without-quantity col:nth-child(5) { width: 14%; }
.portal-table.without-quantity col:nth-child(6) { width: 12%; }
.portal-table.without-quantity col:nth-child(7) { width: 10%; }
.portal-table.without-quantity col:nth-child(8) { width: 9%; }
.portal-table.has-state col:nth-child(1) { width: 12%; }
.portal-table.has-state col:nth-child(2) { width: 19%; }
.portal-table.has-state col:nth-child(3) { width: 6%; }
.portal-table.has-state col:nth-child(4) { width: 6%; }
.portal-table.has-state col:nth-child(5) { width: 7%; }
.portal-table.has-state col:nth-child(6) { width: 11%; }
.portal-table.has-state col:nth-child(7) { width: 10%; }
.portal-table.has-state col:nth-child(8) { width: 10%; }
.portal-table.has-state col:nth-child(9) { width: 9%; }
.portal-table.has-state col:nth-child(10) { width: 10%; }
.portal-table th:first-child { text-align: center; }
.portal-table th:nth-child(3) { text-indent: -11px; }
.portal-table td:first-child { padding-left: 13px; }
.portal-id-group { display: flex; align-items: center; gap: 7px; min-width: 0; }
.portal-id-group .v2-id-stack { margin-left: 9px; }
.portal-row-checkbox { width: 12px; height: 12px; flex: 0 0 12px; margin: 0; accent-color: var(--v2-primary); cursor: pointer; }
.portal-row:focus-visible { outline: 2px solid var(--v2-primary); outline-offset: -2px; }
.portal-row .v2-technique-badge { width: fit-content; }
.portal-table th:nth-last-child(2), .portal-table td:nth-last-child(2) { text-align: center; font-variant-numeric: tabular-nums; }
.portal-table .portal-price { display: inline-block; text-align: center; white-space: nowrap; }
.portal-price small { display: block; margin-top: 3px; color: var(--v2-muted); font-size: 8px; }
.portal-table.without-quantity :is(th, td):is(:nth-child(4), :nth-child(5), :nth-child(6)),
.portal-table.has-state :is(th, td):is(:nth-child(5), :nth-child(6), :nth-child(7)) { text-align: center; }
.portal-dimension, .portal-date { font-family: inherit; font-size: 11px; font-weight: 400; letter-spacing: normal; font-variant-numeric: normal; white-space: nowrap; }
.portal-thumb-empty { display: inline-grid; place-items: center; }
.portal-detail-top { min-height: 145px; }
.portal-detail-image { width: var(--portal-image-size, 132px); height: var(--portal-image-size, 132px); object-fit: contain; border: 1px solid var(--v2-line-soft); border-radius: 9px; background: var(--v2-surface-low); }
.portal-detail-top .v2-detail-hero { flex: 0 0 var(--portal-image-size, 132px); }
.portal-price-value { display: flex; align-items: center; min-height: 30px; padding: 0 8px; border-radius: 8px; background: var(--v2-surface-low); color: var(--v2-text) !important; font-size: 9px !important; font-weight: 400 !important; }
.portal-price-note { max-width: 190px; margin-top: 8px; color: #ba1a1a; font-size: 9px; line-height: 1.35; white-space: pre-wrap; }
.portal-tabs { margin-top: 10px; }
.portal-detail-section { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--v2-line); }
.portal-tabs + .portal-detail-section { border-top: 0; }
.portal-detail-section h3 { margin: 0 0 11px; color: var(--v2-primary); font-size: 10px; font-weight: 500; }
.portal-detail-section .v2-form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.portal-readonly { display: flex; align-items: center; min-height: 34px; padding: 0 9px; border-radius: 8px; background: var(--v2-surface-low); color: var(--v2-text); font-size: 9px; overflow-wrap: anywhere; }
.portal-note { padding: 8px 0; border-bottom: 1px solid var(--v2-line-soft); white-space: pre-wrap; }
.portal-file-list { margin-top: 10px; padding: 5px 16px; border: 1px solid var(--v2-line-soft); border-radius: 14px; background: var(--v2-surface-low); }
.portal-file-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 46px; padding: 5px 0; border-bottom: 1px solid #e0e7eb; }
.portal-file-row:last-child { border-bottom: 0; }
.portal-file-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: #fff; color: #476477; font-size: 14px; }
.portal-file-info { display: grid; gap: 2px; min-width: 0; }
.portal-file-name { overflow: hidden; color: #25343c; font-size: 13px; font-weight: 650; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.portal-file-name:hover, .portal-file-name:focus-visible { text-decoration: underline; }
.portal-file-info small { color: #61717d; font-size: 11px; }
.portal-file-actions { display: flex; align-items: center; gap: 6px; }
.portal-file-action { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid #d6e0e5; border-radius: 8px; background: #fff; color: #314650; font-size: 17px; text-decoration: none; cursor: pointer; }
.portal-file-action:hover, .portal-file-action:focus-visible { background: #edf4f6; }
.portal-file-action.is-danger { border-color: #ecc5c2; color: #b12a22; }
.portal-file-action.is-danger:hover, .portal-file-action.is-danger:focus-visible { background: #fff1ef; }
.portal-file-preview { position: fixed; z-index: 1000; display: grid; place-items: center; width: 220px; min-height: 80px; max-height: 220px; padding: 10px; border: 1px solid #d6e0e5; border-radius: 11px; background: #fff; box-shadow: 0 12px 32px #20343c33; color: #61717d; font-size: 12px; pointer-events: none; }
.portal-file-preview img { display: block; max-width: 200px; max-height: 200px; object-fit: contain; }
.portal-empty { padding: 25px; color: var(--v2-muted); }
@media (max-width: 920px) { .portal-main { grid-template-columns: minmax(0, 1fr); } .portal-detail-pane { display: none; } }
@media (max-width: 700px) { .portal-toolbar { grid-template-columns: 1fr !important; } .portal-quote-actions { justify-content: flex-end; } }
@media (max-width: 620px) { .portal-sidebar { width: 112px; flex-basis: 112px; } .portal-table { min-width: 920px; } .rules { grid-template-columns: 1fr; } }

/* Shared Contabilidade AL typography and light green palette, scoped to this portal. */
.portal-shell { font-size: 13px; }
.portal-topbar { position: relative; background: color-mix(in oklch, var(--v2-bg) 90%, transparent); border-top: 0; border-bottom-color: var(--v2-line); padding: 0 24px; gap: 8px; }
.portal-topbar::before { content: ""; position: absolute; top: 0; bottom: 0; left: 215px; width: 1px; background: var(--v2-line); pointer-events: none; }
.portal-topbar .v2-brand { display: grid; place-items: center; flex: 0 0 216px; width: 216px; height: 100%; margin-left: -24px; }
.portal-topbar .v2-brand-title { color: var(--v2-text); font-size: 18px; font-weight: 650; }
.portal-sidebar { width: 216px; flex-basis: 216px; padding: 0 8px; background: oklch(0.965 0.01 158); border-right-color: var(--v2-line); }
.portal-sidebar nav { gap: 10px; padding-top: 54px; }
.portal-sidebar .v2-nav-item { min-height: 32px; gap: 10px; padding: 0 8px; border-radius: 6px; color: var(--v2-muted); font-size: 12px; font-weight: 400; }
.portal-sidebar .v2-nav-item span { display: grid; place-items: center; width: 15px; height: 15px; flex: 0 0 15px; }
.portal-sidebar .v2-nav-item svg { display: block; width: 15px; height: 15px; }
.portal-sidebar .v2-nav-item:hover { background: var(--v2-surface-low); color: var(--v2-text); }
.portal-sidebar .v2-nav-item.is-active { background: color-mix(in oklch, var(--v2-primary) 9%, transparent); color: var(--v2-primary); font-weight: 500; }
.portal-top-controls { gap: 8px; }
.portal-period { gap: 4px; padding: 4px; border-color: var(--v2-line); border-radius: 6px; background: color-mix(in oklch, var(--v2-surface-low) 20%, var(--v2-bg)); color: var(--v2-text); }
.portal-period button, .portal-period select { height: 28px; border-radius: 4px; color: var(--v2-text); font-size: 10px; }
.portal-period button { padding: 0 8px; }
.portal-period button:not(.is-active) { color: var(--v2-muted); }
.portal-period button.is-active { border-color: transparent; background: var(--v2-bg); color: var(--v2-text); font-weight: 600; box-shadow: 0 2px 6px rgba(23, 63, 58, .2), 0 1px 2px rgba(23, 63, 58, .13); }
.portal-period select { padding: 0 4px; border-color: var(--v2-line); background: var(--v2-bg); }
.portal-global-search-button { width: min(22vw, 240px); height: 32px; gap: 8px; padding: 0 10px; border-color: var(--v2-line); border-radius: 6px; background: color-mix(in oklch, var(--v2-surface-low) 20%, var(--v2-bg)); color: var(--v2-muted); font-size: 11px; }
.portal-global-search-button kbd { padding: 2px 6px; border-color: var(--v2-line); background: var(--v2-bg); color: var(--v2-text); font-size: 9px; }
.portal-new-button, .portal-new-actions button[type=submit] { border-color: var(--v2-primary); background: var(--v2-primary); }
.portal-new-button { height: 28px; border-radius: 6px; font-size: 12px; }
.portal-new-button span { font-size: 14px; }
.portal-conditions-button { width: 28px; height: 28px; }
.portal-list-pane, .portal-detail-pane { background: var(--v2-surface); }
.portal-list-pane .v2-list-header h1 { color: var(--v2-text); font-size: 19px; font-weight: 600; }
.portal-count { color: var(--v2-muted); font-size: 11px; font-weight: 500; }
.portal-list-pane .v2-search { background: var(--v2-bg); border-color: var(--v2-line); }
.portal-list-pane .v2-search input { color: var(--v2-text); font-size: 12px; }
.portal-quote-actions > span { font-size: 11px; }
.portal-table thead { background: var(--v2-bg); color: var(--v2-muted); }
.portal-table th { font-size: 10px; font-weight: 600; letter-spacing: .035em; }
.portal-table col:nth-child(1) { width: 15%; }
.portal-table col:nth-child(2) { width: 19%; }
.portal-table.without-quantity col:nth-child(1) { width: 15%; }
.portal-table.without-quantity col:nth-child(2) { width: 23%; }
.portal-table.has-state col:nth-child(1) { width: 14%; }
.portal-table.has-state col:nth-child(2) { width: 17%; }
.portal-table td { color: var(--v2-text); font-size: 11px; }
.portal-table .v2-id-stack strong { color: var(--v2-text); font-size: 11px; font-weight: 600; }
.portal-table .v2-ref-stack small, .portal-table .v2-id-stack small { font-size: 10px; }
.portal-table .v2-row:nth-child(even) { background: var(--v2-surface); }
.portal-table .v2-row:hover, .portal-table .v2-row.is-selected { background: oklch(0.965 0.01 158); }
.portal-detail-pane .v2-detail-kicker { font-size: 11px; }
.portal-detail-pane .v2-detail h2 { color: var(--v2-text); font-size: 19px; font-weight: 600; }
.portal-detail-pane .v2-tabs button { font-size: 12px; font-weight: 500; }
.portal-detail-pane .v2-tabs button.is-active { font-weight: 600; }
.portal-detail-section h3 { font-size: 11px; font-weight: 600; }
.portal-readonly, .portal-price-value { background: var(--v2-bg); font-size: 11px !important; }
.portal-price small, .portal-price-note { font-size: 10px; }
.portal-global-search-dialog, .portal-new-dialog { border-color: var(--v2-line); background: var(--v2-surface); color: var(--v2-text); }
.portal-global-search-dialog input, .portal-new-form input:not([type=checkbox]), .portal-new-form select, .portal-wizard-panel select { border-color: var(--v2-line); background: var(--v2-bg); color: var(--v2-text); }
.portal-wizard-steps span.is-active { border-color: var(--v2-primary); color: var(--v2-primary); }
.portal-sidebar, .portal-list-pane .v2-content, .portal-detail-pane { scrollbar-color: color-mix(in srgb, var(--v2-primary) 35%, transparent) transparent; }
.portal-sidebar::-webkit-scrollbar-thumb, .portal-list-pane .v2-content::-webkit-scrollbar-thumb, .portal-detail-pane::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--v2-primary) 35%, transparent); }
@media (max-width: 620px) { .portal-sidebar { width: 112px; flex-basis: 112px; } .portal-topbar::before { left: 111px; } .portal-topbar .v2-brand { width: 112px; flex-basis: 112px; } .portal-sidebar .v2-nav-item { gap: 6px; font-size: 10px; } }

.portal-placement-products { display: flex; flex-wrap: wrap; gap: 14px; max-height: 280px; overflow-y: auto; padding: 4px; }
.portal-placement-product { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; width: 100px; cursor: pointer; }
.portal-placement-product input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.portal-placement-product-tile { display: grid; place-items: center; width: 88px; height: 88px; border: 2px solid var(--v2-line); border-radius: 9px; background: #fff; }
.portal-placement-product-tile img { display: block; width: 80px; height: 80px; object-fit: contain; border-radius: 6px; }
.portal-placement-product input:checked + .portal-placement-product-tile { border-color: var(--v2-primary); box-shadow: 0 0 0 2px var(--v2-bg); }
.portal-placement-product input:focus-visible + .portal-placement-product-tile { outline: 2px solid var(--v2-primary); outline-offset: 3px; }
.portal-placement-product-name { max-width: 100%; text-align: center; font-size: 12px; overflow-wrap: anywhere; }
.portal-placement-product-placeholder { font-size: 11px; color: #66736e; }

.portal-quote-review-heading { margin: 18px 0 8px; font-size: 17px; color: #173f3a; }
.portal-quote-review-preview { margin: 18px 0; text-align: center; color: #64706b; font-size: 12px; }
.portal-quote-review-image-scroll { max-height: 470px; overflow: auto; border: 1px solid #d7dfdb; background: #fff; }
.portal-quote-review-preview img { display: block; width: max(100%, 760px); height: auto; margin: 0 auto; background: #fff; }
.portal-quote-review-preview figcaption { margin-top: 8px; }
.portal-screen-reader-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.portal-quote-review-details { display: grid; grid-template-columns: minmax(90px, .7fr) minmax(0, 1.3fr); gap: 0 14px; margin: 0; font-size: 14px; line-height: 1.45; }
.portal-quote-review-details dt, .portal-quote-review-details dd { margin: 0; padding: 7px 0; border-bottom: 1px solid #e4e9e6; }
.portal-quote-review-details dt { color: #64706b; }
.portal-quote-review-details dd { font-weight: 500; overflow-wrap: anywhere; }
.portal-quote-review-notes { display: grid; gap: 7px; margin: 18px 0; color: #263c33; font-size: 14px; font-weight: 600; }
.portal-quote-review-notes textarea { width: 100%; min-height: 100px; padding: 10px 12px; resize: vertical; border: 1px solid #bfcfc6; border-radius: 8px; background: #fff; color: #172e24; font: inherit; font-weight: 400; }
.portal-quote-review-notes textarea:focus-visible { outline: 2px solid #237450; outline-offset: 2px; }
#quote-review-step .portal-new-actions { clear: both; position: sticky; bottom: -20px; z-index: 1; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid #d7dfdb; background: #fff; }
@media (max-width: 520px) { #quote-review-step .portal-new-actions { flex-wrap: wrap; } }

#quote-review-create { border-color: var(--v2-primary, #173f3a); background: var(--v2-primary, #173f3a); color: #fff; }
#new-quote-dialog .portal-new-actions { align-items: center; flex-wrap: wrap; border-top: 1px solid #d7dfdb; padding-top: 12px; }
#new-quote-dialog .portal-new-actions button { min-height: 32px; border-radius: 8px; transition: background .15s, border-color .15s; }
#new-quote-dialog button.portal-wizard-icon { display: inline-grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; min-height: 28px; padding: 0; border-radius: 8px; cursor: pointer; }
#new-quote-dialog button.portal-wizard-icon[hidden] { display: none; }
#new-quote-dialog .portal-wizard-icon svg { display: block; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#new-quote-dialog .portal-wizard-cancel { border: 1px solid #efb8bc; background: #fff5f5; color: #c64b54; }
#new-quote-dialog .portal-wizard-cancel:hover:not(:disabled) { border-color: #dd939a; background: #ffebed; }
#new-quote-dialog .portal-wizard-back { border: 1px solid #b8d8c7; background: #f2f8f4; color: #237450; }
#new-quote-dialog .portal-wizard-back:hover:not(:disabled) { border-color: #91bba4; background: #e6f2eb; }
#new-quote-dialog .portal-wizard-continue, #new-quote-dialog #quote-review-create { border: 1px solid #b8d8c7; background: #f2f8f4; color: #237450; font-weight: 600; }
#new-quote-dialog .portal-wizard-continue:hover:not(:disabled) { border-color: #91bba4; background: #e6f2eb; color: #1b5f41; }
#new-quote-dialog .portal-wizard-icon:focus-visible, #new-quote-dialog .portal-wizard-continue:focus-visible { outline: 2px solid #237450; outline-offset: 3px; }
#new-quote-dialog .portal-wizard-icon:disabled, #new-quote-dialog .portal-wizard-continue:disabled { opacity: .5; cursor: not-allowed; }

.portal-quote-created-dialog { box-sizing: border-box; width: min(92vw, 420px); padding: 24px; border: 1px solid var(--v2-line); border-radius: 12px; background: #fff; color: var(--v2-text); text-align: center; box-shadow: 0 18px 60px #17221c33; }
.portal-quote-created-dialog::backdrop { background: #1b262777; }
.portal-quote-created-icon { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%; background: #e6f2eb; color: #237450; font-size: 24px; font-weight: 700; }
.portal-quote-created-dialog h2 { margin: 0 0 8px; font-size: 20px; }
.portal-quote-created-dialog p { margin: 0 0 12px; color: var(--v2-muted); font-size: 13px; line-height: 1.45; }
.portal-quote-created-number { display: block; padding: 9px; color: var(--v2-primary); font-size: 24px; letter-spacing: .04em; overflow-wrap: anywhere; }
.portal-quote-created-actions { display: flex; justify-content: flex-end; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--v2-line); }
.portal-quote-created-actions button { min-width: 92px; min-height: 36px; padding: 0 14px; border: 1px solid #b8d8c7; border-radius: 8px; background: #f2f8f4; color: #237450; font: inherit; font-weight: 600; cursor: pointer; }
.portal-quote-created-actions button:hover, .portal-quote-created-actions button:focus-visible { border-color: #91bba4; background: #e6f2eb; }
.portal-quote-created-actions button:focus-visible { outline: 2px solid #237450; outline-offset: 3px; }
/* Entrada pelo aviso de email: manter explícito o limite do acesso. */
.portal-notification-readonly { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #63766b; font-size: 11px; }
.portal-notification-readonly[hidden] { display: none; }
.portal-notification-readonly button { padding: 6px 9px; border: 1px solid #cbdacf; border-radius: 7px; color: #24503e; background: #eef5ef; font: inherit; cursor: pointer; }
