:root {
    --kiosk-primary: #c92a1e;
    --kiosk-primary-dark: #a51f16;
    --kiosk-primary-light: #fbe9e7;
    --kiosk-primary-600: #b71c1c;
    --kiosk-primary-50: rgba(211,47,47,.08);
    --kiosk-text-gray: gray;
}

body { background:#f6f7fb; }
.kiosk-content { padding-bottom: 126px!important; }
.btn-kiosk { padding: 6px 14px; border-color: var(--kiosk-primary) }
.kiosk-card { border-radius: 18px; box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.kiosk-footer {
    position: fixed; left: 0; right: 0; bottom: 0;
    background: rgba(246,247,251,.95);
    border-top: 1px solid #e6e6e6;
    z-index: 1000;
}
.cart-panel { position: sticky; top: 18px; }
.container-fluid.kiosk-wrap { max-width: 100%; }
/* 主按鈕（開始訂票） */
.btn-kiosk-primary {
    background-color: var(--kiosk-primary);
    border-color: var(--kiosk-primary);
    color: #fff;
}

.btn-kiosk-primary:hover,
.btn-kiosk-primary:active {
    background-color: var(--kiosk-primary-dark);
    border-color: var(--kiosk-primary-dark);
    color: #fff;
}

/* 次要按鈕（加購餐點、訂單查詢） */
.btn-kiosk-outline {
    color: var(--kiosk-primary)!important;
    border: 1px solid var(--kiosk-primary);
    background-color: #fff!important;
    min-width: 90px;
    padding: 6px 14px;
}

.btn-kiosk-outline:hover {
    background-color: var(--kiosk-primary-light);
    color: var(--kiosk-primary-dark);
}

/* 底部結帳按鈕 */
.btn-kiosk-checkout {
    background-color: var(--kiosk-primary);
    border-color: var(--kiosk-primary);
    color: #fff;
    font-weight: 700;
}

.btn-kiosk-checkout:hover {
    background-color: var(--kiosk-primary-dark);
}

hr {
    margin: 6px 0;
    border: none;
    border-top: 1px solid #dfdfdf;
}

/* 強化標題文字 */
.kiosk-title {
    color: var(--kiosk-primary);
    font-weight: 800;
}
/* 底部：一般功能鍵（首頁 / 返回） */
.btn-kiosk-footer {
    background: #fff;
    color: var(--kiosk-primary);
    border: 2px solid var(--kiosk-primary);
    font-weight: 700;
}

.btn-kiosk-footer:hover {
    background: var(--kiosk-primary-light);
    color: var(--kiosk-primary-dark);
}

/* 底部：主要動作（結帳） */
.btn-kiosk-footer-main {
    background: var(--kiosk-primary);
    color: #fff;
    border: 2px solid var(--kiosk-primary);
    font-weight: 800;
}

.btn-kiosk-footer-main:hover {
    background: var(--kiosk-primary-dark);
    border-color: var(--kiosk-primary-dark);
}

.kiosk-title { font-size: 26px; font-weight: 900; color: var(--kiosk-primary); }
.kiosk-subtitle { color:#5c6b7a; font-weight:700; }

.kiosk-step-badge{
    background:#fff;
    border:1px solid #e9ecef;
    padding:10px 14px;
    border-radius:999px;
    font-weight:900;
    color:#334155;
}

.poster-sm{
    height: 220px;
    border-radius: 16px;
}

.chip{
    display:inline-block;
    border:1px solid #e9ecef;
    background:#fff;
    padding:6px 10px;
    border-radius:999px;
    font-weight:800;
    color:#334155;
    font-size:14px;
}

.btn-date{
    border:2px solid #e9ecef;
    background:#fff;
    padding:10px 14px;
    border-radius:14px;
    font-weight:900;
    color:#334155;
    text-decoration:none;
}
.btn-date.active{
    border-color: var(--kiosk-primary);
    color: var(--kiosk-primary);
}

.room-title{
    font-size:20px;
    font-weight:900;
    color:#111827;
}

.btn-time{
    min-width: 110px;
    height: 56px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius: 14px;
    border:2px solid var(--kiosk-primary);
    color: var(--kiosk-primary);
    background:#fff;
    font-weight:900;
    text-decoration:none;
}
.btn-time:hover{
    background: var(--kiosk-primary);
    color: #fff;
}

.poster-sm-wrap{
    height: 220px;             /* 可改小 */
    border-radius: 16px;
    background: #f1f3f5;
    overflow: hidden;
    display:flex;
    align-items:center;
    justify-content:center;
}

.poster-sm-img{
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;       /* 關鍵：完整顯示 */
    display:block;
}

/* 左側縮圖容器：高度跟目前卡片內容差不多，手機也不會太大 */
.movie-thumb-wrap{
    width: 100%;          /* 你想更小可用 120 */
    max-width: 200px;
    border-radius: 14px;
    background: #f1f3f5;
    overflow: hidden;
    display:flex;
    align-items:center;
    justify-content:center;
    border: 1px solid rgba(0,0,0,.06);
}

/* 縮圖完整顯示、不裁切 */
.movie-thumb-img{
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display:block;
}

/* 手機再縮一點，避免太佔 */
@media (max-width: 576px){
    .movie-thumb-wrap{
        width: 110px;
        height: 150px;
    }
}

/* ✅ 同頁多部電影：Grid */
.kiosk-grid{
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 先保守 2 欄 */
}

/* 1080p 大螢幕：通常可 3~4 欄 */
@media (min-width: 1200px){
    .kiosk-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1600px){
    .kiosk-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 卡片：縮小高度，避免一張卡太長 */
.kiosk-movie-card{
    margin: 0 !important;
    padding: 14px !important;
}

/* 縮圖：縮成 kiosk 友善尺寸 */
.movie-thumb-wrap{
    width: 88px;
    height: 120px;
    border-radius: 14px;
    background: #f1f3f5;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.06);
    display:flex;
    align-items:center;
    justify-content:center;
}
.movie-thumb-img{
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* ✅ 顯示完整海報，不要只顯示一角 */
    display:block;
}

/* 標題/廳別字級：比原本小一點，讓卡片更矮 */
.movie-title{
    font-weight: 900;
    font-size: 20px;
    line-height: 1.2;
    color:#111827;
    margin-bottom: 8px;
}
.movie-room{
    font-weight: 800;
    color:#6b7280;
    margin-bottom: 8px;
}

/* 時間按鈕：縮小，才能塞更多 */
.btn-time{
    border: 2px solid var(--kiosk-primary);
    color: var(--kiosk-primary);
    border-radius: 12px;
    background:#fff;

    height: 44px;
    padding: 6px 10px;
    font-weight: 900;
    font-size: 16px;

    /* ✅ 關鍵：可縮，不會撐爆 */
    flex: 1 1 92px;     /* 基準 92px，不夠就換行 */
    max-width: 140px;   /* 避免在大螢幕變超寬 */
    min-width: 0;       /* 讓它真的可以縮 */
    box-sizing: border-box;

    display:inline-flex;
    align-items:center;
    justify-content:center;
    white-space: nowrap; /* 時間不要換行 */
}

.btn-time:hover,
.btn-time:active{
    background: var(--kiosk-primary);
    color:#fff;
}

.time-grid{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

/* progress bar */
.progress-bar {
    background-color: var(--kiosk-primary) !important;
}

/* badge */
.badge.bg-primary {
    background-color: var(--kiosk-primary) !important;
}

/* focus input */
.form-control:focus,
.form-select:focus {
    border-color: var(--kiosk-primary) !important;
    box-shadow: 0 0 0 0.15rem rgba(211, 47, 47, 0.25) !important;
}

.kiosk-step-badge,
.step-badge {
    background-color: var(--kiosk-primary) !important;
    color: #fff !important;
}

/* 上方流程進度條背景 */
.progress {
    background-color: #eee;
}

.alert-kiosk {
    background-color: var(--kiosk-primary-light);
    border: 2px solid var(--kiosk-primary);
    color: var(--kiosk-primary-dark);
    border-radius: 12px;
    font-weight: 600;
}

.alert-kiosk strong {
    color: var(--kiosk-primary-dark);
}

.alert-kiosk::before {
    content: "🧭 ";
    margin-right: 4px;
}

.bg-secondary {
    --bs-bg-opacity: 1;
    background-color: #9b9b9b !important;
}

.text-primary {
     color: var(--kiosk-primary) !important;
}

.btn-outline-primary {
    --bs-btn-color: var(--kiosk-primary);
    --bs-btn-border-color: var(--kiosk-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--kiosk-primary);
    --bs-btn-hover-border-color: var(--kiosk-primary);
    --bs-btn-focus-shadow-rgb: 93, 135, 255;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--kiosk-primary);
    --bs-btn-active-border-color: var(--kiosk-primary);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--kiosk-primary);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--kiosk-primary);
    --bs-gradient: none;
}

.text-secondary {
    color: gray !important;
}

/* =========================
   Booking Wizard (Step1)
   ========================= */

.kiosk-progress {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
}

.kiosk-progress .progress-bar {
    background: var(--kiosk-primary);
}

/* Step1 左側已加入區塊 */
.kiosk-ticket-left {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
}

.kiosk-ticket-list {
    min-height: 60px;
}
@media (max-width: 576px){
    .kiosk-ticket-list {
        min-height: 100px;
    }
}

.kiosk-ticket-empty {
    color: #9aa3af;
    font-size: 1.75rem;
}

/* 左側每一筆票種列 */
.kiosk-ticket-line {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 10px 12px;
}

/* + / - 按鈕（紅色系） */
.btn-kiosk-outline-sm {
    border: 1px solid var(--kiosk-primary);
    color: var(--kiosk-primary);
    background: #fff;
}

.btn-kiosk-outline-sm:hover {
    background: rgba(220, 53, 69, 0.08);
}

/* 清空按鈕 */
.btn-kiosk-clear {
    border: 1px solid var(--kiosk-primary) !important;
    color: var(--kiosk-primary) !important;
    background: #fff;
}

.btn-kiosk-clear:hover {
    background: rgba(220, 53, 69, 0.08);
}

/* Step1 右側票種按鈕 */
.btn-ticket-pick {
    border: 1px solid var(--kiosk-primary);
    color: var(--kiosk-primary);
    background: #fff;
    border-radius: 12px;
    padding: 12px 10px;
    font-weight: 700;
}

.btn-ticket-pick:hover {
    background: rgba(220, 53, 69, 0.08);
}

/* 右側票種標題 */
.kiosk-ticket-title {
    color: var(--kiosk-primary);
    font-weight: 800;
}

/* 紅框提示訊息（你現在的 alert-kiosk） */
.alert-kiosk {
    border: 1px solid var(--kiosk-primary);
    background: rgba(220, 53, 69, 0.08);
    color: #7a0c13;
    border-radius: 12px;
    padding: 12px 14px;
}

/* 成功 Toast */
/* 成功 Toast 外框 */
.toast-success {
    background-color: rgba(20, 160, 120, 0.9) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    border-radius: 12px;

    padding: 16px 22px 16px 56px !important;

    font-size: 0.95rem;          /* ✅ 字小一點 */
    font-weight: 600;
    line-height: 1.5;            /* ✅ 換行好看 */
    max-width: 420px;            /* ✅ 限制寬度避免太長 */
    white-space: normal !important;  /* ✅ 允許換行 */
    word-break: break-word;      /* ✅ 中文長字也可斷行 */
}

.toast-success:before {
    left: 18px !important;
    top: 50% !important;
    transform: translateY(-50%);
    font-size: 22px;
}


/* container 層級（避免被蓋住） */
#toast-container > div {
    min-width: 300px;
}

.toast-error {
    background-color: rgb(180, 40, 40) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    border-radius: 12px;

    padding: 16px 22px 16px 56px !important;

    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    max-width: 420px;
    white-space: normal !important;
    word-break: break-word;
}

.toast-error:before {
    left: 18px !important;
    top: 50% !important;
    transform: translateY(-50%);
    font-size: 22px;
}

.toast-success,
.toast-error {
    opacity: 1 !important;
}

#toast-container > .toast-success,
#toast-container > .toast-error,
#toast-container > .toast-info,
#toast-container > .toast-warning {
    background-image: none !important;
}

