* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #130810; --panel: #1d0f1a; --panel2: #261424; --line: #3a2236;
  --ink: #f3e9f1; --muted: #a892a3; --pink: #ff2e93; --purple: #9b5cff; --violet: #c77dff;
  --green: #2bd99f; --orange: #ffa53b; --red: #ff5470; --blue: #3fb8ff;
}
html, body { height: 100%; }
body {
  font-family: "Segoe UI", system-ui, sans-serif; background: var(--bg); color: var(--ink);
  display: flex; min-height: 100vh;
  background: radial-gradient(1200px 600px at 100% -10%, #3a0f2e 0%, transparent 60%), var(--bg);
}
body:not(.ready) .content { visibility: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- Sidebar ---------- */
.sidebar {
  width: 250px; flex: none; background: linear-gradient(180deg, #1a0a17, #12060f);
  border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 14px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 30;
}
.logo { font-size: 1.9rem; font-weight: 900; font-style: italic; letter-spacing: -1px; padding: 4px 12px 22px; }
.logo .r { color: #fff; } .logo .d { color: var(--pink); }
#nav { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 12px;
  color: #cbb8c7; font-weight: 600; font-size: .98rem; position: relative; cursor: pointer;
  background: none; border: 1px solid transparent; width: 100%; text-align: left; transition: .15s;
}
.nav-item .ic { width: 24px; text-align: center; font-size: 1.15rem; filter: drop-shadow(0 0 6px rgba(199,125,255,.45)); }
.nav-item:hover { background: rgba(255,255,255,.04); color: #fff; }
.nav-item.active {
  color: #ff8cc6; background: linear-gradient(90deg, rgba(255,46,147,.16), rgba(155,92,255,.08));
  border-color: rgba(255,46,147,.25); box-shadow: 0 6px 22px rgba(255,46,147,.12);
}
.nav-item.active::before {
  content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, var(--pink), var(--purple)); box-shadow: 0 0 10px var(--pink);
}
.side-foot { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }

/* ---------- Main ---------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 14px; padding: 18px 30px; border-bottom: 1px solid var(--line);
  background: rgba(19,8,16,.75); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 1.5rem; flex: 1; }
.top-right { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: .92rem; }
.user { background: var(--panel2); border: 1px solid var(--line); padding: 7px 14px; border-radius: 30px; color: var(--ink); }
.menu-btn { display: none; background: var(--panel2); color: #fff; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; font-size: 1.2rem; cursor: pointer; }
.content { padding: 26px 30px 50px; animation: fade .25s; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Cards / panels ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 22px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; position: relative; overflow: hidden;
}
.card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--c, var(--pink)); opacity: .14; filter: blur(4px); }
.card small { color: var(--muted); font-weight: 600; display: block; margin-bottom: 6px; }
.card b { font-size: 1.75rem; color: var(--c, var(--ink)); white-space: nowrap; }
.card .sub { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 22px; }
.panel h2 { font-size: 1.1rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.grid2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 22px; }
.grid-bill { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(320px,1fr); gap: 22px; align-items: start; }
@media (max-width: 1100px) { .grid2, .grid-bill { grid-template-columns: 1fr; } }

/* ---------- Toolbar ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .grow { flex: 1; min-width: 200px; }
input, select, textarea {
  background: #120910; color: var(--ink); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: .95rem; font-family: inherit; outline: none; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,46,147,.15); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--pink); }
select option { background: #1d0f1a; }
textarea { min-height: 70px; resize: vertical; }
.btn {
  border: none; cursor: pointer; padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: .93rem;
  white-space: nowrap; transition: .15s; color: #fff;
}
.btn.primary { background: linear-gradient(90deg, var(--pink), var(--purple)); box-shadow: 0 6px 18px rgba(255,46,147,.3); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.ghost { background: var(--panel2); border: 1px solid var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--pink); }
.btn.big { padding: 14px; font-size: 1.05rem; width: 100%; }
.btn:disabled { opacity: .5; cursor: wait; }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; color: var(--muted); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .4px; padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 10px; border-bottom: 1px solid rgba(58,34,54,.6); vertical-align: middle; }
tr:hover td { background: rgba(255,255,255,.02); }
td.num, th.num { text-align: right; white-space: nowrap; }
td small { color: var(--muted); }
.acts { white-space: nowrap; text-align: right; }
.icon-btn { background: none; border: none; cursor: pointer; font-size: 1.05rem; padding: 4px 6px; border-radius: 8px; }
.icon-btn:hover { background: var(--panel2); }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.b-green { background: rgba(43,217,159,.15); color: var(--green); }
.b-orange { background: rgba(255,165,59,.15); color: var(--orange); }
.b-red { background: rgba(255,84,112,.15); color: var(--red); }
.b-blue { background: rgba(63,184,255,.15); color: var(--blue); }
.b-purple { background: rgba(155,92,255,.18); color: var(--violet); }
.pos { color: var(--orange); font-weight: 700; } .ok { color: var(--green); font-weight: 700; }

/* ---------- Bars chart ---------- */
.bars { display: flex; align-items: flex-end; gap: 12px; height: 200px; padding-top: 10px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar i { display: block; width: 100%; max-width: 46px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--pink), var(--purple)); min-height: 3px; }
.bar span { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.bar em { font-size: .72rem; font-style: normal; color: var(--ink); white-space: nowrap; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: .84rem; color: var(--muted); font-weight: 600; }
label.f .req { color: var(--pink); }
.pick-list { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; }
.pick { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.pick:last-child { border-bottom: none; }
.pick:hover { background: rgba(255,255,255,.03); }
.pick .t { flex: 1; } .pick .t small { display: block; }
.item-row { display: grid; grid-template-columns: 1fr 130px 40px; gap: 8px; margin-bottom: 8px; }
.sum-line { display: flex; justify-content: space-between; padding: 8px 0; color: var(--muted); }
.sum-line b { color: var(--ink); }
.sum-line.grand { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 14px; font-size: 1.35rem; }
.sum-line.grand b { color: var(--pink); }
.disc { display: flex; gap: 6px; width: 170px; } .disc select { width: 70px; }
.note { font-size: .82rem; color: var(--green); }
.hint { font-size: .82rem; color: var(--muted); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(5,0,5,.7); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal.show { display: flex; }
.modal .box { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; width: 100%; max-width: 640px; max-height: 92vh; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.m-head { display: flex; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.m-head h3 { flex: 1; }
.m-head .x { background: none; border: none; color: var(--muted); font-size: 1.2rem; cursor: pointer; }
.m-body { padding: 20px 22px; overflow-y: auto; }
.m-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 22px; border-top: 1px solid var(--line); }
.m-err { color: var(--red); font-weight: 600; padding: 0 22px; margin-top: 12px; display: none; }
.m-err.show { display: block; }

/* ---------- Toast ---------- */
#toast {
  --tc: var(--pink);
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(120px);
  background: #2a1426; border: 1px solid var(--tc); color: #fff; padding: 12px 24px 14px; border-radius: 30px;
  font-weight: 600; transition: .3s; opacity: 0; z-index: 60; overflow: hidden;
  max-width: calc(100vw - 32px); box-shadow: 0 10px 40px rgba(0,0,0,.5), 0 0 22px -6px var(--tc);
}
#toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
#toast.t-success { --tc: var(--green); background: #0f2a22; }
#toast.t-delete  { --tc: var(--orange); background: #2e1d0c; }
#toast.t-error   { --tc: var(--red); background: #2e0f17; }
#toast.t-info    { --tc: var(--blue); background: #0f2030; }
#toast::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--tc); transform-origin: left; transform: scaleX(0); }
#toast.show::after { animation: toastbar 2.6s linear forwards; }
#toast.show.t-error::after { animation-duration: 3.5s; }
#toast.show.t-error { animation: toastshake .4s ease 1; }
@keyframes toastbar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes toastshake { 0%,100% { margin-left: 0; } 20%,60% { margin-left: -8px; } 40%,80% { margin-left: 8px; } }
.sound-btn { background: var(--panel2); border: 1px solid var(--line); color: var(--ink); border-radius: 30px; padding: 6px 11px; cursor: pointer; font-size: .95rem; }
.sound-btn:hover { border-color: var(--pink); }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: .25s; box-shadow: 20px 0 60px rgba(0,0,0,.6); }
  .sidebar.open { transform: none; }
  .menu-btn { display: block; }
  .topbar { padding: 14px 16px; } .content { padding: 18px 14px 40px; }
  .top-right .date { display: none; }
}

/* ---------- Receipt (print only) ---------- */
#receipt { display: none; }
@media print {
  body { background: #fff; display: block; }
  .sidebar, .main, #toast, .modal { display: none !important; }
  #receipt { display: block; width: 76mm; margin: 0 auto; font-family: "Courier New", monospace; font-size: 12px; color: #000; }
  #receipt h3 { text-align: center; font-size: 16px; }
  #receipt .c { text-align: center; }
  #receipt hr { border: none; border-top: 1px dashed #000; margin: 6px 0; }
  #receipt table { font-size: 11px; }
  #receipt th, #receipt td { color: #000; padding: 2px 0; border: none; text-transform: none; letter-spacing: 0; background: none; }
  #receipt .r { text-align: right; }
  #receipt .big { font-size: 15px; font-weight: bold; }
}

/* ---------- New Bill (row entry) ---------- */
.nb { background: linear-gradient(180deg, #24121c, #1a0b14); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.nb-title { font-size: 1.15rem; margin-bottom: 18px; }
.nb-top { display: flex; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.nb-top .grow { flex: 1; min-width: 240px; }
.nb-lbl { display: flex; flex-direction: column; gap: 8px; font-size: .78rem; font-weight: 700; color: #8e7a8a; text-transform: uppercase; letter-spacing: .4px; }
.nb input, .nb select { background: #0f070c; border: 1px solid #4a2a20; border-radius: 10px; padding: 11px 14px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.nb input:focus, .nb select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,165,59,.15); }
.nb-table { border: 1px solid #3c3070; border-radius: 12px; overflow: hidden; border-collapse: separate; border-spacing: 0; min-width: 900px; }
.nb-table th { background: linear-gradient(90deg, #4a3a8c, #55306e); color: #fff; font-weight: 800; font-size: .82rem; padding: 14px 10px; border-bottom: 2px solid #8a7bff; border-right: 1px solid rgba(255,255,255,.08); }
.nb-table td { padding: 2px; border-bottom: 1px solid #2a2040; background: #141a33; }
.nb-table tr:hover td { background: #141a33; }
.nb-table td input, .nb-table td select { border-radius: 8px; padding: 9px 10px; }
.nb-tot { color: var(--violet); font-weight: 800; padding: 0 12px !important; white-space: nowrap; }
.nb-x { width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer; color: #fff; font-weight: 800; background: linear-gradient(180deg, #ff4d6d, #c9184a); box-shadow: 0 4px 12px rgba(201,24,74,.4); margin: 0 auto; display: block; }
.nb-add { margin: 14px 0 22px; border: none; cursor: pointer; color: #fff; font-weight: 800; font-size: .82rem; padding: 7px 14px; border-radius: 20px; background: linear-gradient(90deg, #ff7a3d, #ff2e93); box-shadow: 0 4px 14px rgba(255,46,147,.35); }
.nb-sum { background: #0f1630; border: 1px solid #263063; border-radius: 12px; padding: 18px 22px; }
.nb-line { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; color: #b9b3cf; }
.nb-line input { width: 130px; text-align: right; padding: 7px 12px; }
.nb-line .vio { color: var(--violet); }
.nb-line.grand { border-top: 1px solid #263063; margin-top: 10px; padding-top: 18px; font-size: 1.15rem; color: #fff; font-weight: 800; }
.nb-line.grand .vio { font-size: 1.2rem; }
.nb-line.due span, .nb-line.due b { color: #ff5c7a; font-weight: 800; }
.nb-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 18px; }
.nb-clear { background: #1b2340; border: 1px solid #2f3a66; color: #c9d1f5; }
.nb-save { background: linear-gradient(90deg, #a3e635, #22c55e); color: #08240f; box-shadow: 0 6px 18px rgba(34,197,94,.35); }
input, select, textarea { color-scheme: dark; }

/* Station search dropdown */
.st-sug { position: fixed; z-index: 1000; display: none; max-height: 340px; overflow-y: auto; background: #1d0f1a; border: 1px solid rgba(255,46,147,.45); border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.6); padding: 6px; }
.st-sug.show { display: block; }
.st-item { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 9px 12px; border-radius: 8px; cursor: pointer; color: #f3e6ee; font-size: 14px; }
.st-item b { color: #ff2e93; }
.st-item code { font-family: inherit; font-weight: 700; font-size: 12px; color: #c9a8ff; background: rgba(155,92,255,.18); padding: 2px 8px; border-radius: 6px; }
.st-item.on, .st-item:hover { background: linear-gradient(90deg, rgba(255,46,147,.25), rgba(155,92,255,.2)); }
.st-none { padding: 10px 12px; color: #b89aac; font-size: 13px; }

/* ---------- Add Customer inline form ---------- */
.ac-panel h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.ac-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 14px; align-items: end; }
.ac-f { display: flex; flex-direction: column; gap: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.ac-f .req { color: var(--pink); }
.ac-f input, .ac-f select { height: 42px; text-transform: none; letter-spacing: normal; font-weight: 400; font-size: .9rem; border-color: rgba(255,140,60,.28); box-shadow: inset 0 2px 6px rgba(0,0,0,.45); }
.ac-phone { display: grid; grid-template-columns: 150px 1fr; gap: 8px; }
.ac-grid .btn.ac-btn { height: 34px; margin-bottom: 4px; border-radius: 999px; font-weight: 700; color: #0f1a08; background: linear-gradient(90deg, #b5f23d, #22a35a); box-shadow: 0 6px 18px rgba(34,163,90,.3); text-align: left; padding: 0 18px; }
.ac-grid .btn.ac-btn:hover { filter: brightness(1.08); }
@media (max-width: 1100px) { .ac-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .ac-grid { grid-template-columns: 1fr; } .ac-phone { grid-template-columns: 130px 1fr; } }

/* ---------- Customer-wise billing ---------- */
.click-row { cursor: pointer; }
.click-row:hover td { background: rgba(255,46,147,.06); }
.view-btn { padding: 7px 14px; font-size: .82rem; border-radius: 999px; background: rgba(155,92,255,.18); border: 1px solid rgba(155,92,255,.45); color: #e3d4ff; }
.view-btn:hover { background: linear-gradient(90deg, var(--pink), var(--purple)); border-color: transparent; color: #fff; }
.back-link { display: inline-block; margin-bottom: 14px; color: var(--muted); text-decoration: none; font-weight: 600; }
.back-link:hover { color: var(--pink); }
.cb-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cb-avatar { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--pink), var(--purple)); box-shadow: 0 8px 22px rgba(255,46,147,.35); }
.cb-info { flex: 1; min-width: 220px; }
.cb-info h2 { margin: 0 0 6px; }
.cb-meta { color: var(--muted); font-size: .9rem; }
.cb-actions { display: flex; gap: 10px; }
.cb-bill { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-top: 14px; background: rgba(0,0,0,.18); }
.cb-bill-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.cb-no { font-size: 1.05rem; }
.muted { color: var(--muted); }
.cb-amts { display: flex; gap: 20px; color: var(--muted); font-size: .88rem; }
.cb-amts b { color: var(--ink); margin-left: 4px; }
.cb-lines th, .cb-lines td { padding: 8px 10px; }
.cb-sub td { border-bottom: none; color: var(--muted); padding-top: 4px; padding-bottom: 4px; }
.cb-grand td { color: var(--pink); font-weight: 800; font-size: 1rem; }
.cb-dates .cb-day td { background: rgba(155,92,255,.10); color: var(--ink); padding: 9px 12px; border-bottom: 1px solid var(--line); }
.cb-route { max-width: 360px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.cb-bill-view .cb-bill-top { margin-bottom: 0; }
.cb-bill-view h2 .badge { vertical-align: middle; margin-left: 6px; }

/* ---------- Customer Bills (cbx) ---------- */
.cbx-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.cbx-head h2 { margin: 0; font-size: 1.15rem; }
.cbx-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cbx-btn, .cbx-pill { display: inline-flex; align-items: center; gap: 5px; border: 1px solid transparent; border-radius: 999px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; font-family: inherit; transition: transform .12s, filter .12s; }
.cbx-btn { padding: 7px 15px; font-size: .82rem; }
.cbx-pill { padding: 5px 13px; font-size: .74rem; }
.cbx-btn:hover, .cbx-pill:hover { transform: translateY(-1px); filter: brightness(1.12); }
.b-orange { background: linear-gradient(90deg, #ffd166, #ff8a3d); color: #3a1c00; }
.b-pink, .b-hist { background: linear-gradient(90deg, #ff7a45, #ff2e93 60%, #e040fb); color: #fff; box-shadow: 0 4px 14px rgba(255,46,147,.3); }
.b-green { background: linear-gradient(90deg, #b5f23d, #22a35a); color: #08300f; }
.b-dark { background: #121a2b; border-color: #2a3550; color: #c9d3e8; }
.b-dark:hover { border-color: var(--purple); color: #fff; }
.cbx-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.cbx-stat { min-width: 150px; padding: 12px 16px; border-radius: 12px; border: 1px solid; display: flex; flex-direction: column; gap: 4px; }
.cbx-stat span { font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; opacity: .7; }
.cbx-stat b { font-size: 1.35rem; }
.s-cyan { background: rgba(63,184,255,.07); border-color: rgba(120,140,170,.35); color: #5ee7e0; }
.s-green { background: rgba(43,217,159,.07); border-color: rgba(60,160,90,.45); color: #b5f23d; }
.s-red { background: rgba(255,84,112,.08); border-color: rgba(255,84,112,.4); color: #ff6b81; }
.cbx-table { border: 1px solid #2a3550; border-radius: 14px; overflow: auto; background: rgba(10,14,26,.35); }
.cbx-table table { width: 100%; border-collapse: collapse; }
.cbx-table thead th { background: #0f172a; color: #e5e9f5; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; padding: 13px 16px; text-align: left; border-bottom: 1px solid #2a3550; }
.cbx-table thead th.num { text-align: right; }
.cbx-table td { padding: 11px 16px; border-bottom: 1px solid #26304a; font-size: .86rem; }
.cbx-table tbody tr:last-child td { border-bottom: none; }
.cbx-table tbody tr:hover td { background: rgba(155,92,255,.05); }
.cbx-acts { display: flex; gap: 5px; flex-wrap: wrap; }
.t-vio { color: #c77dff; font-weight: 700; }
.t-lime { color: #b5f23d; font-weight: 700; }
.t-red { color: #ff6b81; font-weight: 700; }
.hist-sum { display: flex; gap: 22px; margin-bottom: 14px; color: var(--muted); }
.hist-sum b { margin-left: 4px; }
/* Billing summary */
.sum-search { width: 100%; height: 44px; margin-bottom: 16px; border-radius: 12px; border: 1px solid rgba(255,165,59,.35); background: rgba(0,0,0,.25); color: var(--ink); padding: 0 16px; box-shadow: inset 0 2px 6px rgba(0,0,0,.35); }
.sum-search:focus { outline: none; border-color: var(--orange); }
.sum-table td { white-space: nowrap; padding: 9px 12px; }
.sum-table thead th { padding: 12px; }
.t-gold { color: #ffc93c; font-weight: 700; text-decoration: none; }
.t-gold:hover { text-decoration: underline; }
.t-cyan { color: #5ee7e0; font-weight: 700; }
.b-brown { background: rgba(160,90,40,.55); color: #f1c9a0; }
.b-red { background: linear-gradient(90deg, #ff3d6e, #c2185b); color: #fff; }
.cbx-acts { flex-wrap: nowrap; }
td.cbx-acts { display: table-cell; white-space: nowrap; }
td.cbx-acts > * { margin: 2px 4px 2px 0; vertical-align: middle; }

/* label text + asterisk ek line me */
label.f .f-lbl { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Fancy modal (Advance) ---------- */
.modal .box.m-fancy { max-width: 680px; border: 2px solid #ff2e93; border-radius: 20px; overflow: hidden;
  background: radial-gradient(120% 80% at 0% 100%, rgba(255,46,147,.22), transparent 55%), linear-gradient(180deg, #3a0c33, #24081f);
  box-shadow: 0 0 0 1px rgba(255,46,147,.25), 0 0 40px rgba(255,46,147,.35), 0 30px 80px rgba(0,0,0,.6); }
.m-fancy .m-head { background: linear-gradient(90deg, #ff2e93, #d6136f 55%, #8e0f5c); border-bottom: 2px solid #ff6bb5; padding: 14px 18px; box-shadow: 0 4px 18px rgba(255,46,147,.35); }
.m-fancy .m-head h3 { color: #fff; font-size: 1.35rem; font-weight: 800; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; text-shadow: 0 2px 6px rgba(0,0,0,.35); }
.m-fancy .mt-ic { font-size: 1.6rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.m-fancy .mt-gold { color: #ffe600; }
.m-fancy .mt-sub { font-size: .8rem; font-weight: 600; color: #ffe1f0; background: rgba(0,0,0,.25); padding: 3px 10px; border-radius: 999px; }
.m-fancy .m-head .x { width: 42px; height: 42px; border-radius: 10px; background: rgba(0,0,0,.18); color: #fff; font-size: 1.4rem; font-weight: 800; }
.m-fancy .m-head .x:hover { background: rgba(0,0,0,.32); }
.m-fancy .m-body { padding: 22px; }
.m-fancy .form-grid { gap: 18px 22px; grid-template-columns: 1fr 1fr; }
.m-fancy label.f { color: #fff; font-size: .98rem; font-weight: 800; gap: 9px; }
.m-fancy .f-ic { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-style: normal; font-size: .95rem; margin-right: 8px;
  background: linear-gradient(135deg, #ff5fa8, #e0137a); color: #fff; box-shadow: 0 3px 10px rgba(255,46,147,.45); }
.m-fancy .req { color: #ff3d8b; font-size: 1.1rem; }
.m-fancy input, .m-fancy select { height: 50px; font-size: 1rem; border: 2px solid #ff2e93; border-radius: 12px; background: rgba(15,4,14,.75); color: #fff; padding: 0 14px; }
.m-fancy input::placeholder { color: #a98aa2; }
.m-fancy input:focus, .m-fancy select:focus { outline: none; border-color: #ff7cc0; box-shadow: 0 0 0 3px rgba(255,46,147,.25); }
.m-fancy .m-foot { border-top: 2px solid rgba(255,46,147,.45); padding: 16px 22px 20px; gap: 14px; }
.m-fancy .m-foot .btn { height: 48px; min-width: 150px; justify-content: center; font-size: 1.05rem; font-weight: 800; border-radius: 12px; }
.m-fancy .m-foot .btn.ghost { background: linear-gradient(180deg, #3d1a5c, #2a0f45); border: 2px solid #8f5cff; color: #fff; }
.m-fancy .m-foot .btn.ghost::before { content: "⊗"; font-size: 1.25rem; margin-right: 8px; }
.m-fancy .m-foot .btn.primary { background: linear-gradient(180deg, #ff4fa3, #e0136f); border: 2px solid #ff7cc0; box-shadow: 0 6px 18px rgba(255,46,147,.4); }
@media (max-width: 560px) { .m-fancy .form-grid { grid-template-columns: 1fr; } .m-fancy .m-foot .btn { min-width: 0; flex: 1; } }
/* payment popup info */
.pay-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; padding: 12px 14px; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px dashed rgba(255,46,147,.45); }
.pi-chip { padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.pi-chip b { margin-left: 4px; }
.pi-red { background: rgba(255,84,112,.15); color: #ff8fa0; border: 1px solid rgba(255,84,112,.4); }
.pi-cyan { background: rgba(94,231,224,.1); color: #5ee7e0; border: 1px solid rgba(94,231,224,.35); }
.pi-use { margin-left: auto; padding: 8px 14px; border-radius: 999px; border: 2px solid #ffe600; background: linear-gradient(90deg, #ffd23f, #ff9f1c); color: #3a1c00; font-weight: 800; cursor: pointer; font-family: inherit; }
.pi-use:hover { filter: brightness(1.1); transform: translateY(-1px); }
.pi-hint { margin: -6px 0 16px; font-size: .82rem; color: #e9c6dc; }
.pay-info label.pi-use { display: inline-flex; align-items: center; gap: 8px; }
.pi-use input { width: 18px; height: 18px; accent-color: #b5651d; cursor: pointer; }
.pi-calc { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: -6px 0 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255,230,0,.06); border: 1px solid rgba(255,230,0,.25); color: #f1dbe8; font-size: .95rem; }
.pi-calc b { margin-left: 4px; }
.pi-calc .t-gold { font-size: 1.1rem; }

/* Sidebar hamesha screen par tika rahe (desktop) */
@media (min-width: 861px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; height: 100vh; }
  .main { margin-left: 250px; }
}
/* list pages: action buttons */
td.row-acts { white-space: nowrap; text-align: right; }
td.row-acts > .cbx-pill { margin-left: 6px; }
.b-edit { background: linear-gradient(90deg, #7b5cff, #9b5cff); color: #fff; box-shadow: 0 4px 12px rgba(155,92,255,.3); }
/* New Bill: customer search */
#nbCustQ { width: 100%; }
.cs-sug { max-height: 380px; overflow-y: auto; }
.cs-sug .cs-addr { color: var(--muted); font-weight: 400; }
.cs-sug .cs-new { color: #b5f23d; font-weight: 700; border-top: 1px solid var(--line); }
/* WhatsApp receipt */
.b-receipt { background: linear-gradient(90deg, #25d366, #128c7e); color: #fff; box-shadow: 0 4px 12px rgba(37,211,102,.3); }
.wa-preview { white-space: pre-wrap; font-family: inherit; font-size: .86rem; line-height: 1.5; background: #0b141a; color: #e9edef; border: 1px solid #1f3a33; border-radius: 12px; padding: 14px 16px; max-height: 340px; overflow-y: auto; margin: 0 0 14px; }
.wa-send { width: 100%; justify-content: center; padding: 12px; font-size: .95rem; }

/* Supplier bill view popup */
.modal .box.m-wide { max-width: 1000px; }
.vb-head { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.vb-box { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; min-width: 0; }
.vb-box span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 4px; }
.vb-box b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.vb-box small { font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 6px; }
.vb-vio { border-color: rgba(168,85,247,.45); } .vb-vio b { color: #c084fc; }
.vb-lime { border-color: rgba(163,230,53,.4); } .vb-lime b { color: #a3e635; }
.vb-red { border-color: rgba(244,63,94,.45); } .vb-red b { color: #fb7185; }
.vb-tbl { border: 1px solid var(--line); border-radius: 12px; margin-top: 6px; }
.vb-tbl table { width: 100%; border-collapse: collapse; }
.vb-tbl th { background: rgba(124,58,237,.18); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; padding: 10px 12px; text-align: left; white-space: nowrap; }
.vb-tbl td { padding: 10px 12px; border-top: 1px solid var(--line); white-space: nowrap; }
.vb-tbl .num { text-align: right; }
.vb-cls { background: rgba(34,211,238,.12); color: #67e8f9; border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 600; }
.vb-tot { margin: 14px 0 0 auto; width: 300px; max-width: 100%; }
.vb-tot div { display: flex; justify-content: space-between; padding: 5px 4px; color: var(--muted); }
.vb-tot b { color: var(--text, #fff); }
.vb-tot .vb-grand { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px; font-size: 17px; }
.vb-tot .vb-grand span, .vb-tot .vb-grand b { color: #ff2e93; font-weight: 800; }
@media (max-width: 700px) { .vb-head { grid-template-columns: 1fr 1fr; } }

.vb-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-top: 14px; }
.vb-foot .vb-tot { margin: 0; }
.vb-extra { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 4px; }

/* Supplier ledger entry tags */
.vk { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.vk-bill { background: rgba(168,85,247,.16); color: #c084fc; }
.vk-pay { background: rgba(163,230,53,.14); color: #a3e635; }
.vk-adv { background: rgba(34,211,238,.14); color: #67e8f9; }
.vk-ret { background: rgba(250,204,21,.14); color: #facc15; }
.cbx-table td small { font-weight: 500; opacity: .8; font-size: 11px; }

/* Sidebar groups */
.nav-group { display: flex; flex-direction: column; gap: 4px; }
.nav-ghead .nav-chev { margin-left: auto; font-size: .8rem; opacity: .7; transition: transform .2s; }
.nav-group.open > .nav-ghead .nav-chev { transform: rotate(90deg); }
.nav-group:has(.nav-item.active) > .nav-ghead { color: #fff; }
.nav-sub { display: none; flex-direction: column; gap: 4px; margin-left: 18px; padding-left: 10px; border-left: 1px dashed rgba(255,46,147,.25); }
.nav-group.open > .nav-sub { display: flex; }
.nav-sub .nav-item { padding: 10px 14px; font-size: .92rem; }
.nav-sub .nav-item { white-space: nowrap; gap: 10px; padding: 10px 12px; }

/* ---------- Tickets ---------- */
.tk-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.tk-tab { background: #141c33; border: 1px solid #2a3558; color: #9aa6c8; padding: 9px 18px; border-radius: 12px; font-weight: 700; font-size: .92rem; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.3); transition: .15s; }
.tk-tab:hover { color: #fff; border-color: #4a5a8c; }
.tk-tab.on { color: #ffd166; background: linear-gradient(180deg, #2b2457, #1d1a40); border-color: #7c5cff; box-shadow: 0 0 0 1px rgba(124,92,255,.35), 0 6px 20px rgba(124,92,255,.25); }
.tk-tab em { font-style: normal; background: rgba(255,255,255,.1); border-radius: 999px; padding: 1px 8px; margin-left: 4px; font-size: .8rem; }
.tk-panel { background: linear-gradient(180deg, #0f1a33, #0c152b); border: 1px solid #23305a; border-radius: 18px; padding: 24px 26px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.tk-title { color: #c084fc; font-size: 1.25rem; font-weight: 900; letter-spacing: .5px; margin: 0 0 14px; }
.tk-sec { color: #e9d5ff; font-size: .95rem; font-weight: 800; letter-spacing: 1px; margin: 18px 0 14px; padding-bottom: 10px; border-bottom: 1px solid #23305a; }
.tk-grid { display: grid; gap: 14px; align-items: end; }
.tk-g-journey { grid-template-columns: 1.6fr 1.6fr 1.1fr 1.1fr .9fr .8fr .8fr 2.1fr; }
.tk-g-price { grid-template-columns: 2.6fr 1fr 1fr 1.1fr 1fr 1fr 2.6fr; }
.tk-f { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.tk-f > span { font-size: .78rem; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }
.l-vio { color: #c084fc; } .l-gold { color: #fbbf24; } .l-lime { color: #a3e635; } .l-red { color: #fb7185; }
.tk-f input, .tk-f select, .tk-ptable input, .tk-ptable select { background: #170d16; border: 1px solid #3a2a33; color: #fff; border-radius: 10px; padding: 11px 13px; font-size: .92rem; width: 100%; box-shadow: inset 0 2px 6px rgba(0,0,0,.4); }
.tk-f input:focus, .tk-f select:focus, .tk-ptable input:focus, .tk-ptable select:focus { outline: none; border-color: #c084fc; box-shadow: 0 0 0 3px rgba(192,132,252,.18); }
.tk-f input[readonly] { color: #fbbf24; font-weight: 700; }
.tk-hl-gold { border-color: #b8860b !important; }
.tk-ptable { border: 1px solid #23305a; border-radius: 6px; overflow: hidden; }
.tk-ptable table { width: 100%; border-collapse: collapse; }
.tk-ptable th { text-align: left; font-size: .78rem; text-transform: uppercase; padding: 12px; background: #0f1a33; border-bottom: 1px solid #b8860b55; }
.tk-ptable th + th, .tk-ptable td + td { border-left: 1px solid #23305a; }
.tk-ptable td { padding: 8px 10px; border-top: 1px solid #1c2747; }
.tk-actions { display: flex; gap: 10px; align-items: end; }
.tk-save { flex: 1; background: linear-gradient(90deg, #c6f432, #22a35a); color: #10240f; font-weight: 800; border: 0; border-radius: 12px; padding: 13px 18px; cursor: pointer; text-align: left; box-shadow: 0 8px 24px rgba(34,163,90,.3); }
.tk-save:hover { filter: brightness(1.08); } .tk-save:disabled { opacity: .6; }
.tk-listhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.tk-listhead .tk-title { margin: 0; }
.tk-sum { display: flex; gap: 18px; color: #9aa6c8; flex-wrap: wrap; }
@media (max-width: 1300px) { .tk-g-journey { grid-template-columns: repeat(4, 1fr); } .tk-g-price { grid-template-columns: repeat(3, 1fr); } .tk-actions { grid-column: 1 / -1; } }
@media (max-width: 700px) { .tk-g-journey, .tk-g-price { grid-template-columns: 1fr 1fr; } }
.tk-f input:not([type]), .tk-f input[type="text"], .tk-ptable input:not([type]) { text-transform: uppercase; }
.tk-f input::placeholder, .tk-ptable input::placeholder { text-transform: none; }
.tk-pname { text-transform: uppercase; font-weight: 600; }
.tk-more { background: rgba(192,132,252,.15); color: #c084fc; border: 1px solid rgba(192,132,252,.35); border-radius: 999px; padding: 1px 8px; font-size: .75rem; font-weight: 700; cursor: pointer; margin-left: 4px; }
.tk-more:hover { background: rgba(192,132,252,.28); }
.vb-box.vb-wrap b { white-space: normal; font-size: 15px; line-height: 1.35; }

/* Ticket view: PNR hara */
.vb-box.vb-pnr { border-color: rgba(43,217,159,.55); background: rgba(43,217,159,.1); box-shadow: 0 0 14px rgba(43,217,159,.18); }
.vb-box.vb-pnr span { color: var(--green); }
.vb-box.vb-pnr b { color: var(--green); letter-spacing: 1px; }

/* country code + number */
.tk-phone { display: flex; gap: 6px; min-width: 0; }
.tk-phone select { flex: 0 0 auto; width: 118px; min-width: 0; }
.tk-phone input { flex: 1; min-width: 0; }
.wa-to { margin: 12px 0 10px; }
.wa-to > span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.wa-to select, .wa-to input { background: rgba(255,255,255,.04); border: 1px solid var(--line); color: inherit; border-radius: 10px; padding: 10px 12px; font-size: 15px; }
.wa-to select option { background: #1a0f1a; }
.tk-phone select.cc-sel { width: 132px; flex: 0 0 132px; padding-left: 10px; padding-right: 6px; }

/* Refund */
.tk-refok { display: inline-flex; flex-direction: column; gap: 2px; padding: 6px 12px; border-radius: 10px; background: rgba(43,217,159,.14); border: 1px solid rgba(43,217,159,.5); color: var(--green); font-weight: 800; font-size: 13px; white-space: nowrap; }
.tk-refok small { font-weight: 500; font-size: 11px; color: var(--green); opacity: .85; }
.tk-refdone { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(43,217,159,.22), rgba(43,217,159,.06)); border: 1px solid rgba(43,217,159,.6); box-shadow: 0 0 22px rgba(43,217,159,.2); }
.tk-refdone-ic { font-size: 34px; line-height: 1; }
.tk-refdone b { display: block; font-size: 20px; color: var(--green); }
.tk-refdone span { color: var(--text, #eee); font-size: 14px; }

/* Confirm popup */
.cfm-bg { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 20px; background: rgba(8,3,8,.72); backdrop-filter: blur(6px); animation: cfmIn .15s ease; }
.cfm-bg.out { opacity: 0; transition: opacity .15s; }
.cfm-box { --c: var(--red); width: min(480px, 100%); text-align: center; padding: 26px 24px 20px; border-radius: 20px; background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 0 40px color-mix(in srgb, var(--c) 25%, transparent), 0 20px 60px rgba(0,0,0,.6); animation: cfmPop .18s ease; }
.cfm-box.cfm-green { --c: var(--green); } .cfm-box.cfm-blue { --c: var(--blue); }
.cfm-ic { width: 64px; height: 64px; margin: 0 auto 12px; display: grid; place-items: center; font-size: 30px; border-radius: 50%; background: color-mix(in srgb, var(--c) 16%, transparent); border: 2px solid color-mix(in srgb, var(--c) 60%, transparent); }
.cfm-title { margin: 0 0 12px; font-size: 19px; color: var(--ink); }
.cfm-body { text-align: left; }
.cfm-tk { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.cfm-tk > div { padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); min-width: 0; }
.cfm-tk span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.cfm-tk b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.cfm-note { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; text-align: center; }
.cfm-note b { color: var(--ink); }
.cfm-btns { display: flex; gap: 10px; margin-top: 18px; }
.cfm-btns button { flex: 1; white-space: nowrap; padding: 12px 14px; border-radius: 12px; font-weight: 800; font-size: 14.5px; cursor: pointer; border: 1px solid var(--line); }
.cfm-no { background: rgba(255,255,255,.05); color: var(--ink); }
.cfm-no:hover { background: rgba(255,255,255,.1); }
.cfm-ok { background: var(--c); color: #12060f; border-color: transparent !important; box-shadow: 0 6px 20px color-mix(in srgb, var(--c) 40%, transparent); }
.cfm-red .cfm-ok { color: #fff; }
.cfm-ok:hover { filter: brightness(1.1); }
.cfm-ok:focus-visible, .cfm-no:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@keyframes cfmIn { from { opacity: 0; } }
@keyframes cfmPop { from { transform: scale(.92); opacity: 0; } }
/* Confirm buttons v2 */
.cfm-btns { gap: 12px; margin-top: 20px; }
.cfm-btns button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 16px; border-radius: 14px; font-size: 15px; letter-spacing: .2px; transition: transform .12s, box-shadow .15s, background .15s, border-color .15s; }
.cfm-btns button i { font-style: normal; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 13px; font-weight: 900; line-height: 1; }
.cfm-no { background: transparent; color: var(--ink); border: 1.5px solid rgba(255,255,255,.18) !important; }
.cfm-no i { background: rgba(255,255,255,.1); }
.cfm-no:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.35) !important; transform: translateY(-1px); }
.cfm-ok { color: #fff !important; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 100%, #fff 12%), color-mix(in srgb, var(--c) 78%, #000)); box-shadow: 0 8px 24px color-mix(in srgb, var(--c) 45%, transparent), inset 0 1px 0 rgba(255,255,255,.25); text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.cfm-ok i { background: rgba(255,255,255,.25); color: #fff; }
.cfm-ok:hover { transform: translateY(-1px); box-shadow: 0 12px 30px color-mix(in srgb, var(--c) 55%, transparent), inset 0 1px 0 rgba(255,255,255,.25); filter: none; }
.cfm-ok:active, .cfm-no:active { transform: translateY(0) scale(.98); }
.cfm-green .cfm-ok, .cfm-blue .cfm-ok { color: #fff !important; }

/* Urgent booking */
.tk-urgent { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: .4px; color: #fff; background: linear-gradient(135deg, #ff3b5c, #ff7a18); box-shadow: 0 0 0 0 rgba(255,59,92,.6); animation: tkPulse 1.4s infinite; }
.tk-soon { display: inline-flex; margin-top: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; color: var(--orange); background: rgba(255,165,59,.14); border: 1px solid rgba(255,165,59,.4); }
tr:has(.tk-ubadge) > td { background: rgba(255,59,92,.07); }
tr:has(.tk-ubadge) > td:first-child { box-shadow: inset 3px 0 0 #ff3b5c; }
@keyframes tkPulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,92,.6); } 70% { box-shadow: 0 0 0 9px rgba(255,59,92,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,92,0); } }
.tk-uic { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 15px; vertical-align: middle; background: linear-gradient(135deg, #ff3b5c, #ff7a18); animation: tkPulse 1.4s infinite; cursor: help; }
.tk-uic.soon { background: rgba(255,165,59,.16); border: 1px solid rgba(255,165,59,.5); animation: none; }
/* URGENT badge (aaj / late booking) */
.tk-ubadge { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; padding: 5px 12px 4px; border-radius: 9px; font: 400 15px/1 Impact, "Haettenschweiler", "Arial Narrow Bold", sans-serif; letter-spacing: 1.2px; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.35); background: linear-gradient(180deg, #ff2a2a 0%, #d10000 55%, #b30000 100%); border: 2px solid #ff4d4d; box-shadow: inset 0 2px 0 rgba(255,255,255,.25), inset 0 -3px 0 rgba(0,0,0,.25), 0 3px 0 #7a0000, 0 0 0 0 rgba(255,40,40,.6); animation: tkUrg 1.4s infinite; cursor: help; }
@keyframes tkUrg { 0% { box-shadow: inset 0 2px 0 rgba(255,255,255,.25), inset 0 -3px 0 rgba(0,0,0,.25), 0 3px 0 #7a0000, 0 0 0 0 rgba(255,40,40,.6); } 70% { box-shadow: inset 0 2px 0 rgba(255,255,255,.25), inset 0 -3px 0 rgba(0,0,0,.25), 0 3px 0 #7a0000, 0 0 0 9px rgba(255,40,40,0); } 100% { box-shadow: inset 0 2px 0 rgba(255,255,255,.25), inset 0 -3px 0 rgba(0,0,0,.25), 0 3px 0 #7a0000, 0 0 0 0 rgba(255,40,40,0); } }
/* NEXT DAY badge (kal booking) — calendar jaisa */
.tk-nextday { position: relative; display: inline-flex; align-items: flex-end; justify-content: center; vertical-align: middle; min-width: 84px; height: 34px; padding: 0 9px 4px; border-radius: 6px; font: 800 12.5px/1 "Segoe UI", system-ui, sans-serif; letter-spacing: .6px; color: #2f3b3b; background: linear-gradient(180deg, #8c8b70 0 10px, #fbfbfb 10px 100%); box-shadow: 0 2px 0 #c9c9c9, 0 3px 8px rgba(0,0,0,.35); cursor: help; }
.tk-nextday i { position: absolute; top: -3px; left: 12px; right: 12px; height: 9px; background: radial-gradient(circle at 50% 75%, #fff 0 2.4px, transparent 2.6px) 0 0 / 20% 100% repeat-x, linear-gradient(90deg, transparent 0 7%, #3a4a4a 7% 13%, transparent 13% 27%, #3a4a4a 27% 33%, transparent 33% 47%, #3a4a4a 47% 53%, transparent 53% 67%, #3a4a4a 67% 73%, transparent 73% 87%, #3a4a4a 87% 93%, transparent 93%); border-radius: 2px; }

/* Booking date nikal gayi */
.tk-late { display: inline-flex; align-items: center; vertical-align: middle; padding: 6px 11px; border-radius: 8px; font: 800 12px/1 "Segoe UI", system-ui, sans-serif; letter-spacing: .5px; color: #ffd0d0; background: #2a0a0f; border: 1.5px solid #ff3b5c; box-shadow: 0 2px 8px rgba(0,0,0,.4); white-space: nowrap; cursor: help; }
tr:has(.tk-late) > td { background: rgba(255,59,92,.05); }
tr:has(.tk-late) > td:first-child { box-shadow: inset 3px 0 0 #8a1c2c; }
.tk-expnote { margin: 0 0 12px; padding: 11px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; color: #ffd9a0; background: rgba(255,165,59,.1); border: 1px solid rgba(255,165,59,.4); }
.tk-expnote b { color: #fff; }

/* Extra ticket inventory */
.xt-g-journey { grid-template-columns: 1.7fr 1.7fr 1.1fr 1fr .8fr 1fr 1.2fr; }
.xt-g-price { grid-template-columns: 1.4fr 1.4fr 1fr 1fr 1fr 1.8fr; }
.xt-g-sold { grid-template-columns: 2fr 1.3fr 1.1fr 2fr; }
@media (max-width: 1300px) { .xt-g-journey { grid-template-columns: repeat(4, 1fr); } .xt-g-price, .xt-g-sold { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .xt-g-journey, .xt-g-price, .xt-g-sold { grid-template-columns: 1fr 1fr; } }
.xt-st-av { border-color: rgba(43,217,159,.6) !important; color: var(--green) !important; font-weight: 700; }
.xt-st-sold { border-color: rgba(255,84,112,.6) !important; color: var(--red) !important; font-weight: 700; }
.xt-pnr { font-weight: 800; letter-spacing: .8px; color: var(--green); }
.xt-addbtn { margin-left: auto; text-decoration: none; border-color: rgba(163,230,53,.5) !important; color: #a3e635 !important; }

.xt-pick { margin: 4px 0 6px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); }
.xt-pick-h { font-weight: 800; font-size: 13px; margin-bottom: 8px; color: #fff; }
.xt-pick-h small { font-weight: 500; opacity: .75; }
.xt-pick-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.xt-pick-row:hover { background: rgba(255,255,255,.06); }
.xt-pick-row b { text-transform: uppercase; }
.xt-pick-row span { margin-left: auto; font-size: 12px; opacity: .75; }
.xt-opt { font-size: 10px; font-weight: 600; opacity: .7; text-transform: lowercase; margin-left: 4px; }
#xtProfit.t-red { color: var(--red) !important; } #xtProfit.t-lime { color: #a3e635 !important; }

.xt-vsum { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; }
.xt-vsum .badge { font-size: 12.5px; padding: 5px 11px; }
.vb-tbl tr.xt-row-sold td { opacity: .78; }
.vb-tbl tr.xt-row-sold td b { text-decoration: none; }

.xt-sibrow td { background: rgba(255,255,255,.015); }
.xt-sibv { padding: 10px 12px; border-radius: 10px; border: 1px dashed rgba(255,255,255,.14); min-height: 42px; display: flex; align-items: center; gap: 6px; }
.xt-sib-sold .xt-sibv { opacity: .8; }
.xt-sibst { display: flex; flex-direction: column; justify-content: center; padding: 6px 12px; border-radius: 10px; font-weight: 800; font-size: 13px; min-height: 42px; }
.xt-sibst small { font-weight: 600; font-size: 11px; opacity: .85; }
.xt-sibst.sold { color: #ff6b81; background: rgba(255,71,87,.12); border: 1px solid rgba(255,71,87,.45); }
.xt-sibst.av { color: #2ed573; background: rgba(46,213,115,.10); border: 1px solid rgba(46,213,115,.45); }
.xt-sibbtn { background: rgba(255,255,255,.08) !important; }
.xt-sibnote { font-size: 12px; opacity: .8; margin: 8px 2px 4px; }

.xt-lp { display: flex; align-items: center; gap: 6px; white-space: nowrap; line-height: 1.7; }
.xt-lp i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.xt-lp.av i { background: #2ed573; box-shadow: 0 0 6px #2ed573; }
.xt-lp.sold i { background: #ff4757; box-shadow: 0 0 6px #ff4757; }
.xt-lp.sold .tk-pname { opacity: .8; }
.xt-lst .badge { display: inline-block; margin: 0 4px 3px 0; }
.xt-lbuy { display: block; line-height: 1.4; }

/* Buyer billing */
.xt-bchip { border: 0; cursor: pointer; font: 700 11px/1 inherit; padding: 5px 9px; border-radius: 999px; margin: 3px 0 0; display: inline-block; white-space: nowrap; }
.xt-bchip.go { background: linear-gradient(90deg,#f7b733,#fc4a1a); color: #fff; box-shadow: 0 2px 8px rgba(252,74,26,.35); }
.xt-bchip.done { background: rgba(80,160,255,.15); color: #7cc0ff; border: 1px solid rgba(80,160,255,.45); }
.xt-bchip.add { background: rgba(255,255,255,.08); color: #ddd; border: 1px dashed rgba(255,255,255,.35); }
.xt-lbuys { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.xt-lbuy { display: flex; flex-direction: column; align-items: flex-start; }
.xt-g-sold { grid-template-columns: 1.3fr 1.2fr 1fr 1fr auto !important; }
.xt-buyer-m { display: flex; flex-direction: column; gap: 6px; margin: 0 0 10px; font-weight: 800; font-size: 13px; color: #ffd36b; }
.xt-buyer-m small { font-weight: 500; opacity: .75; color: #fff; }
.xt-buyer-m select { padding: 10px 12px; border-radius: 10px; }
.nb-xt { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: rgba(247,183,51,.06); border: 1px solid rgba(247,183,51,.35); }
.nb-xt-h { font-weight: 800; color: #ffd36b; margin-bottom: 8px; }
.nb-xt-h small { font-weight: 500; opacity: .75; color: #fff; }
.nb-xt-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; cursor: pointer; flex-wrap: wrap; }
.nb-xt-row:hover { background: rgba(255,255,255,.05); }
.nb-xt-row input { width: 18px; height: 18px; }
.nb-xt-p { text-transform: uppercase; font-weight: 600; }
.nb-xt-row em { margin-left: auto; font-style: normal; opacity: .7; font-size: 12px; }
.nb-xt-amt { color: #c79bff; min-width: 100px; text-align: right; }

/* Bill me Extra Ticket detail */
.vb-xt { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.vb-xt-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.vb-xt-h i { font-style: normal; color: #ff4fa3; font-weight: 800; }
.vb-xt-tag { font: 800 10.5px/1 inherit; letter-spacing: .06em; padding: 5px 9px; border-radius: 999px; background: linear-gradient(90deg,#f7b733,#fc4a1a); color: #fff; }
.vb-xt-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.vb-xc { display: flex; flex-direction: column; gap: 3px; padding: 7px 12px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); min-width: 90px; }
.vb-xc small { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; opacity: .7; }
.vb-xc b { font-size: 13.5px; }
.vb-xc.gold { border-color: rgba(247,183,51,.55); background: rgba(247,183,51,.08); }
.vb-xc.gold b { color: #ffd36b; }
.vb-xc.pnr { border-color: rgba(46,213,115,.55); background: rgba(46,213,115,.08); }
.vb-xc.pnr b { color: #2ed573; letter-spacing: .08em; font-size: 15px; }
.vb-xt-pt { width: 100%; border-collapse: collapse; border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.03); }
.vb-xt-pt th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; text-align: left; padding: 7px 10px; background: rgba(155,89,255,.18); color: #d9c2ff; }
.vb-xt-pt td { padding: 7px 10px; border-top: 1px solid rgba(255,255,255,.07); font-size: 13px; }
.vb-xt-rate { font-size: 12px; opacity: .75; }
tr.vb-xtrow > td { vertical-align: top; padding-top: 12px; padding-bottom: 12px; }

/* Seller payment */
.xt-bchip.pay { background: linear-gradient(90deg,#ff416c,#ff4b2b); color: #fff; box-shadow: 0 2px 8px rgba(255,65,108,.35); }
.xt-bchip.paid { background: rgba(46,213,115,.12); color: #2ed573; border: 1px solid rgba(46,213,115,.45); cursor: default; }
.xt-sbsum { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,.06); margin: 8px 0; }
.xt-sbsum b { font-size: 18px; color: #ff6b81; }
.xt-sbpay { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin: 6px 0; text-align: left; }
.xt-sbpay label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 700; }
.xt-sbpay input, .xt-sbpay select { padding: 9px 11px; border-radius: 9px; }

.xt-pnrchk { margin-left: 6px; border: 1px solid rgba(46,213,115,.5); background: rgba(46,213,115,.12); color: #2ed573; font: 700 10px/1 inherit; padding: 3px 7px; border-radius: 999px; cursor: pointer; text-transform: none; letter-spacing: 0; }
.xt-pnrchk:hover { background: rgba(46,213,115,.25); }

.xt-unpay { text-align: left; padding: 10px 12px; border-radius: 10px; background: rgba(247,183,51,.08); border: 1px solid rgba(247,183,51,.4); margin: 8px 0; font-size: 13px; }
.xt-unpay p { margin: 0 0 8px; }
.xt-unpay label { display: flex; align-items: center; gap: 8px; padding: 5px 0; cursor: pointer; }
.xt-unpay select { margin-left: auto; padding: 4px 8px; border-radius: 7px; }
.xt-unpay label input[type=radio] { width: 16px !important; height: 16px; flex: none; margin: 0; }
.xt-unpay label span { flex: 1; display: block; }
.xt-unpay label select { width: auto !important; flex: none; }

/* Software item level badges */
.lv-badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: .72rem; font-weight: 800; white-space: nowrap; letter-spacing: .02em; border: 1px solid currentColor; }
.lv-dev { color: #ff4fd8; background: rgba(255,79,216,.12); }
.lv-sm { color: #b388ff; background: rgba(179,136,255,.12); }
.lv-m { color: #3fb8ff; background: rgba(63,184,255,.12); }
.lv-ad { color: #ffd166; background: rgba(255,209,102,.12); }
.lv-ss { color: #2bd99f; background: rgba(43,217,159,.12); }
.lv-s { color: #c5cbe0; background: rgba(197,203,224,.10); }
.lv-list { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 14px; }
.lv-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }
.lv-row .lv-acts { margin-left: auto; display: flex; gap: 6px; }
.lv-add { display: flex; gap: 10px; }
.lv-add input { flex: 1; }

/* Extra Ticket WhatsApp popup */
.xt-wah{font-size:14px;margin:14px 0 8px;color:var(--text,#fff)}
.xt-wah:first-child{margin-top:0}
.xt-imgbtn{margin-top:10px;width:100%}
.xt-imgprev{display:block;width:100%;max-width:420px;margin:0 auto 14px;border-radius:14px;box-shadow:0 8px 30px rgba(0,0,0,.5)}
.xt-imgacts{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.xt-imgacts .cbx-btn{flex:1;min-width:140px}
/* Saare popup bade */
.modal .box { max-width: min(880px, 96vw); }
.modal .box.m-fancy { max-width: min(920px, 96vw); }
.modal .box.m-wide, .modal .box.m-wide.m-xl { max-width: min(1400px, 96vw); }
.modal #modalBody { font-size: 1.08rem; }
.modal .vb-box { padding: 14px 18px; }
.modal .vb-box b { font-size: 1.15rem; }
.modal .vb-tbl th, .modal .vb-tbl td { padding: 14px 14px; }
.modal .vb-tot { font-size: 1.05rem; }
.modal .wa-preview { font-size: .95rem; max-height: 460px; }
.modal .xt-imgprev { max-width: 520px; }
.cfm-box { width: min(640px, 96vw); font-size: 1.06rem; padding: 32px 30px 24px; }
/* Extra Ticket list: 1 passenger, baaki Show more se */
.xt-paxl .xt-lp-x { display: none; }
.xt-paxl.open .xt-lp-x { display: flex; }
.xt-pmore { margin: 4px 0 0; display: inline-block; }
.xt-pmore .m-hide, .xt-paxl.open .xt-pmore .m-show { display: none; }
.xt-paxl.open .xt-pmore .m-hide { display: inline; }
.xt-pmore { white-space: nowrap; }
/* Bill image print */
.bill-imgprev { display: block; width: 100%; border-radius: 12px; margin: 0 0 14px; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
@media print {
  body.print-img #receipt { width: auto; margin: 0; }
  body.print-img #receipt img { display: block; width: 100%; height: auto; max-height: 190mm; object-fit: contain; }
}
/* Logo image */
.logo img { display: block; width: 100%; max-width: 210px; height: auto; background: #fff; border-radius: 12px; padding: 6px 8px; box-shadow: 0 4px 16px rgba(0,0,0,.35); }
.cred-box { display: grid; gap: 10px; text-align: left; margin-top: 6px; }
.cred-f { display: grid; gap: 4px; font-size: .9rem; font-weight: 600; }
.cred-f input { width: 100%; }
