/* ITL World · event booking portal. Navy / blue / amber, as in the ITL World deck. */
:root {
  --navy: #102838; --blue: #004C7A; --amber: #F9B233; --ink: #1f2937; --muted: #6b7280; --line: #e2e8f0;
  --bg: #f4f6f8; --surface: #fff; --green: #15803d; --green-soft: #e8f5ec; --red: #b91c1c; --red-soft: #fdecec; --warn-soft: #fff7e6;
  --radius: 12px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 "Segoe UI", system-ui, -apple-system, Arial, sans-serif; }
a { color: var(--blue); }
h1 { font-size: 28px; line-height: 1.2; margin: 6px 0 8px; color: var(--navy); }
h2 { font-size: 18px; margin: 0 0 10px; color: var(--navy); }
h3 { font-size: 17px; margin: 0; color: var(--navy); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { text-align: right; white-space: nowrap; }
.eyebrow { font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--blue); font-weight: 700; }

.top { background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 4px solid var(--amber); flex-wrap: wrap; }
.brand { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand-itl { font-size: 18px; letter-spacing: .5px; }
.brand-sep { width: 1px; height: 22px; background: rgba(255,255,255,.4); }
.brand-event { font-weight: 600; opacity: .95; }
.top nav { display: flex; align-items: center; gap: 16px; }
.top nav a, .top nav .link { color: #fff; text-decoration: none; font-size: 14px; opacity: .92; }
.top nav a:hover, .top nav .link:hover { text-decoration: underline; }
.inline { display: inline; margin: 0; }
.test-banner { background: var(--amber); color: #3b2a00; text-align: center; padding: 7px 16px; font-size: 13px; font-weight: 600; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 22px 16px 40px; }
.foot { max-width: 1080px; margin: 0 auto; padding: 18px 16px 30px; color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); }

.hero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.lead { font-size: 17px; margin: 0 0 14px; }
.stay { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.stay > div { background: var(--bg); border-radius: 10px; padding: 10px 16px; min-width: 150px; }
.stay span { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.stay b { font-size: 17px; color: var(--navy); }

.group { margin: 22px 0 10px; }
.hotels { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.hotel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.hotel.sold { opacity: .65; }
.hotel-img { height: 150px; background: linear-gradient(135deg, var(--blue), var(--navy)); background-size: cover; background-position: center; position: relative; }
.hotel-img .stars { position: absolute; left: 12px; bottom: 10px; background: rgba(16,40,56,.8); padding: 2px 8px; border-radius: 6px; }
.stars { color: var(--amber); letter-spacing: 1px; font-size: 14px; }
.hotel-body { padding: 14px 16px 16px; display: grid; gap: 8px; align-content: start; flex: 1; }
.hotel-body p { margin: 0; font-size: 14px; }
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.prices > div { background: var(--bg); border-radius: 8px; padding: 8px 10px; }
.prices span { display: block; font-size: 12px; color: var(--muted); }
.prices b { color: var(--navy); }

.btn { display: inline-block; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover { border-color: var(--blue); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: #003b60; }
.btn.big { padding: 12px 22px; font-size: 16px; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; text-decoration: underline; }
.back { display: inline-block; margin-bottom: 6px; text-decoration: none; }

.tag { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; justify-self: start; }
.tag.bad { background: var(--red-soft); color: var(--red); }
.tag.warn { background: var(--warn-soft); color: #9a6200; }
.notice { border-radius: 10px; padding: 11px 14px; margin: 10px 0; background: #eaf3f9; border: 1px solid #bcd9ea; }
.notice.ok { background: var(--green-soft); border-color: #b6dfc2; }
.notice.bad { background: var(--red-soft); border-color: #f3b9b9; color: #7f1d1d; }
.notice.warn { background: var(--warn-soft); border-color: #f5d48a; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 14px 0; }
.card.narrow { max-width: 480px; margin-inline: auto; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

form label { display: block; font-size: 13px; font-weight: 600; margin: 10px 0 4px; color: var(--navy); }
input[type=text], input[type=email], input[type=date], input[type=time], input[type=number], input[type=file], input:not([type]), textarea {
  width: 100%; border: 1px solid #cbd5e1; border-radius: 9px; padding: 9px 11px; font: inherit; background: #fff; color: var(--ink); }
select { width: 100%; border: 1px solid #cbd5e1; border-radius: 9px; padding: 9px 11px; font: inherit; background: #fff; color: var(--ink); }
select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
input:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
input:disabled { background: var(--bg); color: var(--muted); }
input.code { font-size: 24px; letter-spacing: 8px; text-align: center; }
.card.narrow .btn { width: 100%; margin-top: 14px; }
.after { margin-top: 12px; display: flex; gap: 16px; flex-wrap: wrap; }
fieldset { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px 18px; margin: 14px 0; }
legend { font-weight: 700; color: var(--navy); padding: 0 8px; font-size: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 18px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 4px 18px; }
.field-error { color: var(--red); font-size: 13px; min-height: 2px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 6px; }
.choice { display: flex !important; gap: 10px; align-items: flex-start; border: 1px solid #cbd5e1; border-radius: 10px; padding: 11px 13px; cursor: pointer; font-weight: 400 !important; font-size: 14px !important; color: var(--ink) !important; margin: 0 !important; }
.choice input { margin-top: 4px; width: auto; }
.choice em { font-style: normal; font-weight: 700; color: var(--navy); font-size: 16px; }
.choice:has(input:checked) { border-color: var(--blue); background: #eef6fb; }
.choice.wide { margin: 8px 0 !important; }
.policy { margin-top: 10px; font-size: 13.5px; background: var(--warn-soft); border: 1px solid #f5d48a; border-radius: 9px; padding: 9px 12px; }
.policy-box { border-color: #f5d48a; background: var(--warn-soft); }
.policy-box p { margin: 0; }
.total-bar { position: sticky; bottom: 0; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 12px 18px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
.total-bar .muted { color: #c7d3dc; }
.total-bar .grand b { font-size: 20px; color: var(--amber); }

table.summary { width: 100%; border-collapse: collapse; }
table.summary th { text-align: left; font-weight: 400; color: var(--muted); padding: 8px 14px 8px 0; vertical-align: top; width: 210px; border-bottom: 1px solid var(--line); }
table.summary td { padding: 8px 0; border-bottom: 1px solid var(--line); }
table.summary.amounts { margin-top: 12px; }
table.summary.amounts th { width: auto; }
table.summary.amounts td { text-align: right; white-space: nowrap; }
table.summary tr.grand th, table.summary tr.grand td { font-weight: 700; color: var(--navy); font-size: 17px; border-bottom: 0; }
.pay { margin-top: 6px; }
.pay-row { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; margin-top: 10px; }
.result.ok { border-top: 4px solid var(--green); }

.status { display: inline-block; border-radius: 999px; padding: 3px 12px; font-size: 12.5px; font-weight: 700; background: var(--bg); color: var(--ink); vertical-align: middle; }
.s-paid, .s-checked, .s-sent-to-hotel { background: #eaf3f9; color: var(--blue); }
.s-confirmed { background: var(--green-soft); color: var(--green); }
.s-attention, .s-cancelled { background: var(--red-soft); color: var(--red); }
.s-pending, .s-expired { background: var(--warn-soft); color: #9a6200; }

/* Mid-office */
.alloc { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 12px 0; }
.alloc-item { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.alloc-item.full { border-color: var(--red); }
.bar { height: 6px; background: var(--bg); border-radius: 4px; margin: 6px 0; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--blue); }
.alloc-item.full .bar i { background: var(--red); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 10px; }
.tabs a { text-decoration: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--ink); }
.tabs a span { color: var(--muted); margin-left: 4px; }
.tabs a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.tabs a.on span { color: #c7d3dc; }
.search { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.search input { max-width: 460px; }
.search { flex-wrap: wrap; }
.spacer { flex: 1; }
.testcode { font-size: 22px; letter-spacing: 4px; margin-left: 6px; }
.mail { border: 1px solid var(--line); border-radius: 10px; width: 100%; height: 640px; background: #fff; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.list td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list tr:hover td { background: #f8fafc; cursor: pointer; }
table.list tr.late td { background: #fff5f5; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 0 16px; }
.flow { list-style: none; display: flex; gap: 0; padding: 0; margin: 12px 0; flex-wrap: wrap; counter-reset: step; }
.flow li { flex: 1; min-width: 150px; padding: 9px 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--muted); counter-increment: step; }
.flow li::before { content: counter(step) ". "; }
.flow li.done { background: var(--green-soft); color: var(--green); font-weight: 600; }
.flow li.now { background: var(--navy); color: #fff; font-weight: 700; border-color: var(--navy); }
.actions .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.actions .row input { max-width: 300px; }
.confirm { max-width: 620px; }
.confirm .btn { margin-top: 14px; }
.confirm input[name=hcn] { max-width: 320px; }
.actions details summary { cursor: pointer; color: var(--blue); font-weight: 600; margin-top: 8px; }
.history { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13.5px; }
details.danger { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
details.danger summary { cursor: pointer; color: var(--red); font-weight: 600; }

@media (max-width: 560px) {
  h1 { font-size: 23px; }
  table.summary th { width: 120px; }
  .total-bar { position: static; }
  .pay-row .btn { flex: 1; }
}