#toast-container > .toast-success {
    background-color: rgb(20, 160, 120) !important;
    opacity: 1 !important;
}

#toast-container > .toast-error {
    background-color: rgb(180, 40, 40) !important;
    opacity: 1 !important;
}

.btn-kiosk-square{
    width: 36px;
    height: 36px;                 /* ✅ 一定要給高度 */
    flex: 0 0 36px;               /* 與 width 一致 */

    padding: 0 !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.6rem !important;
    line-height: 1 !important;    /* ✅ 移除行高干擾 */

    border-radius: 5px;
    box-sizing: border-box;
}

.btn-kiosk-square span{
    transform: translateY(calc(-0.04em));
}

/* md(>=768px) 以上的 responsive font-size utilities */
@media (min-width: 768px) {
    .fs-md-1  { font-size: 0.625rem !important; }
    .fs-md-2  { font-size: 0.75rem !important; }
    .fs-md-3  { font-size: 0.875rem !important; }
    .fs-md-4  { font-size: 1rem !important; }
    .fs-md-5  { font-size: 1.125rem !important; }
    .fs-md-6  { font-size: 1.25rem !important; }

    /* 7~13: 跟你目前的 fs-7~fs-13 一致（含 vw 成長） */
    .fs-md-7  { font-size: calc(1.275rem + 0.3vw) !important; }
    .fs-md-8  { font-size: calc(1.3125rem + 0.75vw) !important; }
    .fs-md-9  { font-size: calc(1.35rem + 1.2vw) !important; }
    .fs-md-10 { font-size: calc(1.375rem + 1.5vw) !important; }
    .fs-md-11 { font-size: calc(1.40625rem + 1.875vw) !important; }
    .fs-md-12 { font-size: calc(1.425rem + 2.1vw) !important; }
    .fs-md-13 { font-size: calc(1.46875rem + 2.625vw) !important; }
}

