:root {
    --active-text-color: #000; /* border of public photos */
}

@font-face {
    font-family: stanistilFont;
    src: url("../fonts/Watermelon Script - TTF.ttf");
}
html {
    background: var(--background-image) no-repeat center center fixed;
    /*box-shadow: inset 0 0 0 1000px var(--background-color);*/
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}
body, html {
    font-family: textFont;
    color: var(--text-color);
    height: 100%;
}
body {
    font-family: textFont;
    /*background: var(--primary-color);*/
    /*background: linear-gradient(0deg, var(--primary-color) 0%, var(--primary-color-highlight) 50%, var(--primary-color) 100%);*/
}
div.description {
    font-family: infoFont;
    max-width: 80%;
    margin: auto;
}

.bg {

    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
}
/*div.stanistil-title {*/
/*    text-align: center;*/
/*    font-family: titleFont;*/
/*    font-size: 3em;*/
/*    text-shadow: -5px 5px white;*/
/*}*/
div.stanistil-presents {
    text-align: center;
    font-size: 1.5em;
}
div.center-container {
    display: flex;
    justify-content: center;
}
div.invisible_box, div.box {
    margin: 0.2em;
    text-align: center;
    padding: 0.1em 1em;
}
div.box {
    background-color: var(--box-background);
}
div.linefilling {
    display: block;
}
div.ball-title, div.ball-title-clone {
    text-align: center;
    background-color: var(--title-background);
    font-family: titleFont;
    font-size: 3em;
}
div.ball-title-clone {
    z-index: -1;
    position: absolute;
}
div.title {
    font-family: titleFont;
    font-size: 1.5em;
}
div.h2 {
    font-size: 1.5em;
}
.left-align {
    text-align: left;
}
ul {
    text-align: left;
    /*list-style-type: none; !* Remove bullets *!*/
    /*padding: 0; !* Remove padding *!*/
    /*margin: 0; !* Remove margins *!*/
}
div.address {
    display: block;
}
a {
    font-weight: bold;
    text-decoration: none;
    color: var(--text-color);
}
div.home {
    padding: 1em;
}
div.comment {
    font-size: 0.5em;
}
div#left_bottom_decoration {
    position: fixed;
    left: 0px;
    bottom: 0px
}
div#right_bottom_decoration {
    position: fixed;
    right: 0px;
    bottom: 0px;
}
.dot {
    background-color: #358907;
    position: fixed;
    border-radius: 50%;
    z-index: -100;
}
ul.dotless_list {
    text-align: left;
    list-style-type: none;
    margin: 0.1em 0 0.1em 0;
}
ul.center {
    text-align: center;
}
.wide_space {
    padding-top: 40px;
}
#rough_program {
    text-align: left;
}
div#date {
    font-size: 1.5em;
}
.band-hour {
    padding-left: 2em;
}
.band {
    font-size: 2em;
    padding-right: 2em;
}
.band-container {
    display: inline;
    justify-content: center;
}
.performance {
    display: flex;
    overflow-x: clip;
}
.band-hour {
    padding-left: 0.5em;
}
@media (min-width: 1024px) {
    #date_box {
        position: absolute;
        right: 1em;
        top: 7em;
    }
    #location_box {
        position: absolute;
        left: 1em;
        top: 7em;
    }
    /* Side boxes take at most ~30vw each (1em offset + 25vw); the title gets the middle 38vw.
       Box text scales with the viewport so it fits; long names wrap instead of spilling over the boxes. */
    #date_box, #location_box {
        max-width: 25vw;
    }
    #date_box > *, #location_box > * {
        font-size: min(1em, 2.6vw);
    }
    div.ball-title, div.ball-title-clone {
        max-width: 38vw;
        font-size: min(3em, 5.5vw);
        text-wrap: balance;
        overflow-wrap: anywhere;
    }
    .band-container {
        display: flex;
        justify-content: center;
    }
}
table {
    font-size: 1em;
}
td, th  {
    padding: 0 5px;
}
tr:nth-child(odd) {background: var(--box-background)}
input[type=checkbox], input[type=radio]
{
    /* Double-sized Checkboxes */
    -ms-transform: scale(2); /* IE */
    -moz-transform: scale(2); /* FF */
    -webkit-transform: scale(2); /* Safari and Chrome */
    -o-transform: scale(2); /* Opera */
    transform: scale(2);
    margin: 0.25em;
    padding: 10px;
}
.small_btn {
    font-family: textFont !important;
    padding: 0 0.5em!important;
    width: 100%;
}
@media (max-width: 1024px) {
    .only_desktop {
        display: none;
    }
}
@media (min-width: 1024px) {
    .only_mobile {
        display: none;
    }
}
input.small_number {
    width: 1.5em;
}
button.quick_ticket {
    width: 150px;
}
.info {
    font-family: infoFont;
}
.symbol {
    font-family: symbolFont;
}
.added_drink_tickets {
    border: 1px solid black;
    text-align: center;
    font-size: 160px;
    width: 400px;
    height: 200px;
}

