/* Colibri admin — mobil oncelikli, buyuk dokunma alanlari. Tema: mavi #4a84f5 (Money ile ayni). Mailler / PDF / site kahve-altin kalir. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: #f2f4f8; color: #2b2f36;
    font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
a { color: #2f66d0; }
main { max-width: 640px; margin: 0 auto; padding: 12px 14px 24px; }

.top {
    position: sticky; top: 0; z-index: 5; display: flex; align-items: baseline; gap: 10px;
    background: #4a84f5; color: #fff; padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
}
.top .brand { font-weight: 700; color: #fff; letter-spacing: .04em; }
.top .title { font-size: 15px; opacity: .9; }

.tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex;
    background: #fff; border-top: 1px solid #e1e5ec; padding-bottom: env(safe-area-inset-bottom);
}
.tabs a {
    flex: 1; min-width: 0; text-align: center; padding: 8px 0 10px; font-size: 11px; color: #6b7280; text-decoration: none; white-space: nowrap;
}
.tabs a span { display: block; font-size: 22px; line-height: 1.2; }
.tabs a.on { color: #2f66d0; font-weight: 700; }

h1.hello { margin: 8px 0 0; font-size: 24px; }
h2 { font-size: 17px; margin: 22px 0 8px; display: flex; align-items: center; gap: 8px; }
h2.day small { font-weight: 400; color: #9aa3b2; font-size: 13px; margin-left: auto; }
h2.day.today { color: #2f66d0; }
h3 { font-size: 16px; margin: 4px 0 10px; }
.count { background: #4a84f5; color: #fff; border-radius: 12px; padding: 0 9px; font-size: 14px; }
.muted { color: #6b7280; }
.small { font-size: 13px; }
.center { text-align: center; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }

.card {
    background: #fff; border-radius: 12px; padding: 14px; margin: 0 0 12px;
    box-shadow: 0 1px 3px rgba(20, 40, 80, .08);
}
.card.list { padding: 0; overflow: hidden; }
.card.empty, .empty { color: #9aa3b2; text-align: center; padding: 16px; display: block; text-decoration: none; }
details.card > summary { font-weight: 600; cursor: pointer; list-style: none; padding: 2px 0; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: "›"; float: right; color: #4a84f5; transition: transform .15s; }
details.card[open] > summary { margin-bottom: 12px; }
details.card[open] > summary::after { transform: rotate(90deg); }

.flash { background: #e7f4e8; color: #1e5b22; padding: 12px 14px; border-radius: 10px; margin-bottom: 12px; }
.flash.err { background: #fdecea; color: #8e2a1f; }
.warn { background: #fff4d6; color: #6b4e00; padding: 10px 12px; border-radius: 8px; margin: 10px 0; font-size: 14px; }
.warn a, .warn span { margin-right: 6px; }
.warn-text { color: #8e2a1f; }

.chip { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 10px; padding: 1px 8px; vertical-align: middle; }
.chip.bk { padding: 1px 5px; cursor: help; }
.chip.bk.st-found { background: #e3edfd; color: #1d4fa8; }
.upload-msg.err { color: #b3261e !important; font-weight: 700; background: #fde8e8; border-radius: 6px; padding: 6px 8px; }
.st-pending { background: #fde7c4; color: #7a4b00; }
.st-offered { background: #e3ecfb; color: #234a8a; }
.st-confirmed { background: #e2f3e3; color: #1e5b22; }
.st-completed { background: #eee; color: #555; }
.st-noshow, .st-alert { background: #fbe1de; color: #8e2a1f; }
.st-declined { background: #eee; color: #777; text-decoration: line-through; }

.request .req-top, .req-top { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.req-when { font-size: 15px; }
.req-when.big { font-size: 18px; }
.req-name { display: block; font-size: 20px; font-weight: 700; margin: 4px 0 2px; color: #2b2f36; text-decoration: none; }
.req-svc { color: #4b5565; font-size: 14px; }
.req-notes { background: #f2f4f8; border-radius: 8px; padding: 8px 10px; margin-top: 8px; font-size: 14px; font-style: italic; }
.req-actions { display: flex; gap: 8px; margin-top: 12px; }
.req-actions form { flex: 1; margin: 0; }
.req-actions .btn { margin: 0; }
.req-actions .btn.wa { flex: 0 0 52px; }

.row {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: inherit; text-decoration: none;
    border-bottom: 1px solid #eef1f5;
}
.row:last-child { border-bottom: 0; }
.row .when { flex: 0 0 58px; text-align: center; font-size: 13px; color: #6b7280; line-height: 1.25; }
.row .when b { display: block; font-size: 16px; color: #2b2f36; }
.row .when small { display: block; }
.row .what { flex: 1; min-width: 0; }
.row .what small { display: block; color: #6b7280; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.block { background: #fbf3f2; }
.row form { margin: 0; }
a.empty.add { color: #4a84f5; }

.btn {
    display: block; width: 100%; text-align: center; border: 0; border-radius: 10px; padding: 12px 14px; margin: 8px 0 0;
    font: inherit; font-weight: 600; background: #e7ecf5; color: #2b2f36; text-decoration: none; cursor: pointer;
    -webkit-appearance: none; appearance: none;
}
.btn:active { opacity: .75; }
.btn.primary { background: #4a84f5; color: #fff; }
.btn.ok { background: #2e7d32; color: #fff; }
.btn.danger { background: #c0392b; color: #fff; }
.btn.warn-btn { background: #fbe1de; color: #8e2a1f; }
.btn.wa { background: #25D366; color: #fff; }
.btn.big { padding: 15px; font-size: 17px; }
.btn.small { display: inline-block; width: auto; padding: 6px 12px; font-size: 13px; margin: 0; }
.btn.link { background: none; color: #2f66d0; font-weight: 400; text-decoration: underline; }

.contact { display: flex; gap: 8px; margin: 10px 0 0; }
.contact .btn { margin: 0; padding: 10px 6px; font-size: 14px; }
.two { display: flex; gap: 10px; }
.two > * { flex: 1; min-width: 0; }
.two form { margin: 0; }

label { display: block; font-size: 14px; color: #4b5565; margin: 10px 0 0; }
input[type=text], input[type=email], input[type=tel], input[type=search], input[type=number], input[type=password], input[type=url],
input[type=date], input[type=time], textarea {
    display: block; width: 100%; margin-top: 4px; padding: 11px 12px; font: inherit; font-size: 16px; color: #2b2f36;
    border: 1px solid #d5dbe5; border-radius: 9px; background: #fff; -webkit-appearance: none; appearance: none;
}
input:focus, textarea:focus { outline: 2px solid #4a84f5; border-color: transparent; }
input[type=file] { display: block; margin-top: 6px; font-size: 15px; }
input.code { font-size: 30px; letter-spacing: 8px; text-align: center; }
label.check { display: flex; align-items: center; gap: 10px; color: #2b2f36; font-size: 15px; margin: 10px 0 0; }
label.check input { width: 22px; height: 22px; margin: 0; accent-color: #4a84f5; flex: 0 0 auto; }
label.check small { color: #6b7280; margin-left: auto; white-space: nowrap; }
label.check.small { font-size: 14px; }
/* Kurulum sihirbazi: meslek listesi (SU-01) iki / uc sutun */
.trade-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 18px; }