/* 如果你希望 md 以上到 xl 仍然沿用你原本 1200px 的固定上限，也一起補 */
@media (min-width: 1200px) {
    .fs-md-7  { font-size: 1.5rem !important; }
    .fs-md-8  { font-size: 1.875rem !important; }
    .fs-md-9  { font-size: 2.25rem !important; }
    .fs-md-10 { font-size: 2.5rem !important; }
    .fs-md-11 { font-size: 2.8125rem !important; }
    .fs-md-12 { font-size: 3rem !important; }
    .fs-md-13 { font-size: 3.4375rem !important; }
}

.form-select {
    font-size: .9rem;
}

.btn:hover {
    border-color: var(--kiosk-primary);
}

.bg-success {
    background-color: green !important;
}

[data-bs-theme=light][data-color-theme=Blue_Theme]:root .btn-primary, [data-bs-theme=dark][data-color-theme=Blue_Theme]:root .btn-primary {
    --bs-btn-bg: var(--kiosk-primary);
    --bs-btn-border-color: var(--kiosk-primary);
    --bs-btn-hover-bg: var(--kiosk-primary);
    --bs-btn-hover-border-color: var(--kiosk-primary);
}

.qr-wrap{
    width: min(230px, 70vw);   /* 230 上限，手機自動縮 */
    aspect-ratio: 1/1;         /* 保持正方形 */
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 8px;
    display: grid;
    place-items: center;
    margin: 0 auto;
}

