/* Touristalia Product */
:root {
  --ground: #F4F2EE;
  --surface: #FFFFFF;
  --ink: #1B2430;
  --muted: #5B6470;
  --line: #E2DED6;
  --line-soft: #F0ECE5;
  --head: #FAF9F6;
  --accent: #1F5F8B;
  --accent-dark: #15425F;
  --accent-soft: #E4EEF5;
  --ovr: #FBF0DC;
  --ovr-line: #E3B869;
  --ovr-ink: #7A4600;
  --ok: #E3F1E6; --ok-ink: #245A33;
  --bad: #FBE6E1; --bad-ink: #8A2A18;
  --neutral: #EDEBE6; --neutral-ink: #4A4F57;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--ground); color: var(--ink); font: 14px/1.5 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.2px; margin: 0; }
h2 { font-size: 16px; font-weight: 600; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.strong { font-weight: 600; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.r { text-align: right; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Üst bar */
.topbar { height: 60px; background: var(--ink); color: #fff; display: flex; align-items: center; gap: 32px; padding: 0 28px; }
.brand { display: flex; align-items: baseline; gap: 10px; color: #fff; text-decoration: none; }
.brand strong { font-size: 17px; letter-spacing: .5px; }
.brand span { color: #B9C3CF; font-size: 14px; }
.topbar nav { display: flex; gap: 6px; flex: 1; }
.topbar nav a { color: #D5DCE4; text-decoration: none; padding: 8px 14px; border-radius: 6px; }
.topbar nav a:hover { color: #fff; background: #26334A; }
.topbar nav a.on { color: #fff; background: #2C3A4B; font-weight: 500; }
.who { display: flex; align-items: center; gap: 14px; color: #D5DCE4; font-size: 13px; }
.who form { margin: 0; }
.linkbtn { background: none; border: 0; color: #D5DCE4; font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }
.linkbtn:hover { color: #fff; }

.page { padding: 24px 28px 48px; max-width: 1600px; margin: 0 auto; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.pagehead p { margin: 4px 0 0; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.titleline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Kart */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin-bottom: 18px; }
.tablecard { padding: 0; overflow: hidden; }
.cardhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.cardhead .muted { font-size: 12px; }
.empty { padding: 28px 20px; color: var(--muted); text-align: center; }
.scroll { overflow-x: auto; }

/* Butonlar ve alanlar */
.btn { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid #CFC9BE; background: var(--surface); color: var(--ink);
  border-radius: 7px; font: inherit; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #A9A294; color: var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.small { height: 34px; padding: 0 12px; font-size: 13px; }
.btn:disabled { opacity: .6; cursor: wait; }
.iconbtn { width: 30px; height: 30px; border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; border-radius: 6px; cursor: pointer; }
.iconbtn:hover { background: var(--bad); color: var(--bad-ink); }

label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); }
label.check, label.inline { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; font-size: 13px; color: var(--ink); }
input, select, textarea, .in { font: inherit; font-size: 14px; color: var(--ink); background: #fff; border: 1px solid #D8D3C9; border-radius: 6px; padding: 0 10px; height: 38px; width: 100%; min-width: 0; }
textarea, textarea.in { height: auto; padding: 8px 10px; resize: vertical; line-height: 1.45; }
input[type=checkbox] { width: auto; height: auto; }
input:disabled, select:disabled, textarea:disabled { background: var(--head); color: var(--ink); }
.in.num { text-align: right; font-family: var(--mono); }
label.inline select { width: auto; }

.filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.tablecard .filters { padding: 14px 20px; border-bottom: 1px solid var(--line-soft); }
.filters label { min-width: 160px; }
.filters .grow { flex: 1; min-width: 220px; }
.form4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 16px; }
.form2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.span4 { grid-column: 1 / -1; }
.inlineform { display: flex; gap: 6px; }
.inlineform .in { width: 170px; height: 34px; }

/* Tablolar */
table.grid { width: 100%; border-collapse: collapse; }
.grid th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--head); padding: 9px 12px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.grid td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.grid th.r, .grid td.r { text-align: right; }
.grid tbody tr:hover td { background: #FCFBF9; }
.grid tfoot td { background: var(--head); border-bottom: 0; }
.rowlink { font-weight: 600; text-decoration: none; }
.rowlink:hover { text-decoration: underline; }
.items td { padding: 6px 8px; }
.items th { padding: 8px; }
.items small { display: block; font-size: 11px; margin-top: 2px; }
.w-s { width: 72px; } .w-m { width: 120px; } .w-x { width: 40px; }
.pc { border-radius: 6px; }
.pc .ctr { color: var(--ovr-ink); font-family: var(--mono); text-align: right; min-height: 15px; }
.pc.ovr .in { background: var(--ovr); border-color: var(--ovr-line); }
.legend { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; margin: 10px 0 0; }
.sw { width: 12px; height: 12px; background: var(--ovr); border: 1px solid var(--ovr-line); border-radius: 3px; flex: none; }

/* Rozetler */
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--neutral); color: var(--neutral-ink); white-space: nowrap; }
.s-draft { background: var(--accent-soft); color: var(--accent-dark); }
.s-sent { background: #FFF1D6; color: #7A4600; }
.s-accepted, .st-valid { background: var(--ok); color: var(--ok-ink); }
.s-rejected, .st-expired { background: var(--bad); color: var(--bad-ink); }
.s-archived, .st-nodate { background: var(--neutral); color: var(--neutral-ink); }
.lock { color: #B8612A; font-size: 10px; }

.flash { margin: 16px 28px 0; padding: 12px 16px; border-radius: 8px; background: var(--ok); color: var(--ok-ink); font-weight: 500; }
.flash.error { background: var(--bad); color: var(--bad-ink); }
.page .flash { margin: 0 0 16px; }

/* Kontrat kaynakları */
.sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.src { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.srchead { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* Sekmeler */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: -18px -20px 0; padding: 0 12px; overflow-x: auto; }
.tablecard .tabs { margin: 0; }
.tabs button, .tabs a { height: 46px; padding: 0 14px; border: 0; background: none; font: inherit; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tabs .on { color: var(--accent); font-weight: 600; border-bottom-color: var(--accent); }
.tabs .cnt { font-size: 11px; color: var(--muted); font-weight: 500; }
.card > .tabs + .scroll { margin: 0 -20px; }
.card > .tabs + .scroll table th:first-child, .card > .tabs + .scroll table td:first-child { padding-left: 20px; }

/* Düzenleme ekranı */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.col-side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; padding-right: 2px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.two > .card { margin-bottom: 18px; }
.two.tight { gap: 12px; margin-top: 12px; }
.lockbar { background: #FFF1D6; color: #5E3800; border: 1px solid #EBCB8B; padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; }
.adder { position: relative; display: flex; gap: 8px; margin-top: 12px; }
.adder .results { position: absolute; top: 42px; left: 0; right: 0; z-index: 20; list-style: none; margin: 0; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(27, 36, 48, .14); max-height: 320px; overflow-y: auto; }
.adder .results button { width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 6px; font: inherit; cursor: pointer; display: flex; flex-direction: column; }
.adder .results button:hover, .adder .results button:focus-visible { background: var(--accent-soft); }
.adder .results small { color: var(--muted); font-size: 12px; }
.adder .results .none { padding: 10px; color: var(--muted); }
.texts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.matrix td, .matrix th { padding: 9px 10px; }
.matrix td.r { font-family: var(--mono); }
.profits { margin-top: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calcerr { background: var(--bad); color: var(--bad-ink); padding: 12px; border-radius: 6px; }
.bar { margin-bottom: 10px; }
.barlab { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.barlab.total { border-top: 1px solid var(--line-soft); padding-top: 10px; font-weight: 600; font-size: 14px; }
.track { height: 8px; background: var(--line-soft); border-radius: 4px; overflow: hidden; }
.fill { height: 100%; background: var(--accent); border-radius: 4px; }
.fill.neg { background: #B8612A; }
.hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hist li.cur a { font-weight: 700; color: var(--ink); }

.toast { position: fixed; right: 20px; bottom: 20px; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 8px; max-width: 420px; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; pointer-events: none; z-index: 50; }
.toast.ok, .toast.error { opacity: 1; transform: none; }
.toast.error { background: var(--bad-ink); }

/* Giriş */
body.plain { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.authbox { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.authbox h1 { font-size: 22px; }
.authbox p { margin: 0; }
.brandline { color: var(--muted); font-size: 13px; }
.brandline strong { color: var(--ink); letter-spacing: .5px; }
.err { background: var(--bad); color: var(--bad-ink); padding: 10px 12px; border-radius: 6px; }

@media (max-width: 1200px) {
  .editor { grid-template-columns: 1fr; }
  .col-side { position: static; }
}
@media (max-width: 860px) {
  .page { padding: 16px; }
  .topbar { gap: 14px; padding: 0 14px; overflow-x: auto; }
  .who span { display: none; }
  .form4, .two, .texts { grid-template-columns: 1fr 1fr; }
  .flash { margin: 12px 16px 0; }
}
@media (max-width: 560px) {
  .form4, .two, .texts, .form2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* ---- v3: gün kartları ve açılır seçim listeleri ---- */
.cardhead.pad { padding: 16px 20px 0; }
.days { display: flex; flex-direction: column; gap: 14px; }
.day { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.dayhead { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--head); border-bottom: 1px solid var(--line-soft); border-radius: 10px 10px 0 0; flex-wrap: wrap; }
.dayno { font-weight: 700; font-size: 15px; white-space: nowrap; }
.daydate { color: var(--muted); font-size: 13px; white-space: nowrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--accent-soft); color: var(--accent-dark); border-radius: 999px; padding: 3px 4px 3px 10px; font-size: 13px; font-weight: 600; }
.chip button { border: 0; background: none; color: inherit; cursor: pointer; font-size: 15px; line-height: 1; width: 22px; height: 22px; border-radius: 50%; }
.chip button:hover { background: rgba(21, 66, 95, .12); }
.citysel { width: auto; min-width: 170px; height: 32px; font-size: 13px; }
.daybody { padding: 10px 16px 14px; display: flex; flex-direction: column; gap: 4px; }
.dayrow { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; align-items: start; padding: 6px 0; border-bottom: 1px dashed var(--line-soft); }
.dayrow:last-child { border-bottom: 0; }
.rowlabel { font-size: 12px; font-weight: 600; color: var(--muted); padding-top: 9px; }
.rowitems { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.it { display: grid; grid-template-columns: minmax(0, 1fr) 76px 110px 32px; gap: 8px; align-items: start; }
.it.hotel { grid-template-columns: minmax(0, 1fr) repeat(3, 96px) 32px; }
.it.rev { grid-template-columns: minmax(0, 1fr) 150px 32px; }
.it .meta { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.it .pc .in { height: 36px; }
.it .pc small { display: block; font-size: 11px; }
.pcl { font-size: 10px; color: var(--muted); text-align: right; display: block; }
.daytext { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.daytext textarea { min-height: 54px; }
.quick { display: flex; gap: 6px; }
.unassigned { border-color: #EBCB8B; }

.picker { position: relative; }
.picker .in { padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 16px, calc(100% - 10px) 16px; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.picker .in:focus { cursor: text; }
.picker .results { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30; list-style: none; margin: 0; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(27, 36, 48, .16); max-height: 340px; overflow-y: auto; min-width: 280px; }
.picker .results li button { width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 6px; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 1px; }
.picker .results li button:hover, .picker .results li.hl button { background: var(--accent-soft); }
.picker .results li small { color: var(--muted); font-size: 12px; }
.picker .results li.manual button { color: var(--accent); font-weight: 600; border-top: 1px solid var(--line-soft); border-radius: 0 0 6px 6px; }
.picker .results .none, .picker .results .loading { padding: 10px; color: var(--muted); font-size: 13px; }
.picker .results .exp small { color: var(--bad-ink); }

@media (max-width: 860px) {
  .dayrow { grid-template-columns: 1fr; gap: 4px; }
  .rowlabel { padding-top: 0; }
  .it, .it.hotel { grid-template-columns: 1fr 1fr; }
  .it > :first-child { grid-column: 1 / -1; }
}

.paxlist { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.paxitem { display: flex; align-items: center; gap: 2px; }
.paxitem .in { width: 84px; }

.matrix .paxin { width: 64px; height: 34px; padding: 0 8px; }
.matrix td { vertical-align: middle; }

.sublabel { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 6px; }
.sublabel:first-child { margin-top: 0; }
.in.static { display: flex; align-items: center; background: var(--head); font-size: 13px; font-weight: 500; }

.brand { align-items: center; }
.logochip { background: #fff; border-radius: 6px; padding: 4px 8px; display: inline-flex; align-items: center; height: 38px; }
.logochip img { max-height: 30px; max-width: 150px; display: block; }
.logorow { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; }
.logobox { width: 220px; height: 90px; border: 1px dashed #CFC9BE; border-radius: 8px; display: grid; place-items: center; background: #fff; padding: 8px; }
.logobox img { max-width: 100%; max-height: 100%; }
.span2 { grid-column: span 2; }

.bdnav { display: flex; align-items: center; gap: 2px; font-size: 12px; }
.bdnav .iconbtn { font-size: 22px; width: 30px; height: 30px; }
.bdnav .iconbtn:hover { background: var(--accent-soft); color: var(--accent-dark); }
.bdscroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; gap: 0; }
.bdpanel { flex: 0 0 100%; scroll-snap-align: start; box-sizing: border-box; padding-right: 2px; }
.bdtitle { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 15px; }
.bdtotals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; border-top: 1px solid var(--line-soft); padding-top: 10px; margin-top: 4px; }
.bdtotals div { display: flex; flex-direction: column; align-items: center; background: var(--head); border-radius: 6px; padding: 6px 4px; }
.bdtotals span { font-size: 11px; color: var(--muted); font-weight: 600; }
.bdtotals strong { font-size: 14px; }
.bdtotals .main { background: var(--accent-soft); color: var(--accent-dark); }


/* Yield */
.yieldsum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.yieldsum div { display: flex; flex-direction: column; gap: 2px; }
.yieldsum span { font-size: 12px; color: var(--muted); font-weight: 600; }
.yieldsum strong { font-size: 20px; font-family: var(--mono); }
.yieldsum strong span { font-size: 20px; }
.pos { color: var(--ok-ink) !important; }
.neg { color: var(--bad-ink) !important; }
.legend.pad { padding: 0 20px 12px; margin: 10px 0 0; }
.yield td { vertical-align: top; }
.links { white-space: nowrap; }
.links a { display: inline-block; font-size: 13px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; margin: 0 4px 4px 0; }
.links a:hover { background: var(--accent-soft); }
.mform { display: flex; gap: 6px; align-items: center; }
.mform .in { height: 34px; font-size: 13px; }
.mform .in.num { width: 90px; }
.mform select.in { width: auto; }

.fetchbtn { margin-bottom: 6px; }
.srclist { list-style: none; margin: 0 0 2px; padding: 0; font-size: 12px; min-width: 170px; }
.srclist li { display: flex; justify-content: space-between; gap: 10px; padding: 1px 0; }
.srclist li.low { font-weight: 700; }

/* Kontrat kontrolü */
.issuebar { display:flex; flex-wrap:wrap; gap:6px 16px; align-items:baseline; background:var(--bad); color:var(--bad-ink); padding:12px 20px; border-bottom:1px solid #EFC3B8; }
.issuebar a { color:var(--bad-ink); font-weight:600; margin-left:auto; }
.issues { list-style:none; margin:4px 0 0; padding:0; font-weight:400; font-size:12px; }
.issues li { padding-left:14px; position:relative; line-height:1.45; }
.issues li::before { content:''; position:absolute; left:2px; top:6px; width:6px; height:6px; border-radius:50%; }
.issues li.bad { color:var(--bad-ink); } .issues li.bad::before { background:#C0392B; }
.issues li.warn { color:#7A4600; } .issues li.warn::before { background:#D99A2B; }
.issues li.more { color:var(--muted); }

.tsgrid { display:flex; flex-direction:column; gap:6px; margin-top:6px; }
.tshead, .tsrow { display:grid; grid-template-columns: 90px 220px minmax(0,1fr) minmax(0,1.2fr); gap:12px; align-items:center; }
.tshead { font-size:12px; font-weight:600; color:var(--muted); border-bottom:1px solid var(--line-soft); padding-bottom:6px; }
.tsrow { padding:4px 0; border-bottom:1px dashed var(--line-soft); }
@media (max-width: 860px) { .tshead { display:none; } .tsrow { grid-template-columns: 1fr 1fr; } }

.s-confirmed { background: var(--ok); color: var(--ok-ink); }
.s-samo { background: #DDEFF0; color: #0F5257; }
.s-no_reply { background: #F1E7D6; color: #6B4A12; }

/* Kontrat düzenleme */
.cfbar { display:flex; gap:12px; align-items:center; padding:12px 20px; border-bottom:1px solid var(--line-soft); flex-wrap:wrap; }
.cform { margin:14px 20px; padding:16px 18px; border:1px solid var(--accent); border-radius:10px; background:#F7FAFC; }
.cfhead { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:10px; }
.cfgrid { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:12px 14px; }
.cfgrid .w2 { grid-column:span 2; }
.cfactions { display:flex; gap:8px; margin-top:14px; }
tr.editing td { background:#FFF8EC !important; }
@media (max-width: 860px) { .cfgrid { grid-template-columns:1fr 1fr; } }

.capbar { caption-side: top; text-align: left; padding: 12px 20px; }

.trace { margin:8px 0 4px; font-size:13px; }
.trace summary { cursor:pointer; color:var(--accent); font-weight:600; }
.tracet td, .tracet th { padding:4px 6px; font-size:12px; }
.tracet tr.tot td { font-weight:700; border-top:1px solid var(--line); background:var(--head); }

.roomtabs { display:inline-flex; border:1px solid var(--line); border-radius:6px; overflow:hidden; margin-left:auto; margin-right:6px; }
.roomtabs button { border:0; background:#fff; padding:4px 8px; font:inherit; font-size:12px; cursor:pointer; color:var(--muted); }
.roomtabs button.on { background:var(--accent); color:#fff; font-weight:600; }
.langsw { display:inline-flex; border:1px solid rgba(255,255,255,.35); border-radius:6px; overflow:hidden; margin-right:12px; }
.langsw a { color:#fff; text-decoration:none; font-size:12px; font-weight:600; padding:3px 9px; opacity:.75; }
.langsw a.on { background:#fff; color:#1B2430; opacity:1; }
.who .langsw { display:inline-flex !important; }
.grid .linkbtn, .card .linkbtn { color: var(--accent); }
/* Açılır menü grupları */
.navgrp { position: relative; }
.navgrp-btn { background: none; border: 0; color: #D5DCE4; font: inherit; padding: 8px 14px; border-radius: 6px; cursor: pointer; }
.navgrp-btn span { font-size: 10px; opacity: .7; }
.navgrp:hover .navgrp-btn, .navgrp.open .navgrp-btn { color: #fff; background: #26334A; }
.navgrp.on .navgrp-btn { color: #fff; background: #2C3A4B; font-weight: 500; }
.navmenu { display: none; position: absolute; top: 100%; left: 0; min-width: 190px; background: var(--ink); border: 1px solid #2C3A4B; border-radius: 8px; padding: 6px; z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.navgrp:hover .navmenu, .navgrp:focus-within .navmenu, .navgrp.open .navmenu { display: flex; flex-direction: column; }
.topbar nav .navmenu a { white-space: nowrap; }
@media (max-width: 760px) { .topbar { overflow: visible; flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 8px; } .topbar nav { flex-wrap: wrap; } }
/* Roller */
.roleform .rolename { max-width: 320px; margin-bottom: 12px; }
.permgrid th.c, .permgrid td.c, .grid th.c, .grid td.c { text-align: center; width: 110px; }
.roleacts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.roleacts .check { margin-right: auto; }
.permgrid input[type=radio], .grid input[type=checkbox], .roleacts input[type=checkbox] { width: auto; height: auto; accent-color: var(--accent); }
