/* your styles go here */
.btn {
    border-radius: 6px
}

.hidden {
    display: none !important;
}

:root {
    --tour-shell-bg: linear-gradient(180deg, #f3f7fb 0%, #e7eef5 100%);
    --tour-shell-border: rgba(20, 48, 68, 0.12);
    --tour-shell-tab-bg: rgba(255, 255, 255, 0.7);
    --tour-shell-tab-active: #ffffff;
    --tour-studio-bg: #eef3f7;
    --tour-studio-surface: rgba(255, 255, 255, 0.92);
    --tour-studio-surface-strong: #ffffff;
    --tour-studio-border: rgba(20, 48, 68, 0.12);
    --tour-studio-text: #143044;
    --tour-studio-muted: #5f7283;
    --tour-studio-accent: #0f8a6c;
    --tour-studio-accent-strong: #0c6f57;
    --tour-studio-shadow: 0 18px 40px rgba(20, 48, 68, 0.08);
    --tour-studio-map-hint: rgba(20, 48, 68, 0.72);
    --field-bg: #f2f6fa;
    --field-bg-focus: #eaf2f8;
    --field-border: rgba(20, 48, 68, 0.16);
    --field-border-focus: rgba(15, 138, 108, 0.35);
    --action-blue: #0b63ce;
    --action-blue-soft: rgba(11, 99, 206, 0.1);
    --action-blue-border: rgba(11, 99, 206, 0.34);
    --action-green: #0f7a43;
    --action-green-soft: rgba(25, 135, 84, 0.16);
    --action-green-border: rgba(15, 122, 67, 0.38);
    --action-red: #b42318;
    --action-red-soft: rgba(220, 53, 69, 0.14);
    --action-red-border: rgba(180, 35, 24, 0.4);
    --action-amber: #9a6700;
    --action-amber-soft: rgba(255, 193, 7, 0.16);
    --action-amber-border: rgba(154, 103, 0, 0.38);
    --action-slate: #495a6a;
    --action-slate-soft: rgba(73, 90, 106, 0.1);
    --action-slate-border: rgba(73, 90, 106, 0.28);
}

#loginModal .login-modal-dialog {
    width: calc(100% - 1.5rem);
    max-width: 34rem;
}

#loginModal {
    backdrop-filter: blur(4px);
}

#loginModal .modal-content {
    border: 1px solid rgba(20, 48, 68, 0.12);
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 80px rgba(4, 14, 28, 0.35);
}

#loginModal .modal-header {
    border-bottom: 1px solid rgba(20, 48, 68, 0.1);
    padding: 1rem 1.25rem 0.9rem;
}

#loginModal .modal-body {
    padding: 1.15rem 1.25rem 1.25rem;
}

#loginModal .modal-title {
    color: #143044;
    font-weight: 800;
    letter-spacing: 0.08em;
}

#loginModal .form-group > label {
    color: #143044;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

#loginModal .input-group-text {
    background: #eef4f9;
    border-color: rgba(20, 48, 68, 0.12);
}

#loginModal .form-control {
    border-color: rgba(20, 48, 68, 0.12);
    background: #f8fbfd;
}

#loginModal .btn-outline-primary {
    min-width: 10rem;
    border-width: 2px;
    border-radius: 999px;
    font-weight: 700;
}

.studio-login-shell {
    position: relative;
    min-height: calc(100vh - 86px);
    overflow: hidden;
}

.studio-login-shell__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(15, 138, 108, 0.22), transparent 36%),
        radial-gradient(circle at 85% 18%, rgba(11, 99, 206, 0.24), transparent 28%),
        linear-gradient(180deg, #0b1220 0%, #111b2c 48%, #0d1626 100%);
}

.studio-login-shell__content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 86px);
    padding: 3rem 1.5rem 5.5rem;
}

.studio-login-hero {
    width: 100%;
    max-width: 1100px;
    color: #eff6fb;
}

.studio-login-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(138, 208, 191, 0.3);
    border-radius: 999px;
    background: rgba(11, 24, 38, 0.42);
    color: #90ead2;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.studio-login-hero__title {
    max-width: 12ch;
    margin: 1.1rem 0 0;
    color: #ffffff;
    font-size: clamp(2.6rem, 5vw, 4.6rem);
    font-weight: 900;
    line-height: 0.96;
    text-wrap: balance;
}

.studio-login-hero__summary {
    max-width: 46rem;
    margin: 1.25rem 0 0;
    color: rgba(239, 246, 251, 0.8);
    font-size: 1.08rem;
    line-height: 1.75;
}

.studio-login-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 1.25rem;
    max-width: 60rem;
    margin-top: 2rem;
}

.studio-login-card {
    padding: 1.4rem 1.5rem 1.5rem;
    border: 1px solid rgba(184, 206, 222, 0.16);
    border-radius: 22px;
    background: rgba(9, 20, 34, 0.64);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(10px);
}

.studio-login-card--accent {
    background: linear-gradient(180deg, rgba(12, 32, 51, 0.88), rgba(9, 20, 34, 0.78));
}

.studio-login-card__title {
    margin: 0;
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
}

.studio-login-card__list {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
    color: rgba(239, 246, 251, 0.84);
}

.studio-login-card__list li {
    margin: 0.55rem 0;
    line-height: 1.55;
}

.studio-login-card__text {
    margin: 0.9rem 0 0;
    color: rgba(239, 246, 251, 0.8);
    line-height: 1.65;
}

.studio-login-card__actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.studio-downloads {
    max-width: 66rem;
    margin-top: 1.8rem;
}

.studio-downloads__intro {
    max-width: 44rem;
}

.studio-downloads__title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
}

.studio-downloads__summary {
    margin: 0.8rem 0 0;
    color: rgba(239, 246, 251, 0.8);
    font-size: 1rem;
    line-height: 1.7;
}

.studio-downloads__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.2rem;
}

.studio-download-card {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.5rem;
    border: 1px solid rgba(184, 206, 222, 0.16);
    border-radius: 24px;
    background: rgba(9, 20, 34, 0.64);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(10px);
}

.studio-download-card__eyebrow {
    color: #90ead2;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.studio-download-card__title {
    margin: 0.35rem 0 0;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
}

.studio-download-card__text {
    margin: 0.75rem 0 0;
    color: rgba(239, 246, 251, 0.8);
    line-height: 1.65;
}

.studio-download-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.studio-download-card__badge-link {
    display: inline-flex;
    align-items: center;
}

.studio-download-card__badge {
    width: 246px;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    object-fit: contain;
}

.studio-download-card__qr {
    width: 130px;
    height: 130px;
    border-radius: 18px;
    background: #ffffff;
    padding: 0.55rem;
    object-fit: contain;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}

.studio-login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(138, 208, 191, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.studio-login-link:hover,
.studio-login-link:focus {
    background: rgba(144, 234, 210, 0.14);
    border-color: rgba(144, 234, 210, 0.55);
    color: #ffffff;
    transform: translateY(-1px);
}

.studio-subscription-note {
    max-width: 66rem;
    margin-top: 1.4rem;
    padding: 1.4rem 1.5rem 1.5rem;
    border: 1px solid rgba(184, 206, 222, 0.16);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(12, 32, 51, 0.88), rgba(9, 20, 34, 0.78));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(10px);
}

.studio-subscription-note__eyebrow {
    color: #90ead2;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.studio-subscription-note__title {
    margin: 0.55rem 0 0;
    color: #ffffff;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 800;
}

.studio-subscription-note__text {
    max-width: 48rem;
    margin: 0.85rem 0 0;
    color: rgba(239, 246, 251, 0.8);
    line-height: 1.7;
}

.studio-subscription-note__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    min-height: 44px;
    padding: 0 1rem;
    border-radius: 999px;
    border: 1px solid rgba(138, 208, 191, 0.28);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.studio-subscription-note__link:hover,
.studio-subscription-note__link:focus {
    background: rgba(144, 234, 210, 0.14);
    border-color: rgba(144, 234, 210, 0.55);
    color: #ffffff;
    transform: translateY(-1px);
}

#loginModal #rowMessage {
    margin-top: 0.25rem;
}

#loginModal #alertLogin {
    font-size: 0.98rem;
    line-height: 1.45;
    padding: 0.85rem 1rem;
}

#loginModal #alertLogin.login-alert--success {
    background: linear-gradient(135deg, rgba(15, 122, 67, 0.96), rgba(12, 111, 87, 0.94));
    border: 1px solid rgba(15, 122, 67, 0.4);
    color: #f6fffb;
}

#ui_notifIt {
    max-width: calc(100vw - 1.5rem) !important;
    border: 1px solid var(--tour-studio-border) !important;
    border-radius: 16px !important;
    box-shadow: var(--tour-studio-shadow) !important;
}

#ui_notifIt p {
    font-size: 0.98rem;
    line-height: 1.45;
    font-weight: 700;
}

#ui_notifIt.success {
    background: linear-gradient(135deg, rgba(15, 122, 67, 0.96), rgba(12, 111, 87, 0.94)) !important;
    border-color: rgba(15, 122, 67, 0.4) !important;
    color: #f6fffb !important;
}

#ui_notifIt.error {
    background: linear-gradient(135deg, rgba(146, 34, 27, 0.97), rgba(120, 28, 39, 0.95)) !important;
    border-color: rgba(180, 35, 24, 0.42) !important;
    color: #fff7f7 !important;
}