/* 讓 svg 自動縮放，不溢出 */
.qr-wrap svg{
    width: 100%;
    height: 100%;
    display: block;
}

.nav-pills {
    --bs-nav-pills-border-radius: var(--bs-border-radius);
    --bs-nav-pills-link-active-color: #fff;
    --bs-nav-pills-link-active-bg: var(--kiosk-primary);
}

.btn-success {
    --bs-btn-color: #fff;

    /* 主色 */
    --bs-btn-bg: #1f7a63;
    --bs-btn-border-color: #1f7a63;

    /* hover */
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #196652;
    --bs-btn-hover-border-color: #165a48;

    /* focus */
    --bs-btn-focus-shadow-rgb: 31, 122, 99;

    /* active */
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #165a48;
    --bs-btn-active-border-color: #124c3d;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.15);

    /* disabled */
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #1f7a63;
    --bs-btn-disabled-border-color: #1f7a63;

    font-weight: 600;
    letter-spacing: 0.5px;
}

.table > :not(caption) > * > * {
    padding: 10px 16px;
}

.table > tbody > tr:last-child > td {
    border-bottom: 1px solid #c5c7ca;
}

.toast-warning {
    background: #dd7a00!important;
    border-left: 6px solid #B45309;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    font-weight: 500;
}

#toast-container>div {
    opacity: .92;
}

.border-primary {
    border-color: #fbc59e !important;
}

.seat-mini-map-wrap {
    width: 100%;
    min-width: 0;
}