#added_drink_tickets {
    position: absolute;
    border: none;
}
.uitpas_ticket_type, #uitpas_warning {
    display: none;
}
.warning-message {
    font-weight: bold;
    color: var(--menu-text-color-highlight);
}
.uitpas_warning {
    display: none;
}
.extra-small {
    font-size: 0.5em;
}
.link_icon {
    height: 0.7em;
}

td.shift_cell {
    background-color: var(--secondary-color);
    padding: 0;
}
td.shift-0-flow {
    background-color: transparent;
}

table.schedule {
    font-size: 0.5em;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}
div.schedule {
    display: block;
}
a.location_link {
    font-size: 0.7em;
}
img.event_thumbnail {
    width: 250px;
}
div.event_box {
    width: 250px;
    position: relative;
    text-align: center;
    color: white;
    margin: 0.1em;
}
div.event_title {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translate(-50%, 0);
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
div.event_date {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, 0);
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
div.event_title, div.event_date {
    color: white;
    width: 250px;
}
div.event_box > a {
    font-weight: normal;
}
div.event_box > a:hover {
    color: white;
}
div.event_box > a:hover > img  {
    -webkit-filter: brightness(150%);
}

* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
    max-width: 70%;
    position: relative;
    margin: auto;
    background-color: #000;
    margin-top: 1em;
    aspect-ratio: 3 / 2;
}

.slideshow-container > div > img{
    height: 100%;
    width: 100%;
}

.slideshow-container > div {
    aspect-ratio: 3 / 2;
}

/* Hide the images by default */
.mySlides {
    opacity: 0;
    position: absolute;
    left: 0;
    top:0;
    -webkit-transition: opacity 2s linear;
    -moz-transition: opacity 2s linear;
    -o-transition: opacity 2s linear;
    transition: opacity 2s linear;
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}
/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

/* The dots/bullets/indicators */
/*.dot {*/
/*    cursor: pointer;*/
/*    height: 15px;*/
/*    width: 15px;*/
/*    margin: 0 2px;*/
/*    background-color: #bbb;*/
/*    border-radius: 50%;*/
/*    display: inline-block;*/
/*    transition: background-color 0.6s ease;*/
/*}*/

/*.active, .dot:hover {*/
/*    background-color: #717171;*/
/*}*/

/* Fading animation */
/*.fade {*/
    /*animation-name: fade;*/
    /*animation-duration: 10s;*/
/*}*/

.visible {
    opacity: 1;
}


.contact {
    margin-top: 1em;
}
/*@keyframes fade {*/
/*    0% {opacity: .4}*/
/*    20% {opacity: 1}*/
/*}*/

/* Uses vh and vm with calc */
@media screen and (min-width: 0px) and (max-width: 1000px){
    html { font-size: 30px; }
    div.description {
        font-family: infoFont;
        max-width: 800px;
        /*margin: auto;*/
    }
    div.event_box {
        width: 12em;
    }
    div.event_title, div.event_date, img.event_thumbnail {
        width: 12em;
	max-width: 75vw;
    }
    .slideshow-container {
        width: 12em;
        max-width: 75vw;
    }
}

#message {
    font-weight: bold;
}
img.band_img {
	max-width:90%;
    width: min(90%, 800px);
	margin-left: auto;
	margin-right: auto;
	display: block;
}
@media print {
    /* All your print styles go here */
    @page {size: A4 landscape;max-height:100%; max-width:100% }

    body {
        font-size: 1em !important;
    }
    .menubar,
    .ball-title,
    .contact
     {
        display: none !important;
    }
    body main.panel { /* "body" so it beats the redesign block further down */
        width: auto;
        margin: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
        background: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        overflow: visible;
    }
    tr:nth-child(even) td {
        -webkit-print-color-adjust:exact !important;
        print-color-adjust:exact !important;
        background: #d3d8dc;
    }
    tr:nth-child(odd) td {
        -webkit-print-color-adjust:exact !important;
        print-color-adjust:exact !important;
        background: #ffffff!important;
    }
    html, table {
        overflow-x: visible !important;

    }
    .page-break {
        page-break-before: always;
    }
    table.schedule {
        font-size: 1em;
    }
    td.volunteer_email, td.volunteer_btn, th.volunteer_email, th.volunteer_btn {
        display: none;
    }
}
.slideshow-container a {
    color: #f2f2f2;
    font-weight: bold;
}
div.grid-gallery-item {
    padding-top: 1em;
    display: flex;
    justify-content: center;
    align-items: center;
}
div.grid-gallery-item img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-height: 400px;
    max-width: 400px;
}
#popup-image {
    max-width: 90%;
    max-height: 90vh;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.volunteer_table {
    font-size: 0.5em;
}
/* ponytail: sideways scroll + sticky name instead of a separate mobile layout */
.ticket_scroll {
    overflow-x: auto;
    max-width: 100%;
}
.ticket_scroll td:first-child, .ticket_scroll th:first-child {
    position: sticky;
    left: 0;
    background: #fff; /* opaque: --box-background is translucent in all themes */
}
/* large staff tables (check-in, ticket overview, volunteers): their own scroll box so the header row can stick.
   ponytail: a box instead of sticking to the page, because the panel scrolls sideways (overflow-x) and that
   stops page-level sticky; the box is about a screen high so it still reads as one page */