@media (max-width: 575.98px) {
    .studio-login-shell {
        min-height: calc(100vh - 74px);
    }

    .studio-login-shell__content {
        align-items: flex-start;
        min-height: calc(100vh - 74px);
        padding: 1.4rem 1rem 5rem;
    }

    .studio-login-hero__title {
        max-width: none;
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .studio-login-hero__summary {
        font-size: 1rem;
        line-height: 1.65;
    }

    .studio-login-hero__grid {
        grid-template-columns: 1fr;
        margin-top: 1.4rem;
    }

    .studio-downloads__grid {
        grid-template-columns: 1fr;
    }

    .studio-login-card {
        padding: 1.15rem 1rem 1.1rem;
    }

    .studio-subscription-note {
        padding: 1.15rem 1rem 1.1rem;
    }

    .studio-download-card {
        padding: 1.15rem 1rem 1.1rem;
    }

    .studio-download-card__actions {
        justify-content: center;
    }

    .studio-download-card__qr {
        width: 118px;
        height: 118px;
    }

    #loginModal .login-modal-dialog {
        width: calc(100% - 1rem);
        max-width: calc(100% - 1rem);
        margin: 1rem auto 0;
    }

    #loginModal #alertLogin {
        font-size: 1rem;
        text-align: left;
    }

    #ui_notifIt {
        left: 0.75rem !important;
        right: 0.75rem !important;
        width: auto !important;
        margin: 0 auto !important;
    }

    #ui_notifIt p {
        font-size: 1rem;
        text-align: left;
    }
}

tableRowHighlight {
    /*background-color: #FFFFFF;*/
    color: #000000;
    font-family: arial;
    font-style: normal;
    font-weight: bolder;
    font-size: 13px;
}

.fa-eye-slash, .fa-eye {
    cursor: pointer !important;
}

input[type="file"] {
    display: none;
}

/* .carousel-inner > .carousel-item > img {
    width: 60vh;
    height: 80vh;
} */

.carousel-indicators li {
    background-color: #005500;
}

.carousel-caption {
    padding-top: 5px !important;
    padding-bottom: 10px !important;
}

.carousel-control-next {
    color: green !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    height: 100px;
    width: 100px;
    background-image: none;
}

.carousel-control-next-icon:after {
    content: '>';
    font-size: 55px;
    color: #17a2b8 !important;
}

.carousel-control-prev-icon:after {
    content: '<';
    font-size: 55px;
    color: #17a2b8 !important;
}

.text-black {
    color: #000000 !important;
}

.bg-green {
    background-color: #429244;
}

.bg-silver {
    background-color: aliceblue
}

.margin-top-10 {
    margin-top: 20px;
}

.text-centre {
    text-align: center !important;
}

.required-asterisk {
    font-size: 12pt;
    font-weight: bolder;
    color: brown
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 127, 0, 0.5);
    z-index: 1;
}

.navbar {
    background-color: #f8f9fa !important;
}

#footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 10000;
}

.container {
    margin-top: 10px !important;
}

.grecaptcha-badge {
    margin-bottom: 40px !important;
    z-index: 1001 !important;
}

.under-line {
    text-decoration: underline;
}

.container {
    max-width: 95% !important;
}

.text-green {
    color: #005500;
}

.btn-outline-white {
    color: white;
    border-color: white;
}

.mainPicture {
    height: auto;
    width: 50%;
}

.form-group-typeahead {
    position: relative
}

.bg-lightyellow {
    background-color: #F5F5DC !important;
}


/*
    My Stuff
*/
/*.my-custom-alert .modal-content{
    background-color: #f2f2f2;
    border: 2px solid #333;
    color: #333
}

.my-custom-alert .modal-title {
    background-color: #333;
    color: #ffff;
}

.my-card .modal-content {
    background-color: #333;
    color: #ffff;
}

.my-card .modal-body {
    background-color: #333;
    color: #ffff;
}

.my-card .card-header {
    background-color: #333;
    border: 1px solid #000;
    color: #ffff;
}

.my-card .card-footer {
    background-color: #333;
    color: #ffff;
}

.my-card .card-body {
    background-color: #333;
    border: 1px solid #000;
    color: #fff
}

.card .modal-content {
    background-color: #333;
    color: #ffff;
}

.card .modal-body {
    background-color: #333;
    color: #ffff;
}

.card .card-header {
    background-color: #333;
    border: 1px solid #000;
    color: #ffff;
}

.card .card-footer {
    background-color: #333;
    color: #ffff;
}

.card .card-body {
    background-color: #333;
    border: 1px solid #000;
    color: #fff
}

.my-navbar {
    background-color: #333 !important;
    border-bottom: 1px solid #808080;
}

body{
    background-color: #333;
    color: #fff;
}*/

.tour-studio {
    color: var(--tour-studio-text);
}

#tabDashboardContent {
    padding-bottom: 2rem;
}

.dashboard-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    border: 1px solid rgba(15, 138, 108, 0.18);
    background: linear-gradient(135deg, rgba(15, 138, 108, 0.12), rgba(20, 48, 68, 0.06));
    box-shadow: 0 14px 28px rgba(20, 48, 68, 0.08);
    color: var(--tour-studio-text);
}

.dashboard-notice__copy {
    font-weight: 600;
}

.dashboard-notice__action {
    flex: 0 0 auto;
}

.dashboard-notice--password {
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(17, 58, 120, 0.92), rgba(14, 116, 144, 0.88)) !important;
    border: 1px solid rgba(59, 130, 246, 0.55) !important;
    color: #f8fbff !important;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.24) !important;
}

.dashboard-notice--orientation {
    margin-bottom: 1rem;
    justify-content: center;
    padding: 0.95rem 1.1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(146, 64, 14, 0.94), rgba(180, 83, 9, 0.9)) !important;
    border: 1px solid rgba(251, 191, 36, 0.42) !important;
    color: #fff7ed !important;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.22) !important;
}

.dashboard-notice--password .dashboard-notice__copy,
.dashboard-notice--password .dashboard-notice__action,
.dashboard-notice--password span,
.dashboard-notice--password small,
.dashboard-notice--password p,
.dashboard-notice--orientation .dashboard-notice__copy,
.dashboard-notice--orientation span,
.dashboard-notice--orientation p,
.dashboard-notice--orientation i {
    color: inherit !important;
}

.dashboard-notice__copy--orientation {
    margin: 0;
    line-height: 1.55;
    width: 100%;
    text-align: center;
}

.dashboard-notice--password .dashboard-notice__action {
    border-color: rgba(248, 251, 255, 0.35) !important;
    background: rgba(248, 251, 255, 0.1) !important;
    color: #f8fbff !important;
}

.dashboard-notice--password .dashboard-notice__action:hover,
.dashboard-notice--password .dashboard-notice__action:focus {
    border-color: rgba(248, 251, 255, 0.55) !important;
    background: rgba(248, 251, 255, 0.18) !important;
    color: #ffffff !important;
}

.tabHeader {
    margin-bottom: 1rem;
}

.tabHeader .nav-tabs {
    gap: 0.65rem;
    border-bottom: none;
    padding: 0.5rem;
    border-radius: 20px;
    background: var(--tour-shell-tab-bg);
    border: 1px solid var(--tour-shell-border);
    box-shadow: 0 14px 30px rgba(20, 48, 68, 0.08);
}

.tabHeader .nav-tabs .nav-link {
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 0.85rem 1.15rem;
    color: var(--tour-studio-muted);
    font-weight: 600;
    background: transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tabHeader .nav-tabs .nav-link:hover,
.tabHeader .nav-tabs .nav-link:focus {
    color: var(--tour-studio-text);
    border-color: var(--tour-shell-border);
    background: rgba(255, 255, 255, 0.6);
}

.tabHeader .nav-tabs .nav-link.active,
.tabHeader .nav-tabs .show > .nav-link {
    background: var(--tour-shell-tab-active);
    color: var(--tour-studio-text);
    border-color: var(--tour-shell-border);
    box-shadow: 0 10px 20px rgba(20, 48, 68, 0.08);
}

.tab-pane#tours,
.tab-pane#companies {
    background: transparent;
}

.tour-studio .card {
    background: var(--tour-studio-surface);
    border: 1px solid var(--tour-studio-border);
    box-shadow: var(--tour-studio-shadow);
}

.tour-studio__header {
    margin-bottom: 1rem;
}

.tour-studio__header .card-body {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.tour-studio__eyebrow {
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tour-studio-accent);
}

.tour-studio__title {
    margin-bottom: 0.35rem;
}

.tour-studio__subtitle,
.tour-studio__muted,
.tour-studio__tour-meta,
.tour-studio__stop-meta {
    margin-bottom: 0;
    color: var(--tour-studio-muted);
}

.tour-studio__stop-meta-inactive {
    color: #d95c5c;
}

.tour-studio__header-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.tour-studio__copy-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: nowrap;
    flex: 1 1 auto;
    min-width: 0;
}

.tour-studio__copy-actions .form-control {
    min-width: 16rem;
    max-width: 24rem;
    flex: 1 1 20rem;
}

.tour-studio__copy-actions .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.tour-studio__notice-title {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--tour-studio-text);
}

.tour-studio__notice-copy {
    margin-bottom: 0.85rem;
}

.tour-studio__notice-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.company-users-shell .btnCompanyUserAction {
    min-width: 2.5rem;
    border-width: 2px;
    box-shadow: 0 8px 18px rgba(20, 48, 68, 0.08);
}

.company-users-shell .btnCompanyUserAction--edit {
    color: #0b63ce !important;
    border-color: rgba(11, 99, 206, 0.36) !important;
    background: rgba(11, 99, 206, 0.08) !important;
}

