:root {
    --ink: #132038;
    --muted: #7d899b;
    --line: #e8edf4;
    --panel: #ffffff;
    --page: #f6f8fc;
    --teal: #10d3d7;
    --blue: #4778ff;
    --violet: #7a5cff;
    --pink: #ee65a9;
    --green: #21bf73;
    --amber: #e0a72f;
    --danger: #e86372;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--page); color: var(--ink); }
body { overflow-x: hidden; }
button, input, select { font: inherit; }

button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }
:focus { outline: none; }
:focus-visible {
    outline: 2px solid rgba(90, 108, 255, .35);
    outline-offset: 2px;
}
a { color: inherit; }
h1,h2,h3,p { margin-top: 0; }
h1 { font-size: 28px; line-height: 1.12; letter-spacing: -.75px; font-weight: 760; margin-bottom: 6px; outline: none; }
h2 { font-size: 17px; font-weight: 760; letter-spacing: -.25px; margin-bottom: 0; }
.page-lead { color: var(--muted); font-size: 13px; margin: 0; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-heading h1:focus { outline: none; }
.page-heading-actions { display: flex; gap: 9px; }
.btn-sway, .btn-secondary-sway { height: 40px; border-radius: 10px; padding: 0 15px; display: inline-flex; align-items: center; gap: 8px; border: 0; font-size: 12px; font-weight: 760; text-decoration: none; cursor: pointer; }
.btn-sway { color: white; background: linear-gradient(110deg,#09cbd6 0%,#5d6cff 52%,#e55fa8 100%); box-shadow: 0 9px 22px rgba(99,92,255,.2); }
.btn-secondary-sway { color: #29374d; background: #fff; border: 1px solid #e3e8f0; }
.panel { background: #fff; border: 1px solid #ebeff5; border-radius: 16px; box-shadow: 0 9px 28px rgba(38,54,78,.035); }
.kpi-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 14px; }
.kpi-card { min-height: 126px; padding: 20px; position: relative; overflow: hidden; }
.kpi-label { color: #68758a; font-size: 11px; font-weight: 650; margin-bottom: 9px; }
.kpi-value { font-size: 29px; line-height: 1; letter-spacing: -1.2px; font-weight: 800; color: #101e35; }
.kpi-trend { margin-top: 10px; font-size: 11px; font-weight: 760; color: var(--green); }
.kpi-sub { margin-top: 10px; color: #98a1af; font-size: 10px; }
.kpi-orb { position: absolute; right: -22px; bottom: -35px; width: 100px; height: 100px; border-radius: 38px; background: radial-gradient(circle at 30% 30%,rgba(24,222,226,.55),rgba(108,90,255,.5) 52%,rgba(239,90,170,.7)); filter: blur(.1px); opacity: .48; transform: rotate(20deg); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(280px,.9fr); gap: 14px; margin-bottom: 14px; }
.chart-card { padding: 20px; min-height: 278px; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.card-title-row h2 { font-size: 14px; }
.filter-pill { height: 32px; border: 1px solid #e4e9f1; background: #fff; border-radius: 9px; padding: 0 10px; font-size: 10px; color: #59667a; }
.fake-chart { height: 190px; display: flex; align-items: flex-end; gap: 14px; padding: 8px 8px 24px 24px; position: relative; }
.fake-chart::before { content: ""; position: absolute; inset: 5px 0 24px 0; background: repeating-linear-gradient(to bottom, transparent 0, transparent 38px, #edf1f6 39px, #edf1f6 40px); pointer-events: none; }
.bar-group { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; position: relative; z-index: 1; }
.bar { width: 11px; border-radius: 4px 4px 1px 1px; background: linear-gradient(to top,#6f5eff,#11d5d9); }
.bar.alt { background: linear-gradient(to top,#8d63ff,#d9e3ff); opacity: .72; }
.bar-label { position: absolute; bottom: -21px; font-size: 9px; color: #8c96a6; white-space: nowrap; }
.donut-wrap { display: flex; align-items: center; gap: 23px; padding: 12px 4px 4px; }
.donut { width: 142px; height: 142px; border-radius: 50%; background: conic-gradient(#3f75ff 0 45%,#ba52ff 45% 73%,#f06ca0 73% 91%,#f1b32c 91% 100%); position: relative; flex: 0 0 auto; }
.donut::after { content: "12 450 kr\A idag"; white-space: pre; position: absolute; inset: 31px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 15px; line-height: 1.2; color: #152239; }
.legend { display: grid; gap: 12px; flex: 1; }
.legend-row { display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 8px; font-size: 10px; color: #5b687b; }
.legend-row strong { color: #26344b; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.table-panel { overflow: hidden; }
.table-head { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.table-head h2 { font-size: 14px; }
.sway-table { width: 100%; border-collapse: collapse; }
.sway-table th { height: 35px; padding: 0 14px; background: #fafbfd; color: #7b8798; text-align: left; font-size: 9px; font-weight: 760; white-space: nowrap; }
.sway-table td { height: 45px; padding: 0 14px; border-top: 1px solid #edf1f5; color: #26344a; font-size: 10px; vertical-align: middle; }
.sway-table tbody tr:hover { background: #fbfcfe; }
.amount { font-weight: 800; color: #17243a !important; }
.status-pill { display: inline-flex; align-items: center; min-height: 21px; border-radius: 999px; padding: 0 8px; font-size: 9px; font-weight: 800; }
.status-paid, .status-active { color: #168c53; background: #dff8e9; }
.status-pending { color: #9c6a12; background: #fff2cf; }
.status-ended { color: #68758a; background: #edf1f5; }
.cards-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.event-card { overflow: hidden; }
.event-hero { height: 138px; position: relative; overflow: hidden; background: linear-gradient(135deg,#0e1b2b,#293a5c); }
.event-hero.sport { background: radial-gradient(circle at 35% 60%,#d8e9c8 0 9%,transparent 10%), linear-gradient(155deg,#5d863a,#b8d695 44%,#4b7556 45%,#203245); }
.event-hero.concert { background: radial-gradient(circle at 25% 40%,rgba(31,222,233,.8),transparent 15%), radial-gradient(circle at 66% 30%,rgba(240,92,171,.8),transparent 17%), radial-gradient(circle at 52% 63%,rgba(112,84,255,.7),transparent 17%), linear-gradient(155deg,#07111f,#34214e); }
.event-hero.market { background: linear-gradient(155deg,#98c4de 0 48%,#4b854f 49% 63%,#e6d7bb 64%); }
.event-card-body { padding: 17px; }
.event-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.event-title { font-size: 15px; font-weight: 790; }
.event-date { color: #7f8a9a; font-size: 10px; margin-top: 3px; }
.event-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 19px 0 15px; }
.event-metric strong { display: block; font-size: 18px; letter-spacing: -.5px; }
.event-metric small { color: #8b96a7; font-size: 9px; }
.location-list { display: grid; gap: 8px; margin: 14px 0 17px; }
.location-row { display: flex; justify-content: space-between; font-size: 10px; color: #47546a; }
.location-row span:first-child::before { content: "▦"; margin-right: 8px; color: #8d98a9; }
.card-action { width: 100%; height: 37px; border-radius: 9px; border: 1px solid #e3e8ef; background: #fff; color: #223149; font-size: 10px; font-weight: 760; }
.qr-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.qr-card { padding: 14px; text-align: center; position: relative; overflow: hidden; }
.qr-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg,#0dd9d6,#7b5bff,#ef6a9f,#edae2f); }
.qr-card h3 { font-size: 13px; margin-bottom: 2px; }
.qr-card .price { font-size: 10px; font-weight: 800; }
.qr-code { width: 102px; height: 102px; margin: 16px auto 10px; padding: 8px; background-color: #fff; background-image: linear-gradient(90deg,#10151e 50%,transparent 50%),linear-gradient(#10151e 50%,transparent 50%); background-size: 13px 13px; border: 7px solid #fff; outline: 1px solid #dfe5ee; box-shadow: inset 0 0 0 3px #fff; }
.qr-note { color: #8a95a6; font-size: 9px; min-height: 28px; }
.qr-actions { display: grid; grid-template-columns: 1fr 34px; gap: 7px; margin-top: 13px; }
.content-toolbar { display: flex; gap: 9px; margin-bottom: 14px; }
.search-box { min-width: 260px; height: 37px; border: 1px solid #e3e8f0; border-radius: 9px; padding: 0 12px; background: #fff; font-size: 11px; outline: 0; }
.simple-select { height: 37px; border: 1px solid #e3e8f0; border-radius: 9px; padding: 0 12px; background: #fff; color: #526076; font-size: 10px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.settings-card { padding: 20px; }
.settings-card h2 { margin-bottom: 6px; }
.settings-card p { color: #8792a2; font-size: 11px; margin-bottom: 18px; }
.form-row { display: grid; gap: 6px; margin-bottom: 14px; }
.form-row label { font-size: 10px; font-weight: 700; color: #556277; }
.form-row input { height: 39px; border: 1px solid #e2e7ef; border-radius: 9px; padding: 0 11px; color: #223148; outline: 0; }
@media (max-width: 1180px) {
    .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .cards-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .qr-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 900px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .qr-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    h1 { font-size: 24px; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .kpi-grid, .cards-grid, .qr-grid { grid-template-columns: 1fr; }
    .sway-table { min-width: 700px; }
    .table-panel { overflow-x: auto; }
    .content-toolbar { flex-wrap: wrap; }
    .search-box { min-width: 100%; }
}

/* Customer administration */
.empty-state { padding: 34px; text-align: center; color: #7d899b; font-size: 12px; }
.clickable-row { cursor: pointer; }
.row-chevron { text-align: right; font-size: 19px !important; color: #9aa5b5 !important; }
.status-suspended { color: #a34755; background: #fde7ea; }
.back-link { display: inline-block; margin-bottom: 10px; color: #6f7c90; font-size: 11px; font-weight: 700; text-decoration: none; }
.back-link:hover { color: #26344b; }
.admin-form-grid { display: grid; gap: 14px; max-width: 1100px; }
.form-panel { padding: 22px; }
.section-heading { margin-bottom: 18px; }
.section-heading h2 { margin-bottom: 5px; }
.section-heading p, .table-subtitle { margin: 0; color: #8792a2; font-size: 11px; }
.split-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.form-grid-two { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 14px; }
.form-grid-three { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 14px; }
.span-two { grid-column: 1 / -1; }
.sway-input { width: 100%; height: 41px; border: 1px solid #e1e7ef; border-radius: 10px; padding: 0 11px; background: #fff; color: #223148; outline: none; font-size: 12px; }
.sway-input:focus { border-color: #8d92ff; box-shadow: 0 0 0 3px rgba(105,96,255,.08); }
.input-suffix { position: relative; }
.input-suffix .sway-input { padding-right: 42px; }
.input-suffix > span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #8b96a7; font-size: 11px; pointer-events: none; }
.field-help { display: block; margin-top: 5px; color: #8b96a7; font-size: 10px; }
.validation-message { color: #c94f5f; font-size: 10px; margin-top: 5px; }
.info-callout { margin-top: 8px; padding: 11px 12px; border-radius: 10px; background: #f5f7fb; color: #69768a; font-size: 10px; line-height: 1.45; }
.sticky-form-actions { display: flex; justify-content: flex-end; gap: 10px; max-width: 1100px; padding: 16px 0 4px; }
.form-alert { max-width: 1100px; padding: 12px 14px; margin-bottom: 14px; border-radius: 11px; font-size: 11px; font-weight: 650; }
.form-alert-error { background: #fdecef; color: #a83f50; border: 1px solid #f6d5db; }
.form-alert-success { background: #e5f8ed; color: #168c53; border: 1px solid #cfefdc; }
.customer-title-row { display: flex; align-items: center; gap: 10px; }
.customer-title-row h1 { margin-bottom: 0; }
.customer-detail-grid { display: grid; grid-template-columns: minmax(300px,.85fr) minmax(480px,1.4fr); gap: 14px; }
.detail-list { display: grid; }
.detail-list > div { min-height: 46px; display: grid; grid-template-columns: minmax(120px,.75fr) 1.25fr; align-items: center; gap: 16px; border-top: 1px solid #eef1f5; }
.detail-list > div:first-child { border-top: 0; }
.detail-list span { color: #8591a2; font-size: 10px; }
.detail-list strong { color: #27364c; font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
.version-badge { white-space: nowrap; padding: 6px 9px; border-radius: 999px; background: #eef2ff; color: #6154c8; font-size: 9px; font-weight: 800; }
.fee-action-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 8px; }
.btn-danger-soft { height: 40px; border-radius: 10px; padding: 0 15px; border: 1px solid #f0d3d8; color: #a74352; background: #fff6f7; font-size: 12px; font-weight: 760; cursor: pointer; }
.section-block { margin-top: 14px; }
.table-head > div { padding: 14px 0; }
@media (max-width: 980px) {
    .customer-detail-grid { grid-template-columns: 1fr; }
    .form-grid-three { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .form-grid-two { grid-template-columns: 1fr; }
    .span-two { grid-column: auto; }
    .customer-heading { align-items: flex-start; }
    .customer-title-row { align-items: flex-start; flex-direction: column; }
    .fee-action-row { align-items: stretch; flex-direction: column; }
    .sticky-form-actions { position: sticky; bottom: 0; background: rgba(246,248,252,.95); padding: 12px 0; backdrop-filter: blur(12px); }
    .sticky-form-actions > * { flex: 1; justify-content: center; }
}

/* Event / kiosk / payment item administration */
.event-customer { margin-top: 8px; color: #7b8798; font-size: 10px; font-weight: 650; }
.card-action-link { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.event-detail-summary { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(300px,.75fr); gap: 14px; }
.event-stat-panel { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: center; gap: 10px; }
.event-stat { min-height: 110px; border: 1px solid #edf1f5; border-radius: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: #fbfcfe; }
.event-stat strong { font-size: 27px; line-height: 1; color: #142138; letter-spacing: -1px; }
.event-stat span { margin-top: 8px; color: #8792a2; font-size: 10px; }
.event-manage-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.inline-form-actions { display: flex; justify-content: flex-end; margin-top: 5px; }
.sway-textarea { min-height: 96px; height: auto; resize: vertical; padding-top: 10px; padding-bottom: 10px; }
.token-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #6657cb; background: #f1efff; border-radius: 6px; padding: 3px 6px; font-size: 9px; }
.table-action-link { color: #645be7; font-size: 10px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.table-action-link:hover { text-decoration: underline; }
.qr-meta-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; color: #8792a2; font-size: 9px; text-align: left; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #c8d0db; box-shadow: 0 0 0 3px rgba(200,208,219,.18); }
.status-dot.active { background: #24c17a; box-shadow: 0 0 0 3px rgba(36,193,122,.13); }
.qr-code-placeholder { background: linear-gradient(145deg,#07111f,#131e32); display: grid; place-items: center; border: 7px solid #fff; outline: 1px solid #dfe5ee; }
.qr-code-placeholder span { font-size: 42px; line-height: 1; font-weight: 850; letter-spacing: -5px; background: linear-gradient(135deg,#12dbe1,#6961ff 55%,#f164a6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.qr-token { margin-top: 10px; padding: 8px 9px; border-radius: 9px; background: #f8f9fc; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; }
.qr-token span { color: #929cac; font-size: 8px; }
.qr-token code { color: #6057c7; font-size: 8px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1050px) {
    .event-detail-summary, .event-manage-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .event-stat-panel { grid-template-columns: 1fr; }
    .event-stat { min-height: 78px; }
    .inline-form-actions > * { width: 100%; justify-content: center; }
}
.event-selector { text-decoration: none; }

/* Public payment + real QR */
.qr-image-link { display:block; width:132px; height:132px; margin:16px auto 10px; border-radius:12px; background:#fff; padding:8px; border:1px solid #e0e6ef; box-shadow:0 8px 24px rgba(28,43,67,.08); }
.qr-image { display:block; width:100%; height:100%; object-fit:contain; image-rendering:auto; }
.qr-actions-three { grid-template-columns:minmax(0,1fr) minmax(0,1fr) 38px; }
.qr-small-action { display:flex; align-items:center; justify-content:center; padding:0 !important; text-decoration:none; }

.public-pay-card {
    border:1px solid rgba(255,255,255,.12);
    border-radius:22px;
    padding:30px;
    background:linear-gradient(145deg,rgba(36,49,76,.82),rgba(15,25,42,.86));
    backdrop-filter:blur(18px);
    box-shadow:0 30px 80px rgba(0,0,0,.3);
}
.public-pay-centered { text-align:center; }
.public-pay-card h1 { color:#fff; margin:5px 0 10px; font-size:30px; }
.public-pay-kicker { color:#9facbd; font-size:12px; font-weight:650; }
.public-pay-message { color:#c9d2df; margin:0 0 20px; }
.public-pay-amount { color:#fff; font-size:42px; line-height:1; font-weight:800; letter-spacing:-1.5px; margin:22px 0; }
.public-amount-row { margin:22px 0; }
.public-amount-row label { color:#d8e0ea; }
.public-input-suffix .sway-input { background:rgba(7,15,28,.52); border-color:rgba(255,255,255,.16); color:#fff; }
.public-input-suffix span { color:#cbd4e1; }
.public-pay-primary { width:100%; height:50px; border:0; border-radius:12px; color:#fff; font-weight:800; cursor:pointer; background:linear-gradient(105deg,#12d1df,#665cff 55%,#ee64a8); box-shadow:0 12px 28px rgba(92,86,255,.25); }
.public-pay-primary:disabled { opacity:.6; cursor:default; }
.public-pay-secondary { margin-top:18px; height:42px; border-radius:10px; padding:0 18px; border:1px solid rgba(255,255,255,.2); background:transparent; color:#fff; }
.public-pay-footnote { text-align:center; color:#8492a6; font-size:11px; margin:16px 0 0; }
.public-pay-success, .public-pay-icon { width:58px; height:58px; margin:0 auto 16px; border-radius:50%; display:grid; place-items:center; font-size:26px; font-weight:900; }
.public-pay-success { color:#0a6; background:#dff8e9; }
.public-pay-icon { color:#ffc15a; background:rgba(255,193,90,.12); border:1px solid rgba(255,193,90,.24); }
.payment-reference-box { margin:20px auto; max-width:300px; padding:14px; border-radius:12px; background:rgba(8,16,29,.38); border:1px solid rgba(255,255,255,.1); display:grid; gap:5px; }
.payment-reference-box span { color:#8f9bad; font-size:10px; text-transform:uppercase; letter-spacing:.8px; }
.payment-reference-box strong { color:#fff; letter-spacing:1px; }
.public-pay-callout { margin-top:16px; padding:13px; border-radius:11px; color:#cfd8e5; font-size:12px; background:rgba(82,102,148,.15); border:1px solid rgba(255,255,255,.08); }
@media (max-width:620px) {
    .public-pay-card { padding:22px 18px; border-radius:18px; }
    .public-pay-card h1 { font-size:25px; }
    .public-pay-amount { font-size:36px; }
    .qr-actions-three { grid-template-columns:1fr 1fr; }
    .qr-small-action { grid-column:1 / -1; height:34px; }
}
.public-pay-link-button { text-decoration:none; margin-top:14px; }
.public-pay-callout-success { color:#1ed78a; border-color:rgba(30,215,138,.24); background:rgba(30,215,138,.08); }

/* Payment item administration */
.table-actions-col { width: 190px; text-align: right; }
.table-actions-cell { vertical-align: middle !important; padding-top: 10px !important; padding-bottom: 10px !important; }
.table-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; white-space: nowrap; }
.btn-compact { height: 34px; padding: 0 12px; }
.payment-item-editor { border: 1px solid #dfe7f1; }
.delete-confirm-panel { border: 1px solid #f0d3d8; }
.action-gap { gap: 10px; }
@media (max-width: 800px) {
    .table-actions { flex-direction: column; align-items: stretch; }
    .table-actions .btn-compact { width: 100%; justify-content: center; }
}

/* Ticketing */
.ticket-type-pill { margin-left: .45rem; vertical-align: middle; }
.ticket-wallet { display: grid; gap: 1rem; width: 100%; margin-top: 1.25rem; }
.ticket-wallet-heading { display: grid; gap: .2rem; text-align: left; }
.ticket-wallet-heading strong { font-size: 1.05rem; }
.ticket-wallet-heading span { color: var(--muted, #6b7280); font-size: .9rem; }
.ticket-card { display: grid; grid-template-columns: minmax(0,1fr) 150px; gap: 1rem; align-items: center; padding: 1.1rem; border: 1px solid rgba(15,23,42,.12); border-radius: 18px; background: rgba(255,255,255,.8); text-align: left; }
.ticket-card-copy { display: grid; gap: .35rem; }
.ticket-card-copy strong { font-size: 1.05rem; }
.ticket-card-copy code { width: max-content; }
.ticket-card img, .ticket-public-qr img { width: 150px; max-width: 100%; border-radius: 12px; background: #fff; padding: 8px; }
.ticket-open-link { grid-column: 1 / -1; text-align: center; }
.ticket-public-card { max-width: 540px; }
.ticket-public-qr { margin: 1.25rem auto; width: min(260px, 80vw); }
.ticket-public-qr img { width: 100%; }
.ticket-check-result { max-width: 680px; margin: 3rem auto; min-height: 420px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .8rem; text-align: center; border-width: 2px; }
.ticket-check-icon { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font-size: 3.2rem; font-weight: 800; background: rgba(255,255,255,.8); }
.ticket-check-valid, .ticket-check-ready { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.45); }
.ticket-check-invalid, .ticket-check-used { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.45); }
.ticket-check-time { font-size: 1.25rem; font-weight: 700; }
.ticket-check-button { margin-top: .8rem; min-width: 220px; }
@media (max-width: 640px) {
    .ticket-card { grid-template-columns: 1fr; text-align: center; }
    .ticket-card img { margin: 0 auto; }
    .ticket-card-copy { justify-items: center; }
}


/* SwayPay: consistent inset dropdown arrow across all native/Blazor selects.
   The icon sits 19px from the right edge, instead of the browser's
   far-right native indicator. Applies to dashboard, reports, forms and scanner. */
select:not([multiple]):not([size]),
select.sway-input,
select.simple-select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23526177' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 19px center;
    background-size: 12px 8px;
    padding-right: 45px;
}

/* Creation of products and tickets directly under the sales location */
.item-create-inline-cell { padding: 16px !important; background: var(--page, #f6f8fc); }
.item-create-inline-cell .form-panel { border-radius: 12px; }
.item-create-inline-cell .section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.event-manage-grid:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }


.event-fold {border:1px solid #e5eaf2;background:#fff;border-radius:15px;overflow:hidden;margin-bottom:12px;}
.event-fold > summary {display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding:17px 20px;list-style:none;color:#17243a;font-weight:750;font-size:14px;}
.event-fold > summary::-webkit-details-marker {display:none;}
.event-fold > summary:hover {background:#f8faff;}
.event-fold-indicator {width:9px;height:9px;border-right:2px solid #8290a6;border-bottom:2px solid #8290a6;transform:rotate(45deg);transition:transform .15s;margin-right:5px;}
.event-fold[open] > summary .event-fold-indicator {transform:rotate(225deg);}
.event-fold[open] > summary {border-bottom:1px solid #edf1f7;}
.event-fold > .panel {margin:0;border:0;border-radius:0;box-shadow:none;}
.event-fold > .event-manage-grid {margin:0;padding:14px;}

/* Create sales locations inside the Sales locations section. */
.event-create-location { margin: 14px 18px 18px; border: 1px solid #e5eaf2; border-radius: 12px; overflow: hidden; background: #fff; }
.event-create-location > summary { cursor: pointer; padding: 13px 16px; font-weight: 700; color: #255dc3; list-style: none; }
.event-create-location > summary::-webkit-details-marker { display: none; }
.event-create-location > summary:hover { background: #f8faff; }
.event-create-location[open] > summary { border-bottom: 1px solid #e5eaf2; }
.event-create-location > .event-manage-grid { padding: 12px; margin: 0; }
.event-create-location .form-panel { border: 0; box-shadow: none; }

/* Compact SwayPay gradient actions for sales location administration */
.event-add-item-btn { min-height: 32px; height: 32px; padding: 0 13px; font-size: 12px; white-space: nowrap; border-radius: 9px; line-height: 1; }
.event-add-item-btn span, .event-create-location > summary span { font-size: 16px; font-weight: 700; line-height: 1; }
.event-add-item-btn:hover { filter: brightness(1.05); }
.event-create-location { display: block; width: fit-content; max-width: calc(100% - 36px); border: none; background: transparent; overflow: visible; }
.event-create-location[open] { width: auto; max-width: none; border: 1px solid #e5eaf2; background: #fff; overflow: hidden; }
.event-create-location > summary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; border-radius: 9px; padding: 0 13px; color: #fff; background: linear-gradient(110deg,#09cbd6 0%,#5d6cff 52%,#e55fa8 100%); box-shadow: 0 7px 18px rgba(99,92,255,.16); font-size: 12px; line-height: 1; white-space: nowrap; }
.event-create-location > summary:hover { background: linear-gradient(110deg,#02bac6 0%,#4a5af0 52%,#d64f99 100%); }
.event-create-location[open] > summary { border-bottom: none; margin: 12px 12px 0; }
.event-create-location[open] > .event-manage-grid { padding-top: 12px; }

/* Inline rename for a sales location */
.event-location-rename { display:flex; align-items:end; flex-wrap:wrap; gap:12px; padding:12px 4px; }
.event-location-rename .form-row { flex:1 1 240px; max-width:440px; }
.event-location-rename-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding-bottom:2px; }
.event-location-rename-actions button { width:auto; }

/* Align sales location actions side by side with compact, balanced sizes. */
.event-location-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: nowrap; white-space: nowrap; }
.event-location-actions > button { flex: 0 0 auto; width: auto; min-width: 0; margin: 0; height: 33px; padding: 0 12px; border-radius: 9px; font-size: 12px; line-height: 1; }
.event-location-actions .event-edit-location-btn { border: 1px solid #dce5f2; background: #fff; color: #294168; box-shadow: none; }
.event-location-actions .event-edit-location-btn:hover { background: #f3f7ff; border-color: #9eb7e3; }
.event-location-actions .event-add-item-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.sway-table .table-actions-cell:has(.event-location-actions) { text-align: right; white-space: nowrap; }
