/* 1010 Panel — indigo kenar çubuğu, geniş içerik alanı, sade bileşenler. Derleme yok; tek dosya. */
:root {
    --rail: #12224d;
    --rail-ink: #c9d3ee;
    --ground: #f2f4f9;
    --surface: #fff;
    --ink: #17203a;
    --muted: #586380;
    --line: #dde2ee;
    --accent: #2450e8;
    --accent-dark: #1b3fc0;
    --accent-soft: #e5ecff;
    --late: #b3202c;
    --late-soft: #fdeaec;
    --won: #0d7a47;
    --won-soft: #e2f4ea;
    --lost: #556079;
    --lost-soft: #e9ecf3;
    --rejected: #c4202e;
    --rejected-dark: #8f1621;
    --cancelled: #12151f;
    --draft: #8a5a00;
    --draft-soft: #fff1cf;
    --bar-positive: #1f9d63;
    --bar-negative: #c4202e;
    --bar-pending: #5b7cfa;
    --radius: 8px;
    --control: 2.5rem;
    --rail-width: 15.5rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--ground); font-variant-numeric: tabular-nums; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
/* Akan metin içindeki bağlantılar yalnızca renge bağlı kalmasın: çizgili */
.flash a, .drop-note a, .hint a, .plan-empty a, .notes a, p.note a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
/* Tablolarda ilk sütundaki varlık adı (müşteri, firma, abonelik): çizgisiz, biraz kalın */
.table-wrap td:first-child > a:not(.btn):not(.icon-btn):not(.file-link) { font-weight: 500; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 1.6rem; line-height: 1.25; font-weight: 600; margin-bottom: 0; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; line-height: 1.3; font-weight: 600; margin-bottom: 0; }
h3 { font-size: 1rem; font-weight: 600; margin-bottom: .75rem; }
strong, b { font-weight: 600; }
th { font-weight: 500; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon { flex: none; }
.skip-link { position: absolute; left: .5rem; top: -4rem; z-index: 50; padding: .5rem .8rem; background: var(--surface); border-radius: 6px; }
.skip-link:focus { top: .5rem; }

/* ---------- Uygulama kabuğu ---------- */
.shell { display: grid; grid-template-columns: var(--rail-width) minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--rail) var(--rail-width), var(--ground) var(--rail-width)); }
.rail { position: sticky; top: 0; z-index: 30; display: flex; flex-direction: column; height: 100vh; padding: 1.1rem .8rem; overflow-y: auto; background: var(--rail); color: var(--rail-ink); }
.rail-brand { display: flex; align-items: center; gap: .65rem; padding: .25rem .5rem 1.25rem; color: #fff; font-weight: 600; font-size: 1.05rem; text-decoration: none; }
.rail-brand:hover { color: #fff; }
.rail-mark { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 7px; background: var(--accent); color: #fff; font-size: .85rem; font-weight: 600; letter-spacing: .02em; }
.rail-nav { flex: 1; }
.rail-group { margin-bottom: 1.1rem; }
.rail-heading { padding: 0 .6rem .35rem; white-space: nowrap; font-size: .72rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #8e9bc2; }
.rail-soon { margin-left: auto; padding: .05rem .45rem; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #c9d3ee; font-size: .68rem; }
.rail-link { display: flex; align-items: center; gap: .7rem; min-height: 2.5rem; padding: 0 .65rem; border-radius: 7px; color: var(--rail-ink); text-decoration: none; }
.rail-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.rail-link.is-active { background: rgba(255, 255, 255, .13); color: #fff; font-weight: 500; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.rail-link.is-soon { color: #98a4c9; cursor: default; }
.rail-link.is-soon:hover { background: none; color: #98a4c9; }
.rail a:focus-visible, .rail button:focus-visible, .mobilebar button:focus-visible { outline-color: #fff; }
.rail-user { padding: .9rem .6rem .2rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.rail-user-name { color: #fff; font-weight: 500; margin-bottom: .2rem; }
.rail-user-actions { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .875rem; }
.rail-user-actions a, .rail-user-actions button { padding: 0; min-height: 0; border: 0; background: none; color: var(--rail-ink); font: inherit; font-weight: 400; text-decoration: none; cursor: pointer; }
.rail-user-actions a:hover, .rail-user-actions button:hover { color: #fff; background: none; text-decoration: underline; text-underline-offset: 2px; }
.main { min-width: 0; }
.content { max-width: 1480px; margin: 0 auto; padding: 2rem clamp(1rem, 3.2vw, 3rem) 4rem; }
.content-plain { max-width: 30rem; padding-top: 4rem; }
.mobilebar, .rail-backdrop { display: none; }

/* ---------- Başlıklar ---------- */
.page-head, .section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; }
.page-head { margin-bottom: 1.5rem; }
.section-head { margin: 2rem 0 .75rem; }
.page-head .meta { margin: .2rem 0 0; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.back { display: inline-block; margin-bottom: .4rem; color: var(--muted); text-decoration: none; font-size: .9rem; }
.back:hover { color: var(--ink); }

/* ---------- Kartlar, formlar ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.5rem; margin-bottom: 1rem; }
.card > :last-child { margin-bottom: 0; }
.narrow { max-width: 26rem; margin: 0 auto; }
.form { display: grid; gap: 1.1rem; }
.form > h1, .form > h3 { margin: 0; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.1rem; }
label { display: flex; flex-direction: column; gap: .3rem; font-size: .875rem; font-weight: 500; }
label.check { flex-direction: row; align-items: center; gap: .5rem; font-size: 1rem; font-weight: 400; }
.hint { font-weight: 400; font-size: .8rem; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=date], input[type=datetime-local], select, textarea {
    width: 100%; min-height: var(--control); padding: 0 .7rem; border: 1px solid #c3cadb; border-radius: 6px; background: #fff; color: var(--ink); font: inherit; font-weight: 400;
}
textarea { min-height: 7rem; padding: .55rem .7rem; resize: vertical; }
select { padding-right: 1.5rem; }
input::placeholder, textarea::placeholder { color: #747f9b; font-weight: 400; }
input[type=checkbox] { width: 1.05rem; height: 1.05rem; accent-color: var(--accent); }
fieldset { margin: 0; padding: .85rem 1rem 1rem; border: 1px solid var(--line); border-radius: 6px; }
legend { padding: 0 .4rem; font-size: .875rem; font-weight: 500; }
fieldset .options { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .5rem 1rem; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1rem; }
.toolbar label { flex: 1 1 14rem; max-width: 24rem; }
.toolbar label.narrow-field { flex: 0 1 13rem; }
.send-card { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.send-card-text { flex: 1 1 22rem; }
.send-card-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; }
.send-card-controls label { width: 11rem; }

/* ---------- Düğmeler ---------- */
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: var(--control); padding: 0 1rem; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: #fff; font: inherit; font-weight: 500; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap; }
button:hover, .btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
button.secondary, .btn.secondary { background: #fff; color: var(--ink); border-color: #c3cadb; }
button.secondary:hover, .btn.secondary:hover { background: var(--ground); color: var(--ink); }
button.small, .btn.small { min-height: 2rem; padding: 0 .75rem; font-size: .85rem; }
button.danger { background: #fff; border-color: #e3a7ae; color: var(--rejected); }
button.danger:hover { background: var(--late-soft); border-color: var(--rejected); color: var(--rejected-dark); }
button.danger-link { min-height: 0; padding: 0; border: 0; background: none; color: var(--late); font-weight: 400; }
button.danger-link:hover { background: none; text-decoration: underline; color: var(--late); }
.is-disabled { opacity: .45; pointer-events: none; }
form.inline { display: inline; }

/* ---------- Tablolar ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .7rem 1rem; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f8f9fd; }
tbody tr.is-current { background: var(--accent-soft); }
th { font-size: .75rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; background: #f8f9fd; }
td.nowrap, th.nowrap { white-space: nowrap; }
.row-link { text-decoration: none; }
.row-link strong { white-space: nowrap; }
.row-link:hover { text-decoration: underline; }
/* Çok sütunlu listeler (Teklifler): daha dar hücre boşluğu, ilk sütun okunur genişlikte kalır */
.table-dense th, .table-dense td { padding-left: .6rem; padding-right: .6rem; }
.table-dense td:first-child { min-width: 10rem; }
.table-dense th.wrap { white-space: normal; }
td.col-actions, th.col-actions { width: 1%; text-align: right; white-space: nowrap; }
td.empty { padding: 1.5rem 1rem; color: var(--muted); text-align: center; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1rem; margin-top: 1.25rem; }

/* ---------- Rozetler ---------- */
.badge { display: inline-block; padding: .12rem .65rem; border-radius: 999px; background: var(--lost-soft); color: var(--ink); font-size: .8rem; font-weight: 500; line-height: 1.5; white-space: nowrap; }
.badge.open { background: var(--accent-soft); color: var(--accent-dark); }
.badge.won { background: var(--won); color: #fff; }
.badge.rejected { background: var(--rejected); color: #fff; }
.badge.cancelled { background: var(--cancelled); color: #fff; }
.badge.lost { background: var(--late-soft); color: var(--rejected-dark); box-shadow: inset 0 0 0 1px #f0b4bb; }
.badge.prep { background: var(--draft-soft); color: var(--draft); }
.badge.revised { background: #ece7ff; color: #4a35b8; }
.badge.late { background: var(--late-soft); color: var(--late); }

/* ---------- Bilgi listesi, görüşme geçmişi ---------- */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.75rem; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.log { display: grid; gap: .75rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.log-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .95rem 1.2rem; }
.log-head { display: flex; flex-wrap: wrap; gap: .25rem .75rem; margin-bottom: .35rem; color: var(--muted); font-size: .875rem; }
.log-head strong { color: var(--ink); }
.log-who { color: var(--ink); font-weight: 500; }
.log-edit { margin-left: auto; font-size: .85rem; }
.notes { margin: 0; white-space: pre-wrap; }

/* ---------- Ana ekran: dönem seçici ---------- */
.segmented { display: inline-flex; padding: .2rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.segmented a { padding: .3rem .8rem; border-radius: 6px; color: var(--muted); font-size: .875rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.segmented a:hover { color: var(--ink); }
.segmented a[aria-current="true"] { background: var(--accent); color: #fff; font-weight: 500; }

/* ---------- Ana ekran: sonuç bandı ---------- */
.result { display: grid; grid-template-columns: minmax(18rem, 27rem) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: center; }
.result-title { font-size: 1.5rem; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; margin: 0 0 .25rem; text-wrap: balance; }
.result-meta { margin: 0; color: var(--muted); }
.bar { display: flex; gap: 3px; height: 1.1rem; margin-bottom: 1rem; }
.bar > span { min-width: 6px; border-radius: 3px; }
.bar > .is-positive { background: var(--bar-positive); }
.bar > .is-negative { background: var(--bar-negative); }
.bar > .is-pending { background: var(--bar-pending); }
.bar.is-empty > span { flex: 1; background: var(--lost-soft); }
.legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.legend li { display: grid; grid-template-columns: auto 1fr; column-gap: .55rem; align-items: baseline; }
.legend .dot { width: .7rem; height: .7rem; border-radius: 3px; transform: translateY(.05rem); }
.legend .dot.is-positive { background: var(--bar-positive); }
.legend .dot.is-negative { background: var(--bar-negative); }
.legend .dot.is-pending { background: var(--bar-pending); }
.legend-label { color: var(--muted); font-size: .875rem; }
.legend-value { grid-column: 2; font-size: 1.6rem; font-weight: 600; line-height: 1.2; }
.legend-value small { margin-left: .35rem; font-size: .85rem; font-weight: 500; color: var(--muted); }
.definitions { margin: 1.1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.definitions summary { cursor: pointer; font-weight: 500; }
.definitions p { max-width: 75ch; margin: .5rem 0 0; }

/* ---------- Ana ekran: gün planı ---------- */
.plan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: start; margin-top: 1.5rem; }
.plan-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.plan-col.is-today { border-color: #a9bbf5; box-shadow: 0 1px 0 rgba(36, 80, 232, .08), 0 8px 24px -16px rgba(36, 80, 232, .5); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); }
.plan-head h2 { display: flex; align-items: center; gap: .55rem; }
.plan-head h2::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--lost); }
.plan-col.is-late .plan-head h2::before { background: var(--late); }
.plan-col.is-today .plan-head h2::before { background: var(--accent); }
.plan-count { min-width: 1.6rem; padding: .05rem .5rem; border-radius: 999px; background: var(--lost-soft); color: var(--ink); font-size: .8rem; font-weight: 500; text-align: center; }
.plan-col.is-late .plan-count { background: var(--late-soft); color: var(--late); }
.plan-col.is-today .plan-count { background: var(--accent-soft); color: var(--accent-dark); }
.plan-empty { margin: 0; padding: 1.25rem 1.1rem; color: var(--muted); }
.plan-day { margin: 0; padding: .55rem 1.1rem; background: #f8f9fd; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .75rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.plan-list { margin: 0; padding: 0; list-style: none; }
.plan-item { display: grid; grid-template-columns: 1fr auto; gap: .35rem .75rem; align-items: center; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); }
.plan-item:last-child { border-bottom: 0; }
.plan-who { min-width: 0; }
.plan-company { display: block; font-weight: 500; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.plan-company:hover { color: var(--accent-dark); text-decoration: underline; }
.plan-offer { display: block; color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.plan-contact { display: block; margin-top: .15rem; font-size: .875rem; overflow-wrap: anywhere; }
/* Hizmet chip'leri (kutucuk): SM, DP, WT, WB, Tas, Prod, Full */
.svc { --svc-h: 1.75rem; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: var(--svc-h); min-width: var(--svc-h); padding: 0 .6rem; border: 0; border-radius: 6px; font: inherit; font-size: .8rem; font-weight: 500; letter-spacing: .01em; line-height: 1; color: #fff; background: var(--ink); white-space: nowrap; }
.svc.is-square { width: var(--svc-h); padding: 0; }
button.svc { --svc-h: 2.25rem; min-height: 0; cursor: pointer; margin: 0 .3rem .3rem 0; font-size: .9rem; }
.svc-check .svc { --svc-h: 2rem; }
button.svc[aria-expanded="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.svc.is-blue { background: #2450e8; }
.svc.is-violet { background: #6a3fd1; }
.svc.is-teal { background: #0b7f86; }
.svc.is-orange { background: #b45309; }
.svc.is-pink { background: #b3246b; }
.svc.is-green { background: #1f7a4f; }
.svc.is-gold { background: #f2b01e; color: #3a2a00; }
.svc.is-slate { background: #475569; }
.svc.is-indigo { background: #4338ca; }
.svc.is-cyan { background: #0e7490; }
.svc.is-brown { background: #7c4a21; }
.svc.is-lime { background: #5b7a12; }
.svc-row { display: inline-flex; flex-wrap: wrap; gap: .3rem; min-width: 8.6rem; }
.svc-desc { margin-top: .5rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 6px; background: #f8f9fd; }
.svc-check { gap: .5rem; }
.contact-line { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .75rem; }
.contact-name { font-weight: 500; color: var(--ink); }
.plan-contact .contact-name { font-weight: 500; color: var(--muted); }
.plan-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.kind { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .55rem .1rem .4rem; border-radius: 999px; font-size: .78rem; font-weight: 500; background: var(--lost-soft); color: var(--lost); }
.kind.is-call { background: var(--accent-soft); color: var(--accent-dark); }
.kind.is-mail { background: #ece7ff; color: #4a35b8; }
.kind.is-send { background: var(--draft-soft); color: var(--draft); }
.kind .icon { width: .95rem; height: .95rem; }

/* ---------- Bildirimler ---------- */
.flash { margin-bottom: 1.25rem; padding: .75rem 1rem; border-radius: 6px; background: var(--won-soft); color: var(--won); }
.flash.error { background: var(--late-soft); color: var(--late); }
.flash ul { margin: 0; padding-left: 1.1rem; }
.muted { color: var(--muted); }
.mt { margin-top: 1rem; }

/* ---------- Dar ekranlar ---------- */
@media (max-width: 1180px) {
    .result { grid-template-columns: 1fr; }
    .plan { grid-template-columns: 1fr 1fr; }
    .plan-col.is-week { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .shell { display: block; background: none; }
    .rail { position: fixed; inset: 0 auto 0 0; width: min(18rem, 86vw); height: 100%; transform: translateX(-102%); visibility: hidden; transition: transform .2s ease-out, visibility 0s linear .2s; box-shadow: none; }
    body.rail-open .rail { transform: none; visibility: visible; transition-delay: 0s; box-shadow: 0 0 40px rgba(10, 18, 40, .5); }
    body.rail-open { overflow: hidden; }
    .rail-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(10, 18, 40, .45); }
    body.rail-open .rail-backdrop { display: block; }
    .mobilebar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: .75rem; padding: .5rem .75rem; background: var(--rail); color: #fff; }
    .mobilebar-toggle { min-height: 2.5rem; width: 2.5rem; padding: 0; border-color: rgba(255, 255, 255, .25); background: transparent; }
    .mobilebar-toggle:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); }
    .mobilebar-title { font-weight: 600; }
    .content { padding-top: 1.25rem; }
}
@media (max-width: 720px) {
    h1, .result-title { font-size: 1.35rem; }
    .plan { grid-template-columns: 1fr; }
    .plan-col.is-today { order: -1; }
    .legend { grid-template-columns: 1fr; gap: .5rem; }
    .legend li { grid-template-columns: auto auto 1fr; align-items: baseline; }
    .legend-value { grid-column: auto; font-size: 1.2rem; }
    .facts { grid-template-columns: 1fr; gap: .1rem; }
    .facts dd { margin-bottom: .6rem; }
    .toolbar label, .toolbar label.narrow-field { flex: 1 1 100%; max-width: none; }
    .toolbar button, .form-actions button, .send-card-controls button { width: 100%; }
    .send-card-controls, .send-card-controls label { width: 100%; }
    .card { padding: 1.1rem 1rem; }
    th, td { padding: .55rem .65rem; }
    td.nowrap { white-space: normal; }
    .table-stack thead { display: none; }
    .table-stack tr { display: block; padding: .65rem .85rem; border-bottom: 1px solid var(--line); }
    .table-stack tbody tr:last-child { border-bottom: 0; }
    .table-stack td { display: block; padding: .1rem 0; border: 0; white-space: normal; text-align: left; }
    .table-stack td:first-child { font-weight: 500; }
    .table-stack td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 400; }
    .table-stack td.empty { padding: .5rem 0; font-weight: 400; }
    .table-stack td.col-actions { width: auto; }
}
@media (pointer: coarse) { button.small, .btn.small { min-height: 2.5rem; } }
@media (prefers-reduced-motion: reduce) { .rail { transition: none; } }

/* Tutar alanı: biçimli metin kutusu, sağda para birimi */
.money-field { position: relative; display: block; }
.money-field input { width: 100%; padding-right: 2.6rem; text-align: right; font-variant-numeric: tabular-nums; }
.money-unit { position: absolute; right: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 500; pointer-events: none; }

/* Dosya seç düğmesi: yerel girdi gizli, seçilince adı yazılır ya da otomatik yüklenir */
.file-btn { flex-direction: row; position: relative; font-size: .875rem; }
.file-btn.small { min-height: 2rem; padding: 0 .75rem; }
.file-btn input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-btn:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.file-link { display: inline-flex; align-items: center; gap: .4rem; }

/* Satır eylemleri: yalnızca simge */
.row-actions { display: inline-flex; align-items: center; gap: .15rem; }
.icon-btn, button.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; min-height: 0; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; text-decoration: none; }
.icon-btn:hover, button.icon-btn:hover { background: var(--ground); color: var(--ink); }
.icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.icon-btn.danger, button.icon-btn.danger { background: transparent; border: 0; color: var(--late); }
.icon-btn.danger:hover, button.icon-btn.danger:hover { background: var(--late-soft); color: var(--rejected-dark); }

/* Ödendi formu */
.pay-grid { display: grid; grid-template-columns: minmax(10rem, 13rem) minmax(10rem, 13rem) minmax(10rem, 1fr) auto; gap: 1rem; align-items: end; }
.pay-grid .field-file { display: flex; flex-direction: column; gap: .3rem; font-size: .875rem; font-weight: 500; }
@media (max-width: 760px) {
    .pay-grid { grid-template-columns: 1fr; }
    .pay-grid button[type=submit] { width: 100%; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.field-file > div { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }

/* Yıl sekmeleri */
.year-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.year-tabs a { display: inline-flex; align-items: center; gap: .4rem; min-height: 2rem; padding: 0 .8rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: .875rem; font-weight: 500; text-decoration: none; }
.year-tabs a:hover { background: var(--ground); }
.year-tabs a[aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; }
.year-tabs a[aria-current] .muted { color: #dbe4ff; }
.section-head .year-tabs { margin: 0; }

/* İstatistik kartları ve çubuklar */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.stat { margin-bottom: 0; }
.stat-label { color: var(--muted); font-size: .875rem; font-weight: 500; }
.stat-value { margin: .2rem 0; font-size: 1.9rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat-sub { color: var(--muted); font-size: .9rem; }
.bar-row { display: flex; align-items: center; gap: .75rem; }
.bar { display: block; height: .7rem; min-width: 2px; border-radius: 3px; background: var(--bar-pending); flex: 0 1 auto; }
.bar-row .bar { max-width: 55%; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1.5rem; }

/* Ana ekran: yaklaşan bitişler */
.upcoming { margin-top: 1.5rem; }
.upcoming-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: .75rem; }
.upcoming-head .meta { margin: .2rem 0 0; }
.upcoming-total { display: flex; flex-direction: column; align-items: flex-end; gap: .1rem; font-variant-numeric: tabular-nums; }
.upcoming-total strong { font-size: 1.15rem; }
@media (max-width: 760px) { .upcoming-total { align-items: flex-start; } }
.upcoming.first { margin-top: 0; }

/* Fatura sürükle-bırak */
.drop { margin-bottom: 1rem; }
.dropzone { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; border: 2px dashed #b4c0e3; border-radius: var(--radius); background: #f8f9fd; color: var(--accent-dark); cursor: pointer; font-weight: 400; transition: background .15s ease-out, border-color .15s ease-out; }
.dropzone:hover, .dropzone.is-over, .dropzone:focus-within { background: var(--accent-soft); border-color: var(--accent); }
.dropzone-text { display: flex; flex-direction: column; gap: .15rem; color: var(--ink); }
.dropzone-text strong { font-size: 1.05rem; }
.drop-results { display: grid; gap: .75rem; margin-top: .75rem; }
.drop-results:empty { display: none; }
.drop-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.drop-item-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: #f8f9fd; border-radius: var(--radius) var(--radius) 0 0; }
.drop-item-head strong { min-width: 0; overflow-wrap: anywhere; }
.drop-item-body { display: grid; gap: .75rem; padding: 1rem; }
.drop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .75rem; }
.drop-form { display: grid; gap: .75rem; }
.drop-note { margin: 0; padding: .6rem .8rem; border-radius: 6px; background: var(--lost-soft); }
.drop-note.is-error { background: var(--late-soft); color: var(--late); }
.drop-note.is-ok { background: var(--won-soft); color: var(--won); }
.drop-note a { color: inherit; font-weight: 500; }
@media (max-width: 720px) { .dropzone { flex-direction: column; text-align: center; } }
.dropzone { flex-direction: row; }
.drop-item-body > button, .drop-item-body > .actions { justify-self: start; }
@media (max-width: 720px) { .dropzone { flex-direction: column; } }

/* ---------- Tasarım turu: listeler ve gruplar ---------- */
th.num, td.num { text-align: right; }
td.num, td.c-amount { font-variant-numeric: tabular-nums; }
.table-compact td.c-main .muted { font-size: .85rem; }
tr.group-row th { padding: .55rem 1rem; border-top: 1px solid var(--line); background: #f8f9fd; color: var(--muted); font-size: .75rem; letter-spacing: .05em; }
tbody:first-of-type tr.group-row th { border-top: 0; }
tr.group-row.is-late th { background: var(--late-soft); color: var(--late); }
tr.group-row.is-soon th { background: var(--draft-soft); color: var(--draft); }
tr.group-row .count { margin-left: .35rem; padding: .02rem .45rem; border-radius: 999px; background: rgba(23, 32, 58, .08); font-size: .72rem; }
.table-wrap tbody + tbody tr:first-child th { border-top: 1px solid var(--line); }

/* Süzgeçler: tek satır, etiketsiz seçiciler */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.filters label { display: block; flex: 0 1 11rem; }
.filters label.search { flex: 1 1 18rem; max-width: 26rem; }
.filters input[type=search] { width: 100%; min-height: var(--control); padding: 0 .7rem; border: 1px solid #c3cadb; border-radius: 6px; background: #fff; color: var(--ink); font: inherit; font-weight: 400; }
.filters-reset { display: inline-flex; align-items: center; gap: .3rem; min-height: var(--control); padding: 0 .35rem; font-size: .875rem; font-weight: 500; color: var(--accent); white-space: nowrap; }

/* Abonelik sayfası: özet + ödeme yan yana */
.summary-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 1fr); gap: 1rem; align-items: start; }
.summary-grid .card { margin-bottom: 0; }
.pay-card { display: grid; gap: .9rem; }
.pay-card h2 { margin: 0; }
.pay-card .field-file { display: flex; flex-direction: column; gap: .3rem; font-size: .875rem; font-weight: 500; }
.pay-card .hint { margin: 0; }
.pay-card .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
@media (max-width: 480px) { .pay-card .pair { grid-template-columns: 1fr; } }
.missing-invoice { display: inline-flex; align-items: center; gap: .6rem; }
@media (max-width: 980px) { .summary-grid { grid-template-columns: 1fr; } }

/* Mobil: listeler etiketsiz, iki üç satırlık kompakt kayıtlar; boş alanlar yer kaplamaz */
@media (max-width: 720px) {
    .table-stack td:empty { display: none; }
    .table-compact td[data-label]::before { content: none; }
    .table-compact tbody tr:not(.group-row) { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .75rem; align-items: baseline; }
    .table-compact td { grid-column: 1 / -1; }
    .table-compact td.c-main { grid-column: 1; grid-row: 1; }
    .table-compact td.c-amount { grid-column: 2; grid-row: 1; text-align: right; font-weight: 500; }
    .table-compact td.c-sub { color: var(--muted); font-size: .85rem; }
    .table-compact td.c-when { grid-column: auto; display: inline-block; }
    .table-compact tr.group-row { display: block; padding: 0; }
    .table-compact tr.group-row th { display: block; padding: .45rem .85rem; }
    .filters label, .filters label.search { flex: 1 1 100%; max-width: none; }
    .filters button { display: none; }
}
.filters { align-items: center; }
.filters label.search { flex: 1 1 13rem; max-width: 20rem; }
.filters-more { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: .5rem; }
.filters-more > summary { display: none; }
.filters-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.filters-row label { flex: 0 0 9rem; }
.table-stack td .muted { font-weight: 400; }
td.c-amount .muted { font-weight: 400; }
@media (max-width: 720px) {
    .filters-more { display: block; width: 100%; }
    .filters-more > summary { display: flex; align-items: center; min-height: var(--control); padding: 0 .8rem; border: 1px solid #c3cadb; border-radius: 6px; background: #fff; font-weight: 500; cursor: pointer; }
    .filters-more[open] > summary { margin-bottom: .5rem; }
    .filters-row { display: grid; gap: .5rem; }
    .filters-row label { flex: none; }
}

/* Dosya bağlantıları tek satır; uzun adlar kısalır */
.file-link { max-width: 22rem; vertical-align: middle; }
.file-link span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.summary-grid { align-items: stretch; }

/* Süzgeç kartları: daha az yükseklik, küçük soluk etiketler */
.card.toolbar { padding: .8rem 1rem; gap: .5rem .75rem; margin-bottom: 1rem; }
.toolbar label { gap: .2rem; font-size: .78rem; font-weight: 500; letter-spacing: .02em; color: var(--muted); }
.toolbar input, .toolbar select { color: var(--ink); }

/* Ağırlık düzeni: gövde 400 · arayüz etiketleri 500 · düğme, rozet, başlık, ana rakam 600 · 700 yok */
button, .btn, .badge, .kind, .svc { font-weight: 600; }
.table-wrap strong, .row-link strong, td strong { font-weight: 500; }
.meta strong, .stat-sub strong { font-weight: 500; color: var(--ink); }

/* ---------- Formlar (tasarım turu) ---------- */
.card.form { max-width: 54rem; gap: 1.1rem; padding: 1.5rem 1.75rem; }
.card.form.narrow, .content-plain .card.form { max-width: 26rem; }
.form > * + * { margin-top: 0; }
.form .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.5rem; align-items: start; }
.form .field-grid > .wide, .form .field-grid > label.wide { grid-column: 1 / -1; }
.form .hint { display: block; margin-top: .05rem; }
.form-section { display: grid; gap: .9rem; margin: 0; padding: 1.2rem 0 0; border: 0; border-top: 1px solid var(--line); }
.card.form > .form-section:first-child, .card.form > input[type=hidden] + .form-section { border-top: 0; padding-top: 0; }
.form-section > h2 { font-size: 1rem; color: var(--ink); }
.form fieldset.form-section { padding: 1.2rem 0 0; }
.form fieldset.form-section > legend { float: left; width: 100%; margin: 0 0 .5rem; padding: 0; font-size: 1rem; font-weight: 600; }
.form fieldset.form-section > legend + * { clear: both; }
.form fieldset.form-section .hint { margin: 0 0 .25rem; }
.form-more > summary { cursor: pointer; font-weight: 500; color: var(--accent); list-style: none; }
.form-more > summary::-webkit-details-marker { display: none; }
.form-more > summary::before { content: "+ "; }
.form-more[open] > summary::before { content: "– "; }
.form-more[open] > summary { margin-bottom: .6rem; }
.form-check { align-self: end; min-height: var(--control); align-items: flex-start; padding-top: .55rem; }
.form-check > span { display: flex; flex-direction: column; }
label.is-off { opacity: .5; }
label.is-off input { cursor: not-allowed; background: var(--ground); }
.form-actions { margin-top: .4rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
@media (max-width: 720px) { .form .field-grid { grid-template-columns: 1fr; } .card.form { padding: 1.1rem 1rem; } }
.form-check.wide { align-self: start; min-height: 0; padding-top: 0; }
.form-check input[type=checkbox] { margin-top: .2rem; }
.form .options { margin-top: .15rem; }
.form fieldset.form-section { display: block; }
.form fieldset.form-section > legend { margin-bottom: .25rem; }
.form fieldset.form-section > .hint { margin: 0 0 .6rem; }
.form-more { padding-top: 1.2rem; }

/* ---------- Liste sayfaları: ortak düzen ---------- */
.filters label.wide-select, .filters-row label.wide-select { flex: 0 0 15rem; }
.table-compact td.c-sub { color: var(--ink); }
.table-compact td.c-sub .muted { font-size: .85rem; }
td.empty a { font-weight: 500; }
.filters-more { flex: 0 1 auto; }
.filters-row label, .filters-row label.wide-select { flex: 0 1 auto; }
.filters-row select { width: auto; min-width: 9.5rem; max-width: 17rem; }
.filters label.search { flex: 1 1 14rem; max-width: 22rem; }
@media (max-width: 720px) { .filters-row select { width: 100%; max-width: none; } .filters-row label { flex: none; } }
.filters label.search { flex: 0 1 22rem; }
.filters-more { flex: 1 1 auto; }

/* Anlık arama: liste güncellenirken hafif soluklaşır */
main.is-loading .table-wrap, main.is-loading .pager, main.is-loading .pagination { opacity: .55; transition: opacity .15s ease-out; }
main[aria-busy="true"] { cursor: progress; }

/* Kişi ekleme: tek satır */
.contact-add label { flex: 1 1 9rem; max-width: none; }

/* Teklif sayfası: özet + takipler yan yana */
.follow-card { display: grid; gap: .9rem; align-content: start; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.card-head h2 { margin: 0; }
.follow-list { display: grid; margin: 0; padding: 0; list-style: none; }
.follow-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .5rem 1rem; padding: .55rem 0; border-top: 1px solid var(--line); }
.follow-list li:first-child { border-top: 0; padding-top: 0; }
.follow-list li.empty { display: block; color: var(--muted); }
.follow-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem .75rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.follow-add label { flex: 1 1 10rem; gap: .2rem; font-size: .78rem; font-weight: 500; letter-spacing: .02em; color: var(--muted); }
.follow-add label.narrow-field { flex: 0 1 9.5rem; }
@media (max-width: 720px) { .follow-list li { grid-template-columns: minmax(0, 1fr) auto; } .follow-list li form { grid-column: 1 / -1; } .follow-add button { width: 100%; } }
.table-wrap + .contact-add { margin-top: .75rem; }

/* ---------- Teklif paneli: mobil ---------- */
.plan-tabs { display: none; }
@media (max-width: 720px) {
    .segmented { display: flex; width: 100%; }
    .segmented a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 2.25rem; padding: 0 .4rem; }
    .page-head .segmented { order: 3; }
    .result { gap: 1rem; }
    .legend { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
    .legend li { grid-template-columns: auto 1fr; row-gap: .1rem; }
    .legend li .legend-label { align-self: center; }
    .legend-value { grid-column: 1 / -1; font-size: 1.5rem; }
    .legend-value small { display: block; margin: 0; font-size: .8rem; }
    .bar { margin-bottom: .8rem; }

    .plan { margin-top: .5rem; }
    .plan-tabs { position: sticky; top: 3.5rem; z-index: 5; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; margin: 1rem 0 0; padding: .5rem 0; background: var(--ground); }
    .plan-tabs button { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.75rem; padding: 0 .4rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: .9rem; font-weight: 500; }
    .plan-tabs button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
    .plan-tabs .plan-count { min-width: 1.5rem; padding: .02rem .4rem; border-radius: 999px; background: var(--lost-soft); font-size: .78rem; }
    .plan-tabs .is-late .plan-count { background: var(--late-soft); color: var(--late); }
    .plan-tabs .is-today .plan-count { background: var(--accent-soft); color: var(--accent-dark); }
    .plan[data-tab] .plan-col { display: none; }
    .plan[data-tab="overdue"] .plan-col.is-late, .plan[data-tab="today"] .plan-col.is-today, .plan[data-tab="week"] .plan-col.is-week { display: block; }
    .plan-col.is-today { box-shadow: none; border-color: var(--line); }
    .plan[data-tab] .plan-head { display: none; }
    .plan-item { grid-template-columns: minmax(0, 1fr) auto; gap: .3rem .6rem; padding: .7rem .85rem; }
    .plan-offer { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
    .plan-item .lbl { display: none; }
    .plan-item button.small { width: 2.75rem; min-height: 2.75rem; padding: 0; justify-content: center; }
    .plan-meta .svc { --svc-h: 1.5rem; padding: 0 .45rem; font-size: .75rem; }
    .plan-day { padding: .45rem .85rem; }
}

/* Teklifler listesi: mobilde üç satırlık kayıt */
.rev-inline { display: none; }
@media (max-width: 720px) {
    .table-offers tbody tr { grid-template-columns: minmax(0, 1fr) auto auto; gap: .2rem .6rem; align-items: center; }
    .table-offers td { grid-column: 1 / -1; }
    .table-offers td.c-main { grid-column: 1; grid-row: 1; }
    .table-offers td.c-status { grid-column: 2; grid-row: 1; }
    .table-offers td.col-actions { grid-column: 3; grid-row: 1; padding: 0; }
    .table-offers td.c-link { grid-column: 1; grid-row: 2; }
    .table-offers td.c-when { grid-column: 2 / -1; grid-row: 2; justify-self: end; color: var(--muted); font-size: .85rem; }
    .table-offers td.c-svc { grid-column: 1; grid-row: 3; }
    .table-offers td.c-check { grid-column: 2 / -1; grid-row: 3; justify-self: end; color: var(--muted); font-size: .85rem; }
    .table-offers td.c-check:not(:empty)::before { content: "Kontrol "; }
    .table-offers td.c-rev { display: none; }
    .table-offers .rev-inline { display: inline; color: var(--muted); }
    .table-offers .c-link .muted { display: block; }
}

/* Mobil listelerde "Güncel" çipi gösterilmez: yalnızca dikkat isteyenler öne çıkar */
@media (max-width: 720px) { .table-compact td.c-status.is-ok { display: none; } }

/* Menü: katlanır Ayarlar grubu, mobilde geniş dokunma alanı */
.rail-fold > summary { display: flex; align-items: center; justify-content: space-between; padding-bottom: 0; list-style: none; cursor: pointer; }
.rail-fold > summary::-webkit-details-marker { display: none; }
.rail-fold > summary::after { content: ""; width: .45rem; height: .45rem; margin-right: .3rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); transition: transform .15s ease-out; }
.rail-fold[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.rail-fold > summary:hover { color: #c9d3ee; }
.rail-fold[open] > summary { padding-bottom: .35rem; }
.rail-fold .rail-link { min-height: 2.25rem; font-size: .92rem; }
.rail .rail-fold > summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
@media (max-width: 900px) {
    .rail-link { min-height: 2.75rem; }
    .rail-fold .rail-link { min-height: 2.5rem; }
    .rail-heading { padding-top: .2rem; }
    .rail-fold > summary { min-height: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) { .rail-fold > summary::after { transition: none; } }

/* Alan adı, hosting, abonelik listeleri: mobilde iki sütunlu kayıt, tek yazı boyutu
   satır 1-2: ad + ikincil bilgi | tarih (+çip) ve tutar; satır 3: registrar / müşteri */
@media (max-width: 720px) {
    .table-compact.table-assets tbody tr { grid-template-columns: minmax(0, 1fr) auto; gap: .15rem .75rem; align-items: start; font-size: .875rem; }
    .table-assets td.c-main { grid-column: 1; grid-row: 1 / span 2; font-size: 1rem; }
    .table-assets td.c-main .muted { font-size: .875rem; }
    .table-assets td.c-when { grid-column: 2; grid-row: 1; display: block; justify-self: end; text-align: right; color: var(--ink); font-size: .875rem; font-weight: 500; }
    .table-assets td.c-amount { grid-column: 2; grid-row: 2; justify-self: end; font-size: .875rem; font-weight: 400; color: var(--muted); }
    .table-assets td.c-amount .muted { display: inline; margin-left: .3rem; font-size: .875rem; }
    .table-assets td.c-sub { grid-column: 1 / -1; grid-row: 3; color: var(--muted); font-size: .875rem; }
    .table-assets td.c-first, .table-assets td.c-status { display: none; }
}

/* İstatistikler (tasarım turu) */
.month-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.month-card { margin-bottom: 0; padding-bottom: 1rem; }
.month-card .card-head { margin-bottom: .6rem; }
.month-card h3 { margin: 0; }
.month-total { font-weight: 600; font-variant-numeric: tabular-nums; }
.month-list { display: grid; margin: 0; padding: 0; list-style: none; }
.month-row { display: grid; grid-template-columns: 4.75rem minmax(0, 1fr) minmax(5.5rem, auto); align-items: center; gap: .75rem; min-height: 2rem; border-top: 1px solid var(--line); }
.month-row:first-child { border-top: 0; }
.month-name { color: var(--muted); font-size: .875rem; }
.month-track { display: block; height: .7rem; }
.month-track .bar { height: 100%; }
.month-value { text-align: right; font-size: .9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.month-value.is-empty { color: var(--muted); }
.split .section-head h3 { margin: 0; font-size: 1.05rem; }
.table-years td.c-line { display: none; }
.table-years th.c-line { display: none; }
.y-repeat { color: transparent; user-select: none; }
@media (max-width: 720px) {
    .month-grid { grid-template-columns: 1fr; }
    .table-compact.table-years tbody tr { grid-template-columns: minmax(0, 1fr) auto; }
    .table-years td.c-cur, .table-years td.c-n { display: none; }
    .table-years td.c-line { display: block; grid-column: 1 / -1; grid-row: 2; color: var(--muted); font-size: .875rem; }
    .table-years .y-repeat { color: var(--ink); user-select: auto; }
    .table-years td.c-amount { font-weight: 600; }
}

/* Şimdiki maliyet: KDV hariç tutar büyük, KDV yanında + ile */
.stat-vat { margin-left: .25rem; color: var(--muted); font-size: .95rem; font-weight: 400; white-space: nowrap; }

/* Menü bildirimleri: kırmızı yuvarlak sayı (dikkat isteyen kayıtlar) */
.rail-badge, .mobilebar-badge { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .4rem; border-radius: 999px; background: #d1242f; color: #fff; font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
.rail-badge { margin-left: auto; }
.mobilebar-toggle { position: relative; }
.mobilebar-badge { position: absolute; top: -.4rem; right: -.45rem; min-width: 1.2rem; height: 1.2rem; padding: 0 .3rem; font-size: .7rem; box-shadow: 0 0 0 2px var(--rail); }