.company-users-shell .btnCompanyUserAction--cancel {
    color: #9a6700 !important;
    border-color: rgba(154, 103, 0, 0.38) !important;
    background: rgba(255, 193, 7, 0.16) !important;
}

.company-users-shell .btnCompanyUserAction--save {
    color: #0f7a43 !important;
    border-color: rgba(15, 122, 67, 0.4) !important;
    background: rgba(25, 135, 84, 0.16) !important;
}

.company-users-shell .btnCompanyUserAction--delete {
    color: #b42318 !important;
    border-color: rgba(180, 35, 24, 0.4) !important;
    background: rgba(220, 53, 69, 0.14) !important;
}

.company-users-shell .btnCompanyUserAction:hover,
.company-users-shell .btnCompanyUserAction:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(20, 48, 68, 0.14);
}

.company-users-shell .form-control,
.company-users-shell .custom-select,
.company-users-shell .input-group-text {
    background-color: #0f1720 !important;
    border-color: rgba(141, 170, 196, 0.22) !important;
    color: var(--tour-studio-text) !important;
}

.company-users-shell .form-control:focus,
.company-users-shell .custom-select:focus,
.company-users-shell textarea.form-control:focus,
.company-users-shell select.form-control:focus {
    background-color: #0f1720 !important;
    color: var(--tour-studio-text) !important;
    border-color: rgba(87, 211, 180, 0.45) !important;
    box-shadow: 0 0 0 0.2rem rgba(87, 211, 180, 0.12) !important;
}

.company-users-shell .dropdown-menu,
.company-users-shell .typeahead.dropdown-menu,
.users-panel .dropdown-menu,
.users-panel .typeahead.dropdown-menu,
.users-panel .typeahead-menu,
.tab-pane#users .dropdown-menu,
.tab-pane#users .typeahead.dropdown-menu,
.tab-pane#users .typeahead-menu,
  .company-users-shell .typeahead-menu {
    background: #0f1720 !important;
    border-color: rgba(141, 170, 196, 0.22) !important;
    color: var(--tour-studio-text) !important;
    box-shadow: 0 14px 32px rgba(20, 48, 68, 0.22) !important;
}

.company-users-shell .dropdown-menu > li > a,
.company-users-shell .typeahead.dropdown-menu > li > a,
.users-panel .dropdown-menu > li > a,
.users-panel .typeahead.dropdown-menu > li > a,
.tab-pane#users .dropdown-menu > li > a,
.tab-pane#users .typeahead.dropdown-menu > li > a,
.company-users-shell .dropdown-item {
    color: var(--tour-studio-text) !important;
}

.company-users-shell .dropdown-menu > li > a:hover,
.company-users-shell .dropdown-menu > li > a:focus,
.company-users-shell .typeahead.dropdown-menu > li > a:hover,
.company-users-shell .typeahead.dropdown-menu > li > a:focus,
.company-users-shell .dropdown-item:hover,
.company-users-shell .dropdown-item:focus,
.company-users-shell .active > a,
.company-users-shell .active > a:hover,
.company-users-shell .active > a:focus,
.users-panel .dropdown-menu > li > a:hover,
.users-panel .dropdown-menu > li > a:focus,
.users-panel .typeahead.dropdown-menu > li > a:hover,
.users-panel .typeahead.dropdown-menu > li > a:focus,
.users-panel .active > a,
.users-panel .active > a:hover,
.users-panel .active > a:focus,
.tab-pane#users .dropdown-menu > li > a:hover,
.tab-pane#users .dropdown-menu > li > a:focus,
.tab-pane#users .typeahead.dropdown-menu > li > a:hover,
.tab-pane#users .typeahead.dropdown-menu > li > a:focus,
.tab-pane#users .active > a,
.tab-pane#users .active > a:hover,
.tab-pane#users .active > a:focus {
    background: rgba(87, 211, 180, 0.14) !important;
    color: var(--tour-studio-text) !important;
}

.profile-edit .dropdown-menu,
.profile-edit .typeahead.dropdown-menu,
.profile-edit .typeahead-menu {
    background: #0f1720 !important;
    border-color: rgba(141, 170, 196, 0.22) !important;
    color: var(--tour-studio-text) !important;
    box-shadow: 0 14px 32px rgba(20, 48, 68, 0.22) !important;
}

.profile-edit .dropdown-menu > li > a,
.profile-edit .typeahead.dropdown-menu > li > a,
.profile-edit .dropdown-item {
    color: var(--tour-studio-text) !important;
}

.profile-edit .dropdown-menu > li > a:hover,
.profile-edit .dropdown-menu > li > a:focus,
.profile-edit .typeahead.dropdown-menu > li > a:hover,
.profile-edit .typeahead.dropdown-menu > li > a:focus,
.profile-edit .dropdown-item:hover,
.profile-edit .dropdown-item:focus,
.profile-edit .active > a,
.profile-edit .active > a:hover,
.profile-edit .active > a:focus {
    background: rgba(87, 211, 180, 0.14) !important;
    color: var(--tour-studio-text) !important;
}

.bootbox .form-control,
.bootbox .custom-select,
.bootbox .input-group-text {
    background-color: #0f1720 !important;
    border-color: rgba(141, 170, 196, 0.22) !important;
    color: var(--tour-studio-text) !important;
}

.bootbox select.form-control,
.bootbox .custom-select {
    padding-right: 3rem !important;
    background-position: right 1.15rem center !important;
}

.bootbox .form-control:focus,
.bootbox .custom-select:focus,
.bootbox textarea.form-control:focus,
.bootbox select.form-control:focus {
    background-color: #0f1720 !important;
    color: var(--tour-studio-text) !important;
    border-color: rgba(87, 211, 180, 0.45) !important;
    box-shadow: 0 0 0 0.2rem rgba(87, 211, 180, 0.12) !important;
}

.bootbox .form-control::placeholder,
.bootbox textarea.form-control::placeholder {
    color: #7f95a8 !important;
}

.bootbox input:-webkit-autofill,
.bootbox input:-webkit-autofill:hover,
.bootbox input:-webkit-autofill:focus,
.bootbox textarea:-webkit-autofill,
.bootbox select:-webkit-autofill {
    -webkit-text-fill-color: var(--tour-studio-text) !important;
    -webkit-box-shadow: 0 0 0 1000px #0f1720 inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.bootbox input[type="date"]::-webkit-calendar-picker-indicator,
.bootbox input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.35);
    opacity: 1;
    cursor: pointer;
}

#loginModal .form-control,
#loginModal .custom-select,
#loginModal .input-group-text {
    background: #0f1720 !important;
    border-color: rgba(141, 170, 196, 0.22) !important;
    color: var(--tour-studio-text) !important;
}

#loginModal .form-control:focus,
#loginModal .custom-select:focus,
#loginModal textarea.form-control:focus,
#loginModal select.form-control:focus {
    background: #0f1720 !important;
    color: var(--tour-studio-text) !important;
    border-color: rgba(15, 138, 108, 0.38) !important;
    box-shadow: 0 0 0 0.2rem rgba(15, 138, 108, 0.14) !important;
}

#loginModal .form-control::placeholder,
#loginModal textarea.form-control::placeholder {
    color: #7f95a8 !important;
}

#loginModal input:-webkit-autofill,
#loginModal input:-webkit-autofill:hover,
#loginModal input:-webkit-autofill:focus,
#loginModal textarea:-webkit-autofill,
#loginModal select:-webkit-autofill {
    -webkit-text-fill-color: var(--tour-studio-text) !important;
    -webkit-box-shadow: 0 0 0 1000px #0f1720 inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.profile-edit .form-control,
.profile-edit .custom-select,
.profile-edit .input-group-text {
    background: #0f1720 !important;
    border-color: rgba(141, 170, 196, 0.22) !important;
    color: var(--tour-studio-text) !important;
}

.profile-edit .form-control:focus,
.profile-edit .custom-select:focus,
.profile-edit textarea.form-control:focus,
.profile-edit select.form-control:focus {
    background: #0f1720 !important;
    color: var(--tour-studio-text) !important;
    border-color: rgba(15, 138, 108, 0.38) !important;
    box-shadow: 0 0 0 0.2rem rgba(15, 138, 108, 0.14) !important;
}

.profile-edit .form-control::placeholder,
.profile-edit textarea.form-control::placeholder {
    color: #7f95a8 !important;
}

.profile-edit input[disabled],
.profile-edit input[readonly] {
    background: #101923 !important;
    color: #90a4b5 !important;
    opacity: 1;
}

.profile-edit input:-webkit-autofill,
.profile-edit input:-webkit-autofill:hover,
.profile-edit input:-webkit-autofill:focus,
.profile-edit textarea:-webkit-autofill,
.profile-edit select:-webkit-autofill {
    -webkit-text-fill-color: var(--tour-studio-text) !important;
    -webkit-box-shadow: 0 0 0 1000px #0f1720 inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.tour-studio__group-label {
    margin: 1rem 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tour-studio-muted);
}

.tour-studio__bearing-handle {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #0f8a6c;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 18px rgba(15, 138, 108, 0.28);
}

.tour-studio__bearing-tolerance-handle {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #f28c28;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 18px rgba(242, 140, 40, 0.28);
}

.tour-studio__workspace {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) minmax(320px, 380px);
    gap: 1rem;
    align-items: stretch;
    min-height: calc(100vh - 16rem);
    transition: grid-template-columns 0.2s ease;
}

.tour-studio__workspace.tour-studio__workspace--rail-collapsed {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
}

