/* ==========================================================================
   TICKET / DASHBOARD LAYOUT — .tb-*  (separate from modal, see
   service-details-modal.css for #serviceDetailsModal / .tsm-* styles)
   ========================================================================== */

.tb-main-wrapper {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(18, 38, 77, 0.08);
    overflow: hidden;
    border: 1px solid #dbe4f0;
}

.tb-header {
    position: relative;
    color: #fff;
    padding: 12px 32px;
    overflow: hidden;
}

.tb-header-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.tb-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tb-header-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    font-size: 22px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.tb-header-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.2;
}

.tb-header-subtitle {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
}

/* ---------- Category filter bar ---------- */
.tb-category-bar {
    background: #ffffff;
    padding: 16px 28px;
    display: flex;
    gap: 12px;
    border-bottom: 1px solid #e5edf7;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tb-category-bar::-webkit-scrollbar {
    display: none;
}

.tb-category-btn {
    border: 1px solid #d0dbe9;
    background: #ffffff;
    color: #334d77;
    border-radius: 26px;
    padding: 9px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.tb-category-btn.active {
    background: #1a56c4;
    color: #fff;
    border-color: #1a56c4;
    box-shadow: 0 4px 12px rgba(26, 86, 196, 0.3);
}

.tb-category-btn:hover {
    text-decoration: none;
    color: #1a56c4;
}

.tb-category-btn.active:hover {
    color: #fff;
}

/* ---------- Main Body & Search ---------- */
.tb-body {
    background: #edf2f9;
    padding: 20px 24px;
}

.tb-section-title {
    font-size: 16px;
    font-weight: 800;
    color: #14264d;
    margin-bottom: 2px;
}

.tb-search-box {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #cad6e7;
    background: #fff;
    box-shadow: 0 2px 8px rgba(20, 40, 90, 0.04);
}

.tb-search-box input {
    border: none;
    box-shadow: none;
}

.tb-search-box .input-group-text {
    background: #fff;
    border: none;
    color: #7c8ba7;
}

/* ---------- Ticket Card ---------- */
.tb-ticket {
    --stub-width: 75px;
    --notch-radius: 9px;
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 104px;
    height: 100%;
    border: 1px solid #dce4ee;
    box-shadow: 0 4px 14px rgba(18, 38, 77, 0.05);
    background: #ffffff;
    border-radius: 14px;
    text-decoration: none !important;
    color: inherit;
    overflow: visible;
    transition: transform 0.2s cubic-bezier(0, 0, 0, 1.49), box-shadow 0.2s ease;
}

.tb-ticket:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(18, 38, 77, 0.1);
}

.tb-ticket::before,
.tb-ticket::after {
    content: "";
    position: absolute;
    left: calc(var(--stub-width) - var(--notch-radius));
    width: calc(var(--notch-radius) * 2);
    height: calc(var(--notch-radius) * 2);
    background: #edf2f9;
    border-radius: 50%;
    z-index: 5;
}

.tb-ticket::before {
    top: calc(var(--notch-radius) * -1);
}

.tb-ticket::after {
    bottom: calc(var(--notch-radius) * -1);
}

.tb-ticket-divider {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: var(--stub-width);
    width: 0;
    border-left: 1.5px dashed #cfd9e8;
    z-index: 2;
}

.tb-ticket-icon-col {
    width: var(--stub-width);
    min-width: var(--stub-width);
    background: #ffffff;
    border-radius: 14px 0 0 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 6px 12px 10px;
    gap: 8px;
    flex-shrink: 0;
}

.darshan-temple-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid #fed7aa;
    background: #fffdfa;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(251, 146, 60, 0.12);
    flex-shrink: 0;
}

.darshan-temple-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.tb-ticket-price {
    font-weight: 800;
    color: #dc2626;
    font-size: 15px;
    line-height: 1;
    text-align: center;
    letter-spacing: -0.2px;
}

.tb-ticket-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    padding: 12px 14px 12px 18px;
    height: 100%;
}

.tb-ticket-top {
    width: 100%;
    min-width: 0;
    margin-top: 1px;
}

.tb-ticket-name {
    font-size: 13px;
    line-height: 1.35;
    word-break: break-word;
    display: flex;
/*    align-items: center;*/
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-title-gradient {
    color: #991b1b !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

.tb-ticket-bottom {
    margin-top: auto;
    padding-top: 8px;
}

.tb-ticket-date {
    font-size: 12px;
    font-weight: 600;
    color: #0b4f8a;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tb-ticket-date i {
    font-size: 13px;
    color: #0b4f8a;
    flex-shrink: 0;
}

/* Card QR Action Button */
.tb-ticket-card-wrapper {
    position: relative;
    height: 100%;
}

.tb-badge-btn {
    position: absolute;
    top: -8px;
    right: 8px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 700;
    color: #1a56c4;
    background: #ffffff;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    box-shadow: 0 3px 8px rgba(26, 86, 196, 0.15);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.tb-badge-btn i {
    font-size: 12px;
}

.tb-badge-btn:hover {
    background: #1a56c4;
    color: #ffffff;
    border-color: #1a56c4;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(26, 86, 196, 0.25);
}

/* ---------- Modern Empty State ---------- */
.tb-empty-icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    border-radius: 50%;
    background: #eff6ff;
    color: #1a56c4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(26, 86, 196, 0.1);
}

.tb-empty-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #14264d;
    margin-bottom: 6px;
}

.tb-empty-subtitle {
    font-size: 0.88rem;
    line-height: 1.5;
    max-width: 420px;
    margin: 0 auto;
}

.tb-empty-btn {
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 7px 18px;
    border-color: #cbd5e1;
    color: #1a56c4;
    transition: all 0.2s ease;
}

.tb-empty-btn:hover {
    background: #1a56c4;
    border-color: #1a56c4;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 86, 196, 0.2);
}

/* ---------- Ticket Card Responsive (Mobile) ---------- */
@media (max-width: 768px) {
    .tb-header {
        padding: 12px 14px;
    }
}