:root {
  --navy: #122b44;
  --navy-deep: #0d2135;
  --blue: #1d79bd;
  --blue-bright: #238bd2;
  --blue-soft: #eaf5fc;
  --ink: #1e2c3b;
  --muted: #778594;
  --line: #e3e9ee;
  --bg: #f5f7fa;
  --green: #15a66d;
  --red: #d64d55;
  --shadow: 0 3px 16px rgba(24, 48, 70, .06);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 1100px; background: var(--bg); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: flex; }

.sidebar { width: 212px; background: var(--navy); color: #dbe8f2; display: flex; flex-direction: column; flex-shrink: 0; }
.brand { height: 92px; display: flex; align-items: center; gap: 10px; padding: 0 19px; background: var(--navy-deep); }
.brand-mark { width: 30px; height: 39px; position: relative; border: 3px solid #2795dd; display: flex; gap: 3px; padding: 3px; flex-shrink: 0; }
.brand-mark span { display: block; flex: 1; background: #2795dd; }
.brand-mark span:first-child { opacity: .55; }
.brand strong { display: block; color: #f7fbff; font-size: 16px; letter-spacing: -.6px; line-height: 1.1; }
.brand strong span { color: #4bb3ec; }
.brand small { display: block; margin-top: 5px; color: #84a1b7; font-size: 7px; letter-spacing: 1.1px; font-weight: 700; }
.main-nav { padding: 16px 9px; flex: 1; }
.nav-item { width: 100%; height: 41px; padding: 0 11px; border: 0; border-radius: 6px; background: transparent; color: #aec4d6; text-align: left; font-size: 12px; display: flex; align-items: center; gap: 11px; transition: .15s ease; }
.nav-item:hover { background: rgba(255,255,255,.08); color: white; }
.nav-item.active { background: #1d5780; color: white; box-shadow: inset 3px 0 #35a7e6; }
.nav-icon { width: 16px; text-align: center; color: #bad2e2; font-size: 17px; line-height: 1; }
.nav-item.active .nav-icon { color: #63c3fa; }
.nav-item.role-hidden { display: none; }
.nav-badge { margin-left: auto; background: rgba(73, 180, 235, .22); color: #8fdbfa; border-radius: 9px; font-size: 10px; padding: 2px 7px; }
.chevron { margin-left: auto; color: #7796ab; }
.sidebar-footer { padding: 15px 12px; }
.help-card { border: 1px solid rgba(197,224,240,.16); border-radius: 8px; padding: 11px; display: flex; gap: 9px; align-items: center; }
.help-icon { width: 23px; height: 23px; border-radius: 50%; background: #204b6b; color: #89caea; display: grid; place-items: center; font-weight: 800; }
.help-card strong, .help-card span { display: block; font-size: 10px; }
.help-card strong { color: #e8f4fb; margin-bottom: 3px; }
.help-card span { color: #8ea9bb; font-size: 9px; }
.sidebar-version { color: #668397; text-align: center; font-size: 9px; margin-top: 18px; }

.main-content { flex: 1; min-width: 0; }
.topbar { height: 65px; background: white; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 31px; gap: 25px; }
.mobile-menu { display: none; }
.global-search { width: 405px; height: 37px; background: #f3f6f9; border: 1px solid #edf1f4; border-radius: 7px; display: flex; align-items: center; gap: 9px; padding: 0 12px; color: #8d9aa5; }
.global-search span, .input-with-icon > span { font-size: 20px; line-height: 1; }
.global-search input { border: 0; outline: 0; background: none; width: 100%; color: var(--ink); font-size: 12px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.icon-button { background: transparent; border: 0; color: var(--navy); font-size: 21px; position: relative; }
.notification i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #e25261; top: 1px; right: 1px; border: 1px solid white; }
.user-menu { border-left: 1px solid var(--line); padding-left: 20px; display: flex; align-items: center; gap: 9px; min-width: 135px; }
.avatar { width: 31px; height: 31px; border-radius: 50%; background: #d9e9f4; color: #236486; display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.user-menu strong, .user-menu span { display: block; font-size: 11px; }
.user-menu span { color: var(--muted); font-size: 9px; margin-top: 2px; }
.user-menu .down { margin-left: auto; color: var(--muted); font-size: 15px; }
.content-wrap { max-width: 1500px; margin: 0 auto; padding: 27px 32px 44px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 17px; }
.eyebrow { color: var(--blue); letter-spacing: 1.4px; font-size: 9px; font-weight: 800; margin-bottom: 7px; }
h1, h2, p { margin: 0; }
h1 { font-size: 25px; letter-spacing: -.7px; color: #142c42; }
.page-heading p { color: #8a98a4; font-size: 11px; margin-top: 5px; }
.heading-actions { display: flex; gap: 10px; padding-top: 14px; }
.btn { border: 0; border-radius: 6px; height: 37px; padding: 0 15px; font-weight: 700; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
.btn-primary { background: var(--blue); color: white; box-shadow: 0 3px 6px rgba(29,121,189,.22); }
.btn-primary:hover { background: #16659f; }
.btn-secondary { background: white; color: #426073; border: 1px solid #dce5eb; }
.btn-secondary:hover, .btn-outline:hover { border-color: #a8c7d9; background: #f8fbfd; }
.btn-small { height: 35px; padding: 0 13px; font-size: 10px; }
.btn-outline { color: var(--blue); background: white; border: 1px solid #bbd8e7; }
.card { background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.quote-meta { min-height: 65px; margin-bottom: 17px; padding: 11px 17px; display: flex; align-items: center; gap: 33px; }
.meta-item label, .meta-item input { display: block; }
.meta-item label { color: #82909b; font-size: 9px; margin-bottom: 5px; font-weight: 700; }
.meta-item strong, .meta-item input { color: #283c4e; font-size: 11px; font-weight: 800; }
.meta-item input { border: 0; outline: none; padding: 0; width: 115px; }
.meta-divider { height: 34px; width: 1px; background: var(--line); margin-left: auto; }
.quote-status { display: flex; align-items: center; gap: 7px; color: #7b8a94; font-size: 10px; }
.status-dot { width: 7px; height: 7px; background: #45b68e; border-radius: 50%; }
.workspace-grid { display: grid; grid-template-columns: minmax(620px, 1.75fr) minmax(380px, .95fr); align-items: start; gap: 18px; }
.left-column, .right-column { display: flex; flex-direction: column; gap: 17px; }
.client-card, .product-picker-card, .detail-card, .configurator-card, .summary-card { padding: 16px 17px; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
.section-title > div { display: flex; align-items: center; gap: 8px; }
.section-title h2 { font-size: 14px; color: #203c53; letter-spacing: -.2px; }
.step { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #e7f3fb; color: var(--blue); font-size: 11px; font-weight: 800; }
.muted-label { color: #9aa7b0; font-size: 9px; }
.link-button { border: 0; background: none; color: var(--blue); font-size: 10px; padding: 0; }
.link-button.danger { color: #d95c65; }
.client-search-row { display: flex; gap: 9px; margin-bottom: 13px; }
.input-with-icon { height: 35px; border: 1px solid #d8e2e8; border-radius: 5px; flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 10px; color: #9aa9b4; position: relative; }
.input-with-icon input { border: 0; outline: 0; width: 100%; font-size: 11px; }
.suggestions { position: absolute; z-index: 5; left: -1px; right: -1px; top: 38px; border: 1px solid #d6e2e9; border-radius: 0 0 6px 6px; background: white; box-shadow: 0 10px 20px rgba(14,47,71,.12); display: none; }
.suggestion-item { padding: 10px 12px; font-size: 11px; cursor: pointer; border-bottom: 1px solid #eff3f5; }
.suggestion-item:last-child { border: 0; }
.suggestion-item:hover { background: #f1f8fc; }
.suggestion-item small { display: block; color: var(--muted); margin-top: 3px; }
.client-fields { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 11px 13px; }
label > span, .config-fields label > span { display: block; font-size: 9px; color: #748491; margin: 0 0 5px 2px; font-weight: 700; }
input, select { width: 100%; height: 34px; border: 1px solid #d7e1e7; border-radius: 5px; padding: 0 10px; outline-color: #84c6e7; background: white; color: #263c4c; font-size: 11px; }
label:has(> [required]) > span:first-child::after { content: ' *'; color: #c5545e; font-weight: 800; }
input:invalid:not(:placeholder-shown), select:invalid, textarea:invalid:not(:placeholder-shown) { border-color: #d98b91; box-shadow: 0 0 0 2px rgba(197, 84, 94, .08); }
input:focus, select:focus { border-color: #76badc; box-shadow: 0 0 0 3px rgba(38,145,203,.09); }
.wide { grid-column: span 2; }
.product-tabs { display: flex; gap: 3px; border-bottom: 1px solid var(--line); margin: 0 -17px 14px; padding: 0 17px; }
.product-tab { border: 0; background: transparent; height: 34px; padding: 0 12px; color: #788996; font-size: 10px; font-weight: 700; border-bottom: 2px solid transparent; }
.product-tab.active { color: var(--blue); border-color: var(--blue); }
.product-tab span { display: inline-block; color: #9aa8b1; font-size: 9px; margin-left: 3px; }
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.product-choice { min-height: 111px; background: #fff; border: 1px solid #dce5ea; border-radius: 6px; padding: 8px 5px 7px; transition: .15s; position: relative; }
.product-choice:hover, .product-choice.selected { border-color: #3d9bd0; box-shadow: 0 2px 8px rgba(30,120,177,.14); transform: translateY(-1px); }
.product-choice.selected:after { content: '✓'; position: absolute; right: 5px; top: 5px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: white; font-size: 9px; }
.product-choice strong { display: block; text-align: center; font-size: 9px; color: #314c60; line-height: 1.2; margin-top: 4px; }
.product-illustration { height: 65px; display: grid; place-items: center; }
.product-image { width: 88px; height: 60px; object-fit: contain; display: block; filter: drop-shadow(0 3px 3px rgba(34,55,68,.16)); }
.window-art { width: 72px; height: 48px; position: relative; border: 3px solid var(--art-frame, #596774); background: linear-gradient(135deg, #dbeef7, #f9fcfd 60%); box-shadow: inset 0 0 0 2px rgba(255,255,255,.8); }
.service-art { width: 72px; height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1px solid #dce7eb; border-radius: 7px; background: linear-gradient(135deg, #f3f8fa, #fff); color: #55717d; }
.service-art span { font-size: 22px; line-height: 1; }
.service-art small { font-size: 7px; font-weight: 700; letter-spacing: .2px; }
.mini-service-art { width: 42px; height: 34px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 1px solid #dce7eb; border-radius: 5px; background: #f5fafc; color: #55717d; }
.mini-service-art span { font-size: 15px; line-height: 1; }
.mini-service-art small { font-size: 5px; font-weight: 700; }
.window-art:before, .window-art:after { content: ''; position: absolute; background: var(--art-frame, #596774); }
.window-art.two:before { width: 3px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }
.window-art.two:after { width: 12px; height: 3px; left: 19%; top: 52%; box-shadow: 29px 0 var(--art-frame, #596774); }
.window-art.four:before { width: 3px; height: 100%; left: 25%; top: 0; box-shadow: 18px 0 var(--art-frame, #596774), 36px 0 var(--art-frame, #596774); }
.window-art.four:after { width: 6px; height: 3px; left: 5px; top: 50%; box-shadow: 18px 0 var(--art-frame, #596774), 36px 0 var(--art-frame, #596774), 54px 0 var(--art-frame, #596774); }
.window-art.fixed:before { width: 3px; height: 100%; left: 50%; top: 0; }
.window-art.fixed:after { display: none; }
.window-art.projecting { transform: perspective(60px) rotateY(-13deg); width: 53px; }
.window-art.projecting:before { width: 100%; height: 3px; left: 0; top: 18px; transform: rotate(-14deg); transform-origin: left; }
.window-art.casement { transform: perspective(80px) rotateY(-12deg); width: 58px; }
.window-art.casement:before { width: 3px; height: 100%; left: 49%; top: 0; }
.window-art.topfix:before { height: 3px; width: 100%; top: 37%; left: 0; }
.window-art.sidefix:before { width: 3px; height: 100%; right: 31%; top: 0; }
.window-art.special { border-radius: 0 0 0 0; clip-path: polygon(0 0, 43% 0, 43% 42%, 100% 42%, 100% 100%, 0 100%); }
.product-placeholder { height: 55px; color: #79a6be; display: grid; place-items: center; font-size: 28px; }
.detail-card { padding-bottom: 12px; }
.table-wrap { overflow-x: auto; }
.quote-table { width: 100%; border-collapse: collapse; min-width: 730px; }
.quote-table th { color: #7d8b97; font-size: 8px; text-align: left; background: #f7f9fb; border-top: 1px solid #e6edf1; border-bottom: 1px solid #e6edf1; padding: 9px 7px; white-space: nowrap; }
.quote-table td { border-bottom: 1px solid #edf1f3; padding: 9px 7px; vertical-align: middle; font-size: 10px; color: #344b5e; }
.quote-table td:first-child, .quote-table th:first-child { padding-left: 9px; width: 25px; }
.quote-table td:nth-child(5), .quote-table td:nth-child(6), .quote-table td:nth-child(7) { white-space: nowrap; }
.item-product { display: flex; align-items: center; gap: 7px; min-width: 110px; }
.item-product-image { width: 43px; height: 31px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 2px 2px rgba(34,55,68,.14)); }
.mini-art { width: 34px; height: 25px; border: 2px solid #697983; background: #eaf6fa; position: relative; flex-shrink: 0; }
.mini-art:before { content: ''; position: absolute; left: 50%; top: 0; width: 2px; height: 100%; background: #697983; }
.item-description strong, .item-description span { display: block; }
.item-description strong { font-size: 10px; color: #284257; }
.item-description span { color: #7c8b96; font-size: 9px; line-height: 1.4; }
.row-actions { display: flex; gap: 5px; }
.row-action { width: 24px; height: 24px; border: 0; border-radius: 4px; color: white; font-size: 11px; }
.row-action.edit { background: #6daaca; }.row-action.delete { background: #e05b62; }
.empty-state { padding: 25px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #8b99a2; }
.empty-state strong { color: #526a79; font-size: 11px; }.empty-state span { font-size: 10px; }.empty-icon { font-size: 24px; color: #a9c7d5; }

.configurator-card { padding-bottom: 15px; }
.config-layout { display: grid; grid-template-columns: 1fr 1.02fr; gap: 13px; }
.config-fields { display: flex; flex-direction: column; gap: 9px; }
.config-mode-notice { padding: 9px 10px; border: 1px solid #dbe7ec; border-radius: 6px; background: #f5fafc; color: #526873; font-size: 10px; line-height: 1.35; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check-list { display: flex; flex-direction: column; gap: 7px; padding-top: 4px; }
.check-list > #additionalExtraOptions { display: flex; flex-direction: column; gap: 7px; }
.checkbox-label { color: #546b7a; font-size: 10px; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox-label input { display: none; }
.custom-check { width: 14px; height: 14px; border: 1px solid #bdccd5; border-radius: 3px; display: inline-block; position: relative; flex-shrink: 0; }
.checkbox-label input:checked + .custom-check { background: var(--blue); border-color: var(--blue); }.checkbox-label input:checked + .custom-check:after { content: '✓'; color: white; font-size: 10px; position: absolute; left: 2px; top: -1px; }
.visual-preview { background: #f4f8fa; border: 1px solid #e1ebef; border-radius: 7px; padding: 10px 11px 11px; position: relative; }
.preview-label { color: #9caab3; letter-spacing: 1px; font-weight: 800; font-size: 8px; text-align: center; }
.window-canvas { height: 138px; display: grid; place-items: center; position: relative; }
.window-preview-wrap { width: 100%; height: 100%; display: grid; place-items: center; position: relative; background: transparent; }
.window-preview-image { width: min(94%, calc(112px * var(--preview-ratio))); max-width: 94%; max-height: 100%; aspect-ratio: var(--preview-ratio); height: auto; min-width: 0; min-height: 0; object-fit: fill; object-position: center; display: block; background: transparent !important; filter: drop-shadow(0 6px 6px rgba(41,64,74,.22)); }
.opening-badge { position: absolute; right: 5px; bottom: 4px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 5px; border: 1px solid #d5e2e8; border-radius: 4px; background: rgba(255,255,255,.92); color: #486675; font-size: 9px; box-shadow: 0 2px 5px rgba(35,62,74,.08); }
.opening-badge b { font-size: 12px; color: var(--blue); line-height: 1; }
.opening-badge small { font-size: 8px; }
.window-frame { width: min(94%, calc(112px * var(--preview-ratio))); aspect-ratio: var(--preview-ratio); height: auto; border: 7px solid #202a33; background: linear-gradient(135deg, #d6edf5 0%, #fafdff 54%, #c6e3ed 100%); box-shadow: 0 6px 8px rgba(41,64,74,.22), inset 0 0 0 2px rgba(255,255,255,.9); position: relative; }
.window-frame:before { content: ''; position: absolute; left: 50%; top: -1px; transform: translateX(-50%); width: 5px; height: calc(100% + 2px); background: #29343d; }
.window-frame:after { content: '→     ←'; position: absolute; left: 0; right: 0; top: 43%; text-align: center; font-size: 13px; font-weight: 800; color: #4d6875; letter-spacing: 16px; transform: scaleX(.7); }
.window-frame.single:before { display: none; }.window-frame.four:before { left: 25%; box-shadow: 41px 0 #29343d, 82px 0 #29343d; }.window-frame.four:after { content: '→  →  ←  ←'; letter-spacing: 2px; }.window-frame.folding:before { left: 25%; box-shadow: 41px 0 #29343d, 82px 0 #29343d; }.window-frame.folding:after { content: '↔  ⋯  ↔'; letter-spacing: 2px; }.window-frame.projecting { transform: perspective(120px) rotateY(-12deg); }.window-frame.projecting:after { content: '↗'; letter-spacing: 0; top: 40%; }.window-frame.casement:after { content: '↗'; letter-spacing: 0; }.window-frame.special { clip-path: polygon(0 0, 42% 0, 42% 42%, 100% 42%, 100% 100%, 0 100%); }.window-frame.no-arrows:after { display: none; }
.custom-drawing-editor { margin-top: 8px; padding: 10px; background: #fff; border: 1px solid #d5e2e8; border-radius: 7px; box-shadow: 0 3px 10px rgba(42,74,88,.06); }
.drawing-editor-heading { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }.drawing-editor-heading strong, .drawing-editor-heading span { display: block; }.drawing-editor-heading strong { color: #284e62; font-size: 10px; }.drawing-editor-heading span { color: #8b9aa3; font-size: 8px; margin-top: 3px; }.drawing-live-tag { border: 1px solid #b9e0ce; border-radius: 10px; padding: 3px 6px; color: #168657; background: #effaf4; font-size: 7px; letter-spacing: .6px; }
.drawing-toolbar { display: flex; flex-wrap: wrap; gap: 4px; margin: 9px 0 7px; }.drawing-toolbar .btn { min-height: 27px; height: 27px; padding: 0 7px; font-size: 8px; }.drawing-toolbar .drawing-action { background: #f3f8fa; }.drawing-toolbar .drawing-mode.active { background: #e7f3fa; border-color: #77b5d1; color: #176b91; }
.drawing-board-wrap { border: 1px solid #d6e2e7; border-radius: 5px; background: #f7fbfc; overflow: hidden; aspect-ratio: var(--drawing-ratio, 1.67); }.drawing-board { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }.drawing-board-glass { fill: #e7f4f8; }.drawing-board-frame { fill: none; stroke: #202a33; stroke-width: 7; }.drawing-guide { stroke: #a9c5ce; stroke-width: 1; stroke-dasharray: 4 4; opacity: .65; }.drawing-stroke { stroke: #202a33; stroke-width: 5; stroke-linecap: round; pointer-events: none; }.drawing-help { display: block; margin-top: 5px; color: #8999a2; font-size: 8px; line-height: 1.35; }
.drawing-readout { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; color: #7a8d98; font-size: 8px; }.drawing-readout b { color: #315b70; font-size: 9px; }
.width-dimension { position: absolute; left: 12px; right: 12px; bottom: 2px; }.height-dimension { position: absolute; right: 5px; top: 8px; height: 120px; flex-direction: column; }
.dimension { display: flex; align-items: center; gap: 4px; color: #687a86; font-size: 8px; }.dimension span { display: block; position: relative; }.width-dimension span { height: 1px; background: #92a4ae; flex: 1; }.width-dimension span:before, .width-dimension span:after { content: ''; width: 5px; height: 1px; background: #92a4ae; position: absolute; top: 0; }.width-dimension span:first-child:before { left: 0; transform: rotate(45deg); transform-origin: left; }.width-dimension span:last-child:after { right: 0; transform: rotate(-45deg); transform-origin: right; }.height-dimension span { width: 1px; background: #92a4ae; flex: 1; }.height-dimension span:before, .height-dimension span:after { content: ''; height: 5px; width: 1px; background: #92a4ae; position: absolute; left: 0; }.height-dimension span:first-child:before { top: 0; }.height-dimension span:last-child:after { bottom: 0; }
.preview-caption { background: white; border-radius: 5px; padding: 8px; margin-top: 1px; }.preview-caption strong, .preview-caption span { display: block; }.preview-caption strong { color: #38566a; font-size: 10px; }.preview-caption span { font-size: 9px; color: #85949d; margin-top: 3px; }
.price-box { padding: 9px 2px 4px; display: grid; grid-template-columns: 1fr .5fr; gap: 7px; }.price-box > div { display: flex; justify-content: space-between; align-items: center; }.price-box span { color: #83929c; font-size: 9px; }.price-box strong { color: #304b5e; font-size: 10px; }.price-total { grid-column: 1 / -1; border-top: 1px solid #dce6eb; padding-top: 7px; }.price-total strong { color: var(--blue); font-size: 15px; }.price-note { grid-column: 1 / -1; color: #8c9aa2; font-size: 8px; line-height: 1.35; }.btn-add { width: 100%; height: 36px; background: var(--green); color: white; margin-top: 5px; }.btn-add:hover { background: #0e8d5c; }
.summary-card { padding-bottom: 14px; }.summary-card .section-title { margin-bottom: 5px; }.summary-label { color: #98a6af; font-size: 9px; }.summary-lines > div { min-height: 31px; border-bottom: 1px solid #edf1f3; display: grid; grid-template-columns: 1fr auto; align-items: center; color: #71828e; font-size: 10px; }.summary-lines strong { color: #344f60; font-size: 11px; }.discount-row { grid-template-columns: 1fr 44px auto !important; gap: 7px; }.discount-row label { border: 1px solid #d9e3e8; border-radius: 4px; height: 23px; display: flex; align-items: center; color: #8a99a3; padding-right: 4px; font-size: 9px; }.discount-row input { height: 21px; border: 0; width: 27px; padding: 0 3px; text-align: right; font-size: 9px; }.summary-total { margin: 7px -17px 0; padding: 13px 17px; background: #1e78b8; color: white !important; border: 0 !important; }.summary-total strong { color: white; font-size: 16px; }.summary-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 13px; }.summary-actions .btn { width: 100%; padding-left: 4px; padding-right: 4px; font-size: 9px; }.whatsapp-button { width: 100%; height: 33px; border-radius: 5px; border: 1px solid #9bd8bb; background: #ecfbf3; color: #17915e; font-size: 10px; font-weight: 800; margin-top: 8px; }.tip-card { display: flex; gap: 9px; align-items: flex-start; padding: 11px 12px; border-radius: 7px; border: 1px solid #cce6f4; background: #f0f9fd; color: #4c7187; }.tip-card > span { color: #2795c6; font-size: 17px; }.tip-card strong { font-size: 10px; display: block; color: #29617c; }.tip-card p { font-size: 9px; line-height: 1.4; margin-top: 3px; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 20px); opacity: 0; background: #173c56; color: white; border-radius: 7px; padding: 11px 17px; font-size: 11px; box-shadow: 0 7px 20px rgba(12,40,58,.25); pointer-events: none; transition: .25s; z-index: 20; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
.pdf-preview-backdrop { position: fixed; inset: 0; z-index: 19; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(10, 28, 43, .62); }.pdf-preview-backdrop.open { display: flex; }.pdf-preview-modal { width: min(1080px, 100%); height: min(900px, calc(100vh - 40px)); overflow: hidden; display: flex; flex-direction: column; background: #edf2f4; border-radius: 12px; box-shadow: 0 20px 55px rgba(9,34,52,.36); }.pdf-preview-header { padding: 18px 22px 15px; display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; background: #fff; border-bottom: 1px solid #dce6eb; }.pdf-preview-header h2 { color: #18364d; font-size: 19px; }.pdf-preview-header p { color: #80909a; font-size: 10px; margin-top: 4px; }.pdf-preview-modal iframe { width: 100%; flex: 1; min-height: 0; border: 0; background: #dce5e9; }
.manager-backdrop { position: fixed; inset: 0; z-index: 18; display: none; align-items: center; justify-content: center; background: rgba(10, 28, 43, .5); padding: 22px; }.manager-backdrop.open { display: flex; }
.manager-modal { width: min(920px, 100%); max-height: min(720px, calc(100vh - 44px)); overflow: auto; background: white; border-radius: 12px; box-shadow: 0 20px 55px rgba(9, 34, 52, .3); }.manager-header { padding: 23px 25px 18px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }.manager-header h2 { font-size: 22px; color: #18364d; }.manager-header p { color: #80909a; font-size: 11px; margin-top: 5px; }.modal-close { border: 0; background: #f1f5f7; color: #637987; width: 31px; height: 31px; border-radius: 50%; font-size: 22px; line-height: 1; }.manager-toolbar { display: flex; gap: 12px; padding: 15px 25px; background: #f8fafb; border-bottom: 1px solid var(--line); }.manager-search { height: 37px; flex: 1; display: flex; gap: 8px; align-items: center; padding: 0 11px; border: 1px solid #d8e3e9; border-radius: 6px; background: white; color: #8999a3; }.manager-search input { height: auto; border: 0; padding: 0; outline: 0; }.manager-content { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .8fr); gap: 22px; padding: 20px 25px 25px; }.manager-list { min-height: 240px; }.list-pagination { min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 0 2px; }.pager-button { min-width: 28px; height: 28px; padding: 0 7px; border: 1px solid #d8e4ea; border-radius: 5px; background: #fff; color: #4b6879; font-size: 10px; font-weight: 700; }.pager-button:hover:not(:disabled) { border-color: #7eb8d4; background: #f1f8fc; }.pager-button.active { border-color: var(--blue); background: var(--blue); color: #fff; }.pager-button:disabled { cursor: default; opacity: .45; }.pager-summary { color: #82939d; font-size: 9px; margin-left: 4px; }.manager-row { display: flex; gap: 11px; align-items: center; padding: 12px 9px; border-bottom: 1px solid #edf1f3; }.manager-row:hover { background: #f7fbfd; }.manager-avatar { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: #e3f2fa; color: #2479a5; font-weight: 800; font-size: 11px; flex-shrink: 0; }.manager-row-main { min-width: 0; flex: 1; }.manager-row-main strong, .manager-row-main span { display: block; }.manager-row-main strong { color: #2d4a5e; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.manager-row-main span { color: #84939d; font-size: 9px; margin-top: 3px; }.manager-row-actions { display: flex; gap: 5px; }.manager-row-actions button { width: 25px; height: 25px; border: 0; border-radius: 4px; font-size: 11px; }.manager-row-actions .edit-manager { color: #267ba8; background: #e5f4fb; }.manager-row-actions .delete-manager { color: #cb515b; background: #fff0f1; }.manager-empty { height: 220px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; color: #84949d; font-size: 10px; }.manager-empty strong { color: #516b7b; font-size: 12px; }.manager-form { padding: 15px; border: 1px solid #dfe9ee; border-radius: 8px; background: #fbfdfe; height: fit-content; }.form-title { display: flex; justify-content: space-between; align-items: center; color: #29475a; font-size: 12px; font-weight: 800; margin-bottom: 15px; }.manager-fields { display: flex; flex-direction: column; gap: 11px; }.manager-fields[hidden] { display: none; }.form-submit { width: 100%; margin-top: 16px; }
.catalog-kind { width: 155px; flex: 0 0 155px; height: 37px; }
.catalog-readonly { color: #8c9aa3; font-size: 9px; border: 1px solid #dfe8ec; border-radius: 10px; padding: 4px 7px; }
.option-help { color: #82939d; font-size: 9px; line-height: 1.45; }.manager-fields input[type="color"] { width: 100%; height: 34px; padding: 3px; cursor: pointer; }
.manager-color-swatch { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; background: var(--option-color, #596774); border: 1px solid rgba(17, 38, 53, .24); box-shadow: inset 0 0 0 2px rgba(255,255,255,.28); }
.quote-history-modal { width: min(960px, 100%); }
.company-settings-modal { width: min(680px, 100%); }
.company-settings-form { padding: 18px 25px 24px; }
.company-settings-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.pdf-template-settings { margin-top: 16px; padding: 14px; border: 1px solid #dce8ed; border-radius: 8px; background: #f8fbfc; }
.pdf-template-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #29475a; font-size: 11px; }
.pdf-template-heading span { color: #7c919c; font-size: 9px; font-weight: 600; text-align: right; }
.pdf-template-warning { color: #9a6d32; margin-top: 5px; }
.pdf-template-settings input[type="file"] { width: 100%; margin-top: 10px; padding: 8px; border: 1px dashed #b9cdd6; border-radius: 6px; background: #fff; color: #526d7b; font-size: 10px; }
.pdf-template-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.pdf-template-actions .btn { min-height: 31px; }
.link-button.danger { color: #bd4c59; }
.pdf-template-preview { margin-top: 14px; padding-top: 12px; border-top: 1px solid #dce8ed; }
.pdf-template-preview[hidden] { display: none; }
.pdf-template-preview-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: #29475a; font-size: 10px; }
.pdf-template-preview-heading span { color: #82939d; font-size: 9px; }
.pdf-template-preview iframe { display: block; width: 100%; height: 330px; border: 1px solid #cbdbe1; border-radius: 6px; background: #e9f0f3; }
.reports-modal { width: min(1040px, 100%); }
.reports-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 25px; background: #f8fafb; border-bottom: 1px solid var(--line); }
.reports-toolbar > div { display: flex; gap: 8px; }
.reports-content { padding: 20px 25px 25px; }
.report-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; min-height: 94px; }
.report-card { min-height: 94px; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 14px 16px; border: 1px solid #e0e9ee; border-left: 4px solid #328bb8; border-radius: 7px; background: #fff; }
.report-card > span { color: #71838d; font-size: 10px; font-weight: 700; }
.report-card strong { color: #243f52; font-size: 20px; line-height: 1.15; }
.report-card small { color: #8c9aa3; font-size: 9px; }
.report-card.navy { border-left-color: #315f7b; }.report-card.green { border-left-color: #1c9a69; }.report-card.gold { border-left-color: #b78331; }
.reports-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.report-panel { border: 1px solid #e0e9ee; border-radius: 8px; background: #fff; overflow: hidden; }
.report-panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 11px; border-bottom: 1px solid #edf1f3; }
.report-panel-heading h3 { color: #29475a; font-size: 12px; }.report-panel-heading span { display: block; color: #8a99a2; font-size: 9px; margin-top: 3px; }
.report-status-list, .report-month-list { padding: 8px 16px 13px; }
.report-status-row { display: grid; grid-template-columns: 1fr 105px 32px; gap: 9px; align-items: center; padding: 8px 0; }
.report-status-row > div:first-child { display: flex; justify-content: space-between; color: #607681; font-size: 10px; }.report-status-row b { color: #29475a; }
.report-progress { height: 7px; border-radius: 10px; background: #edf3f5; overflow: hidden; }.report-progress i { display: block; height: 100%; border-radius: inherit; background: #3490ba; }.report-status-row small { color: #8b9aa3; text-align: right; font-size: 9px; }
.report-month-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid #edf1f3; }.report-month-row:last-child { border-bottom: 0; }.report-month-row strong, .report-month-row span { display: block; }.report-month-row strong { color: #405d6d; font-size: 10px; }.report-month-row span { color: #8c9ba3; font-size: 9px; margin-top: 3px; }.report-month-row b { color: #2c5870; font-size: 10px; white-space: nowrap; }
.report-recent-panel { margin-top: 14px; }.report-recent-list { padding: 2px 16px 8px; }.report-recent-row { display: grid; grid-template-columns: 1fr auto auto; gap: 15px; align-items: center; padding: 11px 0; border-bottom: 1px solid #edf1f3; }.report-recent-row:last-child { border-bottom: 0; }.report-recent-row strong, .report-recent-row span { display: block; }.report-recent-row strong { color: #29475a; font-size: 10px; }.report-recent-row > div span { color: #8c9ba3; font-size: 9px; margin-top: 3px; }.report-recent-row > b { color: #2c5870; font-size: 10px; white-space: nowrap; }
.orders-modal { width: min(1080px, 100%); }
.orders-content { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .8fr); gap: 22px; padding: 20px 25px 25px; }
.orders-content > .list-pagination, .operations-content > .list-pagination, .users-content > .list-pagination { grid-column: 1; grid-row: 2; }
.orders-content > .order-form, .operations-content > .operation-form, .users-content > .user-form { grid-column: 2; grid-row: 1 / span 2; }
.orders-list { min-height: 260px; }
.order-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 9px; border-bottom: 1px solid #edf1f3; }.order-row:hover { background: #f7fbfd; }
.order-number strong, .order-number span, .order-main strong, .order-main span { display: block; }.order-number strong, .order-main strong { color: #29475a; font-size: 10px; }.order-number span, .order-main span { color: #87969e; font-size: 9px; margin-top: 3px; }.order-main { min-width: 0; }.order-main strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.order-status { display: inline-flex; padding: 4px 7px; border-radius: 10px; font-size: 9px; font-weight: 800; white-space: nowrap; background: #fff7e9; color: #a26c13; }.order-status.scheduled { background: #eaf5fb; color: #28779f; }.order-status.in_progress { background: #eeeafd; color: #6759a6; }.order-status.completed { background: #eaf7f0; color: #16885b; }.order-status.cancelled { background: #fff0f1; color: #c4575e; }
.order-form { padding: 15px; border: 1px solid #dfe9ee; border-radius: 8px; background: #fbfdfe; height: fit-content; }.order-form textarea { width: 100%; resize: vertical; min-height: 70px; border: 1px solid #d5e1e7; border-radius: 5px; padding: 8px; font: inherit; color: #2f4a5b; }
.dashboard-modal { width: min(1040px, 100%); }.dashboard-content { padding: 20px 25px 25px; }.dashboard-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }.dashboard-card { min-height: 98px; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 15px; border: 1px solid #e0e9ee; border-left: 4px solid #328bb8; border-radius: 7px; background: #fff; }.dashboard-card > span { color: #71838d; font-size: 10px; font-weight: 700; }.dashboard-card strong { color: #243f52; font-size: 21px; line-height: 1.15; }.dashboard-card small { color: #8c9aa3; font-size: 9px; }.dashboard-card.navy { border-left-color: #315f7b; }.dashboard-card.green { border-left-color: #1c9a69; }.dashboard-card.gold { border-left-color: #b78331; }.dashboard-panel { margin-top: 16px; border: 1px solid #e0e9ee; border-radius: 8px; background: #fff; overflow: hidden; }.dashboard-installation-list { padding: 4px 16px 10px; }.dashboard-installation-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 12px 0; border-bottom: 1px solid #edf1f3; }.dashboard-installation-row:last-child { border-bottom: 0; }.dashboard-installation-row strong, .dashboard-installation-row span, .dashboard-installation-row b { display: block; }.dashboard-installation-row strong { color: #29475a; font-size: 10px; }.dashboard-installation-row span { color: #87969e; font-size: 9px; margin-top: 3px; }.dashboard-installation-row > div:last-child { text-align: right; }.dashboard-installation-row > div:last-child b { color: #2c5870; font-size: 10px; }.operations-modal { width: min(1080px, 100%); }.operations-content { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .8fr); gap: 22px; padding: 20px 25px 25px; }.operations-list { min-height: 260px; }.operation-form { padding: 15px; border: 1px solid #dfe9ee; border-radius: 8px; background: #fbfdfe; height: fit-content; }.operation-form label { display: flex; flex-direction: column; gap: 6px; }.operation-form label > span { color: #486372; font-size: 10px; font-weight: 800; }.operation-form textarea { width: 100%; resize: vertical; min-height: 70px; border: 1px solid #d5e1e7; border-radius: 5px; padding: 8px; font: inherit; color: #2f4a5b; }.operation-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(130px, .9fr) auto auto; gap: 12px; align-items: center; padding: 12px 9px; border-bottom: 1px solid #edf1f3; }.operation-row:hover { background: #f7fbfd; }.operation-main, .operation-date { min-width: 0; }.operation-main strong, .operation-main span, .operation-date b, .operation-date span { display: block; }.operation-main strong { overflow: hidden; color: #29475a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.operation-main span, .operation-date span { overflow: hidden; color: #87969e; font-size: 9px; margin-top: 3px; text-overflow: ellipsis; white-space: nowrap; }.operation-date b { color: #2c5870; font-size: 10px; }.operation-status { display: inline-flex; width: fit-content; padding: 4px 7px; border-radius: 10px; background: #fff7e9; color: #a26c13; font-size: 9px; font-weight: 800; white-space: nowrap; }.operation-status.confirmed { background: #eaf5fb; color: #28779f; }.operation-status.in_progress { background: #eeeafd; color: #6759a6; }.operation-status.completed, .operation-status.paid { background: #eaf7f0; color: #16885b; }.operation-status.cancelled, .operation-status.refunded { background: #fff0f1; color: #c4575e; }.payments-modal, .installations-modal { width: min(1080px, 100%); }
.quote-history-list { padding: 6px 25px 24px; max-height: 520px; overflow: auto; }
.quote-history-row { display: grid; grid-template-columns: 1.05fr 1.4fr .85fr .9fr auto; gap: 14px; align-items: center; padding: 14px 9px; border-bottom: 1px solid #edf1f3; }
.quote-history-row:hover { background: #f7fbfd; }
.quote-history-row strong, .quote-history-row span { display: block; }
.quote-history-row strong { color: #29475a; font-size: 11px; }
.quote-history-row span { color: #84939d; font-size: 9px; margin-top: 3px; }
.quote-status-pill { display: inline-flex !important; width: fit-content; padding: 4px 7px; border-radius: 10px; background: #eaf7f0; color: #16885b !important; font-weight: 800; margin-top: 0 !important; }
.quote-status-pill.cancelled { background: #fff0f1; color: #c4575e !important; }
.quote-history-actions { display: flex; justify-content: flex-end; gap: 5px; }
.quote-history-actions button { border: 0; border-radius: 4px; padding: 7px 9px; background: #e5f4fb; color: #267ba8; font-size: 10px; font-weight: 800; }
.quote-history-actions button.danger { background: #fff0f1; color: #c4575e; }
.print-document { display: none; }
.logout-button { border: 1px solid #d8e3e9; background: #fff; color: #607783; border-radius: 5px; padding: 7px 10px; font-size: 10px; font-weight: 800; }
.logout-button:hover { border-color: #b8ccd6; color: #246d91; }
.auth-backdrop { position: fixed; inset: 0; z-index: 40; display: none; align-items: center; justify-content: center; padding: 18px; background: rgba(10, 28, 43, .66); }
.auth-backdrop.open { display: flex; }
.auth-card { width: min(410px, 100%); padding: 30px; border: 1px solid #dfe9ee; border-radius: 12px; background: #fff; box-shadow: 0 24px 70px rgba(8, 30, 46, .34); }
.auth-brand { display: flex; gap: 10px; align-items: center; margin-bottom: 26px; color: #25485c; }.auth-brand strong { display: block; font-size: 17px; letter-spacing: -.4px; }.auth-brand strong span { color: #278cc0; }.auth-brand small { display: block; margin-top: 3px; color: #8a9aa3; font-size: 7px; letter-spacing: .7px; }.auth-brand .brand-mark { width: 30px; height: 35px; border-width: 2px; }
.auth-card h2 { margin-top: 7px; color: #1f3e52; font-size: 23px; }.auth-description { margin-top: 7px; color: #7e909a; font-size: 11px; line-height: 1.5; }.auth-form { display: flex; flex-direction: column; gap: 13px; margin-top: 19px; }.auth-form label { display: flex; flex-direction: column; gap: 6px; }.auth-form label > span { color: #486372; font-size: 10px; font-weight: 800; }.auth-form small { color: #84949d; font-size: 9px; }.auth-form .btn { width: 100%; margin-top: 5px; }.auth-message { min-height: 17px; margin-top: 14px; color: #c4575e; font-size: 10px; line-height: 1.4; }.auth-message:empty { margin-top: 0; }
.users-modal { width: min(980px, 100%); }.users-content { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(285px, .8fr); gap: 22px; padding: 20px 25px 25px; }.users-list { min-height: 250px; }.user-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 11px; align-items: center; padding: 12px 9px; border-bottom: 1px solid #edf1f3; }.user-row:hover { background: #f7fbfd; }.user-avatar { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: #e3f2fa; color: #2479a5; font-weight: 800; font-size: 11px; }.user-main { min-width: 0; }.user-main strong, .user-main span { display: block; }.user-main strong { overflow: hidden; color: #29475a; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.user-main span { margin-top: 3px; color: #84939d; font-size: 9px; }.user-role { padding: 4px 7px; border-radius: 10px; background: #eaf5fb; color: #28779f; font-size: 9px; font-weight: 800; white-space: nowrap; }.user-role.inactive { background: #fff0f1; color: #c4575e; }.user-form { display: flex; flex-direction: column; gap: 11px; height: fit-content; padding: 15px; border: 1px solid #dfe9ee; border-radius: 8px; background: #fbfdfe; }.user-form label:not(.checkbox-label) { display: flex; flex-direction: column; gap: 6px; }.user-form label > span { color: #486372; font-size: 10px; font-weight: 800; }.user-form label small { color: #84949d; font-size: 9px; font-weight: 400; }.user-form .checkbox-label { margin-top: 2px; }.user-form .form-submit { margin-top: 4px; }
@media (max-width: 700px) { .auth-card { padding: 24px 20px; }.users-content { grid-template-columns: 1fr; padding: 16px; }.user-form { order: -1; }.user-row { grid-template-columns: 36px minmax(0, 1fr) auto; }.user-row .manager-row-actions { grid-column: 2 / -1; justify-content: flex-start; }.user-role { grid-column: 3; grid-row: 1; } }

@media (max-width: 1220px) { .content-wrap { padding-left: 20px; padding-right: 20px; }.workspace-grid { grid-template-columns: minmax(560px, 1.55fr) minmax(350px, .95fr); }.product-tab { padding: 0 8px; } }
@media (max-width: 900px) { body { min-width: 0; }.sidebar { position: fixed; z-index: 15; left: -212px; top: 0; bottom: 0; transition: .2s; }.sidebar.open { left: 0; }.mobile-menu { display: block; border: 0; background: none; font-size: 19px; color: var(--navy); }.topbar { padding: 0 17px; }.global-search { flex: 1; max-width: none; }.content-wrap { padding: 20px 14px 35px; }.workspace-grid { grid-template-columns: 1fr; }.right-column { display: grid; grid-template-columns: 1fr 1fr; }.configurator-card { grid-column: 1 / -1; }.tip-card { grid-column: 1 / -1; } }
@media (max-width: 620px) { .page-heading { display: block; }.heading-actions { padding-top: 13px; }.heading-actions .btn { flex: 1; }.quote-meta { gap: 15px; flex-wrap: wrap; }.meta-divider { display: none; }.quote-status { width: 100%; }.client-fields { grid-template-columns: 1fr 1fr; }.wide { grid-column: span 2; }.product-grid { grid-template-columns: repeat(3, 1fr); }.product-tabs { overflow-x: auto; }.config-layout { grid-template-columns: 1fr; }.right-column { display: flex; }.summary-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }.topbar-actions .user-menu > div:not(.avatar), .topbar-actions .down { display: none; }.user-menu { min-width: auto; border: 0; padding-left: 0; } }
@media (max-width: 700px) { .manager-content { grid-template-columns: 1fr; }.manager-form { order: -1; }.manager-toolbar { padding-left: 16px; padding-right: 16px; }.manager-header { padding-left: 16px; padding-right: 16px; }.manager-content { padding-left: 16px; padding-right: 16px; }.quote-history-list { padding-left: 16px; padding-right: 16px; }.quote-history-row { grid-template-columns: 1fr 1fr; gap: 9px; }.quote-history-actions { justify-content: flex-start; }.reports-toolbar { align-items: stretch; flex-direction: column; padding-left: 16px; padding-right: 16px; }.reports-toolbar > div { width: 100%; }.reports-toolbar .btn { flex: 1; }.reports-content { padding: 16px; }.report-cards, .dashboard-cards { grid-template-columns: 1fr 1fr; }.reports-grid { grid-template-columns: 1fr; }.report-recent-row { grid-template-columns: 1fr auto; gap: 8px; }.report-recent-row > b { grid-column: 2; grid-row: 1; }.report-recent-row .quote-status-pill { grid-column: 1; grid-row: 2; width: fit-content; }.orders-content, .operations-content { grid-template-columns: 1fr; padding: 16px; }.orders-content > .list-pagination, .operations-content > .list-pagination, .users-content > .list-pagination, .orders-content > .order-form, .operations-content > .operation-form, .users-content > .user-form { grid-column: auto; grid-row: auto; }.order-form, .operation-form { order: -1; }.order-row, .operation-row { grid-template-columns: 1fr auto; gap: 8px; }.order-row .order-number, .operation-row .operation-main { grid-column: 1; }.order-row .order-main { grid-column: 1 / -1; }.order-row .order-status, .operation-row .operation-status { grid-column: 1; grid-row: 2; width: fit-content; }.order-row .manager-row-actions, .operation-row .manager-row-actions { grid-column: 2; grid-row: 2; }.operation-row .operation-date { grid-column: 1 / -1; }.dashboard-content { padding: 16px; }.dashboard-installation-row { align-items: flex-start; flex-direction: column; gap: 8px; }.dashboard-installation-row > div:last-child { text-align: left; }.dashboard-installation-row > div:last-child b { display: inline-block; margin-right: 8px; } }

/* Formato de oferta basado en el PDF de referencia enviado por el usuario. */
@media print {
  @page { size: A4 portrait; margin: 0; }
  body { min-width: 0; margin: 0; background: #fff; color: #222; }
  .app-shell, .toast { display: none !important; }
  .print-document { display: block !important; width: 100%; font-family: Arial, Helvetica, sans-serif; color: #222; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .reference-pdf-pages { display: block; width: 100%; }
  .reference-page { position: relative; width: 210mm; height: 297mm; min-height: 297mm; max-height: 297mm; overflow: hidden; background: #fff; page-break-after: always; break-after: page; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .reference-page:last-child { page-break-after: auto; break-after: auto; }
  .uploaded-template-page { background: #fff; }
  .uploaded-template-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .uploaded-template-background { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; object-fit: fill; }
  .uploaded-template-layer > :not(.uploaded-template-background) { position: absolute; z-index: 1; box-sizing: border-box; font-family: Arial, Helvetica, sans-serif; }
  .template-quote-data { top: 16mm; right: 12mm; width: 47mm; padding: 2.5mm 3mm; border-left: 1mm solid #293988; background: rgba(255,255,255,.94); color: #202a33; font-size: 7.5px; line-height: 1.45; }
  .template-quote-data strong, .template-quote-data span { display: block; }
  .template-quote-data strong { color: #293988; font-size: 10px; }
  .template-company-data { top: 31mm; left: 13mm; width: 72mm; padding: 2.5mm; background: rgba(255,255,255,.94); color: #273a45; font-size: 6.8px; line-height: 1.45; }
  .template-company-data strong, .template-company-data span { display: block; }
  .template-company-data strong { color: #293988; font-size: 9px; margin-bottom: 1mm; }
  .template-client-data { top: 55mm; left: 13mm; width: 73mm; padding: 2.5mm; border: .25mm solid #b8c7ce; background: rgba(255,255,255,.94); color: #354a55; font-size: 6.8px; line-height: 1.45; }
  .template-client-data strong, .template-client-data span { display: block; }
  .template-client-data strong { color: #293988; text-transform: uppercase; font-size: 7.6px; margin-bottom: 1mm; }
  .template-summary-data { top: 96mm; left: 13mm; right: 13mm; padding: 2.5mm; background: rgba(255,255,255,.95); color: #293a43; font-size: 6.5px; line-height: 1.35; }
  .template-summary-data > strong { display: block; padding-bottom: 1.5mm; color: #293988; border-bottom: .35mm solid #293988; font-size: 9px; }
  .template-summary-data > div { padding: 1.5mm 0; border-bottom: .2mm solid #d4dce0; }
  .template-summary-data b, .template-summary-data span { display: block; }
  .template-summary-data span { margin-top: .5mm; }
  .template-total-data { right: 13mm; bottom: 27mm; width: 58mm; padding: 2.5mm; border: .25mm solid #9eabb1; background: rgba(255,255,255,.96); color: #455861; font-size: 7px; line-height: 1.5; }
  .template-total-data span, .template-total-data strong { display: flex; justify-content: space-between; gap: 4mm; }
  .template-total-data strong { margin: 1mm -2.5mm -2.5mm; padding: 2mm 2.5mm; background: #293988; color: #fff; font-size: 8px; }
  .template-thanks { left: 13mm; bottom: 29mm; color: #293988; font-size: 9px; font-weight: 700; }
  .template-detail-heading { top: 24mm; left: 13mm; right: 13mm; padding: 2.5mm; background: rgba(255,255,255,.94); border-bottom: .45mm solid #293988; color: #293988; font-size: 10px; }
  .template-detail-heading span { float: right; color: #677780; font-size: 7px; font-weight: 400; }
  .template-detail-data { top: 38mm; left: 13mm; right: 13mm; display: flex; flex-direction: column; gap: 3mm; }
  .template-detail-row { position: relative; display: grid; grid-template-columns: 44mm minmax(0, 1fr) 42mm; gap: 3mm; align-items: center; min-height: 48mm; padding: 2mm; border: .25mm solid #b8c7ce; background: rgba(255,255,255,.94); }
  .template-detail-sketch { min-width: 0; height: 42mm; display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .template-detail-sketch .ref-technical-diagram { width: 42mm; height: 38mm; }
  .template-detail-copy { min-width: 0; display: flex; flex-direction: column; gap: 1.2mm; color: #3b4e57; font-size: 6.6px; line-height: 1.25; }
  .template-detail-copy strong { color: #293988; font-size: 8px; }
  .template-detail-copy b { margin-top: 1mm; color: #202a33; font-size: 7px; }
  .template-detail-photo { width: 40mm; height: 39mm; object-fit: contain; background: #f4f7f8; }
  .template-detail-empty { padding: 8mm; border: .25mm solid #b8c7ce; background: rgba(255,255,255,.94); color: #66777f; font-size: 8px; }
  .template-detail-footer { left: 13mm; right: 13mm; bottom: 24mm; padding-top: 2mm; border-top: .35mm solid #293988; color: #293988; font-size: 7px; text-align: center; }
  .ref-top-band { height: 28mm; padding: 0 9mm; display: flex; align-items: center; justify-content: space-between; background: #293988; color: #fff; }
  .ref-top-brand { display: flex; align-items: center; gap: 2mm; }
  .ref-top-brand strong { font-size: 17px; line-height: .9; letter-spacing: -.4px; text-transform: lowercase; }
  .ref-top-left strong { text-transform: uppercase; }
  .ref-top-brand sup { font-size: 4px; vertical-align: top; margin-left: .4mm; }
  .ref-top-brand small { display: block; margin-top: 1.5mm; font-size: 5px; letter-spacing: .2px; font-weight: 400; text-align: right; }
  .ref-top-left small { text-align: left; }
  .ref-top-mark { position: relative; display: inline-block; width: 6mm; height: 4.2mm; flex: 0 0 6mm; border: .55mm solid #fff; font-size: 0; line-height: 1; }
  .ref-top-mark::after { content: ''; position: absolute; top: -.55mm; bottom: -.55mm; left: 46%; width: .55mm; background: #293988; }
  .ref-page-content { padding: 10mm 8mm 15mm; }
  .reference-page-continuation .ref-page-content { padding-top: 32mm; }
  .reference-page-detail .ref-page-content { padding-top: 10mm; }
  .ref-company-block { min-height: 43mm; display: flex; align-items: center; justify-content: space-between; }
  .ref-company-lines { display: flex; flex-direction: column; gap: 3.8mm; font-size: 10px; line-height: 1.1; }
  .ref-company-lines b, .ref-offer-title b, .ref-product-specs b { color: #c51d2a; font-size: 8px; margin-right: 1.4mm; }
  .ref-company-emblem { width: 40mm; display: flex; align-items: center; justify-content: center; gap: 1mm; color: #e59b16; }
  .ref-company-emblem span { font-size: 31px; line-height: 1; }
  .ref-company-emblem strong { color: #3a3a3a; font-size: 8px; line-height: 1.05; }
  .ref-blue-rule { height: .45mm; background: #293988; }
  .ref-client-block { min-height: 26mm; padding: 5mm 0; display: grid; grid-template-columns: 1.15fr 1fr; gap: 18mm; }
  .ref-client-table { display: grid; grid-template-columns: 43% 57%; font-size: 8.5px; line-height: 1.5; }
  .ref-client-table .ref-labels, .ref-client-table .ref-values { display: flex; flex-direction: column; }
  .ref-client-table .ref-labels span { padding: 1mm 1.3mm; background: #ededed; }
  .ref-client-table .ref-values span { padding: 1mm 1mm; }
  .ref-client-table-small { grid-template-columns: 50% 50%; }
  .ref-offer-title { min-height: 18mm; display: flex; align-items: center; justify-content: center; gap: 2mm; border-top: .45mm solid #293988; padding-top: 3mm; }
  .ref-offer-title h1 { margin: 0; font-size: 18px; font-weight: 400; letter-spacing: .2px; }
  .ref-offer-title span { display: none; }
  .ref-summary-section { margin-top: 1mm; break-inside: avoid; page-break-inside: avoid; }
  .ref-summary-section h2 { margin: 0 0 3mm; padding-bottom: 2mm; border-bottom: .45mm solid #293988; font-size: 13px; font-weight: 400; letter-spacing: .15px; }
  .ref-summary-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 7.4px; }
  .ref-summary-table th { padding: 1.6mm 1mm; border: .2mm solid #bfc4c8; background: #293988; color: #fff; font-size: 7px; font-weight: 700; text-align: center; }
  .ref-summary-table td { height: 22mm; padding: 1.2mm 1.2mm; border: .2mm solid #c7cdd0; vertical-align: middle; overflow-wrap: anywhere; }
  .ref-summary-table td strong, .ref-summary-table td small { display: block; }
  .ref-summary-table td strong { font-size: 7.6px; line-height: 1.18; }
  .ref-summary-table td small { margin-top: 1.1mm; color: #4e5b61; line-height: 1.15; }
  .ref-summary-table td:not(.ref-summary-image):not(.ref-summary-number) { text-align: center; }
  .ref-summary-number { text-align: center; font-size: 9px; font-weight: 700; }
  .ref-summary-image { padding: .5mm !important; }
  .ref-summary-thumb { width: 100%; height: 20mm; display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .ref-summary-thumb .ref-technical-diagram { width: 31mm; height: 19mm; }
  .ref-summary-table .summary-col-number { width: 4%; }
  .ref-summary-table .summary-col-image { width: 17%; }
  .ref-summary-table .summary-col-description { width: 31%; }
  .ref-summary-table .summary-col-measures { width: 13%; }
  .ref-summary-table .summary-col-quantity { width: 8%; }
  .ref-summary-table .summary-col-unit { width: 13.5%; }
  .ref-summary-table .summary-col-subtotal { width: 13.5%; }
  .ref-summary-empty { height: 20mm !important; text-align: center !important; }
  .ref-summary-total-wrap { display: flex; justify-content: flex-end; }
  .ref-summary-total-wrap .ref-totals { margin-top: 5mm; }
  .ref-continuation-title { height: 11mm; display: flex; align-items: center; color: #222; font-size: 16px; font-weight: 400; border-bottom: .45mm solid #293988; margin-bottom: 5mm; }
  .ref-continuation-title b { color: #c51d2a; font-size: 8px; margin-right: 2mm; }
  .ref-products { display: flex; flex-direction: column; gap: 3mm; }
  .ref-product-card { min-height: 58mm; display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 6mm; break-inside: avoid; page-break-inside: avoid; }
  .ref-product-visual { position: relative; min-height: 58mm; display: flex; align-items: center; justify-content: center; padding: 2mm 4mm 7mm; }
  .ref-visual-pair { width: 100%; height: 100%; min-height: 48mm; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5mm; align-items: center; }
  .ref-visual-cell { min-width: 0; height: 48mm; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1mm; }
  .ref-visual-cell .ref-technical-diagram { width: 100%; height: 39mm; }
  .ref-visual-caption { color: #888; font-size: 5.8px; font-weight: 700; text-align: center; line-height: 1; }
  .ref-image-wrap { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
  .ref-product-img { display: block; width: min(100%, calc(39mm * var(--visual-ratio, 1.2))); height: auto; max-width: 100%; max-height: 39mm; aspect-ratio: var(--visual-ratio, 1.2); object-fit: fill; object-position: center; background: transparent; filter: var(--profile-filter, none) drop-shadow(0 2px 2px rgba(60,40,20,.22)); }
  .ref-technical-diagram { display: block; width: min(100%, 56mm); height: 43mm; overflow: visible; }
  .ref-opening-badge { position: absolute; right: 1mm; bottom: 8mm; display: inline-flex; align-items: center; gap: 1mm; padding: 1mm 1.3mm; border: .2mm solid #d0d8dc; background: rgba(255,255,255,.93); color: #516a75; font-size: 7px; line-height: 1; }
  .ref-opening-badge b { color: #1680bd; font-size: 10px; }
  .ref-opening-badge small { font-size: 6px; }
  .ref-fallback-window { width: 42mm; height: 29mm; border: 3px solid var(--ref-profile, #6f421e); background: linear-gradient(135deg, #e4f3f8, #fff 55%, #c6e2ea); position: relative; }
  .ref-fallback-window:before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--ref-profile, #6f421e); }
  .ref-dimension { position: absolute; color: #555; font-size: 9px; font-weight: 700; }
  .ref-dimension-height { left: 1mm; top: 47%; writing-mode: vertical-rl; transform: rotate(180deg) translateY(50%); }
  .ref-dimension-width { left: 50%; bottom: 4mm; transform: translateX(-50%); }
  .ref-view-label { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; color: #888; font-size: 8px; font-weight: 700; }
  .ref-product-data { min-width: 0; border: .25mm solid #d0d0d0; display: flex; flex-direction: column; }
  .ref-product-specs { flex: 1 1 auto; padding: 4mm 3mm 2mm; font-size: 8.5px; line-height: 1.18; }
  .ref-product-specs div { min-height: 4.2mm; white-space: normal; overflow-wrap: anywhere; }
  .ref-price-table { width: 100%; border-collapse: collapse; font-size: 8.5px; }
  .ref-price-table td { height: 5.4mm; padding: 1mm 2mm; border-top: .2mm solid #cfcfcf; }
  .ref-price-table td:first-child { width: 35%; text-align: right; }
  .ref-price-table td:last-child { width: 65%; text-align: center; }
  .ref-totals { width: 136mm; margin-top: 7mm; }
  .ref-totals-table { border: .25mm solid #cfcfcf; }
  .ref-totals-table div, .ref-total-final { min-height: 5.7mm; display: grid; grid-template-columns: 50% 50%; border-bottom: .2mm solid #cfcfcf; font-size: 8.5px; }
  .ref-totals-table div:last-child { border-bottom: 0; }
  .ref-totals-table span, .ref-total-final span { padding: 1mm 2mm; text-align: right; background: #ededed; }
  .ref-totals-table b, .ref-total-final strong { padding: 1mm 2mm; text-align: center; font-weight: 400; }
  .ref-total-final { margin-top: 5mm; border: .25mm solid #cfcfcf; }
  .ref-total-final strong { font-weight: 700; }
  .ref-empty { padding: 15mm 0; font-size: 11px; }
  .ref-footer-label { position: absolute; left: 9mm; bottom: 5mm; color: #333; font-size: 8px; }
  .ref-page-number { position: absolute; right: 0; bottom: 5mm; width: 18mm; height: 6mm; display: flex; align-items: center; padding-left: 4mm; background: #c51d2a; color: #fff; font-size: 15px; font-weight: 700; }
}