.translations-studio__workspace {
    display: grid;
    grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.translations-studio__column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.translations-studio__context-note {
    margin-bottom: 1rem;
}

.translations-studio__context-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.translations-studio__context-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--tour-studio-border);
    background: var(--tour-studio-surface-strong);
}

.translations-studio__context-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--tour-studio-muted);
}

.translations-studio__context-value {
    font-size: 1rem;
    color: var(--tour-studio-text);
}

.translations-studio__context-description {
    margin-top: 0.9rem;
}

.translations-prototype {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.translations-prototype__hero,
.translations-prototype__workspace {
    border-radius: 24px;
    border: 1px solid var(--tour-studio-border);
    background: var(--tour-studio-panel);
    box-shadow: var(--tour-studio-shadow);
}

.translations-prototype__hero-copy {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.translations-prototype__eyebrow {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tour-studio-muted);
}

.translations-prototype__title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--tour-studio-text);
}

.translations-prototype__subtitle {
    margin: 0;
    max-width: 68rem;
    color: var(--tour-studio-muted);
}

.translations-prototype__toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.translations-prototype__tour-picker {
    min-width: min(100%, 24rem);
}

.translations-prototype__company-picker {
    min-width: min(100%, 22rem);
}

.translations-prototype__configuration {
    margin-bottom: 1rem;
    border-radius: 18px;
    border: 1px solid var(--tour-studio-border);
    background: rgba(12, 24, 38, 0.72);
}

.translations-prototype__configuration-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.translations-prototype__configuration-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--tour-studio-text);
}

.translations-prototype__configuration-copy {
    margin: 0.35rem 0 0;
    color: var(--tour-studio-muted);
}

.translations-prototype__upgrade-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 138, 108, 0.28);
    background: rgba(15, 138, 108, 0.12);
    color: #89ead2;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.translations-prototype__upgrade-pill.is-muted {
    border-color: var(--tour-studio-border);
    background: rgba(73, 90, 106, 0.12);
    color: var(--tour-studio-muted);
}

.translations-prototype__upgrade-pill.is-warning {
    border-color: rgba(217, 164, 65, 0.3);
    background: rgba(217, 164, 65, 0.12);
    color: #f0c15d;
}

.translations-prototype__warning-note {
    display: none;
    margin-top: 0.75rem;
    padding: 0.8rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(217, 164, 65, 0.28);
    background: rgba(217, 164, 65, 0.08);
    color: #f3c86f;
}

.translations-prototype__success-note {
    display: none;
    margin-top: 0.75rem;
    padding: 0.8rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(15, 138, 108, 0.28);
    background: rgba(15, 138, 108, 0.1);
    color: #89ead2;
}

#translations .translations-prototype select.form-control {
    padding-right: 3.5rem !important;
    background-position: right 1.35rem center !important;
}

#translations .translations-prototype .form-group-typeahead,
#translations .translations-prototype .input-group {
    width: 100%;
}

#translations .translations-prototype .dropdown-menu {
    width: 100%;
    background: var(--field-bg) !important;
    border-color: var(--field-border) !important;
    color: var(--tour-studio-text) !important;
}

#translations .translations-prototype .dropdown-menu > li > a {
    color: var(--tour-studio-text) !important;
    padding: 0.55rem 0.85rem;
}

#translations .translations-prototype .dropdown-menu > .active > a,
#translations .translations-prototype .dropdown-menu > li > a:hover {
    background: rgba(15, 138, 108, 0.14) !important;
    color: var(--tour-studio-text) !important;
}

.translations-prototype__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.translations-prototype__metric {
    min-width: 9rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--tour-studio-border);
    background: var(--tour-studio-surface);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.translations-prototype__metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tour-studio-text);
}

.translations-prototype__metric-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--tour-studio-muted);
}

.translations-prototype__note {
    margin-bottom: 1rem;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(15, 138, 108, 0.16);
    background: rgba(15, 138, 108, 0.08);
    color: var(--tour-studio-muted);
}

#translations .translations-prototype .table {
    margin-bottom: 0;
    color: var(--tour-studio-text);
}

#translations #tbltranslationsStopsPrototype {
    table-layout: fixed;
    width: 100% !important;
}

#translations #tbltranslationsStopsPrototype > thead > tr > th:nth-child(1),
#translations #tbltranslationsStopsPrototype > tbody > tr[data-stop-id] > td:nth-child(1) {
    width: 54px !important;
    min-width: 54px;
    max-width: 54px;
}

#translations #tbltranslationsStopsPrototype > thead > tr > th:nth-child(2),
#translations #tbltranslationsStopsPrototype > tbody > tr[data-stop-id] > td:nth-child(2) {
    width: 18rem !important;
    min-width: 18rem;
    max-width: 18rem;
}

#translations #tbltranslationsStopsPrototype > thead > tr > th:nth-child(4),
#translations #tbltranslationsStopsPrototype > tbody > tr[data-stop-id] > td:nth-child(4) {
    width: 140px !important;
    min-width: 140px;
    max-width: 140px;
    text-align: center;
}

#translations .translations-prototype .table thead th {
    border-top: 0;
    border-bottom: 1px solid var(--tour-studio-border);
    color: var(--tour-studio-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

#translations .translations-prototype .table td {
    vertical-align: top;
    border-top: 1px solid rgba(73, 90, 106, 0.18);
}

.translations-prototype__expand-cell {
    text-align: center;
}

.translations-prototype__expand {
    width: 2rem;
    height: 2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--tour-studio-accent-strong);
}

.translations-prototype__expand i {
    transition: transform 0.2s ease;
}

.translations-prototype__expand.is-open i {
    transform: rotate(90deg);
}

.translations-prototype__stop-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--tour-studio-text);
}

.translations-prototype__description,
.translations-prototype__cell-copy {
    color: var(--tour-studio-text);
    line-height: 1.45;
}

.translations-prototype__translation-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 138, 108, 0.1);
    border: 1px solid rgba(15, 138, 108, 0.18);
    color: var(--tour-studio-accent-strong);
    font-weight: 700;
}

.translations-prototype__translation-summary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 1.75rem;
}

.translations-prototype__regeneration-indicator {
    position: absolute;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    background: rgba(217, 164, 65, 0.14);
    border: 1px solid rgba(217, 164, 65, 0.28);
    color: #d9a441;
    font-size: 0.78rem;
}

.translations-prototype__empty-copy {
    color: var(--tour-studio-muted);
    font-style: italic;
}

.translations-prototype__child-shell {
    padding: 1rem 1.15rem 1.2rem;
    border-radius: 18px;
    background: rgba(11, 18, 32, 0.65);
    border: 1px solid var(--tour-studio-border);
    margin: 0.35rem 0 0.75rem;
}

.translations-prototype__child-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.translations-prototype__child-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--tour-studio-text);
}

.translations-prototype__child-subtitle {
    margin: 0.3rem 0 0;
    color: var(--tour-studio-muted);
}

.translations-prototype__child-table {
    margin-bottom: 0;
    table-layout: fixed;
    width: 100%;
}

.translations-prototype__child-col-language {
    width: 12%;
}

.translations-prototype__child-col-source {
    width: 26%;
}

.translations-prototype__child-col-translated {
    width: 25%;
}

.translations-prototype__child-col-audio {
    width: 18%;
}

.translations-prototype__child-col-actions {
    width: 19%;
}

.translations-prototype__language-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    background: rgba(15, 138, 108, 0.1);
    border: 1px solid rgba(15, 138, 108, 0.18);
    color: var(--tour-studio-accent-strong);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.translations-prototype__language-name,
.translations-prototype__published-state {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: var(--tour-studio-muted);
}

.translations-prototype__audio-status {
    color: var(--tour-studio-text);
    font-weight: 600;
}

.translations-prototype__translated-title {
    margin-bottom: 0.35rem;
    font-weight: 700;
    color: var(--tour-studio-text);
}

.translations-prototype__regeneration-state {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: #d9a441;
}

.translations-prototype__translation-actions-cell {
    min-width: 17rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.translations-prototype__inline-textarea {
    min-height: 5.5rem;
    resize: vertical;
}

.translations-prototype__modal-context {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 1rem;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    border: 1px solid var(--tour-studio-border);
    background: var(--tour-studio-surface);
}

.translations-prototype__modal-context-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--tour-studio-muted);
}

.translations-prototype__modal-context-value {
    color: var(--tour-studio-text);
    font-weight: 700;
}

.tour-studio__editor-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
}

.tour-studio__rail,
.tour-studio__map-card,
.tour-studio__editor-card {
    overflow: hidden;
}

.tour-studio__rail {
    height: 100%;
    transition: opacity 0.18s ease, transform 0.18s ease, margin 0.18s ease;
}

.tour-studio__rail.is-collapsed {
    display: none;
    opacity: 0;
    transform: translateX(-0.5rem);
    pointer-events: none;
    margin-left: -1rem;
}

.tour-studio__rail .card-body {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 20rem);
    overflow-y: auto;
}

.tour-studio__map-column,
.tour-studio__map-card {
    height: 100%;
}

.tour-studio__map-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.tour-studio__map-card .card-body {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 20rem);
}

.tour-studio__section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tour-studio__section-heading h4 {
    margin-bottom: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.tour-studio__section-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex: 0 1 auto;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.tour-studio__collapse-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex: 0 0 auto;
    min-height: 2rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--tour-studio-border);
    border-radius: 999px;
    background: var(--tour-studio-surface-strong);
    color: var(--tour-studio-muted);
    transition: transform 0.16s ease, color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.tour-studio__collapse-toggle:hover,
