/* Bileşenler: düğme, kart, rozet, tablo, form, teklif kartı, modal, grafik… */

/* ---- Düğmeler ---- */
.button { border: 1px solid transparent; display: inline-flex; justify-content: center; align-items: center; gap: 8px; background: var(--blue-btn); color: #fff; border-radius: 10px; padding: 11px 18px; font-size: 14px; font-weight: 700; transition: transform .15s, filter .15s; min-height: 42px; text-align: center; }
.button:hover { transform: translateY(-1px); filter: brightness(1.07); text-decoration: none; }
.button.teal { background: linear-gradient(110deg, var(--teal-btn), var(--teal-btn2)); }
.button.green { background: var(--green-btn); }
.button.purple { background: var(--violet-btn); }
.button.danger { background: #b42323; }
.button.light { background: #f0f6ff; color: #0b4d9c; border-color: #cfdff2; }
.button.white { background: #fff; color: #174f9e; border-color: #c3d6ec; }
.button.ghost { background: transparent; color: var(--ink); border-color: #cfdcec; }
.button.small { padding: 8px 12px; font-size: 13px; min-height: 36px; }
.button.block { width: 100%; }
.button.selected { background: #e1f9f7; color: var(--teal-ink); border-color: #7fd6d2; }
.link { border: 0; background: none; color: var(--link); font-weight: 700; font-size: 13px; padding: 6px 0; display: inline-flex; align-items: center; gap: 5px; }
.link:hover { text-decoration: underline; }

/* ---- Kart ---- */
.card { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); padding: 20px; min-width: 0; }
.card h2 { font-size: 17px; margin-bottom: 13px; }
.card h3 { font-size: 15px; margin-bottom: 10px; }
.card-title { display: flex; align-items: center; gap: 9px; }
.card-title .ico { color: var(--teal-ink); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h2, .panel-head h3 { margin: 0; }

.icon { display: inline-grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 13px; background: #e8f9f9; color: var(--teal-ink); }
.icon.blue { background: #e7f1ff; color: var(--blue); }
.icon.purple { background: #f0eafe; color: var(--violet); }
.icon.green { background: #e5f8ed; color: var(--green-btn); }
.icon.orange { background: #fff3e9; color: #c25e0a; }
.icon.red { background: #ffeaea; color: #c13030; }
.icon.round { border-radius: 50%; width: 56px; height: 56px; }

/* ---- Ana sayfa ---- */
.product-card { position: relative; overflow: hidden; background: #fff; border: 1px solid #d9e8f7; border-radius: 19px; padding: 22px; box-shadow: var(--shadow); display: flex; align-items: flex-start; gap: 16px; min-height: 172px; }
.product-card .body { position: relative; z-index: 1; max-width: 62%; }
.product-card h2 { font-size: 21px; margin: 2px 0 8px; }
.product-card p { color: #3d4f6e; font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
.product-card .art { position: absolute; right: -8px; bottom: -4px; width: 46%; max-width: 230px; pointer-events: none; }
.product-card::after { content: ''; position: absolute; right: -60px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; background: #e3f3ff; }
.product-card.purple::after { background: #efe9ff; }
.product-card.green::after { background: #ddf6f0; }
.how { display: grid; grid-template-columns: 1fr repeat(3, 1.15fr); gap: 18px; align-items: center; }
.how h2 { font-size: 26px; margin-bottom: 6px; }
.how-item { display: flex; gap: 13px; align-items: flex-start; }
.how-item strong { display: block; font-size: 15px; margin-bottom: 4px; }
.how-item p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.step-number { background: var(--blue); border-radius: 50%; color: #fff; width: 24px; height: 24px; display: inline-grid; place-items: center; font-weight: 800; font-size: 13px; margin-right: 8px; vertical-align: middle; }
.bullets li { margin: 11px 0; font-size: 14px; line-height: 1.45; display: flex; gap: 9px; align-items: flex-start; }
.bullets .ico { color: var(--teal-ink); margin-top: 1px; }
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; margin-bottom: 8px; font-size: 14px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); flex-shrink: 0; margin-right: 4px; transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { color: #3d4f6e; line-height: 1.6; padding-bottom: 12px; }
.contact-line { display: flex; align-items: center; gap: 10px; font-weight: 700; margin: 12px 0; word-break: break-word; }
.contact-line .ico { color: var(--blue); }
.trust-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.trust-badges div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; text-align: center; font-size: 12px; font-weight: 700; display: grid; gap: 6px; justify-items: center; }
.trust-badges .ico { color: var(--teal-ink); }

/* ---- Uyarılar ---- */
.notice { background: #fff9e9; border: 1px solid #f1dfa6; border-radius: 10px; color: #6b4e15; font-size: 13px; padding: 11px 16px; margin-bottom: 18px; line-height: 1.55; }
.notice-inline { border: 1px solid #c2e0f1; border-radius: 10px; background: #ecfaff; padding: 11px 14px; font-size: 13px; line-height: 1.55; color: #1f5169; margin: 12px 0; }
.notice-inline.warn { background: #fff7e8; border-color: #f1dfa6; color: #6b4e15; }
.notice-inline.danger { background: #fff0f0; border-color: #f3c4c4; color: #8c1f1f; }
.demo-tag { display: inline-block; background: #fff1d9; color: #7a4f05; border: 1px solid #efd9a6; border-radius: 6px; font-size: 12px; font-weight: 800; letter-spacing: .04em; padding: 0 6px; vertical-align: middle; }
.demo-doc-banner { border: 2px dashed #c9302c; background: #fff5f5; color: #8c1f1f; border-radius: 12px; padding: 14px 16px; font-weight: 800; text-align: center; letter-spacing: .02em; }

/* ---- Karşılama ---- */
.welcome { position: relative; border: 1px solid #daebf8; background: linear-gradient(105deg, #f2f6ff, #cfebff 65%, #a5e6ef); border-radius: 18px; padding: 30px 29px; overflow: hidden; min-height: 150px; margin-bottom: 17px; display: flex; flex-direction: column; justify-content: center; }
.welcome h1 { font-size: 30px; margin-bottom: 8px; position: relative; z-index: 1; }
.welcome p { color: #3d5270; font-size: 15px; position: relative; z-index: 1; max-width: 46%; }
.welcome .art { position: absolute; right: 18px; bottom: -6px; width: 44%; max-width: 470px; pointer-events: none; }

/* ---- KPI ---- */
.metric { display: flex; gap: 12px; align-items: flex-start; padding: 18px; color: var(--ink); position: relative; transition: transform .15s, box-shadow .15s; }
a.metric:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(19, 50, 88, .12); }
.metric .meta { color: #3f5170; font-size: 13px; font-weight: 700; }
.metric .number { font-size: 28px; letter-spacing: -.02em; font-weight: 800; display: block; margin-top: 4px; line-height: 1.15; }
.metric small { font-size: 12px; color: var(--muted); display: block; }
.metric .go { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.metric-grid.six .metric { padding: 15px 13px; }
.metric-grid.six .metric .go { display: none; }

.mini-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini-product { position: relative; overflow: hidden; border: 1px solid #e3edf8; border-radius: 13px; padding: 16px; background: linear-gradient(120deg, #f1faff, #e1f2ff); display: flex; align-items: flex-start; gap: 12px; min-height: 108px; color: var(--ink); }
.mini-product.purple { background: linear-gradient(120deg, #f7f4ff, #e9eaff); }
.mini-product.green { background: linear-gradient(120deg, #eefdfa, #dbf5f3); }
.mini-product .body { position: relative; z-index: 1; }
.mini-product strong { font-size: 16px; display: block; }
.mini-product small { color: #3d4f6e; font-size: 12px; display: block; margin: 2px 0 10px; }
.mini-product .art { position: absolute; right: -4px; bottom: -4px; width: 42%; max-width: 170px; pointer-events: none; }
.mini-product:hover { text-decoration: none; box-shadow: var(--shadow); }
.mini-product .ico { color: var(--blue); }
.mini-product.purple .ico { color: var(--violet); }
.mini-product.green .ico { color: var(--green-btn); }
.mini-product .button .ico { color: #fff; }

.list-row { padding: 12px 0; border-bottom: 1px solid #edf2f8; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.list-row:last-child { border-bottom: none; }
.list-row strong { font-size: 13px; }
.list-row small { color: var(--muted); font-size: 12px; display: block; margin-top: 3px; }
a.list-row { color: var(--ink); }
a.list-row:hover { text-decoration: none; background: #f7fafe; }
.unread strong::after { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-left: 8px; }

/* ---- Rozet ---- */
.badge { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; border-radius: 40px; padding: 4px 10px; background: #eaf3ff; color: #1962bf; font-size: 12px; font-weight: 700; }
.badge.success { background: #e0f8e9; color: #087a39; }
.badge.warn { background: #fff1d9; color: #8a5a06; }
.badge.danger { background: #ffe7e7; color: #b72d2d; }
.badge.purple { background: #eee7fc; color: #6230c9; }
.badge.gray { background: #edf1f6; color: #4a5b76; }

/* ---- Tablo ---- */
.table-wrap { overflow: auto; width: 100%; position: relative; }
table.dt { width: 100%; text-align: left; font-size: 13px; }
.dt th { font-size: 12px; color: #4a5b78; background: #f6f9fe; font-weight: 800; white-space: nowrap; }
.dt th, .dt td { padding: 11px 10px; border-bottom: 1px solid #ecf1f7; vertical-align: middle; }
.dt tr:last-child td { border-bottom: none; }
.dt th button { background: none; border: 0; font: inherit; color: inherit; padding: 4px 0; display: inline-flex; align-items: center; gap: 4px; }
.dt th[aria-sort] button::after { content: '↕'; opacity: .45; font-size: 11px; }
.dt th[aria-sort="ascending"] button::after { content: '↑'; opacity: 1; }
.dt th[aria-sort="descending"] button::after { content: '↓'; opacity: 1; }
.dt td.actions { text-align: right; white-space: nowrap; }
.dt-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 12px; font-size: 13px; color: var(--muted); }
.pagination { display: flex; gap: 5px; flex-wrap: wrap; }
.pagination button { min-width: 38px; height: 38px; border-radius: 9px; border: 1px solid #cfdcec; background: #fff; font-weight: 700; color: var(--ink); }
.pagination button[aria-current="page"] { background: var(--teal-btn); color: #fff; border-color: var(--teal-btn); }
.empty { color: var(--muted); text-align: center; padding: 26px 12px; font-size: 14px; }

/* ---- Grafikler ---- */
.chart { width: 100%; height: auto; }
.chart text { font-family: var(--font); font-size: 11px; fill: #5c6f8c; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.donut-wrap { display: flex; align-items: center; gap: 20px; justify-content: space-around; flex-wrap: wrap; }
.donut { width: 150px; height: 150px; }
.donut text { font-family: var(--font); }
.legend li { font-size: 13px; display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.legend b { margin-left: auto; padding-left: 14px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.dot.blue { background: #1773f6; }
.dot.purple { background: #7946dd; }
.dot.green { background: var(--green); }
.gauge-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: center; }
.gauge { width: 100%; max-width: 210px; margin: auto; }
.kv li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid #edf2f8; font-size: 13px; }
.kv li:last-child { border-bottom: 0; }
.kv b { font-weight: 800; text-align: right; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 170px 1fr 44px; gap: 10px; align-items: center; font-size: 13px; }
.bar-row progress { width: 100%; height: 12px; border: 0; border-radius: 8px; overflow: hidden; background: #e9eff7; accent-color: var(--teal); }
.bar-row progress::-webkit-progress-bar { background: #e9eff7; border-radius: 8px; }
.bar-row progress::-webkit-progress-value { background: var(--teal); border-radius: 8px; }
.bar-row progress::-moz-progress-bar { background: var(--teal); border-radius: 8px; }

/* ---- Form ---- */
.filters { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-bottom: 15px; }
.filters .search-box { margin: 0; max-width: 320px; min-width: 200px; }
.select { border: 1px solid #cfdcec; background: #fff; border-radius: 10px; padding: 9px 12px; color: var(--ink); font-size: 13px; max-width: 100%; min-height: 44px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: #3a4d6c; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #c3d1e4; border-radius: 10px; padding: 11px 12px; background: #fff; color: var(--ink); min-width: 0; min-height: 44px; font-weight: 500; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { border-color: #0b8fa0; outline: 3px solid #1b8fd1; outline-offset: 1px; }
.field input:disabled { background: #f3f6fa; color: #4a5b76; }
.field .hint { font-weight: 500; color: var(--muted); font-size: 12px; }
.field .error { font-weight: 700; color: #b42323; font-size: 12px; }
.field [aria-invalid="true"] { border-color: #c9302c; background: #fffafa; }
.req { color: #b42323; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; font-weight: 500; color: var(--ink); padding: 8px 0; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); flex-shrink: 0; }
.option-row { display: flex; flex-wrap: wrap; gap: 8px; }
.option-row label { border: 1px solid #c3d1e4; border-radius: 10px; padding: 9px 14px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; background: #fff; cursor: pointer; }
.option-row input { accent-color: var(--blue); width: 18px; height: 18px; margin: 0; }
.option-row label:has(input:checked) { border-color: var(--teal-btn); background: #ecfbfa; }
.form-card { max-width: 920px; }
.form-intro { font-size: 14px; color: var(--muted); line-height: 1.6; margin: -4px 0 18px; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; justify-content: space-between; }
.error-summary { border: 1px solid #f3c4c4; background: #fff0f0; color: #8c1f1f; border-radius: 10px; padding: 11px 14px; font-size: 13px; font-weight: 700; margin-bottom: 14px; }

/* ---- Adımlar / sekmeler ---- */
.progress { display: flex; align-items: center; gap: 10px; padding: 15px 17px; margin: 0 0 16px; overflow-x: auto; list-style: none; }
.progress li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; white-space: nowrap; color: var(--muted); }
.progress li b { width: 28px; height: 28px; border-radius: 50%; background: #e7edf7; color: #51627f; display: grid; place-items: center; font-size: 13px; }
.progress li.current, .progress li.done { color: var(--ink); }
.progress li.current b, .progress li.done b { background: var(--teal-btn); color: #fff; }
.progress li.sep { flex: 1; min-width: 10px; height: 2px; background: #d6e2f0; }
.progress li.sep.done { background: var(--teal-btn); }
.tabs { display: flex; gap: 8px; margin: 0 0 16px; overflow: auto; padding: 3px; }
.tab { border: 1px solid #cfdcec; background: #fff; color: #163259; padding: 10px 17px; border-radius: 10px; font-size: 14px; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.tab:hover { text-decoration: none; background: #f2f7fd; }
.tab.active, .tab[aria-current="page"], .tab[aria-pressed="true"] { background: #0b376e; color: #fff; border-color: #0b376e; }
.info-bar { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; font-size: 13px; padding: 10px 16px; margin-bottom: 16px; }
.info-bar span b { font-weight: 800; }
.info-bar .button { margin-left: auto; }

/* ---- Teklif kartları ---- */
.filter-box h2 { font-size: 16px; }
.filter-box h3 { font-size: 13px; margin: 16px 0 4px; }
.filter-box .check { padding: 4px 0; min-height: 36px; }
.filter-box input[type="range"] { width: 100%; accent-color: var(--blue); min-height: 30px; }
.filter-toggle { display: none; }
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; align-items: stretch; }
.offer { border: 2px solid #dce7f4; box-shadow: var(--shadow); background: #fff; border-radius: 14px; padding: 0 14px 15px; position: relative; min-width: 0; display: flex; flex-direction: column; }
.offer.green { border-color: #29b45e; }
.offer.blue { border-color: #2878e2; }
.offer.purple { border-color: #8b54df; }
.offer-ribbon { font-size: 13px; color: #fff; font-weight: 800; border-radius: 12px 0 12px 0; padding: 7px 14px; margin: -2px 0 13px -16px; display: inline-flex; align-items: center; gap: 7px; background: var(--green-btn); align-self: flex-start; }
.offer.blue .offer-ribbon { background: var(--blue); }
.offer.purple .offer-ribbon { background: var(--violet-btn); }
.offer-brand { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.offer-brand > div:nth-child(2) { flex: 1 1 120px; min-width: 0; }
.insurer-badge { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff; background: #1c4f8f; flex-shrink: 0; }
.insurer-badge.b { background: #0a7f86; } .insurer-badge.c { background: #5b3bb6; } .insurer-badge.d { background: #9a5a0c; } .insurer-badge.e { background: #1b7a47; }
.insurer-badge.sm { width: 32px; height: 32px; font-size: 14px; border-radius: 9px; }
.offer h3 { margin: 0; font-size: 16px; }
.offer .plan { color: var(--muted); font-size: 12px; }
.offer-price { margin-left: auto; text-align: right; }
.offer-price small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.offer-price strong { font-weight: 800; font-size: 26px; letter-spacing: -.02em; white-space: nowrap; }
.offer-rows { border-top: 1px solid #e5ebf5; margin-top: 13px; padding-top: 6px; flex: 1; }
.offer-rows > div { display: grid; grid-template-columns: 112px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid #eef2f8; font-size: 13px; }
.offer-rows > div:last-child { border-bottom: 0; }
.offer-rows dt { font-weight: 700; display: flex; gap: 6px; align-items: flex-start; color: #2c3f5f; }
.offer-rows dd { margin: 0; }
.offer-rows dl { margin: 0; }
.ticks li { display: flex; gap: 6px; align-items: flex-start; margin: 2px 0; }
.ticks .ico { color: var(--green-btn); margin-top: 2px; }
.offer-reason { background: #eef5ff; border-radius: 9px; font-size: 12px; padding: 8px 10px; color: #1c4d94; margin: 4px 0 10px; }
.offer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.offer-actions .wide { grid-column: 1 / -1; }
.compare-bar { position: sticky; bottom: 12px; z-index: 20; background: var(--navy); color: #fff; border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; box-shadow: 0 14px 30px #0b1e3b40; flex-wrap: wrap; }
.compare-table { width: 100%; font-size: 13px; }
.compare-table th, .compare-table td { border-bottom: 1px solid #ecf1f7; padding: 10px; text-align: left; vertical-align: top; }
.compare-table thead th { background: #f6f9fe; }
.compare-table tbody th { width: 150px; color: #3a4d6c; }

/* ---- Ödeme ---- */
.pay-option { display: flex; gap: 12px; align-items: center; border: 1px solid #c3d1e4; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; min-height: 52px; }
.pay-option:has(input:checked) { border-color: var(--teal-btn); background: #ecfbfa; }
.pay-option input { width: 20px; height: 20px; accent-color: var(--blue); margin: 0; }
.pay-option b { margin-left: auto; white-space: nowrap; }
.pay-placeholder { border: 2px dashed #b9c9de; border-radius: 12px; padding: 18px; text-align: center; color: var(--muted); font-size: 13px; background: #f8fbff; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; font-weight: 800; padding-top: 12px; margin-top: 6px; border-top: 2px solid #e5ebf5; }
.summary-total strong { font-size: 26px; }
.result-hero { text-align: center; padding: 34px 20px; }
.result-hero .icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 14px; }
.result-hero h1 { font-size: 26px; margin-bottom: 8px; }

/* ---- Detay ---- */
.detail-lines { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.detail-lines.three { grid-template-columns: repeat(3, 1fr); }
.detail-lines > div { padding: 10px 12px; background: #f5f8fc; border-radius: 9px; font-size: 14px; font-weight: 600; min-width: 0; word-break: break-word; }
.detail-lines small { display: block; color: var(--muted); margin-bottom: 4px; font-size: 12px; font-weight: 600; }
.timeline li { position: relative; padding: 0 0 14px 22px; font-size: 13px; border-left: 2px solid #dbe5f1; margin-left: 6px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); border: 2px solid #fff; }
.timeline small { display: block; color: var(--muted); font-size: 12px; }
.thread { display: grid; gap: 10px; margin-bottom: 14px; }
.msg { border-radius: 12px; padding: 11px 14px; font-size: 14px; max-width: 86%; background: #f1f5fb; }
.msg.mine { background: #e3f6f5; margin-left: auto; }
.msg.note { background: #fff7e0; border: 1px dashed #e4c56a; max-width: 100%; }
.msg small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; font-weight: 700; }

/* ---- Modal / çekmece ---- */
.overlay { position: fixed; inset: 0; background: #07182cad; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: #fff; width: min(600px, 100%); max-height: 90vh; overflow: auto; border-radius: 17px; padding: 22px; box-shadow: 0 35px 80px #0004; }
.modal.wide { width: min(980px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: sticky; top: -22px; background: #fff; padding: 4px 0 10px; margin-top: -4px; z-index: 1; }
.modal-head h2 { font-size: 19px; }
.close { background: #f0f5fb; border: 0; border-radius: 10px; width: 44px; height: 44px; display: grid; place-items: center; flex-shrink: 0; color: var(--ink); }
.modal-body { margin-top: 8px; color: #33455f; font-size: 14px; line-height: 1.6; }
.mobile-drawer { position: fixed; inset: 0; background: #061829aa; z-index: 90; display: flex; justify-content: flex-start; }
.mobile-drawer-inner { width: min(320px, 86vw); background: var(--navy); color: #fff; padding: 18px 14px calc(18px + env(safe-area-inset-bottom)); overflow: auto; display: flex; flex-direction: column; }
.mobile-drawer-inner .close { background: #ffffff1a; color: #fff; }
.mobile-drawer-inner .nav-button { color: #fff; }

#toast { position: fixed; z-index: 200; bottom: 25px; right: 25px; max-width: min(400px, calc(100vw - 30px)); background: #103760; color: #fff; box-shadow: 0 10px 35px #001b3740; border-radius: 12px; padding: 14px 19px; font-size: 14px; display: none; }
#toast.show { display: block; }

.login-wrap { min-height: calc(100vh - 74px); display: grid; place-items: center; padding: 30px 16px; }
.login-card { width: min(760px, 100%); }
.login-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.login-option { border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 10px; align-content: start; }
.spinner { width: 42px; height: 42px; border: 4px solid #d6e6f6; border-top-color: var(--teal-btn); border-radius: 50%; animation: spin 0.9s linear infinite; margin: 0 auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-card { text-align: center; padding: 50px 20px; }
.adapter-flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; }
.adapter-flow span { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: #f6f9fe; }
.adapter-flow i { color: var(--muted); font-style: normal; }

/* ---- Ek küçük parçalar ---- */
.icon.sm-ico { width: 30px; height: 30px; border-radius: 9px; }
.link-row { width: 100%; background: none; border: 0; border-bottom: 1px solid #edf2f8; text-align: left; font: inherit; color: var(--ink); min-height: 44px; }
.link-row:hover { background: #f7fafe; }
a.list-row, .link-row { min-height: 44px; }
dl.offer-rows { margin-bottom: 0; }
.field legend, fieldset > legend.strong { font-weight: 700; margin-bottom: 6px; }
.filter-box fieldset { margin-top: 4px; }
.filter-box legend h3 { margin-bottom: 0; }
code { background: #eef3f9; border-radius: 5px; padding: 1px 5px; font-size: 12px; }
.card > h2.mt, .card h3.mt { margin-top: 18px; }
.offer-price.strong, strong.offer-price { font-size: 22px; }
.msg.note.mb { margin-bottom: 10px; }

/* ---- Görsel düzeltmeler (ekran görüntüsü turu 1) ---- */
[tabindex="-1"]:focus { outline: none; }
.product-card .body, .mini-product .body { z-index: 2; }
.product-card .art, .mini-product .art { z-index: 1; height: auto; }
.product-card::after { z-index: 0; }
.product-card.green .art { width: 30%; max-width: 150px; right: 10px; bottom: 0; }
.mini-product.green .art { width: 24%; max-width: 96px; right: 8px; bottom: 0; }
.why-card { position: relative; overflow: hidden; }
.why-card .bullets { max-width: 76%; position: relative; z-index: 1; }
.why-card .art { position: absolute; right: 14px; bottom: 12px; width: 92px; height: auto; opacity: .95; }
.chart text { font-size: 13px; }
.chart-legend svg { display: inline-block; vertical-align: -1px; }
.offer-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.offer-actions .button { padding: 9px 8px; font-size: 13px; }
.nw { flex-wrap: nowrap; }
.welcome { min-height: 172px; }
.welcome .art { max-width: 400px; }

/* ---------- Finans, hedef, rapor, admin (v4) ---------- */
.num { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }
.num.neg { color: #b42323; }
td.r { text-align: right; }
.break { word-break: break-all; }
.hash { font-family: ui-monospace, Consolas, monospace; font-size: 12px; word-break: break-all; background: #f3f6fa; border-radius: 8px; padding: 10px; margin: 8px 0; color: #24364f; }
.role-chip.muhasebe { background: #6230c9; }
.role-chip.admin { background: #b72d2d; }
.sidebar-label.group { margin-top: 12px; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 14px; }
.target-card { margin-bottom: 16px; }
.target-card h2 { display: flex; align-items: center; gap: 8px; }
.target-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.target-stat { display: flex; flex-direction: column; gap: 6px; border: 1px solid #e3ebf5; border-radius: 12px; padding: 14px; background: #f8fbfe; min-width: 0; }
.target-stat > small { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.target-stat > strong { font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.target-stat progress, .fin-bars progress { width: 100%; height: 10px; border: 0; border-radius: 8px; overflow: hidden; background: #e9eff7; accent-color: var(--teal); }
.target-stat progress::-webkit-progress-bar { background: #e9eff7; border-radius: 8px; }
.target-stat progress::-webkit-progress-value { background: var(--teal); border-radius: 8px; }
.target-stat progress::-moz-progress-bar { background: var(--teal); border-radius: 8px; }
.fin-bars .bar-row { grid-template-columns: minmax(0, 1.2fr) minmax(60px, 1fr) auto; }
.report-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.report-card { border: 1px solid #e3ebf5; border-radius: 12px; padding: 14px; min-width: 0; background: #fff; }
.report-card .panel-head { margin-bottom: 6px; }
.kv.total { margin-top: 12px; border-top: 2px solid #dfe8f3; }
.kv li.sum { font-weight: 800; }
h3.sub { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 2px; }
.form-table input:not([type="checkbox"]), .form-table select { width: 100%; min-height: 44px; border: 1px solid #c3d1e4; border-radius: 10px; padding: 9px 10px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; min-width: 0; }
.form-table input:focus-visible, .form-table select:focus-visible { outline: 3px solid #1b8fd1; outline-offset: 1px; }
.form-table td { vertical-align: middle; }
.report-bar { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }
.report-bar .tabs { margin: 0; }
.period-label { margin: 0; font-size: 13px; line-height: 1.5; }
.todo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.todo-item { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; border: 1px solid #f1dfa6; background: #fff9ea; border-radius: 12px; padding: 14px; color: var(--ink); font-size: 13px; min-width: 0; }
.todo-item small { color: #6b4e15; font-size: 12px; }
.todo-item.late { border-color: #f3c4c4; background: #fff0f0; }
.todo-item.late small { color: #8c1f1f; font-weight: 700; }
a.todo-item:hover { text-decoration: none; border-color: #d9b95a; }
.duyuru-strip { background: #0b376e; color: #fff; text-align: center; font-size: 13px; padding: 8px 16px; }
.seo-row { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
details.card > summary, .todo details > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
@media print {
  .sidebar, .workspace-top, .mobile-bottom, .notice, .heading-row .actions, .report-bar, .skip-link, form, #toast { display: none !important; }
  .card { break-inside: avoid; box-shadow: none; }
}
small.muted { font-size: 12px; }
.metric { min-width: 0; }
.metric > span { min-width: 0; }
.metric small { overflow-wrap: anywhere; }
.metric .number.long { font-size: 20px; overflow-wrap: anywhere; }

/* ---------- Yapılacaklar panosu ---------- */
.todo-summary { display: flex; gap: 6px; flex-wrap: wrap; }
.todo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.todo-row { display: flex; align-items: center; gap: 12px; border: 1px solid #e3ebf5; border-left: 5px solid #9fb4cf; border-radius: 10px; padding: 10px 12px; background: #fff; min-width: 0; }
.todo-row.wait { border-left-color: #e0a526; background: #fffcf3; }
.todo-row.done { border-left-color: #0ba956; background: #f6fcf8; }
.todo-row.done .todo-text strong { text-decoration: line-through; color: #4a5b76; font-weight: 600; }
.todo-row.urgent { border-color: #f1b5b5; border-left-color: #d42a2a; background: #fff1f1; }
.todo-row.urgent .todo-text strong { color: #9c1616; }
.todo-mark { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: #e9eff7; color: #24364f; }
.todo-mark.wait { background: #fff1d9; color: #8a5a06; }
.todo-mark.done { background: #e0f8e9; color: #087a39; }
.todo-row.urgent .todo-mark { background: #d42a2a; color: #fff; }
.todo-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--ink); }
.todo-text small { font-size: 12px; color: var(--muted); }
.todo-flag { color: #b01a1a; font-weight: 800; letter-spacing: .04em; }
.todo-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; }
.button.danger-text { color: #b42323; }
.todo-list.sys .todo-row { border-left-color: #e0a526; }
a.todo-text:hover { text-decoration: none; }
a.todo-text { min-height: 44px; justify-content: center; }
/* Sıkıştırma: rapor değerleri yan yana kutular; yapılacaklar satırları dar */
.kv.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; margin: 8px 0 0; }
.kv.tiles li { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2px; border: 1px solid #e3ebf5; border-radius: 10px; background: #f8fbfe; padding: 8px 10px; min-width: 0; }
.kv.tiles li:last-child { border-bottom: 1px solid #e3ebf5; }
.kv.tiles li span { font-size: 12px; color: var(--muted); }
.kv.tiles li b { text-align: left; font-size: 15px; }
.report-card .msg.note { margin: 8px 0 0; padding: 8px 12px; }
.todo-list { gap: 6px; }
.todo-row { padding: 6px 10px; gap: 10px; }
.todo-mark { width: 26px; height: 26px; }
.todo-text { font-size: 13.5px; }
.todo-actions .button.small { min-height: 34px; padding: 5px 10px; }
@media (min-width: 1100px) { .card > .report-card .kv.tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Boşluksuz kart akışı: kartlar iki sütuna yüksekliklerine göre dizilir (ızgaradaki boş alan kalmaz) */
.masonry { columns: 2; column-gap: 16px; margin: 16px 0 0; }
.masonry > * { break-inside: avoid; margin: 0 0 16px; width: 100%; }
.masonry .report-card .kv.tiles { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.masonry + .card, .masonry + section { margin-top: 0; }

/* Yapılacaklar: günlük ve genel iki sütun */
.card.todo { margin-bottom: 16px; }
.todo-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.todo-col-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.todo-col-head h3 { margin: 0; font-size: 15px; }
.todo-col > p { margin: 2px 0 8px; }
.todo-row { flex-wrap: wrap; }
.todo-text { flex: 1 1 220px; }
.todo-actions { margin-left: auto; }
.button.icon-only { padding: 5px 8px; }
.todo-other { border-top: 1px solid #e6edf5; margin-top: 12px; padding-top: 4px; }
.todo-other > summary, .todo-new > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.todo-text { flex: 1 1 150px; }
.todo-actions { flex-wrap: nowrap; gap: 4px; }
.todo-actions .button.small { padding: 5px 8px; font-size: 12.5px; gap: 4px; }
