/* Stitch "Precision Logistics" tasarım sisteminden: lacivert ana renk, petrol vurgu, sık tablolar */
:root {
  --navy: #0f2942; --navy-2: #1e3a5f; --teal: #0d766e; --teal-bg: #9bf2e8;
  --bg: #f8f9ff; --surface: #ffffff; --surface-2: #eff4ff; --surface-3: #e5eeff;
  --line: #dfe4ee; --line-2: #c3c6ce; --text: #0b1c30; --muted: #5b6270; --faint: #8a90a0;
  --ok-bg: #ecfdf5; --ok-bd: #a7f3d0; --ok-tx: #065f46; --ok-dot: #10b981;
  --run-bg: #f0f9ff; --run-bd: #bae6fd; --run-tx: #0369a1; --run-dot: #0284c7;
  --warn-bg: #fffbeb; --warn-bd: #fde68a; --warn-tx: #92400e; --warn-dot: #f59e0b;
  --bad-bg: #fff1f2; --bad-bd: #fecdd3; --bad-tx: #9f1239; --bad-dot: #e11d48;
  --idle-bg: #f1f5f9; --idle-bd: #dfe4ee; --idle-tx: #475569; --idle-dot: #94a3b8;
  --row-warn: #fffbeb; --row-bad: #fff5f6;
  --sans: "Inter", system-ui, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --side-w: 232px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 13px/1.4 var(--sans); }
[hidden] { display: none !important; }
.ms { font-family: "Material Symbols Outlined"; font-weight: 400; font-size: 18px; line-height: 1; font-style: normal;
  display: inline-block; width: 1em; overflow: hidden; -webkit-font-feature-settings: "liga"; font-feature-settings: "liga"; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Sol menü */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: var(--surface); border-right: 1px solid var(--line);
  padding: 16px 12px; display: flex; flex-direction: column; gap: 18px; z-index: 20; }
