/* bidplatform — prototipteki görünüm (renkler, yazı tipleri, bileşenler) */
:root {
  --bg: #f3f5f7;
  --surface: #ffffff;
  --sunk: #e9edf1;
  --tint: #edf3f9;
  --line: #d5dce3;
  --fg: #17212b;
  --muted: #5a6875;
  --accent: #1d5f86;
  --accent-soft: #e2eef6;
  --good: #2c7a4b;
  --good-soft: #e3f3e9;
  --warn: #9a6200;
  --warn-soft: #fbf0d9;
  --crit: #a8322b;
  --crit-soft: #f9e4e2;
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12171c; --surface: #1a2027; --sunk: #222a32; --tint: #1f2933; --line: #33404c; --fg: #e5ebf0; --muted: #9aa8b5;
    --accent: #6fb3dd; --accent-soft: #1d3646; --good: #6cc792; --good-soft: #1b3326; --warn: #e3b25a; --warn-soft: #3a2e17;
    --crit: #ef8a82; --crit-soft: #3e2220; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font-family: var(--f-body); font-size: 14px; line-height: 1.5; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 22px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
p { margin: 0; }
a { color: var(--accent); }
.num { font-family: "Inter", "IBM Plex Sans", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.prewrap { white-space: pre-wrap; }
.grow { flex: 1; }
form.inline { display: inline; margin: 0; }

/* Üst menü */
.top { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 10px 24px; }
.brand { font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--fg); text-decoration: none; }
.brand span { color: var(--accent); }
.menu { display: flex; align-items: center; gap: 4px; flex: 1; flex-wrap: wrap; }
.menu a:not(.btn) { color: var(--fg); text-decoration: none; padding: 8px 10px; border-radius: 6px; font-weight: 500; }
.menu a:not(.btn):hover { background: var(--sunk); }
.menu a.on { background: var(--accent-soft); color: var(--accent); }
.menu .co { padding: 0 6px; }

.shell { max-width: 1100px; margin: 0 auto; padding: 24px 24px 64px; display: flex; flex-direction: column; gap: 20px; }
.head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.head .grow { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hero { padding: 28px 0 8px; display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.hero h1 { font-size: 30px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.panel.narrow { max-width: 440px; width: 100%; margin: 24px auto 0; }
.panel .subform { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }

.btn { font: inherit; font-weight: 600; border-radius: 8px; padding: 8px 14px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { background: var(--sunk); }
.btn.pri { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.btn.pri:hover { filter: brightness(1.08); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--accent); }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.x { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; padding: 4px; }

.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.pill.open { background: var(--accent-soft); color: var(--accent); }
.pill.done { background: var(--good-soft); color: var(--good); }
.pill.draft { background: var(--sunk); color: var(--muted); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.crit { background: var(--crit-soft); color: var(--crit); }
.pill.st-onayli { background: var(--good-soft); color: var(--good); }
.pill.st-kara { background: #1c1f23; color: #ffffff; }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label, .field .lab { font-weight: 600; font-size: 13px; }
input[type="text"], input[type="number"], input[type="date"], input[type="email"], input[type="tel"], input[type="password"], select, textarea {
  font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; width: 100%; min-width: 0;
}
input:disabled, textarea:disabled, select:disabled { background: var(--tint); }
textarea { resize: vertical; min-height: 64px; }
input[type="number"] { text-align: right; font-variant-numeric: tabular-nums; }
input[type="date"].datein { width: 180px; max-width: 100%; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.choice { border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; background: var(--surface); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { margin-top: 3px; accent-color: var(--accent); }
.choice b { display: block; }
.choice > span { min-width: 0; overflow-wrap: anywhere; }

.steps { display: flex; gap: 6px; flex-wrap: wrap; }
.steps span { font-size: 12.5px; padding: 4px 10px; border-radius: 99px; background: var(--sunk); color: var(--muted); font-weight: 600; }
.steps span.on { background: var(--accent); color: var(--surface); }
.steps span.ok { background: var(--accent-soft); color: var(--accent); }
#wizard { display: flex; flex-direction: column; gap: 16px; }

.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--sunk); font-weight: 600; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }
td input, td select { padding: 5px 7px; }
.suptbl td { vertical-align: middle; }
.suptbl input[type="checkbox"] { accent-color: var(--accent); }
.suptbl tr:has(input:checked) td { background: var(--accent-soft); }
.suplist { max-height: 420px; overflow: auto; margin-top: 8px; }

.cards { display: flex; flex-direction: column; gap: 10px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; color: inherit; text-decoration: none; }
.card:hover { border-color: var(--accent); }
.card .meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }

.note { border-radius: 8px; padding: 10px 12px; font-size: 13px; display: flex; gap: 8px; }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.note.good { background: var(--good-soft); color: var(--good); }
.note.info { background: var(--accent-soft); color: var(--accent); }
.note.crit { background: var(--crit-soft); color: var(--crit); }
.note b { color: inherit; }

.mail { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.mail .mh { background: var(--sunk); padding: 10px 14px; font-size: 13px; display: grid; gap: 2px; }
.mail .mb { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.empty { align-items: flex-start; }

@media (max-width: 640px) {
  .top-in, .shell { padding-left: 16px; padding-right: 16px; }
  .menu .co { display: none; }
}
select.stsel { width: auto; padding: 4px 8px; }
select.stsel.st-onayli { background-color: var(--good-soft); color: var(--good); border-color: var(--good); font-weight: 600; }
select.stsel.st-kara { background-color: #1c1f23; color: #ffffff; border-color: #1c1f23; font-weight: 600; }
select.stsel option { background: var(--surface); color: var(--fg); font-weight: 400; }
