/* TourKro B2B · colours from the TourKro brand kit */
:root {
  --navy: #10233A; --blue: #0B6FB8; --blue-d: #095c99; --orange: #FF7A2F; --orange-d: #e9661c;
  --mist: #F3F6FA; --line: #dfe6ef; --text: #1d2b3a; --muted: #6b7a8c; --ok: #12925a; --warn: #b45309; --err: #c2410c;
  --card: #fff; --radius: 12px; --shadow: 0 1px 2px rgba(16, 35, 58, .06), 0 4px 14px rgba(16, 35, 58, .05);
  --head: 'Urbanist', system-ui, sans-serif; --body: 'Mukta', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--body); color: var(--text); background: var(--mist); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--head); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: 1.6rem; font-weight: 800; }
h2 { font-size: 1.15rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; margin-top: 1em; }
small, .small { font-size: .85em; }
.muted { color: var(--muted); }
code { background: var(--mist); padding: 1px 6px; border-radius: 6px; font-size: .85em; word-break: break-all; }

/* ---------- frame ---------- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 16px; background: var(--navy); color: #fff; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand img { display: block; height: 34px; width: auto; }
.b2b-tag { font: 800 .72rem var(--head); letter-spacing: .08em; background: var(--orange); color: #fff; padding: 2px 7px; border-radius: 6px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.who { font-size: .9rem; text-align: right; line-height: 1.15; }
.who small { display: block; opacity: .7; }
.menu-btn { display: none; background: none; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; }
.shell { display: flex; min-height: calc(100vh - 58px); }
.side { width: 220px; flex: none; background: #fff; border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.side a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text); font-weight: 500; }
.side a:hover { background: var(--mist); text-decoration: none; }
.side a.on { background: #e8f2fb; color: var(--blue); font-weight: 600; }
.side .ic { width: 22px; text-align: center; }
.side .badge { margin-left: auto; background: var(--orange); color: #fff; font-size: .75rem; border-radius: 99px; padding: 0 7px; }
.side-foot { margin-top: auto; padding: 12px; font-size: .78rem; color: var(--muted); }
.side-foot a { display: inline; padding: 0; }
.main { flex: 1; min-width: 0; padding: 22px 26px 60px; }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.page-title h1 { margin: 0; }

/* ---------- pieces ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.pad { padding: 18px 20px; margin: 0; }
.note-card { border-left: 4px solid var(--orange); }
.ok-card { border-left: 4px solid var(--ok); }
.help-card { background: linear-gradient(120deg, #fff 60%, #fff4ec); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: 600 .95rem var(--body); cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.btn:hover { border-color: var(--blue); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); }
.btn-ghost { background: transparent; }
.top .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-wa { background: #1fa855; border-color: #1fa855; color: #fff; }
.btn-danger { color: var(--err); border-color: #f3c3ad; }
.btn-sm { padding: 5px 11px; font-size: .85rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.icon-btn { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: .95rem; padding: 4px 6px; border-radius: 6px; }
.icon-btn:hover { background: var(--mist); color: var(--navy); }
form.inline { display: inline; }
.right { text-align: right; }
.mt { margin-top: 14px; }
.flash { padding: 11px 14px; border-radius: 10px; margin-bottom: 14px; background: #e7f6ee; color: #0b5d3a; border: 1px solid #bfe6d1; white-space: pre-wrap; }
.flash-err { background: #fff1ea; color: #9a3412; border-color: #fbcfb6; }
.warn-line { color: var(--warn); font-size: .88rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); color: var(--text); }
.tile b { display: block; font: 800 1.9rem var(--head); color: var(--navy); }
.tile:hover { border-color: var(--blue); text-decoration: none; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.line { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.line:last-child { border-bottom: 0; }
.line.on { font-weight: 600; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { padding: 5px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--text); font-size: .9rem; }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip:hover { text-decoration: none; border-color: var(--blue); }
.searchbar { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.searchbar input { flex: 1; min-width: 180px; }
.pager { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 10px; }
.st { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: #eef2f7; color: var(--muted); white-space: nowrap; }
.st-req { background: #fff1e6; color: #c2410c; }
.st-sent { background: #e8f2fb; color: var(--blue); }
.st-hot { background: #ffe9dc; color: #c2410c; }
.st-ok { background: #e3f6ec; color: var(--ok); }
.st-lost { background: #f4f4f5; color: #71717a; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.tab { padding: 8px 14px; border: 0; background: none; border-bottom: 3px solid transparent; font: 600 .95rem var(--body); color: var(--muted); cursor: pointer; }
.tab.on { color: var(--blue); border-bottom-color: var(--blue); }
.tab-add { color: var(--orange); }
.tabs.big .tab small { color: var(--muted); font-weight: 400; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font: 700 .78rem var(--head); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 12px; background: #f8fafc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr:hover { background: #fafcff; }
.table tr[onclick] { cursor: pointer; }
.table .num { text-align: right; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.dim { opacity: .55; }
.seasons input { min-width: 90px; padding: 6px 8px; }
.seasons td { padding: 4px; }

/* ---------- forms ---------- */
.form label { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.form label small { font-weight: 400; color: var(--muted); }
.form label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
input, select, textarea { font: 1rem var(--body); color: var(--text); padding: 9px 11px; border: 1px solid #cdd7e3; border-radius: 9px; background: #fff; width: 100%; min-width: 0; }
input[type=checkbox], input[type=radio] { width: auto; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(11, 111, 184, .25); border-color: var(--blue); }
textarea { resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 14px; }
.span2 { grid-column: span 2; }
.span3 { grid-column: 1 / -1; }
.narrow { max-width: 420px; }
.hp { position: absolute; left: -9999px; }
.sticky-save { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--mist) 30%); }
.logo-prev { max-height: 70px; max-width: 220px; display: block; margin-bottom: 8px; }
.logo-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.user-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 9px 0; border-bottom: 1px solid var(--line); }
.user-line > div:first-child { flex: 1; min-width: 180px; }
.log { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }

/* ---------- log-in pages ---------- */
body.auth { background: var(--navy); }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; max-width: 1060px; margin: 0 auto; align-items: center; gap: 40px; padding: 30px 20px; }
.auth-side { color: #dce6f2; }
.auth-side h2 { color: #fff; font-size: 1.8rem; margin-top: 24px; }
.auth-side ul { padding-left: 18px; }
.auth-side .tag { color: var(--orange); font: 700 1.05rem var(--head); }
.auth-card { background: #fff; border-radius: 18px; padding: 30px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.center { text-align: center; }

/* ---------- builder ---------- */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.b-side { position: sticky; top: 74px; }
.price-card h2 { display: flex; justify-content: space-between; }
.p-opt { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.p-opt.on { border-color: var(--blue); }
.p-name { font: 700 .95rem var(--head); color: var(--navy); margin-bottom: 4px; }
.p-row { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.p-total { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 6px; }
.p-total b { color: var(--orange-d); font-size: 1.2rem; font-family: var(--head); }
.p-row.staff { color: var(--muted); }
.p-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.stay { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.stay label { margin: 0; display: flex; flex-direction: column; gap: 3px; font-size: .8rem; font-weight: 600; color: var(--navy); }
.stay .grow { flex: 1; min-width: 220px; }
.stay-n { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700; margin-bottom: 8px; }
.stay-info { font-size: .82rem; color: var(--muted); padding-bottom: 10px; min-width: 120px; }
.w-s { width: 90px; }
.w-xs { width: 70px; }
.row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.opt-head { display: flex; gap: 12px; align-items: flex-end; }
.opt-head label { max-width: 260px; }
.day { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.day-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.day-head .grow { flex: 1; min-width: 160px; }
.day-head select { width: 150px; }
.day-pill { background: var(--blue); color: #fff; font: 700 .8rem var(--head); padding: 3px 10px; border-radius: 99px; }
.item { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; padding: 6px 0; border-top: 1px dashed var(--line); }
.item label { margin: 0; display: flex; flex-direction: column; font-size: .75rem; font-weight: 600; color: var(--muted); }
.item .grow { flex: 1; min-width: 200px; }
.item select { width: auto; max-width: 210px; }
.item-type { font: 700 .72rem var(--head); text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 6px; background: var(--mist); color: var(--navy); margin-bottom: 9px; }
.item-transfer .item-type { background: #e8f2fb; color: var(--blue); }
.item-meal .item-type { background: #fff1e6; color: var(--orange-d); }
.item-move { display: flex; margin-bottom: 4px; }
.picker { position: relative; }
.picker-list { display: none; position: absolute; z-index: 20; left: 0; right: 0; top: 100%; max-height: 300px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(16, 35, 58, .15); }
.picker-list.open { display: block; }
.picker-item { padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--mist); font-size: .92rem; }
.picker-item:hover { background: #f0f7fd; }
.picker-item small { color: var(--muted); }
.picker-empty { padding: 10px 12px; color: var(--muted); font-size: .9rem; }
.auto-rooms { display: flex; align-items: center; }

/* ---------- quotation page ---------- */
.view-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 12px; }
.share-box { display: flex; gap: 8px; align-items: flex-end; min-width: 300px; flex: 1; max-width: 560px; }
.share-box label { flex: 1; display: flex; flex-direction: column; font-size: .8rem; font-weight: 600; color: var(--muted); }
.share-box input { font-size: .85rem; padding: 6px 9px; }
.view-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; align-items: start; }
.doc-wrap, .b-main, .view-side { min-width: 0; }
.q-scroll { overflow-x: auto; }
.view-side .btn-block { margin-bottom: 6px; }
.hidden-copy { position: absolute; left: -9999px; width: 10px; height: 10px; }
body.share { background: #e9eef4; }
.share-bar { display: flex; gap: 8px; justify-content: center; padding: 14px; position: sticky; top: 0; z-index: 5; background: rgba(233, 238, 244, .92); }
body.share .doc-wrap { max-width: 900px; margin: 0 auto 40px; padding: 0 12px; }

.qdoc { background: #fff; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; color: #22313f; font-size: 15px; }
.q-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 30px; border-bottom: 4px solid var(--blue); position: relative; }
.q-head::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 26%; height: 4px; background: var(--orange); }
.q-logo img { max-height: 58px; max-width: 240px; display: block; }
.q-logo b { font: 800 1.5rem var(--head); color: var(--navy); }
.q-meta { text-align: right; font-size: .88rem; color: var(--muted); }
.q-meta b { color: var(--navy); }
.q-kind { font: 800 1.1rem var(--head); color: var(--orange-d); text-transform: uppercase; letter-spacing: .12em; }
.q-hero { padding: 24px 30px; background: linear-gradient(120deg, var(--navy), #163a5f 70%, var(--blue)); color: #fff; }
.q-hero h1 { color: #fff; font-size: 1.7rem; margin-bottom: 10px; }
.q-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .95rem; opacity: .95; }
.q-sec { padding: 20px 30px; border-bottom: 1px solid #edf1f6; }
.q-sec h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); }
.q-sec h3 { font-size: .95rem; color: var(--navy); margin: 10px 0 6px; }
.q-price, .q-table { width: 100%; border-collapse: collapse; }
.q-price th, .q-price td, .q-table th, .q-table td { padding: 9px 10px; border-bottom: 1px solid #edf1f6; text-align: left; vertical-align: top; }
.q-price thead th, .q-table thead th { font: 700 .75rem var(--head); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #f7f9fc; }
.q-price td { white-space: nowrap; }
.q-big { font: 800 1.15rem var(--head); color: var(--orange-d); }
.q-small { font-size: .82rem; color: var(--muted); margin: 8px 0 0; }
.q-star { color: #e2a400; font-size: .85em; }
.q-days { display: flex; flex-direction: column; gap: 12px; }
.q-day { border-left: 3px solid var(--blue); padding: 2px 0 2px 16px; break-inside: avoid; }
.q-day-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.q-pill { background: var(--blue); color: #fff; font: 700 .78rem var(--head); padding: 3px 10px; border-radius: 99px; }
.q-date { color: var(--muted); font-size: .88rem; }
.q-city { margin-left: auto; font-size: .8rem; background: #fff1e6; color: var(--orange-d); padding: 2px 9px; border-radius: 99px; font-weight: 600; }
.q-item { padding: 6px 0; }
.q-item p { margin: 3px 0 0; font-size: .9rem; color: #4a5a6a; }
.q-tag { font-size: .75rem; background: #eef4fa; color: var(--blue); padding: 1px 8px; border-radius: 99px; font-weight: 600; white-space: nowrap; }
.q-cost { color: var(--warn) !important; font-size: .8rem !important; }
.q-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.q-list { margin: 0; padding-left: 20px; }
.q-list li { margin: 3px 0; }
.q-yes li::marker { content: '✓  '; color: var(--ok); }
.q-no li::marker { content: '✕  '; color: var(--err); }
.q-bank { white-space: normal; }
.q-costing { background: #fffbeb; }
.q-foot { padding: 18px 30px; background: var(--navy); color: #dce6f2; font-size: .88rem; text-align: center; }
.q-foot b { color: #fff; }

/* ---------- phones ---------- */
@media (max-width: 980px) {
  .builder, .view-grid { grid-template-columns: 1fr; }
  .b-side { position: static; }
  .cols2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .who { display: none; }
  .side { position: fixed; top: 58px; bottom: 0; left: 0; z-index: 25; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0, 0, 0, .2); }
  body.nav-open .side { transform: none; }
  .main { padding: 16px 16px 60px; }
  .grid2, .grid3, .grid4 { grid-template-columns: 1fr 1fr; }
  .span3 { grid-column: 1 / -1; }
  .auth-wrap { grid-template-columns: 1fr; gap: 20px; }
  .auth-side h2 { font-size: 1.3rem; }
  .auth-side ul, .auth-side p:not(.tag) { display: none; }
  .auth-card { padding: 22px 18px; }
  .q-head, .q-hero, .q-sec, .q-foot { padding-left: 16px; padding-right: 16px; }
  .q-head { flex-direction: column; align-items: flex-start; }
  .q-meta { text-align: left; }
  .q-two { grid-template-columns: 1fr; }
  .q-price { font-size: .85rem; }
  .q-price-wrap, .q-sec { overflow-x: auto; }
}
@media (max-width: 480px) {
  .grid2, .grid3, .grid4 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .share-box { min-width: 0; }
}

/* ---------- print / PDF ---------- */
@media print {
  @page { size: A4; margin: 10mm; }
  body { background: #fff; }
  .top, .side, .no-print, .share-bar, .flash { display: none !important; }
  .shell, .main, .view-grid, .doc-wrap { display: block; padding: 0; margin: 0; max-width: none; }
  .qdoc { box-shadow: none; border-radius: 0; font-size: 12.5px; }
  .q-hero, .q-foot, .q-pill, .q-head::after { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .q-sec { padding: 12px 6mm; break-inside: auto; }
  .q-day, .q-price tr, .q-table tr { break-inside: avoid; }
  .q-sec h2 { break-after: avoid; }
}
