/* YatraPravaas: look and feel of the organizer screens */

.yp-card { border: 0; border-radius: 1rem; box-shadow: 0 2px 12px rgba(40, 70, 120, .08); }
.yp-card-hover { transition: transform .15s ease, box-shadow .15s ease; }
.yp-card-hover:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(40, 70, 120, .14); }

/* Avatar circle with initials */
.yp-avatar {
    width: 2.5rem; height: 2.5rem; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 600; font-size: .95rem; flex: 0 0 auto;
}
.yp-avatar-lg { width: 4rem; height: 4rem; font-size: 1.4rem; }

/* Seat ring */
.yp-ring { position: relative; width: 120px; height: 120px; flex: 0 0 auto; }
.yp-ring svg { transform: rotate(-90deg); }
.yp-ring .track { fill: none; stroke: #e9ecef; stroke-width: 10; }
.yp-ring .fill { fill: none; stroke-width: 10; stroke-linecap: round; animation: yp-ring 1s ease-out; }
.yp-ring .label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.yp-ring .label strong { font-size: 1.6rem; }
@keyframes yp-ring { from { stroke-dasharray: 0 263.9; } }

/* Status pipeline chips */
.yp-chip {
    border: 2px solid transparent; border-radius: 1rem; padding: .5rem .9rem; background: #f8f9fa;
    cursor: pointer; text-align: center; min-width: 6.2rem; transition: all .15s ease;
}
.yp-chip:hover { background: #eef2ff; }
.yp-chip.active { border-color: #0d6efd; background: #e7f0ff; }
.yp-chip .n { font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.yp-chip .t { font-size: .78rem; color: #6c757d; }

/* Progress bars that grow in */
.yp-progress { height: .6rem; border-radius: 1rem; background: #e9ecef; overflow: hidden; }
.yp-progress > div { height: 100%; border-radius: 1rem; animation: yp-grow .9s ease-out; }
@keyframes yp-grow { from { width: 0 !important; } }

/* Board rows */
.yp-row { transition: background .15s ease; }
.yp-row:hover { background: #f5f8ff; }
.yp-board-loading { opacity: .5; transition: opacity .15s ease; }

/* Timeline */
.yp-timeline { list-style: none; margin: 0; padding-left: 1.4rem; border-left: 2px solid #dee2e6; }
.yp-timeline li { position: relative; padding: 0 0 1.1rem 1rem; }
.yp-timeline li::before {
    content: ""; position: absolute; left: -1.85rem; top: .25rem; width: .9rem; height: .9rem;
    border-radius: 50%; background: #6c757d; border: 2px solid #fff; box-shadow: 0 0 0 2px #dee2e6;
}
.yp-timeline li.created::before { background: #0d6efd; }
.yp-timeline li.status::before { background: #1aa7e0; }
.yp-timeline li.payment::before { background: #198754; }
.yp-timeline li.amount::before { background: #6f42c1; }

/* Sticky summary on the register page */
.yp-sticky { position: sticky; top: 1rem; }

/* Toasts */
#yp-toasts { position: fixed; right: 1rem; top: 4.25rem; z-index: 2000; display: flex; flex-direction: column; gap: .5rem; }
.yp-toast {
    min-width: 16rem; max-width: 24rem; padding: .75rem 1rem; border-radius: .75rem; color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2); animation: yp-toast-in .25s ease-out;
}
.yp-toast.ok { background: #198754; }
.yp-toast.bad { background: #dc3545; }
@keyframes yp-toast-in { from { transform: translateY(12px); opacity: 0; } }

/* Choice cards (radio buttons that look like cards) */
.yp-choice input { position: absolute; opacity: 0; }
.yp-choice label {
    display: block; padding: .6rem .8rem; border: 2px solid #dee2e6; border-radius: .8rem; cursor: pointer;
    transition: all .15s ease; height: 100%;
}
.yp-choice input:checked + label { border-color: #0d6efd; background: #e7f0ff; }
.yp-choice input:disabled + label { opacity: .5; cursor: not-allowed; }


/* ===================================================================
   Theme: light saffron, cream and soft gold (overrides Bootstrap's blue)
   =================================================================== */
:root {
    --yp-primary: #1aa7e0;
    --yp-primary-dark: #0b78a8;
    --yp-accent: #26b4ec;
    --yp-gold: #ffb02e;
    --yp-cream: #f4f7fb;
    --yp-ink: #101418;
    --bs-primary: #1aa7e0;
    --bs-primary-rgb: 26, 167, 224;
    --bs-link-color: #1aa7e0;
    --bs-link-color-rgb: 26, 167, 224;
    --bs-link-hover-color: #0b78a8;
    --bs-link-hover-color-rgb: 40, 70, 120;
    --bs-body-color: #101418;
    --bs-body-bg: #f4f7fb;
}

body { background: var(--yp-cream); color: var(--yp-ink); }

.btn-primary {
    --bs-btn-bg: #1aa7e0; --bs-btn-border-color: #1aa7e0;
    --bs-btn-hover-bg: #0b78a8; --bs-btn-hover-border-color: #0b78a8;
    --bs-btn-active-bg: #0b6590; --bs-btn-active-border-color: #0b6590;
    --bs-btn-disabled-bg: #1aa7e0; --bs-btn-disabled-border-color: #1aa7e0;
    --bs-btn-focus-shadow-rgb: 26, 167, 224;
}
.btn-outline-primary {
    --bs-btn-color: #1aa7e0; --bs-btn-border-color: #1aa7e0;
    --bs-btn-hover-bg: #1aa7e0; --bs-btn-hover-border-color: #1aa7e0;
    --bs-btn-active-bg: #0b5f86; --bs-btn-active-border-color: #0b5f86;
    --bs-btn-focus-shadow-rgb: 26, 167, 224;
}
.form-control:focus, .form-select:focus { border-color: #26b4ec; box-shadow: 0 0 0 .2rem rgba(38, 180, 236, .2); }
.form-check-input:checked { background-color: #1aa7e0; border-color: #1aa7e0; }
.page-link { color: #1aa7e0; }
.page-item.active .page-link { background: #1aa7e0; border-color: #1aa7e0; }

.yp-nav { background: #fff; border-top: 3px solid #1aa7e0; border-bottom: 1px solid #e3eaf3; box-shadow: 0 2px 12px rgba(26, 167, 224, .08); }
.yp-nav .navbar-brand { color: #101418; display: inline-flex; align-items: center; gap: .4rem; }
.yp-nav .navbar-brand:hover { color: #0b78a8; }
.yp-nav .navbar-toggler { border-color: #bddef0; }
.yp-nav .dropdown-menu { border: 1px solid #e3eaf3; border-radius: .8rem; box-shadow: 0 8px 22px rgba(26, 167, 224, .12); }
.yp-nav .nav-link { color: #445063; border-radius: .6rem; padding: .45rem .8rem; }
.yp-nav .nav-link:hover, .yp-nav .nav-link:focus { color: #0b78a8; background: #e8f6fc; }
.yp-nav .dropdown-item i { margin-right: .35rem; }
.yp-brand-mark { display: inline-block; margin-right: .2rem; }
.yp-footer { padding: 1.2rem 0; margin-top: 2rem; border-top: 1px solid #e3eaf3; }

.yp-card { border-radius: 1rem; background: #fff; }
.yp-chip:hover { background: #e6f5fc; }
.yp-chip.active { border-color: #1aa7e0; background: #e6f5fc; }
.yp-choice input:checked + label { border-color: #1aa7e0; background: #e6f5fc; }
.yp-row:hover { background: #f3f8fd; }

/* Page headers with a little warmth */
.yp-hero {
    background: linear-gradient(135deg, #e6f5fc, #dff3fc 60%, #cfeefb);
    color: #101418; border: 1px solid #d3e8f4; border-radius: 1.2rem; padding: 1.6rem 1.8rem; position: relative; overflow: hidden;
}
.yp-hero::after {
    content: ""; position: absolute; right: -3rem; top: -4rem; width: 15rem; height: 15rem; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%); pointer-events: none;
}
.yp-hero h1, .yp-hero h2 { color: #101418; }
.yp-hero .lead { color: #556174; }
.yp-hero .btn-light { background: #1aa7e0; border-color: #1aa7e0; color: #fff; font-weight: 600; }
.yp-hero .btn-light:hover { background: #0b78a8; border-color: #0b78a8; color: #fff; }
.yp-hero .btn-outline-light { color: #0b78a8; border-color: #1aa7e0; background: rgba(255, 255, 255, .6); }
.yp-hero .btn-outline-light:hover { background: #1aa7e0; color: #fff; }

.yp-stat { border-radius: 1rem; background: #fff; padding: 1rem 1.2rem; box-shadow: 0 2px 12px rgba(40, 70, 120, .08); height: 100%; }
.yp-stat .n { font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.yp-stat .t { color: #6b7686; font-size: .85rem; }
.yp-stat i { font-size: 1.4rem; color: var(--yp-accent); }

.yp-tile {
    display: block; background: #fff; border-radius: 1rem; padding: 1.1rem 1.2rem; color: inherit; text-decoration: none;
    box-shadow: 0 2px 12px rgba(40, 70, 120, .08); transition: transform .15s ease, box-shadow .15s ease; height: 100%;
}
.yp-tile:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(40, 70, 120, .18); color: inherit; }
.yp-tile .ico {
    width: 2.8rem; height: 2.8rem; border-radius: .9rem; display: inline-flex; align-items: center; justify-content: center;
    background: #e6f5fc; color: #1aa7e0; font-size: 1.4rem; margin-bottom: .6rem;
}

/* ===================================================================
   Allocation board: vehicles and rooms as cards, people as chips
   =================================================================== */
.yp-unit { background: #fff; border-radius: 1rem; box-shadow: 0 2px 12px rgba(40, 70, 120, .08); border: 2px solid transparent; transition: border-color .15s ease, background .15s ease; }
.yp-unit.over { border-color: #26b4ec; background: #f3f8fd; }
.yp-unit.full { border-left: 5px solid #198754; }
.yp-unit-head { padding: .8rem 1rem .4rem; }
.yp-unit-body { padding: .4rem 1rem 1rem; min-height: 4.2rem; display: flex; flex-wrap: wrap; gap: .4rem; align-content: flex-start; }
.yp-person {
    display: inline-flex; align-items: center; gap: .4rem; background: #e6f5fc; color: #0b5f86; border-radius: 2rem;
    padding: .25rem .7rem .25rem .3rem; font-size: .85rem; cursor: grab; user-select: none; border: 1px solid #cdeaf7;
}
.yp-person:active { cursor: grabbing; }
.yp-person.dragging { opacity: .4; }
.yp-person .dot { width: 1.5rem; height: 1.5rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; color: #fff; }
.yp-person .tag { font-size: .65rem; background: #ffb02e; color: #3b2a07; border-radius: 1rem; padding: 0 .4rem; }
.yp-pool { background: #fff; border: 2px dashed #d3deeb; border-radius: 1rem; padding: 1rem; min-height: 5rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.yp-pool.over { border-color: #26b4ec; background: #f3f8fd; }
.yp-meter { height: .5rem; background: #e8eef6; border-radius: 1rem; overflow: hidden; }
.yp-meter > div { height: 100%; background: linear-gradient(90deg, #7fd6f7, #1aa7e0); border-radius: 1rem; transition: width .3s ease; }
.yp-meter.full > div { background: #198754; }

/* Rule criteria picker */
.yp-crit { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; border: 2px solid #e3eaf3; border-radius: .8rem; background: #fff; margin-bottom: .5rem; }
.yp-crit.on { border-color: #1aa7e0; background: #f3f8fd; }
.yp-crit .order { width: 1.7rem; height: 1.7rem; border-radius: 50%; background: #1aa7e0; color: #fff; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }

/* Form builder */
.yp-field { background: #fff; border-radius: .9rem; box-shadow: 0 2px 10px rgba(40, 70, 120, .07); padding: .8rem 1rem; display: flex; gap: .8rem; align-items: center; margin-bottom: .6rem; }
.yp-field .grip { color: #9aa8b8; font-size: 1.3rem; }

/* ===================================================================
   Public yatra page and yaatrik portal (mobile first)
   =================================================================== */
body.yp-public, body.yp-yaatrik { background: linear-gradient(180deg, #f4f7fb, #e0f1fb); min-height: 100vh; }
.yp-narrow { max-width: 760px; }
.yp-pubhero {
    background: linear-gradient(135deg, #e6f5fc, #dff3fc 65%, #cfeefb); color: #101418; border-bottom: 1px solid #d3e8f4; padding: 2.4rem 1rem 4.2rem; text-align: center; position: relative; overflow: hidden;
}
.yp-pubhero::after { content: ""; position: absolute; left: 50%; top: -6rem; transform: translateX(-50%); width: 22rem; height: 22rem; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%); pointer-events: none; }
.yp-pubhero h1 { font-weight: 700; position: relative; color: #101418; }
.yp-pubhero .text-white-50 { color: #6b7686 !important; }
.yp-pubcard { margin-top: -3rem; position: relative; }
.yp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .6rem; }
.yp-fact { background: #f3f8fd; border-radius: .9rem; padding: .7rem .9rem; }
.yp-fact .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7686; }
.yp-fact .v { font-weight: 700; }

.yp-route { list-style: none; padding-left: 0; margin: 0; }
.yp-route li { position: relative; padding: 0 0 1.1rem 2.2rem; }
.yp-route li::before { content: ""; position: absolute; left: .55rem; top: 1.1rem; bottom: -.1rem; width: 2px; background: #d3deeb; }
.yp-route li:last-child::before { display: none; }
.yp-route li .pin {
    position: absolute; left: 0; top: .1rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #1aa7e0; border: 3px solid #fff; box-shadow: 0 0 0 2px #d3deeb;
}
.yp-route li.first .pin { background: #198754; }
.yp-route li.last .pin { background: #0b5f86; }

.yp-otp { display: flex; gap: .5rem; justify-content: center; }
.yp-otp input { width: 2.9rem; height: 3.4rem; text-align: center; font-size: 1.5rem; font-weight: 700; border: 2px solid #d3deeb; border-radius: .8rem; background: #fff; }
.yp-otp input:focus { outline: none; border-color: #1aa7e0; box-shadow: 0 0 0 .2rem rgba(26, 167, 224, .2); }

.yp-ytop { background: #fff; border-bottom: 1px solid #e3eaf3; border-top: 3px solid #1aa7e0; box-shadow: 0 2px 10px rgba(26, 167, 224, .08); padding: .6rem 0; position: sticky; top: 0; z-index: 30; }
.yp-ytop-brand { color: #101418; font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; }
.yp-ytop-brand:hover { color: #0b78a8; }
.yp-ytop .text-white-50 { color: #6b7686 !important; }
.yp-ybody { padding-bottom: 6rem !important; }
.yp-bottomnav {
    position: fixed; left: 0; right: 0; bottom: 0; background: #fff; display: flex; justify-content: space-around; z-index: 40;
    box-shadow: 0 -4px 18px rgba(20, 30, 50, .12); padding: .35rem 0 calc(.35rem + env(safe-area-inset-bottom));
}
.yp-bottomnav a, .yp-bottomnav button {
    display: flex; flex-direction: column; align-items: center; gap: .1rem; font-size: .7rem; color: #6b7686; text-decoration: none;
    background: none; border: 0; padding: .2rem .45rem;
}
.yp-bottomnav i { font-size: 1.35rem; }
.yp-bottomnav a.active { color: #1aa7e0; font-weight: 600; }

.yp-ticket {
    background: #fff; border-radius: 1.2rem; overflow: hidden; box-shadow: 0 6px 24px rgba(40, 70, 120, .16); margin-bottom: 1rem; position: relative;
}
.yp-ticket-head { background: linear-gradient(135deg, #e6f5fc, #d3effb); color: #101418; border-bottom: 1px solid #d3e8f4; padding: 1.1rem 1.2rem; }
.yp-ticket-head h1 { color: #101418; }
.yp-ticket-body { padding: 1rem 1.2rem; }
.yp-ticket.dim { opacity: .65; }
.yp-count { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.yp-paybar { height: .7rem; background: #e8eef6; border-radius: 1rem; overflow: hidden; }
.yp-paybar > div { height: 100%; border-radius: 1rem; background: linear-gradient(90deg, #7fd6f7, #198754); animation: yp-grow .9s ease-out; }

/* Receipt (also used for printing) */
.yp-receipt { background: #fff; border: 2px solid #18242b; border-radius: .5rem; padding: 1.6rem; max-width: 720px; margin: 0 auto; }
.yp-receipt h1 { font-size: 1.4rem; }
.yp-receipt table td { padding: .3rem .5rem; vertical-align: top; }

@media print {
    .yp-nav, .yp-footer, .yp-bottomnav, .yp-ytop, .no-print, .btn, #yp-toasts { display: none !important; }
    body, body.yp-yaatrik, body.yp-public { background: #fff !important; }
    .yp-card, .yp-ticket, .yp-receipt { box-shadow: none !important; }
    .yp-ybody { padding: 0 !important; }
    .container { max-width: 100% !important; }
    a[href]:after { content: "" !important; }
}

/* ---- reports ---- */
.yp-stat-n { font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.yp-stat-n small { font-size: 1rem; color: #6b7686; font-weight: 500; }
.yp-stat-l { color: #6b7686; font-size: .85rem; }
.yp-hover { transition: transform .15s, box-shadow .15s; }
.yp-hover:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(40, 70, 120, .18); }
.yp-tabs .nav-link { color: #0b5f86; border-radius: 2rem; }
.yp-tabs .nav-link.active { background: #0e8fc4; color: #fff; }
.yp-report th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: #6b7686; white-space: nowrap; }
.yp-break { break-inside: avoid; }
.yp-crit:not(.on) .order { background: #b9c5d3; }
@media print {
  .yp-report { font-size: 11px; }
  .card.yp-card { box-shadow: none !important; border: 1px solid #ddd; }
}

/* ---- colourful gradient stat cards ---- */
.yp-gc { border-radius: 1rem; color: #101418; border: 1px solid rgba(0, 0, 0, .04); box-shadow: 0 3px 14px rgba(26, 167, 224, .1); }
.yp-gc-bg { position: absolute; right: -.4rem; bottom: -1rem; font-size: 5.5rem; opacity: .22; color: #1aa7e0; }
.yp-gc-body { position: relative; padding: 1rem 1.2rem; }
.yp-gc-title { opacity: .9; font-size: .9rem; display: flex; align-items: center; gap: .4rem; }
.yp-gc-value { font-size: 2rem; font-weight: 700; line-height: 1.15; margin: .15rem 0; }
.yp-gc-sub { opacity: .85; font-size: .8rem; }
.yp-gc-link { color: #101418; font-size: .8rem; font-weight: 600; text-decoration: none; display: inline-block; margin-top: .3rem; }
.yp-gc-link:hover { color: #0b78a8; text-decoration: underline; }
.g-amber { background: linear-gradient(135deg, #eaf6fd, #ffdf94); }
.g-teal { background: linear-gradient(135deg, #dcf6f0, #a6e6d8); }
.g-red { background: linear-gradient(135deg, #ffe6e6, #ffbcbc); }
.g-blue { background: linear-gradient(135deg, #e4f0ff, #b7d6fb); }
.g-green { background: linear-gradient(135deg, #e0f7e6, #abe6bc); }
.g-purple { background: linear-gradient(135deg, #f1e7ff, #d6bbf8); }
.g-orange { background: linear-gradient(135deg, #e0f1fb, #a7dcf8); }
.g-rose { background: linear-gradient(135deg, #ffe4ec, #ffb6cd); }

/* ---- brand mark and sticky footer ---- */
html { position: static !important; min-height: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; margin-bottom: 0 !important; }
body > .yp-main { flex: 1 0 auto; width: 100%; }
.yp-footer { margin-top: auto !important; background: #f3f8fd; color: #556174; padding: 1rem 0 !important; border-top: 1px solid #e3eaf3; }

/* ---- mobile-app style info rows (yaatrik profile) ---- */
.yp-info-list { background: #fff; border-radius: 1rem; box-shadow: 0 2px 12px rgba(30,41,59,.08); padding: .4rem .8rem .2rem; }
.yp-info-row { display: flex; align-items: center; gap: .9rem; padding: .7rem 0; border-bottom: 1px solid #ebf0f6; }
.yp-info-row:last-of-type { border-bottom: 0; }
.yp-info-ico { width: 2.6rem; height: 2.6rem; border-radius: .8rem; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; flex: none; }
.yp-info-l { font-size: .75rem; color: #6b7686; text-transform: uppercase; letter-spacing: .04em; }
.yp-info-v { font-weight: 600; font-size: 1.05rem; }
.yp-profile-head .yp-avatar-lg { width: 4.5rem; height: 4.5rem; font-size: 1.8rem; }
.yp-profile-head .yp-avatar { display: flex; align-items: center; justify-content: center; }

/* ---- common light table design (every table inside <main>) ---- */
main .table { --bs-table-bg: transparent; --bs-table-striped-bg: transparent; --bs-table-hover-bg: #f3f8fd; margin-bottom: 0; font-size: .9rem; border-collapse: separate; border-spacing: 0; }
main .table > thead > tr > th { background: #eff7fb; color: #5d6a7c; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: .7rem .8rem; border-bottom: 1px solid #e3eaf3; white-space: nowrap; }
main .table > tbody > tr > td { padding: .7rem .8rem; border-bottom: 1px solid #dfecf3; vertical-align: middle; }
main .table > tbody > tr:last-child > td { border-bottom: 0; }
main .table > tbody > tr:hover > td { background: #f3f8fd; }
/* Compact rows for long lists (200+ yatriks): same table, tighter and calmer */
main .table.yp-dense-table > tbody > tr > td { padding: .34rem .7rem; font-size: .84rem; line-height: 1.25; }
main .table.yp-dense-table > thead > tr > th { padding: .5rem .7rem; }
main .table.yp-dense-table .badge { font-size: .7rem; font-weight: 500; }
main .table.yp-dense-table > tbody > tr:nth-child(even) > td { background: #fffcf8; }
main .table td, main .table th { font-variant-numeric: tabular-nums; }
.yp-pager .form-switch .form-check-input { margin-top: 0; cursor: pointer; }
.yp-pager .form-switch span { font-size: .8rem; color: #5d6a7c; }
main .table > tfoot > tr > th, main .table > tfoot > tr > td { background: #eff7fb; border-top: 1px solid #e3eaf3; padding: .7rem .8rem; }
main .table.table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-accent-bg: transparent; box-shadow: none; }
.yp-tablecard { background: #fff; border: 1px solid #e3eaf3; border-radius: 1rem; box-shadow: 0 2px 10px rgba(40, 70, 120, .06); overflow: hidden; }
.card .yp-tablecard { border: 0; box-shadow: none; border-radius: 0; }
.yp-tablecard > .table-responsive { margin: 0; }
.yp-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; padding: .6rem .9rem; border-top: 1px solid #e3eaf3; background: #f8fbfe; font-size: .85rem; color: #556174; }
.yp-pager select { width: auto; display: inline-block; padding: .2rem 1.6rem .2rem .6rem; font-size: .85rem; border-radius: .6rem; }
.yp-pager .yp-pg-btns { display: flex; align-items: center; gap: .4rem; }
.yp-pager .btn { padding: .15rem .6rem; border-radius: .6rem; }
.yp-pg-hide { display: none !important; }
@media print {
  .yp-pg-hide { display: table-row !important; }
  .yp-pager { display: none !important; }
  .yp-tablecard { border: 0; box-shadow: none; }
}

/* Yatra hub: numbered tabs with a green "work started" dot */
.yp-tab { position: relative; border: 2px solid transparent; padding: .9rem 1rem; }
.yp-tab.active { border-color: #26b4ec; background: #f3f8fd; }
.yp-dot { position: absolute; top: .6rem; right: .7rem; width: .8rem; height: .8rem; border-radius: 50%; background: #198754; box-shadow: 0 0 0 3px rgba(25, 135, 84, .2); }
.yp-dot.static { position: static; display: inline-block; vertical-align: middle; }
.yp-banner { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: .8rem; display: block; max-height: 220px; }

/* Day-wise calendar */
.yp-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4rem; }
.yp-cal-head { text-align: center; font-weight: 600; color: #6b7686; font-size: .8rem; padding-bottom: .2rem; }
.yp-cal-cell { min-height: 5.4rem; border-radius: .7rem; padding: .35rem .45rem; }
.yp-cal-cell.empty { background: transparent; }
.yp-cal-cell.day { display: block; background: #fff; border: 2px solid #e3eaf3; color: inherit; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.yp-cal-cell.day:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(40, 70, 120, .18); color: inherit; }
.yp-cal-cell.travel { background: #e6f4ea; border-color: #b7dfc3; }
.yp-cal-cell.stay { background: #e3f0fc; border-color: #b6d5f2; }
.yp-cal-cell.both { background: linear-gradient(135deg, #e6f4ea 50%, #e3f0fc 50%); border-color: #9cc9b0; }
.yp-cal-cell .num { font-weight: 700; }
.yp-cal-cell .route { font-size: .72rem; color: #0b5f86; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yp-cal-cell .counts { font-size: .7rem; color: #556174; display: flex; flex-wrap: wrap; gap: .15rem .5rem; margin-top: .15rem; }
.yp-legend { display: inline-block; width: 1rem; height: 1rem; border-radius: .3rem; vertical-align: middle; border: 1px solid #b9c5d3; }
.yp-legend.travel { background: #e6f4ea; }
.yp-legend.stay { background: #e3f0fc; }
.yp-legend.both { background: linear-gradient(135deg, #e6f4ea 50%, #e3f0fc 50%); }
@media (max-width: 575.98px) {
    .yp-cal-cell { min-height: 4.2rem; padding: .25rem; }
    .yp-cal-cell .route, .yp-cal-cell .counts { font-size: .62rem; }
}

/* ---- Yatra header: underline tabs (same on every yatra page) ---- */
.min-w-0 { min-width: 0; }
.yp-yhead { margin-bottom: 1.25rem; }
.yp-yfacts { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: .6rem 0 .2rem; font-size: .9rem; color: #445063; }
.yp-yfacts i { color: var(--yp-accent); margin-right: .2rem; }
.yp-yseats { display: inline-flex; align-items: center; gap: .4rem; }
.yp-yseats .yp-hmeter { display: inline-block; width: 90px; height: 7px; background: #e3eaf3; border-radius: 1rem; overflow: hidden; }
.yp-yseats .yp-hmeter > span { display: block; height: 100%; background: var(--yp-accent); }
.yp-utabs {
    display: flex; flex-wrap: nowrap; gap: .05rem; margin-top: .9rem; overflow-x: auto; overflow-y: hidden;
    border-bottom: 1px solid #d9e3ef; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.yp-utab {
    display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; padding: .5rem .5rem; color: #556174; text-decoration: none;
    font-size: .76rem; font-weight: 500; border-bottom: 3px solid transparent; border-radius: .7rem .7rem 0 0; margin-bottom: -1px; transition: background .15s, color .15s;
}
.yp-utab i { font-size: .85rem; }
@media (max-width: 1399.98px) { .yp-utab .yp-unum { display: none; } }
@media (max-width: 767.98px) { .yp-utab { padding: .5rem .55rem; } }
.yp-utab:hover { background: #eaf2fa; color: var(--yp-primary-dark); }
.yp-utab.active { background: #e3f4fc; color: var(--yp-primary-dark); border-bottom-color: var(--yp-primary); font-weight: 600; }
.yp-unum { color: #8794a5; font-weight: 400; font-size: .68rem; }
.yp-utab.active .yp-unum { color: var(--yp-accent); }
.yp-utab .yp-dot.static { width: .55rem; height: .55rem; box-shadow: 0 0 0 2px rgba(25, 135, 84, .2); }

/* Banner: a fixed box so a big photo can never push the page wider than a phone screen */
.yp-bannerbox { position: relative; width: 100%; max-width: 100%; overflow: hidden; aspect-ratio: 3 / 1; background: #e6edf5; border-radius: .8rem; }
.yp-bannerbox > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: 100%; object-fit: cover; display: block; }
.yp-bannerbox.flat { border-radius: 0; }
.yp-bannerbox.top { border-radius: .8rem .8rem 0 0; }
@media (max-width: 575.98px) { .yp-bannerbox { aspect-ratio: 2 / 1; } }
body.yp-public, body.yp-yaatrik { overflow-x: hidden; }
img { max-width: 100%; }
.yp-dayhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; }
.yp-unit-sub { font-size: .8rem; }
@media print { .yp-yhead { display: none !important; } }

/* Day page: strip of all dates for quick jumping */
.yp-daychips { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.yp-daychip { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; min-width: 3.1rem; padding: .35rem .5rem; border-radius: .8rem; border: 1px solid #e3eaf3; background: #fff; color: #445063; text-decoration: none; line-height: 1.15; }
.yp-daychip .d { font-weight: 700; font-size: 1.05rem; }
.yp-daychip .m { font-size: .7rem; text-transform: uppercase; letter-spacing: .03em; color: #6b7686; }
.yp-daychip:hover { background: #e3f4fc; }
.yp-daychip.active { background: var(--yp-primary); border-color: var(--yp-primary); color: #fff; }
.yp-daychip.active .m { color: rgba(255,255,255,.8); }

/* Dashboard: every card the same size */
.yp-dash .yp-gc { border-radius: 1rem; color: #101418; border: 1px solid rgba(0, 0, 0, .04); box-shadow: 0 3px 14px rgba(26, 167, 224, .1); }
.yp-dash .yp-gc-value { font-size: 1.7rem; overflow-wrap: anywhere; }
.yp-dash .yp-gc-sub { min-height: 2.1em; }

/* Yatra work area: the tab content opens in a frame under the tabs, so the header stays put */
.yp-frame-wrap { position: relative; }
.yp-frame { display: block; width: 100%; min-height: 520px; border: 0; background: transparent; }
.yp-frame-wrap.loading::after {
    content: "Loading..."; position: absolute; top: .8rem; left: 50%; transform: translateX(-50%); z-index: 2;
    background: #fff; border: 1px solid #e3eaf3; border-radius: 2rem; padding: .25rem .9rem; font-size: .85rem; color: #556174;
    box-shadow: 0 4px 14px rgba(40, 70, 120, .12);
}
body.yp-embed { background: var(--yp-cream); }

/* Labharti names scrolling across the top of a ticket */
.yp-marquee { overflow: hidden; white-space: nowrap; background: #e8f6fc; border: 1px solid #d3e8f4; border-radius: .6rem; margin-bottom: .75rem; padding: .3rem 0; font-size: .85rem; color: #0b5f86; }
.yp-marquee > span { display: inline-block; padding-left: 100%; animation: yp-marquee 22s linear infinite; }
.yp-marquee:hover > span { animation-play-state: paused; }
@keyframes yp-marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .yp-marquee > span { animation: none; padding-left: .6rem; } .yp-marquee { overflow-x: auto; } }
.yp-notes { margin: 0; padding-left: 1.1rem; font-size: .85rem; }
.yp-notes li { margin-bottom: .3rem; }
.yp-notes-box { border-left: 3px solid #1aa7e0; padding-left: .85rem; }
@media (max-width: 767.98px) { .yp-notes-box { border-left: 0; border-top: 1px dashed #d9e3ef; padding: .6rem 0 0; margin-top: .6rem; } }
.yp-leg { color: #0b5f86; }
.yp-person .legs { background: #0b5f86; color: #fff; border-radius: .6rem; font-size: .65rem; padding: 0 .35rem; margin-left: .15rem; }
.yp-matrix th { background: #eef4fa; vertical-align: top; }
.yp-matrix td.yp-cell { cursor: pointer; font-size: .85rem; }
.yp-matrix td.yp-cell:hover { background: #e3f4fc; }
.yp-matrix td.yp-cell.on { background: #e8f6ec; font-weight: 600; }
.yp-matrix.locked td.yp-cell { cursor: default; }
.yp-newdot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .3); margin-left: .35rem; vertical-align: middle; }

/* ---- brand logo (aspect ratio kept, never cropped or stretched) ---- */
.yp-logo { display: inline-block; width: 100%; height: auto; object-fit: contain; vertical-align: middle; }
.yp-logo-nav { max-width: 64px; }
.yp-logo-top { max-width: 52px; }
.yp-logo-foot { max-width: 48px; }
.yp-logo-hero { display: block; max-width: 170px; margin: 0 auto .5rem; }
@media (max-width: 991.98px) { .yp-logo-nav { max-width: 56px; } .yp-logo-hero { max-width: 150px; } }
@media (max-width: 575.98px) { .yp-logo-nav { max-width: 46px; } .yp-logo-top { max-width: 42px; } .yp-logo-hero { max-width: 130px; } }

/* ---- light theme extras ---- */
.yp-darktext { color: #101418; }
.yp-darklink { color: #101418; text-decoration: none; }
.btn { border-radius: .7rem; }
.yp-err { color: #b3261e; font-size: .8rem; margin-top: .25rem; }
.form-control.is-invalid, .form-select.is-invalid { border-color: #dc3545; background-image: none; }

/* Language picker (yaatrik screens) */
.yp-lang { display: inline-flex; gap: .15rem; background: rgba(255,255,255,.18); border-radius: 2rem; padding: .15rem; }
.yp-lang a { color: #fff; text-decoration: none; font-size: .78rem; padding: .15rem .55rem; border-radius: 2rem; line-height: 1.4; }
.yp-lang a.on { background: #fff; color: #094d71; font-weight: 700; }

/* The language switch sits on the white top bar of the yaatrik screens (the orange sign-in hero keeps the light style) */
.yp-ytop .yp-lang { background: #d8ebf6; }
.yp-ytop .yp-lang a { color: #14567a; }
.yp-ytop .yp-lang a.on { background: #1aa7e0; color: #fff; }

/* Round badge medal */
.yp-medal { width: 64px; height: 64px; flex: 0 0 auto; filter: drop-shadow(0 2px 4px rgba(120, 80, 10, .25)); }
.yp-medal-sm { width: 34px; height: 34px; }
.yp-ladder { display: flex; gap: .5rem; flex-wrap: wrap; }
.yp-ladder > div { text-align: center; font-size: .72rem; width: 4.6rem; color: #6b7686; }
.yp-ladder > div.on { color: #101418; font-weight: 600; }
.yp-ladder > div:not(.on) .yp-medal { opacity: .45; filter: grayscale(.6); }

/* Past jatras: one row per jatra, photo on the left, soft grey details, colored edge */
.yp-pcard{display:flex;align-items:center;gap:.85rem;width:100%;text-align:left;text-decoration:none;color:inherit;background:#fff;border:1px solid #e5e7eb;border-left:6px solid #f59e0b;border-radius:.6rem;padding:.7rem .8rem;margin-bottom:.7rem;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.yp-pcard:hover{color:inherit;box-shadow:0 2px 8px rgba(0,0,0,.14)}
.yp-pthumb{flex:0 0 64px;width:64px;height:64px;border-radius:.5rem;overflow:hidden;background:#fff3c4;color:#0e8fc4;display:flex;align-items:center;justify-content:center;font-size:1.6rem}
.yp-pthumb img{width:100%;height:100%;object-fit:cover}
.yp-pbody{flex:1;min-width:0;display:flex;flex-direction:column}
.yp-ptitle{font-weight:600;font-size:1.02rem;line-height:1.25}
.yp-psub{color:#8a8f98;font-size:.88rem}
.yp-pmem{margin-top:.25rem;font-size:.82rem;font-style:italic;color:#555;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.yp-pgo{flex:0 0 auto;color:#111;font-size:1.1rem}

/* Your day-wise plan (yatrik page): one card per day, Travel and Stay clearly apart, readable on a phone */
.yp-days { display: flex; flex-direction: column; gap: .8rem; }
.yp-day { background: #fff; border: 1px solid #e3eaf3; border-radius: 1rem; overflow: hidden; box-shadow: 0 1px 6px rgba(40, 70, 120, .06); }
.yp-day-h { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; background: linear-gradient(135deg, #e6f5fc, #cdebfb); border-bottom: 1px solid #d3e8f4; }
.yp-day-tile { width: 3rem; height: 3.2rem; border-radius: .7rem; background: #fff; border: 1px solid #cfe6f4; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; flex: none; }
.yp-day-tile .n { font-size: 1.35rem; font-weight: 700; color: #0b78a8; }
.yp-day-tile .m { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: #6b7686; margin-top: .2rem; }
.yp-day-title { min-width: 0; }
.yp-sec { padding: .75rem .9rem; }
.yp-sec + .yp-sec { border-top: 1px dashed #d9e3ef; }
.yp-sec-h { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #6b7686; margin: 0 0 .55rem; }
.yp-none { color: #8794a5; font-size: .92rem; }
.yp-item { display: flex; gap: .75rem; }
.yp-item + .yp-item { margin-top: .85rem; padding-top: .85rem; border-top: 1px solid #edf2f8; }
.yp-ico { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #e6f5fc; color: #1aa7e0; display: flex; align-items: center; justify-content: center; flex: none; font-size: 1.2rem; }
.yp-ico.stay { background: #e6f3ec; color: #1f7a4d; }
.yp-item-body { min-width: 0; flex: 1; }
.yp-item-title { font-weight: 700; font-size: 1.02rem; overflow-wrap: anywhere; }
.yp-route { list-style: none; margin: .5rem 0 0; padding: 0; }
.yp-route li { display: flex; gap: .6rem; align-items: baseline; position: relative; padding: 0 0 .55rem 1.2rem; }
.yp-route li:last-child { padding-bottom: 0; }
.yp-route li::before { content: ""; position: absolute; left: .1rem; top: .45rem; width: .6rem; height: .6rem; border-radius: 50%; background: #1aa7e0; }
.yp-route li:first-child::after { content: ""; position: absolute; left: .37rem; top: 1.05rem; bottom: -.4rem; width: 2px; background: #c8d8e8; }
.yp-rt { min-width: 5.3rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.yp-rp { color: #445063; overflow-wrap: anywhere; }
.yp-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.yp-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .65rem; border-radius: 2rem; background: #eef3f9; color: #445063; font-size: .86rem; }
.yp-chip.strong { background: #1aa7e0; color: #fff; font-weight: 600; }
