/* Portal de clientes Danbel. Estilos basados en el diseño original (ChatGPT Sites). */
:root{--border:#dce2e6;--primary:#142944;--ring:#31547b}
:root{--background:#f5f6f5;--foreground:#14243b;--card:#fff;--card-foreground:#14243b;--popover:#fff;--popover-foreground:#14243b;--primary:#142944;--primary-foreground:#fff;--secondary:#e8edf1;--secondary-foreground:#14243b;--muted:#eef0f1;--muted-foreground:#667488;--accent:#e8edf1;--accent-foreground:#14243b;--destructive:#b53232;--border:#dce2e6;--input:#dce2e6;--ring:#31547b;--radius:.4rem}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f5f6f5;color:#14243b;font-family:Arial,Helvetica,sans-serif;font-size:16px}button{cursor:pointer}.site{min-height:100vh;max-width:1600px;margin:auto}.header{height:84px;background:#fff;border-bottom:1px solid #dce2e6;display:flex;align-items:center;gap:55px;padding:0 4.4%}.logo{font:28px Georgia,serif;letter-spacing:.13em;line-height:1;white-space:nowrap}.logo span{display:block;text-align:center;font:700 9px Arial,sans-serif;letter-spacing:.22em;margin-top:8px}.nav{display:flex;gap:35px;height:100%;align-items:center}.nav a{height:100%;display:flex;align-items:center;text-decoration:none;color:#667488;font-size:14px}.nav a.active{border-bottom:2px solid #c49b5f;color:#14243b;font-weight:700}.header-right{display:flex;align-items:center;gap:24px;margin-left:auto}.sample-tag{font-size:12px;background:#f7eddb;color:#705226;border:1px solid #ead9b9;border-radius:20px;padding:7px 11px;font-weight:700;white-space:nowrap}.account{display:flex;align-items:center;gap:8px;font-size:13px;color:#4a5970;white-space:nowrap}.cart-trigger{display:flex;align-items:center;gap:7px;border:0;background:none;color:#14243b}.cart-count{background:#142944;color:#fff;border-radius:50%;width:21px;height:21px;display:grid;place-items:center;font-size:11px}.main{padding:33px 4.4% 80px}.breadcrumb{font-size:13px;color:#8490a0;margin-bottom:25px}.breadcrumb span{padding:0 8px}.intro{display:flex;align-items:end;justify-content:space-between;margin-bottom:27px;gap:15px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:.16em;color:#a17842;margin:0 0 9px}h1{font:normal 39px Georgia,serif;letter-spacing:-.025em;margin:0 0 7px}.intro p:last-child{font-size:15px;color:#667488;margin:0}.catalog-count{font-size:13px;color:#7b8899;white-space:nowrap;padding-bottom:4px}.feature{height:190px;display:grid;grid-template-columns:1fr 42%;background:#112642;color:#fff;border-radius:7px;overflow:hidden;margin-bottom:35px}.feature-text{padding:30px 37px;display:flex;flex-direction:column;justify-content:center}.feature-text small{color:#d3b788;font-size:11px;letter-spacing:.17em;font-weight:700}.feature-text h2{font:normal 28px Georgia,serif;margin:10px 0}.feature-text p{font-size:14px;color:#c8d1df;line-height:1.5;max-width:460px;margin:0}.feature-image{background:linear-gradient(90deg,#112642 0%,transparent 30%),none center 53%/cover}.catalog{display:grid;grid-template-columns:220px 1fr;gap:38px}.filters{border-right:1px solid #dce2e6;padding:4px 22px 0 0}.filter-title{font-size:12px;font-weight:700;letter-spacing:.14em;color:#7b8899;margin-bottom:17px}.brand{width:100%;border:0;background:none;display:flex;justify-content:space-between;text-align:left;padding:11px 10px;border-radius:4px;color:#4d5c6e;font-size:14px}.brand span{color:#8b96a4}.brand.selected{background:#e7edf0;box-shadow:inset 3px 0 #c49b5f;color:#14243b;font-weight:700}.filter-note{font-size:12px;line-height:1.5;color:#8793a1;border-top:1px solid #dce2e6;margin-top:27px;padding-top:21px}.results-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.results-head h2{font:normal 24px Georgia,serif;margin:0}.search{width:300px;height:39px;display:flex;align-items:center;gap:7px;padding:0 10px;background:#fff;border:1px solid #dce2e6;border-radius:4px;color:#8c97a5}.search input{border:0;box-shadow:none;background:transparent;padding:0;height:100%;outline:none;font-size:14px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.card{background:#fff;border:1px solid #e0e5e8;border-radius:5px;overflow:hidden;min-width:0}.photo{height:205px;background:#162a45 none no-repeat;background-size:260%;position:relative}.photo span{position:absolute;bottom:9px;right:9px;background:rgba(255,255,255,.88);color:#566576;padding:5px 7px;font-size:9px;letter-spacing:.06em;font-weight:700}.card-body{padding:18px}.card-brand{font-size:11px;font-weight:700;color:#9e7540;letter-spacing:.12em;text-transform:uppercase}.card h3{font:normal 19px Georgia,serif;margin:8px 0 7px}.card p{font-size:13px;color:#8793a1;margin:0 0 18px}.card-bottom{display:flex;align-items:end;justify-content:space-between;gap:6px}.card-bottom small{display:block;font-size:10px;color:#8b97a6;margin-bottom:5px}.card-bottom strong{font-size:19px}.add{width:35px;height:35px;flex:none}.empty{background:#fff;padding:55px;text-align:center;color:#667488}.cart-panel{width:min(460px,100vw);max-width:none!important;background:#fff;gap:0;padding:0}.cart-head{border-bottom:1px solid #e2e7eb;padding:24px;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.cart-head button{border:0;background:none}.cart-title{font:normal 27px Georgia,serif}.cart-title span{font:16px Arial,sans-serif;color:#8793a1}.cart-body{overflow:auto;flex:1;padding:23px}.empty-cart{color:#667488;line-height:1.5}.cart-item{border-bottom:1px solid #e9edf0;padding-bottom:17px;margin-bottom:17px;display:flex;gap:12px}.cart-image{width:66px;height:75px;background:#162a45 none no-repeat;background-size:260%;flex:none;border-radius:3px}.cart-details{min-width:0;flex:1}.cart-details h3{font:normal 16px Georgia,serif;margin:5px 0 2px}.cart-details p{font-size:12px;color:#8793a1;margin:0}.cart-item>strong{font-size:13px;white-space:nowrap}.quantity{display:flex;align-items:center;gap:10px;margin-top:10px;font-size:13px}.quantity button{border:1px solid #dce2e6;background:white;width:25px;height:25px;display:grid;place-items:center;border-radius:3px}.cart-foot{border-top:1px solid #e2e7eb;padding:23px}.subtotal{display:flex;justify-content:space-between;font-weight:700;font-size:18px}.cart-foot p{font-size:12px;color:#8793a1;margin:8px 0 18px}.checkout{width:100%;height:46px}.cart-foot .pending{line-height:1.4;margin:11px 0 0}.cart-foot .checkout:disabled{background:#aab7c5;color:#fff;opacity:1}
@media(max-width:1050px){.header{gap:25px}.nav{display:none}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:680px){.header{height:70px;padding:0 4%;gap:8px}.logo{font-size:24px}.sample-tag,.account,.catalog-count{display:none}.header-right{gap:3px}.main{padding:23px 4% 50px}.breadcrumb{margin-bottom:18px}h1{font-size:32px}.feature{height:170px;grid-template-columns:1fr 34%}.feature-text{padding:19px}.feature-text h2{font-size:21px}.feature-text p{font-size:12px}.catalog{display:block}.filters{display:flex;overflow:auto;gap:7px;border:0;padding:0;margin:0 0 20px}.filter-title,.filter-note,.brand span{display:none}.brand{white-space:nowrap;width:auto;padding:9px 11px;border:1px solid #dce2e6}.brand.selected{box-shadow:none;border-color:#142944}.results-head{flex-direction:column;align-items:stretch}.search{width:100%}.grid{gap:9px}.photo{height:145px}.card-body{padding:11px}.card h3{font-size:16px}.card p{font-size:12px}.card-bottom strong{font-size:15px}.card-bottom small{font-size:9px}.add{width:31px;height:31px}}
.missing-photo{background:#e8ebec;display:flex;align-items:center;justify-content:center}.missing-photo span{position:static;background:#f6f7f7;color:#687789;padding:9px 12px;border:1px solid #d7dde1}
.real-photo{background:#fafafa}.real-photo img{display:block;width:100%;height:100%;object-fit:contain}
/* Large family directory */
.filters{position:sticky;top:16px;align-self:start;max-height:calc(100vh - 32px);display:flex;flex-direction:column;min-height:0}
.family-search{display:flex;align-items:center;gap:5px;border:1px solid #dce2e6;background:#fff;color:#8793a1;border-radius:4px;padding:0 8px;margin:0 0 10px;flex:none}
.family-search input{height:37px;border:0;background:transparent;outline:none;box-shadow:none;padding:0;font-size:14px}
.family-list{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:3px;scrollbar-color:#bdc8d1 transparent;scrollbar-width:thin}
.brand-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.brand-name small{display:block;font-size:10px;color:#a2764a;line-height:1.5;font-weight:700;letter-spacing:.04em}
.brand:has(.brand-name small){color:#8994a0}.brand>span:last-child{padding-left:7px;flex:none}
.filter-note{flex:none;margin-top:12px;padding-top:10px}.result-count{font-size:13px;color:#8591a0;margin:5px 0 0}.more{display:flex;margin:24px auto 0;min-width:210px}.card-bottom strong{overflow-wrap:anywhere}
@media(max-width:680px){.filters{position:static;display:block;max-height:none;border:0;padding:0;margin:0 0 23px}.family-list{max-height:230px;overflow-y:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.family-list .brand{width:100%;min-width:0;white-space:normal;align-items:center;padding:8px}.brand-name{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:12px;line-height:1.3}.family-search{margin-bottom:8px}.filter-note{display:block;font-size:11px;margin:8px 0 0;border:0;padding:0}.result-count{font-size:12px}}
.preview-form{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #dce2e6;padding:15px 18px;border-radius:5px;margin:0 0 26px;flex-wrap:wrap}.preview-form label{font-size:14px;font-weight:700;margin-right:auto}.preview-form input{width:180px}.preview-form a{font-size:13px;color:#254f7d}.access-state{max-width:480px;margin:14vh auto;padding:30px;background:#fff}.access-state h1{font-size:32px}.access-state a{display:inline-block;background:#142944;color:#fff;padding:12px 20px;text-decoration:none;border-radius:4px}.access-empty{margin-bottom:25px}.portal-note{font-size:13px;color:#788596;border-top:1px solid #dce2e6;margin-top:30px;padding-top:18px}@media(max-width:680px){.preview-form label{width:100%}.preview-form input{flex:1;min-width:140px}.portal-note{font-size:12px}}
.inline-order{border:1px solid #dce2e6;background:#fff;border-radius:5px;overflow:hidden}.inline-order-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 24px;background:#f4f6f6;border-bottom:1px solid #dce2e6}.inline-order-head strong{font:24px Georgia,serif}.inline-order-head p{font-size:13px;color:#667488;margin:6px 0 0}.inline-order-head span{font-weight:700;white-space:nowrap}.order-table-scroll{overflow-x:auto;max-height:570px;overflow-y:auto}.order-table{border-collapse:collapse;width:100%;font-size:13px;min-width:920px}.order-table thead{position:sticky;top:0;background:#142944;color:#fff;z-index:1}.order-table th{text-align:left;font-size:11px;letter-spacing:.04em;padding:13px 10px}.order-table td{border-bottom:1px solid #e6eaed;padding:12px 10px;vertical-align:middle}.order-table tbody tr:nth-child(2n){background:#f9fafb}.order-table td:nth-child(2){min-width:230px}.order-table td:nth-child(n+3){white-space:nowrap}.order-table td small{display:block;color:#8a96a3;margin-top:3px}.order-table input{width:80px;padding:7px;border:1px solid #b9c5d0;border-radius:4px;font-size:14px;text-align:right;color:#14243b;background:#fff}.order-table input:focus{outline:2px solid #31547b;outline-offset:1px}.order-no-results{padding:20px;color:#667488}.order-footer{padding:20px 24px}.order-footer label{display:block;font-size:13px;font-weight:700;margin-bottom:8px}.order-footer textarea{width:100%;min-height:70px;padding:11px;border:1px solid #dce2e6;border-radius:4px;resize:vertical;font:14px Arial,sans-serif}.order-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:15px;flex-wrap:wrap}.order-actions>div{margin-right:auto}.order-actions small{display:block;color:#778598;font-size:12px}.order-actions strong{font-size:19px}.order-actions button{display:flex;align-items:center;gap:7px}.mail-note{font-size:12px;color:#778598;margin:12px 0 0}@media(max-width:680px){.inline-order-head{display:block;padding:17px}.inline-order-head strong{font-size:21px}.inline-order-head span{display:block;margin-top:12px}.order-footer{padding:16px}.order-actions>div{width:100%;margin:0 0 5px}.order-actions button{flex:1;justify-content:center}}
.inline-order-head .sheet-eyebrow{display:block;color:#9a7542;font:700 10px Arial,sans-serif;letter-spacing:.13em;margin-bottom:8px;white-space:normal}.sergio-sections{background:#f4f6f6;padding:18px;display:grid;gap:18px}.section-divider{border:0;border-top:2px solid #9a7542;margin:4px 0;grid-column:1/-1}.row-group-start td{border-top:2px solid #9a7542}.sergio-section{background:#fff;border:1px solid #dce2e6;border-radius:5px;overflow:hidden}.sergio-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#132943;color:#fff;padding:13px 18px}.sergio-section-heading h3{font:normal 20px Georgia,serif;margin:0}.sergio-section-heading span{color:#d8c09b;font-size:12px;white-space:nowrap}.sergio-section-content{display:grid;grid-template-columns:230px minmax(0,1fr);gap:0;align-items:stretch}.sergio-section-photos{display:flex;flex-direction:column;gap:10px;justify-content:flex-start;align-items:center;background:#fff;padding:16px;border-right:1px solid #e6eaed}.sergio-section-photos a{display:block;width:100%;cursor:zoom-in}.sergio-section-photos img{width:100%;max-height:220px;object-fit:contain;display:block}.sergio-section-empty{padding:24px;color:#697788;font-size:13px}.sergio-section .order-table{min-width:880px}.sergio-section .order-table thead{background:#e8edf1;color:#1d3551}.sergio-section .order-table th{padding:10px 9px}.sergio-section .order-table td{padding:10px 9px}.sergio-section .order-table td:nth-child(2){min-width:230px}.sergio-section .order-table-scroll{max-height:none}.sergio-section-content:not(:has(.sergio-section-photos)){display:block}@media(max-width:1050px){.sergio-section-content{display:block}.sergio-section-photos{border-right:0;border-bottom:1px solid #e6eaed}.sergio-section-photos img{max-height:210px}}@media(max-width:680px){.sergio-sections{padding:8px;gap:12px}.sergio-section-heading{padding:11px}.sergio-section-heading h3{font-size:17px}.sergio-section-photos{padding:10px}.sergio-section-photos img{max-height:180px}}
.inline-order-head .sergio-logo{width:155px;height:65px;object-fit:contain;object-position:left center;display:block;margin-bottom:7px}
.order-product-cell{display:flex;align-items:center;gap:10px;min-height:38px}.order-product-cell img{width:48px;height:58px;object-fit:contain;flex:none;background:#fff;border:1px solid #eceff1;border-radius:3px}
.brand-tabs>div[data-slot="tabs-list"]{margin-bottom:14px;background:#e8edf1;padding:4px;border-radius:5px;height:auto;gap:4px}.brand-tabs button[data-slot="tabs-trigger"]{font-size:14px;padding:10px 18px;font-weight:700}.brand-photo-page{background:#fff;border:1px solid #dce2e6;border-radius:5px;padding:20px;min-height:220px}.photo-count{font-size:14px;color:#667488;margin:0 0 16px}.photo-group{margin:0 0 28px}.photo-group:last-child{margin-bottom:0}.photo-group h3{font:normal 21px Georgia,serif;margin:0 0 12px;padding-bottom:10px;border-bottom:1px solid #e5e9ec}.photo-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:14px}.photo-tile{border:1px solid #e0e5e8;border-radius:5px;overflow:hidden;min-width:0}.photo-tile>a{display:block;background:#f7f8f9;height:220px;cursor:zoom-in}.photo-tile img{width:100%;height:100%;object-fit:contain;display:block}.photo-tile-info{padding:12px;display:grid;gap:6px}.photo-tile-info strong{font-size:14px;line-height:1.35}.photo-tile-info small{color:#647488;font-size:12px;overflow-wrap:anywhere}.photo-tile-info span{font-size:14px;font-weight:700}@media(max-width:680px){.brand-photo-page{padding:10px}.photo-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.photo-tile>a{height:170px}.photo-tile-info{padding:9px}.brand-tabs button[data-slot="tabs-trigger"]{padding:10px}}
.header-right{flex-wrap:wrap}.header-right>a[data-slot="button"]{font-size:14px}.customer-page{max-width:1200px}.customer-picker{padding:20px;border:1px solid var(--border);border-radius:6px;background:white;margin-bottom:24px}.customer-picker label{display:block;font-size:14px;font-weight:700;margin-bottom:10px}.customer-picker>div{display:flex;gap:10px;max-width:500px}.customer-picker input{flex:1;min-width:0}.customer-summary{background:#142944;color:white;padding:24px;display:flex;justify-content:space-between;align-items:center;gap:20px;border-radius:6px;margin-bottom:24px}.customer-summary span{font-size:14px;letter-spacing:.04em}.customer-summary h2{font:normal 28px Georgia,serif;margin:8px 0;overflow-wrap:anywhere}.customer-summary p{font-size:16px;margin:0;color:#d6e0ec}.customer-summary .customer-status{border:1px solid #7b8fa6;padding:8px 14px;border-radius:4px;white-space:nowrap}.customer-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:20px}.customer-panel{background:white;border:1px solid var(--border);border-radius:6px;padding:24px;min-width:0}.customer-panel h2{font:normal 24px Georgia,serif;margin:0 0 20px}.customer-fields{margin:0}.customer-fields>div{display:grid;grid-template-columns:minmax(120px,1fr) minmax(0,1.5fr);gap:20px;padding:12px 0;border-bottom:1px solid #edf0f3;align-items:start}.customer-fields>div:last-child{border:0}.customer-fields dt{font-size:14px;color:#637085}.customer-fields dd{font-size:16px;line-height:1.45;margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.customer-fields .customer-unavailable{color:#728095}.customer-tariff-table{overflow-x:auto}.customer-tariff table{border-collapse:collapse;width:100%;font-size:16px}.customer-tariff th,.customer-tariff td{text-align:left;padding:12px 16px;border-bottom:1px solid var(--border)}.customer-tariff th{font-size:14px;background:#e8edf1}.customer-tariff p{font-size:16px;color:#637085}@media(max-width:760px){.customer-panels{grid-template-columns:1fr}.customer-panel{padding:18px}.customer-summary{align-items:flex-start;flex-direction:column}.customer-summary h2{font-size:24px}.customer-fields>div{grid-template-columns:1fr;gap:5px}.customer-picker{padding:16px}.customer-page .intro{gap:16px;flex-wrap:wrap}.header-right>a[data-slot="button"]{white-space:normal}}
.customer-duplicate{padding:16px 20px;background:#fff4dd;border:1px solid #dbc28c;border-radius:5px;font-size:16px;line-height:1.5;margin-bottom:20px}
.access-state .logo{margin-bottom:28px}.login-form{display:grid;gap:8px;margin-top:22px}.login-form label{font-size:13px;font-weight:700;margin-top:6px}.login-form button{margin-top:14px;height:42px}.login-error{color:#b53232;font-size:14px;margin:6px 0 0}.login-help{font-size:13px;color:#788596;margin-top:22px}
/* Controles (sustituyen a los componentes de la versión anterior) */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:38px;padding:0 16px;border-radius:5px;border:1px solid var(--primary);background:var(--primary);color:#fff;font:700 14px Arial,sans-serif;text-decoration:none;white-space:nowrap;cursor:pointer}
.btn:hover{background:#1f3b60}.btn:disabled{opacity:.5;cursor:not-allowed}
.btn-outline{background:#fff;color:var(--primary);border-color:#b9c5d0}.btn-outline:hover{background:#eef2f5}
.btn-sm{height:32px;padding:0 12px;font-size:13px}
.input{height:38px;width:100%;min-width:0;border:1px solid var(--border);border-radius:5px;background:#fff;padding:0 10px;font:14px Arial,sans-serif;color:#14243b}
.input:focus{outline:2px solid var(--ring);outline-offset:1px}
select.input{padding-right:6px}
a.brand{text-decoration:none}a.brand[hidden],[hidden]{display:none!important}
.family-search .input,.search .input{border:0;height:100%;outline:none;background:transparent;padding:0}
.family-search{height:39px}
.tabs{display:inline-flex;gap:4px;background:#e8edf1;padding:4px;border-radius:5px;margin-bottom:14px}
.tab{border:0;background:transparent;font:700 14px Arial,sans-serif;color:#667488;padding:10px 18px;border-radius:4px}
.tab.active{background:#fff;color:#14243b;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.order-table td strong{font-size:14px}
.header-right form{margin:0}
.access-state{background:#fff;border:1px solid var(--border);border-radius:6px}
.access-state code{background:#eef0f1;padding:2px 5px;border-radius:3px}
/* Administración */
.admin-panel{margin-bottom:24px}.admin-panel p{font-size:15px;line-height:1.5;color:#4a5970}.muted{color:#788596!important;font-size:13px!important}
.admin-form{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:16px 0 22px}
.admin-user-form label{display:grid;gap:6px;font-size:13px;font-weight:700;flex:1;min-width:160px}
.admin-users form{margin:0}
.notice{padding:14px 18px;border-radius:5px;font-size:15px;margin:0 0 20px}.notice-ok{background:#e7f4ea;border:1px solid #a9d3b3}.notice-error{background:#fbe9e9;border:1px solid #e0a9a9}
@media(max-width:680px){.tabs{display:flex}.tab{flex:1}.admin-form{display:grid}}
.admin-users{border-collapse:collapse;width:100%;font-size:15px}.admin-users th,.admin-users td{text-align:left;padding:10px 14px;border-bottom:1px solid var(--border);vertical-align:middle}.admin-users th{font-size:13px;background:#e8edf1}

.type-badge{display:inline-block;min-width:22px;padding:2px 6px;border-radius:3px;font-weight:700;font-size:12px;text-align:center}
.type-p{background:#e8eef5;color:#142944}.type-t{background:#f6ecd9;color:#7a5414}
.order-breakdown{margin:16px 0 0;display:grid;gap:4px;max-width:440px;margin-left:auto;font-size:13px}
.order-breakdown div{display:flex;justify-content:space-between;gap:16px}.order-breakdown dt{color:#667488}.order-breakdown dd{margin:0;font-weight:700;white-space:nowrap}
.zoom-photo{padding:0;border:0;background:none;cursor:zoom-in;flex:none;display:block}
.zoom-photo:focus-visible{outline:2px solid #31547b;outline-offset:2px}
.lightbox{position:fixed;inset:0;z-index:50;background:rgba(10,20,35,.82);display:flex;align-items:center;justify-content:center;padding:24px;cursor:zoom-out}
.lightbox[hidden]{display:none}
.lightbox img{max-width:min(92vw,900px);max-height:88vh;object-fit:contain;background:#fff;border-radius:6px}
.lightbox-close{position:absolute;top:14px;right:18px;background:transparent;border:0;color:#fff;font-size:36px;line-height:1;cursor:pointer}
.photo-tile-zoom{display:block;width:100%;height:170px;padding:0;border:0;background:#f7f8f9;cursor:zoom-in}
.photo-tile-zoom:focus-visible{outline:2px solid #31547b;outline-offset:-2px}
.photo-facts{margin:2px 0 0;display:grid;gap:3px;font-size:12px}
.photo-facts div{display:flex;justify-content:space-between;gap:10px}.photo-facts dt{color:#647488}.photo-facts dd{margin:0;font-weight:700;color:#14243b;overflow-wrap:anywhere;text-align:right}
.modal{position:fixed;inset:0;z-index:40;background:rgba(10,20,35,.6);display:flex;align-items:flex-start;justify-content:center;padding:6vh 16px;overflow-y:auto}
.modal[hidden]{display:none}
.modal-box{position:relative;background:#fff;color:#14243b;border-radius:6px;width:100%;max-width:520px;padding:26px 26px 22px;box-shadow:0 18px 50px rgba(0,0,0,.25)}
.modal-box h2{font:normal 26px Georgia,serif;margin:4px 0 16px}.modal-box h3{font-size:14px;margin:20px 0 8px}
.modal-close{position:absolute;top:10px;right:14px;background:none;border:0;font-size:30px;line-height:1;color:#667488;cursor:pointer}
.customer-facts{margin:0;display:grid;gap:8px;font-size:14px}
.customer-facts div{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid #eef1f3;padding-bottom:7px}.customer-facts dt{color:#667488}.customer-facts dd{margin:0;font-weight:700;text-align:right}
.customer-facts .muted{font-weight:400;color:#9aa5b1;font-style:italic}
.customer-families{list-style:none;margin:0;padding:0;max-height:220px;overflow-y:auto;font-size:13px;border:1px solid #eef1f3;border-radius:4px}
.customer-families li{display:flex;justify-content:space-between;padding:6px 10px}.customer-families li:nth-child(2n){background:#f9fafb}
.checkout-overlay{position:fixed;inset:0;z-index:45;background:#f4f6f8;overflow-y:auto}.checkout-overlay[hidden]{display:none}.checkout-head{background:#142944;color:#fff;padding:14px 20px;display:flex;align-items:flex-start;gap:14px;position:sticky;top:0;z-index:2}.checkout-head h2{font:normal 20px Georgia,serif;margin:0}.checkout-meta-text{font-size:12px;opacity:.75;margin:3px 0 0}.checkout-body{max-width:940px;margin:0 auto;padding:28px 16px 48px}.checkout-table-wrap{overflow-x:auto;border:1px solid #dce2e6;border-radius:5px;background:#fff;margin-bottom:22px}.checkout-breakdown{background:#fff;border:1px solid #dce2e6;border-radius:5px;padding:22px 24px;margin-bottom:22px}.checkout-dl{display:grid;grid-template-columns:1fr auto;gap:0;margin:0}.checkout-dl>div{display:contents}.checkout-dl dt{color:#667488;font-size:14px;padding:5px 0}.checkout-dl dd{text-align:right;font-size:14px;margin:0;padding:5px 0}.checkout-total dt,.checkout-total dd{font-weight:700;font-size:18px;color:#14243b;border-top:2px solid #dce2e6;padding-top:12px;margin-top:6px}.checkout-notes-text{font-size:13px;color:#667488;margin:14px 0 0;padding-top:14px;border-top:1px solid #eee}.checkout-actions{display:flex;gap:12px;justify-content:flex-end;flex-wrap:wrap}@media(max-width:600px){.checkout-actions button{flex:1;justify-content:center}}
.checkout-brand-row td{background:#e8edf2;font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#667488;padding:8px 10px}.order-table .num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.access-state .login-help a{display:inline;background:none;color:#254f7d;padding:0;text-decoration:underline;border-radius:0}
a.btn{text-decoration:none}
.invoices .num{text-align:right;white-space:nowrap}.invoices td a{color:#14243b;font-weight:700}.invoices tfoot th{background:#f3f5f7}.invoices-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:16px}.invoices-head h2{margin:0}.year-tabs{display:flex;gap:6px;flex-wrap:wrap}.year-tabs a{padding:7px 14px;border:1px solid var(--border);border-radius:20px;text-decoration:none;color:#4a5970;font-size:14px}.year-tabs a.active{background:#142944;border-color:#142944;color:#fff;font-weight:700}.invoices .text-line td{color:#637085;font-style:italic}.invoice-actions{display:flex;gap:10px}.invoice-totals{margin:20px 0 0 auto;max-width:380px}.invoice-totals>div{display:flex;justify-content:space-between;gap:20px;padding:8px 0;border-bottom:1px solid #edf0f3}.invoice-totals dt{color:#637085}.invoice-totals dd{margin:0;white-space:nowrap}.invoice-totals .grand{border:0;font-weight:700;font-size:18px}.invoice-totals .grand dt{color:#14243b}
@media print{.header,.breadcrumb,.invoice-actions,.customer-picker{display:none!important}.main{padding:0}.customer-panel{border:0;padding:0}}