.table-scroll {
    overflow: auto;
    max-height: calc(100vh - 120px);
    max-width: 100%;
}
.table-scroll tr:first-child th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    color: #1c1f1d;
    box-shadow: 0 1px 0 var(--panel-line);
}
.table-scroll tr:first-child th:first-child { z-index: 3; } /* the corner, where the sticky name column meets the header */
.volunteer:after, .volunteer:before {
    content: "*";
}
img.sponsor {
    width:170px;
    background: white;
    padding: 10px;
}

.clickable {
    cursor: pointer;
}
.opted_out {
    opacity: 0.4;
    filter: alpha(opacity=40);
}
.public_photo {
    border: 0.2em solid var(--active-text-color);
}
div.grid-gallery-item { position: relative; }
.instagram-star { position: absolute; top: 1.3em; right: 0.5em; border: 0; border-radius: 50%; width: 2em; height: 2em; cursor: pointer;
    background: rgba(0, 0, 0, 0.5); color: rgba(255, 255, 255, 0.6); font-size: 1.1em; line-height: 1; }
.instagram-star[aria-pressed=true] { color: gold; background: rgba(0, 0, 0, 0.75); }
.video-container {
    max-width: 80%;
    width: 800px;
    padding-top: 1em;
}
video {
    width: 100%;
}
.topspace {
    margin-top: 1em;
}
.wide {
    display: none;
}
@media (min-width: 1024px) {
    .wide {
        display: table-cell;
    }
}
textarea {
    height: 20em;
    font-family: Arial;
}
@media (min-width: 1024px) {
    textarea {
        font-size: 16px;
        width: 100%
    }
}
.item_name {
    min-width: 600px;
}
.item_content {
    min-width: 600px;
}

/* ===== Redesign 2026: glass panel, poster frame, calendar header =====
   Defaults only; a theme overrides any of these variables in its own :root. */
:root {
    --panel-bg: rgb(255 255 255 / .82);
    --panel-fg: #1c1f1d;
    --panel-line: rgb(0 0 0 / .12);
    --panel-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    /* frame around date/location on the poster; none by default */
    --pi-border: 0 solid transparent;
    --pi-radius: 0;
    --pi-bg: transparent;
    --pi-color: inherit;
    --pi-shadow: none;
    --pi-filter: none;
    --pi-tilt: none;
}
/* ponytail: px instead of rem, the mobile rule above sets html to 30px */
main.panel {
    width: min(1100px, calc(100% - 24px));
    margin: 24px auto;
    padding: clamp(16px, 3vw, 32px);
    color: var(--panel-fg);
    background: var(--panel-bg);
    border: 1px solid var(--panel-line);
    border-radius: 16px;
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
    box-shadow: 0 12px 30px -16px rgb(0 0 0 / .45);
    font-family: var(--panel-font);
    font-size: clamp(18px, 15px + .3vw, 19px);
    line-height: 1.55;
    overflow-x: auto; /* wide internal tables (schedule, ticket overview) scroll inside the panel */
}
/* readable text inside the panel: beat the themes' textFont/infoFont and glow (themes load after this file) */
main.panel :is(div, p, span, a, li, td, th, label) {
    font-family: inherit;
    text-shadow: none;
}
main.panel a { color: inherit; }
main.panel div.title, main.panel div.ball-title {
    font-family: titleFont;
    font-size: 2.6em;
    line-height: 1.15;
    margin-bottom: .5em;
}
main.panel div.description, main.panel div.box {
    max-width: none;
    background: none;
}

