:root {
    --bg:#eef3f8;
    --panel:#ffffff;
    --panel-soft:#f8fafc;
    --line:#d7e1ec;
    --line-strong:#b9c8d8;
    --ink:#152235;
    --muted:#607086;
    --nav:#0f253a;
    --nav-2:#173652;
    --primary:#156faa;
    --primary-strong:#0d5f98;
    --accent:#f28c28;
    --accent-2:#ffb15f;
    --good:#16885a;
    --bad:#b23b30;
    --shadow:0 18px 38px rgba(15,37,58,.08);
}

.run-linked-models-panel {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.run-linked-models-panel > h3 {
    margin: 0 0 6px;
}

.run-linked-models-panel > p {
    margin: 0 0 14px;
    color: var(--muted);
}

.run-linked-model-search {
    position: relative;
    max-width: 980px;
}

.run-linked-model-search-menu {
    position: absolute;
    z-index: 220;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 380px;
    overflow-y: auto;
    border: 1px solid #bfd2e6;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 18px 34px rgba(15, 41, 66, .17);
}

.run-linked-model-search-option {
    display: block;
    width: 100%;
    padding: 11px 13px;
    border: 0;
    border-bottom: 1px solid #e6eef6;
    background: #fff;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.run-linked-model-search-option:hover,
.run-linked-model-search-option:focus-visible {
    outline: 0;
    background: #eaf4ff;
}

.run-linked-model-search-option strong,
.run-linked-model-search-option small {
    display: block;
}

.run-linked-model-search-option small {
    margin-top: 3px;
    color: var(--muted);
}

.run-linked-model-search-empty {
    padding: 13px;
    color: var(--muted);
}

.run-linked-model-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.run-linked-model-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #cbdced;
    border-radius: 12px;
    background: #f7fbff;
}

.run-linked-model-item strong,
.run-linked-model-item small {
    display: block;
}

.run-linked-model-item small {
    margin-top: 3px;
    color: var(--muted);
}

.run-linked-model-item .button {
    flex: 0 0 auto;
    padding: 7px 10px;
}

.run-linked-model-empty {
    margin: 10px 0 0;
    color: var(--muted);
}

* { box-sizing:border-box; }
html { min-height:100%; }
body {
    min-height:100%;
    margin:0;
    padding-bottom:54px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background:var(--bg);
    color:var(--ink);
    font-size:15px;
}

.ticketme-global-loader-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(11, 29, 46, .44);
    backdrop-filter: blur(1px);
    z-index: 9999;
}

.ticketme-global-loader-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid #c8d5e3;
    border-radius: 10px;
    background: #fff;
    color: #0f253a;
    font-weight: 800;
    box-shadow: 0 16px 34px rgba(15, 37, 58, .22);
}

.ticketme-global-loader-spinner {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid rgba(13, 95, 152, .2);
    border-top-color: #0d5f98;
    animation: ticketme-spin .9s linear infinite;
}

@keyframes ticketme-spin {
    to { transform: rotate(360deg); }
}

.shell {
    min-height:calc(100vh - 54px);
    display:grid;
    grid-template-columns:284px minmax(0, 1fr);
    transition:grid-template-columns .2s ease;
}

.side {
    position:sticky;
    top:0;
    height:calc(100vh - 54px);
    overflow:auto;
    background:linear-gradient(180deg, var(--nav) 0%, #0b1d2e 100%);
    color:#e8f2fc;
    padding:24px 18px;
    transition:padding .2s ease;
}

.side-toggle,
.side-overlay,
.side-mobile-head {
    display:none;
}

.side-mobile-head {
    align-items:center;
    justify-content:space-between;
    margin:-6px -2px 14px;
    padding:0 4px 12px;
    border-bottom:1px solid rgba(255,255,255,.14);
    color:#d8e7f7;
    font-weight:800;
}

.side-close {
    width:34px;
    height:34px;
    border-radius:8px;
    border:1px solid rgba(255,255,255,.2);
    background:rgba(255,255,255,.08);
    color:#fff;
    display:grid;
    place-items:center;
    cursor:pointer;
}

.side-close:hover {
    background:rgba(255,255,255,.16);
}

.side-collapse-toggle {
    width:38px;
    height:38px;
    border-radius:10px;
    border:1px solid rgba(255,255,255,.14);
    background:rgba(255,255,255,.07);
    color:#e8f2fc;
    display:grid;
    place-items:center;
    margin:-16px 0 18px auto;
    cursor:pointer;
    transition:background .15s ease, color .15s ease, transform .15s ease;
}

.side-collapse-toggle:hover {
    background:rgba(255,255,255,.14);
    color:#fff;
}

.side-collapse-toggle i {
    font-size:14px;
}

.side-ecubing {
    width:max-content;
    margin:-24px 0 18px;
    display:inline-flex;
    align-items:center;
    gap:7px;
    color:#a8bed3;
    text-decoration:none;
    transition:color .18s ease, opacity .18s ease;
}

.side-ecubing:hover {
    color:#fff;
    opacity:.86;
}

.side-ecubing:focus-visible {
    outline:3px solid var(--accent);
    outline-offset:3px;
}

.side-ecubing__label {
    font-size:9px;
    font-weight:850;
    letter-spacing:.08em;
    line-height:1;
    text-transform:uppercase;
}

.side-ecubing__cube {
    width:40px;
    height:32px;
    display:block;
    overflow:hidden;
    flex:0 0 40px;
}

.side-ecubing__logo {
    display:block;
    width:auto;
    max-width:none;
    height:32px;
    filter:drop-shadow(0 0 1px rgba(255,255,255,.5));
}

.brand {
    display:flex;
    align-items:center;
    gap:12px;
    margin:0 0 28px;
    color:#fff;
    text-decoration:none;
}

.brand-mark {
    width:52px;
    height:52px;
    border-radius:12px;
    object-fit:cover;
    box-shadow:0 12px 28px rgba(21,111,170,.28);
}

.brand-text {
    display:grid;
    gap:1px;
}

.brand-name {
    font-size:28px;
    line-height:1;
    font-weight:900;
    letter-spacing:0;
}

.brand-subtitle {
    color:#a8bed3;
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.08em;
}

.brand-subtitle .app-version {
    margin-left:8px;
    color:#ffd4a8;
    font-weight:900;
}

.brand-welcome {
    margin:-14px 2px 14px;
    padding:9px 11px;
    border-radius:8px;
    border:1px solid rgba(255,255,255,.11);
    background:rgba(255,255,255,.05);
    color:#d8e7f7;
    font-size:13px;
    line-height:1.35;
}

.brand-welcome strong {
    color:#fff;
}

.brand-welcome-profile {
    display:inline;
    border-radius:4px;
    color:#fff;
    text-decoration:underline;
    text-decoration-color:rgba(255,255,255,.35);
    text-decoration-thickness:1px;
    text-underline-offset:3px;
    transition:color .16s ease, text-decoration-color .16s ease, background-color .16s ease;
}

.brand-welcome-profile:hover {
    color:#fff;
    text-decoration-color:#fff;
}

.brand-welcome-profile:focus-visible {
    outline:2px solid #fff;
    outline-offset:3px;
    background:rgba(255,255,255,.12);
}

.nav-group {
    margin-top:20px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:10px;
    background:rgba(255,255,255,.02);
}

.nav-title {
    display:flex;
    align-items:center;
    gap:12px;
    list-style:none;
    cursor:pointer;
    padding:9px 10px;
    margin:0;
    color:#e9f3fd;
    font-size:15px;
    text-transform:none;
    font-weight:800;
    letter-spacing:0;
    line-height:1.25;
}
.nav-title::-webkit-details-marker { display:none; }
.nav-group[open] .nav-title {
    border-bottom:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.04);
}

.nav-group.is-current .nav-title {
    background: rgba(242, 140, 40, .18);
    color: #fff;
    box-shadow: inset 3px 0 0 0 var(--accent);
}

.nav-group.is-current .nav-title .nav-icon i {
    color: var(--accent-2);
    opacity: 1;
}

.nav-row {
    display:flex;
    align-items:center;
    gap:12px;
    min-height:40px;
    color:#d5e4f2;
    text-decoration:none;
    padding:8px 11px;
    border-radius:8px;
    margin-bottom:4px;
    font-weight:700;
    line-height:1.15;
}
.nav-group .nav-row {
    margin:5px 7px;
}

a.nav-row:hover {
    background:rgba(255,255,255,.08);
    color:#fff;
}
a.nav-row.active {
    background:rgba(255,255,255,.11);
    box-shadow: inset 2px 0 0 0 var(--accent);
    color:#fff;
}