.svc-group h4 { margin: 14px 0 0; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #4a84f5; }
.svc-list { list-style: none; padding: 0; margin: 12px 0 0; }
.svc-list li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed #eef1f5; font-size: 15px; }
.svc-list li.total { font-weight: 700; border-bottom: 0; }

.stats { display: flex; gap: 10px; margin: 18px 0 12px; }
.stats div { flex: 1; background: #fff; border-radius: 12px; padding: 12px 8px; text-align: center; box-shadow: 0 1px 3px rgba(20, 40, 80, .08); }
.stats b { display: block; font-size: 20px; }
.stats span { font-size: 12px; color: #6b7280; }

.search input { font-size: 17px; }
.week-nav { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.week-nav span { flex: 1; text-align: center; font-weight: 600; }
.week-nav .btn { width: 52px; margin: 0; font-size: 20px; padding: 6px; }

.hours-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.hours-row label.check { flex: 0 0 130px; margin: 0; }
.hours-row input[type=time] { margin: 0; padding: 8px; }
/* Company settings > Lines */
.line-list { list-style: none; margin: 8px 0 0; padding: 0; }
.line-list li { padding: 10px 0; border-top: 1px solid #eef1f5; }
.line-list li:first-child { border-top: 0; }
.line-list li.closed input[type=text] { color: #6b7280; }
.line-name { display: flex; gap: 8px; align-items: center; }
.line-name input[type=text] { flex: 1; margin: 0; }
.line-list p { margin: 4px 0 6px; }
.line-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.svc-lines { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 4px 0 6px; }
.svc-lines label.check { margin: 0; }
.chip.ln { background: #e3edfd; color: #1d4fa8; }
/* Genis ekranda ince tek kolon kalmasin: iki sutunlu formlar / sayfalar (New appointment, Block time, Accountant access) */
@media (min-width: 900px) {
    .wide .wgrid2.cols2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 0; }
    .wide .wgrid2.cols2 > div > .card:first-child, .wide .wgrid2.cols2 > div > h2:first-child { margin-top: 0; }
    .wide .new-form { max-width: 1120px; margin: 0 auto; padding: 22px 26px; }
    .wide .new-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
    .wide .new-cols h3:first-child { margin-top: 0; }
    .wide .new-form > .btn.big { max-width: 420px; margin-left: auto; display: block; }
    .wide .wgrid2.cols2 > .card { margin: 0; }
    .wide .camp-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
    .wide .camp-grid > .camp-side { order: 2; }
    .wide .camp-grid > form { order: 1; margin: 0; }
    .wide .share-qr svg { max-width: 280px; margin: 8px auto 0; }
}
.imp-sample { font-size: 13px; }
.camp-prev-h { margin: 16px 0 6px; font-size: 15px; }
.appt-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 2px; }
.line-move { display: flex; gap: 6px; align-items: center; }
.line-move select { margin: 0; width: auto; }
.svc-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.svc-table th { text-align: left; font-size: 12px; color: #6b7280; font-weight: 600; padding: 4px; }
.svc-table td { border-top: 1px solid #eef1f5; padding: 6px 4px; vertical-align: middle; }
.svc-table td small { color: #6b7280; }
.svc-table input[type=number] { width: 64px; padding: 6px; margin: 0; }
.svc-table input[type=checkbox] { width: 20px; height: 20px; accent-color: #4a84f5; }
.steps { padding-left: 20px; margin: 0 0 8px; }
.steps li { margin-bottom: 6px; }
.dupe { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid #eef1f5; }
.dupe a { text-decoration: none; color: inherit; }
.dupe small { color: #6b7280; display: block; }
.dupe form { margin: 0; }

.login { text-align: center; margin-top: 30px; }
.login .logo { max-width: 220px; margin: 6px auto 14px; display: block; }
.inline-center { margin-top: 6px; }
.person .req-name { display: inline-block; }
form { margin: 0; }

/* Faz 6: oduller + sonraki randevu */
.st-reward { background: #fdf0c9; color: #7a5600; }
.reward { background: #f6f9ff; border: 1px solid #dbe7fd; }
.reward-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; font-weight: 600; }
.reward-line form { margin: 0; flex: 0 0 auto; }
.rebook { border: 2px solid #4a84f5; }
.rebook-when { font-size: 20px; margin: 4px 0 6px; }
.loyalty .stamps { font-size: 22px; letter-spacing: 3px; color: #4a84f5; margin-right: 8px; }
select { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; font: inherit; font-size: 16px; color: #2b2f36;
    border: 1px solid #d5dbe5; border-radius: 9px; background: #fff; }
.cid { font-size: 13px; font-weight: 400; color: #9aa3b2; }

/* Ready to contact (tazeleme / We miss you — admin onayiyla) */
.ready { border-left: 5px solid #4a84f5; background: #f6f9ff; }
.ready.winback { border-left-color: #d48aa0; }
.ready-name { display: block; color: #2b2f36; text-decoration: none; font-size: 17px; }
.ready-why { font-size: 14px; color: #4b5565; margin: 2px 0 6px; }
.ready-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ready-actions .btn { flex: 1 1 auto; width: auto; padding: 10px 12px; font-size: 14px; }
.ready-actions .btn.primary { flex-basis: 100%; }
.ready-hint { display: block; text-decoration: none; color: #2b2f36; background: #f6f9ff; border: 1px solid #dbe7fd; }

/* Faz 7: kampanyalar, tercihler, fotograflar, metrikler */
.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn.tpl { margin: 0; padding: 16px 8px; background: #fff; box-shadow: 0 1px 3px rgba(20, 40, 80, .08); font-size: 15px; line-height: 1.6; }
label.check.seg { align-items: flex-start; padding: 6px 0; border-bottom: 1px solid #eef1f5; margin: 0; }
label.check.seg span { flex: 1; }
label.check.seg small { display: block; margin: 0; white-space: normal; }
label.check.seg em { font-style: normal; font-weight: 700; color: #4a84f5; min-width: 30px; text-align: right; }
.progress { height: 12px; background: #eef1f5; border-radius: 6px; overflow: hidden; margin: 10px 0 6px; }
.progress span { display: block; height: 100%; background: #2e7d32; }
.mail-preview { font-size: 15px; white-space: normal; }
.mail-preview img, .camp-img { display: block; max-width: 100%; border-radius: 8px; margin-bottom: 10px; }
.upload .btn { cursor: pointer; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 4px; }
.photos figure { margin: 0; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.photos figcaption { font-size: 11px; color: #6b7280; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 3px; }
.photos figcaption form { margin: 0; display: inline; }
.photos figcaption button { border: 0; background: #e7ecf5; color: #4b5565; border-radius: 6px; font-size: 11px; padding: 2px 6px; cursor: pointer; }
.photos figcaption button.ig.on { background: #e2f3e3; color: #1e5b22; }
details.prefs { margin-top: 10px; }
details.prefs > summary { cursor: pointer; font-size: 14px; color: #4b5565; }
details.confirm-msg { margin: 4px 0 10px; }
details.confirm-msg > summary { cursor: pointer; font-size: 14px; color: #4a84f5; padding: 4px 0; }
details.confirm-msg[open] > summary { margin-bottom: 6px; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.metrics div { background: #fff; border-radius: 12px; padding: 12px 10px; text-align: center; box-shadow: 0 1px 3px rgba(20, 40, 80, .08); }
.metrics b { display: block; font-size: 22px; }
.metrics span { font-size: 12px; color: #6b7280; }
.metrics small { display: block; font-size: 11px; color: #9aa3b2; }
.bars { list-style: none; margin: 0; padding: 0; }
.bars li { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 5px 0; }
.bars li span:first-child { flex: 0 0 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars li i { display: block; height: 14px; background: #4a84f5; border-radius: 4px; min-width: 2px; }
.bars li .bar { flex: 1; }
.bars li em { font-style: normal; color: #6b7280; flex: 0 0 auto; }
input[type=file][hidden] { display: none; }
.photo-pick small { font-weight: 400; color: #6b7280; }

/* Calendar: Week | All bookings + filtreler */
.seg { display: flex; background: #e7ecf5; border-radius: 10px; padding: 3px; margin: 4px 0 10px; }
.seg a { flex: 1; text-align: center; padding: 8px; border-radius: 8px; text-decoration: none; color: #4b5565; font-weight: 600; font-size: 15px; }
.seg a.on { background: #fff; color: #2b2f36; box-shadow: 0 1px 2px rgba(20, 40, 80, .15); }
.filters { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 8px; -webkit-overflow-scrolling: touch; }
.filters a { flex: 0 0 auto; padding: 7px 12px; border-radius: 16px; background: #fff; color: #4b5565; text-decoration: none; font-size: 14px; box-shadow: 0 1px 2px rgba(20, 40, 80, .1); }
.filters a.on { background: #4a84f5; color: #fff; }
.filters a span { opacity: .7; margin-left: 2px; }
.filters.per-page { align-items: center; }
.filters.per-page > span { font-size: 14px; color: #6b7280; margin-right: 2px; }
.filters.per-page a { padding: 5px 11px; }
.listnav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0; }
.listnav .filters { margin-bottom: 0; }
.listnav .pager { margin: 0; }
h2.day small a { color: #9aa3b2; }
.stats a { flex: 1; background: #fff; border-radius: 12px; padding: 12px 8px; text-align: center; box-shadow: 0 1px 3px rgba(20, 40, 80, .08); color: inherit; text-decoration: none; }
.stats a b { display: block; font-size: 20px; }
.stats a span { font-size: 12px; color: #6b7280; }

/* Pause customer emails */
.paused-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff0c2; color: #6b4e00;
    border: 1px solid #f0cf6a; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: 14px; }
.paused-bar .btn { flex: 0 0 auto; background: #4a84f5; color: #fff; }
.suspended-bar { background: #fdecea; color: #8e2a1f; border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; font-size: 15px; }
.suspended-bar a { color: #8e2a1f; font-weight: 700; margin-left: 4px; }
.pause-card { margin-top: 16px; }
.pause-card .two { flex-wrap: wrap; }
.pause-card .two .btn { font-size: 14px; padding: 10px 6px; }
.st-access { background: #e3ecfb; color: #234a8a; }
.st-home { background: #e6f3ee; color: #1f5c46; }
.appt-visit { margin: 10px 0; padding: 10px 12px; border: 1px solid var(--line, #dde3ec); border-radius: 10px; }
.appt-visit p { margin: 4px 0; }

/* "Completed" / "Fix the price": servisler, duzeltme, odeme yontemi */
.final-edit { margin: 10px 0 4px; }
.final-edit summary { cursor: pointer; font-size: 15px; padding: 6px 0; }
.final-sum { margin: 8px 0; color: #2b2f36; }
.pay-pick { margin: 6px 0 12px; }
.pay-seg { display: flex; gap: 6px; }
.pay-seg label { flex: 1; margin: 0; }
.pay-seg input { position: absolute; opacity: 0; pointer-events: none; }
.pay-seg span { display: block; text-align: center; padding: 12px 4px; border: 1px solid #e1e5ec; border-radius: 10px; background: #fff; font-size: 14px; cursor: pointer; }
.pay-seg input:checked + span { background: #dbe7fd; border-color: #4a84f5; font-weight: 700; color: #1d4ea8; }
.pay-seg input:focus-visible + span { outline: 2px solid #4a84f5; }
.pay-later { margin-top: 6px; }
.line-edit { display: grid; grid-template-columns: 1fr 52px 84px; gap: 6px; margin-bottom: 6px; }
.line-edit input { margin: 0; }
.btn.big + .filters { margin-top: 14px; }
.money-in { color: #2e7d32; }
.pay-seg-4 { flex-wrap: wrap; }
.pay-seg-4 label { flex: 1 1 45%; }
.receipts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.receipt { width: 140px; text-align: center; }
.receipt img { width: 140px; height: 180px; object-fit: cover; border-radius: 8px; border: 1px solid #e1e5ec; display: block; margin-bottom: 6px; }
.receipt-pdf { display: flex; align-items: center; justify-content: center; width: 140px; height: 180px; border-radius: 8px; border: 1px solid #e1e5ec; background: #fff; font-weight: 700; margin-bottom: 6px; }

/* Money sekmesi: alt sayfalara buyuk butonlar */
.money-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 14px; }
.money-nav .btn { margin: 0; text-align: center; }
.acct-icon { font-size: 24px; }
/* Banka satiri: oneri + tutar kutusu (bolunmus etiket) */
.tag-sug { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #eef1f5; }
.tag-sug:last-of-type { border-bottom: 0; }
.tag-sug form { display: flex; gap: 6px; align-items: center; flex: 0 0 auto; }
.tag-sug form .btn { margin: 0; width: auto; }
.tag-amount { display: flex; align-items: center; gap: 2px; margin: 0; font-size: 14px; }
.tag-amount input { width: 74px; padding: 8px 6px; margin: 0; text-align: right; }

/* ===== Money "pro" (QuickFile benzeri): mavi tema, alt menu, genis tablolar (masaustu) / kartlar (telefon) ===== */

body a { color: #2f66d0; }
body .top { background: #4a84f5; }
body .top .brand { color: #fff; }
.mnav { display: flex; background: #4a84f5; overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid rgba(255, 255, 255, .18); }
.mnav a { flex: 1 0 auto; text-align: center; color: #fff !important; text-decoration: none; font-size: 13px; font-weight: 600; padding: 10px 12px; border-right: 1px solid rgba(255, 255, 255, .15); }
.mnav a.on { background: #2f66d0; }
body .btn.primary, body .filters a.on { background: #4a84f5; color: #fff; }
body .btn { background: #e7ecf5; color: #2b2f36; }
body .btn.primary { color: #fff; }
body .btn.danger { background: #c0392b; color: #fff; }
body details.card > summary::after { color: #4a84f5; }
body .filters a { color: #4b5565; }
body .muted, body .row .what small { color: #6b7280; }
body .card { box-shadow: 0 1px 2px rgba(20, 40, 80, .08); border-radius: 6px; }
body .tabs a.on { color: #2f66d0; }
body input:focus, body textarea:focus { outline-color: #4a84f5; }
.money-in, .qt .in, .in { color: #2e9d3a; }
.out, .qt .out { color: #d0312d; }
.dash { color: #b8bec9; }
.d-only { display: none; }
.qhead { display: flex; align-items: center; gap: 12px; margin: 6px 0 12px; }
.qicon { flex: 0 0 48px; height: 48px; border-radius: 8px; background: #2b2f36; color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center; }
.qtitle { flex: 1; min-width: 0; }
.qtitle h1 { margin: 0; font-size: 20px; font-weight: 700; color: #3c4250; }
.qtitle h1 span { font-weight: 400; color: #6b7280; }
.qtitle p { margin: 2px 0 0; font-size: 13px; color: #6b7280; }
.qcount { display: grid; gap: 4px; flex: 0 0 auto; }
.qcount a { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6b7280 !important; }
.qcount a span { min-width: 70px; }
.qcount b { min-width: 52px; text-align: center; padding: 3px 8px; font-size: 13px; color: #2b2f36; border-left: 4px solid; }
.qcount b.g { background: #d6f0d8; border-color: #2e9d3a; }
.qcount b.r { background: #fbd5d8; border-color: #d0312d; }
.qbal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.qbal div { background: #fff; border-radius: 6px; padding: 10px; box-shadow: 0 1px 2px rgba(20, 40, 80, .08); }
.qbal span { display: block; font-size: 11px; color: #6b7280; text-transform: uppercase; letter-spacing: .04em; }
.qbal b { display: block; font-size: 17px; margin: 2px 0; }
.qbal small { font-size: 11px; color: #6b7280; }
.qbal em { font-style: normal; }
.qtools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.qbtn { display: inline-block; padding: 8px 14px; border-radius: 3px; background: #9aa3b2; color: #fff !important; text-decoration: none; font-size: 14px; font-weight: 600; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.qbtn.primary { background: #4a84f5; }
.qbtn.off { opacity: .45; }
.qsearch label { margin-top: 6px; }
.qst { display: inline-block; padding: 4px 10px; border-radius: 3px; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.qst.tagme { background: #f8c8cf; color: #a1202d !important; }
.qst.tagged { background: #d6f0d8; color: #1e6b25 !important; }
.qst.part { background: #fde7c4; color: #7a4b00 !important; }
.qst.ignored { background: #e5e7eb; color: #555 !important; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin: 12px 0; font-size: 14px; color: #6b7280; }
.qt { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e1e5ec; font-size: 14px; margin-bottom: 4px; box-shadow: 0 1px 2px rgba(20, 40, 80, .06); }
.qt th { text-align: left; font-size: 13px; font-weight: 700; color: #3c4250; background: #f7f8fa; padding: 12px 10px; border-bottom: 1px solid #e1e5ec; white-space: nowrap; }
.qt th a { color: inherit !important; text-decoration: none; }
.qt th i { font-style: normal; color: #b8bec9; font-size: 11px; }
.qt td { padding: 11px 10px; border-bottom: 1px solid #eef1f5; vertical-align: middle; }
.qt tbody tr:hover td { background: #f6f9ff; }
.qt td small { display: block; font-size: 12px; color: #6b7280; }
.qt .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qt .date { white-space: nowrap; width: 1%; }
.qt .st { text-align: center; width: 1%; }
.qt .bal { color: #4b5565; }
.qt a.ref { color: #2b2f36 !important; text-decoration: none; }
.qt a.ref:hover { text-decoration: underline; }
.qt tfoot td { font-weight: 700; background: #f7f8fa; border-top: 2px solid #e1e5ec; border-bottom: 0; }
.qt .chip { margin-left: 4px; }
@media (min-width: 900px) {
    main.wide { max-width: 1240px; padding: 18px 24px 30px; }
    .wide .d-only { display: table; }
    .wide div.d-only { display: block; }
    .wide .m-only { display: none; }
    .wide .qsearch { display: flex; gap: 10px; align-items: flex-end; }
    .wide .qsearch label { flex: 1; }
    .wide .qsearch .btn { width: auto; flex: 0 0 auto; padding: 11px 24px; }
    .mnav { justify-content: flex-start; }
    .mnav a { flex: 0 0 auto; padding: 14px 22px; font-size: 14px; }
    .qtitle h1 { font-size: 24px; }
}
@media (max-width: 899px) { .qcount a span { min-width: 0; } .qbal b { font-size: 15px; } }
body .tabs a { color: #6b7280; }
body .tabs a.on { color: #2f66d0; }
.qpanel h3 { display: flex; justify-content: space-between; align-items: center; }
.qclose { text-decoration: none; color: #9aa3b2 !important; font-size: 18px; padding: 0 4px; }
body a.row { color: #2b2f36; }
body .row .when b { color: #2b2f36; }
@media (max-width: 899px) {
    .qhead { flex-wrap: wrap; }
    .qtitle h1 { font-size: 18px; }
    .qcount { grid-auto-flow: column; width: 100%; justify-content: start; gap: 14px; }
    .qicon { flex-basis: 42px; height: 42px; font-size: 22px; }
}
.qnarrow { max-width: 640px; }
.wide details.card#add form, .wide .qpanel#upload form { max-width: 640px; }
.wide .qt + .m-only + .pager, .wide .qt ~ .pager, .wide .qt ~ .listnav { margin-top: 14px; }
body input[type=search], body input[type=text], body input[type=date], body input[type=number], body select, body textarea { border-color: #d5dbe5; color: #2b2f36; }
body .search { margin-bottom: 12px; }
.qcount b.n { background: #e3ecfb; border-color: #4a84f5; }
/* Money > Overview */
.qkpi { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.qkpi a { background: #fff; border-radius: 6px; padding: 12px; text-decoration: none; color: #2b2f36 !important; box-shadow: 0 1px 2px rgba(20, 40, 80, .08); border-top: 3px solid #4a84f5; }
.qkpi span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; }
.qkpi b { display: block; font-size: 22px; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.qkpi small { font-size: 12px; color: #6b7280; }
.qgrid { display: grid; gap: 12px; }
.qcard h3 { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; color: #3c4250; }
.qmore { font-size: 13px; font-weight: 400; text-decoration: none; }
.qlegend { display: flex; gap: 16px; font-size: 13px; color: #4b5565; margin-bottom: 4px; }
.qlegend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.qchart { width: 100%; height: auto; display: block; }
.qchart .grid { stroke: #eef1f5; stroke-width: 1; }
.qchart .base { stroke: #c9d0db; stroke-width: 1; }
.qchart .ax { font-size: 11px; fill: #6b7280; font-family: inherit; }
.qchart .hit { fill: transparent; }
.qchart .mo:hover .hit { fill: #f2f6fd; }
.qtable { margin-top: 8px; font-size: 13px; }
.qtable summary { cursor: pointer; color: #2f66d0; }
.qtable .qt { margin-top: 8px; font-size: 13px; }
.qtable .qt td, .qtable .qt th { padding: 7px 8px; }
.qacct { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eef1f5; text-decoration: none; color: #2b2f36 !important; }
.qacct:last-child { border-bottom: 0; }
.qacct .i { font-size: 22px; }
.qacct .t { flex: 1; min-width: 0; }
.qacct small { display: block; font-size: 12px; color: #6b7280; }
.qacct .v { text-align: right; }
.qacct .v small { margin-top: 3px; }
.qtodo { list-style: none; padding: 0; margin: 0 0 10px; }
.qtodo li { padding: 8px 0; border-bottom: 1px solid #eef1f5; font-size: 14px; }
.qtodo li:last-child { border-bottom: 0; }
.qtodo a { text-decoration: none; color: #2b2f36 !important; }
@media (min-width: 900px) {
    .qkpi { grid-template-columns: repeat(4, 1fr); }
    .qgrid { grid-template-columns: 2fr 1fr; align-items: start; }
}
.qgrid2 { display: grid; gap: 12px; }
body .svc-list li { border-bottom-color: #eef1f5; border-bottom-style: solid; }
body .svc-list li.total { border-top: 2px solid #e1e5ec; padding-top: 8px; }
body .warn { background: #fff4d6; }
@media (min-width: 900px) { .qgrid2 { grid-template-columns: 1fr 1fr; align-items: start; } }
body .row .when { color: #6b7280; }
@media (max-width: 899px) { .qchart .ax { font-size: 20px; } }
/* Purchases: belge gorunumu, damga, odemeler */
.pay-seg-4 label.later { flex-basis: 100%; }
.qdocnav { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 10px; }
.qdocnav > a, .qdocnav > span { font-size: 26px; text-decoration: none; color: #9aa3b2 !important; padding: 0 10px; }
.qdocnav > span { opacity: .35; }
.qdocnav div { text-align: center; }
.qdocnav div b { display: block; font-size: 19px; font-weight: 400; color: #3c4250; }
.qdocnav div a { font-size: 13px; }
.qdoc { padding: 20px; }
.qdoc-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.qdoc-top small { display: block; font-size: 12px; color: #6b7280; }
.qdoc-top b { display: block; font-size: 17px; }
.qdoc-title { font-size: 22px; font-weight: 700; color: #c9ced8; letter-spacing: .06em; }
.qdoc-meta { display: grid; grid-template-columns: auto 1fr; gap: 0; max-width: 300px; margin-left: auto; font-size: 13px; border: 1px solid #e1e5ec; }
.qdoc-meta span, .qdoc-meta b { padding: 5px 8px; border-bottom: 1px solid #e1e5ec; }
.qdoc-meta span { background: #f2f4f8; font-weight: 700; }
.qdoc-meta b { text-align: right; font-weight: 400; }
.qdoc-lines, .qdoc-sum { width: 100%; border-collapse: collapse; font-size: 14px; }
.qdoc-lines { margin: 16px 0; border: 1px solid #e1e5ec; }
.qdoc-lines th { background: #f2f4f8; text-align: left; padding: 7px 8px; font-size: 13px; }
.qdoc-lines td { padding: 9px 8px; vertical-align: top; }
.qdoc-lines .num, .qdoc-sum .num { text-align: right; font-variant-numeric: tabular-nums; }
.qdoc-foot { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.qdoc-sum { max-width: 260px; border: 1px solid #e1e5ec; }
.qdoc-sum td { padding: 6px 8px; border-bottom: 1px solid #e1e5ec; }
.qdoc-sum td:first-child { background: #f2f4f8; text-align: right; }
.qdoc-sum tr.bal td { font-weight: 700; }
.qstamp { flex: 0 0 auto; border: 2px solid; padding: 4px 12px; text-align: center; font-size: 26px; font-weight: 800; line-height: 1.1; transform: rotate(-4deg); }
.qstamp small { display: block; font-size: 11px; letter-spacing: .08em; }
.qstamp.paid { color: #2e9d3a; }
.qstamp.part { color: #c77800; font-size: 20px; }
.qstamp.unpaid { color: #d0312d; }
.qpay { border-top: 1px solid #eef1f5; margin-top: 12px; padding-top: 6px; }
form.inline { display: inline; }
.btn.link.small { padding: 0 0 0 8px; font-size: 12px; }
.qt .ck { width: 1%; text-align: center; }
.qt .ck input, .qt th.ck input { width: 17px; height: 17px; accent-color: #4a84f5; }
.qt td.st small { display: block; margin-top: 3px; }
.qbulk { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid #e1e5ec; border-bottom: 0; padding: 8px 10px; font-size: 13px; }
.qbulk label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: #4b5565; }
.qbulk input, .qbulk select { margin: 0; padding: 5px 8px; font-size: 13px; width: auto; display: inline-block; }
.qbulk .qbtn { border: 0; cursor: pointer; font: inherit; font-weight: 600; background: #2e9d3a; }
.qbulk .qbtn:disabled { opacity: .45; cursor: default; }
.wide form.d-only { display: block; }
body .pay-seg input:checked + span { background: #dbe7fd; border-color: #4a84f5; color: #1d4ea8; }
body .pay-seg span { border-color: #d5dbe5; }
body .btn.link { background: none; color: #2f66d0; }
body .btn.ok { background: #2e9d3a; color: #fff; }
body label { color: #4b5565; }
body label.check { color: #2b2f36; }
/* Receipt Hub */
.qbadge { display: inline-block; background: #d0312d; color: #fff; border-radius: 9px; padding: 0 7px; font-size: 12px; margin-left: 4px; }
.rthumb { width: 44px; height: 56px; object-fit: cover; border-radius: 4px; border: 1px solid #e1e5ec; display: block; background: #fff; }
.rthumb.pdf { display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #d0312d; }
.row .when .rthumb { margin: 0 auto; }
.rmore { margin: 10px 0 0; }
.rmore summary { cursor: pointer; font-size: 14px; color: #2f66d0; }
.qt tr.rnew td { background: #eef9ef; }
.rgrid { display: grid; gap: 12px; }
.rview img { display: block; width: 100%; height: auto; border-radius: 4px; }
.rpdf { width: 100%; height: 70vh; border: 0; }
@media (min-width: 900px) { .rgrid { grid-template-columns: 3fr 2fr; align-items: start; } .rview { position: sticky; top: 64px; } }
.rview img { max-height: 80vh; object-fit: contain; background: #f7f8fa; }
/* Banka satiri: "What type of transaction is this?" */
.qcenter { margin: 0 auto; }
.qline-amt { font-size: 26px; font-weight: 700; margin: 4px 0; font-variant-numeric: tabular-nums; }
.qline-amt small { font-size: 13px; font-weight: 400; color: #6b7280; }
.qline-desc { font-size: 16px; margin: 4px 0; }
.qtypes h3, .qbest h3 { margin-bottom: 6px; }
.qtypes a { display: flex; align-items: center; gap: 14px; padding: 12px 6px; border-bottom: 1px solid #eef1f5; text-decoration: none; font-size: 16px; }
.qtypes a:last-child { border-bottom: 0; }
.qtypes a:hover { background: #f6f9ff; }
.qtypes a span { flex: 0 0 26px; text-align: center; font-size: 18px; color: #2f66d0; }
.qbest { border-left: 4px solid #2e9d3a; }
.qback { margin: 0 0 10px; font-size: 14px; }
.qnomatch { background: #fde4e6; border-left: 4px solid #d0312d; padding: 10px 12px; font-size: 14px; color: #6b1f24; margin: 10px 0; }
.qrange { margin: 6px 0 4px; }
.qrange label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; }
.qrange select { width: auto; display: inline-block; margin: 0; padding: 5px 8px; font-size: 13px; }
.qrcpt { border-top: 1px solid #eef1f5; padding: 8px 0; }
.qrcpt summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.qrcpt summary::-webkit-details-marker { display: none; }
.qrcpt summary small { display: block; }
.qrcpt form { margin-top: 8px; }
.inv-svcs { max-height: 340px; overflow-y: auto; border: 1px solid #e1e5ec; border-radius: 6px; padding: 0 10px 8px; }
.inv-svcs .svc-group h4 { color: #2f66d0; margin-top: 10px; }
.inv-svcs label.check { margin: 4px 0; }
.inv-svcs label.check span { flex: 1; }
.inv-sum { background: #f2f6fd; border-radius: 6px; padding: 8px 10px; margin: 8px 0; }
body label.check input { accent-color: #4a84f5; }
body label.check small { color: #6b7280; }
.inv-rows { display: grid; gap: 8px; margin: 6px 0; }
.inv-row { display: grid; grid-template-columns: 1fr 60px 1fr 30px; gap: 6px; align-items: center; padding: 8px; border: 1px solid #e1e5ec; border-radius: 6px; background: #fbfcfe; }
.inv-row select, .inv-row [name="line_desc[]"] { grid-column: 1 / -1; margin: 0; }
.inv-row select[data-vat] { grid-column: auto; padding-left: 6px; padding-right: 4px; }
.inv-row input { margin: 0; }
.inv-row .inv-net { text-align: right; font-variant-numeric: tabular-nums; font-size: 14px; color: #3c4250; }
.inv-vat .inv-row { grid-template-columns: 1fr 74px 52px 1fr 30px; }
.inv-del { border: 0; background: none; color: #d0312d; font-size: 16px; cursor: pointer; padding: 6px; }
.inv-head { display: none; }
@media (min-width: 900px) {
    .inv-head, .inv-row { grid-template-columns: 1.1fr 1.6fr 96px 64px 84px 30px; }
    .inv-head { display: grid; gap: 6px; padding: 8px; background: #4a84f5; color: #fff; font-size: 13px; font-weight: 700; border-radius: 6px 6px 0 0; margin-top: 8px; }
    .inv-head span:nth-child(5) { text-align: right; }
    .inv-head.inv-vat, .inv-vat .inv-row { grid-template-columns: 1.1fr 1.6fr 96px 78px 60px 84px 30px; }
    .inv-head.inv-vat span:nth-child(5) { text-align: left; }
    .inv-head.inv-vat span:nth-child(6) { text-align: right; }
    .inv-vat .inv-row [data-svc], .inv-vat .inv-row [name="line_desc[]"] { grid-column: auto; }
    .inv-head + .inv-rows { margin-top: 0; }
    .inv-row select, .inv-row [name="line_desc[]"] { grid-column: auto; }
}
/* Sales > New invoice */
.qinv-top { display: grid; gap: 12px; }
.qinv-meta label { margin-top: 6px; }
.qinv-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 10px 0; }
.qinv-bottom .inv-sum { flex: 1; margin: 0; }
.qinv-disc { display: flex; align-items: center; gap: 6px; margin: 0; }
.qinv-disc input { width: 70px; margin: 0; }
@media (min-width: 900px) { .qinv-top { grid-template-columns: 1fr 300px; } }
@media (min-width: 900px) { .wide .inv-head.d-only { display: grid; padding: 8px 9px; } }

/* Ekstrede okunamayan satirlar */
.scrollx { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 8px; }
.card.warn h3 { margin-top: 0; }
/* Ekstre listesinde tek dokunuslu ✓ (Faz D) */
.qquick { margin: 0; }
.qquick .btn { margin: 0; white-space: nowrap; }
.qt td small.qhint { color: #1d7a3e; }
.qquick-m { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px 10px 64px; border-bottom: 1px solid #eef1f5; }
.qquick-m small { color: #1d7a3e; font-size: 12px; }
/* Fatura detayi (genis): masaustunde iki sutun, telefonda tek sutun eski sirayla */
.qgrid { display: flex; flex-direction: column; }
.qgrid .qmain, .qgrid .qside { display: contents; }
.qgrid .o1 { order: 1; } .qgrid .o2 { order: 2; } .qgrid .o3 { order: 3; } .qgrid .o4 { order: 4; } .qgrid .o5 { order: 5; } .qgrid .o6 { order: 6; }
.qactions .btn { display: block; width: 100%; text-align: center; margin: 0 0 8px; box-sizing: border-box; }
@media (min-width: 900px) {
    .qgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0 18px; align-items: start; }
    .qgrid .qmain, .qgrid .qside { display: block; min-width: 0; }
}
/* Gider detayi (genis): basliksiz bolumler (h2 + kart) .qgrid sirasina girer; duzeltme formu okunur genislikte */
.qgrid section { min-width: 0; }
.wide .qform form { max-width: 640px; }
.qside h2:first-child { margin-top: 0; }
/* Purchases: tarih araligi + "Where the money went" (3 blok; telefonda alt alta) */
.qdates { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 0 0 12px; }
.qdates label { font-size: 13px; margin: 0; }
.qdates input { width: auto; margin: 2px 0 0; }
.qwhere summary { font-weight: 600; }
.qwhere-grid { display: grid; gap: 18px; margin-top: 10px; }
.qwhere h3 { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 2px; font-size: 15px; }
.qwhere h3 b.out { color: #c0392b; }
.qwhere li.on { background: #eef4ff; }
.qwhere li a { text-decoration: none; }
.qwhere .qhint { color: #1d7a3e; }
@media (min-width: 900px) { .qwhere-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; } }

/* Geniş ekran — Money dışındaki liste sayfaları (All bookings, Customers, Vouchers, Campaigns) */
.qt .cid { font-size: 12px; }
.qt .chip { margin-left: 4px; }
.qt td.st .chip { margin-left: 0; }
@media (min-width: 900px) {
    .wide .search { max-width: 520px; }
    .wide .ready-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; }
    .wide .ready-grid .card { margin: 0; }
    .wide .wgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; margin-top: 16px; }
    .wide .wgrid2 > .card { margin: 0; }
    .wide .tpl-grid { grid-template-columns: repeat(4, 1fr); max-width: 900px; }
    .wide .seg { max-width: 420px; }
}
/* Detay sayfalari (randevu, musteri, voucher): telefonda bolumler arasi bosluk eskisi gibi (kartlarin kendi margin'i) */
@media (max-width: 899px) {
    .qgrid.flow { gap: 0; }
    .qgrid.flow section > h2:first-child { margin-top: 10px; }   /* flex: margin birlesmez — 12 (kart) + 10 = eski 22 */
}
.qgrid .o7 { order: 7; }

/* Today (genis): solda talepler / kapatilacaklar / bugun / yarin, sagda randevu ekle + ozet + hatirlatmalar */
@media (min-width: 900px) {
    .qgrid.flow.today-grid .qside > section:first-child .btn, .qgrid.flow.today-grid .o1 > :first-child { margin-top: 0; }
    .today-grid .qside section > h2:first-child { margin-top: 22px; }
}

/* Haftalik takvim (genis): gunler yan yana — 900–1199 px 4 sutun, >=1200 px 7 sutun */
@media (min-width: 900px) {
    .wide .wtools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 4px; }
    .wide .wtools .seg { flex: 0 0 280px; margin: 0; }
    .wide .wtools .week-nav { flex: 1 1 280px; margin: 0; }
    .wide .wtools .two { flex: 0 0 auto; }
    .wide .wtools .two .btn { margin: 0; padding: 10px 18px; white-space: nowrap; }
    .wide .wtools > p { flex-basis: 100%; margin: 0; }
    .wide .wgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 10px; align-items: start; }
    .wide .wday h2.day { flex-direction: column; align-items: flex-start; gap: 0; font-size: 15px; margin: 14px 0 6px; }
    .wide .wday h2.day small { margin-left: 0; font-size: 11px; }
    .wide .wday .card.list { margin: 0; }
    .wide .wday.today .card.list { box-shadow: 0 0 0 2px #4a84f5; }
    .wide .wday .row { flex-direction: column; align-items: stretch; gap: 3px; padding: 9px 10px; }
    .wide .wday .row .when { flex: none; text-align: left; display: flex; align-items: baseline; gap: 4px; }
    .wide .wday .row .when b { display: inline; font-size: 15px; }
    .wide .wday .row .when small { display: inline; }
    .wide .wday .row .when small::before { content: "– "; }
    .wide .wday .row.block .when small::before { content: none; }
    .wide .wday .row .what small { white-space: normal; }
    .wide .wday .row .chip { margin: 2px 2px 0 0; }
    .wide .wday .row form .btn { width: 100%; }
    .wide .wday .empty { padding: 14px 8px; font-size: 14px; }
}
@media (min-width: 1200px) { .wide .wgrid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
/* Today telefonda: flex'te margin birlesmedigi icin eski bosluklar elle (tarih p 16 + 6 = 22, kart 12 + 6 = 18, kart 12 + 0 = 12) */
@media (max-width: 899px) {
    .qgrid.flow.today-grid .o1 > h2:first-child { margin-top: 6px; }
    .qgrid.flow.today-grid .o5 > .stats:first-child { margin-top: 6px; }
    .qgrid.flow.today-grid .o6 > .btn:first-child { margin-top: 0; }
}
/* Settings (genis): iki esit sutun — solda randevu ayarlari, sagda isletme / hesap */
@media (min-width: 900px) { .qgrid.sgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* Your numbers (genis): ay ozeti 4 kutu; odemeler + son 12 ay yan yana; 3 grafik yan yana. Telefonda sarmalayicilar stilsiz (akis aynen) */
@media (min-width: 900px) {
    .wide .metrics.m4 { grid-template-columns: repeat(4, 1fr); }
    .wide .metrics.m3 { grid-template-columns: repeat(3, 1fr); }
    .wide .scols2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; align-items: start; }
    .wide .scols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; align-items: start; }
}

/* Takvim (Week): ayni gundeki randevular sirayla beyaz / acik gri (birbirine girmesin), teknisyenin bloklari kirmizi */
.wday a.row:nth-of-type(even) { background: #eef1f6; }
.wday .row.block { background: #fde4e6; box-shadow: inset 4px 0 0 #d0312d; }
.wday .row.block .when, .wday .row.block .when b, .wday .row.block .what b { color: #a1202d; }
.wday .row.block .btn { background: #fff; color: #a1202d; }
/* Takvim: randevu durumu soldaki seritle — talep turuncu, oneri bekliyor mor, onayli mavi, tamamlandi gri, gelmedi koyu gri */
.wday a.row { box-shadow: inset 4px 0 0 transparent; }
.wday a.row.st-pending-row { box-shadow: inset 4px 0 0 #f0a020; }
.wday a.row.st-offered-row { box-shadow: inset 4px 0 0 #8b6fd6; }
.wday a.row.st-confirmed-row { box-shadow: inset 4px 0 0 #4a84f5; }
.wday a.row.st-completed-row { box-shadow: inset 4px 0 0 #c9ced8; }
.wday a.row.st-noshow-row { box-shadow: inset 4px 0 0 #4b5565; }
.pager.month-nav { justify-content: flex-start; margin: 0 0 10px; }
.pager.month-nav span { min-width: 120px; text-align: center; font-weight: 600; color: #1f2937; }
.pay-edit { margin: -2px 0 10px; }
.pay-edit summary { font-size: 13px; color: #4a84f5; cursor: pointer; }
.svc-sum { position: sticky; bottom: 0; margin: 8px 0 12px; padding: 10px 12px; background: #eef4ff; border: 1px solid #c9dafc; border-radius: 6px; color: #2b2f36; font-size: 15px; z-index: 2; }
.wide form.d-only[hidden] { display: none; }
.st-invoiced { background: #dff3e6; color: #1d6b3a; }
.paid-on { display: block; color: #6b7280; font-size: 12px; }
.paid-off { color: #c2410c; font-weight: 600; }
.filters .fsep { flex: 0 0 1px; align-self: stretch; margin: 4px 6px; background: #d5dbe5; }
/* Fis formlarinda surukle-birak (sadece fareli ekranlar) */
.drop-hint { display: none; margin: 4px 0 8px; font-size: 13px; color: #6b7280; }
@media (hover: hover) and (pointer: fine) { .drop-hint { display: block; } }
form[data-photo-submit].drop-on { outline: 2px dashed #4a84f5; outline-offset: 6px; border-radius: 8px; background: #f0f5ff; }

/* OpensForYou: giris / isletme secimi + muhasebecinin hesap satiri */
.login-card { max-width: 380px; margin: 8vh auto 0; text-align: left; padding: 22px; }
.login-card h1 { font-size: 24px; margin: 0 0 14px; }
.login-brand { font-weight: 700; color: #2f66d0; letter-spacing: .01em; margin: 0 0 6px; }
.login-card label { display: block; margin-bottom: 12px; }
.switch-row { margin-bottom: 8px; }
.switch-row .btn { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; text-align: left; }
.whoami { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 26px 0 0; padding-top: 14px; border-top: 1px solid #e1e5ec; font-size: 13px; color: #6b7280; }
.whoami span { margin-right: auto; }
.money-note { margin: 26px 0 0; font-size: 12.5px; color: #6b7280; }
.whoami + .money-note { margin-top: 10px; }

/* Kayit (/signup), email kodu, kurulum sihirbazi */
.login-brand a { color: inherit; text-decoration: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-err { display: block; color: #8e2a1f; font-size: 13px; margin-top: 4px; }
.slug-row { display: flex; align-items: center; border: 1px solid #d5dbe5; border-radius: 9px; background: #fff; overflow: hidden; margin-top: 4px; }
.slug-row .slug-host { padding: 0 2px 0 10px; color: #6b7280; font-size: 14px; white-space: nowrap; }
.slug-row input[type=text] { border: 0; margin: 0; padding-left: 2px; min-width: 0; flex: 1; }
.slug-msg { display: block; min-height: 18px; margin-top: 4px; color: #6b7280; }
.slug-msg.ok { color: #1d6b3a; }
.slug-msg.bad { color: #8e2a1f; }
.cf-turnstile { margin: 4px 0 12px; }
.setup-card { max-width: 640px; }
.setup-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 16px; font-size: 13px; color: #6b7280; flex-wrap: wrap; }
.setup-steps li { padding: 3px 10px; border-radius: 99px; background: #eef1f6; }
.setup-steps li.on { background: #4a84f5; color: #fff; }
.setup-steps li.done { background: #dff3e6; color: #1d6b3a; }
.setup-card fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.setup-card legend { font-weight: 600; margin-bottom: 6px; }
.setup-card .note { background: #fff7e6; color: #7a4b00; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.setup-svc { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.setup-svc th { text-align: left; font-size: 12px; color: #6b7280; font-weight: 600; padding: 0 4px 4px; }
.setup-svc td { padding: 3px 4px; vertical-align: middle; }
.setup-svc input { margin: 0; }
.setup-svc .n { width: 76px; }
.setup-svc .del { text-align: center; }
.setup-svc tr.new td { background: #f6f8fc; }
@media (max-width: 560px) { .setup-svc .cat { display: none; } .setup-svc .n { width: 60px; } }
.setup-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; }
.live-qr { display: block; width: 220px; max-width: 100%; height: auto; margin: 12px auto; background: #fff; }
/* Muhasebeci erisimi */
.acct-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 10px 0; border-top: 1px solid #eef1f5; }
.acct-row p { margin: 0 auto 0 0; }
.audit-list { list-style: none; margin: 0; padding: 0; }
.audit-list li { padding: 7px 0; border-top: 1px solid #eef1f5; line-height: 1.4; }
.audit-list li > .muted:first-child { display: block; }
/* Iki adimli giris */
.totp-key { display: inline-block; margin-top: 4px; letter-spacing: .08em; font-size: 15px; word-break: break-all; }
.recovery-codes { columns: 2; list-style: none; padding: 12px 16px; margin: 12px 0; background: #f6f8fc; border-radius: 10px; font-size: 17px; }
.recovery-codes li { padding: 3px 0; }
.narrow-card { max-width: 520px; }
@media print { .top, .tabs, .btn, .whoami, .money-note { display: none !important; } }

/* Tema: marka rengi + logo (Settings > Your business) */
input[type=color].swatch { display: block; width: 72px; height: 40px; padding: 2px; margin-top: 5px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; cursor: pointer; }
.logo-preview { display: block; max-height: 80px; max-width: 240px; height: auto; border: 1px solid #e3e7ef; border-radius: 8px; padding: 6px; background: #fff; }

/* Masaustu (>= 900px): solda menu, beyaz baslik; telefonda alttaki sekme cubugu aynen kalir.
   body.nav = menu var (muhasebecinin tek sekmesi varsa menu yok, eski gorunum). */
/* Demo panel seridi (salt okunur ornek isletme) */
.demo-bar { margin: 0; padding: 9px 16px; background: #10224a; color: #fff; font-size: 14.5px; line-height: 1.4; text-align: center; }
.demo-bar a { color: #ffd45c; font-weight: 600; white-space: nowrap; }
/* Destek oturumu (SA-07): staff isletmenin panelinde — her sayfanin ustunde, Leave ile */
.support-mode-bar { margin: 0; padding: 8px 16px; background: #2b2f36; color: #fff; font-size: 14.5px; line-height: 1.4;
    display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: center; text-align: center; }
.support-mode-bar.full { background: #9a3412; }
.support-mode-bar .btn { background: #fff; color: #2b2f36; border-color: #fff; }
.side-brand, .side-out { display: none; }
@media (min-width: 900px) {
    /* Sign out: menunun en altinda (form + buton, sekme linkleri gibi gorunur) */
    /* sticky: Company settings alt listesi acikken menu kayar, Sign out yine en altta gorunur */
    body.nav .tabs .side-out { display: block; margin: auto -12px -16px; padding: 10px 12px 14px; border-top: 1px solid #e3e7ef; position: sticky; bottom: -16px; background: #fff; }
    body.nav .tabs .side-out button {
        width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 9px 12px; border: 0; border-radius: 8px;
        background: none; font: inherit; font-size: 15px; color: #344054; cursor: pointer;
    }
    body.nav .tabs .side-out button span { display: inline-block; width: 24px; font-size: 18px; text-align: center; }
    body.nav .tabs .side-out button:hover { background: #f2f4f8; }
    body.nav .tabs .side-out button:focus-visible { outline: 2px solid #4a84f5; outline-offset: -2px; }
    body.nav { padding: 0 0 0 232px; }
    body.nav .tabs {
        top: 0; right: auto; width: 232px; flex-direction: column; gap: 2px; overflow-y: auto;
        border-top: 0; border-right: 1px solid #e3e7ef; padding: 0 12px 16px;
    }
    body.nav .tabs a {
        flex: none; display: flex; align-items: center; gap: 12px; text-align: left; white-space: nowrap;
        padding: 9px 12px; border-radius: 8px; font-size: 15px; color: #344054;
    }
    body.nav .tabs a span { display: inline-block; width: 24px; font-size: 18px; text-align: center; }
    body.nav .tabs a:hover { background: #f2f4f8; }
    body.nav .tabs a.on { background: #e8effd; color: #1d4ea8; font-weight: 600; }
    body.nav .tabs a:focus-visible { outline: 2px solid #4a84f5; outline-offset: -2px; }
    body.nav .tabs a.side-brand {
        display: flex; gap: 10px; margin: 0 -12px 12px; padding: 16px 20px; border-radius: 0;
        border-bottom: 1px solid #e3e7ef; font-size: 16px; color: #1d2433; white-space: normal;
    }
    body.nav .tabs a.side-brand:hover { background: none; }
    .side-brand i {
        flex: 0 0 34px; height: 34px; border-radius: 9px; background: #4a84f5; color: #fff;
        font-style: normal; font-weight: 700; display: flex; align-items: center; justify-content: center;
    }
    .side-brand img { max-width: 72px; max-height: 34px; width: auto; height: auto; border-radius: 4px; }
    .side-brand b { line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }

    body.nav .top { background: #fff; color: #1d2433; border-bottom: 1px solid #e3e7ef; padding: 15px 28px; }
    body.nav .top .brand { display: none; }
    body.nav .top .title { font-size: 18px; font-weight: 700; opacity: 1; }
    body.nav .mnav { background: #fff; border-top: 0; border-bottom: 1px solid #e3e7ef; padding: 0 12px; }
    body.nav .mnav a { color: #475467 !important; border-right: 0; padding: 12px 16px; }
    body.nav .mnav a:hover { color: #1d2433 !important; }
    body.nav .mnav a.on { background: none; color: #1d4ea8 !important; box-shadow: inset 0 -2px 0 #2f66d0; }
    body.nav main { padding: 20px 28px 32px; }
    body.nav main.wide { max-width: 1280px; padding: 20px 28px 32px; }

    .login-card { max-width: 560px; }
}
/* Today: talepler ve Bugun / Yarin genis ekranda yan yana */
@media (min-width: 1200px) {
    .wide .req-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
    .wide .req-grid .card { margin: 0; }
    .wide .req-grid + h2 { margin-top: 22px; }
    .wide .tdays { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; align-items: start; }
}
@media (max-width: 899px) { .qgrid.flow .tdays > div:first-child > h2:first-child { margin-top: 10px; } }

/* Settings > Your page (vitrin) */
#page label.check span small { display: block; margin: 2px 0 0; white-space: normal; }
#page h3 { margin: 26px 0 6px; padding-top: 18px; border-top: 1px solid #e3e7ef; }
.page-todo { background: #eef4ff; border: 1px solid #c9dafc; color: #1d3f86; border-radius: 8px; padding: 9px 12px; font-size: 14px; }
.banner-preview { display: block; width: 100%; max-width: 560px; aspect-ratio: 16 / 5; object-fit: cover; border-radius: 8px; border: 1px solid #e3e7ef; }
.gal-edit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 8px 0 4px; }
.gal-item { background: #f7f8fa; border: 1px solid #e3e7ef; border-radius: 8px; padding: 6px; }
.gal-item img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.gal-item input[type=text] { margin-top: 6px; padding: 7px 8px; font-size: 14px; }
.gal-btns { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.gal-btns .btn.small { padding: 5px 9px; }
.gal-btns .btn:disabled { opacity: .35; }
@media (min-width: 900px) { .gal-edit { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Settings > Emails to customers + mail duzenleme (view_email.php) */
.tag { display: inline-block; font-size: 12px; font-weight: 600; color: #1d3f86; background: #eef4ff; border: 1px solid #c9dafc; border-radius: 999px; padding: 1px 8px; vertical-align: 2px; }
#emails h3 { margin: 18px 0 4px; font-size: 14px; color: #6b7280; }
.mt-list { list-style: none; margin: 0; padding: 0; border: 1px solid #e3e7ef; border-radius: 8px; }
.mt-list li + li { border-top: 1px solid #e3e7ef; }
.mt-list a { display: block; padding: 10px 12px; color: #2b2f36; text-decoration: none; }
.mt-list a:hover { background: #f7f9fc; }
.mt-list small { display: block; margin-top: 2px; font-size: 13px; }
.mt-grid { display: grid; gap: 14px; align-items: start; }
.mt-grid .card { margin: 0; }
.mt-edit h2, .mt-prev h2 { margin-top: 0; }
.mt-form textarea { line-height: 1.45; resize: vertical; overflow: hidden; }
.mt-vars ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 3px; }
.mt-vars code { background: #f1f4f9; border-radius: 4px; padding: 1px 5px; font-size: 13px; }
.mt-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.mt-tabs a { padding: 5px 11px; border: 1px solid #d6dde9; border-radius: 999px; color: #2b2f36; text-decoration: none; }
.mt-tabs a.on { background: #4a84f5; border-color: #4a84f5; color: #fff; }
.mt-subj { margin: 0 0 8px; padding: 8px 10px; background: #f7f8fa; border-radius: 8px; overflow-wrap: anywhere; }
.mt-frame { display: block; width: 100%; height: 760px; border: 1px solid #e3e7ef; border-radius: 8px; background: #fff; }
@media (min-width: 900px) {
    .mt-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
    .mt-prev { position: sticky; top: 76px; }
}

/* Giris sayfasinin alti: ana sayfaya donus + yasal sayfalar */
.login-foot { max-width: 380px; margin: 14px auto 30px; text-align: center; color: #6b7280; }
.login-foot a { color: #2f66d0; }

/* Settings > How emails are sent: secilen secenegin alanlari (digerleri gizli) */
.mail-fields { border: 0; margin: 0 0 12px 30px; padding: 0; min-width: 0; }
.mail-fields[hidden] { display: none; }
#mail .warn { margin: 0 0 12px; }
label.check.opt { align-items: flex-start; }
label.check.opt span { flex: 1; min-width: 0; }
label.check.opt small { display: block; margin: 2px 0 0; white-space: normal; }

/* ─── Company settings: bolum sayfalari (view_settings.php) ───
   Telefon: s yoksa bolum listesi (.set-index), bolum sayfasinda geri linki. Masaustu: sol menude alt liste (.subnav),
   ortada form; >= 1200px sagda aciklama sutunu (.set-help, sonraki adim — bossa yer kaplamaz). */
.tabs a { white-space: normal; line-height: 1.15; }
.subnav { display: none; }
.set-index h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #6b7280; margin: 18px 4px 6px; }
.set-index h3:first-child { margin-top: 4px; }
.set-index ul { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.set-index li + li { border-top: 1px solid #eef1f5; }
.set-index a { display: flex; align-items: center; gap: 12px; padding: 13px 14px; color: #1d2433; text-decoration: none; font-size: 16px; }
.set-index a span { width: 24px; text-align: center; font-size: 18px; }
.set-index a b { flex: 1; font-weight: 500; }
.set-index a i { font-style: normal; color: #98a2b3; font-size: 20px; }
.set-index a:active { background: #f2f4f8; }
.set-first { display: none; }
.set-back { margin: 0 0 4px; font-size: 15px; }
.set-back a { text-decoration: none; }
.set-title { font-size: 21px; margin: 6px 0 12px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.set-title small { font-size: 14px; font-weight: 400; }
.set-help:empty { display: none; }
@media (min-width: 900px) {
    .set-index, .set-back { display: none; }
    .set-first { display: block; }
    .set-title { margin-top: 0; }
    body.nav .tabs .subnav { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 6px 36px; padding-left: 10px; border-left: 2px solid #e3e7ef; }
    body.nav .tabs .subnav p { margin: 10px 0 2px 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #98a2b3; }
    body.nav .tabs .subnav p:first-child { margin-top: 4px; }
    body.nav .tabs .subnav a { padding: 6px 10px; font-size: 14px; color: #475467; border-radius: 6px; white-space: normal; }
    body.nav .tabs .subnav a.on { background: #e8effd; color: #1d4ea8; font-weight: 600; }
}
/* Aciklama (settings_help.php): telefonda / dar ekranda formun ustunde, genis ekranda sagda yapiskan sutun */
.set-grid { display: flex; flex-direction: column; }
.set-grid .set-help { order: -1; }
.set-help .card { background: #f4f7fd; border: 1px solid #d9e3f5; box-shadow: none; }
.set-help h3 { font-size: 15px; margin: 0 0 8px; color: #1d2433; }
.set-help ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.55; color: #475467; }
.set-help li + li { margin-top: 6px; }
@media (min-width: 1100px) {
    .set-grid { display: grid; grid-template-columns: minmax(0, 760px) minmax(260px, 340px); gap: 28px; align-items: start; }
    .set-grid .set-help { order: 0; position: sticky; top: 20px; }
    .set-grid .set-help .card { margin-top: 0; }
}

/* Servis duzenleyicisi (admin/services_ui.php): grup kartlari, servisler alt alta; telefonda tek sutun */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.svc-cat > summary b { font-size: 16px; }
.svc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 6px 0 4px; }
.svc-tools label.check { margin: 0; }
.svc-tools .svc-btns { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.svc-move { display: flex; align-items: center; gap: 6px; font-size: 14px; margin: 0; }
.svc-move select { width: auto; margin: 0; padding: 4px 8px; }
.svc-edit { border: 1px solid #e3e7ef; border-radius: 10px; padding: 10px 12px 8px; margin: 12px 0; min-width: 0; background: #fcfcfd; }
.svc-edit.off { opacity: .65; }
.svc-edit.new { border-style: dashed; background: #fff; }
.svc-edit.new legend { font-size: 14px; font-weight: 600; padding: 0 4px; }
.svc-edit label { margin-bottom: 8px; }
.svc-edit textarea { min-height: 52px; }
.svc-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 10px; }
.svc-nums label { min-width: 0; }

/* Resim yukleme kurallari (Company settings > Your page) */
.img-rules { margin: 4px 0 8px; padding: 6px 10px; border-radius: 8px; background: #f2f4f8; color: #475467; }
.upload-msg.err { color: #8e2a1f; }

/* Company settings > Booking on your website */
.embed-code { width: 100%; font-size: 12px; line-height: 1.45; background: #f8f9fb; resize: vertical; }
.embed-preview { margin: 6px 0 10px; }
.hours-copy { margin: 10px 0 4px; }

/* hidden ozniteligi her zaman gizler (input'lara display veren kurallar ezmesin; or. sifre yoneticisi icin gizli kullanici adi) */
[hidden] { display: none !important; }
.table-wrap { overflow-x: auto; }

/* Help & support (SA-04) */
.support-bar { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: #e8effd; color: #1d4ea8; }
.support-bar a { font-weight: 600; }
@media (max-width: 899px) { .tabs a.tab-desk { display: none; } }
.tabs a .count { font-size: 11px; padding: 0 6px; margin-left: 4px; vertical-align: 1px; }
.tk-list { list-style: none; margin: 0; padding: 0; }
.tk-list li { border-top: 1px solid #eef0f4; }
.tk-list li:first-child { border-top: none; }
.tk-list a { display: block; padding: 10px 2px; color: inherit; text-decoration: none; }
.tk-list a:hover b { color: #2f66d0; }
.tk-list b { margin-right: 6px; overflow-wrap: anywhere; }
.tk-list small { display: block; color: #6b7280; margin-top: 2px; }
.tk-list .count { font-size: 12px; }
.tk-st { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 10px; padding: 1px 8px; vertical-align: middle; }
.tk-st.tk-open { background: #fff4d6; color: #7a5a00; }
.tk-st.tk-answered { background: #e3edfd; color: #1d4fa8; }
.tk-st.tk-closed { background: #eceef2; color: #4b5563; }
.tk-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.tk-thread { display: flex; flex-direction: column; gap: 10px; }
.tk-msg { max-width: 640px; padding: 10px 14px; border-radius: 12px; background: #f2f4f8; overflow-wrap: anywhere; }
.tk-msg.me { align-self: flex-end; background: #e8effd; }
.tk-msg.them { align-self: flex-start; background: #f7f7f2; border: 1px solid #ecebdf; }
.tk-who { margin: 0 0 4px; }
.tk-body { white-space: normal; }
.tk-sys { margin: 0; text-align: center; font-size: 13px; color: #6b7280; }
.tk-form textarea { width: 100%; box-sizing: border-box; }
.tk-close { margin-top: 10px; }
.tk-form label.check { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; }
.tk-form label.check input { width: auto; margin-top: 3px; }
.setup-help { text-align: center; margin: 18px 0 0; }

/* New appointment, "Both" isletme (HV-07): adres yalniz "At the customer's" secilince */
.place-form:has(.place-pick) [data-visit-f] { display: none; }
.place-form:has(.place-pick input[value="customer"]:checked) [data-visit-f] { display: block; }
.place-pick { display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* Genis ekran: giris / kayit / kod / davet / kurulum sihirbazi — solda mavi panel (includes/auth_side.php), sagda form.
   Telefonda bugunku gibi tek sutun, panel gizli. */
.auth-side { display: none; }
.setup-cols > div > fieldset:last-child { margin-bottom: 16px; }
@media (min-width: 900px) {
    body.login { margin-top: 0; }
    main.auth { max-width: none; margin: 0; padding: 0 32px 40px calc(min(42vw, 620px) + 32px); min-height: 100vh; }
    .auth-side { display: flex; position: fixed; left: 0; top: 0; bottom: 0; width: min(42vw, 620px); overflow-y: auto;
                 background: linear-gradient(160deg, #4a84f5 0%, #2f66d0 100%); color: #fff; text-align: left; }
    .auth-side-in { margin: auto 0; padding: 48px clamp(32px, 5vw, 72px); max-width: 520px; }
    .auth-side a { color: #fff; }
    .auth-brand { font-weight: 800; font-size: 20px; margin: 0 0 36px; letter-spacing: .01em; }
    .auth-brand a { text-decoration: none; }
    .auth-brand span { font-weight: 600; font-size: 13px; background: rgba(255,255,255,.2); border-radius: 99px; padding: 2px 9px; margin-left: 6px; vertical-align: 2px; }
    .auth-side h2 { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.15; margin: 0 0 18px; font-weight: 800; }
    .auth-side p { font-size: 17px; line-height: 1.5; opacity: .95; margin: 0 0 12px; }
    .auth-side .auth-note { font-size: 14px; opacity: .85; margin-top: 26px; }
    main.auth .login-card { max-width: 460px; width: 100%; margin: 12vh auto 0; box-shadow: none; border: 1px solid #e3e7ef; padding: 30px 32px; }
    main.auth > p, main.auth .login-foot { max-width: 460px; margin-left: auto; margin-right: auto; }
    main.auth .login-card > .login-brand { display: none; }
    /* Kurulum sihirbazi: adimlar solda, form genis; 1. ve 4. adim iki sutun */
    main.auth.setup .setup-card { max-width: 900px; margin-top: 6vh; }
    main.auth.setup .setup-steps, main.auth.setup .setup-help { display: none; }
    .setup-side-steps { list-style: none; counter-reset: st; padding: 0; margin: 8px 0 0; }
    .setup-side-steps li { counter-increment: st; display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 17px; opacity: .75; }
    .setup-side-steps li::before { content: counter(st); flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
                                   border: 2px solid rgba(255,255,255,.6); font-weight: 700; font-size: 14px; }
    .setup-side-steps li.on { opacity: 1; font-weight: 700; }
    .setup-side-steps li.on::before { background: #fff; color: #2f66d0; border-color: #fff; }
    .setup-side-steps li.done { opacity: .95; }
    .setup-side-steps li.done::before { content: "✓"; background: rgba(255,255,255,.2); border-color: transparent; }
    .setup-side-steps a { text-decoration: none; }
    .setup-side-steps a:hover { text-decoration: underline; }
    .setup-step-note { margin: 18px 0 0; padding: 16px 18px; background: rgba(255,255,255,.12); border-radius: 12px; font-size: 16px; line-height: 1.5; }
    .setup-step-note p { font-size: inherit; margin: 0 0 8px; }
    .setup-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 40px; }
    .setup-cols .trade-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Sihirbaz: secenek aciklamalari alt satirda, sarar (telefonda tasmasin) */
.setup-card label.check small { white-space: normal; margin-left: 0; }
/* Servis duzenleyicisi: grup altindaki her servis ayri, belirgin bir kutu (acik mavi zemin, sol mavi serit, beyaz alanlar) */
.svc-edit { background: #eef3fb; border: 1px solid #c9d6ea; border-left: 4px solid #4a84f5; border-radius: 10px; padding: 12px 14px 8px; margin: 16px 0; }
.svc-edit input[type=text], .svc-edit input[type=number], .svc-edit textarea, .svc-edit select { background: #fff; }
.svc-edit > label:first-of-type input { font-weight: 700; font-size: 16px; }
.svc-edit.off { opacity: 1; background: #f3f4f6; border-left-color: #9ca3af; }
.svc-edit.off > label:first-of-type input { color: #6b7280; }
.svc-edit.new { background: #fff; border: 1px dashed #9db8e8; border-left: 4px dashed #9db8e8; }
.svc-edit .btn { background: #fff; border: 1px solid #c9d6ea; }
/* Yardim / ticket genis ekranda: soru listesi | yeni soru; konusma | yanit (wgrid2 cols2) */
.wgrid2:not(.cols2) { display: block; }
@media (min-width: 900px) {
    .wide .wgrid2:not(.cols2) { display: block; max-width: 760px; }
    .wide .wgrid2.cols2.tk-cols { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}
.note.ofy-limit { background: #fff7e6; color: #7a4b00; padding: 10px 12px; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.note.ofy-limit a { color: #7a4b00; font-weight: 600; }
.two.is-off label { color: #98a2b3; }
.two.is-off input:disabled { background: #f3f4f6; color: #98a2b3; cursor: not-allowed; }