.tour-studio__collapse-toggle:focus {
    color: var(--tour-studio-text);
    border-color: rgba(15, 138, 108, 0.35);
    text-decoration: none;
    outline: none;
}

.tour-studio__collapse-toggle i {
    transition: transform 0.16s ease;
}

.tour-studio__collapse-toggle-label {
    line-height: 1;
}

.tour-studio__editor-state {
    color: #7ff0d2;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: right;
    flex: 1 1 14rem;
    min-width: 0;
    margin-top: 0.6rem;
}

.tour-studio__editor-state--stop-editor {
    display: block;
    width: 100%;
    text-align: right;
}

.tour-studio__tour-list,
.tour-studio__stop-list {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 0.5rem;
    overflow-y: auto;
    padding-right: 0.65rem;
    scrollbar-gutter: stable;
}

.tour-studio__rail .tour-studio__tour-list {
    flex: 0 0 auto;
    overflow-y: visible;
}

.tour-studio__stop-tools {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.tour-studio__stop-search {
    margin-bottom: 0.75rem;
}

.tour-studio__editor-card--stops .card-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.tour-studio__editor-card--stops .tour-studio__stop-list {
    flex: 0 0 auto;
    overflow-y: auto;
}

.tour-studio__audio-body {
    border-top: 1px solid var(--tour-studio-border);
}

.tour-studio__editor-card.is-collapsed .card-body,
.tour-studio__editor-card.is-collapsed .card-footer {
    display: none;
}

.tour-studio__editor-card.is-collapsed .tour-studio__collapse-toggle i {
    transform: rotate(-90deg);
}

.tour-studio__tour-item,
.tour-studio__stop-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid transparent;
    border-radius: 14px;
    background: var(--tour-studio-surface-strong);
    color: var(--tour-studio-text);
    text-decoration: none;
}

.tour-studio__stop-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1 1 auto;
    min-width: 0;
}

.tour-studio__stop-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.tour-studio__stop-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(15, 138, 108, 0.12);
    color: var(--tour-studio-accent-strong);
    font-size: 0.78rem;
    font-weight: 700;
}

.tour-studio__stop-actions {
    display: flex;
    gap: 0.35rem;
    margin-left: auto;
}

.tour-studio__stop-actions .btn {
    padding: 0.3rem 0.45rem;
    line-height: 1;
}

.tour-studio__tour-item:hover,
.tour-studio__stop-item:hover,
.tour-studio__tour-item:focus,
.tour-studio__stop-item:focus {
    border-color: rgba(15, 138, 108, 0.35);
    text-decoration: none;
}

.tour-studio__tour-item.is-selected,
.tour-studio__stop-item.is-selected {
    border-color: rgba(15, 138, 108, 0.45);
    background: rgba(15, 138, 108, 0.08);
}

.tour-studio__tour-name {
    font-weight: 700;
}

.tour-studio__stop-name {
    font-size: 0.8rem;
}

.tour-studio__stop-readiness {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.tour-studio__stop-readiness-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.48rem;
    border-radius: 999px;
    font-size: 0.72rem;
    line-height: 1.2;
    border: 1px solid transparent;
}

.tour-studio__stop-readiness-chip--image {
    background: rgba(13, 110, 253, 0.1);
    border-color: rgba(13, 110, 253, 0.18);
    color: #0d6efd;
}

.tour-studio__stop-readiness-chip--translation {
    background: rgba(15, 138, 108, 0.1);
    border-color: rgba(15, 138, 108, 0.18);
    color: var(--tour-studio-accent-strong);
}

.tour-studio__stop-readiness-chip--audio {
    background: rgba(154, 103, 0, 0.12);
    border-color: rgba(154, 103, 0, 0.2);
    color: var(--action-amber);
}

.tour-studio__stop-readiness-chip--languages {
    background: rgba(73, 90, 106, 0.1);
    border-color: rgba(73, 90, 106, 0.2);
    color: var(--tour-studio-muted);
}

.tour-studio__stop-readiness-chip--missing {
    background: rgba(187, 65, 77, 0.1);
    border-color: rgba(187, 65, 77, 0.2);
    color: #d95c5c;
}

.tour-studio__tour-chip {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.tour-studio__tour-chip--company,
.tour-studio__ownership-badge--company {
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

.tour-studio__tour-chip--personal,
.tour-studio__ownership-badge--personal {
    background: rgba(15, 138, 108, 0.12);
    color: var(--tour-studio-accent-strong);
}

.tour-studio__tour-item--company {
    border-left: 3px solid rgba(13, 110, 253, 0.35);
}

.tour-studio__tour-item--personal {
    border-left: 3px solid rgba(15, 138, 108, 0.35);
}

.tour-studio__tour-meta-strip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tour-studio__lineage {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(15, 138, 108, 0.08);
    color: var(--tour-studio-muted);
    border: 1px solid rgba(15, 138, 108, 0.18);
}

.tour-studio__map-actions,
.tour-studio__editor-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tour-studio__editor-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
}

.tour-studio__editor-action-primary {
    width: 100%;
}

.tour-studio__editor-actions-secondary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
}

.tour-studio__editor-actions-single {
    width: 100%;
}

.tour-studio__editor-actions .btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
    font-size: 0.92rem;
    width: 100%;
}

#tourStudioMap {
    width: 100%;
    min-height: 50rem;
    flex: 1 1 auto;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--tour-studio-border);
}

.tour-studio__map-hint {
    margin-top: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: var(--tour-studio-bg);
    color: var(--tour-studio-map-hint);
}

.tour-studio__map-search {
    margin-bottom: 0.75rem;
}

.tour-studio__empty-state {
    padding: 1rem;
    border-radius: 14px;
    background: var(--tour-studio-bg);
    color: var(--tour-studio-muted);
}

.tour-studio__switch {
    padding-top: 2rem;
}

.tour-studio__switch-label {
    font-weight: 700;
    transition: color 0.16s ease;
    color: var(--tour-studio-text);
}

.tour-studio__switch-value {
    font-weight: inherit;
    transition: color 0.16s ease;
}

.tour-studio__switch-value--active {
    color: var(--tour-studio-accent) !important;
}

.tour-studio__switch-value--inactive {
    color: #d95c5c !important;
}

#tourStudio .tour-studio__switch-value--active {
    color: var(--tour-studio-accent) !important;
    -webkit-text-fill-color: var(--tour-studio-accent) !important;
}

#tourStudio .tour-studio__switch-value--inactive {
    color: #d95c5c !important;
    -webkit-text-fill-color: #d95c5c !important;
}

.tour-studio__audio-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tour-studio__image-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tour-studio__audio-file-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: stretch;
}

.tour-studio__audio-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    padding: 0 0.85rem;
    border-radius: 12px;
    background: rgba(15, 138, 108, 0.08);
    border: 1px solid rgba(15, 138, 108, 0.14);
    color: var(--tour-studio-accent-strong);
}

.tour-studio__audio-file-name {
    min-width: 0;
    font-size: 0.95rem;
}

.tour-studio__image-preview {
    border: 1px solid var(--tour-studio-border);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(8, 16, 24, 0.55);
}

.tour-studio__image-preview-image {
    display: block;
    width: 100%;
    max-height: 12rem;
    object-fit: cover;
}

.tour-studio__audio-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
}

.tour-studio__audio-actions .btn {
    min-width: 0;
    width: 100%;
}

.tour-studio__audio-actions #btnTourStudioPreviewAudio[disabled] {
    opacity: 0.65;
}

.tour-studio__audio-actions #btnTourStudioPreviewAudio.btn-outline-secondary {
    color: var(--action-slate) !important;
    border-color: var(--action-slate-border) !important;
    background: var(--action-slate-soft) !important;
}

.tour-studio__audio-actions #btnTourStudioPreviewAudio.btn-outline-secondary:hover,
.tour-studio__audio-actions #btnTourStudioPreviewAudio.btn-outline-secondary:focus {
    color: #ffffff !important;
    border-color: var(--action-slate) !important;
    background: var(--action-slate) !important;
}

.tour-studio__audio-actions #btnTourStudioPreviewTranslationAudio[disabled] {
    opacity: 0.65;
}

.tour-studio__audio-actions #btnTourStudioPreviewTranslationAudio.btn-outline-secondary {
    color: var(--action-slate) !important;
    border-color: var(--action-slate-border) !important;
    background: var(--action-slate-soft) !important;
}

.tour-studio__audio-actions #btnTourStudioPreviewTranslationAudio.btn-outline-secondary:hover,
.tour-studio__audio-actions #btnTourStudioPreviewTranslationAudio.btn-outline-secondary:focus {
    color: #ffffff !important;
    border-color: var(--action-slate) !important;
    background: var(--action-slate) !important;
}

#selTourStudioCompanyAudio {
    min-width: 0;
}

#inpTourStudioAudioUpload {
    display: none;
}

#inpTourStudioImageUpload {
    display: none;
}

.tour-studio__passenger-access-note {
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: rgba(15, 138, 108, 0.08);
    border: 1px solid rgba(15, 138, 108, 0.14);
    color: var(--tour-studio-muted);
    font-size: 0.9rem;
}

.tour-studio__passenger-access-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.9rem;
}

.tour-studio__passenger-access-item {
    padding: 0.95rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--tour-studio-border);
    background: var(--tour-studio-surface-strong);
}

.tour-studio__passenger-access-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.tour-studio__passenger-access-code {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--tour-studio-text);
}

.tour-studio__passenger-access-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tour-studio__passenger-access-status--active {
    background: rgba(15, 138, 108, 0.12);
    border: 1px solid rgba(15, 138, 108, 0.18);
    color: var(--tour-studio-accent-strong);
}