.side-logout {
    margin:24px 0 6px;
    padding-top:18px;
    border-top:1px solid rgba(255,255,255,.14);
}

.side-logout__button {
    width:100%;
    min-height:44px;
    padding:10px 13px;
    border:1px solid #d6665d;
    border-radius:8px;
    background:#b23b30;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:12px;
    font:inherit;
    font-weight:850;
    cursor:pointer;
    box-shadow:0 8px 18px rgba(64,9,7,.2);
    transition:background .16s ease, border-color .16s ease, transform .16s ease;
}

.side-logout__button:hover {
    border-color:#f09a92;
    background:#982f27;
    transform:translateY(-1px);
}

.side-logout__button:focus-visible {
    outline:3px solid #fff;
    outline-offset:3px;
}

.side-logout__button i {
    width:22px;
    flex:0 0 22px;
    text-align:center;
}

.top form[action$="/ticketme/logout"] {
    display:none;
}

.nav-row.muted {
    color:#7f98af;
    cursor:default;
}

.nav-icon {
    width:22px;
    height:22px;
    display:grid;
    place-items:center;
    color:#e8f2fc;
    flex:0 0 22px;
}
.nav-icon i {
    font-size:15px;
    line-height:1;
    opacity:.82;
    transition: color .15s ease, opacity .15s ease, transform .15s ease;
}
a.nav-row:hover .nav-icon i,
a.nav-row.active .nav-icon i {
    color: var(--accent);
    opacity:1;
    transform: translateY(-.5px);
}

html.ticketme-side-collapsed .shell {
    grid-template-columns:82px minmax(0, 1fr);
}

html.ticketme-side-collapsed .side {
    padding:22px 11px;
    overflow-x:hidden;
}

html.ticketme-side-collapsed .brand {
    justify-content:center;
    margin-bottom:14px;
}

html.ticketme-side-collapsed .brand-mark {
    width:44px;
    height:44px;
    border-radius:11px;
}

html.ticketme-side-collapsed .brand-text,
html.ticketme-side-collapsed .brand-welcome,
html.ticketme-side-collapsed .nav-title span:not(.nav-icon),
html.ticketme-side-collapsed .nav-row span:not(.nav-icon) {
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip:rect(0 0 0 0);
    white-space:nowrap;
}

html.ticketme-side-collapsed .side-collapse-toggle {
    margin:0 auto 14px;
}

html.ticketme-side-collapsed .side-collapse-toggle i {
    transform:rotate(180deg);
}

html.ticketme-side-collapsed .side-ecubing {
    display:none;
}

html.ticketme-side-collapsed .side-ecubing__label {
    display:none;
}

html.ticketme-side-collapsed .nav-group {
    margin-top:12px;
    border-radius:12px;
}

html.ticketme-side-collapsed .nav-title,
html.ticketme-side-collapsed .nav-row {
    justify-content:center;
    gap:0;
    padding:10px;
}

html.ticketme-side-collapsed .nav-group .nav-row {
    margin:5px 6px;
}

html.ticketme-side-collapsed .nav-icon {
    width:24px;
    height:24px;
    flex-basis:24px;
}

html.ticketme-side-collapsed .nav-icon i {
    font-size:16px;
}

html.ticketme-side-collapsed .side-logout {
    margin:16px 0 4px;
    padding-top:14px;
}

html.ticketme-side-collapsed .side-logout__button {
    width:46px;
    min-height:46px;
    margin:0 auto;
    padding:0;
    justify-content:center;
}

html.ticketme-side-collapsed .side-logout__label {
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip:rect(0 0 0 0);
    white-space:nowrap;
}

.main {
    min-width:0;
    display:flex;
    flex-direction:column;
}

.top {
    min-height:78px;
    background:rgba(255,255,255,.94);
    border-bottom:1px solid var(--line);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:0 30px;
}

.top h1 {
    margin:0;
    font-size:28px;
    line-height:1.15;
    letter-spacing:0;
}

.top p {
    margin:4px 0 0;
    color:var(--muted);
    font-weight:700;
}

.content {
    width:100%;
    max-width:1560px;
    padding:24px 30px 42px;
}

.card {
    background:var(--panel);
    border:1px solid var(--line);
    border-radius:8px;
    padding:18px;
    box-shadow:var(--shadow);
}

.notice {
    border-radius:8px;
    padding:13px 15px;
    margin-bottom:12px;
    font-weight:750;
}

