/* RDY Kartal Travel — otel paneli (/otel/) ve yönetim paneli (/yonetim/) ortak stil. */
:root {
  --ink: #14120e; --ink2: #2a2620; --gold: #b8935a; --gold-d: #8a6a38; --bg: #f5f2ec; --card: #fff;
  --muted: #6b6f78; --line: #e6e1d8; --ok: #1d7a46; --warn: #a86a00; --bad: #b3261e; --blue: #1f5fa8;
  --r: 12px; --sh: 0 1px 2px rgba(20,18,14,.06), 0 4px 16px rgba(20,18,14,.04);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14.5px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--gold-d); }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.25; }
h1 { font-size: 22px; } h2 { font-size: 18px; } h3 { font-size: 15px; }
.muted { color: var(--muted); } small { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* üst bar */
.bar { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 18px; background: var(--ink); color: #fff; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 30px; width: auto; }
.logo b { font-size: 15px; letter-spacing: .01em; }
.logo span { color: #c9b48f; font-size: 12px; border-left: 1px solid #4a443a; padding-left: 10px; }
.who { display: flex; gap: 10px; align-items: center; font-size: 13px; color: #ddd; }

/* yerleşim */
.shell { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 50px); }
.side { background: var(--ink2); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.side button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: #d8d2c6; font-weight: 600; font-size: 14px; }
.side button:hover { background: rgba(255,255,255,.06); }
.side button[aria-selected="true"] { background: var(--gold); color: var(--ink); }
.side .badge { margin-left: auto; background: var(--bad); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 999px; }
main { max-width: 1200px; width: 100%; margin: 0 auto; padding: 22px 20px 80px; }
.shell main { margin: 0; max-width: none; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; overflow-x: auto; }
.tabs button { font: inherit; font-weight: 600; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { flex-direction: row; overflow-x: auto; padding: 8px; position: sticky; top: 50px; z-index: 10; }
  .side button { padding: 8px 12px; white-space: nowrap; }
  main { padding: 16px 12px 80px; }
}

/* kartlar */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 16px; box-shadow: var(--sh); }
.card > h2:first-child, .card > .row:first-child h2 { margin-bottom: 14px; }
.login { max-width: 380px; margin: 60px auto; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.row.start { justify-content: flex-start; }
.stack > * + * { margin-top: 12px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }

/* istatistik */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--sh); }
.kpi span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kpi b { display: block; font-size: 24px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--muted); }
.kpi.alert b { color: var(--bad); }
.kpi.click { cursor: pointer; } .kpi.click:hover { border-color: var(--gold); }

/* form */
label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; min-width: 0; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: -1px; border-color: var(--gold); }
textarea { min-height: 70px; resize: vertical; }
form > label { margin-bottom: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.grid > label { margin: 0; }
.wide { grid-column: 1 / -1; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 14px; margin: 0 0 14px; }
legend { font-weight: 700; font-size: 13px; padding: 0 6px; }
.btn { font: inherit; font-weight: 700; background: var(--gold); color: var(--ink); border: 0; border-radius: 8px; padding: 10px 18px; cursor: pointer; }
.btn:hover { background: #c9a46a; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.small, .ghost.small { padding: 5px 10px; font-size: 13px; }
.ghost { font: inherit; background: transparent; color: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; cursor: pointer; font-weight: 600; }
.ghost:hover { border-color: var(--gold); }
.bar .ghost { border-color: #555; color: #eee; }
.danger { color: var(--bad); }
.price { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.price small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.err { color: var(--bad); font-weight: 600; }
.ok { color: var(--ok); font-weight: 600; }
.filters { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.filters label { min-width: 130px; }
.pax-rows { display: grid; gap: 8px; }
.pax-row { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
@media (max-width: 600px) { .pax-row { grid-template-columns: 1fr; } }
.pw { display: flex; gap: 6px; }
.pw input { flex: 1; }
.seg { display: flex; gap: 6px; margin: 0 0 12px; flex-wrap: wrap; }
.seg button { font: inherit; font-weight: 600; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg span { opacity: .65; font-weight: 400; }
.note { background: #faf6ee; border: 1px solid #eadfca; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; }

/* tablo */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; background: #faf8f4; white-space: nowrap; }
tbody tr.click { cursor: pointer; } tbody tr.click:hover { background: #fbf8f2; }
td input, td select { padding: 5px 7px; font-size: 13px; }
td.r, th.r { text-align: right; }
tfoot td { font-weight: 700; background: #faf8f4; }

/* durum etiketleri */
.st { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: #eee; white-space: nowrap; }
.st-new { background: #fff1c7; color: #7a5200; } .st-confirmed { background: #dbeafe; color: #1e4f8f; } .st-done { background: #d7f2e1; color: #17603a; }
.st-cancelled { background: #f6d9d7; color: #8e1f17; text-decoration: line-through; }
.src { display: inline-block; padding: 1px 7px; border-radius: 5px; font-size: 11px; font-weight: 700; background: #eee; }
.src-web { background: #e8f0fe; color: #1f5fa8; } .src-hotel { background: #f3e9d8; color: #7a5520; } .src-admin { background: #ececec; color: #444; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; background: #f1efe9; }
.pill.warn { background: #fff1c7; color: #7a5200; }
.pill.bad { background: #f6d9d7; color: #8e1f17; font-weight: 700; }

/* seferler */
tr.late td { background: #fdf0ef; }
tr.noshow td { opacity: .55; }
tr.noshow td:first-child { opacity: 1; }
.seferler td { vertical-align: middle; }
.seferler .big { font-size: 16px; font-weight: 800; }
@media print { .seferler select, .seferler input[type="checkbox"] { display: none; } .seferler .print-only { display: inline !important; } }
.print-only { display: none; }

/* çekmece (sipariş detayı) */
dialog { border: 0; border-radius: 14px; padding: 0; width: min(760px, 96vw); max-height: 92vh; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(20,18,14,.45); }
dialog .dh { position: sticky; top: 0; background: #fff; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); z-index: 1; }
dialog .dh h2 { margin: 0; }
dialog .db { padding: 18px 20px; }
dialog .df { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 12px 20px; display: flex; justify-content: flex-end; gap: 10px; }
.x { all: unset; cursor: pointer; font-size: 22px; line-height: 1; padding: 4px 8px; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; font-weight: 600; z-index: 99; box-shadow: var(--sh); }

/* yazdırma: cari döküm */
.print-head { display: none; }
@media print {
  body { background: #fff; }
  .bar, .side, .tabs, .no-print, .toast { display: none !important; }
  .shell { display: block; } main { padding: 0; }
  .card { box-shadow: none; border: 0; padding: 0; }
  [data-pane]:not(.printing) { display: none !important; }
  .print-head { display: block; margin-bottom: 14px; }
  .table-wrap { border: 0; } th { background: #fff; }
}
