:root{--ink:#172d4e;--muted:#536479;--blue:#1260a5;--yellow:#ffcc43;--line:#dce4ef;--red:#a42026;--green:#d5f2d9;--gray:#e5e7eb}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:#f3f6fa;font:16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{color:var(--blue);text-underline-offset:3px}.site-shell{max-width:1060px;margin:auto;padding:24px}.wide{max-width:1280px}.narrow{max-width:650px;margin:30px auto;padding:20px}.hero{background:#fff;border-radius:24px;padding:36px;border-top:8px solid var(--yellow);box-shadow:0 6px 28px #172d4e08}.hero h1{font-size:clamp(36px,6vw,58px);line-height:1.05;margin:12px 0;color:var(--blue);letter-spacing:-1.5px}.eyebrow{font-size:12px;font-weight:800;letter-spacing:1.5px;color:#476481}.hero p{max-width:620px;color:var(--muted)}.hero-tags,.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.hero-tags span{background:#fff4cd;padding:6px 12px;border-radius:30px;font-size:13px;font-weight:650}h1,h2,h3{line-height:1.2}h2{font-size:23px}h3{font-size:18px}.card,.ticket{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;margin:18px 0}.stack{display:flex;flex-direction:column;gap:16px}label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600}input,select,textarea{font:inherit;color:var(--ink);width:100%;min-height:44px;padding:10px 12px;background:#fff;border:1px solid #b8c7d8;border-radius:9px}input[type=checkbox]{width:20px;min-height:20px}input[type=number]{max-width:150px}input[type=file]{font-size:13px}label.check{flex-direction:row;align-items:center}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;background:var(--blue);color:white;font:inherit;font-weight:700;border:0;border-radius:10px;padding:10px 18px;text-decoration:none;cursor:pointer}button:hover,.button:hover{filter:brightness(.93)}button:disabled{opacity:.55;cursor:wait}.secondary{background:#fff;color:var(--blue);border:1px solid #abc0d7}.danger{background:var(--red)}.subtle{background:none;color:var(--muted);padding:4px 0;min-height:30px;font-size:12px;font-weight:500;text-decoration:underline}.muted,small{color:var(--muted);font-weight:400}.notice{padding:14px 18px;border-radius:10px;margin:16px 0;background:#edf5ff;border:1px solid #b8d1ed}.error{background:#fff1f1;color:#842025;border-color:#e9b7ba}.success{background:#e4f5e7;border-color:#b0d4b6}.tabs{display:flex;gap:8px;margin:22px 0;flex-wrap:wrap}.tabs button{background:#e4ebf4;color:var(--ink);font-size:14px}.tabs button.selected{background:var(--blue);color:#fff}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}.product{display:flex;gap:15px;padding:16px;border:1px solid var(--line);border-radius:15px;background:#fff;align-items:flex-start}.product figure{width:108px;flex-shrink:0;margin:0}.product img{width:108px;height:108px;object-fit:cover;border-radius:12px}.product figcaption{font-size:10px;color:var(--muted);text-align:center}.product-body{flex:1;min-width:0}.product h3{margin:0 0 10px}.price{font-weight:800;color:var(--blue);font-size:20px;margin:8px 0}.stock{font-size:12px;color:var(--muted);margin-bottom:8px}.product input{max-width:90px}.sticky-actions{position:sticky;bottom:12px;padding:14px;background:#ffffffed;border:1px solid var(--line);border-radius:14px;box-shadow:0 3px 20px #172d4e15}.total{display:flex;justify-content:space-between;align-items:center;font-size:22px;padding:16px 0;border-top:1px solid var(--line);margin-top:14px}.ticket{border:2px solid #dce4ef}.ticket.paid{background:var(--green);border-color:#76b783}.ticket.delivered,.ticket.cancelled{background:var(--gray);border-color:#adb5c2}.ticket h1{font-size:38px;margin:12px 0}.ticket h2{margin:0 0 10px}.badge{display:inline-block;font-size:12px;padding:4px 9px;border-radius:30px;background:#ffffffb8}.ticket-items{list-style:none;padding:0}.ticket-items li{display:flex;justify-content:space-between;gap:14px;padding:8px 0;border-bottom:1px solid #172d4e18}.ticket-items li b{white-space:nowrap}.admin-header{display:flex;justify-content:space-between;align-items:center;gap:18px}.admin-header h1{margin:8px 0;font-size:32px}.toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.toolbar input{max-width:320px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:14px}th,td{padding:12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}th{font-size:12px;color:var(--muted)}.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.metric{background:#edf4ff;padding:18px;border-radius:12px}.metric b{display:block;font-size:24px;margin-top:6px}.order-actions{margin-top:16px;display:flex;gap:8px;flex-wrap:wrap}.order-actions button,.order-actions .button{font-size:13px}.order-payment{padding-top:16px;display:flex;gap:10px;align-items:end;flex-wrap:wrap}.order-payment label{flex:1;min-width:140px}.photo-small{width:60px;height:60px;object-fit:cover;border-radius:8px}.mini{padding:6px 10px;min-height:36px;font-size:13px}.split{display:flex;justify-content:space-between;gap:15px;align-items:center}footer{text-align:center;font-size:12px;color:var(--muted);margin:30px 0}.private-link{word-break:break-all;font-size:12px}.payment-box{background:#f5edff;border:1px solid #d3bae7;border-radius:12px;padding:18px;margin:16px 0}.payment-box strong{font-size:26px;display:block;color:#673995}.empty{padding:24px;text-align:center;color:var(--muted)}[hidden]{display:none!important}@media(max-width:760px){.site-shell{padding:14px}.hero{padding:24px}.catalog,.grid{grid-template-columns:1fr}.metric-grid{grid-template-columns:1fr}.card,.ticket{padding:18px}.admin-header h1{font-size:24px}.narrow{margin:12px auto;padding:14px}.product figure,.product img{width:88px}.product img{height:88px}.tabs{gap:5px}.tabs button{padding:9px 12px}.table-wrap{margin:0 -8px}.ticket h1{font-size:34px}.total{font-size:20px}}@media print{body{background:white}.no-print{display:none!important}.ticket{-webkit-print-color-adjust:exact;print-color-adjust:exact;break-inside:avoid}.narrow{padding:0;margin:0;max-width:none}}

/* Family Day: a clear, festive invitation and touch-friendly quantities. */
.family-hero{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(240px,1fr);gap:20px;align-items:center;position:relative;overflow:hidden;border:1px solid #e0e7eb;border-top:7px solid var(--yellow);background:linear-gradient(115deg,#fff 55%,#fffbec);padding:32px}
.family-copy{position:relative;z-index:1;min-width:0}.event-topline{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px}.shop-label{font-size:11px;letter-spacing:1.4px;font-weight:850;background:var(--blue);color:#fff;border-radius:6px;padding:6px 10px}.event-date{font-size:11px;font-weight:850;letter-spacing:1px;color:#704c03;background:#fff1bd;border-radius:6px;padding:6px 10px}.family-hero .eyebrow{font-size:11px;color:#536c80;letter-spacing:2.2px}.family-hero h1{color:#17395d;margin:8px 0 18px;font-size:clamp(38px,6vw,64px);font-weight:850;letter-spacing:-2px;line-height:1.02}.family-hero h1 span{color:var(--blue)}.family-hero p{font-size:14px;margin:10px 0 18px}.family-hero .family-invitation{font-size:19px;font-weight:750;color:#17395d;margin:0 0 10px}.family-hero .hero-tags{gap:7px}.family-hero .hero-tags span{background:#f0f5fb;color:#264768;font-size:11px;padding:6px 9px}.family-hero .hero-tags span:nth-child(2){background:#fff0e9;color:#933d25}.family-hero .hero-tags span:nth-child(3){background:#e9f5ef;color:#28644c}.hero-tags b{margin-right:3px}.family-school{font-size:11px;color:#647387;margin-top:20px}.family-art{text-align:center;min-width:0}.family-art svg,.family-art img{display:block;width:100%;max-width:285px;height:auto;margin:auto}.family-art-caption{font-size:10px;font-weight:750;letter-spacing:2px;color:#536c80;margin-top:10px;display:inline-block}
.quantity-label{font-size:12px;font-weight:650;color:var(--muted);display:block;margin-bottom:5px}.quantity-stepper{display:inline-flex;align-items:center;gap:0;border:1px solid #b9cadd;border-radius:10px;overflow:hidden;background:#f6f9fc;vertical-align:middle;flex-shrink:0}.quantity-stepper button{min-height:44px;width:42px;padding:0;border-radius:0;background:#edf4fb;color:var(--blue);touch-action:manipulation}.quantity-stepper button svg{width:18px;height:18px;pointer-events:none}.quantity-stepper button:disabled{cursor:default;opacity:.35}.quantity-stepper output{display:flex;align-items:center;justify-content:center;min-height:44px;min-width:40px;padding:0 6px;font-size:18px;font-weight:800;background:#fff;font-variant-numeric:tabular-nums}.quantity-stepper button:focus-visible{outline:3px solid #e8a315;outline-offset:-3px}.quantity-stepper output:focus{outline:none}.cart-subtotal{white-space:nowrap}.cart-product-name{min-width:150px}.cart-edit-help{margin:0 0 16px;font-size:13px;color:var(--muted)}
@media(max-width:760px){.family-hero{grid-template-columns:minmax(0,1fr);padding:22px;gap:5px}.event-topline{margin-bottom:16px;gap:8px}.family-hero h1{font-size:46px;letter-spacing:-1.5px}.family-hero .family-invitation{font-size:17px}.family-hero p{font-size:13px;margin-bottom:14px}.family-school{margin-top:14px}.family-art{position:absolute;width:155px;right:-17px;top:76px;opacity:.9;pointer-events:none}.family-hero h1{position:relative;width:max-content;z-index:1}.family-art-caption{display:none}.family-copy>.eyebrow{position:relative;z-index:1}.family-hero .hero-tags{max-width:100%}.quantity-stepper button{width:40px}.quantity-stepper output{min-width:38px}.product{gap:12px}.cart-product-name{min-width:125px}}
@media(max-width:350px){.family-hero{padding:18px}.family-hero h1{font-size:40px}.family-art{width:125px;right:-22px;top:94px}.product{padding:12px;gap:10px}.product figure,.product img{width:70px}.product img{height:70px}.quantity-stepper button{width:36px}.quantity-stepper output{min-width:36px}}
@media(max-width:760px){.cart-table,.cart-table tbody{display:block;width:100%}.cart-table thead{display:none}.cart-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 8px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}.cart-table td{padding:0;border:0;min-width:0}.cart-table td:nth-child(2),.cart-table td:nth-child(4){justify-self:end}.cart-table .cart-subtotal{font-weight:750;color:var(--blue)}.cart-table .cart-product-name{min-width:0}.cart-table .quantity-stepper{max-width:none}.cart-table .subtle{min-height:36px;padding:4px 10px}.cart-table .cart-subtotal:before{content:'Subtotal ';font-size:12px;font-weight:400;color:var(--muted)}}
@media(max-width:760px){.family-hero h1{font-size:clamp(28px,9vw,40px);letter-spacing:-1px}.family-art{width:24%;right:6px;top:80px;opacity:1}}

/* Compact order cards open on demand. */
.compact-orders{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px;align-items:start}.order-card{margin:0;padding:0;border-radius:12px;min-width:0}.order-card>summary{list-style:none;cursor:pointer;padding:12px 15px;position:relative;min-height:100px}.order-card>summary::-webkit-details-marker{display:none}.order-card>summary:focus-visible{outline:3px solid #e8a315;outline-offset:-3px;border-radius:10px}.order-card-heading,.order-card-preview{display:flex;align-items:center;justify-content:space-between;gap:10px}.order-card-heading{margin-bottom:5px;padding-right:20px}.order-card-heading>b{font-size:16px;white-space:nowrap}.order-card-heading .badge{font-size:10px;text-align:right}.order-card-preview{font-size:13px}.order-card-preview>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-card-preview strong{white-space:nowrap}.order-card summary>small{font-size:10px;display:block;margin-top:5px}.order-card>summary:after{content:'⌄';position:absolute;right:12px;top:10px;font-size:20px;color:var(--muted)}.order-card[open]>summary:after{transform:rotate(180deg)}.order-card[open]{grid-column:1/-1}.order-card-details{padding:0 16px 16px;border-top:1px solid #172d4e15}.order-card-details .total{font-size:19px}.movement-badge{display:inline-block;padding:4px 9px;border-radius:20px;font-size:12px;font-weight:700}.movement-badge.income{background:#e3f3e7;color:#21613b}.movement-badge.expense{background:#fff0e9;color:#923d25}#sale-add{align-items:end}#sale-add>label{flex:1;min-width:180px}#sale-add select{max-width:100%}#sale-add .quantity-stepper button{font-size:24px;line-height:1}#sale-add .quantity-stepper output{min-width:44px}
@media(max-width:760px){.compact-orders{grid-template-columns:minmax(0,1fr)}.order-card>summary{padding:12px}.order-card-heading .badge{font-size:9px}.order-card-details{padding:0 12px 14px}.order-card-preview{font-size:12px}#sale-add{display:grid;grid-template-columns:minmax(0,1fr)}#sale-add>label{min-width:0}#sale-add .quantity-stepper{width:max-content}#sale-add-button{width:100%}}

.payment-deadline{background:#fff7dd;border:1px solid #d9bb67;border-radius:12px;padding:12px 16px;margin:16px 0;font-size:14px;color:#554217}.payment-deadline strong{display:block}.ticket.expired{background:var(--gray);border-color:#adb5c2}.reservation-expired{color:#5a5364;font-size:14px}

.sale-yape-panel{padding:18px;border:1px solid #d3bae7;background:#fbf8ff;border-radius:14px;text-align:center}.sale-yape-panel h3{margin:0 0 10px;color:#673995}.sale-yape-panel .sale-yape-qr{display:block;width:min(100%,280px);height:auto;margin:12px auto;background:#fff;border-radius:8px}.sale-yape-panel small{display:block;max-width:450px;margin:12px auto 0;color:var(--muted)}.sale-yape-amount{font-size:20px;margin:8px 0;color:#673995}.sale-yape-amount strong{display:block;font-size:28px}.sale-yape-dialog{width:min(440px,94vw);max-height:94dvh;overflow:auto;border:1px solid #d3bae7;border-radius:18px;padding:20px;text-align:center;color:var(--ink)}.sale-yape-dialog::backdrop{background:#172d4eaa}.sale-yape-dialog .sale-yape-qr{display:block;width:100%;height:auto;background:white;margin:12px auto}.sale-yape-dialog h2{margin:12px 0}.sale-yape-dialog p{margin:8px 0}

.status-help p{margin:0 0 10px}.status-help small{display:block;color:var(--muted)}.status-table{width:100%}.status-table th:not(:first-child),.status-table td{text-align:center;font-variant-numeric:tabular-nums}.status-table tbody th{text-align:left;min-width:180px}.status-table td{font-size:20px;font-weight:700}.status-table .status-paid{color:#267443}.status-table .status-delivered{color:#636f7a}.status-table .status-pending{color:#9a6100}.status-table .status-stock{color:#006a67}.status-table .muted{font-size:13px;font-weight:400}.status-hidden{display:block;color:var(--muted);font-weight:400}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:760px){.status-table-wrap{background:transparent;border:0;box-shadow:none;padding:0;overflow:visible}.status-table thead{display:none}.status-table,.status-table tbody,.status-table tr,.status-table tbody th,.status-table td{display:block;width:100%}.status-table tr{background:white;border:1px solid var(--line);border-radius:14px;padding:14px;margin:12px 0}.status-table tbody th{padding:0 0 10px;font-size:17px;border-bottom:1px solid var(--line);min-width:0}.status-table td{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:right;padding:9px 0;min-height:38px;border:0;font-size:21px}.status-table td:before{content:attr(data-label);font-size:14px;font-weight:400;color:var(--ink);text-align:left}.status-help{font-size:14px}}