.seat-mini-map-board {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.seat-mini-map-board.is-scroll-mode {
    overflow-x: auto;
    overflow-y: hidden;
}

.seat-mini-map-board.is-scroll-mode .seat-mini-map-scale {
    transform: none !important;
    height: auto !important;
}

.seat-mini-map-scale {
    width: max-content;
    transform-origin: top center;
    margin-left: auto;
    margin-right: auto;
}

.seat-mini-grid {
    width: max-content;
    min-width: max-content;
    margin-left: auto;
    margin-right: auto;
}

.seat-mini-row {
    gap: 4px;
    margin-bottom: 4px;
}

.seat-mini-cell {
    --seat-size: 14px;
    width: var(--seat-size);
    height: var(--seat-size);
    border: 1px solid #2f2f2f;
    border-radius: 2px;
    background: #fff;
    flex: 0 0 var(--seat-size);
    box-sizing: border-box;
    transition: all .15s ease-in-out;
}

.seat-mini-cell.is-assigned {
    background: #198754;
    border-color: #198754;
}

.seat-mini-cell.is-recommended {
    background: #fd7e14;
    border-color: #fd7e14;
}

.seat-mini-cell.is-empty {
    visibility: hidden;
}

.seat-mini-screen-wrap {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.seat-mini-screen {
    min-width: 150px;
    max-width: 60%;
    text-align: center;
    border: 1px solid #777;
    border-radius: 4px;
    padding: 3px 0;
    font-size: 12px;
    letter-spacing: 8px;
    color: #666;
    background: #fafafa;
    line-height: 1.2;
}

.seat-mini-legend {
    width: 14px;
    height: 14px;
    border: 1px solid #2f2f2f;
    border-radius: 2px;
    display: inline-block;
    background: #fff;
    flex: 0 0 14px;
}

.seat-mini-legend.is-assigned {
    background: #198754;
    border-color: #198754;
}

.seat-mini-legend.is-recommended {
    background: #fd7e14;
    border-color: #fd7e14;
}

/* 平板 */
@media (max-width: 991.98px) {
    .seat-mini-cell {
        --seat-size: 11px;
    }

    .seat-mini-screen {
        min-width: 130px;
        font-size: 11px;
        letter-spacing: 6px;
    }

    .seat-mini-legend {
        width: 12px;
        height: 12px;
        flex: 0 0 12px;
    }

    .seat-mini-row {
        gap: 3px;
        margin-bottom: 3px;
    }
}

/* 手機 */
@media (max-width: 575.98px) {
    .seat-mini-map-board {
        padding: 12px 8px !important;
    }

    .seat-mini-cell {
        --seat-size: 9px;
        border-radius: 1px;
    }

    .seat-mini-screen {
        min-width: 110px;
        max-width: 70%;
        font-size: 10px;
        letter-spacing: 4px;
        padding: 2px 0;
    }

    .seat-mini-legend {
        width: 10px;
        height: 10px;
        flex: 0 0 10px;
    }

    .seat-mini-legend-wrap {
        gap: 12px !important;
        font-size: 12px;
    }

    .seat-mini-row {
        gap: 2px;
        margin-bottom: 2px;
    }
}

/* 手機版：縮小 card-body padding */
@media (max-width: 575.98px) {

    .card-body {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    /* 若有 pb-4 / pt-1 等 bootstrap class 也一起縮 */
    .card-body.pb-4 {
        padding-bottom: 0.75rem !important;
    }

    .card-body.pt-1 {
        padding-top: 0.5rem !important;
    }

}

.kiosk-ticket-label {
    white-space: normal;
    word-break: break-word;
    line-height: 1.35;
}

/* 桌機維持原本一行 */
.kiosk-ticket-row {
    flex-wrap: nowrap;
}

.kiosk-ticket-actions {
    flex-wrap: nowrap;
}

/* 手機才改成兩行 */
@media (max-width: 575.98px) {
    .kiosk-ticket-row {
        flex-direction: column;
        align-items: stretch !important;
    }

    .kiosk-ticket-label-wrap {
        width: 100%;
        margin-left: 0 !important;
    }

    .kiosk-ticket-label {
        font-size: 1rem !important;
        margin-bottom: 0.5rem;
    }

    .kiosk-ticket-actions {
        width: 100%;
        margin-left: 0 !important;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem !important;
    }

    .kiosk-ticket-price {
        margin-right: auto !important;
        margin-top: 0 !important;
        font-size: 1rem !important;
    }

    .kiosk-ticket-qty {
        min-width: 52px !important;
        text-align: center;
    }

    .btn-kiosk-square {
        min-width: 56px;
        min-height: 40px;
    }
}

.booking-meta span {
    line-height: 1.5;
}

.seat-mini-legend-wrap{
    justify-content:center;
    margin-top:16px;
}

.bg-warning {
    background-color: rgb(236 150 0) !important;
}

.alert-danger {
    --bs-alert-color: #e40018;
    --bs-alert-bg: #f4f4f4;
}

.text-danger {
    color: #e40018 !important;
}

.form-check-input {
    border: 1.25px solid #e71e39;
}

.badge {
    padding: 5px 8px 7px 8px;
}

.btn-warning {
    --bs-btn-color: #fff;
    --bs-btn-bg: #d9941a;
    --bs-btn-border-color: #d9941a;
}

.text-success {
    color: green!important;
}

.alert-success {
    --bs-alert-color: #008000;
}

/*座位示意圖*/
.order-seat-map-scroll {
    overflow-x: auto;
    padding-bottom: 4px;
}

.order-seat-map {
    display: inline-block;
    min-width: max-content;
    text-align: center;
}

.order-seat-row {
    white-space: nowrap;
    line-height: 1;
    margin-bottom: 3px;
}

.order-seat-box {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin: 1px;
    border: 1px solid #999;
    border-radius: 3px;
    background: #fff;
    vertical-align: middle;
}

.order-seat-box.is-selected {
    background: #198754;
    border-color: #198754;
}

.order-seat-box.is-blocked {
    opacity: .15;
}

.order-screen {
    margin: 8px auto 0;
    width: 160px;
    border: 1px solid #999;
    border-radius: 4px;
    color: #777;
    font-size: 13px;
    padding: 2px 0;
}

.order-seat-legend {
    display: inline-block;
    width: 13px;
    height: 13px;
    border: 1px solid #999;
    border-radius: 3px;
    vertical-align: -2px;
}

.order-seat-legend.selected {
    background: #198754;
    border-color: #198754;
}


.order-seat-map-card{
    display:table;
    margin:0 auto 16px;
    border:1px solid #d8d8d8;
    border-radius:16px;
    background:#fff;
    padding:18px 26px;
    box-shadow: 0 2px 8px rgba(0,0,0,.03);
    text-align:center;
}

.order-seat-map-scroll{
    overflow-x:auto;
    padding: 10px 0 8px;
    text-align:center;
}

.order-seat-map{
    display:inline-block;
    min-width:max-content;
    margin:0 auto;
    text-align:center;
}

.order-seat-row{
    white-space:nowrap;
    line-height:1;
    margin-bottom:4px;
}

.order-seat-box{
    display:inline-block;
    width:16px;
    height:16px;
    margin:1.5px;
    border:1px solid #999;
    border-radius:4px;
    background:#fff;
    vertical-align:middle;
    transition:.15s;
}

.order-seat-box.is-selected{
    background:#198754;
    border-color:#198754;
    box-shadow: 0 0 0 1px rgba(25,135,84,.15);
}

.order-seat-box.is-blocked{
    opacity:.15;
}

.order-screen{
    margin: 14px auto 0;
    width:180px;
    border:1px solid #bbb;
    border-radius:8px;
    color:#666;
    font-size:13px;
    letter-spacing:4px;
    padding:4px 0;
    background:#fafafa;
}

.order-seat-legend{
    display:inline-block;
    width:13px;
    height:13px;
    border:1px solid #999;
    border-radius:3px;
    vertical-align:-2px;
}

.order-seat-legend.selected{
    background:#198754;
    border-color:#198754;
}

@media (max-width:768px){
    .order-seat-box{
        width:14px;
        height:14px;
    }
    .order-screen{
        width:150px;
    }
}

.order-seat-box.is-empty {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.showing-left {
    cursor: pointer;
}

.showing-sold,
.showing-remain {
    cursor: pointer;
    position: relative;
    z-index: 3;
}

.showing-pill {
    cursor: pointer;
}

.date-scroll-wrap{
    display:flex;
    gap:.75rem;
    overflow-x:auto;
    padding-bottom:4px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
}

.date-scroll-wrap::-webkit-scrollbar{
    display:none;
}

.date-scroll-wrap .btn-date{
    white-space:nowrap;
    flex-shrink:0;
}

@media (min-width: 992px){

    .date-scroll-wrap{
        overflow-x:visible;
        flex-wrap:wrap;
    }

}

.date-scroll-fade{
    position:relative;
}

.date-scroll-wrap{
    display:flex;
    gap:.75rem;
    overflow-x:auto;
    overflow-y:visible !important;
    flex-wrap:nowrap;
    padding-bottom:4px;

    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
}

.date-scroll-wrap::-webkit-scrollbar{
    display:none;
}

.date-scroll-wrap .btn-date{
    white-space:nowrap;
    flex-shrink:0;
}

/* 右側 fade 提示 */
.date-scroll-fade::after{
    content:'';
    position:absolute;
    top:0;
    right:0;
    width:48px;
    height:100%;

    pointer-events:none;

    background:linear-gradient(
        to right,
        rgba(255,255,255,0),
        rgba(255,255,255,.92)
    );
}

/* 桌機 */
@media (min-width: 992px){

    .date-scroll-wrap{
        overflow-x:visible;
        flex-wrap:wrap;
    }

    .date-scroll-fade::after{
        display:none;
    }

}

.date-scroll-fade{
    overflow: visible;
}

.date-scroll-wrap .dropdown-menu{
    z-index: 3000;
    border-radius: 10px;
}

.btn + .dropdown-menu .dropdown-item{
    font-size: 1rem;
}

.dropdown-item:focus, .dropdown-item:hover {
    color: white;
    background-color: #d32f2f;
}

/* 手機：電影卡改直向 */
@media (max-width: 575.98px){

    .movie-layout{
        flex-direction: column;
    }

    /* 海報不要太大 */
    .movie-thumb-wrap{
        width: 115px;
        height: 174px;
        margin: 0 auto;
    }

    /* 右側資訊全寬 */
    .movie-layout .flex-grow-1{
        width: 100%;
    }

    /* 電影名稱 */
    .movie-title{
        font-size: 1.5rem;
        line-height: 1.25;
        margin-top: .5rem;
    }

    /* 時段列：單行橫滑 */
    .time-grid{
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;

        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .time-grid::-webkit-scrollbar{
        display:none;
    }

    /* 時段按鈕 */
    .btn-time{
        flex: 0 0 auto;
        min-width: 88px;
        height: 44px;
        font-size: 1.1rem;
    }

}

.kiosk-ticket-actions-wrap{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
}

.ticket-quick-actions{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:6px;
}

.btn-ticket-quick{
    border:1px solid var(--kiosk-primary);
    color:var(--kiosk-primary);
    background:#fff;
    border-radius:999px;
    font-weight:800;
    padding:4px 10px;
}

.btn-ticket-quick:hover,
.btn-ticket-quick:active{
    background:var(--kiosk-primary);
    color:#fff;
}

.btn-ticket-reset{
    border:1px solid #adb5bd;
    color:#6c757d;
    background:#fff;
    border-radius:999px;
    font-weight:800;
    padding:4px 10px;
}

.btn-ticket-reset:hover,
.btn-ticket-reset:active{
    background:#6c757d;
    color:#fff;
}

@media (max-width:575.98px){
    .kiosk-ticket-actions-wrap{
        width:100%;
        margin-left:0 !important;
        align-items:stretch;
    }

    .kiosk-ticket-actions{
        justify-content:space-between;
    }

    .ticket-quick-actions{
        justify-content:flex-start;
    }

    .btn-ticket-quick,
    .btn-ticket-reset{
        min-width:56px;
        padding:6px 10px;
        font-size:.95rem;
    }
}

.pos-ticket-manual-qty {
    width: 110px;
    height: 50px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.pos-ticket-manual-input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: #495057;
    line-height: 1.2;
    padding: 0;
}

.pos-ticket-manual-input:focus {
    outline: none;
    box-shadow: none;
}

.pos-ticket-manual-label {
    font-size: .78rem;
    color: #868e96;
    line-height: 1.1;
    margin-top: 2px;
}

.seat-pref-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    border: 1px solid #d0d7de;
    border-radius: 999px;
    background: #fff;
    color: #495057;
    cursor: pointer;
    user-select: none;
    transition: .15s ease;
}

.seat-pref-chip:hover {
    border-color: #0d6efd;
    color: #0d6efd;
}

.seat-pref-chip.is-active {
    border-color: #0d6efd;
    background: #e7f1ff;
    color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, .08);
}

.seat-pref-chip small {
    font-size: .9em;
}

.btn-outline-danger {
    --bs-btn-color: #ff3300;
    --bs-btn-border-color: #ff3300;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #ff3300;
    --bs-btn-hover-border-color: #ff3300;
    --bs-btn-focus-shadow-rgb: 250, 137, 107;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #ff3300;
    --bs-btn-active-border-color: #ff3300;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #ff3300;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #ff3300;
    --bs-gradient: none;
}

.text-warning {
    --bs-text-opacity: 1;
    color: rgb(188 141 0) !important;
}

.btn-primary {
    --hover: #c93426;
    border-color: var(--primary) var(--primary) #c93426;
}

.kiosk-ticket-summary{
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    gap:10px 16px;
}

.kiosk-ticket-summary-title{
    font-weight:800;
    font-size:1.25rem;
    white-space:nowrap;
}

.kiosk-ticket-summary-meta{
    font-weight:800;
    font-size:1.05rem;
    color:#4b5563;
}

.kiosk-ticket-summary-action{
    text-align:right;
}

@media (max-width:575.98px){
    .kiosk-ticket-summary{
        grid-template-columns:1fr auto;
        align-items:start;
    }

    .kiosk-ticket-summary-title{
        font-size:1.05rem;
    }

    .kiosk-ticket-summary-meta{
        grid-column:1 / -1;
        display:flex;
        flex-direction:column;
        gap:2px;
        font-size:.95rem;
        line-height:1.35;
        padding-left:2px;
    }

    .kiosk-ticket-summary-action{
        grid-row:1;
        grid-column:2;
    }

    .kiosk-ticket-summary-action .btn{
        font-size:.95rem;
        padding:.35rem .75rem !important;
    }
}

.special-ticket-ack-box {
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 10px 12px;
    transition: all .2s ease;
}

.special-ticket-ack-box input{
    width: 20px;
    height: 20px;
    position: relative;
    top: -2px;
}

.special-ticket-ack-box.is-highlight {
    border-color: #dc3545;
    background: #fff3cd;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, .12);
    animation: specialAckPulse .8s ease-in-out 2;
}

@keyframes specialAckPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.015);
    }
    100% {
        transform: scale(1);
    }
}

