/* Orders use one quiet register and a detailed card on desktop and mobile. */
.head-orders-title,.head-orders-title>div,.head-order-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.head-orders-title{justify-content:space-between;margin:0 0 18px}.head-orders-title h2{font-size:20px;font-weight:500;margin:0}.head-orders-title span{font-size:12px;color:#777}
.head-orders-filters{display:grid;grid-template-columns:minmax(180px,1.5fr) minmax(150px,1fr) minmax(130px,.8fr) repeat(2,minmax(130px,.8fr)) auto auto;gap:10px;align-items:end;margin-bottom:18px}
.head-orders-filters label{display:grid;gap:5px;font-size:11px;color:#74747a;min-width:0}.head-orders-filters :is(input,select){width:100%;height:38px;min-height:38px;padding:7px 9px;font-size:13px;border:1px solid #ddd;border-radius:5px;background:#fff;color:#29292e}
.head-orders-grid{overflow:auto;border-top:1px solid #e5e5e5}.head-orders-grid table{width:100%;border-collapse:collapse;font-size:13px;line-height:1.45}.head-orders-grid :is(th,td){text-align:left;vertical-align:top;border-bottom:1px solid #ededed;padding:14px 10px}.head-orders-grid th{font-size:11px;font-weight:400;color:#7b7b80;background:#fafafa}.head-orders-grid td small{display:block;font-size:11px;font-weight:400;color:#8b8b90;margin-top:4px}.head-orders-grid td:nth-child(5){white-space:nowrap}.head-orders-grid .text-action{font-size:12px}
.head-order-menu{position:relative;font-size:12px}.head-order-menu summary{cursor:pointer;padding:8px 10px;color:#62626a;list-style:none}.head-order-menu>div{position:absolute;z-index:10;top:100%;right:0;min-width:190px;padding:6px;background:#fff;border:1px solid #ddd;border-radius:6px;box-shadow:0 5px 20px #00000010}.head-order-menu button{display:block;width:100%;text-align:left;padding:9px;background:none;border:0;font:inherit;cursor:pointer;color:#303035}.head-order-menu button:hover{background:#f5f5f5}
.head-order-dialog{width:min(840px,calc(100% - 30px));max-height:90dvh;margin:auto;padding:26px;border:1px solid #e5e5e5;border-radius:12px;background:#fff;color:#2b2b30;font-family:inherit;overflow:auto}.head-order-dialog::backdrop{background:#0005}.head-order-dialog header{display:flex;justify-content:space-between;align-items:start;gap:14px}.head-order-dialog h2{font-size:21px;font-weight:500;margin:0 0 5px;overflow-wrap:anywhere}.head-order-dialog header span{font-size:12px;color:#888}.head-order-dialog h3{font-size:15px;font-weight:500;margin:24px 0 12px}.head-order-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 28px;margin:24px 0}.head-order-fields div{min-width:0}.head-order-fields dt{font-size:11px;color:#86868c;margin-bottom:4px}.head-order-fields dd{margin:0;font-size:14px;overflow-wrap:anywhere}.head-order-ticket-list article{display:flex;gap:8px 20px;align-items:center;flex-wrap:wrap;padding:13px 0;border-bottom:1px solid #eee;font-size:12px}.head-order-ticket-list strong{font-weight:500}.head-order-ticket-list b{font-weight:500;margin-left:auto}.head-order-extra{border-top:1px solid #e5e5e5;margin-top:24px;padding-top:16px}.head-order-extra summary{cursor:pointer;font-size:13px;color:#666}.head-order-extra>div{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
@media(max-width:1200px){.head-orders-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.head-orders-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.head-orders-filters label:first-child{grid-column:1/-1}.head-orders-title>div{gap:8px}.head-orders-title h2{font-size:19px}.head-orders-grid table{min-width:700px}.head-order-dialog{padding:19px;width:calc(100% - 16px);max-height:94dvh}.head-order-fields{gap:16px;grid-template-columns:1fr}.head-order-extra>div{flex-direction:column}.head-order-dialog h2{font-size:18px}}
/* Promotion creation keeps manual codes and generated series in the same form. */
.head-portal .head-promo-bulk{display:grid;grid-template-columns:minmax(120px,160px) minmax(180px,1fr) auto;gap:10px 14px;align-items:end;padding:17px;margin:18px 0;background:#fff;border:1px solid #e4e4e7;border-radius:9px}
.head-portal .head-promo-bulk label{display:grid;gap:5px;font-size:11px;color:#777780;font-weight:400;min-width:0}
.head-portal .head-promo-bulk :is(input,select){min-width:0;width:100%;height:39px;min-height:39px;padding:7px 10px;border:1px solid #dedee1;border-radius:6px;background:#fff;color:#29292e;font-size:13px;box-shadow:none}
.head-portal .head-promo-bulk p{grid-column:1/-1;font-size:10px;line-height:1.6;color:#777780;margin:0}
.head-portal .head-promo-bulk .head-promo-status{grid-column:1/-1}
.head-portal .head-promo-bulk .button{min-height:39px;padding:9px 16px;font-size:12px}
@media(max-width:640px){.head-portal .head-promo-bulk{grid-template-columns:minmax(0,1fr);padding:14px}.head-portal .head-promo-bulk .button{width:100%}}
.head-portal .head-promo-edit-link{padding:3px 0;border:0;background:none;font:11px inherit;color:#76767e;text-decoration:underline;text-underline-offset:3px;text-align:left;cursor:pointer}
.head-portal .head-promo-edit{display:flex;gap:8px;align-items:end;flex-wrap:wrap;max-width:340px}
.head-portal .head-promo-edit label{display:grid;gap:4px;max-width:85px;font-size:11px;color:#6a6a73}
.head-portal .head-promo-edit input{width:85px;min-height:34px;padding:6px 8px;border:1px solid #dedee1;border-radius:5px;font-size:13px}
.head-portal .head-promo-edit button{padding:7px 10px;min-height:34px;border:1px solid #dedee1;border-radius:5px;background:#fff;font-size:11px;cursor:pointer}
.head-portal .head-promo-edit button[type=submit]{color:var(--signal)}
.head-portal .head-promo-edit small{flex-basis:100%;font-size:10px;line-height:1.5;color:#76767e}
.head-portal .head-promo-code-controls{grid-column:1/-1;display:grid;gap:14px;min-width:0}
.head-portal .head-promo-code-controls [hidden],.head-portal .head-promo-ticket-scope label[hidden]{display:none!important}
.head-portal .head-promo-modes{display:flex;gap:3px;justify-self:start;background:#f2f2f3;border:1px solid #e6e6e8;border-radius:7px;padding:3px}
.head-portal .head-promo-modes label{display:flex;align-items:center;position:relative;cursor:pointer;font-size:13px;font-weight:400;padding:8px 15px;border-radius:4px;color:#707078}
.head-portal .head-promo-modes label:has(:checked){background:#fff;color:#252529;box-shadow:0 1px 3px #00000012}
.head-portal .head-promo-modes input{position:absolute;opacity:0;width:1px;height:1px;min-height:0;padding:0}
.head-portal .head-promo-modes label:focus-within{outline:2px solid var(--signal);outline-offset:2px}
.head-portal [data-promo-manual]{max-width:320px}
.head-portal .head-promo-auto{display:grid;gap:12px;min-width:0}
.head-portal .head-promo-generator-fields{display:grid;grid-template-columns:140px minmax(160px,260px) auto;gap:12px;align-items:end;justify-content:start}
.head-portal .head-promo-generator-fields .button{min-height:40px;white-space:nowrap;padding:10px 15px}
.head-portal .head-promo-generated{display:grid;gap:7px;min-width:0;max-width:620px}
.head-portal .head-promo-generated textarea{width:100%;min-width:0;resize:vertical;border:1px solid #dedee1;border-radius:7px;padding:11px 13px;font:13px/1.7 monospace!important;background:#fafafa;color:#343439;letter-spacing:.035em}
.head-portal .head-promo-generated .text-button{justify-self:start;padding:4px 0;background:none;border:0;color:#6a6b73;text-decoration:underline;text-underline-offset:3px;font-size:12px}
.head-portal .head-promo-auto .form-note{font-size:11px;line-height:1.6;color:#76767e;margin:0}
.head-portal .head-promo-status{margin:0;font-size:12px;line-height:1.6;color:#63646a;overflow-wrap:anywhere}
.head-portal .head-promo-status:empty{display:none}
.head-portal .head-promo-status[data-error=true]{color:#b62b35}
.head-portal [data-head-promotion-form][aria-busy=true]{opacity:.8}
@media(max-width:640px){.head-portal .head-promo-generator-fields{grid-template-columns:minmax(80px,.7fr) minmax(120px,1.3fr);gap:10px}.head-portal .head-promo-generator-fields>.button{grid-column:1/-1}.head-portal .head-promo-modes{justify-self:stretch}.head-portal .head-promo-modes label{flex:1;justify-content:center;padding:10px}.head-portal [data-promo-manual]{max-width:none}}

/* Analytics controls stay local to Head; no changes to Tickets or other sections. */
body[data-route=head] .sandbox-strip{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:center;padding:7px 16px;border-bottom:1px solid #ededee;background:#f5f5f6;color:#73747b;font:10px/1.5 "Inter",sans-serif}
body[data-route=head] .sandbox-strip span{flex:1 1 220px}
body[data-route=head] .sandbox-strip a{color:#666;text-decoration:underline;text-underline-offset:2px;white-space:nowrap}
.head-portal .ha-workspace{--ha-line:#e5e5e7;--ha-muted:#73747b;--ha-red:#df3545;display:grid;gap:18px;min-width:0;color:#252529}
.head-portal .ha-workspace :is(button,select,input){font:inherit;font-size:13px;box-shadow:none}
.head-portal .ha-workspace button{cursor:pointer}
.head-portal .ha-heading{display:flex;align-items:center;gap:12px;min-width:0}
.head-portal .ha-heading h1{font-size:21px;font-weight:600;line-height:1.3;margin:0 auto 0 0;letter-spacing:-.025em}
.head-portal .ha-settings{position:relative;font-size:13px;flex:none;z-index:3}
.head-portal .ha-settings summary{list-style:none;cursor:pointer;padding:9px 12px;border:1px solid var(--ha-line);border-radius:7px;background:white}
.head-portal .ha-settings summary::-webkit-details-marker{display:none}
.head-portal .ha-settings summary:after{content:'⌄';margin-left:9px;color:var(--ha-muted)}
.head-portal .ha-settings[open] summary{background:#f3f3f4}
.head-portal .ha-settings fieldset{position:absolute;top:calc(100% + 8px);right:0;width:235px;display:grid;gap:0;margin:0;padding:12px;border:1px solid var(--ha-line);border-radius:8px;background:#fff;box-shadow:0 8px 24px #00000012}
.head-portal .ha-settings legend{float:left;width:100%;font-size:11px;color:var(--ha-muted);padding:2px 5px 8px}
.head-portal .ha-settings label{display:flex;gap:9px;align-items:center;padding:7px 5px;font-size:13px;font-weight:400;cursor:pointer}
.head-portal .ha-settings input{width:16px;height:16px;min-height:0;margin:0;accent-color:var(--ha-red);flex:none}
.head-portal .ha-export{padding:9px 12px;border:1px solid var(--ha-line);border-radius:7px;background:#fff;color:#424249;white-space:nowrap}
.head-portal .ha-export:disabled{cursor:default;opacity:.5}
.head-portal .ha-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.head-portal .ha-field{display:grid;gap:5px;min-width:0;flex:0 1 175px;font-weight:400}
.head-portal .ha-field>span{font-size:11px;color:var(--ha-muted);line-height:1.4}
.head-portal .ha-filters .ha-field:has([data-analytics-setting=eventId]){flex:1 1 220px;max-width:420px}
.head-portal .ha-field :is(select,input){width:100%;min-width:0;min-height:38px;height:38px;padding:7px 10px;background:#fff;color:#252529;border:1px solid var(--ha-line);border-radius:6px;line-height:1.4;font-weight:400;letter-spacing:normal;text-transform:none}
.head-portal .ha-field select{padding-right:25px;text-overflow:ellipsis}
.head-portal .ha-demo{margin:-7px 0 0;font-size:11px;color:var(--ha-muted)}
.head-portal .ha-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(170px,100%),1fr));gap:10px}
.head-portal .ha-kpi{display:flex;flex-direction:column;text-align:left;align-items:start;gap:7px;padding:15px 16px;border:1px solid var(--ha-line);border-radius:8px;background:#fff;color:#252529;min-width:0}
.head-portal .ha-kpi.is-active{border-color:var(--ha-red);box-shadow:inset 0 2px var(--ha-red)}
.head-portal .ha-kpi:hover{background:#fafafa}
.head-portal .ha-kpi>span{font-size:12px;color:#626269;line-height:1.4}
.head-portal .ha-kpi>strong{font-size:24px;font-weight:550;line-height:1.25;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;letter-spacing:-.035em}
.head-portal .ha-kpi>small{font-size:10px;line-height:1.4;color:var(--ha-muted);font-weight:400}
.head-portal .ha-chart-card{min-width:0;background:#fff;border:1px solid var(--ha-line);border-radius:9px;overflow:hidden}
.head-portal .ha-chart-toolbar{display:flex;gap:14px;align-items:end;padding:16px 18px;flex-wrap:wrap;border-bottom:1px solid #f0f0f1}
.head-portal .ha-chart-types{display:flex;margin-left:auto;background:#f3f3f4;border:1px solid #ebebed;border-radius:6px;padding:2px;gap:2px;align-self:end}
.head-portal .ha-chart-types button{border:0;background:transparent;border-radius:4px;color:var(--ha-muted);padding:7px 10px;font-size:12px;min-height:30px}
.head-portal .ha-chart-types .is-active{background:#fff;color:#252529;box-shadow:0 1px 3px #00000010}
.head-portal .ha-chart-body{min-height:255px;padding:20px 16px 0;min-width:0}
.head-portal .ha-plot{width:100%;overflow-x:auto}
.head-portal .ha-plot svg{display:block;width:100%;min-width:530px;max-height:330px;color:var(--ha-muted);font-size:11px;font-family:inherit;overflow:visible}
.head-portal .ha-plot svg text{fill:var(--ha-muted);font-size:11px}
.head-portal .ha-grid{stroke:#efeff1;stroke-width:1;vector-effect:non-scaling-stroke}
.head-portal .ha-line{fill:none;stroke:var(--ha-red);stroke-width:2;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.head-portal .ha-mark{fill:var(--ha-red)}
.head-portal .ha-chart-caption{margin:0;padding:12px 18px;color:var(--ha-muted);font-size:10px;border-top:1px solid #f5f5f6;line-height:1.5}
.head-portal .ha-empty{display:grid;place-content:center;text-align:center;min-height:210px;color:var(--ha-muted);font-size:13px;max-width:500px;margin:0 auto;line-height:1.6}
.head-portal .ha-table-scroll{max-height:330px;overflow:auto;min-width:0}
.head-portal .ha-table-scroll table{width:100%;border-collapse:collapse;font-size:12px;min-width:280px}
.head-portal .ha-table-scroll :is(th,td){padding:10px 12px;border-bottom:1px solid #ededee;text-align:left;font-weight:400;vertical-align:top}
.head-portal .ha-table-scroll thead th{position:sticky;top:0;background:#fff;color:var(--ha-muted);font-size:11px}
.head-portal .ha-table-scroll :is(td,th):last-child{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.head-portal .ha-footer{display:grid;grid-template-columns:minmax(230px,.75fr) minmax(0,1.25fr);gap:24px}
.head-portal .ha-occupancy{display:grid;grid-template-columns:1fr auto;gap:5px 12px;align-items:baseline}
.head-portal .ha-occupancy>span{font-size:12px;color:#55565d}
.head-portal .ha-occupancy>strong{font-size:18px;font-weight:500;font-variant-numeric:tabular-nums}
.head-portal .ha-occupancy>small{grid-column:1/-1;color:var(--ha-muted);font-size:10px;line-height:1.5}
.head-portal .ha-method{font-size:11px;color:var(--ha-muted);line-height:1.65}
.head-portal .ha-method summary{cursor:pointer;font-size:12px;color:#55565d;list-style-position:inside;padding-block:2px}
.head-portal .ha-method p{margin:10px 0;font-size:11px;line-height:1.65}
.head-portal .ha-method ul{padding-left:16px;margin:8px 0}
@media(max-width:780px){.head-portal .ha-workspace{gap:15px}.head-portal .ha-heading{gap:8px}.head-portal .ha-heading h1{font-size:19px}.head-portal .ha-settings summary,.head-portal .ha-export{font-size:12px;padding:8px 10px}.head-portal .ha-filters{gap:10px}.head-portal .ha-filters .ha-field{flex:1 1 135px}.head-portal .ha-filters .ha-field:has([data-analytics-setting=eventId]){flex-basis:100%;max-width:none;order:-1}.head-portal .ha-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.head-portal .ha-kpi{padding:12px;gap:6px}.head-portal .ha-kpi>strong{font-size:22px}.head-portal .ha-chart-toolbar{padding:12px;gap:10px}.head-portal .ha-chart-toolbar .ha-field{flex:1 1 120px}.head-portal .ha-chart-types{margin-left:0;justify-content:stretch;width:100%}.head-portal .ha-chart-types button{flex:1;min-height:34px}.head-portal .ha-chart-body{padding:12px 8px 0;min-height:235px}.head-portal .ha-footer{grid-template-columns:minmax(0,1fr);gap:15px}.head-portal .ha-chart-caption{padding:10px 12px}.head-portal .ha-settings fieldset{right:-80px}}
@media(prefers-reduced-motion:reduce){.head-portal .ha-workspace *{animation:none!important;transition:none!important}}