.brand { display: flex; gap: 10px; align-items: center; padding: 0 6px 14px; border-bottom: 1px solid var(--line); }
.brand-mark { width: 32px; height: 32px; border-radius: 4px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.brand-name { font-weight: 600; font-size: 15px; color: var(--navy); letter-spacing: -.01em; }
.brand-sub { font-size: 11px; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: var(--muted);
  text-decoration: none; font-weight: 500; cursor: pointer; }
.nav a:hover:not(.soon) { background: var(--surface-2); color: var(--navy); }
.nav a.active { background: var(--teal-bg); color: #00504a; font-weight: 600; }
.nav a.soon { cursor: default; opacity: .7; }
.nav a em { margin-left: auto; font-style: normal; font-size: 10px; background: var(--surface-3); padding: 1px 6px; border-radius: 4px; }

/* Üst bar */
.top { position: sticky; top: 0; z-index: 10; margin-left: var(--side-w); height: 56px; background: var(--surface);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; }
.top h1 { margin: 0; font-size: 18px; font-weight: 600; color: var(--navy); letter-spacing: -.01em; }
.fx { display: flex; align-items: center; gap: 8px; padding: 5px 12px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 4px; font: 600 12px var(--mono); white-space: nowrap; }
.fx .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.fx.err .dot { background: var(--bad-dot); }
.fx small { font-weight: 500; color: var(--muted); }

.main { margin-left: var(--side-w); padding: 20px 24px 40px; display: flex; flex-direction: column; }
.page { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }

/* Araç çubuğu */
.toolbar { padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.tb-left, .tb-right { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.search { position: relative; display: flex; align-items: center; }
.search .ms { position: absolute; left: 9px; color: var(--faint); font-size: 16px; pointer-events: none; }
.search input { height: 32px; width: 190px; padding: 0 44px 0 30px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--surface); outline: none; }
.search.wide input { width: 260px; }
.search i { position: absolute; right: 6px; font-style: normal; font-size: 10px; font-weight: 600; color: var(--muted); background: var(--surface-3); padding: 1px 5px; border-radius: 3px; pointer-events: none; }
.sep { width: 1px; height: 18px; background: var(--line-2); margin: 0 2px; }
.flt { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--muted); }
select, .field input, .field textarea, .field select { height: 32px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--surface); padding: 0 8px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(13,118,110,.15); }

.btn { height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 4px;
  background: var(--surface); cursor: pointer; font-weight: 500; text-decoration: none; color: var(--text); white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn .ms { font-size: 16px; }
.btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.primary:hover { background: var(--navy-2); }
.btn.ghost { border-color: transparent; color: var(--muted); }
.btn.danger { color: var(--bad-tx); border-color: var(--bad-bd); background: var(--bad-bg); }
.btn.icon { width: 32px; padding: 0; justify-content: center; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.btn:disabled { opacity: .45; cursor: default; }

/* Durum çipleri */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 28px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 999px; border: 1px solid; font-size: 12px; font-weight: 600; cursor: pointer; background: none; }
.chip b { font: 600 12px var(--mono); }
.chip .d, .pill .d { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.chip.on { box-shadow: 0 0 0 2px var(--navy) inset; }

.s-ok   { background: var(--ok-bg);   border-color: var(--ok-bd);   color: var(--ok-tx); }   .s-ok .d   { background: var(--ok-dot); }
.s-run  { background: var(--run-bg);  border-color: var(--run-bd);  color: var(--run-tx); }  .s-run .d  { background: var(--run-dot); }
.s-warn { background: var(--warn-bg); border-color: var(--warn-bd); color: var(--warn-tx); } .s-warn .d { background: var(--warn-dot); }
.s-bad  { background: var(--bad-bg);  border-color: var(--bad-bd);  color: var(--bad-tx); }  .s-bad .d  { background: var(--bad-dot); }
.s-idle { background: var(--idle-bg); border-color: var(--idle-bd); color: var(--idle-tx); } .s-idle .d { background: var(--idle-dot); }

/* Tablo */
.tablewrap { overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.scroll { overflow: auto; max-height: calc(100vh - 290px); }
table.grid { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.grid th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted); padding: 9px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.grid td { padding: 7px 10px; border-bottom: 1px solid #eef1f6; vertical-align: top; }
.grid tbody tr:hover { background: #f5f8ff; }
.grid tr.row-warn { background: var(--row-warn); }
.grid tr.row-bad { background: var(--row-bad); }
.grid tr.row-ok td:first-child { box-shadow: 3px 0 0 var(--ok-dot) inset; }
.grid tr.row-warn td:first-child { box-shadow: 3px 0 0 var(--warn-dot) inset; }
.grid tr.row-bad td:first-child { box-shadow: 3px 0 0 var(--bad-dot) inset; }
.r { text-align: right !important; }
.mono { font-family: var(--mono); font-size: 12px; }
.nowrap { white-space: nowrap; }
.sup { font-weight: 600; color: var(--navy); white-space: nowrap; }
.name { min-width: 220px; max-width: 320px; }
.note { min-width: 220px; max-width: 300px; color: var(--muted); font-size: 12px; }
.note.has { color: var(--text); }
.cur { font-size: 10px; color: var(--muted); margin-left: 3px; }
.tag { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 500; background: var(--surface-3); white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 999px; border: 1px solid; font-size: 11px; font-weight: 600; white-space: nowrap; }
.missing { display: inline-block; font-size: 10px; font-weight: 600; color: var(--warn-tx); background: var(--warn-bg); border: 1px dashed var(--warn-dot); border-radius: 3px; padding: 0 4px; }
.empty { padding: 40px; text-align: center; color: var(--muted); }
.edit { border: none; background: none; cursor: pointer; color: var(--faint); padding: 2px; border-radius: 4px; }
.edit:hover { color: var(--navy); background: var(--surface-3); }

.tfoot { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--surface-2); border-top: 1px solid var(--line); }
.totals { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; color: var(--muted); }
.totals b { font: 600 13px var(--mono); color: var(--text); }
.pager { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.pager select { height: 30px; }

/* Kartlar */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.card h3 { margin: 0; font-size: 15px; color: var(--navy); }
.card .sub { font-size: 12px; color: var(--muted); }
.card .line { display: flex; gap: 8px; align-items: center; font-size: 13px; overflow-wrap: anywhere; }
.card .line .ms { color: var(--faint); font-size: 16px; flex: none; }
.card .line.none { color: var(--faint); font-style: italic; font-size: 12px; }
.card .cnote { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; white-space: pre-wrap; }
.card .meta { font-size: 11px; color: var(--muted); }

/* Pencere */
dialog { border: 1px solid var(--line-2); border-radius: 12px; padding: 0; width: min(760px, calc(100vw - 32px)); box-shadow: 0 12px 32px rgba(15,41,66,.18); color: var(--text); }
dialog::backdrop { background: rgba(11,28,48,.35); }
.m-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.m-head h2 { margin: 0; font-size: 16px; color: var(--navy); }
.m-body { padding: 16px 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; max-height: 70vh; overflow: auto; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.field label .req { color: var(--bad-dot); }
.field input, .field select { width: 100%; }
.field textarea { height: auto; min-height: 64px; padding: 6px 8px; resize: vertical; width: 100%; }
.field .hint { font-size: 11px; color: var(--teal); }
.field.invalid .rt-wrap, .field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--bad-dot); background: var(--bad-bg); }
.pair { display: flex; gap: 6px; }
.pair > :first-child { flex: 1; min-width: 0; }
.pair select { width: 90px; flex: none; }
.m-err { margin: 0 18px; padding: 8px 12px; border-radius: 6px; background: var(--bad-bg); border: 1px solid var(--bad-bd); color: var(--bad-tx); font-size: 12px; }
.m-foot { display: flex; justify-content: space-between; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); margin-top: 12px; flex-wrap: wrap; }
.m-actions, .m-del { display: flex; gap: 8px; align-items: center; }
.m-del span { font-size: 12px; color: var(--bad-tx); }

.toast { position: fixed; right: 20px; bottom: 20px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 6px; font-size: 13px; box-shadow: 0 6px 18px rgba(0,0,0,.2); z-index: 100; max-width: 380px; }

/* ---------- Konteynerler ---------- */
.faint { color: var(--faint); }
.small { font-size: 12px; }
.ok-tx { color: var(--ok-tx); } .bad-tx { color: var(--bad-tx); }
.warnline { color: var(--warn-tx); font-weight: 600; }
.search.xwide input { width: 380px; }
.ccards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.ccard { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.ccard:hover { border-color: var(--teal); box-shadow: 0 4px 12px -2px rgba(15,41,66,.08); }
.ccard-head { display: flex; gap: 12px; align-items: flex-start; }
.ccard-title { flex: 1; min-width: 0; }
.ccard h3, .dhead h2 { margin: 0; font-size: 15px; color: var(--navy); }
.ccard h3 span, .dhead h2 span { color: var(--muted); font-weight: 500; }
.ccard .sub { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.ccard .sub i { color: var(--faint); }
.arrow { font-size: 14px; color: var(--faint); }
.tmode { color: var(--faint); }
.cno { flex: none; min-width: 40px; height: 40px; padding: 0 6px; border-radius: 6px; background: var(--navy); color: #fff; display: grid; place-items: center; font: 600 17px var(--mono); }
.cno.big { min-width: 52px; height: 52px; font-size: 22px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cmeta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.cstats { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--text); border-top: 1px solid var(--line); padding-top: 10px; }
.cstats > span { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); }
.cstats .ms { font-size: 15px; color: var(--faint); }
.matches { margin: 0; padding: 8px 10px; list-style: none; background: var(--warn-bg); border: 1px solid var(--warn-bd); border-radius: 6px; font-size: 12px; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.matches b { color: var(--warn-tx); }

.dhead { display: flex; gap: 14px; align-items: center; padding: 14px 16px; flex-wrap: wrap; }
.dhead-main { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 6px; }
.dhead h2 { font-size: 20px; }
.dhead-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dgrid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.dside { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dcard { padding: 14px 16px; min-width: 0; }
.dcard h3 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.dl.one { grid-template-columns: 1fr; }
.dl-row { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dl dt { font-size: 11px; color: var(--muted); font-weight: 500; }
.dl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.bignum { font: 600 22px var(--mono); color: var(--ok-tx); margin-bottom: 8px; }
.divider { height: 1px; background: var(--line); margin: 12px 0; }
.timeline { list-style: none; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.timeline li { display: flex; flex-direction: column; gap: 3px; font-size: 11px; position: relative; padding-top: 16px; }
.timeline li::before { content: ""; position: absolute; top: 5px; left: 10px; right: -6px; height: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .tdot { position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); z-index: 1; }
.timeline li.done .tdot { background: var(--teal); border-color: var(--teal); }
.timeline li.done::before { background: var(--teal); }
.timeline li.next .tdot { border-color: var(--run-dot); }
.timeline b { font-weight: 600; color: var(--muted); }
.timeline li.none .mono { color: var(--faint); }
.noteform { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; }
.noteform { flex-wrap: wrap; justify-content: flex-end; }
.noteform .rt-wrap { flex: 1 1 100%; }
.notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow: auto; }
.notes li { border-left: 3px solid var(--teal); background: var(--surface-2); padding: 6px 10px; border-radius: 0 4px 4px 0; }
.notes li.faint { border: none; background: none; padding: 0; }
.nmeta { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 3px; }
.linkbtn { background: none; border: none; color: var(--bad-tx); cursor: pointer; font-size: 11px; padding: 0; }

.tabs { display: flex; gap: 2px; margin-top: 18px; border-bottom: 1px solid var(--line-2); overflow-x: auto; }
.tab { background: none; border: none; padding: 9px 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab.on { color: var(--navy); border-bottom-color: var(--teal); }
.tabpanel { border-top-left-radius: 0; border-top-right-radius: 0; border-top: none; overflow: hidden; }
.tp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; font-size: 12px; }
.tabpanel .scroll { max-height: none; }
.grid tfoot td { background: var(--surface-2); border-top: 1px solid var(--line-2); padding: 8px 10px; }
.calc { height: 32px; display: flex; align-items: center; font-family: var(--mono); font-size: 12px; gap: 6px; }

.contents { display: contents; }
.fsec { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--teal); border-bottom: 1px solid var(--line); padding: 6px 0 4px; margin-top: 4px; }

.upload { padding: 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.upload .m-err { margin: 0; }
.drop { border: 2px dashed var(--line-2); border-radius: 8px; padding: 18px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted);
  cursor: pointer; text-align: center; background: var(--surface-2); overflow-wrap: anywhere; }
.drop.over { border-color: var(--teal); background: #e6fbf8; }
.drop .ms { font-size: 26px; color: var(--teal); }
.upfields { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.upfields .field { width: 220px; }
.upfields select, .upfields input { height: 32px; border: 1px solid var(--line-2); border-radius: 4px; padding: 0 8px; width: 100%; }
.fgroups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fgroup { padding: 12px 14px; border-right: 1px solid var(--line); min-width: 0; }
.fgroup:last-child { border-right: none; }
.fgroup h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--navy); }
.flist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.flist li { display: flex; gap: 8px; align-items: flex-start; padding: 6px; border-radius: 6px; }
.flist li:hover { background: var(--surface-2); }
.ficon { color: var(--navy-2); font-size: 22px; flex: none; }
.fmain { flex: 1; min-width: 0; }
.fmain a { color: var(--navy); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.fmain a:hover { text-decoration: underline; }
.fmeta { font-size: 11px; color: var(--muted); }
.factions { display: flex; flex: none; }
.factions .btn.icon { width: 28px; height: 28px; }

/* ---------- Faturalar ---------- */
.pbar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; flex-wrap: wrap; }
.pinfo { flex: 1; min-width: 240px; font-size: 12px; color: var(--muted); }
.pinfo summary { cursor: pointer; color: var(--teal); font-weight: 600; margin-top: 2px; }
.pinfo ol { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.pinfo a, .flink { color: var(--navy); font-weight: 500; }
.pinfo code { font: 500 11px var(--mono); background: var(--surface-3); padding: 1px 4px; border-radius: 3px; overflow-wrap: anywhere; }
.itabs { margin-top: 0; }
.chip.nohand { cursor: default; }
a.chip { text-decoration: none; }
.flink { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; overflow-wrap: anywhere; }
.flink:hover { text-decoration: underline; }
.flink .ms { font-size: 16px; color: var(--navy-2); }

/* ---------- Talepler ---------- */
.navbadge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--warn-dot); color: #fff; font: 700 11px var(--sans); display: grid; place-items: center; }
.reqbanner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; background: var(--warn-bg); border: 1px solid var(--warn-bd); color: var(--warn-tx); flex-wrap: wrap; }
.reqbanner .btn { margin-left: auto; }
.prog { display: flex; align-items: center; gap: 8px; min-width: 110px; font-size: 12px; }
.prog-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.prog-bar span { display: block; height: 100%; background: var(--run-dot); }
.prog-bar span.full { background: var(--ok-dot); }
.stages { display: grid; grid-template-columns: repeat(2, max-content); gap: 2px 8px; }
.stage { display: inline-flex; align-items: center; gap: 4px; background: none; border: none; padding: 1px 2px; font-size: 11px; color: var(--muted); cursor: pointer; border-radius: 3px; white-space: nowrap; }
.stage .ms { font-size: 15px; color: var(--faint); }
.stage:hover { background: var(--surface-3); }
.stage.done { color: var(--teal); font-weight: 600; }
.stage.done .ms { color: var(--teal); }
.remdue { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.rembtns { display: flex; gap: 8px; }
.linkbtn.navy { color: var(--navy); text-decoration: underline; white-space: nowrap; }

/* ---------- Teklif karşılaştırma ---------- */
.qpicker select { min-width: 220px; max-width: 100%; }
.qactions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qgrid th.qoffer { min-width: 170px; text-transform: none; letter-spacing: 0; vertical-align: top; }
.qcol-desc { min-width: 240px; }
.qohead { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.qname { font-size: 13px; color: var(--navy); white-space: normal; }
.qometa { font-size: 11px; font-weight: 500; }
.qgrid input { height: 30px; width: 100%; border: 1px solid var(--line-2); border-radius: 4px; padding: 0 8px; background: var(--surface); outline: none; font-variant-numeric: tabular-nums; }
.qgrid .qqty { width: 76px; text-align: right; }
.qgrid .qprice input { text-align: right; font-family: var(--mono); font-size: 12px; }
.qprice.best input { background: var(--ok-bg); border-color: var(--ok-dot); color: var(--ok-tx); font-weight: 600; }
.qtl { font-size: 11px; color: var(--muted); text-align: right; min-height: 0; }
.qtotal { text-align: right; }
.qtotal.best { background: var(--ok-bg) !important; box-shadow: 0 -2px 0 var(--ok-dot) inset; }
.qmiss { font-size: 11px; color: var(--warn-tx); font-weight: 600; }
.qsummary { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); min-height: 20px; }
.qsummary .pill { white-space: normal; }
.qnote { margin: 0; padding: 12px 14px; }
.qfiles { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.qfiles figure { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.qfiles figcaption { font-size: 12px; overflow-wrap: anywhere; }
.qfiles figcaption a { color: var(--muted); }
.qfiles iframe, .qfiles img { width: 100%; height: 520px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); object-fit: contain; }
.qnopreview { height: 160px; border: 1px dashed var(--line-2); border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 12px; text-align: center; padding: 10px; }
.qfillwrap { max-height: 50vh; }
.qfnum { width: 90px; height: 28px; border: 1px solid var(--line-2); border-radius: 4px; padding: 0 6px; text-align: right; font-family: var(--mono); font-size: 12px; }

/* ---------- Marka, giriş, kullanıcılar ---------- */
/* Logoda beyaz yazı olduğu için marka alanı lacivert */
.side .brand { background: var(--navy); margin: -16px -12px 0; padding: 14px 12px; border-bottom: none; flex-direction: column; align-items: center; gap: 6px; }
.brand-logo { display: block; max-width: 100%; max-height: 72px; object-fit: contain; }
.brand .brand-name, .authbrand .brand-name { color: #fff; font-size: 15px; font-weight: 600; }
.brand .brand-mark { background: rgba(255,255,255,.12); }
.nav a[hidden] { display: none !important; }
.me { margin-top: auto; border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.me-name { display: flex; gap: 8px; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.me-name .ms { font-size: 26px; color: var(--navy-2); flex: none; }
.me-role { font-size: 11px; color: var(--muted); }
.me-actions { display: flex; justify-content: space-between; gap: 8px; }
.authscreen { position: fixed; inset: 0; z-index: 200; background: var(--navy); display: grid; place-items: center; padding: 16px; overflow: auto; }
.authcard { width: min(400px, 100%); display: flex; flex-direction: column; gap: 18px; }
.authbrand { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.authbrand .brand-logo { max-height: 110px; }
.authbrand .brand-name { font-size: 20px; }
#authForm { background: var(--surface); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
#authForm h1 { margin: 0; font-size: 18px; color: var(--navy); }
.authhint { margin: 0; font-size: 12px; color: var(--muted); }
.authhint:empty { display: none; }
.authback { text-align: center; font-size: 12px; color: var(--teal); }
#authFields { display: flex; flex-direction: column; gap: 10px; }
#authForm .m-err { margin: 0; }
#authForm .btn { justify-content: center; height: 36px; }
.row-off { opacity: .55; }
.tag-boss { background: var(--navy); color: #fff; }
.tag-admin { background: var(--teal); color: #fff; }
.permgrid { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 6px 12px; align-items: center; max-width: 340px; }
.permgrid label { font-size: 13px; }

/* Yalnız görüntüleme: düzenleme düğmeleri gizli. Sunucu zaten bu işlemleri reddeder. */
.ro-hsbc #newHsbc, .ro-hsbc #hsbcBody .edit,
.ro-konteynerler #newContainer, .ro-konteynerler #editContainer, .ro-konteynerler #noteForm, .ro-konteynerler [data-delnote],
.ro-konteynerler #addExpense, .ro-konteynerler #addItem, .ro-konteynerler #uploadForm, .ro-konteynerler [data-exp], .ro-konteynerler [data-item], .ro-konteynerler [data-fedit],
.ro-konteynerler #qNew, .ro-konteynerler #qAddOffer, .ro-konteynerler #qAddLine, .ro-konteynerler #qEdit, .ro-konteynerler [data-oedit], .ro-konteynerler [data-ofill], .ro-konteynerler [data-ldel],
.ro-faturalar #addInvFile, .ro-faturalar #psync, .ro-faturalar [data-inv],
.ro-talepler #newRequest, .ro-talepler [data-redit], .ro-talepler .rembtns, .ro-talepler .rd-edit, .ro-talepler [data-rdlog],
.ro-tedarikciler #newSupplier, .ro-tedarikciler [data-sup],
.ro-musteriler #newCustomer, .ro-musteriler [data-cus], .ro-musteriler #cnForm, .ro-musteriler [data-cnedit] { display: none !important; }
.ro-konteynerler .qgrid input { pointer-events: none; }
.ro-konteynerler .qgrid input { background: var(--surface-2); }

/* ---------- Hatırlatmalar ---------- */
.top-right { display: flex; align-items: center; gap: 10px; }
.bellwrap { position: relative; }
.bell { position: relative; }
.bellcount { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--bad-dot); color: #fff; font: 700 11px var(--sans); display: grid; place-items: center; }
.bellpanel { position: absolute; right: 0; top: 40px; width: min(340px, calc(100vw - 32px)); padding: 12px; display: flex; flex-direction: column; gap: 10px; z-index: 30; box-shadow: 0 6px 18px rgba(15,41,66,.16); }
.bell-head { display: flex; justify-content: space-between; align-items: center; }
.bell-head a { color: var(--teal); font-size: 12px; font-weight: 600; text-decoration: none; }
#bellList { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow: auto; }
#bellList li { border-bottom: 1px solid var(--line); padding-bottom: 8px; overflow-wrap: anywhere; }
#bellList li:last-child { border-bottom: none; padding-bottom: 0; }
#bellList a { color: var(--navy); font-weight: 600; }
.bell-actions { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.bellpanel > .btn { justify-content: center; }
.snooze { height: 28px; font-size: 12px; }
.navbadge.bad { background: var(--bad-dot); }
.remlist { display: flex; flex-direction: column; gap: 10px; }
.remgroup { display: flex; flex-direction: column; gap: 8px; }
.remgroup h2 { margin: 6px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.remcard { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.remcard.due { border-color: var(--bad-bd); background: var(--row-bad); }
.rem-main { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 4px; }
.rem-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rem-head h3 { margin: 0; font-size: 14px; color: var(--navy); overflow-wrap: anywhere; }
.rem-note { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rem-meta { font-size: 12px; color: var(--muted); }
.rem-meta a { color: var(--navy); font-weight: 500; }
.rem-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rem-actions .snooze { height: 32px; }
.ms.tiny { font-size: 12px; vertical-align: -2px; }
.remalerts { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 16px; width: min(340px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 8px; z-index: 90; }
.remalert { background: var(--surface); border: 1px solid var(--bad-bd); border-left: 4px solid var(--bad-dot); border-radius: 8px; padding: 10px 12px; box-shadow: 0 8px 22px rgba(15,41,66,.2); display: flex; flex-direction: column; gap: 6px; overflow-wrap: anywhere; }
.ra-head { display: flex; gap: 8px; align-items: flex-start; }
.ra-head > .ms { color: var(--bad-dot); flex: none; }
.ra-head b { flex: 1; color: var(--navy); }
.remalert p { margin: 0; font-size: 12px; white-space: pre-wrap; }
.ra-meta { font-size: 11px; color: var(--bad-tx); font-weight: 600; }
.ra-actions { display: flex; gap: 8px; align-items: center; }
.ra-actions .snooze { height: 32px; }
.remmore { background: var(--navy); color: #fff; text-align: center; padding: 6px; border-radius: 6px; font-size: 12px; text-decoration: none; }
.toast { bottom: auto; top: 70px; }

.invfile { display: flex; align-items: flex-start; gap: 6px; min-width: 260px; max-width: 400px; overflow-wrap: anywhere; }
.invfile .ms { flex: none; font-size: 16px; }
.invno { font-size: 11px; font-weight: 600; }

.grid td.conv { color: var(--muted); }

.reqperson { font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 2px; }
.reqperson a { color: var(--navy); }
.reqopen { background: none; border: none; padding: 0; cursor: pointer; display: inline-flex; align-items: flex-start; gap: 4px; text-align: left; color: inherit; font: inherit; }
.reqopen .ms { color: var(--muted); font-size: 18px; flex: none; }
.reqopen:hover b { color: var(--teal); }
.grid tr.reqdetail td { background: var(--surface-2); padding: 10px 14px; }
.rd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; position: sticky; left: 14px; max-width: min(1100px, calc(100vw - 340px)); }
.rd-box { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; min-width: 0; }
.rd-box h4 { margin: 0 0 4px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) { .rd-grid { max-width: calc(100vw - 60px); } }
.reqproduct { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- Talep sayfası ---------- */
.stage { text-decoration: none; }
.reqtitle { color: var(--navy); text-decoration: none; }
.reqtitle:hover { color: var(--teal); text-decoration: underline; }
.reqactions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; min-width: 300px; }
.btn.reqbtn { height: 26px; padding: 0 8px; font-size: 11px; text-decoration: none; gap: 4px; white-space: nowrap; }
.grid tr.reqlogrow td { padding: 0 10px 8px; border-top: none; }
.reqlogs { list-style: none; margin: 0; padding: 6px 10px; display: flex; flex-direction: column; gap: 4px; background: var(--surface-2); border-left: 3px solid var(--teal); border-radius: 0 4px 4px 0; font-size: 12px; position: sticky; left: 0; max-width: min(1000px, calc(100vw - 330px)); }
.reqlogs li { overflow-wrap: anywhere; }
.reqlogs li.sys { color: var(--muted); }
.reqlogs .rt { white-space: normal; }
.reqlogs .rt > div { display: inline; }
@media (max-width: 900px) { .reqlogs { max-width: calc(100vw - 60px); } }
.rdlinks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 14px; margin-top: 12px; }
.rdlink { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; overflow-wrap: anywhere; }
.rdlink a { color: var(--navy); }
.rdx { background: none; border: none; cursor: pointer; padding: 0; color: var(--muted); line-height: 1; }
.rdx.sure { color: var(--bad-dot); }
.rdstages { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin-top: 12px; }
.rdstage { display: flex; align-items: center; gap: 8px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; color: var(--text); font: inherit; min-width: 0; }
.rdstage > .ms { color: var(--faint); flex: none; }
.rdstage.done > .ms { color: var(--ok-dot); }
.rdstage:hover { border-color: var(--teal); }
.rdstage.on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.rdstage-t { display: flex; flex-direction: column; min-width: 0; }
.rdstage-t b { color: var(--navy); font-size: 13px; }
.rdstage-t small { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.rdhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.rdhead h3 { margin: 0; }
.rdperson { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.rdperson input { flex: 1; min-width: 0; height: 32px; border: 1px solid var(--line-2); border-radius: 4px; padding: 0 8px; }
.rdfile { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--navy); cursor: pointer; overflow-wrap: anywhere; }
.rdfile:hover { color: var(--teal); }
.rdfiles { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.rdtag { margin-bottom: 3px; display: inline-block; }
.cnitems li.sys .cnbody { background: none; border-left-color: var(--line-2); color: var(--muted); font-size: 12px; }
.rd-info { margin-bottom: 10px; font-size: 13px; overflow-wrap: anywhere; }
.rd-info > b { display: block; font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.picklist { max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; padding: 4px; }
.pickrow { display: flex; gap: 8px; align-items: flex-start; padding: 5px 6px; border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: 400; overflow-wrap: anywhere; }
.pickrow:hover { background: var(--surface-2); }
.pickrow.dis { color: var(--faint); cursor: default; }
.pickrow small { color: var(--muted); }
.pickrow input { flex: none; margin-top: 3px; height: auto; }

/* ---------- Konteyner dosya sekmeleri ---------- */
.ftabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 12px 16px 0; }
.ftab { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); cursor: pointer; font: inherit; font-size: 12px; }
.ftab b { color: var(--muted); font-weight: 600; }
.ftab:hover { border-color: var(--teal); }
.ftab.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.ftab.on b { color: #fff; }
.fsearch { margin-left: auto; min-width: 220px; }
#fileList.fgroups { display: block; padding: 12px 16px; }
.flist.fcols { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 4px 12px; }
.fthumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.fthumb { position: relative; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); }
.fthumb a { display: flex; flex-direction: column; text-decoration: none; color: var(--text); }
.fthumb img { width: 100%; height: 110px; object-fit: cover; background: var(--surface-2); display: block; }
.fthumb .ficon { height: 110px; display: grid; place-items: center; background: var(--surface-2); }
.fthumb-n { font-size: 11px; padding: 4px 6px; overflow-wrap: anywhere; }
.fthumb .btn { position: absolute; top: 4px; right: 4px; background: var(--surface); }
@media (max-width: 640px) { .fsearch { margin-left: 0; width: 100%; } .flist.fcols { grid-template-columns: 1fr; } }

.grid td.qcheck, .qgrid td.qcheck { background: var(--row-warn); }
.qgrid th.qchosen { box-shadow: inset 0 -3px 0 var(--ok-dot); }
#rqPanel .qactions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
#rqPanel .qsummary { margin-top: 10px; }
#rqPanel { margin-top: 12px; }
.rqmatch { max-width: 220px; height: 30px; font-size: 12px; }
#rqPanel .scroll { overflow-x: auto; }

/* ---------- Biçimli notlar ---------- */
.rt { white-space: pre-wrap; overflow-wrap: anywhere; }
.rt a { color: var(--teal); text-decoration: underline; overflow-wrap: anywhere; }
.rt ul, .rt ol { margin: 2px 0; padding-left: 20px; white-space: normal; }
.rt-wrap { border: 1px solid var(--line-2); border-radius: 4px; background: var(--surface); min-width: 0; }
.rt-wrap:focus-within { border-color: var(--teal); }
.rt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 3px 4px; border-bottom: 1px solid var(--line); background: var(--surface-2); border-radius: 4px 4px 0 0; }
.rt-btn { width: 28px; height: 28px; display: grid; place-items: center; background: none; border: none; border-radius: 4px; color: var(--navy); cursor: pointer; padding: 0; }
.rt-btn .ms { font-size: 18px; }
.rt-btn:hover { background: var(--surface-3); }
.rt-btn[aria-pressed="true"] { background: var(--navy); color: #fff; }
.rt-sw { width: 22px; height: 22px; margin: 0 1px; border: 1px solid var(--line-2); border-radius: 4px; cursor: pointer; padding: 0; background: var(--surface); }
.rt-sw:hover { border-color: var(--navy); }
.rt-sw.txt { font: 700 13px var(--sans); }
.rt-sep { width: 1px; height: 18px; margin: 0 4px; background: var(--line-2); }
.rt-ico { font-size: 16px; color: var(--muted); margin-right: 2px; }
.rt-edit { padding: 6px 8px; outline: none; max-height: 320px; overflow: auto; font-size: 13px; }
.rt-edit:empty::before { content: attr(data-ph); color: var(--faint); pointer-events: none; }
.ra-note { font-size: 12px; }

/* ---------- Müşteri hareketleri ---------- */
.cuslink { color: inherit; text-decoration: none; }
.cuslink:hover { color: var(--teal); text-decoration: underline; }
.cusfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.cusfoot .btn { text-decoration: none; }
.cncol { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cnform { display: flex; flex-direction: column; gap: 10px; }
.cnform h3 { margin: 0; }
.cnwhen { display: flex; gap: 10px; flex-wrap: wrap; }
.cnwhen label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.cnfoot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.cnerr { color: var(--bad-tx); font-size: 12px; flex: 1; }
.cnhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cnhead h3 { margin: 0; }
.cnday + .cnday { margin-top: 14px; }
.cnday h4 { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.cnitems { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cnitems li { display: flex; gap: 10px; align-items: flex-start; }
.cntime { flex: none; font-size: 12px; font-weight: 600; color: var(--teal); padding-top: 7px; width: 40px; }
.cnbody { flex: 1; min-width: 0; border-left: 3px solid var(--teal); background: var(--surface-2); padding: 6px 10px; border-radius: 0 4px 4px 0; }

/* ---------- Dashboard ---------- */
.dash { display: flex; flex-direction: column; gap: 14px; }
.attn { display: flex; flex-wrap: wrap; gap: 8px; }
.attn .chip { text-decoration: none; height: auto; min-height: 28px; }
.dsec { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dsec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.dsec h2 { margin: 0; font-size: 16px; color: var(--navy); }
.dsec h3 { margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.dsec h3.mt { margin-top: 16px; }
.dlink { font-size: 12px; color: var(--teal); font-weight: 600; text-decoration: none; }
.dlink:hover { text-decoration: underline; }
.dempty { margin: 0; color: var(--muted); }
.dempty a { color: var(--navy); font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--surface-2); border-radius: 6px; text-decoration: none; color: inherit; min-width: 0; }
a.tile:hover { background: var(--surface-3); }
.tile-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.tile-val { font: 600 26px/1.2 var(--mono); color: var(--navy); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile-val.c-ok { color: var(--ok-tx); }
.tile-val.c-bad { color: var(--bad-tx); }
.tile-sub { font-size: 11px; color: var(--muted); }
.dcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dcols > div { min-width: 0; }
.sbar { display: flex; gap: 2px; height: 14px; }
.seg { display: block; min-width: 3px; }
.seg:first-child { border-radius: 4px 0 0 4px; }
.seg:last-child { border-radius: 0 4px 4px 0; }
.seg:only-child { border-radius: 4px; }
.seg-ok { background: var(--ok-dot); } .seg-run { background: var(--run-dot); } .seg-run2 { background: #7cc4ec; }
.seg-warn { background: var(--warn-dot); } .seg-bad { background: var(--bad-dot); }
.seg-idle { background: var(--idle-dot); } .seg-idle2 { background: #cbd5e1; }
.slegend { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; }
.slegend li { display: inline-flex; align-items: center; gap: 5px; }
.slegend b { font: 600 12px var(--mono); }
.sdot { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.meter-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 60px; align-items: center; gap: 10px; padding: 4px 0; font-size: 12px; }
.meter-row .prog-bar span { background: var(--teal); }
.meter-val { text-align: right; }
table.compact td, table.compact th { padding: 5px 8px; }
.dsec .scroll { max-height: 280px; }
table.compact .prog { min-width: 130px; }

@media (max-width: 1100px) {
  .dcols { grid-template-columns: 1fr; }
  .dgrid { grid-template-columns: 1fr; }
  .fgroups { grid-template-columns: 1fr; }
  .fgroup { border-right: none; border-bottom: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .search.xwide input { width: 100%; }
  .dl { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  :root { --side-w: 0px; }
  .side { position: static; width: auto; border-right: none; border-bottom: 1px solid var(--line); }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .nav a em { display: none; }
  .top { position: static; height: auto; padding: 12px 16px; flex-wrap: wrap; }
  .main { padding: 16px; }
  .m-body { grid-template-columns: 1fr; }
  .search input, .search.wide input { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
