/* Balashtē identity. Compatibility variable names preserve the existing modules. */
:root{--brand:#cb2c4e;--brand-hover:#ad2140;--brand-soft:#fbe9ee;--brand-ink:#39272b;--green:var(--brand);--dark:#642638;--sage:var(--brand-soft);--bg:#fcf8f9;--ink:var(--brand-ink);--muted:#7d696d;--line:#ecdee1;--pink:var(--brand);--rose:#fcecf1}
.brand{gap:12px;align-items:center;padding-bottom:16px}.brand img{width:100px;height:82px;object-fit:contain;border-radius:0}.brand strong{font-size:18px;color:var(--brand)}.brand span{font-size:8px;letter-spacing:1.2px;line-height:1.7;display:block;max-width:75px}.login-content .logo{width:159px;height:129px;object-fit:contain;border-radius:0}.boot img{width:143px;height:116px;border-radius:0;object-fit:contain}.pwa-brand img{object-fit:contain;border-radius:12px}.btn.primary{background:var(--brand);border-color:var(--brand);color:#fff}.btn.primary:hover{background:var(--brand-hover);border-color:var(--brand-hover)}.nav-item.active{background:var(--brand);box-shadow:0 5px 14px #cb2c4e18}.welcome{background:#fbecef}.welcome-photo:after{background:linear-gradient(90deg,#fbecef,transparent)}.store-brand img{width:112px;height:90px;border-radius:0;object-fit:contain}.store-header{height:112px}.store-brand-caption{font-size:13px;letter-spacing:2px;color:#9c2943}.store-brand small{font-size:8px;letter-spacing:1px}.store-hero{background:#fbecef}.store-hero h1{color:#642638}.store-hero-leaf{color:#ce7e91}.store-btn,.store-btn.submit{background:var(--brand)}.store-btn:hover{background:var(--brand-hover)}.store-cart-link{background:#fceaf0;color:#a32140}.q-product.selected{border-color:var(--brand);box-shadow:0 0 0 3px #f7dfe6}.q-selected{background:var(--brand)}.size-option.is-selected{border-color:var(--brand);background:#fff2f6;color:#a32140}.inventory-tip{border-color:#efd3dc;background:#fceff3}.dot{background:#944b5b}.badge.green{background:#f5ecee;color:#633741}
@media(min-width:851px){body.nav-collapsed .brand img{width:48px;height:44px;object-fit:cover;object-position:top}body.nav-collapsed .brand{overflow:hidden}}
@media(max-width:850px){.sidebar .brand img{width:104px;height:84px}.sidebar .brand strong{font-size:17px}.sidebar .brand span{font-size:8px}.store-brand img{width:88px;height:71px}.store-header{height:88px}.store-brand-caption{font-size:11px;letter-spacing:1px}.store-brand small{display:none}.store-cart-link{padding:10px 12px}}
@media print{.brand img,.store-brand img{border-radius:0}}

/* Catalog follows the viewport without covering the checkout on narrow screens. */
@media(min-width:851px){.store-order:not(.wide){position:sticky;top:130px;max-height:calc(100dvh - 148px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}}
.mobile-order-bar{display:none}.store-export-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.store-export-actions .store-btn{font-size:12px;margin:0}.catalog-export-dialog{width:min(660px,94vw);max-height:90dvh;padding:0;border:1px solid #ecdee3;border-radius:20px;color:#39272e}.catalog-export-dialog::backdrop{background:#39272e66;backdrop-filter:blur(3px)}.catalog-export-dialog .modal-header,.catalog-export-dialog .modal-footer{padding:20px;display:flex;align-items:center;justify-content:space-between;gap:12px}.catalog-export-dialog .modal-body{padding:20px;display:grid;grid-template-columns:1fr 1fr;gap:18px}.catalog-export-dialog label{display:block;font-size:13px}.catalog-export-dialog input,.catalog-export-dialog select{width:100%;padding:12px;margin-top:6px;border:1px solid #e4d5dc;border-radius:9px}.catalog-export-dialog .full{grid-column:1/-1;margin:0}.catalog-export-dialog .btn{padding:12px;border:1px solid #ecdee3;border-radius:10px;background:white;color:#a92344}.catalog-export-dialog .btn.primary{background:#cb2c4e;color:white}.catalog-export-dialog .form-error{color:#a9213f}.delivery-agreement{padding:13px;border-radius:10px;background:#fceaf0;color:#752b43;font-size:13px;line-height:1.6}.postal-hint{display:block;margin-top:6px;color:#7d6971;font-size:11px}.store-order{scroll-margin-top:120px}.boot{background:white}
@media(max-width:850px){.mobile-order-bar{display:flex;position:fixed;z-index:35;bottom:0;left:0;right:0;align-items:center;justify-content:space-between;gap:10px;padding:15px 18px calc(15px + env(safe-area-inset-bottom));background:#cb2c4e;color:white;text-decoration:none;box-shadow:0 -4px 20px #64263820;font-size:13px}.store-footer{padding-bottom:100px}.store-order{position:static;max-height:none;overflow:visible}#store-message{bottom:90px}.catalog-export-dialog .modal-body{grid-template-columns:1fr}}

.customer-map-modal{width:min(1200px,96vw);max-width:1200px}.customer-map-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px}.customer-map-layout section,.customer-map-layout aside{min-width:0}#customer-map-canvas{height:480px;border-radius:15px;border:1px solid #ecdee3}.customer-map-layout aside{max-height:590px;overflow:auto}.customer-map-layout aside label{margin:14px 0}.customer-map-layout .btn{margin:5px 0}.map-city-row,.map-search-result{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left;gap:10px;padding:12px;background:#fff7fa;border:1px solid #ecdce2;border-radius:10px;margin:6px 0;color:#642638}.map-city-row small,.map-search-result small{display:block;font-size:10px}.map-city-row b{background:#cb2c4e;color:white;border-radius:20px;padding:5px 9px}.customer-city-marker{background:transparent;border:0}.customer-city-marker span{width:36px;height:36px;display:grid;place-items:center;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:#cb2c4e;color:white;border:3px solid white;box-shadow:0 3px 8px #39272e44;font:bold 13px Arial}.customer-city-marker.selected span{background:#642638}.customer-map-layout .leaflet-popup-content{max-height:250px;overflow:auto}@media(max-width:850px){.customer-map-layout{grid-template-columns:1fr}#customer-map-canvas{height:330px}.customer-map-layout aside{max-height:none}}

.customer-city-marker span b{transform:rotate(45deg)}

/* Sales workflow, finance sections and report navigation. */
.report-filters{align-items:end;flex-wrap:wrap;margin-bottom:22px;padding:20px;gap:14px}.report-filters label{min-width:140px;flex:1}.report-filters input,.report-filters select{width:100%}.ledger-group{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;border:0;background:transparent;border-bottom:1px solid var(--line);padding:13px 0;text-align:left;color:inherit;cursor:pointer}.ledger-group small{display:block;color:var(--muted);margin-top:5px}.ledger-group:hover{color:var(--pink)}.report-hub{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:18px;margin:22px 0}.report-hub-card{padding:24px;text-decoration:none;color:inherit}.report-hub-card p{color:var(--muted);line-height:1.6}.report-hub-card span{color:var(--pink)}@media(max-width:640px){.report-filters label{min-width:42%}.report-hub{grid-template-columns:1fr}.ledger-group{min-height:48px}}

.category-chips{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:14px 20px;border-top:1px solid var(--line)}.category-chips strong{font-size:12px;margin-right:8px}.category-chip{border:1px solid var(--line);background:white;color:var(--ink);border-radius:24px;padding:9px 14px;min-height:40px;cursor:pointer}.category-chip.selected{color:#9e2445;background:#fff0f4;border-color:#cb2c4e;font-weight:650}.filter-label,.inventory-pagination label{display:flex;gap:9px;align-items:center;font-size:12px}.inventory-pagination{flex-wrap:wrap;gap:14px}.zero-stock-note{background:#fff0f4;border:1px solid #f2c5d0;border-radius:12px;padding:16px;color:#713848}.zero-stock-note p{margin:8px 0 0;line-height:1.6}@media(max-width:640px){.category-chips{max-height:172px;overflow:auto}.category-chip{min-height:44px}.inventory-pagination{justify-content:center}}

.brand strong{font-size:17px;line-height:1.2}.brand{gap:10px}.brand img{width:74px}.nav-construction{display:block;font-size:9px;font-weight:400;opacity:.7;margin-top:2px}

/* Identity belongs beside connection status and logout, in every viewport. */
.topbar{gap:16px}.top-right{min-width:0;gap:14px;flex-shrink:0}.top-account{display:flex;align-items:center;gap:10px;background:transparent;border:1px solid transparent;border-radius:12px;padding:5px 8px;color:var(--ink);text-align:left;cursor:pointer;min-height:46px;max-width:265px}.top-account:hover{background:#fff0f4;border-color:#efd3dc}.top-account:focus-visible{outline:3px solid #e38ca4;outline-offset:2px}.top-account-info{display:grid;min-width:0;gap:3px}.top-account-info b{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-account-info small{font-size:10px;color:var(--muted)}.profile-avatar{position:relative;display:inline-grid;place-items:center;overflow:hidden;flex:none;width:38px;height:38px;background:#fceaf0;color:#a32140;border:1px solid #efd3dc}.profile-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.profile-avatar img[hidden]{display:none}.profile-summary{display:flex;align-items:center;gap:16px;padding:12px 0}.profile-summary .profile-avatar{width:64px;height:64px;font-size:24px}.profile-summary h3{margin:0 0 6px;overflow-wrap:anywhere}.profile-summary p{margin:0;color:var(--muted);font-size:12px;overflow-wrap:anywhere}.profile-security{border-top:1px solid var(--line);padding-top:18px}.profile-security p{font-size:12px}.topbar .breadcrumb{flex:1;min-width:0}@media(max-width:1150px){.top-account{max-width:190px}.topbar .breadcrumb>span{display:none}.top-right{gap:8px}}@media(max-width:850px){.topbar{gap:6px;min-height:64px;height:auto;padding:6px 10px}.top-right{gap:4px}.top-right .demo-tag{display:none}.top-account{gap:6px;padding:3px;max-width:170px}.top-account .profile-avatar{width:32px;height:32px}.top-account-info b{max-width:115px;font-size:11px}.top-account-info small{font-size:9px}.top-right #connection{font-size:9px;gap:3px}.top-right #connection .dot{width:6px;height:6px}.profile-summary{align-items:flex-start}}@media(max-width:390px){.top-account-info b{max-width:80px}.top-account-info small{max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar .breadcrumb strong{font-size:11px}.topbar .nav-toggle{width:36px}}

/* Order quantities and a compact action group with a clear primary action. */
.shop-stepper{grid-template-columns:44px minmax(48px,1fr) 44px;gap:8px}.shop-stepper input.shop-quantity{width:100%;min-width:0;min-height:44px;padding:6px 4px;text-align:center;font-size:18px;font-weight:700;background:#fff;border:1px solid #e5cbd2;border-radius:10px;color:var(--ink);appearance:textfield}.shop-quantity::-webkit-inner-spin-button,.shop-quantity::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.shop-stepper input.shop-quantity:focus{border-color:#cb2c4e;outline:3px solid #f4c7d2;outline-offset:1px}.in-cart .shop-stepper input.shop-quantity{color:#b32545;background:#fff5f8}.basket-line .shop-stepper{min-width:152px;flex-basis:152px}.quote-row-actions{display:grid;grid-template-columns:repeat(2,minmax(110px,1fr));gap:7px;min-width:250px;max-width:300px;margin-left:auto}.quote-row-actions .btn{margin:0;min-height:38px;justify-content:center;white-space:nowrap;font-size:12px;padding:8px 10px;border-radius:9px}.quote-row-actions .quote-open{background:#fcf5f7}.quote-row-actions .quote-cancel,.quote-cancellation .quote-cancel{color:#a62443;background:#fff8fa;border-color:#edcad4}.quote-row-actions .quote-pdf{color:#75545d}.quote-cancellation{padding:16px;border:1px solid #edcad4;border-radius:12px}.quote-cancellation p{font-size:12px;line-height:1.7}.quote-cancellation textarea{width:100%;margin-top:8px}.quote-cancel-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:12px}#quote-cancel-error{color:#a62443;margin-bottom:0}.quote-cancellation [hidden]{display:none!important}@media(max-width:460px){.shop-stepper{grid-template-columns:40px minmax(40px,1fr) 40px;gap:5px}.shop-stepper .btn{min-width:40px}.shop-stepper input.shop-quantity{font-size:16px}.basket-line .shop-stepper{min-width:140px;flex-basis:140px}}

.customer-location-form{padding:18px;border:1px solid #edd4dc;border-radius:15px;background:#fff9fb;min-width:0}.customer-location-form h3{margin:0 0 12px}.location-modes{display:flex;gap:8px;flex-wrap:wrap}.location-modes .selected{background:#cb2c4e;color:white;border-color:#cb2c4e}.location-instructions,.location-status{font-size:12px;line-height:1.6}.location-map{height:280px;border:1px solid #ead9de;border-radius:12px;z-index:0}.location-tools{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.customer-location-form>small{font-size:10px;line-height:1.6;color:var(--muted)}.location-choices label{display:block;margin-top:14px}.location-choices select{width:100%;margin-top:8px}.tiles-unavailable .location-map::after{content:'El fondo del mapa requiere conexión.';position:absolute;bottom:20px;left:8px;z-index:450;background:white;padding:4px 8px;font-size:10px;pointer-events:none}@media(max-width:460px){.customer-location-form{padding:12px}.location-map{height:240px}.location-modes .btn{flex:1;font-size:12px;padding:10px 8px}}

.export-categories{border:0;padding:0;margin:12px 0;min-width:0}.export-categories legend{font-size:12px;font-weight:600;margin-bottom:8px}.export-category-chips{display:flex;gap:7px;flex-wrap:wrap;max-height:190px;overflow:auto}.export-category-chips .category-chip{font-size:11px;padding:8px 12px}

/* A permanent customer map follows the independently paginated list. */
.customer-pagination{display:flex;gap:16px;flex-wrap:wrap;align-items:center;justify-content:space-between}.customer-pagination label{display:flex;align-items:center;gap:9px;font-size:12px}.customer-pagination select{min-width:74px}.customer-pagination>span{font-size:12px}.customer-overview{margin-top:26px;scroll-margin-top:90px;overflow:hidden}.customer-overview-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:24px 26px;border-bottom:1px solid var(--line)}.customer-map-eyebrow{font-size:10px;letter-spacing:1.5px;color:#af2947;font-weight:700}.customer-overview h2{font-size:23px;margin:8px 0}.customer-overview-heading p{margin:0;color:var(--muted);font-size:12px}.customer-overview-heading .actions{flex-wrap:wrap;gap:8px}.customer-overview-body{padding:22px 26px}.customer-map-summary{font-size:14px;font-weight:650;margin:0 0 7px}.customer-map-scope{font-size:12px;color:var(--muted);margin:0 0 18px}#customer-overview-canvas{height:440px;min-width:0;width:100%;border:1px solid #ebd8df;border-radius:16px;z-index:0;background:#f1e9ec}.customer-map-status{font-size:12px;line-height:1.6;margin:12px 0;color:#7b4455}.customer-map-status:empty{display:none}.customer-map-legend{display:flex;gap:18px;flex-wrap:wrap;margin:18px 0;font-size:11px;color:var(--muted)}.customer-map-legend span{display:flex;align-items:center;gap:7px}.customer-map-legend i{height:10px;width:10px;border-radius:50%;background:#cb2c4e;display:inline-block}.customer-map-legend .approximate{background:#fff0f4;border:2px solid #cb2c4e}.customer-map-legend .inactive{background:#827780}.customer-person-pin b{transform:rotate(45deg)}.customer-person-pin.client-pin-reference span{background:#fff0f4;color:#9c2040;border-color:#cb2c4e}.customer-person-pin.client-pin-inactive span{background:#827780}.customer-pin-popup{max-height:260px;overflow:auto;min-width:175px}.customer-pin-popup h3{font-size:13px;margin:0 0 12px}.customer-pin-popup article+article{margin-top:13px;padding-top:13px;border-top:1px solid #edd5dc}.customer-pin-popup article>strong{display:block;font-size:13px;color:#642638;overflow-wrap:anywhere}.customer-pin-popup article p{font-size:12px;margin:5px 0;overflow-wrap:anywhere}.customer-pin-popup small{display:block;font-size:10px;color:#82616c;margin:7px 0}.customer-pin-popup .btn{margin-top:5px;min-height:36px}.customer-map-credit{font-size:10px;color:var(--muted);line-height:1.6}.customer-map-credit a{color:#92253f}#customer-map-missing{padding:16px;background:#fff8fa;border:1px solid #eddae0;border-radius:12px;margin:14px 0}#customer-map-missing summary{font-size:12px;font-weight:600;cursor:pointer}.customer-map-missing-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;max-height:240px;overflow:auto;margin-top:12px}.customer-map-missing-client{display:flex;flex-direction:column;gap:5px;text-align:left;padding:12px;border:1px solid #eddae0;border-radius:9px;background:white;color:#703544;font:inherit;cursor:pointer;min-width:0}.customer-map-missing-client strong{font-size:12px;overflow-wrap:anywhere}.customer-map-missing-client span{font-size:10px}.customer-overview [hidden]{display:none!important}@media(max-width:850px){.customer-overview-heading,.customer-overview-body{padding:18px}.customer-map-missing-list{grid-template-columns:repeat(2,minmax(0,1fr))}#customer-overview-canvas{height:370px}.customer-pagination{justify-content:center}}@media(max-width:480px){.customer-overview-heading,.customer-overview-body{padding:15px}.customer-overview-heading .actions{width:100%}.customer-overview-heading .btn{min-height:42px;flex:1;font-size:11px}.customer-overview h2{font-size:21px}#customer-overview-canvas{height:330px}.customer-map-summary{font-size:12px;line-height:1.7}.customer-map-missing-list{grid-template-columns:1fr}.customer-map-legend{gap:10px;font-size:10px}.customer-pagination>span{width:100%;text-align:center}}