.notice.warning { border:1px solid #f4c46d; background:#fff8e7; color:#7a4412; }
.notice.error { border:1px solid #f2b5b0; background:#fff3f2; color:#8f2820; }
.notice.success { border:1px solid #9dd9bc; background:#effaf4; color:#116241; }

label {
    display:block;
    margin-bottom:7px;
    font-weight:850;
    color:#26364a;
}

input[type=text],
input[type=search],
input[type=email],
input[type=password],
input[type=date],
input[type=time],
input[type=number],
input.text,
select {
    width:100%;
    min-height:44px;
    border:1px solid #c8d5e3;
    border-radius:8px;
    padding:10px 12px;
    font:inherit;
    line-height:1.25;
    color:var(--ink);
    background:#fff;
    outline:none;
    appearance:none;
    -webkit-appearance:none;
}

input:focus,
select:focus,
input.text:focus {
    border-color:var(--primary);
    box-shadow:0 0 0 3px rgba(21,111,170,.14);
}

/* Shared vector chooser: the native select keeps form and legacy onchange semantics. */
.carrier-logo-select {
    position:relative;
    width:100%;
    min-width:0;
}

.carrier-logo-select__native {
    position:absolute !important;
    inline-size:1px !important;
    block-size:1px !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    opacity:0 !important;
    pointer-events:none !important;
}

.carrier-logo-select__trigger {
    width:100%;
    min-height:54px;
    border:1px solid #c8d5e3;
    border-radius:8px;
    padding:7px 12px 7px 8px;
    background:#fff;
    color:var(--ink);
    font:inherit;
    text-align:left;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    cursor:pointer;
}

.carrier-logo-select__trigger:hover {
    border-color:#9eb7cb;
    background:#fbfdff;
}

.carrier-logo-select__trigger:focus-visible,
.carrier-logo-select.is-open .carrier-logo-select__trigger {
    border-color:var(--primary);
    box-shadow:0 0 0 3px rgba(21,111,170,.14);
    outline:none;
}

.carrier-logo-select__trigger[aria-invalid="true"] {
    border-color:#bf3830;
    box-shadow:0 0 0 3px rgba(191,56,48,.13);
}

.carrier-logo-select__trigger:disabled {
    cursor:not-allowed;
    opacity:.65;
    background:#edf2f6;
}

.carrier-logo-select__selection {
    min-width:0;
    display:flex;
    align-items:center;
    gap:10px;
}

.carrier-logo-select__selected-label {
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-weight:750;
}

.carrier-logo-select__trigger.is-placeholder,
.carrier-logo-select__trigger .is-placeholder {
    color:var(--muted);
}

.carrier-logo-select__chevron {
    flex:0 0 auto;
    color:#587087;
    font-size:12px;
    transition:transform .18s ease;
}

.carrier-logo-select.is-open .carrier-logo-select__chevron {
    transform:rotate(180deg);
}

.carrier-logo-select__logo {
    width:96px;
    height:46px;
    flex:0 0 96px;
    border:1px solid #d5e2ed;
    border-radius:8px;
    background:#f2f7fb;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    color:#315b7d;
}

.carrier-logo-select__logo img {
    display:block;
    width:auto;
    height:auto;
    max-width:100%;
    max-height:100%;
    padding:4px;
    object-fit:contain;
    box-sizing:border-box;
    background:#fff;
}

.carrier-logo-select__logo.has-image .carrier-logo-select__logo-fallback {
    display:none;
}

.carrier-logo-select__logo-fallback {
    display:flex;
    align-items:center;
    justify-content:center;
}

.carrier-logo-select__logo--compact {
    width:54px;
    height:32px;
    flex-basis:54px;
    margin-left:-8px;
    border-radius:7px;
    box-shadow:0 0 0 2px #fff;
}

.carrier-logo-select__logo-stack {
    display:flex;
    align-items:center;
    padding-left:8px;
}

.carrier-logo-select__menu {
    position:absolute;
    z-index:180;
    top:calc(100% + 6px);
    left:0;
    right:0;
    display:none;
    border:1px solid #c8d9e7;
    border-radius:12px;
    background:#fff;
    box-shadow:0 18px 40px rgba(15,43,67,.2);
    overflow:hidden;
}

.carrier-logo-select.is-open .carrier-logo-select__menu {
    display:block;
}

.carrier-logo-select.opens-above .carrier-logo-select__menu {
    top:auto;
    bottom:calc(100% + 6px);
}

.carrier-logo-select__search-wrap {
    position:relative;
    padding:9px;
    border-bottom:1px solid #e3ebf2;
    background:#f7fafc;
}

.carrier-logo-select__search-wrap > i {
    position:absolute;
    left:22px;
    top:50%;
    transform:translateY(-50%);
    color:#60788e;
    pointer-events:none;
}

.carrier-logo-select__search {
    min-height:40px !important;
    padding-left:38px !important;
    background:#fff !important;
}

.carrier-logo-select__options {
    max-height:300px;
    overflow:auto;
    overscroll-behavior:contain;
}

.carrier-logo-select__option {
    width:100%;
    min-height:60px;
    border:0;
    border-bottom:1px solid #edf2f6;
    padding:7px 10px;
    background:#fff;
    color:var(--ink);
    font:inherit;
    font-weight:750;
    text-align:left;
    display:flex;
    align-items:center;
    gap:10px;
    cursor:pointer;
}

.carrier-logo-select__option:last-child {
    border-bottom:0;
}

.carrier-logo-select__option:hover,
.carrier-logo-select__option:focus-visible {
    background:#eaf5fc;
    outline:none;
}

.carrier-logo-select__option.is-selected {
    background:#dfeffc;
    color:#123f62;
}

.carrier-logo-select__option:disabled {
    cursor:not-allowed;
    opacity:.55;
}

.carrier-logo-select__check {
    width:22px;
    height:22px;
    flex:0 0 22px;
    border:1px solid #b8cad8;
    border-radius:6px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    background:#fff;
    font-size:12px;
}

.carrier-logo-select__option.is-selected .carrier-logo-select__check {
    border-color:var(--primary);
    background:var(--primary);
}

.carrier-logo-select__empty {
    padding:16px;
    color:var(--muted);
    text-align:center;
}

@media (max-width:700px) {
    .carrier-logo-select__logo {
        width:76px;
        height:40px;
        flex-basis:76px;
    }

    .carrier-logo-select__menu {
        min-width:min(100%, 320px);
    }
}

/* Shared searchable chooser for ordinary TicketME select fields. */
.ticketme-select-autocomplete {
    position:relative;
    width:100%;
    min-width:0;
}

.ticketme-select-autocomplete__native {
    position:absolute !important;
    inline-size:1px !important;
    block-size:1px !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    opacity:0 !important;
    pointer-events:none !important;
}

.ticketme-select-autocomplete__trigger {
    width:100%;
    min-height:44px;
    border:1px solid #c8d5e3;
    border-radius:8px;
    padding:9px 12px;
    background:#fff;
    color:var(--ink);
    font:inherit;
    text-align:left;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    cursor:pointer;
}

.ticketme-select-autocomplete__trigger:hover {
    border-color:#9eb7cb;
    background:#fbfdff;
}

.ticketme-select-autocomplete__trigger:focus-visible,
.ticketme-select-autocomplete.is-open .ticketme-select-autocomplete__trigger {
    border-color:var(--primary);
    box-shadow:0 0 0 3px rgba(21,111,170,.14);
    outline:none;
}

.ticketme-select-autocomplete__trigger[aria-invalid="true"] {
    border-color:#bf3830;
    box-shadow:0 0 0 3px rgba(191,56,48,.13);
}

.ticketme-select-autocomplete__trigger:disabled {
    cursor:not-allowed;
    opacity:.65;
    background:#edf2f6;
}

.ticketme-select-autocomplete__selection {
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-weight:750;
}

.ticketme-select-autocomplete__trigger.is-placeholder {
    color:var(--muted);
}

.ticketme-select-autocomplete__chevron {
    flex:0 0 auto;
    color:#587087;
    font-size:12px;
    transition:transform .18s ease;
}

.ticketme-select-autocomplete.is-open .ticketme-select-autocomplete__chevron {
    transform:rotate(180deg);
}

.ticketme-select-autocomplete__menu {
    position:absolute;
    z-index:185;
    top:calc(100% + 6px);
    left:0;
    right:0;
    display:none;
    min-width:min(100%,320px);
    border:1px solid #c8d9e7;
    border-radius:12px;
    background:#fff;
    box-shadow:0 18px 40px rgba(15,43,67,.2);
    overflow:hidden;
}

.ticketme-select-autocomplete.is-open .ticketme-select-autocomplete__menu {
    display:block;
}

.ticketme-select-autocomplete.opens-above .ticketme-select-autocomplete__menu {
    top:auto;
    bottom:calc(100% + 6px);
}

.ticketme-select-autocomplete__search-wrap {
    position:relative;
    padding:9px;
    border-bottom:1px solid #e3ebf2;
    background:#f7fafc;
}

.ticketme-select-autocomplete__search-wrap > i {
    position:absolute;
    left:22px;
    top:50%;
    transform:translateY(-50%);
    color:#60788e;
    pointer-events:none;
}

.ticketme-select-autocomplete__search {
    min-height:40px !important;
    padding-left:38px !important;
    background:#fff !important;
}

.ticketme-select-autocomplete__options {
    max-height:320px;
    overflow:auto;
    overscroll-behavior:contain;
}

.ticketme-select-autocomplete__option {
    width:100%;
    min-height:44px;
    border:0;
    border-bottom:1px solid #edf2f6;
    padding:9px 12px;
    background:#fff;
    color:var(--ink);
    font:inherit;
    font-weight:750;
    text-align:left;
    display:flex;
    align-items:center;
    gap:10px;
    cursor:pointer;
}

.ticketme-select-autocomplete__option:last-child {
    border-bottom:0;
}

.ticketme-select-autocomplete__option:hover,
.ticketme-select-autocomplete__option:focus-visible {
    background:#eaf5fc;
    outline:none;
}

.ticketme-select-autocomplete__option.is-selected {
    background:#dfeffc;
    color:#123f62;
}

.ticketme-select-autocomplete__option:disabled {
    cursor:not-allowed;
    opacity:.55;
}

.ticketme-select-autocomplete__option-copy {
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:2px;
}

.ticketme-select-autocomplete__option-copy > span {
    overflow-wrap:anywhere;
}

.ticketme-select-autocomplete__option-copy small {
    color:var(--muted);
    font-size:12px;
}

.ticketme-select-autocomplete__check {
    width:22px;
    height:22px;
    flex:0 0 22px;
    border:1px solid #b8cad8;
    border-radius:6px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    background:#fff;
    font-size:12px;
}

.ticketme-select-autocomplete__option.is-selected .ticketme-select-autocomplete__check {
    border-color:var(--primary);
    background:var(--primary);
}

.ticketme-select-autocomplete__empty {
    padding:16px;
    color:var(--muted);
    text-align:center;
}

.lines-search-form {
    display:grid;
    grid-template-columns:minmax(320px, 1fr) auto;
    gap:14px 12px;
    align-items:end;
}

.lines-search-form label {
    display:block;
    margin-bottom:6px;
}

.lines-search-vector {
    grid-column:1 / -1;
    width:min(100%, 720px);
}

.lines-search-query {
    min-width:0;
}

.lines-search-actions {
    display:flex;
    align-items:center;
    gap:10px;
}

@media (max-width:850px) {
    .lines-search-form {
        grid-template-columns:1fr;
    }

    .lines-search-vector,
    .lines-search-query,
    .lines-search-actions {
        grid-column:1;
        width:100%;
    }

    .lines-search-actions {
        flex-wrap:wrap;
    }
}

.autocomplete {
    position:relative;
}

.autocomplete-menu {
    position:absolute;
    z-index:40;
    top:calc(100% + 5px);
    left:0;
    right:0;
    display:none;
    max-height:260px;
    overflow-y:auto;
    border:1px solid var(--line);
    border-radius:8px;
    background:#fff;
    box-shadow:0 16px 34px rgba(15,37,58,.16);
}

.autocomplete.open .autocomplete-menu {
    display:block;
}

.autocomplete-option {
    width:100%;
    border:0;
    border-bottom:1px solid #eef3f7;
    background:#fff;
    color:var(--ink);
    padding:10px 12px;
    text-align:left;
    font:inherit;
    cursor:pointer;
}

.autocomplete-option:hover {
    background:#e8f4fb;
}

.autocomplete-option small {
    display:block;
    margin-top:3px;
    color:var(--muted);
}

.autocomplete-empty {
    padding:11px 12px;
    color:var(--muted);
    font-size:14px;
}

.btn {
    min-height:40px;
    border:1px solid transparent;
    border-radius:8px;
    padding:9px 13px;
    background:var(--primary);
    color:#fff;
    font:inherit;
    font-weight:850;
    cursor:pointer;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    white-space:nowrap;
}

.btn:hover { background:var(--primary-strong); }
.btn.gray { background:#e8eef5; color:#18263a; border-color:#d6e0ea; }
.btn.gray:hover { background:#dce6ef; }
.btn.danger { background:#b23b30; color:#fff; border-color:#9d3028; }
.btn.danger:hover { background:#982f27; }
.btn.icon { width:38px; padding:0; }
.table-edit-action {
    width:46px;
    height:46px;
    padding:0;
    border-radius:12px;
    border:1px solid #cfdbe8;
    background:#eaf1f8;
    color:#16263b;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    box-shadow:0 1px 0 rgba(15,37,58,.04);
    transition:background .15s ease, border-color .15s ease, transform .15s ease;
    cursor:pointer;
}
.table-edit-action:hover {
    background:#dde9f4;
    border-color:#bdd0e2;
    transform:translateY(-1px);
}
.table-delete-action {
    width:46px;
    height:46px;
    border-radius:12px;
    border:1px solid #f0b9b3;
    background:#fdecea;
    color:#a12f25;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    box-shadow:0 1px 0 rgba(58,15,15,.04);
    transition:background .15s ease, border-color .15s ease, transform .15s ease;
    cursor:pointer;
}
.table-delete-action:hover {
    background:#f9d9d5;
    border-color:#e59f97;
    transform:translateY(-1px);
}
.table-edit-action svg,
.table-delete-action svg {
    width:24px;
    height:24px;
    fill:none;
    stroke:currentColor;
    stroke-width:2.4;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.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;
}
.button { min-height:40px; border:1px solid transparent; border-radius:8px; padding:9px 13px; background:var(--primary); color:#fff; font:inherit; font-weight:850; cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; gap:8px; white-space:nowrap; }
.button:hover { background:var(--primary-strong); }
.button.secondary { background:#e8eef5; color:#18263a; border-color:#d6e0ea; }
.button.secondary:hover { background:#dce6ef; }
.button.danger { background:#b23b30; color:#fff; }
.button.danger:hover { background:#982f27; }
.button.logout-button,
.btn.logout-button {
    background:#b23b30;
    color:#fff;
    border-color:#9d3028;
}
.button.logout-button:hover,
.btn.logout-button:hover {
    background:#982f27;
}
.runs-search-form,
.runs-search-row {
    display:grid;
    gap:12px;
}
.runs-search-form {
    grid-template-columns:1fr;
}
.runs-search-row {
    align-items:end;
}
.runs-search-row--carrier,
.runs-search-row--search {
    grid-template-columns:1fr;
}
.runs-search-row--route {
    grid-template-columns:minmax(360px, 1.5fr) minmax(220px, .9fr);
}
.runs-search-row--scenario {
    grid-template-columns:minmax(190px, .55fr) minmax(360px, 1.45fr);
    align-items:start;
}
.runs-search-row--filters {
    grid-template-columns:repeat(3, minmax(220px, 1fr));
}
.runs-search-scope {
    display:block;
    margin-top:6px;
    color:var(--muted);
}
.runs-search-actions {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:end;
}
.runs-search-actions--separate {
    width:100%;
    margin-top:2px;
}
.runs-search-form .button:disabled {
    cursor:not-allowed;
    opacity:.5;
}
.runs-search-form input:disabled {
    cursor:not-allowed;
    background:#f1f5f9;
    color:#6b7b8f;
}
.runs-route-required {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:14px;
    min-height:150px;
    margin-top:16px;
    border:1px dashed #b8cee0;
    border-radius:16px;
    background:linear-gradient(135deg, #f7fbff 0%, #edf5fb 100%);
    color:#284b69;
    text-align:left;
}
.runs-route-required > i {
    display:grid;
    place-items:center;
    width:48px;
    height:48px;
    border-radius:14px;
    background:#dcecf8;
    color:#176895;
    font-size:20px;
}
.runs-route-required strong,
.runs-route-required span {
    display:block;
}
.runs-route-required strong {
    font-size:18px;
}
.runs-route-required span {
    margin-top:3px;
    color:var(--muted);
}
.run-actions-cell {
    white-space:nowrap;
    vertical-align:middle;
}
.run-actions-cell > .table-edit-action,
.run-actions-cell > .run-instances-action {
    vertical-align:middle;
}
.run-associated-summary {
    min-width:230px;
    white-space:nowrap;
}
.run-associated-summary > strong,
.run-associated-summary > span,
.run-associated-summary > small {
    display:block;
}
.run-associated-summary > span,
.run-associated-summary > small {
    margin-top:3px;
    color:var(--muted);
}
.run-associated-summary--empty {
    color:#a75a13;
}
.run-model-child {
    display:inline-flex;
    align-items:center;
    min-height:28px;
    padding:3px 9px;
    border-radius:999px;
    background:#eef2f6;
    color:#66758a;
    font-size:12px;
    font-weight:800;
}
.run-explosion-checkbox {
    width:20px;
    height:20px;
    accent-color:var(--primary);
    cursor:pointer;
}
.run-plan-cell {
    min-width:118px;
    text-align:center;
    white-space:nowrap;
}
.run-plan-cell > * {
    vertical-align:middle;
}
.run-plan-single-action {
    width:34px;
    height:34px;
    margin-left:8px;
    border:1px solid #a9c9e6;
    border-radius:10px;
    background:#e8f3fd;
    color:#145f96;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
}
.run-plan-single-action:hover,
.run-plan-single-action:focus-visible {
    border-color:#1779b8;
    background:#d8ebfb;
    color:#0c4e7d;
}
.run-planning-panel {
    margin-top:22px;
    padding:20px;
    border:1px solid #c9daeb;
    border-left:5px solid var(--primary);
    border-radius:14px;
    background:linear-gradient(135deg, #f8fbfe 0%, #eef6fd 100%);
}
.run-planning-panel--single {
    border-left-color:#13866f;
    background:linear-gradient(135deg, #f8fcfb 0%, #eaf7f3 100%);
}
.run-planning-heading {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
}
.run-planning-heading h2 {
    margin:0;
}
.run-planning-heading p {
    margin:6px 0 0;
    color:var(--muted);
}
.run-planning-selection-actions {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}
.run-planning-fields {
    display:grid;
    grid-template-columns:minmax(170px, 220px) minmax(170px, 220px) auto;
    align-items:end;
    gap:12px;
    margin-top:18px;
}
.run-planning-fields label {
    display:block;
    margin-bottom:6px;
}
.run-planning-mode {
    display:grid;
    grid-template-columns:repeat(2, minmax(240px, 1fr));
    gap:12px;
    margin:18px 0 0;
    padding:14px;
    border:1px solid #c9daeb;
    border-radius:12px;
}
.run-planning-mode legend {
    padding:0 7px;
    font-weight:850;
}
.run-planning-mode-option {
    display:flex;
    align-items:flex-start;
    gap:10px;
    min-height:72px;
    padding:13px;
    border:1px solid #c9daeb;
    border-radius:12px;
    background:#fff;
    cursor:pointer;
}
.run-planning-mode-option input {
    width:20px;
    height:20px;
    margin-top:2px;
    accent-color:var(--primary);
}
.run-planning-mode-option strong,
.run-planning-mode-option small {
    display:block;
}
.run-planning-mode-option small {
    margin-top:4px;
    color:var(--muted);
}
.run-planning-mode-panel {
    margin-top:14px;
    padding:14px;
    border:1px solid #c9daeb;
    border-radius:12px;
    background:rgba(255,255,255,.8);
}
.run-cadence-title {
    margin-bottom:10px;
    font-weight:850;
}
.run-cadence-table-wrap {
    overflow-x:auto;
}
.run-cadence-table {
    min-width:760px;
}
.run-cadence-table th,
.run-cadence-table td {
    padding:9px 10px;
    text-align:center;
    white-space:nowrap;
}
.run-free-days {
    display:grid;
    grid-template-columns:repeat(4, minmax(130px, 1fr));
    gap:10px;
}
.run-free-days-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:12px;
}
.run-free-days-heading > div {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}
.run-free-days-heading .button {
    min-height:38px;
    padding:8px 12px;
}
.run-free-days label {
    display:flex;
    align-items:center;
    gap:8px;
    min-height:46px;
    padding:9px 12px;
    border:1px solid #c9daeb;
    border-radius:10px;
    background:#fff;
    font-weight:750;
    cursor:pointer;
}
.run-free-days input {
    width:19px;
    height:19px;
    accent-color:var(--primary);
}
.run-free-days__holiday {
    border-color:#e2b96b !important;
    background:#fff8e8 !important;
}
.run-search-autocomplete .autocomplete-menu {
    max-height:340px;
    border-radius:14px;
}
.run-search-autocomplete .autocomplete-option {
    padding:12px 14px;
}
.run-search-autocomplete .autocomplete-option strong {
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.run-search-autocomplete .autocomplete-option.active,
.run-search-autocomplete .autocomplete-option:hover {
    background:#dceeff;
}
.stops-search-form {
    display:grid;
    grid-template-columns:1fr;
    gap:14px;
}
.stops-search-fields {
    display:grid;
    grid-template-columns:minmax(320px, 1fr) repeat(3, minmax(150px, 180px));
    gap:12px;
    align-items:end;
}
.stops-search-query {
    min-width:0;
}
.stops-search-actions {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:center;
}
.buses-search-form {
    display:grid;
    grid-template-columns:1fr;
    gap:14px;
}
.buses-carrier-row {
    display:grid;
    grid-template-columns:minmax(300px, 720px);
    gap:12px;
}
.buses-search-fields {
    display:grid;
    grid-template-columns:repeat(4, minmax(170px, 1fr));
    gap:12px;
    align-items:end;
}
.buses-search-query {
    min-width:0;
}
.buses-search-actions {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:center;
}
.buses-maintenance-warning {
    margin-top:18px;
    padding:16px;
    border:1px solid #e1a237;
    border-radius:14px;
    background:#fff5dd;
    color:#684004;
}
.buses-maintenance-warning h2 {
    margin:0 0 4px;
    color:#9a4d00;
    font-size:20px;
}
.buses-maintenance-warning p {
    margin:0 0 12px;
}
.buses-maintenance-warning table {
    min-width:720px;
    background:#fff;
}
.line-small-fields {
    display:grid;
    grid-template-columns:minmax(130px, 170px) minmax(108px, 130px) minmax(190px, 230px);
    gap:10px;
    align-items:end;
    justify-content:start;
    margin-top:10px;
}
.line-small-field { min-width:0; }
.line-check-pill {
    min-height:42px;
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:0 12px;
    border:1px solid #c8d5e3;
    border-radius:12px;
    background:#f7fbff;
    color:var(--ink);
    font-weight:800;
}
.line-stops-section {
    margin-top:24px;
    padding-top:22px;
    border-top:1px solid #d7e2ed;
}
.line-stops-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:14px;
}
.line-stops-heading h3 {
    margin:0 0 4px;
    font-size:1.2rem;
}
.line-route-map-card {
    margin:0 0 18px;
    padding:14px;
    border:1px solid #c9dce9;
    border-radius:16px;
    background:linear-gradient(145deg, #f7fbfe, #edf6fc);
    box-shadow:0 10px 24px rgba(16, 59, 91, .08);
}
.line-route-map-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin-bottom:12px;
}
.line-route-map-heading h4 {
    margin:0;
    color:var(--nav);
    font-size:1.05rem;
}
.line-route-map-heading p {
    margin:4px 0 0;
    color:var(--muted);
    font-size:.9rem;
}
.line-route-map {
    width:100%;
    height:440px;
    overflow:hidden;
    border:1px solid #b9cfdf;
    border-radius:13px;
    background:#dfeaf2;
}
.line-route-map-marker-shell {
    border:0;
    background:transparent;
}
.line-route-map-marker {
    width:32px;
    height:32px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:3px solid #fff;
    border-radius:50%;
    color:#fff;
    background:#176da3;
    font-size:12px;
    font-weight:950;
    box-shadow:0 3px 9px rgba(10, 39, 60, .35);
}
.line-route-map-marker--start { background:#16824c; }
.line-route-map-marker--end { background:#b4372e; }
.line-endpoints-map-card {
    margin:14px 0 18px;
    padding:14px;
    border:1px solid #c9dce9;
    border-radius:16px;
    background:linear-gradient(145deg, #f7fbfe, #edf6fc);
    box-shadow:0 10px 24px rgba(16, 59, 91, .08);
}
.line-endpoints-map {
    height:300px;
}
.line-endpoints-map-empty {
    margin:0;
}
.line-endpoints-map-legend {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:12px;
    color:#405d76;
    font-size:.88rem;
    font-weight:800;
}
.line-endpoints-map-legend span {
    display:inline-flex;
    align-items:center;
    gap:6px;
}
.line-endpoints-map-dot {
    width:12px;
    height:12px;
    display:inline-block;
    border:2px solid #fff;
    border-radius:50%;
    box-shadow:0 0 0 1px rgba(17, 52, 78, .2);
}
.line-endpoints-map-dot--start { background:#16824c; }
.line-endpoints-map-dot--end { background:#b4372e; }
.run-route-map-marker-shell {
    border:0;
    background:transparent;
}
.run-route-map-marker {
    min-width:86px;
    height:38px;
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:3px 7px 3px 3px;
    border:2px solid #fff;
    border-radius:999px;
    color:#fff;
    background:#125f8e;
    box-shadow:0 4px 12px rgba(10, 39, 60, .38);
    white-space:nowrap;
}
.run-route-map-marker--start { background:#15764a; }
.run-route-map-marker--end { background:#a9322c; }
.run-route-map-marker-order {
    width:28px;
    height:28px;
    display:inline-flex;
    flex:0 0 28px;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    color:#103451;
    background:#fff;
    font-size:11px;
    font-weight:950;
}
.run-route-map-marker-time {
    font-size:12px;
    font-variant-numeric:tabular-nums;
    font-weight:900;
    letter-spacing:.01em;
}
.run-route-map-marker-direction {
    min-width:27px;
    height:25px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:2px;
    padding:0 6px;
    border-radius:999px;
    color:#123f61;
    background:rgba(255,255,255,.94);
    font-size:10px;
    line-height:1;
}
.run-route-map-marker-next-day {
    width:25px;
    height:25px;
    display:inline-flex;
    flex:0 0 25px;
    align-items:center;
    justify-content:center;
    border:2px solid rgba(255,255,255,.9);
    border-radius:50%;
    color:#6b3d00;
    background:#ffd36b;
    font-size:10px;
    font-weight:950;
    box-shadow:0 2px 6px rgba(46, 27, 0, .2);
}
.run-route-map-popup-direction {
    display:flex;
    align-items:center;
    gap:5px;
    margin-top:6px;
    color:#174e77;
    font-weight:800;
}
.run-route-map-popup-direction i + i {
    margin-left:-2px;
}
.stop-direction {
    min-width:38px;
    min-height:34px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:4px;
    padding:6px 9px;
    border:1px solid #c9d9e8;
    border-radius:999px;
    color:#174e77;
    background:#edf6fc;
    font-size:.9rem;
    line-height:1;
}
.stop-direction--boarding {
    color:#146a42;
    border-color:#addbc4;
    background:#eaf8f0;
}
.stop-direction--alighting {
    color:#a04424;
    border-color:#efc0ad;
    background:#fff1eb;
}
.line-route-map-missing {
    margin:10px 2px 0;
    color:#6b5b2b;
    font-size:.88rem;
    font-weight:700;
}
.line-route-map-missing i { margin-right:5px; }
.line-route-map-empty {
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:16px;
    padding:16px;
    border:1px dashed #bdcddd;
    border-radius:14px;
    color:var(--muted);
    background:#f7fbff;
}
@media (max-width:850px) {
    .line-route-map-heading {
        align-items:flex-start;
        flex-direction:column;
    }
    .line-route-map { height:360px; }
    .line-endpoints-map { height:300px; }
}
.line-stops-table-wrap {
    overflow-x:auto;
    border:1px solid #d7e2ed;
    border-radius:14px;
}
.line-stops-sort-help {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:9px;
    margin-bottom:10px;
    color:#536b83;
    font-size:.92rem;
}
.line-stops-sort-help > i {
    color:#1f78b4;
}
.line-stops-sort-help strong {
    color:#9a5a00;
}
.line-stops-table {
    min-width:760px;
    width:100%;
    table-layout:fixed;
    margin:0;
}
.line-stop-position-column,
.line-stop-position-heading,
.line-stop-position-cell {
    width:92px;
    text-align:center;
}
.line-stop-actions-column {
    width:166px;
}
.line-stop-sortable-row {
    transition:background-color .16s ease, opacity .16s ease, transform .16s ease;
}
.line-stop-sortable-row.is-dragging {
    background:#e2f1fb;
    opacity:.62;
}
.line-stop-actions-cell {
    width:166px;
    text-align:center;
}
.line-stop-actions {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
}
.line-stop-drag-handle,
.line-stop-move-button,
.line-stop-delete-button {
    width:42px;
    height:42px;
    border-radius:12px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    font-size:1rem;
}
.line-stop-drag-handle {
    border:1px solid #b9d4e8;
    background:#eaf5fc;
    color:#175d8d;
    cursor:grab;
}
.line-stop-drag-handle:active {
    cursor:grabbing;
}
.line-stop-drag-handle:hover,
.line-stop-drag-handle:focus-visible {
    background:#1f78b4;
    border-color:#1f78b4;
    color:#fff;
}
.line-stop-move-button {
    border:1px solid #cad8e5;
    background:#f2f7fb;
    color:#284d6f;
}
.line-stop-move-button:hover:not(:disabled),
.line-stop-move-button:focus-visible:not(:disabled) {
    background:#dbeaf6;
    border-color:#9fc2dc;
}
.line-stop-move-button:disabled {
    cursor:not-allowed;
    opacity:.35;
}
.line-stop-delete-button {
    border:1px solid #f2b8b3;
    background:#fff1ef;
    color:#ad2b24;
}
.line-stop-delete-button:hover {
    background:#b23b30;
    border-color:#b23b30;
    color:#fff;
}
.line-stops-empty {
    padding:18px;
    border:1px dashed #bdcddd;
    border-radius:14px;
    background:#f7fbff;
    color:var(--muted);
}
.line-stop-add-form {
    display:grid;
    grid-template-columns:minmax(300px, 1fr) minmax(260px, 420px) auto;
    gap:12px;
    align-items:end;
    margin-top:18px;
    padding:16px;
    border:1px solid #cfe0ee;
    border-radius:14px;
    background:#f5faff;
}
.action-link { display:inline-flex; gap:8px; align-items:center; color:var(--primary); font-weight:800; text-decoration:none; }
.action-link:hover { color:var(--primary-strong); text-decoration:underline; }
.badge { display:inline-flex; align-items:center; gap:8px; background:#d7ebfb; color:#1f4f7a; border-radius:999px; padding:8px 12px; font-weight:800; }

.segmented {
    display:inline-flex;
    align-items:center;
    gap:4px;
    padding:4px;
    border:1px solid #cfdcea;
    border-radius:12px;
    background:#edf3f9;
}

.segment-link {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:34px;
    padding:7px 14px;
    border-radius:8px;
    color:#31455d;
    font-weight:800;
    text-decoration:none;
    transition:background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.segment-link:hover {
    background:#e1ebf5;
    color:#1c2e43;
}

.segment-link.active {
    background:#ffffff;
    color:#0f253a;
    box-shadow:0 1px 4px rgba(15,37,58,.18);
}

textarea.text { width:100%; border:1px solid #c8d5e3; border-radius:8px; padding:10px 12px; font:inherit; line-height:1.25; color:var(--ink); background:#fff; outline:none; }
textarea.text:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(21,111,170,.14); }

.toolbar {
    display:grid;
    grid-template-columns:minmax(220px, 1.2fr) minmax(220px, 1fr) minmax(180px, .8fr) auto;
    gap:12px;
    align-items:end;
}

.table-wrap {
    overflow:auto;
    border:1px solid var(--line);
    border-radius:8px;
    background:#fff;
}

table {
    width:100%;
    border-collapse:separate;
    border-spacing:0;
}

th,
td {
    text-align:left;
    border-bottom:1px solid var(--line);
    padding:12px 13px;
    vertical-align:middle;
}

th {
    position:sticky;
    top:0;
    z-index:1;
    background:var(--nav);
    text-transform:uppercase;
    font-size:12px;
    color:#ffffff;
    letter-spacing:.04em;
}

th a {
    color:inherit;
    text-decoration:none;
}

th a:hover {
    color:var(--accent-2);
}

th.sortable {
    cursor:pointer;
}

.table-sort-trigger {
    display:inline-flex;
    align-items:center;
    gap:6px;
    width:100%;
    padding:0;
    border:0;
    background:transparent;
    color:inherit;
    font:inherit;
    text-transform:inherit;
    letter-spacing:inherit;
    cursor:pointer;
}

th.sortable .table-sort-trigger::after {
    content:'↕';
    font-size:11px;
    line-height:1;
    color:rgba(255,255,255,.72);
}

th.sortable.sorted-asc .table-sort-trigger::after {
    content:'↑';
    color:var(--accent-2);
}

th.sortable.sorted-desc .table-sort-trigger::after {
    content:'↓';
    color:var(--accent-2);
}

tbody tr:hover { background:#f8fbff; }
tbody tr:last-child td { border-bottom:0; }

.form-grid {
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:13px;
    align-items:end;
}

.rule-trigger-field {
    max-width:190px;
}

.compact-number-control {
    display:inline-flex;
    align-items:center;
    min-height:44px;
    max-width:168px;
    border:1px solid #c8d5e3;
    border-radius:12px;
    background:#fff;
    overflow:hidden;
    box-shadow:inset 0 1px 0 rgba(15,37,58,.03);
}

.compact-number-control:focus-within {
    border-color:var(--primary);
    box-shadow:0 0 0 3px rgba(21,111,170,.14);
}

.compact-number-control input[type=number] {
    width:72px;
    min-height:42px;
    border:0;
    border-radius:0;
    padding:8px 6px 8px 12px;
    text-align:center;
    font-weight:900;
    box-shadow:none;
    appearance:textfield;
    -moz-appearance:textfield;
}

.compact-number-control input[type=number]::-webkit-inner-spin-button,
.compact-number-control input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance:none;
    margin:0;
}

.compact-number-control span {
    align-self:stretch;
    display:inline-flex;
    align-items:center;
    padding:0 12px;
    border-left:1px solid #dce6ef;
    background:#f3f8fd;
    color:var(--muted);
    font-size:13px;
    font-weight:850;
}

.shift-km-fieldset {
    margin:14px 0 0;
    padding:16px 14px 14px;
    border:5px solid var(--primary);
    border-radius:16px;
    background:linear-gradient(135deg, #f7fbff 0%, #ffffff 58%, #eef7ff 100%);
    box-shadow:0 10px 26px rgba(18, 50, 80, .06);
}

.shift-km-fieldset legend {
    padding:4px 12px;
    border:1px solid #cdddea;
    border-radius:999px;
    background:#fff;
    color:var(--ink);
    font-weight:900;
    font-size:18px;
    line-height:1.1;
}

.shift-km-grid {
    display:grid;
    grid-template-columns:repeat(3, minmax(154px, 174px));
    justify-content:start;
    align-items:end;
    gap:12px;
}

.shift-km-field label {
    margin-bottom:6px;
    color:#425a73;
    font-size:12px;
    font-weight:900;
    letter-spacing:.01em;
}

.shift-km-input {
    display:flex;
    align-items:center;
    width:100%;
    min-height:40px;
    border:1px solid #c8d5e3;
    border-radius:12px;
    background:#fff;
    overflow:hidden;
}

.shift-km-input:focus-within {
    border-color:var(--primary);
    box-shadow:0 0 0 3px rgba(21,111,170,.14);
}

.shift-km-input input {
    width:100%;
    min-width:0;
    min-height:38px;
    border:0;
    border-radius:0;
    padding:8px 7px 8px 8px;
    text-align:right;
    font-weight:850;
    box-shadow:none;
    appearance:textfield;
    -moz-appearance:textfield;
}

.shift-km-input input::-webkit-inner-spin-button,
.shift-km-input input::-webkit-outer-spin-button {
    -webkit-appearance:none;
    margin:0;
}

.shift-km-input span {
    align-self:stretch;
    display:inline-flex;
    align-items:center;
    padding:0 7px;
    border-left:1px solid #dce6ef;
    border-radius:0 12px 12px 0;
    background:#f3f8fd;
    color:var(--muted);
    font-size:12px;
    font-weight:900;
}

.page-actions {
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}
.passenger-move-model-actions {
    gap:12px;
    margin-top:14px;
}
.passenger-move-model-actions form {
    display:inline-flex;
    margin:0;
}

.pagination {
    display:flex;
    align-items:center;
    gap:6px;
    flex-wrap:wrap;
}

.pagination .btn { min-width:38px; }

.ticketme-pagination-wrap {
    margin-top:14px;
    overflow-x:auto;
    max-width:100%;
}

.ticketme-pagination {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    align-items:center;
    justify-content:space-between;
    max-width:100%;
    font-size:.82rem;
    color:#52657a;
}

.ticketme-pagination__summary {
    white-space:nowrap;
}

.ticketme-pagination__pages {
    display:flex;
    flex-wrap:wrap;
    gap:5px;
    align-items:center;
    justify-content:flex-end;
    min-width:0;
}

.ticketme-pagination__item,
.ticketme-pagination__disabled {
    display:inline-flex;
    min-width:30px;
    height:30px;
    padding:0 8px;
    border:1px solid #c9d8e8;
    border-radius:9px;
    align-items:center;
    justify-content:center;
    background:#fff;
    color:#17324d;
    font-weight:800;
    line-height:1;
    text-decoration:none;
    box-sizing:border-box;
}

.ticketme-pagination__item:hover {
    background:#eef6ff;
    border-color:#9fc3e5;
}

.ticketme-pagination__item.is-active {
    background:#1f78b4;
    border-color:#1f78b4;
    color:#fff;
}

.ticketme-pagination__disabled {
    background:#f4f7fb;
    color:#9aa9b8;
    cursor:default;
}

.ticketme-pagination__dots {
    padding:0 4px;
    color:#7a8da1;
    font-weight:900;
}

.login-page {
    min-height:calc(100vh - 54px);
    width:100%;
    display:grid;
    grid-template-columns:minmax(0, 1fr) minmax(420px, 520px);
    background:
        linear-gradient(135deg, rgba(15,37,58,.94), rgba(21,111,170,.88)),
        radial-gradient(circle at 25% 20%, rgba(242,140,40,.45), transparent 30%),
        var(--nav);
    overflow-x:hidden;
}

.login-intro {
    padding:72px;
    color:#fff;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    position:relative;
    isolation:isolate;
    overflow:hidden;
    background:
        linear-gradient(180deg, rgba(7, 27, 46, .82) 0%, rgba(7, 27, 46, .30) 46%, rgba(7, 27, 46, .48) 100%),
        linear-gradient(90deg, rgba(9, 37, 63, .48) 0%, rgba(9, 37, 63, .08) 72%),
        url("../../branding/ticketme-login-passengers.webp") center 58% / cover no-repeat;
}

.login-intro > div {
    position:relative;
    z-index:1;
}

.login-intro h1 {
    max-width:760px;
    font-size:54px;
    line-height:1.02;
    margin:34px 0 14px;
    letter-spacing:0;
    text-shadow:0 3px 18px rgba(3, 17, 29, .34);
}

.login-intro p {
    max-width:620px;
    color:#d8e7f4;
    font-size:19px;
    line-height:1.45;
    margin:0;
    text-shadow:0 2px 12px rgba(3, 17, 29, .42);
}

.login-panel {
    background:#fff;
    padding:54px;
    display:flex;
    align-items:center;
    min-width:0;
    overflow:hidden;
}

.login-card {
    width:100%;
    max-width:430px;
    margin:0 auto;
    min-width:0;
}

.login-ecubing {
    display:block;
    width:210px;
    max-width:56%;
    margin:0 0 26px auto;
    padding:0;
    line-height:0;
    text-decoration:none;
    transition:opacity .18s ease, transform .18s ease;
}

.login-ecubing:hover {
    opacity:.82;
    transform:translateY(-1px);
}

.login-ecubing:focus-visible {
    outline:3px solid #f28c28;
    outline-offset:3px;
}

.login-ecubing__logo {
    display:block;
    width:100%;
    height:auto;
    object-fit:contain;
}

.login-card h2 {
    margin:0 0 8px;
    font-size:30px;
}

.login-card p {
    margin:0 0 24px;
    color:var(--muted);
    font-weight:700;
}

.login-version {
    display:inline-flex;
    align-items:center;
    margin:-10px 0 16px;
    padding:4px 9px;
    border-radius:999px;
    border:1px solid #d8e2ec;
    background:#f7faff;
    color:#35516e;
    font-size:12px;
    font-weight:800;
    letter-spacing:.02em;
}

.ticketme-version-hud {
    position:fixed;
    right:14px;
    bottom:14px;
    z-index:1200;
    pointer-events:none;
    display:inline-flex;
    align-items:center;
    padding:5px 10px;
    border-radius:999px;
    border:1px solid rgba(15,37,58,.14);
    background:rgba(255,255,255,.9);
    color:#27405c;
    font-size:12px;
    font-weight:800;
    letter-spacing:.02em;
    box-shadow:0 8px 18px rgba(15, 37, 58, .12);
}

.ticketme-site-footer {
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:900;
    min-height:54px;
    padding:10px 112px 10px 24px;
    border-top:3px solid var(--accent);
    background:#0b1d2e;
    color:#c8d8e8;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:5px;
    font-size:13px;
    font-weight:700;
    text-align:center;
}

.ticketme-site-footer a {
    border-radius:4px;
    color:#fff;
    font-weight:900;
    text-decoration:underline;
    text-decoration-color:rgba(255,255,255,.42);
    text-underline-offset:3px;
    transition:color .16s ease, text-decoration-color .16s ease;
}

.ticketme-site-footer a:hover {
    color:var(--accent-2);
    text-decoration-color:var(--accent-2);
}

.ticketme-site-footer a:focus-visible {
    outline:3px solid var(--accent);
    outline-offset:3px;
}

.carrier-settings-card {
    align-self:start;
    padding:0;
    overflow:hidden;
}

.carrier-settings-empty {
    padding:24px;
}

.carrier-settings-empty h2 {
    margin:0 0 10px;
}

.carrier-settings-empty p {
    margin:0;
    color:var(--muted);
    line-height:1.6;
}

.carrier-settings-heading {
    display:flex;
    align-items:center;
    gap:18px;
    padding:20px;
    color:#fff;
    background:
        radial-gradient(circle at 88% 18%, rgba(255,177,95,.24), transparent 30%),
        linear-gradient(135deg, var(--nav), #17466c);
}

.carrier-settings-identity {
    min-width:0;
}

.carrier-settings-eyebrow {
    display:block;
    margin-bottom:5px;
    color:#b9dcf3;
    font-size:12px;
    font-weight:900;
    letter-spacing:.12em;
    text-transform:uppercase;
}

.carrier-settings-identity h2 {
    margin:0;
    color:#fff;
    font-size:25px;
    line-height:1.15;
}

.carrier-settings-identity p {
    margin:7px 0 0;
    color:#dcebf6;
    font-weight:750;
}

.carrier-logo-preview {
    display:flex;
    flex:0 0 142px;
    align-items:center;
    justify-content:center;
    width:142px;
    height:96px;
    padding:10px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.35);
    border-radius:16px;
    background:rgba(255,255,255,.12);
    box-shadow:0 12px 28px rgba(4,21,36,.2);
}

.carrier-logo-preview.has-logo {
    background:#fff;
}

.carrier-logo-preview--form {
    border-color:#c4d7e7;
    background:linear-gradient(145deg, #edf6fc, #f8fbfe);
    box-shadow:0 8px 20px rgba(15, 58, 91, .1);
}

.carrier-logo-preview--form .carrier-logo-placeholder {
    color:#4b6984;
}

.carrier-logo-preview img {
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
}

.carrier-logo-placeholder {
    display:flex;
    align-items:center;
    flex-direction:column;
    gap:7px;
    color:#d8e8f4;
    text-align:center;
}

.carrier-logo-placeholder i {
    font-size:27px;
}

.carrier-logo-placeholder small {
    font-size:12px;
    font-weight:850;
}

.carrier-settings-card form[data-carrier-settings-form] {
    padding:18px;
}

.carrier-settings-stack {
    display:grid;
    gap:12px;
}

.carrier-settings-section {
    overflow:hidden;
    border:1px solid var(--line);
    border-radius:15px;
    background:#fff;
    transition:border-color .18s ease, box-shadow .18s ease;
}

.carrier-settings-section[open] {
    border-color:#bcd2e5;
    box-shadow:0 10px 26px rgba(15,37,58,.07);
}

.carrier-settings-summary {
    display:grid;
    grid-template-columns:42px minmax(0,1fr) 20px;
    align-items:center;
    gap:12px;
    min-height:70px;
    padding:12px 15px;
    cursor:pointer;
    list-style:none;
    user-select:none;
    background:linear-gradient(90deg, #f6faff, #fff);
}

.carrier-settings-summary::-webkit-details-marker {
    display:none;
}

.carrier-settings-summary:hover {
    background:#eef7ff;
}

.carrier-settings-summary:focus-visible {
    outline:3px solid rgba(21,111,170,.28);
    outline-offset:-3px;
}

.carrier-settings-icon {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    border:1px solid #c7dced;
    border-radius:12px;
    color:var(--primary-strong);
    background:#eaf5fd;
}

.carrier-settings-copy {
    display:flex;
    min-width:0;
    flex-direction:column;
    gap:3px;
}

.carrier-settings-copy strong {
    color:var(--nav);
    font-size:16px;
    line-height:1.2;
}

.carrier-settings-copy small {
    color:var(--muted);
    font-size:12px;
    font-weight:700;
    line-height:1.3;
}

.carrier-settings-chevron {
    color:#7590a8;
    transition:transform .18s ease;
}

.carrier-settings-section[open] .carrier-settings-chevron {
    transform:rotate(180deg);
}

.carrier-settings-panel {
    padding:17px;
    border-top:1px solid var(--line);
}

.carrier-logo-manager {
    display:grid;
    grid-template-columns:142px minmax(0,1fr) auto;
    align-items:center;
    gap:14px;
    margin-bottom:16px;
    padding:14px;
    border:1px dashed #b8cee0;
    border-radius:12px;
    background:#f7fbff;
}

.carrier-logo-upload {
    min-width:0;
}

.carrier-logo-input {
    display:block;
    width:100%;
    padding:7px;
    border:1px solid #c8d5e3;
    border-radius:10px;
    color:var(--ink);
    background:#fff;
}

.carrier-logo-input::file-selector-button {
    margin-right:10px;
    padding:9px 12px;
    border:0;
    border-radius:8px;
    color:#fff;
    font-weight:850;
    cursor:pointer;
    background:var(--primary);
}

.carrier-logo-input::file-selector-button:hover {
    background:var(--primary-strong);
}

.carrier-logo-remove {
    display:flex;
    align-items:center;
    gap:8px;
    min-height:44px;
    margin:0;
    padding:10px 12px;
    border:1px solid #f0c0bc;
    border-radius:10px;
    color:var(--bad);
    background:#fff5f4;
}

.carrier-logo-remove span {
    white-space:nowrap;
}

.field-help {
    display:block;
    margin-top:6px;
    color:var(--muted);
    font-size:12px;
    font-weight:650;
}

.field-error {
    margin-top:6px;
    color:var(--bad);
    font-size:12px;
    font-weight:800;
}

@media (max-width: 1100px) {
    .shell,
    html.ticketme-side-collapsed .shell { grid-template-columns:1fr; }
    .side {
        position:fixed;
        left:0;
        top:0;
        bottom:0;
        width:min(86vw, 320px);
        max-width:320px;
        height:100dvh;
        z-index:1001;
        transform:translateX(-104%);
        transition:transform .22s ease;
        border-right:1px solid rgba(255,255,255,.16);
        box-shadow:0 18px 40px rgba(6, 17, 28, .45);
    }
    html.ticketme-side-collapsed .side {
        padding:24px 18px;
        overflow:auto;
    }
    html.ticketme-side-collapsed .brand {
        justify-content:flex-start;
        margin:0 0 28px;
    }
    html.ticketme-side-collapsed .brand-mark {
        width:52px;
        height:52px;
        border-radius:12px;
    }
    html.ticketme-side-collapsed .side-ecubing {
        display:inline-flex;
        width:max-content;
        margin:-24px 0 18px;
    }
    html.ticketme-side-collapsed .side-ecubing__label {
        display:inline;
    }
    html.ticketme-side-collapsed .brand-text,
    html.ticketme-side-collapsed .brand-welcome,
    html.ticketme-side-collapsed .nav-title span:not(.nav-icon),
    html.ticketme-side-collapsed .nav-row span:not(.nav-icon) {
        position:static;
        width:auto;
        height:auto;
        overflow:visible;
        clip:auto;
        white-space:normal;
    }
    html.ticketme-side-collapsed .side-logout {
        margin:24px 0 6px;
        padding-top:18px;
    }
    html.ticketme-side-collapsed .side-logout__button {
        width:100%;
        min-height:44px;
        margin:0;
        padding:10px 13px;
        justify-content:flex-start;
    }
    html.ticketme-side-collapsed .side-logout__label {
        position:static;
        width:auto;
        height:auto;
        overflow:visible;
        clip:auto;
        white-space:normal;
    }
    .side-mobile-head { display:flex; }
    .side-collapse-toggle { display:none; }
    .side-toggle {
        display:grid;
        place-items:center;
        position:fixed;
        left:12px;
        top:12px;
        width:44px;
        height:44px;
        border-radius:10px;
        border:1px solid #c6d4e2;
        background:#fff;
        color:var(--nav);
        z-index:1002;
        cursor:pointer;
        box-shadow:0 10px 25px rgba(10,31,49,.18);
    }
    .side-toggle i { font-size:18px; }
    .side-overlay {
        display:block;
        position:fixed;
        inset:0;
        z-index:1000;
        background:rgba(8, 19, 31, .45);
        opacity:0;
        pointer-events:none;
        transition:opacity .2s ease;
    }
    body.side-open { overflow:hidden; }
    body.side-open .side { transform:translateX(0); }
    body.side-open .side-overlay {
        opacity:1;
        pointer-events:auto;
    }
    .nav { display:block; }
    .nav a { margin:0; }
    .top { padding:0 16px 0 68px; }
    .top h1 { font-size:24px; }
    .toolbar,
    .form-grid { grid-template-columns:1fr; }
    .runs-search-row--route,
    .runs-search-row--scenario,
    .runs-search-row--filters {
        grid-template-columns:1fr 1fr;
    }
    .runs-search-actions {
        grid-column:1 / -1;
    }
    .stops-search-fields {
        grid-template-columns:repeat(2, minmax(180px, 1fr));
    }
    .stops-search-query {
        grid-column:1 / -1;
    }
    .buses-search-fields {
        grid-template-columns:repeat(2, minmax(180px, 1fr));
    }
    .buses-search-query {
        grid-column:1 / -1;
    }

    .carrier-logo-manager {
        grid-template-columns:1fr;
        align-items:start;
    }

    .carrier-logo-remove {
        justify-self:start;
    }
    .shift-km-grid { grid-template-columns:repeat(2, minmax(154px, 174px)); }
    .login-page { grid-template-columns:1fr; }
    .login-intro {
        min-height:390px;
        padding:34px 24px;
        background-position:center 66%;
    }
    .login-panel { padding:32px 24px; }
    .login-intro h1 { font-size:36px; }
    .ticketme-version-hud {
        right:10px;
        bottom:10px;
        font-size:11px;
        padding:4px 9px;
    }
}

@media (max-width: 760px) {
    .runs-search-row--route,
    .runs-search-row--scenario,
    .runs-search-row--filters {
        grid-template-columns:1fr;
    }

    .runs-search-actions {
        grid-column:auto;
    }

    .run-planning-heading {
        display:block;
    }

    .run-planning-selection-actions {
        margin-top:14px;
    }

    .run-planning-fields {
        grid-template-columns:1fr;
    }

    .run-planning-mode,
    .run-free-days {
        grid-template-columns:1fr;
    }

    .run-free-days-heading {
        align-items:flex-start;
        flex-direction:column;
    }

    .stops-search-fields {
        grid-template-columns:1fr;
    }

    .stops-search-query {
        grid-column:auto;
    }

    .buses-search-fields {
        grid-template-columns:1fr;
    }

    .buses-search-query {
        grid-column:auto;
    }

    .line-small-fields {
        grid-template-columns:repeat(2, minmax(130px, 1fr));
    }

    .line-small-field--status {
        grid-column:1 / -1;
    }

    .line-stop-add-form {
        grid-template-columns:1fr 1fr;
    }

    .line-stop-add-form .button {
        grid-column:1 / -1;
        justify-self:start;
    }

    .ticketme-pagination {
        align-items:flex-start;
        flex-direction:column;
    }

    .ticketme-pagination__summary {
        white-space:normal;
    }

    .ticketme-pagination__pages {
        justify-content:flex-start;
    }
}

@media (max-width: 560px) {
    .login-intro {
        min-height:300px;
        background-position:center 70%;
    }

    .login-panel {
        padding:28px 16px;
    }

    .login-ecubing {
        margin-right:auto;
    }

    .login-card p {
        overflow-wrap:anywhere;
    }

    .ticketme-site-footer {
        padding:8px 72px 8px 16px;
    }

    .ticketme-site-footer__rights {
        flex-basis:100%;
    }

    .line-small-fields {
        grid-template-columns:1fr;
    }

    .line-stops-heading {
        align-items:flex-start;
        flex-direction:column;
    }

    .line-stop-add-form {
        grid-template-columns:1fr;
    }

    .line-stop-add-form .button {
        grid-column:auto;
        width:100%;
    }

    .shift-km-grid { grid-template-columns:minmax(154px, 174px); }

    .carrier-settings-heading {
        align-items:flex-start;
        flex-direction:column;
    }

    .carrier-logo-preview {
        width:124px;
        height:84px;
        flex-basis:84px;
    }

    .carrier-settings-copy small {
        display:none;
    }
}