.form-check-input:checked {
    background-color: #c93426;
    border-color: #c93426;
}

.bg-primary {
    background-color: #e40018 !important;
}

osk-task-btn {
    border-width: 2px;
    font-weight: 700;
}

.kiosk-task-normal {
    background: #fff;
}

.kiosk-task-warning {
    color: #000 !important;
    border-color: #f0ad00 !important;
    background: #ffc107 !important;
}

.kiosk-task-danger {
    color: #fff !important;
    border-color: #dc3545 !important;
    background: #dc3545 !important;
    animation: kioskTaskBlink 1s infinite;
}

@keyframes kioskTaskBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .45;
    }
}

.ops-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border: 0;
    background: transparent;
    border-radius: 999px;
    box-shadow: none;
    outline: none;
    cursor: pointer;
    line-height: 1;
}

.ops-status-chip:focus,
.ops-status-chip:active,
.ops-status-chip:hover {
    border: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
}

.ops-status-normal {
    color: #198754;
}

.ops-status-busy {
    color: #fd7e14;
}

.ops-status-high {
    color: #dc3545;
}

.ops-dot {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    flex: 0 0 24px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.ops-dot-normal {
    background: radial-gradient(circle at 30% 30%, #5cff97, #198754);
}

.ops-dot-busy {
    background: radial-gradient(circle at 30% 30%, #ffd08a, #fd7e14);
}

.ops-dot-high {
    background: radial-gradient(circle at 30% 30%, #ff8d8d, #dc3545);
}

.ops-status-text {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.ops-alert-menu {
    min-width: 280px;
    background: transparent;
}

.ops-alert-panel {
    border-radius: 10px;
    padding: 10px 12px;
    border: 2px solid transparent;
}

.ops-panel-normal {
    background: #edf9f1;
    border-color: #198754;
    color: #146c43;
}

.ops-panel-busy {
    background: #fff4e8;
    border-color: #fd7e14;
    color: #b35a00;
}

.ops-panel-high {
    background: #fff1f3;
    border-color: #dc3545;
    color: #b42318;
}

.ops-alert-item + .ops-alert-item {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(0, 0, 0, 0.12);
}

.ops-alert-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.ops-alert-suggest {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.ops-panel-normal .ops-alert-suggest {
    color: #198754;
}

.ops-panel-busy .ops-alert-suggest {
    color: #fd7e14;
}

.ops-panel-high .ops-alert-suggest {
    color: #dc3545;
}

.task-center-blink {
    animation: task-center-blink 1s infinite;
}

@keyframes task-center-blink {
    50% {
        opacity: 0.35;
    }
}