.tour-studio__passenger-access-status--inactive {
    background: rgba(187, 65, 77, 0.12);
    border: 1px solid rgba(187, 65, 77, 0.18);
    color: #d95c5c;
}

.tour-studio__passenger-access-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    margin-top: 0.55rem;
    color: var(--tour-studio-muted);
    font-size: 0.86rem;
}

#tourStudio .tour-studio__passenger-access-status--active {
    color: var(--tour-studio-accent-strong) !important;
    -webkit-text-fill-color: var(--tour-studio-accent-strong) !important;
}

#tourStudio .tour-studio__passenger-access-status--inactive {
    color: #d95c5c !important;
    -webkit-text-fill-color: #d95c5c !important;
}

#tourStudio .tour-studio__passenger-access-meta span,
#tourStudio .tour-studio__passenger-access-note,
#tourStudio .tour-studio__translation-meta {
    color: var(--tour-studio-muted) !important;
    -webkit-text-fill-color: var(--tour-studio-muted) !important;
}

#tourStudio .tour-studio__translation-language {
    color: var(--tour-studio-accent-strong) !important;
    -webkit-text-fill-color: var(--tour-studio-accent-strong) !important;
}

.tour-studio__passenger-access-actions {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-end;
}

.tour-studio__passenger-access-edit {
    margin-top: 0.8rem;
}

.tour-studio__passenger-access-edit .form-group {
    max-width: 14rem;
}

.tour-studio__passenger-readiness-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.tour-studio__passenger-readiness-metric {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--tour-studio-border);
    background: var(--tour-studio-surface-strong);
}

.tour-studio__passenger-readiness-metric-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--tour-studio-text);
}

.tour-studio__passenger-readiness-metric-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tour-studio-muted);
}

.tour-studio__passenger-readiness-metric-detail {
    font-size: 0.82rem;
    color: var(--tour-studio-muted);
}

.tour-studio__passenger-readiness-section {
    margin-top: 1rem;
}

.tour-studio__passenger-readiness-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tour-studio-muted);
}

.tour-studio__passenger-readiness-languages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.65rem;
}

.tour-studio__passenger-readiness-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.24rem 0.6rem;
    border-radius: 999px;
    background: rgba(15, 138, 108, 0.1);
    border: 1px solid rgba(15, 138, 108, 0.18);
    color: var(--tour-studio-accent-strong);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
}

.tour-studio__passenger-readiness-chip--empty {
    background: rgba(73, 90, 106, 0.1);
    border-color: rgba(73, 90, 106, 0.18);
    color: var(--tour-studio-muted);
}

.tour-studio__passenger-readiness-note {
    margin-top: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: rgba(15, 138, 108, 0.08);
    border: 1px solid rgba(15, 138, 108, 0.14);
    color: var(--tour-studio-muted);
    font-size: 0.9rem;
}

.tour-studio__translation-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.tour-studio__translation-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.18rem;
    width: 100%;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--tour-studio-border);
    border-radius: 14px;
    background: var(--tour-studio-surface-strong);
    text-decoration: none;
}

.tour-studio__translation-item.is-selected {
    border-color: rgba(15, 138, 108, 0.45);
    box-shadow: 0 0 0 1px rgba(15, 138, 108, 0.22);
}

.tour-studio__translation-language {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: rgba(15, 138, 108, 0.1);
    color: var(--tour-studio-accent-strong);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tour-studio__translation-title {
    font-size: 0.95rem;
    color: var(--tour-studio-text);
}

.tour-studio__translation-meta {
    font-size: 0.82rem;
    color: var(--tour-studio-muted);
}

.tour-studio__translation-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 1rem;
}

.tour-studio__translation-audio {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--tour-studio-border);
}

.tour-studio__translation-audio-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.tour-studio__translation-audio-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.tour-studio__translation-audio-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.18rem;
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--tour-studio-border);
    border-radius: 14px;
    background: rgba(8, 16, 24, 0.42);
    text-decoration: none;
}

.tour-studio__translation-audio-item.is-selected {
    border-color: rgba(15, 138, 108, 0.45);
    box-shadow: 0 0 0 1px rgba(15, 138, 108, 0.22);
}

.tour-studio__translation-audio-name {
    font-size: 0.92rem;
    color: var(--tour-studio-text);
}

.tour-studio__translation-audio-meta {
    font-size: 0.82rem;
    color: var(--tour-studio-muted);
}

#tourStudio .tour-studio__translation-audio-meta {
    color: var(--tour-studio-muted) !important;
    -webkit-text-fill-color: var(--tour-studio-muted) !important;
}

html,
body {
    min-height: 100%;
    background: var(--tour-shell-bg);
}

body {
    background: var(--tour-shell-bg);
    color: var(--tour-studio-text);
}

.header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar,
.my-navbar {
    background: rgba(255, 255, 255, 0.78) !important;
    border-bottom: 1px solid var(--tour-shell-border);
    box-shadow: 0 16px 32px rgba(20, 48, 68, 0.08);
    backdrop-filter: blur(14px);
}

.navbar .navbar-brand,
.navbar .nav-link,
.navbar .dropdown-item,
.navbar .navbar-toggler,
.my-navbar .navbar-brand,
.my-navbar .nav-link,
.my-navbar .dropdown-item,
.my-navbar .navbar-toggler {
    color: var(--tour-studio-text) !important;
}

.navbar .dropdown-menu,
.my-navbar .dropdown-menu {
    background: var(--tour-studio-surface-strong);
    border: 1px solid var(--tour-studio-border);
    border-radius: 16px;
    box-shadow: var(--tour-studio-shadow);
    overflow: hidden;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus,
.my-navbar .dropdown-item:hover,
.my-navbar .dropdown-item:focus {
    background: rgba(15, 138, 108, 0.08);
    color: var(--tour-studio-text) !important;
}

#footer {
    background: rgba(255, 255, 255, 0.78);
    color: var(--tour-studio-muted);
    border-top: 1px solid var(--tour-shell-border);
    box-shadow: 0 -12px 28px rgba(20, 48, 68, 0.06);
    backdrop-filter: blur(14px);
}

.card,
.modal-content,
.bootbox .modal-content {
    background: var(--tour-studio-surface) !important;
    color: var(--tour-studio-text) !important;
    border: 1px solid var(--tour-studio-border) !important;
    border-radius: 20px;
    box-shadow: var(--tour-studio-shadow);
}

.card-header,
.card-footer,
.modal-header,
.modal-footer,
.bootbox .modal-header,
.bootbox .modal-footer {
    background: rgba(255, 255, 255, 0.35) !important;
    color: var(--tour-studio-text) !important;
    border-color: var(--tour-studio-border) !important;
}

.card-body,
.modal-body,
.bootbox .modal-body {
    color: var(--tour-studio-text) !important;
}

.modal-title,
.bootbox .modal-title,
.text-primary {
    color: var(--tour-studio-accent-strong) !important;
}

.close,
.close span,
button.close {
    color: var(--tour-studio-muted) !important;
    text-shadow: none;
    opacity: 1;
}

.form-control,
.custom-select,
.input-group-text,
.custom-control-label::before,
.dropdown-menu,
.table,
.table td,
.table th {
    color: var(--tour-studio-text);
}

.form-control,
.custom-select,
.input-group-text,
.custom-control-label::before {
    background: var(--field-bg) !important;
    border-color: var(--field-border) !important;
    border-radius: 12px;
}

.form-control:focus,
.custom-select:focus,
textarea.form-control:focus,
select.form-control:focus {
    background: var(--field-bg-focus) !important;
    color: var(--tour-studio-text) !important;
    border-color: var(--field-border-focus) !important;
    box-shadow: 0 0 0 0.2rem rgba(15, 138, 108, 0.12) !important;
}

.form-control::placeholder,
textarea.form-control::placeholder {
    color: var(--tour-studio-muted) !important;
}

.btn-outline-primary,
.btn-info,
.btn-outline-info {
    color: var(--action-blue) !important;
    border-color: var(--action-blue-border) !important;
    background: var(--action-blue-soft) !important;
}

.btn-outline-success,
.btn-success {
    color: var(--action-green) !important;
    border-color: var(--action-green-border) !important;
    background: var(--action-green-soft) !important;
}

.btn-outline-danger,
.btn-danger {
    color: var(--action-red) !important;
    border-color: var(--action-red-border) !important;
    background: var(--action-red-soft) !important;
}

.btn-outline-warning,
.btn-warning {
    color: var(--action-amber) !important;
    border-color: var(--action-amber-border) !important;
    background: var(--action-amber-soft) !important;
}

.btn-outline-secondary,
.btn-secondary {
    color: var(--action-slate) !important;
    border-color: var(--action-slate-border) !important;
    background: var(--action-slate-soft) !important;
}

