@font-face{font-family:AppInter;src:url('/assets/body.ttf') format('truetype');font-display:swap;font-weight:100 900}
:root{font-family:AppInter,Arial,sans-serif;color:#21392d;background:#f5f7f4;font-synthesis:none;--green:#24513b;--line:#dce3dd;--muted:#657268;--gold:#aa7636}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #bc944d;outline-offset:3px}h1,h2,h3,p{margin-top:0}svg{width:22px;height:22px;flex-shrink:0}img{max-width:100%}.skip-link{position:fixed;left:12px;top:-80px;background:white;padding:12px;z-index:20}.skip-link:focus{top:12px}.app-sidebar{position:fixed;inset:0 auto 0 0;width:228px;padding:25px 18px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:5}.app-brand img{width:153px;display:block}.sidebar-label{font-size:.875rem;letter-spacing:.06em;color:var(--muted);margin:28px 12px 12px}.app-sidebar nav{display:grid;gap:6px}.app-sidebar nav a{display:flex;align-items:center;gap:12px;padding:12px 13px;min-height:46px;border-radius:7px;text-decoration:none;font-size:.9375rem;color:#415648}.app-sidebar nav a[aria-current=page]{background:#eaf1e8;color:var(--green);font-weight:700;box-shadow:inset 3px 0 var(--green)}.sidebar-note{margin-top:auto;padding:16px 12px 0;border-top:1px solid var(--line);font-size:.875rem;line-height:1.6}.sidebar-note small{font-size:.875rem;color:var(--muted)}.mobile-header{display:none}.app-main{margin-left:228px;padding:22px 30px 40px;max-width:1600px}.demo-notice{display:flex;align-items:center;gap:12px;padding:10px 14px;background:#fff6e7;border:1px solid #e8d5b4;border-radius:7px;font-size:.875rem;color:#75511f;margin-bottom:24px;line-height:1.5}.page-heading{display:flex;gap:18px;align-items:flex-start;justify-content:space-between;margin-bottom:20px}.page-heading h1{font-size:1.75rem;letter-spacing:-.025em;margin-bottom:6px;line-height:1.2}.page-heading p{font-size:.9375rem;color:var(--muted);margin:0;line-height:1.5}.button{min-height:44px;padding:11px 16px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--green);font-size:.9375rem;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700}.button.primary{background:var(--green);border-color:var(--green);color:white}.button.subtle{font-weight:400}.button.small{padding:8px 12px;font-size:.875rem}.button.danger{color:#9b302c}.button-row{display:flex;flex-wrap:wrap;gap:10px}.home-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.home-action{display:flex;align-items:center;gap:16px;min-height:107px;padding:21px;border:1px solid var(--line);border-radius:10px;text-decoration:none;background:white}.home-action svg{width:28px;height:28px;color:var(--green)}.home-action strong{display:block;font-size:1.0625rem;margin-bottom:7px}.home-action span{font-size:.9375rem;color:var(--muted);line-height:1.5}.start-work{margin-top:24px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding-top:22px}.start-work h2{font-size:1.0625rem;margin-bottom:7px}.start-work p{font-size:.9375rem;margin-bottom:0;color:var(--muted)}.toolbar{display:grid;grid-template-columns:minmax(190px,1fr) minmax(150px,220px) minmax(150px,230px);gap:12px;margin-bottom:17px}.field{display:block;font-size:.875rem;color:#425b49}.field input,.field select,.field textarea{display:block;width:100%;margin-top:7px;background:white;color:#21392d;border:1px solid #cbd6ce;border-radius:7px;min-height:44px;padding:11px 12px;min-width:0}.field textarea{min-height:92px;resize:vertical;line-height:1.5}.field small{display:block;font-size:.875rem;color:var(--muted);margin-top:5px}.catalog-count{font-size:.875rem;color:var(--muted);margin:0 0 14px}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.product-card{background:white;border:1px solid var(--line);border-radius:9px;padding:15px;min-width:0;display:flex;flex-direction:column}.product-image{width:100%;height:160px;object-fit:contain;background:#fff;margin-bottom:13px}.image-unavailable{display:grid;place-items:center;background:#f0f3ef;color:var(--muted);font-size:.875rem;min-height:160px;margin-bottom:13px}.product-brand{font-size:.875rem;color:var(--gold);margin:0 0 6px}.product-card h2{font-size:1rem;line-height:1.45;margin:0 0 9px;overflow-wrap:anywhere}.product-code{font-size:.875rem;color:var(--muted);margin:0 0 14px;overflow-wrap:anywhere}.product-card .button-row{margin-top:auto}.product-card .button{flex:1}.load-more{text-align:center;margin-top:22px}.empty,.error-message{padding:30px;border:1px dashed #cbd6ce;border-radius:9px;background:white;line-height:1.6}.empty h2,.error-message h2{font-size:1.125rem}.empty p,.error-message p{color:var(--muted);margin-bottom:15px}.opportunity-list{display:grid;gap:10px}.opportunity{display:flex;align-items:center;gap:15px;background:white;border:1px solid var(--line);border-radius:8px;padding:18px;text-align:left;width:100%;color:inherit}.opportunity-main{min-width:0;flex:1}.opportunity strong{display:block;font-size:1rem;line-height:1.4}.opportunity p{font-size:.9375rem;color:var(--muted);margin:6px 0 0;line-height:1.4;overflow-wrap:anywhere}.status{padding:6px 9px;border-radius:5px;background:#edf1ec;color:#425b49;font-size:.875rem;white-space:nowrap}.status[data-stage=Ganada]{background:#e3efdf;color:#305b26}.status[data-stage=Cotización]{background:#fff2d9;color:#7f5823}.quote-layout{display:grid;grid-template-columns:minmax(0,1fr) 265px;align-items:start;gap:20px}.quote-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px;background:white;padding:18px;border:1px solid var(--line);border-radius:9px;margin-bottom:15px}.quote-fields .full{grid-column:1/-1}.quote-items{display:grid;gap:12px}.quote-item{padding:17px;background:white;border:1px solid var(--line);border-radius:8px}.quote-item-heading{display:flex;align-items:start;gap:12px;margin-bottom:15px}.quote-item-heading strong{font-size:.9375rem;line-height:1.5;flex:1}.icon-button{width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--line);border-radius:6px;background:white;color:#915343;flex-shrink:0}.item-values{display:grid;grid-template-columns:90px minmax(110px,1fr) minmax(100px,1fr);gap:12px;align-items:end}.line-total{text-align:right;font-size:1.0625rem;font-weight:700;padding-bottom:12px}.line-total small{display:block;margin-bottom:8px;font-size:.875rem;font-weight:400;color:var(--muted)}.summary-panel{background:white;border:1px solid var(--line);border-radius:9px;padding:20px;position:sticky;top:22px}.summary-panel h2{font-size:1.0625rem}.summary-row{display:flex;justify-content:space-between;gap:10px;font-size:.9375rem;margin:14px 0}.summary-row.total{font-weight:700;font-size:1.125rem;border-top:1px solid var(--line);padding-top:15px}.summary-panel .field{margin:20px 0}.summary-panel .button{width:100%;margin-top:8px}.quote-note{font-size:.875rem;color:var(--muted);line-height:1.6;margin:16px 0 0}.detail-image{height:210px;width:100%;object-fit:contain;margin-bottom:15px}.detail-body{font-size:.9375rem;line-height:1.65;color:#526458}.spec-list{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0}.spec-list dt{font-size:.875rem;color:var(--muted)}.spec-list dd{margin:0;font-size:.9375rem;overflow-wrap:anywhere}.document-links{display:grid;gap:10px;margin-bottom:20px}.document-links a{font-size:.9375rem;color:var(--green);line-height:1.5}.detail-options{display:grid;gap:12px;margin-bottom:18px}dialog{border:1px solid var(--line);border-radius:12px;width:min(620px,calc(100vw - 24px));max-height:90dvh;padding:0;color:inherit;background:#fff}dialog::backdrop{background:#10221780}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 20px;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:1}.dialog-top h2{font-size:1.2rem;line-height:1.4;margin:0;overflow-wrap:anywhere}.dialog-top button{border:0;background:#f0f3ef;border-radius:6px;width:44px;height:44px;font-size:1.5rem;flex-shrink:0}#workspace-dialog-content{padding:20px}.dialog-form{display:grid;gap:16px}.dialog-form .button-row{margin-top:6px}.form-error{font-size:.875rem;color:#a23628;line-height:1.5}.app-toast{position:fixed;bottom:26px;left:calc(50% + 100px);transform:translateX(-50%);background:#21392d;color:white;padding:12px 18px;border-radius:8px;z-index:20;max-width:calc(100vw - 30px);font-size:.9375rem;line-height:1.5;display:none}.app-toast.visible{display:block}.loading{padding:28px;color:var(--muted)}#quote-document{display:none}
@media(min-width:1450px){.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1080px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quote-layout{grid-template-columns:minmax(0,1fr)}.summary-panel{position:static}.toolbar{grid-template-columns:1fr 1fr}.toolbar .search-field{grid-column:1/-1}}
@media(max-width:760px){.app-sidebar{inset:auto 0 0;width:100%;height:auto;padding:0 4px calc(4px + env(safe-area-inset-bottom));border-right:0;border-top:1px solid var(--line)}.app-brand,.sidebar-label,.sidebar-note{display:none}.app-sidebar nav{display:flex;gap:0;justify-content:space-around}.app-sidebar nav a{flex:1;flex-direction:column;gap:5px;padding:9px 1px 7px;font-size:.875rem;min-width:0;border-radius:0;line-height:1.2;text-align:center;min-height:66px}.app-sidebar nav a[aria-current=page]{box-shadow:inset 0 3px var(--green);background:#edf3e9}.mobile-header{height:70px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 17px;background:#fff;border-bottom:1px solid var(--line)}.mobile-header img{width:107px;max-height:47px;object-fit:contain}.mobile-header span{font-size:.875rem;color:var(--muted)}.app-main{margin:0;padding:16px 16px calc(104px + env(safe-area-inset-bottom))}.demo-notice{flex-wrap:wrap;gap:2px 8px;padding:9px 12px;margin-bottom:21px}.demo-notice span{line-height:1.5}.page-heading{gap:10px;flex-wrap:wrap}.page-heading h1{font-size:1.5rem}.page-heading>.button{width:100%}.home-actions{gap:10px}.home-action{padding:17px 13px;align-items:start;gap:10px;min-height:128px;flex-direction:column}.home-action strong{font-size:1rem}.home-action span{font-size:.875rem}.start-work{align-items:stretch;flex-direction:column}.toolbar{gap:10px}.product-grid{gap:10px}.product-card{padding:12px}.product-image{height:135px}.product-card h2{font-size:.9375rem}.product-card .button-row{flex-direction:column;gap:7px}.product-card .button{width:100%;padding:9px 6px}.opportunity{padding:15px;align-items:start;flex-wrap:wrap}.opportunity-main{min-width:190px}.status{margin-left:auto}.quote-fields{grid-template-columns:minmax(0,1fr);padding:15px}.quote-fields .full{grid-column:auto}.item-values{grid-template-columns:85px minmax(0,1fr)}.line-total{grid-column:1/-1;text-align:left;padding-bottom:0;border-top:1px solid var(--line);padding-top:12px;display:flex;justify-content:space-between}.line-total small{margin:0}.quote-item{padding:15px}.summary-panel{padding:17px}.app-toast{left:50%;bottom:90px;min-width:240px}.dialog-top,#workspace-dialog-content{padding:16px}.spec-list{grid-template-columns:1fr 1fr}}
@media(max-width:360px){.product-grid{grid-template-columns:minmax(0,1fr)}.toolbar{grid-template-columns:minmax(0,1fr)}.toolbar .search-field{grid-column:auto}.home-actions{grid-template-columns:minmax(0,1fr)}.home-action{flex-direction:row;min-height:96px}.app-sidebar nav a{font-size:.8125rem}.quote-item-heading strong{font-size:.875rem}}

.payment-note{margin:0}.quote-extra summary{font-size:.875rem;color:var(--green);cursor:pointer;padding:6px 0;line-height:1.5}.quote-extra-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:14px}.quote-extra-fields .full{grid-column:1/-1}.unit-field{margin-top:13px;max-width:260px}.summary-row>span:last-child{min-width:0;overflow-wrap:anywhere;text-align:right}.document-actions{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.quote-dialog{width:min(820px,calc(100vw - 24px))}.pdf-disclaimer{margin:0 0 14px}.pdf-pages{background:#e8e9e6;padding:12px}.pdf-pages canvas{display:block;width:100%;height:auto;background:white}.document-actions .button{width:auto}
@media(max-width:760px){.quote-dialog #workspace-dialog-content{padding:12px}.pdf-pages{padding:0}.document-actions .button{width:100%}}

/* Product gallery and seller dossier share the existing app colors and dialog. */
.catalog-heading-line{display:flex;justify-content:space-between;gap:12px;align-items:center;padding-bottom:16px;margin-top:-10px;margin-bottom:18px;border-bottom:1px solid var(--line);font-size:.9375rem;color:var(--muted)}
.catalog-view-label{border:1px solid var(--line);background:#fff;border-radius:5px;padding:5px 10px;font-size:.875rem;color:var(--green)}
.product-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:16px}
.product-card{padding:0;border-radius:9px;overflow:hidden;transition:border-color .16s ease,box-shadow .16s ease}
.product-card:focus-within{border-color:var(--green)}
.product-gallery{position:relative;background:#fff;min-width:0}
.gallery-picture{display:block;width:100%;aspect-ratio:4/3;border:0;padding:16px;background:#fff;color:inherit;border-bottom:1px solid #edf0ec}
.product-gallery:has(.gallery-controls) .gallery-picture{padding-bottom:54px}
.product-image,.detail-image{display:block;width:100%;height:100%;object-fit:contain;margin:0}
.gallery-picture .image-unavailable{min-height:0;height:100%;margin:0;text-align:center;padding:12px}
.gallery-controls{position:absolute;bottom:6px;left:8px;right:8px;display:flex;align-items:center;justify-content:space-between;gap:8px;pointer-events:none}
.gallery-arrow{pointer-events:auto;display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--green)}
.gallery-arrow svg{width:18px;height:18px}
.gallery-position{font-size:.8125rem;color:#526458;background:white;padding:5px 8px;border-radius:4px}
.product-card-info{padding:14px 14px 0;display:flex;flex-direction:column;flex:1;min-width:0}
.product-card .product-brand{color:var(--green);font-size:.8125rem;line-height:1.4;min-height:1.2em;margin-bottom:8px;overflow-wrap:anywhere}
.product-card h2{font-size:1rem;line-height:1.45;margin-bottom:9px}
.product-card h2 button{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:4.35em;text-align:left;width:100%;padding:0;border:0;color:inherit;background:none;font-weight:600;font-size:inherit;line-height:inherit}
.product-card .product-code{font-size:.8125rem;margin-bottom:12px;line-height:1.45;color:var(--muted)}
.product-card-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 6px;border-top:1px solid #edf0ec;margin-top:auto;min-height:55px}
.product-document-count{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:.8125rem;line-height:1.4}
.product-document-count svg{width:15px;height:15px}
.card-quote{min-height:44px;padding:8px 0 8px 8px;background:none;border:0;font-size:.875rem;color:var(--green);font-weight:600}
.product-dialog{width:min(1040px,calc(100vw - 24px))}
.product-dialog .dialog-top h2{font-size:1.125rem;max-width:850px}
.product-dialog #workspace-dialog-content{padding:0}
.dossier-layout{display:grid;grid-template-columns:minmax(240px,.88fr) minmax(0,1.12fr)}
.dossier-media{padding:24px;border-right:1px solid var(--line);min-width:0;align-self:start;position:sticky;top:78px}
.dossier-gallery .gallery-picture{border:1px solid var(--line);border-radius:8px;aspect-ratio:1/1;padding:24px}
.dossier-gallery:has(.gallery-controls) .gallery-picture{padding-bottom:65px}
.dossier-gallery .gallery-controls{position:static;margin-top:10px}
.gallery-thumbnails{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.gallery-thumbnails button{width:52px;height:52px;padding:5px;border:1px solid var(--line);border-radius:5px;background:white}
.gallery-thumbnails button[aria-pressed=true]{border:2px solid var(--green);padding:4px}
.gallery-thumbnails img{display:block;width:100%;height:100%;object-fit:contain}
.dossier-source{display:inline-block;margin-top:17px;font-size:.875rem;color:var(--muted);line-height:1.5;text-underline-offset:3px}
.dossier-content{padding:24px;min-width:0;font-size:1rem;line-height:1.6}
.dossier-identity .product-brand{color:var(--green);font-size:.875rem;font-weight:600;margin-bottom:5px}
.dossier-reference{font-size:.875rem;color:var(--muted);margin-bottom:13px;overflow-wrap:anywhere}
.dossier-summary{line-height:1.65;margin-bottom:20px}
.dossier-note{background:#fff7e8;border-left:3px solid #bb893b;padding:13px 15px;margin-bottom:20px;font-size:.9375rem;color:#654c25}
.dossier-note p{margin:5px 0 0;line-height:1.6}
.dossier-section{padding:18px 0;border-top:1px solid var(--line)}
.dossier-section h3,.dossier-quote h3{font-size:1rem;margin:0 0 12px;font-weight:600}
.dossier-section h3 span,.dossier-details summary span{font-size:.8125rem;color:var(--muted);background:#eef2ec;padding:3px 7px;border-radius:4px;margin-left:6px}
.dossier-facts{margin:0;font-size:.9375rem;line-height:1.5}
.dossier-facts>div{display:grid;grid-template-columns:minmax(100px,.8fr) minmax(0,1.2fr);gap:12px;padding:9px 0;border-bottom:1px solid #edf0ec}
.dossier-facts dt{color:var(--muted);overflow-wrap:anywhere}
.dossier-facts dd{margin:0;overflow-wrap:anywhere}
.dossier-checklist,.dossier-details ul{padding-left:20px;margin:0;line-height:1.65;font-size:.9375rem}
.dossier-checklist li,.dossier-details li{margin:7px 0}
.dossier-details summary{cursor:pointer;font-size:1rem;font-weight:600;padding:2px 0;line-height:1.5}
.dossier-details[open] summary{margin-bottom:14px}
.dossier-long-description{font-size:.9375rem;line-height:1.7;margin:0;white-space:pre-line;overflow-wrap:anywhere}
.reference-codes{display:flex;flex-wrap:wrap;gap:7px;font-size:.875rem}
.reference-codes span{background:#f1f4f0;border:1px solid var(--line);padding:5px 8px;border-radius:4px;overflow-wrap:anywhere;max-width:100%}
.dossier-section .document-links{margin:0;gap:9px}
.document-link{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:6px;padding:13px;text-decoration:none;min-height:62px}
.document-link>svg{width:23px;height:23px;color:var(--gold)}
.document-link>span:not(.document-open){min-width:0;flex:1}
.document-link strong{display:block;font-size:.9375rem;font-weight:500;overflow-wrap:anywhere}
.document-link small{display:block;font-size:.8125rem;color:var(--muted);margin-top:3px}
.document-open{font-size:.875rem;white-space:nowrap}
.source-date,.dossier-empty{font-size:.875rem;color:var(--muted);line-height:1.6;margin:10px 0 0}
.dossier-selection{font-size:.9375rem;line-height:1.6;color:#654c25}
.dossier-quote{padding:20px 24px;border-top:1px solid var(--line);background:#f7f9f5}
.dossier-quote .detail-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.dossier-quote-row{display:flex;align-items:center;justify-content:space-between;gap:18px}
.dossier-quote-row p{margin:0;font-size:.875rem;line-height:1.5;color:var(--muted);max-width:440px}
.dossier-quote-row .button{flex-shrink:0}
@media(hover:hover){.product-card:hover{border-color:#a6b9ab;box-shadow:0 3px 12px #193b2510}.gallery-arrow:hover,.gallery-thumbnails button:hover{border-color:var(--green);background:#f3f6f0}.card-quote:hover,.product-card h2 button:hover{color:#112f20}.document-link:hover{border-color:#a6b9ab;background:#f7f9f5}}
@media(max-width:760px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.catalog-heading-line{font-size:.875rem;padding-bottom:13px;margin-bottom:15px}.product-card-info{padding:12px 11px 0}.product-card h2{font-size:.9375rem}.product-card h2 button{-webkit-line-clamp:4;min-height:5.8em}.gallery-picture{aspect-ratio:1/1;padding:12px}.gallery-controls{left:5px;right:5px;bottom:4px;gap:3px}.gallery-arrow{width:44px;height:44px}.gallery-position{padding:4px;font-size:.75rem}.product-card .product-brand{min-height:2.8em}.product-card-footer{flex-direction:column;align-items:stretch;gap:0;padding-top:9px}.card-quote{text-align:left;padding-left:0}.product-document-count{font-size:.75rem}.dossier-layout{grid-template-columns:minmax(0,1fr)}.dossier-media{position:static;padding:18px;border-right:0;border-bottom:1px solid var(--line)}.dossier-gallery .gallery-picture{aspect-ratio:4/3}.dossier-gallery:has(.gallery-controls) .gallery-picture{padding-bottom:20px}.dossier-content{padding:18px}.product-dialog .dialog-top h2{font-size:1rem}.dossier-quote{padding:18px}.dossier-quote-row{flex-direction:column;align-items:stretch;gap:12px}.dossier-quote .detail-options{grid-template-columns:1fr}.dossier-quote-row .button{width:100%}.document-link{padding:11px;gap:9px}.document-open{display:none}.dossier-facts>div{grid-template-columns:minmax(90px,.8fr) minmax(0,1.2fr);gap:10px}}
@media(max-width:360px){.product-grid{grid-template-columns:minmax(0,1fr)}.product-card h2 button{min-height:0;-webkit-line-clamp:3}.product-card .product-brand{min-height:0}.product-card-footer{flex-direction:row;align-items:center;padding:0}.gallery-picture{aspect-ratio:4/3}}
@media(prefers-reduced-motion:reduce){.product-card{transition:none}}

/* Saved demo quotations reuse the commercial app's compact rows and dialogs. */
.history-toolbar{display:grid;grid-template-columns:minmax(180px,1.6fr) minmax(130px,1fr) minmax(125px,1fr) minmax(125px,1fr);gap:12px;margin-bottom:17px}
.quote-list-head,.quote-history-row{display:grid;grid-template-columns:105px minmax(135px,1fr) 130px 112px 115px 20px;gap:14px;align-items:center}
.quote-list-head{font-size:.8125rem;color:var(--muted);padding:0 16px 10px}
.quote-history-list{display:grid;gap:8px}
.quote-history-row{width:100%;text-align:left;background:#fff;color:inherit;border:1px solid var(--line);border-radius:8px;padding:16px;min-height:84px;font-size:.9375rem}
.quote-history-row>span{min-width:0}
.quote-history-row strong{font-weight:600;display:block;line-height:1.5;overflow-wrap:anywhere}
.quote-history-row small{display:block;font-size:.8125rem;line-height:1.5;color:var(--muted);margin-top:3px}
.quote-history-reference strong{font-size:.875rem;color:var(--green)}
.quote-history-date time{font-size:.875rem}
.quote-history-total{text-align:right;font-variant-numeric:tabular-nums}
.quote-history-total small{display:none}
.quote-status{justify-self:start;margin:0;white-space:normal;line-height:1.4;font-size:.8125rem}
.quote-status[data-status=Enviada]{background:#e8eff7;color:#365a7c}
.quote-status[data-status=Aceptada]{background:#e3efdf;color:#305b26}
.quote-status[data-status="No concretada"]{background:#f1e9e6;color:#825645}
.quote-history-dialog{width:min(740px,calc(100vw - 24px))}
.saved-quote-identity{margin-bottom:18px}
.saved-quote-identity h3{font-size:1.125rem;line-height:1.5;margin-bottom:6px;overflow-wrap:anywhere}
.saved-quote-identity p{font-size:.875rem;color:var(--muted);line-height:1.5;margin-bottom:6px}
.saved-quote-identity .saved-quote-folio{color:var(--green);font-size:.8125rem}
.saved-quote-status{max-width:250px;margin-bottom:14px}
.saved-quote-section-title{font-size:1rem;margin:24px 0 12px}
.saved-quote-line{display:flex;justify-content:space-between;align-items:start;gap:20px;padding:13px 0;border-bottom:1px solid var(--line);font-size:.9375rem;line-height:1.5}
.saved-quote-line>div{min-width:0}
.saved-quote-line strong{font-weight:600;overflow-wrap:anywhere}
.saved-quote-line>strong{flex-shrink:0;font-variant-numeric:tabular-nums}
.saved-quote-line p{font-size:.875rem;line-height:1.5;color:var(--muted);margin:5px 0 0;overflow-wrap:anywhere}
.saved-quote-totals{max-width:310px;margin:20px 0 0 auto;font-variant-numeric:tabular-nums}
.saved-quote-notes{margin-top:22px}
.saved-quote-notes h3{font-size:1rem;margin-bottom:8px}
.saved-quote-notes p{font-size:.9375rem;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;color:var(--muted)}
.saved-quote-actions{margin-top:22px;border-top:1px solid var(--line);padding-top:18px}
@media(hover:hover){.quote-history-row:hover{background:#fafcf8;border-color:#a6b9ab}}
@media(max-width:1180px){.quote-list-head,.quote-history-row{grid-template-columns:95px minmax(120px,1fr) 115px 100px 105px 16px;gap:10px}.history-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:980px){.quote-list-head{display:none}.quote-history-row{grid-template-columns:minmax(0,1fr) auto;gap:8px 14px;padding:15px}.quote-history-reference{grid-row:1;grid-column:1;display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px}.quote-history-reference small{margin:0}.quote-status{grid-row:1;grid-column:2;justify-self:end}.quote-history-customer{grid-row:2;grid-column:1/-1}.quote-history-date{grid-row:3;grid-column:1}.quote-history-total{grid-row:3;grid-column:2}.quote-history-total small{display:block}.quote-row-arrow{display:none}}
@media(max-width:760px){.app-sidebar nav a{font-size:.75rem}.page-heading>.button-row{width:100%}.page-heading>.button-row .button{flex:1}.history-toolbar{gap:10px}.history-toolbar>.field:first-child{grid-column:1/-1}.saved-quote-actions .button{width:100%}.saved-quote-line{gap:12px;font-size:.875rem}.saved-quote-totals{max-width:none}.quote-history-total strong{font-size:.9375rem}}
@media(max-width:360px){.history-toolbar{grid-template-columns:minmax(0,1fr)}.history-toolbar>.field:first-child{grid-column:auto}}

/* General brand assets are kept separate from the social planning workspace. */
.presentation-link{font-size:.875rem;color:var(--green);text-underline-offset:4px;display:inline-flex;align-items:center;min-height:44px}
.brand-resource-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:16px;align-items:start}
.brand-resource-card{min-width:0;background:#fff;border:1px solid var(--line);border-radius:9px;overflow:hidden}
.brand-resource-picture{width:100%;display:block;background:#edf1eb;border:0;padding:0;aspect-ratio:4/5;overflow:hidden;color:inherit}
.brand-resource-image{display:block;width:100%;height:100%;object-fit:contain;max-width:100%}
.brand-resource-gallery{position:relative;min-width:0}
.brand-resource-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 10px;background:#fff;border-top:1px solid var(--line)}
.brand-resource-controls .gallery-arrow{font-size:1.6rem;line-height:1}
.brand-resource-meta{padding:15px}
.brand-resource-meta h2{font-size:1rem;line-height:1.45;margin:0 0 7px}
.brand-resource-meta h2 button{border:0;background:none;padding:0;color:var(--green);font:inherit;font-weight:600;text-align:left;min-height:30px}
.brand-resource-meta p{font-size:.875rem;color:var(--muted);line-height:1.5;margin:0}
.resource-dialog{width:min(720px,calc(100vw - 24px))}
.resource-dialog #workspace-dialog-content{padding:0}
.resource-dialog .brand-resource-picture{height:min(60dvh,690px);aspect-ratio:auto;background:#f0f3ed}
.resource-dialog .brand-resource-image{object-fit:contain}
.brand-resource-detail-info{padding:20px}
.brand-resource-detail-info>p:first-child{font-size:.9375rem;line-height:1.6;color:var(--muted)}
.brand-resource-picture .image-unavailable{height:100%;margin:0}
@media(max-width:760px){.brand-resource-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.brand-resource-meta{padding:12px}.brand-resource-meta h2{font-size:.9375rem}.brand-resource-meta p{font-size:.8125rem}.brand-resource-controls{padding:5px}.brand-resource-controls .gallery-position{padding:3px;font-size:.75rem}.brand-resource-detail-info{padding:16px}.brand-resource-detail-info .button{flex:1}.resource-dialog .brand-resource-picture{height:53dvh}.presentation-link{font-size:.8125rem}}
@media(max-width:360px){.brand-resource-grid{grid-template-columns:minmax(0,1fr)}}