/* date + location frame: drawn on ::before so the text stays crisp */
.framed {
    position: relative; /* #date_box/#location_box keep position:absolute on wide screens (id wins) */
    isolation: isolate;
    color: var(--pi-color);
    padding: 10px 16px;
}
.framed::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    border: var(--pi-border);
    border-radius: var(--pi-radius);
    background: var(--pi-bg);
    box-shadow: var(--pi-shadow);
    filter: var(--pi-filter);
    transform: var(--pi-tilt);
}

.calendar-hero {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-top: 16px;
    text-align: center;
}
.btn-poster {
    display: inline-block;
    margin: 4px;
    padding: 8px 22px;
    border-radius: 999px;
    border: 2px solid var(--panel-line);
    background: var(--panel-bg);
    color: var(--panel-fg);
    font: 600 18px var(--panel-font);
    text-shadow: none;
}
.btn-poster:hover { border-color: var(--panel-fg); }

/* Phones: the 30px root above makes poster lettering wider than the screen; scale it to the viewport.
   "body" prefix so these beat the theme files that load after this one. */
@media (max-width: 1000px) {
    body div.stanistil-title { font-size: clamp(56px, 18vw, 110px); }
    body div.stanistil-presents { font-size: clamp(26px, 8vw, 40px); }
    body div.ball-title, body div.ball-title-clone { font-size: clamp(44px, 14vw, 100px); overflow-wrap: anywhere; }
    body .band { font-size: clamp(26px, 8vw, 56px); padding-right: 0; overflow-wrap: anywhere; }
    body .band-hour { font-size: clamp(20px, 5.5vw, 28px); }
    body .framed { font-size: clamp(24px, 6.5vw, 30px); margin: 8px; }
    body .contact { flex-wrap: wrap; font-size: clamp(18px, 5vw, 30px); overflow-wrap: anywhere; }
}