.btn-primary {
    color: #ffffff !important;
    border-color: var(--action-blue) !important;
    background: var(--action-blue) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-info:hover,
.btn-info:focus,
.btn-outline-info:hover,
.btn-outline-info:focus {
    color: #ffffff !important;
    border-color: var(--action-blue) !important;
    background: var(--action-blue) !important;
}

.btn-success:hover,
.btn-success:focus,
.btn-outline-success:hover,
.btn-outline-success:focus {
    color: #ffffff !important;
    border-color: var(--action-green) !important;
    background: var(--action-green) !important;
}

.btn-danger:hover,
.btn-danger:focus,
.btn-outline-danger:hover,
.btn-outline-danger:focus {
    color: #ffffff !important;
    border-color: var(--action-red) !important;
    background: var(--action-red) !important;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-outline-warning:hover,
.btn-outline-warning:focus {
    color: #3d2900 !important;
    border-color: var(--action-amber) !important;
    background: #f0b429 !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    color: #ffffff !important;
    border-color: var(--action-slate) !important;
    background: var(--action-slate) !important;
}

.table-responsive,
.dataTables_wrapper,
.dataTables_scroll,
.dataTables_scrollHead,
.dataTables_scrollBody {
    color: var(--tour-studio-text);
}

.table,
.table-striped tbody tr:nth-of-type(odd),
.table-striped tbody tr:nth-of-type(even) {
    background: transparent !important;
}

.table thead th,
table.dataTable thead th,
table.dataTable thead td {
    color: var(--tour-studio-accent-strong) !important;
    border-bottom: 1px solid var(--tour-studio-border) !important;
}

.table td,
.table th,
table.dataTable tbody td,
table.dataTable tbody th {
    border-color: rgba(20, 48, 68, 0.1) !important;
    background: transparent !important;
}

table.dataTable tbody tr:hover,
.table-hover tbody tr:hover {
    background: rgba(15, 138, 108, 0.06) !important;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    background: var(--field-bg) !important;
    color: var(--tour-studio-text) !important;
    border: 1px solid var(--field-border) !important;
    border-radius: 12px;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    color: var(--tour-studio-muted) !important;
}

.page-link,
.paginate_button a {
    background: rgba(255, 255, 255, 0.7) !important;
    color: var(--tour-studio-text) !important;
    border-color: rgba(20, 48, 68, 0.12) !important;
}

.page-item.active .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: rgba(15, 138, 108, 0.14) !important;
    color: var(--tour-studio-accent-strong) !important;
    border-color: rgba(15, 138, 108, 0.24) !important;
}

.notifit_confirm,
.notifit_warning,
.notifit_error,
.notifit_success,
.notifit_info {
    border-radius: 16px !important;
    box-shadow: var(--tour-studio-shadow) !important;
}

@media (max-width: 1199px) {
    .dashboard-notice {
        flex-direction: column;
        align-items: flex-start;
    }

    .tour-studio__workspace {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .tour-studio__workspace.tour-studio__workspace--rail-collapsed {
        grid-template-columns: 1fr;
    }

    .translations-studio__workspace {
        grid-template-columns: 1fr;
    }

    .translations-studio__context-grid {
        grid-template-columns: 1fr;
    }

    .translations-prototype__toolbar,
    .translations-prototype__child-header,
    .translations-prototype__configuration-header {
        flex-direction: column;
        align-items: stretch;
    }

    .translations-prototype__metrics {
        width: 100%;
    }

    .translations-prototype__metric {
        flex: 1 1 0;
    }

    .tour-studio__rail.is-collapsed {
        display: none;
        margin-left: 0;
        opacity: 1;
        transform: none;
    }

    .tour-studio__rail .card-body,
    .tour-studio__map-card .card-body {
        min-height: auto;
    }

    .tour-studio__audio-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tour-studio__passenger-access-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tour-studio__translation-actions {
        grid-template-columns: 1fr;
    }

    .tour-studio__passenger-readiness-summary {
        grid-template-columns: 1fr;
    }

    .tour-studio__translation-audio-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tour-studio__editor-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .tour-studio__editor-actions-secondary {
        justify-content: flex-start;
    }

    #tourStudioMap {
        min-height: 28rem;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --tour-shell-bg: linear-gradient(180deg, #081018 0%, #111a24 100%);
        --tour-shell-border: rgba(141, 170, 196, 0.18);
        --tour-shell-tab-bg: rgba(13, 21, 32, 0.85);
        --tour-shell-tab-active: #111b25;
        --tour-studio-bg: #0f1720;
        --tour-studio-surface: rgba(18, 26, 36, 0.94);
        --tour-studio-surface-strong: #111b25;
        --tour-studio-border: rgba(141, 170, 196, 0.18);
        --tour-studio-text: #edf4fa;
        --tour-studio-muted: #9db1c3;
        --tour-studio-accent: #57d3b4;
        --tour-studio-accent-strong: #84e4cc;
        --tour-studio-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
        --tour-studio-map-hint: rgba(237, 244, 250, 0.82);
        --field-bg: #0f1720;
        --field-bg-focus: #111f2b;
        --field-border: rgba(141, 170, 196, 0.22);
        --field-border-focus: rgba(87, 211, 180, 0.5);
    }

    body {
        background: var(--tour-shell-bg);
        color: var(--tour-studio-text);
    }

    .navbar,
    .my-navbar {
        background: rgba(16, 25, 37, 0.88) !important;
        border-color: var(--tour-shell-border);
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    }

    #footer {
        background: rgba(16, 25, 37, 0.88);
        color: var(--tour-studio-muted);
        border-color: var(--tour-shell-border);
        box-shadow: 0 -14px 30px rgba(0, 0, 0, 0.24);
    }

    .tabHeader .nav-tabs {
        background: var(--tour-shell-tab-bg);
        border-color: var(--tour-shell-border);
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    }

    .tabHeader .nav-tabs .nav-link {
        color: var(--tour-studio-muted) !important;
    }

    .tabHeader .nav-tabs .nav-link:hover,
    .tabHeader .nav-tabs .nav-link:focus {
        color: var(--tour-studio-text) !important;
        border-color: var(--tour-shell-border) !important;
        background: rgba(255, 255, 255, 0.04) !important;
    }

    .tabHeader .nav-tabs .nav-link.active,
    .tabHeader .nav-tabs .show > .nav-link {
        color: var(--tour-studio-text) !important;
        background: var(--tour-shell-tab-active) !important;
        border-color: rgba(87, 211, 180, 0.22) !important;
        box-shadow: inset 0 0 0 1px rgba(87, 211, 180, 0.08);
    }

    #tours,
    #tourStudio,
    #tourStudio .card,
    #tourStudio .card-body,
    #tourStudio .card-header,
    #tourStudio .card-footer,
    #tourStudio h3,
    #tourStudio h4,
    #tourStudio p,
    #tourStudio label,
    #tourStudio span,
    #tourStudio .btn-link,
    #tourStudio .tour-studio__tour-item,
    #tourStudio .tour-studio__stop-item,
    #tourStudio .tour-studio__empty-state,
    #tourStudio .tour-studio__map-hint {
        color: var(--tour-studio-text) !important;
    }

    #tourStudio {
        background: transparent;
    }

    .card,
    .modal-content,
    .bootbox .modal-content {
        background: var(--tour-studio-surface) !important;
        color: var(--tour-studio-text) !important;
        border-color: var(--tour-studio-border) !important;
    }

    .card-header,
    .card-footer,
    .modal-header,
    .modal-footer,
    .bootbox .modal-header,
    .bootbox .modal-footer {
        background: rgba(255, 255, 255, 0.02) !important;
        border-color: var(--tour-studio-border) !important;
    }

    .form-control,
    .custom-select,
    .input-group-text,
    .custom-control-label::before,
    .dataTables_wrapper .dataTables_filter input,
    .dataTables_wrapper .dataTables_length select {
        background-color: #0f1720 !important;
        border-color: rgba(141, 170, 196, 0.22) !important;
        color: var(--tour-studio-text) !important;
    }

    .form-control::placeholder,
    textarea.form-control::placeholder {
        color: #7f95a8 !important;
    }

    .table td,
    .table th,
    table.dataTable tbody td,
    table.dataTable tbody th,
    table.dataTable thead th,
    table.dataTable thead td {
        border-color: rgba(141, 170, 196, 0.14) !important;
        color: var(--tour-studio-text) !important;
    }

    .page-link,
    .paginate_button a,
    .navbar .dropdown-menu,
    .my-navbar .dropdown-menu {
        background: #111b25 !important;
        color: var(--tour-studio-text) !important;
        border-color: rgba(141, 170, 196, 0.18) !important;
    }

    #tourStudio .card {
        background: var(--tour-studio-surface) !important;
        border-color: var(--tour-studio-border) !important;
    }

    #tourStudio .card-header,
    #tourStudio .card-footer,
    #tourStudio .card-body {
        background: transparent !important;
        border-color: var(--tour-studio-border) !important;
    }

    #tourStudio .tour-studio__tour-item,
    #tourStudio .tour-studio__stop-item {
        background: var(--tour-studio-surface-strong) !important;
        border-color: rgba(141, 170, 196, 0.16) !important;
    }

    #tourStudio .tour-studio__tour-item.is-selected,
    #tourStudio .tour-studio__stop-item.is-selected {
        background: rgba(87, 211, 180, 0.12) !important;
        border-color: rgba(87, 211, 180, 0.4) !important;
    }

    #tourStudio .tour-studio__subtitle,
    #tourStudio .tour-studio__muted,
    #tourStudio .tour-studio__tour-meta,
    #tourStudio .tour-studio__stop-meta {
        color: var(--tour-studio-muted) !important;
    }

    #tourStudio .tour-studio__stop-meta-inactive {
        color: #d95c5c !important;
        -webkit-text-fill-color: #d95c5c !important;
    }

    #tourStudio .tour-studio__eyebrow,
    #tourStudio .text-primary,
    #tourStudio .input-group-text i {
        color: var(--tour-studio-accent-strong) !important;
    }

    #tourStudio .tour-studio__empty-state,
    #tourStudio .tour-studio__map-hint {
        background: #0d1520 !important;
        color: var(--tour-studio-muted) !important;
        border: 1px solid rgba(141, 170, 196, 0.12);
    }

    #tourStudio .tour-studio__map-hint strong {
        color: var(--tour-studio-text) !important;
    }

    #tourStudio .form-control,
    #tourStudio textarea.form-control,
    #tourStudio select.form-control,
    #tourStudio .input-group-text,
    #tourStudio .custom-control-label::before {
        background-color: #0f1720 !important;
        border-color: rgba(141, 170, 196, 0.22) !important;
        color: var(--tour-studio-text) !important;
    }

    #tourStudio .form-control::placeholder,
    #tourStudio textarea.form-control::placeholder {
        color: #7f95a8 !important;
    }

    #tourStudio .form-control:focus,
    #tourStudio textarea.form-control:focus,
    #tourStudio select.form-control:focus {
        background-color: #0f1720 !important;
        color: var(--tour-studio-text) !important;
        border-color: rgba(87, 211, 180, 0.5) !important;
        box-shadow: 0 0 0 0.2rem rgba(87, 211, 180, 0.15) !important;
    }

    #tourStudio .badge-light {
        background: rgba(87, 211, 180, 0.12) !important;
        color: var(--tour-studio-accent-strong) !important;
    }

    #tourStudio #btnTourStudioFit {
        color: var(--tour-studio-text) !important;
        border-color: rgba(141, 170, 196, 0.24) !important;
        background: rgba(255, 255, 255, 0.02) !important;
    }

    #tourStudio #btnTourStudioFit:hover,
    #tourStudio #btnTourStudioFit:focus {
        color: #ffffff !important;
        border-color: var(--action-slate) !important;
        background: var(--action-slate) !important;
    }

    #tourStudio #btnTourStudioSaveStop {
        color: var(--action-green) !important;
        border-color: var(--action-green-border) !important;
        background: var(--action-green-soft) !important;
    }

    #tourStudio #btnTourStudioSaveStop:hover,
    #tourStudio #btnTourStudioSaveStop:focus {
        color: #ffffff !important;
        border-color: var(--action-green) !important;
        background: var(--action-green) !important;
    }

    #tourStudio #btnTourStudioCreatePersonalCopy {
        color: #b06a00 !important;
        border-color: #d7a24d !important;
        background: #2b2312 !important;
    }

    #tourStudio #btnTourStudioCreatePersonalCopy:hover,
    #tourStudio #btnTourStudioCreatePersonalCopy:focus {
        color: #ffffff !important;
        border-color: #d7a24d !important;
        background: #b06a00 !important;
    }

    .tour-studio__tour-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .tour-studio__tour-actions-primary {
        display: flex;
        gap: 0.75rem;
        flex-wrap: wrap;
        align-items: center;
    }

    .tour-studio__tour-actions-primary .btn {
        min-width: 13rem;
    }

    .tour-studio__copy-actions {
        display: flex;
        gap: 0.75rem;
        align-items: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .tour-studio__copy-actions .form-control {
        min-width: 18rem;
        width: 100%;
        flex: 1 1 100%;
    }

    #tourStudio #btnTourStudioCreatePersonalCopy {
        width: 100%;
    }

    .tour-studio__rail-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .tour-studio__rail-actions .btn {
        width: 100%;
    }

    @media (max-width: 1199.98px) {
        .tour-studio__copy-actions {
            flex-wrap: wrap;
        }

        .tour-studio__copy-actions .form-control {
            max-width: none;
            width: 100%;
        }
    }

    #tourStudio #btnTourStudioUploadAudio {
        color: var(--action-blue) !important;
        border-color: var(--action-blue-border) !important;
        background: var(--action-blue-soft) !important;
    }

    #tourStudio #btnTourStudioUploadAudio:hover,
    #tourStudio #btnTourStudioUploadAudio:focus {
        color: #ffffff !important;
        border-color: var(--action-blue) !important;
        background: var(--action-blue) !important;
    }

    #tourStudio #btnTourStudioPreviewAudio.btn-outline-secondary {
        color: var(--action-slate) !important;
        border-color: var(--action-slate-border) !important;
        background: var(--action-slate-soft) !important;
    }

    #tourStudio #btnTourStudioPreviewAudio.btn-outline-secondary:hover,
    #tourStudio #btnTourStudioPreviewAudio.btn-outline-secondary:focus {
        color: #ffffff !important;
        border-color: var(--action-slate) !important;
        background: var(--action-slate) !important;
    }

    #tourStudio #btnTourStudioPreviewTranslationAudio.btn-outline-secondary {
        color: var(--action-slate) !important;
        border-color: var(--action-slate-border) !important;
        background: var(--action-slate-soft) !important;
    }

    #tourStudio #btnTourStudioPreviewTranslationAudio.btn-outline-secondary:hover,
    #tourStudio #btnTourStudioPreviewTranslationAudio.btn-outline-secondary:focus {
        color: #ffffff !important;
        border-color: var(--action-slate) !important;
        background: var(--action-slate) !important;
    }

    #tourStudioMap {
        border-color: rgba(141, 170, 196, 0.22) !important;
    }

    .tour-studio .card-header,
    .tour-studio .card-footer {
        background: rgba(255, 255, 255, 0.02);
        border-color: var(--tour-studio-border);
    }

    .tour-studio .form-control,
    .tour-studio .input-group-text,
    .tour-studio .custom-control-label::before,
    .tour-studio .custom-select {
        background-color: #0f1720;
        border-color: rgba(141, 170, 196, 0.18);
        color: var(--tour-studio-text);
    }

    .tour-studio .form-control:focus,
    .tour-studio .custom-select:focus {
        background-color: #0f1720;
        color: var(--tour-studio-text);
    }

    .tour-studio .badge-light {
        background: rgba(87, 211, 180, 0.12);
        color: var(--tour-studio-accent-strong);
    }

    .company-billing-modal__tabs {
        margin-bottom: 1rem;
        gap: 0.65rem;
        padding: 0.5rem;
        border-bottom: none;
        border-radius: 20px;
        background: var(--tour-shell-tab-bg);
        border: 1px solid var(--tour-shell-border);
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    }

    .company-billing-modal__tabs .nav-link {
        color: var(--tour-studio-muted) !important;
        border: 1px solid transparent;
        border-radius: 14px;
        padding: 0.85rem 1.15rem;
        font-weight: 600;
        background: transparent;
    }

    .company-billing-modal__tabs .nav-link:hover,
    .company-billing-modal__tabs .nav-link:focus {
        color: var(--tour-studio-text) !important;
        border-color: var(--tour-shell-border) !important;
        background: rgba(255, 255, 255, 0.04) !important;
    }

    .company-billing-modal__tabs .nav-link.active,
    .company-billing-modal__tabs .show > .nav-link {
        color: var(--tour-studio-text) !important;
        background: var(--tour-shell-tab-active) !important;
        border-color: rgba(87, 211, 180, 0.22) !important;
        box-shadow: inset 0 0 0 1px rgba(87, 211, 180, 0.08);
    }

    .company-billing-modal__content {
        padding-top: 0.5rem;
    }

    .company-billing-modal__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.75rem;
    }

