:root {
    --ink: #17212c; --muted: #5d6b7a; --bg: #eef1f5; --card: #fff; --line: #d9e0e8;
    --nav: #14202e; --nav-ink: #dfe7f0; --accent: #1f5fbf; --accent-d: #174a96; --accent-soft: #e4eefb;
    --pos: #1a7f4b; --neg: #b3261e; --warn: #b45f06; --warn-bg: #fff2dc; --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); }
h1 { font-size: 1.5rem; margin: 0 0 .15rem; line-height: 1.25; }
h2 { font-size: 1.1rem; margin: 0 0 .6rem; }
h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
a { color: var(--accent); }
a:hover { color: var(--accent-d); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.pos { color: var(--pos); font-weight: 600; }
.neg { color: var(--neg); font-weight: 600; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem; z-index: 99; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid #f5b400; outline-offset: 2px; }

.demo-bar { background: #fff2dc; color: #6a3d00; text-align: center; padding: .4rem .75rem; font-size: .85rem; border-bottom: 1px solid #f0d49b; }

.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--nav); color: var(--nav-ink); padding: 1rem .75rem; display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 0; height: 100vh; overflow: auto; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 700; line-height: 1.2; }
.brand .logo { width: 36px; height: 36px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; flex: none; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: .65rem; color: var(--nav-ink); text-decoration: none; padding: .6rem .7rem; border-radius: 8px; min-height: 44px; }
.side nav a:hover { background: rgba(255,255,255,.08); }
.side nav a.on { background: rgba(255,255,255,.14); color: #fff; font-weight: 600; }
.who { margin-top: auto; font-size: .85rem; display: flex; flex-direction: column; gap: .35rem; }
.who small { display: block; color: #9fb0c3; }
.who a, .who .link { color: var(--nav-ink); }
.badge { background: #f5b400; color: #2a1c00; border-radius: 999px; font-size: .72rem; padding: 0 .45rem; min-width: 1.35rem; text-align: center; font-weight: 700; margin-left: auto; }
.main { padding: 1.25rem 1.5rem 3rem; max-width: 1100px; width: 100%; }
.tabbar { display: none; }

.pagehead { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.pagehead p { margin: 0; }
.crumb { font-size: .85rem; margin-bottom: .2rem !important; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.actions.wrap { align-items: flex-start; }
.actions form { margin: 0; }
.right { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.card.narrow { max-width: 560px; }
.card.empty { text-align: center; padding: 2rem 1rem; }
.sechead { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid2 > .card { margin-bottom: 0; }
.grid2 + .card, .grid2 { margin-bottom: 1rem; }

.btn, button.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .55rem 1rem; border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 8px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-d); color: #fff; }
.btn.alt { background: var(--accent-soft); color: var(--accent-d); border-color: #bcd3f2; }
.btn.alt:hover { background: #d3e5fa; color: var(--accent-d); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: #f1f4f8; color: var(--ink); }
.btn.danger { background: var(--neg); border-color: var(--neg); }
.btn.small { min-height: 36px; padding: .25rem .7rem; font-size: .88rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link { background: none; border: 0; padding: .5rem; min-height: 44px; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; }
.link.danger { color: var(--neg); }

.flash { padding: .7rem 1rem; border-radius: 8px; margin-bottom: 1rem; border: 1px solid; }
.flash.ok { background: #e6f5ec; border-color: #a9d9bc; color: #14532d; }
.flash.error { background: #fdecea; border-color: #f2b8b5; color: #7a1712; }
.flash.info { background: #e8f0fb; border-color: #bcd3f2; color: #123c78; }

.field { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.field.grow { flex: 1 1 220px; }
.field.wide, .wide { grid-column: 1 / -1; flex-basis: 100%; }
.field.check { justify-content: flex-end; }
.field.check label { display: flex; align-items: center; gap: .5rem; min-height: 44px; }
.sechead a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .4rem; }
label { font-size: .88rem; font-weight: 600; }
input, select, textarea { font: inherit; font-size: 16px; padding: .55rem .65rem; border: 1px solid #b7c2cf; border-radius: 8px; background: #fff; color: var(--ink); min-height: 44px; width: 100%; }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; }
input[type=file] { padding: .4rem; }
textarea { min-height: 70px; resize: vertical; }
textarea.mono { font-family: ui-monospace, Consolas, monospace; font-size: .9rem; }
small { color: var(--muted); }
fieldset { border: 0; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .8rem; }
legend { font-weight: 700; padding: 0 0 .5rem; font-size: 1.02rem; grid-column: 1 / -1; }
.form-inline { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; margin-top: .75rem; }
.form-inline .field { flex: 1 1 170px; }
.formbar { display: flex; gap: .6rem; flex-wrap: wrap; }
form.inline { display: inline-flex; gap: .4rem; align-items: center; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.filters .field { flex: 0 1 190px; }
.filters .field.grow { flex: 1 1 240px; }

details.act { margin: .6rem 0; }
details.act > summary { list-style: none; cursor: pointer; display: inline-flex; }
details.act > summary::-webkit-details-marker { display: none; }
details.act[open] > summary { margin-bottom: .4rem; }
details.act > form { background: #f6f8fb; border: 1px solid var(--line); border-radius: 8px; padding: .8rem; margin-top: 0; }
.danger-zone { border-color: #f0c4c1; }
.danger-zone summary { cursor: pointer; color: var(--neg); font-weight: 600; min-height: 44px; display: flex; align-items: center; }

.chip { display: inline-block; font-size: .78rem; font-weight: 700; padding: .12rem .55rem; border-radius: 999px; vertical-align: middle; }
.chip-stock { background: #e1f3e8; color: #14532d; }
.chip-reserved { background: #fff0cc; color: #6a4300; }
.chip-sold { background: #e1e8f5; color: #1f3a6b; }
.chip-passive { background: #e8e8ea; color: #454a52; }
.stage-new { background: #e1e8f5; color: #1f3a6b; } .stage-contacted { background: #e8f0fb; color: #123c78; } .stage-shown { background: #fff0cc; color: #6a4300; }
.stage-offer { background: #fde4c4; color: #7a3d00; } .stage-bought { background: #e1f3e8; color: #14532d; } .stage-lost { background: #e8e8ea; color: #454a52; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: .1rem .5rem; border-radius: 6px; background: #eef1f5; color: var(--ink); text-decoration: none; }
.tag.late { background: var(--warn-bg); color: var(--warn); }
.days.long { color: var(--warn); font-weight: 700; }

.tabs { display: flex; gap: .3rem; overflow-x: auto; margin-bottom: .75rem; padding-bottom: 2px; }
.tabs a { white-space: nowrap; padding: .5rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: .3rem; }
.tabs a.on { background: var(--nav); color: #fff; border-color: var(--nav); }
.tabs a small { color: inherit; opacity: .7; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: .1rem; }
a.kpi:hover { border-color: var(--accent); }
.kpi .n { font-size: 1.7rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi .n.sm { font-size: 1.2rem; }
.kpi .n.warn { color: var(--warn); }
.kpi .l { color: var(--muted); font-size: .84rem; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.rows > li:first-child { border-top: 0; }
.rows > li > a:first-child { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); min-width: 0; flex: 1 1 220px; }
.rows > li > a:first-child b { color: var(--accent-d); }
.rows.card { padding: .3rem 1.1rem; }
.plain { margin: 0; padding-left: 1.1rem; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list a { display: flex; flex-direction: column; padding: .7rem 0; border-top: 1px solid var(--line); text-decoration: none; min-height: 44px; }
.menu-list li:first-child a { border-top: 0; }

.vlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.vcard { display: grid; grid-template-columns: 170px 1fr; gap: .9rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem; }
.vcard.long { border-left: 4px solid #f5b400; }
.vthumb { display: block; }
.thumb { width: 100%; aspect-ratio: 8/5; object-fit: cover; border-radius: 8px; background: #dfe5ec; display: block; }
.nophoto { display: grid; place-items: center; color: var(--muted); font-size: .8rem; }
.vtop { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; flex-wrap: wrap; }
.vtitle { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; color: var(--ink); font-size: 1.05rem; }
.vtitle:hover { color: var(--accent); }
.vnums { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: .4rem; }
.vnums span { display: flex; flex-direction: column; font-size: .92rem; }
.vnums small { font-size: .74rem; }

.statline { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.statline > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .9rem; display: flex; flex-direction: column; }
.statline small { font-size: .78rem; }
.statline b { font-size: 1.15rem; }
.statline.slim { grid-template-columns: repeat(3, 1fr); }
.statline.slim > div { background: #f6f8fb; }

.gallery { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .75rem; }
.gallery img { width: 100%; aspect-ratio: 8/5; object-fit: cover; border-radius: 8px; background: #dfe5ec; display: block; }
.gallery .cap { margin-top: .2rem; }

.tblwrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tbl th, .tbl td { padding: .5rem .5rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { font-size: .78rem; text-transform: none; color: var(--muted); border-top: 0; font-weight: 600; }
.tbl th.num, .tbl td.num { text-align: right; }
.tbl tr.sum td { font-weight: 700; border-top: 2px solid var(--line); }
.tbl.compact { max-width: 520px; }
tr.longrow td { background: #fffaf0; }

.timeline { list-style: none; margin: .75rem 0 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 150px 1fr auto; gap: .6rem; padding: .45rem 0; border-top: 1px solid var(--line); align-items: start; }
.timeline .when { white-space: nowrap; }
.timeline li.note { background: #fbfcfe; }
.checks { list-style: none; margin: .5rem 0 1rem; padding: 0; }
.checks li { padding: .3rem 0; }
.checks label { font-weight: 500; display: flex; gap: .6rem; align-items: center; min-height: 40px; }
.checks input { width: 22px; height: 22px; }

.center { max-width: 460px; margin: 0 auto; padding: 1.2rem 1rem 3rem; }
.login h1 { margin-bottom: .25rem; }
.stack { display: flex; flex-direction: column; gap: .75rem; }
.login .btn { width: 100%; }

@media (max-width: 860px) {
    .shell { display: block; }
    .side { display: none; }
    .main { padding: 1rem 1rem 6rem; }
    .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; background: var(--nav); z-index: 20; padding-bottom: env(safe-area-inset-bottom); }
    .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #b6c3d2; text-decoration: none; font-size: .72rem; min-height: 56px; padding: .35rem 0; }
    .tabbar a.on { color: #fff; font-weight: 700; }
    .tabbar .badge { position: absolute; top: 4px; left: 54%; margin: 0; }
    .grid2 { grid-template-columns: 1fr; }
    .vcard { grid-template-columns: 112px 1fr; gap: .6rem; }
    .vnums { gap: .3rem 1rem; }
    .timeline li { grid-template-columns: 1fr; gap: .1rem; }
    .statline.slim { grid-template-columns: 1fr; }
    h1 { font-size: 1.3rem; }
    .tbl thead { display: none; }
    .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
    .tbl tr { border-top: 2px solid var(--line); padding: .35rem 0; }
    .tbl td { border: 0; padding: .15rem 0; text-align: left !important; display: flex; justify-content: space-between; gap: .75rem; }
    .tbl td[data-l]::before { content: attr(data-l); color: var(--muted); font-size: .8rem; flex: none; }
    .tbl.compact { max-width: none; }
    .tbl.compact tr { border-top: 0; display: table-row; }
    .tbl.compact, .tbl.compact tbody { display: table; }
    .tbl.compact tbody { width: 100%; }
    .tbl.compact tr { display: table-row; }
    .tbl.compact td { display: table-cell; padding: .4rem; border-top: 1px solid var(--line); }
}
@media (max-width: 420px) {
    .vcard { grid-template-columns: 1fr; }
    .actions .btn { flex: 1 1 auto; }
}

/* ----- yazdırma */
.printpage { background: #eef1f5; }
.printbar { display: flex; gap: .5rem; flex-wrap: wrap; padding: .75rem; max-width: 820px; margin: 0 auto; }
.sheet { background: #fff; max-width: 820px; margin: 0 auto 2rem; padding: 1.5rem 1.75rem; border: 1px solid var(--line); }
.sheet-head { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--ink); padding-bottom: .5rem; margin-bottom: .75rem; }
.sheet-head .gal { font-size: 1.2rem; font-weight: 700; }
.sheet-head .right { display: block; text-align: right; }
.sheet h1 { font-size: 1.6rem; margin: .25rem 0 .6rem; }
.sheet h2 { margin-top: 1.1rem; font-size: 1.05rem; }
.pgrid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 6px; margin-bottom: .8rem; }
.pgrid img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; display: block; background: #dfe5ec; }
.pgrid .pmain { grid-row: 1 / span 3; aspect-ratio: 8/5; }
.pgrid:has(.pmain:only-child) { grid-template-columns: 1fr; grid-template-rows: auto; }
.pgrid:has(.pmain:only-child) .pmain { grid-row: auto; }
.spec { width: 100%; border-collapse: collapse; margin: .4rem 0; }
.spec th, .spec td { border: 1px solid #c9d2dc; padding: .4rem .6rem; text-align: left; font-size: .95rem; }
.spec th { background: #f1f4f8; width: 22%; font-weight: 600; }
.spec tr.sum td, .spec tr.sum th { font-weight: 700; background: #f8fafc; }
.price { margin: .8rem 0; font-size: 1.4rem; padding: .6rem .9rem; border: 2px solid var(--ink); display: flex; justify-content: space-between; }
@media screen and (max-width: 600px) {
    .sheet { padding: 1rem .75rem; }
    .spec { table-layout: fixed; }
    .spec th, .spec td { padding: .35rem .25rem; font-size: .82rem; overflow-wrap: anywhere; }
}
@media print {
    @page { size: A4; margin: 12mm; }
    body, .printpage { background: #fff; }
    .noprint, .demo-bar { display: none !important; }
    .sheet { border: 0; margin: 0; padding: 0; max-width: none; }
    a { color: inherit; text-decoration: none; }
}

/* ----- oto yıkama */
.chip-received { background: #e1e8f5; color: #1f3a6b; }
.chip-inspect { background: #e8f0fb; color: #123c78; }
.chip-approval { background: #fff0cc; color: #6a4300; }
.chip-progress { background: #fde4c4; color: #7a3d00; }
.chip-done { background: #e1f3e8; color: #14532d; }
.chip-delivered { background: #d5ecdf; color: #0f4a28; border: 1px solid #a9d9bc; }
.chip-cancelled { background: #e8e8ea; color: #454a52; }
.appt-bekliyor { background: #e8f0fb; color: #123c78; } .appt-geldi { background: #e1f3e8; color: #14532d; }
.appt-gelmedi { background: #fdecea; color: #7a1712; } .appt-iptal { background: #e8e8ea; color: #454a52; }
.warnx { color: var(--warn); font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pre { white-space: pre-line; }
.plate { display: inline-block; font: 700 .95rem/1 ui-monospace, Consolas, monospace; letter-spacing: .06em; padding: .28rem .55rem; border: 2px solid #17212c; border-radius: 6px; background: #fff; color: #17212c; box-shadow: inset 4px 0 0 #1f5fbf; padding-left: .85rem; white-space: nowrap; }
h1 .plate { font-size: 1.05rem; vertical-align: middle; }
.bigplate { font: 700 1.6rem/1.2 ui-monospace, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; text-align: center; min-height: 56px; }
.topbar { display: flex; gap: .75rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 1rem; }
.topsearch { display: flex; gap: .5rem; flex: 1 1 320px; max-width: 520px; }
.topsearch input { flex: 1; }
.fuelbar { display: flex; gap: .4rem; flex-wrap: wrap; }
.fuelopt { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .9rem; border: 1px solid #b7c2cf; border-radius: 8px; background: #fff; font-weight: 600; cursor: pointer; }
.fuelopt:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-d); }
.vsum { display: block; line-height: 1.8; }
.totals { max-width: 420px; margin-left: auto; }
.totals th { width: 55%; }
.totals td { text-align: right; }
details.act.inl { margin: 0; }
details.act.inl > form { margin-bottom: .4rem; }
.form-inline .wide { flex: 1 1 100%; }
.kpi .n.neg { color: var(--neg); }
.printchecks { list-style: none; margin: .3rem 0 .8rem; padding: 0; columns: 2; }
.printchecks li { padding: .15rem 0; }
.printchecks .box { font-size: 1.15rem; }
.pgrid4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: .8rem; }
.pgrid4 figure { margin: 0; }
.pgrid4 img { width: 100%; aspect-ratio: 8/5; object-fit: cover; border-radius: 4px; display: block; background: #dfe5ec; }
.signs { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2.2rem; font-size: .9rem; }
.signs span { display: block; border-bottom: 1px solid #17212c; height: 2.4rem; }
.spec.items thead th { background: #f1f4f8; width: auto; }
@media (max-width: 860px) {
    .topbar { flex-direction: column; align-items: stretch; }
    .topsearch { max-width: none; flex: 0 0 auto; }
    .totals { max-width: none; }
    .printchecks { columns: 1; }
}
@media print {
    .topbar, .tabbar { display: none !important; }
    .signs { break-inside: avoid; }
}

.tap { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .3rem; }

/* Örnek verili demo ana ekranındaki fotoğraflı üst alan (yalnız demo kipinde; telifsiz foto, assets/foto/KAYNAKLAR.md) */
.photo-band { position: relative; overflow: hidden; background: #14202e; color: #fff; border-radius: var(--radius); margin-bottom: 1rem; min-height: 150px; display: flex; align-items: flex-end; }
.photo-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(14,24,38,.88) 0%, rgba(14,24,38,.55) 55%, rgba(14,24,38,.15) 100%); }
.photo-band .in { position: relative; z-index: 2; padding: 1.2rem 1.3rem; }
.photo-band .t { display: block; font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.photo-band .s { display: block; margin-top: .25rem; color: #dfe7f0; font-size: .95rem; }
@media (max-width: 600px) { .photo-band { min-height: 120px; } .photo-band .t { font-size: 1.15rem; } }
.demo-warn { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn); border-radius: 8px; padding: .6rem .8rem; font-size: .9rem; }
.demo-box { margin-top: 1rem; border: 1px solid var(--line, #ddd); border-radius: 8px; padding: .75rem; }
.demo-box h2 { margin: 0 0 .25rem; font-size: 1.05rem; }

/* 1.1.3: müşteri ve araç listesini Excel/CSV'den alma */
.help { padding: .25rem 1.1rem; }
.help summary { font-weight: 700; color: var(--accent-d); cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.import-columns { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .75rem; margin: .5rem 0; }
.import-counts .tag { font-size: .95rem; padding: .3rem .75rem; margin-right: .35rem; }
.tag.import-ok { background: #e6f5ec; color: #14532d; }
.import-scroll { margin: .6rem 0; }
.import-table { min-width: 760px; }
.import-table input[type="checkbox"] { width: 24px; height: 24px; }
.import-table tr.import-error td { background: #fdecea; }
.import-table tr.import-exists td, .import-table tr.import-dup td { color: var(--muted); background: #f3f5f8; }
#import-form .btn { min-height: 48px; font-size: 1.05rem; }
@media (max-width: 860px) { .import-table { min-width: 0; } }

/* ---- 1.2.0: kurulum rehberi, telefona ekle, kurulum kartı ---- */
.setupbar { background: var(--accent-soft); border-bottom: 1px solid var(--line); padding: .5rem 1rem; }
.setupbar .in { max-width: 1100px; margin: 0 auto; }
.setupbar a { display: block; text-decoration: none; margin-bottom: .35rem; padding: .35rem 0; }
.progress { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; margin: .35rem 0 .75rem; }
.setupbar .progress { margin-bottom: 0; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.a2hs { background: var(--warn-bg); border-bottom: 1px solid var(--warn); padding: .6rem 1rem; }
.a2hs .in { max-width: 1100px; margin: 0 auto; }
.a2hs ol { margin: .5rem 0 0 1.2rem; }
.a2hs[hidden], ol[hidden], p[hidden] { display: none; }
.step.next { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.card .row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; align-items: center; }
.card.demo-box { background: #e8f0fb; margin-top: 0; }
.poster { border: 3px solid var(--ink); border-radius: 16px; padding: 2rem 1rem; text-align: center; margin: 1rem 0; }
.poster h3 { font-size: 2rem; margin: 0 0 .5rem; }
.posterlink { font-size: 1.1rem; font-weight: 800; word-break: break-all; }
.posterqr { display: flex; justify-content: center; margin: 1rem 0; }
.posterqr svg { width: 240px; height: 240px; max-width: 100%; }
.card.big { font-size: 1.1rem; }
.btn.full { display: flex; width: 100%; justify-content: center; margin-bottom: .6rem; }
.wide-input { width: 100%; }
.login-foot { text-align: center; margin-top: 1rem; }
@media print {
    .demo-bar, .setupbar, .a2hs, .side, .tabbar, .topbar, .help, .row, .btn, .flash { display: none !important; }
    main > h1, main > p, main > .card:not(.print-card), main > form { display: none !important; }
    .print-card h2, .print-card > p.small { display: none; }
    .posterqr svg { width: 9cm; height: 9cm; }
    body { background: #fff; }
    main > h2.share-sub { display: none !important; }
    body[data-print-only="book"] .print-card[data-poster="install"], body[data-print-only="install"] .print-card[data-poster="book"] { display: none !important; }
}

/* ---- 1.3.0: müşteri tarafı (girişsiz randevu talebi ve durum sayfası) ---- */
.badge.static { margin-left: .4rem; }
.req-notice { display: flex; flex-direction: column; gap: .15rem; text-decoration: none; color: var(--ink); border-color: #f0d49b; background: var(--warn-bg); }
.req-card { border-color: #f0d49b; }
.reqs > li { flex-wrap: wrap; align-items: flex-start; gap: .6rem; }
.req-actions { display: flex; gap: .5rem; align-items: flex-end; flex-wrap: wrap; margin: 0; }
.req-actions .force { display: flex; align-items: center; gap: .35rem; min-height: 36px; }
.req-reject { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: 0; flex: 1 1 100%; }
.req-reject input { flex: 1 1 200px; }
.share-sub { margin: 1.4rem 0 .6rem; }
.daychecks { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.daychecks label { display: flex; align-items: center; gap: .4rem; min-height: 40px; font-weight: 500; }
.cust-main { max-width: 520px; font-size: 1.1rem; }
.cust-shop { margin: 0 0 .8rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.cust-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.1rem; }
.cust-card h1 { font-size: 1.55rem; margin-bottom: .5rem; }
.cust-card h2 { font-size: 1.15rem; margin: 1.3rem 0 .6rem; }
.cust .lead { font-size: 1.1rem; margin: .2rem 0 1rem; }
.cust .btn { min-height: 52px; font-size: 1.05rem; }
.cust .btn.full { margin-top: .5rem; }
.cust .btn.big { width: 100%; min-height: 58px; font-size: 1.15rem; }
.cust .field label { font-size: 1.02rem; font-weight: 600; }
.cust input, .cust select, .cust textarea { font: inherit; padding: .7rem .75rem; border: 1px solid #b9c4d1; border-radius: 10px; min-height: 50px; background: #fff; width: 100%; }
.cust .stack { gap: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.daylist, .slotlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.daylist { grid-template-columns: 1fr 1fr; }
.slotlist { grid-template-columns: 1fr 1fr 1fr; }
.day { display: flex; flex-direction: column; justify-content: center; min-height: 58px; padding: .5rem .7rem; border: 2px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: #fff; }
.day span { font-size: .85rem; color: var(--muted); }
.day.on, .day:hover { border-color: var(--accent); background: var(--accent-soft); }
.slot { display: flex; align-items: center; justify-content: center; min-height: 56px; border: 2px solid var(--accent); border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 1.15rem; color: var(--accent-d); background: #fff; }
.slot:hover { background: var(--accent-soft); }
.picked { background: var(--accent-soft); border-radius: 10px; padding: .7rem .9rem; margin: .4rem 0 1rem; display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.notice { background: #f3f6fa; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; font-size: .92rem; margin-bottom: 1rem; }
.state { font-size: 1.6rem; margin: .2rem 0 .4rem; }
.state-ok { color: var(--pos); }
.state-bad { color: var(--neg); }
.state-warn { color: var(--warn); }
.state-info { color: var(--accent-d); }
.note-from { background: #fff8e8; border: 1px solid #f0d49b; border-radius: 10px; padding: .6rem .8rem; }
.steps { list-style: none; display: flex; gap: .4rem; padding: 0; margin: 1rem 0; }
.steps li { flex: 1; text-align: center; font-size: .9rem; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.steps li span { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 700; background: #fff; }
.steps li.done span, .steps li.now span { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps li.now { color: var(--ink); font-weight: 700; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 1rem 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.cal { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .2rem; }

/* Hasar haritası (araç kabul) */
.dmg { max-width: 420px; }
.dmg-kinds { display: flex; flex-wrap: wrap; gap: .4rem .5rem; margin: .2rem 0 .4rem; }
.dmg-kind { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .7rem; min-height: 40px; background: #fff; cursor: pointer; }
.dmg-kind:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.dmg-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dmg-svg { width: 100%; max-width: 320px; height: auto; display: block; margin: .3rem auto; background: #f4f6f9; border: 1px solid var(--line); border-radius: var(--radius); touch-action: manipulation; }
.dmg-edit { cursor: crosshair; }
.dmg-body { fill: #fff; stroke: #34495e; stroke-width: 2.5; }
.dmg-roof { fill: #eef1f5; stroke: #34495e; stroke-width: 1.5; }
.dmg-glass { fill: #cfd9e6; stroke: #34495e; stroke-width: 1.5; }
.dmg-wheel { fill: #34495e; }
.dmg-mirror { fill: #fff; stroke: #34495e; stroke-width: 1.5; }
.dmg-line { stroke: #b6c2d0; stroke-width: 1.2; stroke-dasharray: 4 4; }
.dmg-lbl { font: 700 11px system-ui, sans-serif; fill: #5d6b7a; }
.dmg-n { font: 700 11px system-ui, sans-serif; fill: #fff; pointer-events: none; }
.dmg-mark { cursor: pointer; }
.dmg-bar { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: .2rem 0; }
.dmg-list { margin: .4rem 0 0; padding-left: 1.2rem; }
.dmg-list li { margin: .15rem 0; }
.dmg-ro .dmg-svg { cursor: default; }
.dmg-print { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 1rem; align-items: start; break-inside: avoid; }
.dmg-print .dmg-svg { max-width: 240px; }

/* İş panosu */
.boardfilter { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.boardfilter select { min-height: 44px; }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; align-items: start; }
.bcol { background: #e4e9f0; border-radius: var(--radius); padding: .7rem; }
.bcol h2 { font-size: 1rem; margin: 0 0 .5rem; display: flex; align-items: center; justify-content: space-between; }
.bcol .badge { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 .55rem; font-size: .85rem; }
.bcards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.bcard { display: flex; flex-direction: column; gap: .15rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: .55rem .65rem; text-decoration: none; color: var(--ink); min-height: 44px; }
.bcard.late { border-left-color: var(--neg); background: #fff4f3; }
.bcol-done .bcard { border-left-color: var(--pos); }
.bcol-approval .bcard { border-left-color: var(--warn); }
.board-link { display: block; text-decoration: none; color: var(--ink); }
@media (max-width: 1100px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .board { grid-template-columns: 1fr; } .dmg-print { grid-template-columns: 1fr; } }
@media print { .dmg-print { grid-template-columns: 240px 1fr; } .dmg-svg { background: #fff; } }

.board-link b{display:block;margin-bottom:2px}