/* ===== Ticket wizard (view/tickets.php, js/tickets.js) ===== */
.sold-progress img { max-height: 1.6em; }
.wizard {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 240px;
    gap: 24px;
    align-items: start;
    text-align: left;
    margin-top: 16px;
}
.wizard-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; position: sticky; top: 70px; }
.wizard-steps button {
    width: 100%; display: flex; align-items: center; gap: 8px; padding: 6px 10px;
    border: 1px solid var(--panel-line); border-radius: 999px; background: none; color: inherit; font: 600 15px var(--panel-font); cursor: pointer;
}
.wizard-steps button[disabled] { opacity: .45; cursor: default; }
.wizard-steps .n { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-content: center; font-size: 12px; }
.wizard-steps button.done .n { font-size: 0; }
.wizard-steps button.done .n::after { content: "\2713"; font-size: 13px; }
.wizard-steps button[aria-current="step"] { background: var(--panel-fg); color: var(--panel-bg); border-color: transparent; }
.wizard-step-area { display: grid; gap: 14px; min-width: 0; }
.wizard-summary { position: sticky; top: 70px; border: 1px solid var(--panel-line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 8px; }
main.panel .wizard-summary-title, main.panel .step-title { font-family: titleFont; font-size: 1.6em; line-height: 1.1; margin: 0; font-weight: normal; }
.sum { display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.sum > div { display: flex; justify-content: space-between; gap: 10px; }
.sum > div > span:last-child { white-space: nowrap; }
.sum .discount { font-weight: 600; }
.sum-total { border-top: 1.5px solid currentColor; padding-top: 6px; font-weight: 800; }
.tt-list { display: grid; gap: 8px; }
.tt-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; border-bottom: 1px solid var(--panel-line); padding-bottom: 8px; }
.tt-row small { display: block; opacity: .75; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--panel-line); border-radius: 999px; }
.qty button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: inherit; font-size: 20px; cursor: pointer; }
.qty button[disabled] { opacity: .3; cursor: default; }
.qty output { min-width: 24px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.tt-row .price { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 70px; text-align: right; }
main.panel .field { display: grid; gap: 4px; font-size: .9em; }
main.panel .field input { font: inherit; font-size: 16px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--panel-line); background: rgb(255 255 255 / .9); color: #1c1f1d; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
main.panel .check { display: flex; gap: 8px; align-items: flex-start; font-size: .92em; }
main.panel .check input { margin-top: .3em; }
.person { border: 1px solid var(--panel-line); border-radius: 12px; padding: 10px 14px; display: grid; gap: 8px; margin: 0; min-width: 0; }
.person legend { float: none; width: auto; font-size: .9em; font-weight: 700; padding: 0 4px; margin: 0; }
.ticket-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.ticket-tabs button { display: grid; text-align: left; padding: 6px 12px; border: 1.5px solid var(--panel-line); border-radius: 10px; background: none; color: inherit; font: 600 14px var(--panel-font); cursor: pointer; }
.ticket-tabs button small { font-weight: 500; opacity: .75; font-variant-numeric: tabular-nums; }
.ticket-tabs button[aria-selected="true"] { border-color: var(--panel-fg); background: rgb(127 127 127 / .15); }
.meter { height: 12px; border-radius: 999px; background: var(--panel-line); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--panel-fg); border-radius: inherit; transition: width .25s; }
.meter-label { display: flex; justify-content: space-between; gap: 10px; font-size: .85em; opacity: .85; font-variant-numeric: tabular-nums; }
.roles { display: grid; gap: 14px; }
.role h5 { margin: 0 0 6px; font: 700 12px var(--panel-font); text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.slot { display: grid; gap: 2px; text-align: left; padding: 8px 10px; border: 1.5px solid var(--panel-line); border-radius: 10px; background: none; color: inherit; font: inherit; cursor: pointer; }
.slot .time { font-weight: 700; font-variant-numeric: tabular-nums; }
.slot .meta { display: flex; justify-content: space-between; gap: 6px; font-size: .82em; opacity: .8; }
.slot[aria-pressed="true"] { border-color: var(--panel-fg); background: rgb(127 127 127 / .18); }
.slot[aria-pressed="true"] .time::before { content: "\2713  "; }
.slot[disabled] { opacity: .4; cursor: default; }
/* shift selectable per half hour: a strip of tappable half-hour cells */
/* contain: paint works around a Chrome bug: a scrolling strip inside the blurred panel left stale text below it */
.strip { display: grid; gap: 6px; margin-bottom: 10px; contain: paint; }
.strip-head { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.strip-head span:last-child { font-weight: 500; opacity: .8; }
.strip-cells { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(54px, 1fr); gap: 3px; overflow-x: auto; padding-bottom: 2px; }
.cell { display: grid; gap: 1px; justify-items: center; padding: 6px 2px; border: 1.5px solid var(--panel-line); border-radius: 8px; background: none; color: inherit; font: 600 13px var(--panel-font); cursor: pointer; font-variant-numeric: tabular-nums; }
.cell small { font-weight: 500; font-size: 11px; opacity: .75; }
.cell[aria-pressed="true"] { background: var(--panel-fg); color: var(--panel-bg); border-color: var(--panel-fg); }
.cell[aria-pressed="true"] small { opacity: 1; }
.cell[disabled] { opacity: .35; cursor: default; }
.strip-selected { font-size: .85em; opacity: .85; }
/* long strips: fade the cut-off side and offer an arrow there (classes set by markOverflow in js/tickets.js) */
.strip-scroll { position: relative; min-width: 0; } /* lets the cells scroll instead of widening the step */
.strip-scroll.more-right .strip-cells { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 64px), transparent); }
.strip-scroll.more-left .strip-cells { -webkit-mask-image: linear-gradient(to right, transparent, #000 64px); mask-image: linear-gradient(to right, transparent, #000 64px); }
.strip-scroll.more-left.more-right .strip-cells { -webkit-mask-image: linear-gradient(to right, transparent, #000 64px, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(to right, transparent, #000 64px, #000 calc(100% - 64px), transparent); }
.strip-arrow {
    display: none; position: absolute; top: 4px; z-index: 1; width: 32px; height: 32px; place-content: center;
    border-radius: 50%; border: 1px solid var(--panel-line); background: var(--panel-fg); color: var(--panel-bg);
    font: 700 20px/1 var(--panel-font); cursor: pointer; box-shadow: 0 4px 10px -4px rgb(0 0 0 / .5);
}
.strip-arrow.left { left: -6px; }
.strip-arrow.right { right: -6px; }
.strip-scroll.more-left .strip-arrow.left, .strip-scroll.more-right .strip-arrow.right { display: grid; }
.wizard-buttons { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-buttons { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
main.panel button.btn-poster { cursor: pointer; }
main.panel .btn-poster.primary { background: var(--panel-fg); color: var(--panel-bg); border-color: var(--panel-fg); }
main.panel .btn-poster[disabled] { opacity: .5; cursor: default; }
.link-button { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; font: inherit; font-size: .9em; cursor: pointer; }
.pay-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.pay-option { display: flex; gap: 8px; align-items: center; border: 1.5px solid var(--panel-line); border-radius: 10px; padding: 10px; cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--panel-fg); }
.wizard-error { margin: 0; padding: 10px 12px; border-radius: 8px; background: rgb(210 59 59 / .18); font-weight: 600; }
main.panel .hint, main.panel .fine { margin: 0; font-size: .85em; opacity: .8; }
main.panel .muted { opacity: .7; }
@media (max-width: 860px) {
    .wizard { grid-template-columns: 1fr; }
    .wizard-steps { position: static; display: flex; flex-wrap: wrap; }
    .wizard-steps li { flex: 1 1 auto; }
    .wizard-summary { position: static; order: 3; }
}

/* ===== Shift timeline (internal/manage_shifts_form.php, js/manage_shifts.js) ===== */
.shift-editor { display: grid; gap: 12px; text-align: left; }
main.panel:has(.shift-editor) { width: min(1600px, calc(100% - 24px)); }
.shift-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.shift-toolbar .spacer { flex: 1; }
main.panel .field.inline { display: inline-flex; align-items: center; gap: 8px; }
main.panel .field select, main.panel .shift-detail input { font: inherit; font-size: 15px; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--panel-line); background: rgb(255 255 255 / .9); color: #1c1f1d; }
.pill { font: 600 13px var(--panel-font); border-radius: 999px; padding: 4px 12px; border: 1px solid var(--panel-line); background: none; color: inherit; cursor: pointer; }
.pill.warn { background: rgb(227 169 74 / .35); border-color: transparent; }
table.collisions { width: 100%; font-size: 14px; border-collapse: collapse; }
table.collisions td, table.collisions th { padding: 4px 6px; border-bottom: 1px solid var(--panel-line); text-align: left; background: none; }
.shift-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; opacity: .85; }
.shift-legend span { display: inline-flex; gap: 6px; align-items: center; }
.seat { width: 11px; height: 11px; border-radius: 50%; display: inline-block; border: 1.5px solid currentColor; flex: none; }
.seat.booked { background: currentColor; }
.seat.unpaid { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.legend-internal { width: 22px; height: 11px; border: 1.5px dashed currentColor; border-radius: 3px; display: inline-block; }
.shift-main { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; align-items: start; }
.timeline-wrap { overflow-x: auto; border: 1px solid var(--panel-line); border-radius: 10px; }
.timeline { display: grid; grid-auto-rows: minmax(44px, auto); position: relative; font-size: 13px; user-select: none; touch-action: pan-y; }
.tl-corner, .tl-hour { grid-row: 1; padding: 4px; border-left: 1px solid var(--panel-line); opacity: .75; font-variant-numeric: tabular-nums; min-height: 0; }
.tl-corner { grid-column: 1; border-left: 0; }
.tl-role { grid-column: 1; padding: 6px 8px; border-top: 1px solid var(--panel-line); display: grid; align-content: start; gap: 2px; font-weight: 700; }
.tl-role-public { justify-self: start; border: 0; background: none; color: inherit; font: 500 11px var(--panel-font); padding: 0; opacity: .75; cursor: pointer; text-decoration: underline dotted; }
.tl-lane {
    grid-column: 2 / -1; border-top: 1px solid var(--panel-line); cursor: crosshair;
    background-image: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), var(--panel-line) calc(25% - 1px) 25%);
    background-size: calc(100% / var(--hours, 12)) 100%;
}
.tl-bar {
    z-index: 1; margin: 5px 1px; min-width: 0; position: relative; display: grid; align-content: start; gap: 2px; text-align: left;
    padding: 3px 8px; border-radius: 7px; border: 1.5px solid var(--panel-fg); background: rgb(127 127 127 / .22); color: inherit; font: inherit; cursor: pointer; overflow: hidden;
}
.tl-bar.full { background: rgb(127 127 127 / .4); }
.tl-bar.internal { border-style: dashed; background: repeating-linear-gradient(135deg, transparent 0 6px, rgb(127 127 127 / .2) 6px 12px); }
.tl-bar[aria-pressed="true"] { outline: 2px solid var(--panel-fg); outline-offset: 1px; }
.tl-bar-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-bar-seats { display: flex; gap: 3px; align-items: center; flex-wrap: wrap; }
.tl-occ { display: flex; gap: 2px; width: 100%; }
.tl-occ i { flex: 1; height: 8px; border: 1px solid currentColor; border-radius: 2px; }
.tl-occ i.part { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.tl-occ i.full { background: currentColor; }
.assign-range { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.assign-range input { width: 150px; }
.tl-bar .handle { position: absolute; top: 0; bottom: 0; width: 12px; cursor: ew-resize; }
.tl-bar .handle.l { left: 0; } .tl-bar .handle.r { right: 0; }
.tl-ghost { z-index: 2; margin: 5px 1px; border: 1.5px dashed var(--panel-fg); border-radius: 7px; background: rgb(127 127 127 / .15); pointer-events: none; }
.shift-detail { display: grid; gap: 12px; border: 1px solid var(--panel-line); border-radius: 12px; padding: 14px; position: sticky; top: 70px; font-size: 15px; }
.block-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.seat-list { display: grid; gap: 6px; }
.seat-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px solid var(--panel-line); padding-bottom: 6px; flex-wrap: wrap; }
.seat-row .assign { display: flex; gap: 6px; align-items: center; }
.seat-row .assign input { width: 150px; }
@media (max-width: 900px) { .shift-main { grid-template-columns: 1fr; } .shift-detail { position: static; } }

/* ===== Planning (internal/planning_form.php, js/planning.js) ===== */
main.panel:has(.planning) { width: min(1600px, calc(100% - 24px)); }
.planning { display: grid; gap: 14px; text-align: left; }
.planning-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.planning-bar .spacer { flex: 1; }
.planning-bar select, .task-panel select, .task-panel input:not([type=radio]):not([type=checkbox]) {
    font: inherit; font-size: 15px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--panel-line); background: rgb(255 255 255 / .9); color: #1c1f1d;
}
.seg { display: inline-flex; border: 1px solid var(--panel-line); border-radius: 999px; overflow: hidden; }
.seg button { border: 0; background: none; color: inherit; font: 600 14px var(--panel-font); padding: 6px 14px; cursor: pointer; }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--panel-fg); color: var(--panel-bg); }
.planning-main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.planning-main:has(.task-panel[hidden]) { grid-template-columns: minmax(0, 1fr); }

/* to do */
.todo-group { margin-bottom: 14px; }
.todo-group h3 { font: 700 13px var(--panel-font); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 6px; opacity: .85; }
.todo-group.overdue h3 { color: #b23a3a; opacity: 1; }
.todo-group .count { font-weight: 500; opacity: .7; margin-left: 4px; }
.todo-group .fold { border: 0; background: none; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; padding: 0; cursor: pointer; }
.todo-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.task-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 10px; border: 1px solid transparent; }
.task-row:hover, .task-row.selected { border-color: var(--panel-line); background: rgb(127 127 127 / .08); }
.task-row.overdue { border-left: 4px solid #d23b3b; }
.task-row.done .task-name { text-decoration: line-through; opacity: .6; }
.tick { width: 30px; height: 30px; border-radius: 50%; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-content: center; }
.tick .tick-mark { width: 20px; height: 20px; border-radius: 50%; border: 2px solid currentColor; display: block; }
.tick .tick-mark.busy { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.tick[aria-pressed="true"] .tick-mark { background: currentColor; }
.tick[aria-pressed="true"] .tick-mark::after { content: "\2713"; color: var(--panel-bg); font-size: 13px; display: grid; place-content: center; height: 100%; }
.task-open { display: grid; gap: 1px; text-align: left; border: 0; background: none; color: inherit; font: inherit; padding: 0; cursor: pointer; min-width: 0; }
.task-name { font-weight: 600; overflow-wrap: anywhere; }
.task-meta { font-size: 13px; opacity: .7; }
.due { font-size: 13px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.task-row.overdue .due { color: #b23a3a; }

/* timeline */
.pl-scroll { overflow: auto; border: 1px solid var(--panel-line); border-radius: 10px; }
.pl-grid { display: grid; grid-auto-rows: minmax(30px, auto); position: relative; font-size: 13px; width: max-content; }
.tl-corner, .pl-label { position: sticky; left: 0; z-index: 3; background: var(--panel-bg); }
.pl-month { grid-row: 1; padding: 4px 6px; font-weight: 700; border-left: 1px solid var(--panel-line); white-space: nowrap; overflow: hidden; position: sticky; top: 0; z-index: 2; background: var(--panel-bg); }
.pl-week { grid-row: 2; padding: 2px 3px; font-size: 11px; opacity: .7; border-left: 1px solid var(--panel-line); position: sticky; top: 26px; z-index: 2; background: var(--panel-bg); }
.tl-corner { grid-column: 1; grid-row: 1 / 3; top: 0; z-index: 4; }
.pl-cat { grid-column: 1 / -1; font: 700 12px var(--panel-font); text-transform: uppercase; letter-spacing: .08em; padding: 10px 8px 2px; border-top: 1px solid var(--panel-line); }
.pl-cat span { position: sticky; left: 8px; }
.pl-label { grid-column: 1; display: grid; text-align: left; padding: 3px 8px; border: 0; border-right: 1px solid var(--panel-line); color: inherit; font: 600 13px var(--panel-font); cursor: pointer; }
.pl-label small { font-weight: 400; opacity: .65; }
.pl-label.selected { outline: 2px solid var(--panel-fg); outline-offset: -2px; }
.pl-bar { margin: 6px 0; border-radius: 5px; border: 1.5px solid var(--panel-fg); background: rgb(127 127 127 / .25); cursor: pointer; padding: 0; min-width: 6px; z-index: 1; }
.pl-bar.now { background: rgb(127 127 127 / .45); }
.pl-bar.busy { background: repeating-linear-gradient(135deg, rgb(127 127 127 / .5) 0 5px, transparent 5px 10px); }
.pl-bar.overdue { background: #d23b3b; border-color: #8d1f1f; }
.pl-bar.done { opacity: .35; }
.pl-bar.selected { outline: 2px solid var(--panel-fg); outline-offset: 2px; }
.pl-line { width: 2px; justify-self: start; z-index: 1; pointer-events: none; position: relative; }
.pl-line span { position: sticky; top: 50px; display: inline-block; font-size: 11px; font-weight: 700; white-space: nowrap; padding: 0 4px; border-radius: 4px; transform: translateX(-50%); }
.pl-line.today { background: #2b7bd3; } .pl-line.today span { background: #2b7bd3; color: #fff; }
.pl-line.event { background: var(--panel-fg); } .pl-line.event span { background: var(--panel-fg); color: var(--panel-bg); }
.pl-links { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 2; overflow: visible; }
.pl-links path { fill: none; stroke: var(--panel-fg); stroke-width: 1; opacity: .12; }
.pl-links path.on { opacity: .9; stroke-width: 2; }
.pl-links marker path { fill: var(--panel-fg); stroke: none; opacity: 1; }

/* side panel */
.task-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; border: 1px solid var(--panel-line); border-radius: 12px; padding: 14px; position: sticky; top: 70px; font-size: 15px; }
.task-panel .seg button { padding: 6px 12px; }
.task-panel > *, .task-panel .field { min-width: 0; }
.task-panel .field > input, .task-panel .field > select { width: 100%; min-width: 0; }
.task-panel .seg { display: flex; flex-wrap: wrap; }
.task-panel fieldset.when { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; min-width: 0; } /* fieldsets don't shrink below their content by default */
.task-panel fieldset.when legend { float: none; font-size: inherit; margin: 0 0 4px; padding: 0; }
.task-panel[hidden] { display: none; }
.task-panel fieldset.instagram { border: 1px solid var(--panel-line); border-radius: 8px; padding: 10px; margin: 0; display: grid; gap: 8px; min-width: 0; }
.task-panel fieldset.instagram legend { font-size: inherit; padding: 0 4px; width: auto; margin: 0; }
.task-panel .ig-preview { width: 100%; max-height: 420px; object-fit: contain; background: #000; border-radius: 6px; }
.task-panel textarea { width: 100%; min-width: 0; font: inherit; }
.task-panel .ig-error { color: #c0392b; }
.task-panel .inline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-left: 26px; min-width: 0; }
.task-panel .inline input[type=number] { width: 72px; }
.task-panel .inline select { flex: 1 1 100%; width: 100%; min-width: 0; }
@media (max-width: 900px) {
    .planning-main { grid-template-columns: minmax(0, 1fr); }
    .task-panel { position: static; order: -1; }
    .pl-label { min-width: 0; font-size: 12px; overflow-wrap: anywhere; }
}

/* sales overview (internal/sales) */
main.panel:has(.sales) { width: min(1400px, calc(100% - 24px)); }
.sales { display: grid; gap: 28px; }
.sales > *, .sales-grid > * { min-width: 0; }
.sales-grid > * { overflow-x: auto; } /* wide tables scroll in their own box on phones; not on the charts, overflow-x would add a vertical scrollbar */
.sales header .title { margin-bottom: 0; }
.sales header p { margin: 0; }
.sales h2 { font-size: 1.1em; font-weight: 700; margin: 0 0 10px; }
.sales-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.sales .kpi { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--panel-line); border-radius: 12px; }
.sales .kpi span { font-size: .85em; opacity: .75; }
.sales .kpi strong { font-size: 1.5em; font-variant-numeric: tabular-nums; }
.sales-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 28px; }
.sales-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sales-table :is(th, td) { padding: 6px 10px; border-bottom: 1px solid var(--panel-line); text-align: right; white-space: nowrap; }
.sales-table :is(th, td):first-child { text-align: left; }
.sales-table thead th { font-size: .85em; opacity: .75; font-weight: 600; }
.sales-table tfoot :is(th, td) { font-weight: 700; border-bottom: 0; }
.sales .sheet-ref { font-size: .75em; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--panel-line); opacity: .7; font-weight: 600; }
.sales-chart { width: 100%; height: clamp(280px, 45vh, 460px); }