.company-billing-modal__support-note {
    margin-bottom: 1rem;
    color: #8daac4;
    font-size: 0.92rem;
}

.company-subscription-card {
    padding: 1.15rem 1.25rem;
    border-radius: 20px;
    border: 1px solid var(--tour-studio-border);
    background: rgba(11, 18, 32, 0.65);
}

.company-subscription-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.company-subscription-card__title {
    color: var(--tour-studio-text);
}

.company-subscription-card__body {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.company-subscription-card__metric {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--tour-studio-border);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.company-subscription-card__label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--tour-studio-muted);
}

.company-subscription-card__note {
    margin-top: 0.95rem;
    color: var(--tour-studio-muted);
    font-size: 0.92rem;
}

.company-upgrade-modal__message {
    margin-bottom: 1rem;
    color: var(--tour-studio-muted);
}

.company-upgrade-modal__options {
    display: grid;
    gap: 0.75rem;
}

.company-upgrade-modal__option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    text-align: left;
    border-width: 2px;
}

.company-upgrade-modal__option--founding {
    color: #f0c15d !important;
    border-color: rgba(240, 193, 93, 0.38) !important;
    background: rgba(240, 193, 93, 0.1) !important;
}

.company-upgrade-modal__option--standard {
    color: #69b7ff !important;
    border-color: rgba(105, 183, 255, 0.36) !important;
    background: rgba(105, 183, 255, 0.1) !important;
}

.company-upgrade-modal__option--pro {
    color: #f28b82 !important;
    border-color: rgba(242, 139, 130, 0.38) !important;
    background: rgba(242, 139, 130, 0.1) !important;
}

.company-upgrade-modal__option--enterprise {
    color: #c5ced8 !important;
    border-color: rgba(197, 206, 216, 0.3) !important;
    background: rgba(197, 206, 216, 0.08) !important;
}

.company-upgrade-modal__option--founding:hover,
.company-upgrade-modal__option--founding:focus,
.company-upgrade-modal__option--standard:hover,
.company-upgrade-modal__option--standard:focus,
.company-upgrade-modal__option--pro:hover,
.company-upgrade-modal__option--pro:focus,
.company-upgrade-modal__option--enterprise:hover,
.company-upgrade-modal__option--enterprise:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(20, 48, 68, 0.14);
}

.company-upgrade-modal__option span {
    color: var(--tour-studio-muted);
    font-size: 0.9rem;
}

@media (max-width: 991px) {
    .company-subscription-card__body {
        grid-template-columns: 1fr;
    }

    .company-subscription-card__header {
        flex-direction: column;
        align-items: stretch;
    }
}
