/* Avukat Scripti - Yonetim paneli stilleri (Adim 9B: acik/koyu tema, komut paleti, gundem) */
:root {
  --brand: #1f3a5f; --accent: #b8893b;
  --side: #14243b; --side-text: #c5d0e0;
  --bg: #f3f5f9; --surface: #ffffff; --surface-2: #f8f9fb; --line: #e6e9f0; --line-2: #eef0f5;
  --text: #1c2330; --muted: #667085; --hover: rgba(16, 24, 40, .04);
  --shadow: 0 6px 18px rgba(16, 24, 40, .08);
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
[data-bs-theme="dark"] {
  --side: #0c1524; --side-text: #b5c2d6;
  --bg: #0e1522; --surface: #151f30; --surface-2: #111a29; --line: #25324a; --line-2: #1e2a40;
  --text: #e6ebf3; --muted: #93a1b8; --hover: rgba(255, 255, 255, .05);
  --shadow: 0 8px 22px rgba(0, 0, 0, .45);
  --bs-body-bg: var(--bg); --bs-body-color: var(--text);
  --bs-border-color: var(--line);
  --bs-secondary-color: var(--muted);
  color-scheme: dark;
}

.admin-body { background: var(--bg); color: var(--text); font-size: .95rem; font-family: var(--bs-body-font-family); -webkit-font-smoothing: antialiased; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: color-mix(in srgb, var(--brand) 82%, #000); border-color: color-mix(in srgb, var(--brand) 82%, #000); color: #fff; }
[data-bs-theme="dark"] .btn-brand { background: color-mix(in srgb, var(--brand) 70%, #fff 10%); border-color: transparent; }
[data-bs-theme="dark"] .btn-brand:hover { background: color-mix(in srgb, var(--brand) 60%, #fff 20%); }
.text-secondary { color: var(--muted) !important; }
kbd { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; font-size: .7rem; font-family: inherit; box-shadow: none; }

/* ---------- Yerlesim ---------- */
.admin-shell { display: flex; min-height: 100vh; }
.admin-side { display: contents; }
.admin-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.admin-sidebar { --bs-offcanvas-width: 280px; --bs-offcanvas-bg: var(--side); --bs-offcanvas-color: var(--side-text); }
.admin-sidebar .offcanvas-header { border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-sidebar .offcanvas-body { padding: 0 12px 16px; }

@media (min-width: 992px) {
  .admin-side { display: block; flex: 0 0 260px; width: 260px; background: var(--side); position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
  .admin-side .admin-sidebar { height: 100% !important; color: var(--side-text); }
  .admin-sidebar .offcanvas-body { flex-grow: 1 !important; }
}

/* ---------- Kenar cubugu ---------- */
.side-brand { display: flex; align-items: center; color: #fff; font-weight: 700; font-size: 1.05rem; padding: 18px 8px; text-decoration: none; min-width: 0; }
.side-brand i { color: color-mix(in srgb, var(--accent) 80%, #fff); }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-group { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: #7f8fa8; margin: 18px 8px 6px; font-weight: 600; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--side-text); text-decoration: none; font-size: .9rem; transition: background .15s, color .15s; }
.side-link i { font-size: 1.05rem; width: 20px; text-align: center; }
a.side-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-link.active { background: var(--accent); color: #fff; box-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 35%, transparent); }
.side-link.disabled { opacity: .45; cursor: not-allowed; }
.side-link em { margin-left: auto; font-style: normal; font-size: .62rem; background: rgba(255,255,255,.12); padding: 2px 7px; border-radius: 10px; }

/* ---------- Ust cubuk ---------- */
.admin-topbar { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 12px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 10px 20px; min-height: 60px; }
.topbar-title { font-size: 1.1rem; font-weight: 600; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-content { padding: 20px; }
@media (max-width: 575.98px) { .admin-content { padding: 14px; } .admin-topbar { padding: 8px 12px; } .topbar-title { font-size: 1rem; } }
.admin-topbar .btn-light, .btn-light { border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.admin-topbar .btn-light:hover, .btn-light:hover { background: var(--hover); border-color: var(--line); color: var(--text); }
.avatar-circle { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(145deg, var(--brand), color-mix(in srgb, var(--brand) 65%, #000)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: .85rem; }
.notif-badge { position: absolute; top: 1px; right: 1px; font-size: .6rem; }
.notif-menu { width: 320px; max-width: 92vw; max-height: 70vh; overflow-y: auto; }
.notif-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--line-2); }
.notif-row.unread { background: color-mix(in srgb, var(--brand) 7%, var(--surface)); }
.notif-link { flex: 1; display: flex; gap: 10px; padding: 10px 6px 10px 14px; color: inherit; text-decoration: none; white-space: normal; min-width: 0; }
.notif-link:hover { background: var(--hover); }
.notif-ico { color: var(--brand); font-size: 1.05rem; margin-top: 1px; }
[data-bs-theme="dark"] .notif-ico { color: color-mix(in srgb, var(--accent) 75%, #fff); }
.notif-text { min-width: 0; }
.notif-x { border: 0; background: transparent; color: var(--muted); padding: 0 12px; }
.notif-x:hover { color: #d92d20; background: rgba(217,45,32,.09); }
.topbar-search { position: relative; align-items: center; gap: 8px; margin-left: 12px; width: 300px; max-width: 34vw; padding: 7px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: .86rem; cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s; }
.topbar-search:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 10%, transparent); }
.topbar-search span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1199.98px) { .topbar-search { width: 220px; } .topbar-search kbd { display: none; } }

/* ---------- Kartlar ---------- */
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; height: 100%; }
.stat-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 10px; }
.stat-value { font-size: 1.65rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.stat-label { color: var(--muted); font-size: .8rem; margin-top: 4px; }
.panel-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--text); }
.panel-head { padding: 13px 16px; border-bottom: 1px solid var(--line-2); font-weight: 600; }
.empty-state { padding: 30px 16px; text-align: center; color: var(--muted); }

/* Bootstrap bilesenlerini temaya uydur */
.list-group { --bs-list-group-bg: transparent; --bs-list-group-border-color: var(--line-2); --bs-list-group-color: var(--text); --bs-list-group-action-hover-bg: var(--hover); }
.table { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-border-color: var(--line-2); --bs-table-hover-bg: var(--hover); --bs-table-hover-color: var(--text); }
.table-light { --bs-table-bg: var(--surface-2); --bs-table-color: var(--muted); --bs-table-border-color: var(--line); }
.form-control, .form-select { background-color: var(--surface); border-color: color-mix(in srgb, var(--line) 70%, #8895ab 30%); color: var(--text); }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--brand) 16%, transparent); background-color: var(--surface); color: var(--text); }
[data-bs-theme="dark"] .form-control:focus, [data-bs-theme="dark"] .form-select:focus { border-color: color-mix(in srgb, var(--accent) 70%, #fff); }
.dropdown-menu { --bs-dropdown-bg: var(--surface); --bs-dropdown-border-color: var(--line); --bs-dropdown-link-color: var(--text); --bs-dropdown-link-hover-bg: var(--hover); --bs-dropdown-link-hover-color: var(--text); --bs-dropdown-divider-bg: var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.modal-content { background: var(--surface); border-color: var(--line); border-radius: 16px; }
.modal-header, .modal-footer { border-color: var(--line-2); }
.alert-light { --bs-alert-bg: var(--surface); --bs-alert-color: var(--text); --bs-alert-border-color: var(--line); }
[data-bs-theme="dark"] .text-bg-light, [data-bs-theme="dark"] .bg-light { background-color: var(--surface-2) !important; color: var(--text) !important; }
[data-bs-theme="dark"] .bg-white { background-color: var(--surface) !important; }
[data-bs-theme="dark"] .border-bottom, [data-bs-theme="dark"] .border-top, [data-bs-theme="dark"] .border { border-color: var(--line) !important; }
[data-bs-theme="dark"] .btn-outline-secondary { --bs-btn-color: var(--muted); --bs-btn-border-color: var(--line); --bs-btn-hover-bg: var(--hover); --bs-btn-hover-color: var(--text); --bs-btn-hover-border-color: var(--muted); }
[data-bs-theme="dark"] .text-bg-secondary { background-color: #3a4864 !important; }
[data-bs-theme="dark"] a:not(.btn):not(.dropdown-item):not(.side-link):not(.nav-link):not(.page-link):not(.list-group-item) { color: color-mix(in srgb, var(--brand) 35%, #9db8e6); }
[data-bs-theme="dark"] .text-secondary { color: var(--muted) !important; }
[data-bs-theme="dark"] .page-link { background: var(--surface); border-color: var(--line); color: var(--text); }
[data-bs-theme="dark"] .nav-tabs { --bs-nav-tabs-border-color: var(--line); --bs-nav-tabs-link-active-bg: var(--surface); --bs-nav-tabs-link-active-border-color: var(--line) var(--line) var(--surface); }

/* ---------- Giris sayfasi ---------- */
.auth-body { background: linear-gradient(135deg, #0f1b2e 0%, var(--brand) 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; font-family: var(--bs-body-font-family); }
.auth-wrap { width: 100%; max-width: 410px; padding: 16px; }
.auth-card { background: #fff; border-radius: 18px; padding: 30px; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.auth-logo { width: 56px; height: 56px; border-radius: 16px; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 12px; }
.auth-foot a { color: rgba(255,255,255,.8); text-decoration: none; }
.auth-foot a:hover { color: #fff; }

/* ---------- Formlar ---------- */
details.panel-card > summary { cursor: pointer; list-style: none; }
details.panel-card > summary::-webkit-details-marker { display: none; }
details.panel-card > summary::after { content: "\F282"; font-family: "bootstrap-icons"; float: right; transition: transform .2s; }
details.panel-card[open] > summary::after { transform: rotate(180deg); }
.form-actions { position: sticky; bottom: 0; z-index: 50; display: flex; gap: 8px; margin: 16px -20px -20px; padding: 12px 20px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); border-top: 1px solid var(--line); }
@media (max-width: 575.98px) { .form-actions { margin: 16px -14px -14px; padding: 10px 14px; } }
.check-list { max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
.list-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.settings-tabs .nav-link { color: var(--text); background: var(--surface); border: 1px solid var(--line); margin-right: 6px; border-radius: 10px; }
.settings-tabs .nav-link.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Editor ---------- */
.rt-editor { background: var(--surface); }
.rt-editor.ql-container, .ql-container.ql-snow { border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; font-size: 1rem; }
.ql-toolbar.ql-snow { border-top-left-radius: 10px; border-top-right-radius: 10px; background: var(--surface-2); position: sticky; top: 60px; z-index: 20; border-color: var(--line); }
.ql-container.ql-snow { border-color: var(--line); }
.ql-editor { min-height: 320px; line-height: 1.7; }
.ql-editor img { max-width: 100%; height: auto; }
[data-bs-theme="dark"] .ql-snow .ql-stroke { stroke: var(--text); }
[data-bs-theme="dark"] .ql-snow .ql-fill, [data-bs-theme="dark"] .ql-snow .ql-stroke.ql-fill { fill: var(--text); }
[data-bs-theme="dark"] .ql-snow .ql-picker { color: var(--text); }
[data-bs-theme="dark"] .ql-snow .ql-picker-options { background: var(--surface); border-color: var(--line); }
[data-bs-theme="dark"] .ql-editor.ql-blank::before { color: var(--muted); }

/* ---------- Gorsel alani ---------- */
.media-preview { border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: var(--surface); display: inline-block; max-width: 100%; }
.media-preview img { display: block; max-width: 100%; max-height: 160px; border-radius: 8px; }

/* ---------- Medya secme penceresi ---------- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.media-item { border: 2px solid transparent; background: var(--surface); border-radius: 12px; padding: 0; overflow: hidden; text-align: left; box-shadow: 0 0 0 1px var(--line); color: var(--text); }
.media-item:hover, .media-item:focus { border-color: var(--accent); outline: none; }
.media-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.media-item span { display: block; padding: 4px 6px; font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Medya sayfasi ---------- */
.media-library { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.media-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.media-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--surface-2); }

/* Quill'in height:100% degeri esnek yerlesimde editoru tasiriyordu (SEO bolumu ust uste biniyordu) */
.ql-container.ql-snow { height: auto !important; }
.ql-editor { overflow-y: visible; }

/* ---------- Adim 8: buro yonetimi ---------- */
.stat-link { transition: transform .15s, box-shadow .15s, border-color .15s; }
.stat-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.info-list dt, .info-list dd { padding: 9px 16px; margin: 0; border-bottom: 1px solid var(--line-2); }
.info-list dt { color: var(--muted); font-weight: 500; }
.case-tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; white-space: nowrap; }
.case-tabs .nav-link { color: var(--muted); }
.case-tabs .nav-link.active { color: var(--brand); font-weight: 600; }
[data-bs-theme="dark"] .case-tabs .nav-link.active { color: color-mix(in srgb, var(--accent) 70%, #fff); }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.min-w-0 { min-width: 0; }

/* Aylik takvim */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow { background: var(--surface-2); padding: 8px; text-align: center; font-size: .78rem; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.cal-cell { min-height: 118px; padding: 4px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); overflow: hidden; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell.other { background: var(--surface-2); }
.cal-cell.other .cal-num { opacity: .45; }
.cal-cell.weekend { background: color-mix(in srgb, var(--surface-2) 60%, var(--surface)); }
.cal-cell.today { background: color-mix(in srgb, var(--brand) 8%, var(--surface)); box-shadow: inset 0 0 0 2px var(--brand); }
.cal-num { font-size: .8rem; font-weight: 600; color: var(--text); padding: 0 2px 2px; display: flex; gap: 4px; align-items: center; }
.cal-hol { font-size: .62rem; font-weight: 500; color: #b42318; background: #fef3f2; border-radius: 4px; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-bs-theme="dark"] .cal-hol { background: rgba(217,45,32,.18); color: #fda29b; }
.cal-ev { display: block; font-size: .72rem; line-height: 1.25; color: #fff; text-decoration: none; padding: 2px 5px; border-radius: 4px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev.bg-warning, .cal-ev.bg-info { color: #1c2330; }
.cal-ev.done { opacity: .5; text-decoration: line-through; }
.cal-ev:hover { filter: brightness(.92); color: inherit; }
.cal-more { font-size: .7rem; color: var(--muted); padding-left: 4px; }

/* Finans grafigi */
.fin-chart { display: flex; gap: 10px; align-items: flex-end; height: 190px; }
.fin-col { flex: 1; display: flex; flex-direction: column; height: 100%; text-align: center; min-width: 0; }
.fin-bars { flex: 1; display: flex; gap: 4px; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line); }
.fin-bar { width: 38%; max-width: 30px; min-height: 2px; border-radius: 5px 5px 0 0; }
.fin-label { font-size: .72rem; color: var(--muted); margin-top: 4px; }
.fin-val { font-size: .66rem; color: #198754; white-space: nowrap; }

/* ---------- Adim 9B: panel ana sayfasi ---------- */
.dash-hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.today-list { padding: 6px 8px 10px; }
.today-item { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; color: inherit; text-decoration: none; transition: background .15s; }
a.today-item:hover { background: var(--hover); color: inherit; }
.today-item + .today-item { border-top: 1px dashed var(--line-2); }
.today-item.past { opacity: .6; }
.today-time { flex: 0 0 52px; font-variant-numeric: tabular-nums; font-weight: 700; font-size: .85rem; color: var(--muted); }
.today-dot { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.today-text { min-width: 0; display: flex; flex-direction: column; }
.today-text strong, .today-text > a { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.today-text small { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.donut { width: 124px; height: 124px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 124px; }
.donut-hole { width: 80px; height: 80px; border-radius: 50%; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.donut-hole strong { font-size: 1.5rem; }
.donut-hole span { font-size: .7rem; color: var(--muted); }
.chart-legend { list-style: none; padding: 0; margin: 0; font-size: .85rem; display: grid; gap: 5px; flex: 1; min-width: 140px; }
.chart-legend li { display: flex; align-items: center; gap: 8px; }
.chart-legend strong { margin-left: auto; }
.act-chart { display: flex; gap: 5px; align-items: flex-end; height: 130px; }
.act-col { flex: 1; display: flex; flex-direction: column; height: 100%; min-width: 0; }
.act-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 1px; border-bottom: 1px solid var(--line); }
.act-bar span { display: block; border-radius: 4px 4px 0 0; min-height: 3px; }
.act-label { text-align: center; font-size: .62rem; color: var(--muted); margin-top: 4px; }
.act-label.today { color: var(--accent); font-weight: 700; }

/* ---------- Adim 9B: komut paleti ---------- */
.palette[hidden] { display: none; }
.palette { position: fixed; inset: 0; z-index: 2000; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.palette-backdrop { position: absolute; inset: 0; background: rgba(8, 14, 26, .55); backdrop-filter: blur(3px); animation: pfade .15s ease; }
.palette-box { position: relative; width: 100%; max-width: 640px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.4); overflow: hidden; animation: ppop .18s cubic-bezier(.2,.8,.2,1); }
@keyframes pfade { from { opacity: 0; } }
@keyframes ppop { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.palette-input i { color: var(--muted); font-size: 1.1rem; }
.palette-input input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 1.02rem; min-width: 0; }
.palette-list { list-style: none; margin: 0; padding: 8px; max-height: min(56vh, 460px); overflow-y: auto; }
.palette-group { padding: 10px 12px 4px; font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.palette-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; cursor: pointer; color: var(--text); text-decoration: none; }
.palette-item .pi-ico { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; background: var(--surface-2); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
[data-bs-theme="dark"] .palette-item .pi-ico { color: color-mix(in srgb, var(--accent) 70%, #fff); }
.palette-item .pi-text { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.palette-item .pi-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-item .pi-sub { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-item .pi-tag { font-size: .68rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 1px 7px; }
.palette-item.active, .palette-item:hover { background: color-mix(in srgb, var(--brand) 10%, var(--surface)); color: var(--text); }
.palette-item.active .pi-ico { background: var(--brand); color: #fff; }
.palette-empty { padding: 26px 16px; text-align: center; color: var(--muted); font-size: .92rem; }
.palette-foot { display: flex; gap: 16px; padding: 9px 16px; border-top: 1px solid var(--line); font-size: .74rem; color: var(--muted); background: var(--surface-2); }
.palette-foot kbd { margin-right: 3px; }
@media (max-width: 575.98px) { .palette { padding-top: 6vh; } .palette-foot { display: none; } }
@media (prefers-reduced-motion: reduce) { .palette-box, .palette-backdrop { animation: none; } }

/* Sadece Dizayn kredi satirlari */
.side-credit { margin-top: .6rem; padding: .6rem .9rem 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .72rem; line-height: 1.5; color: rgba(255,255,255,.45); }
.side-credit a { color: rgba(255,255,255,.6); text-decoration: none; }
.side-credit a:hover { color: #fff; }
.admin-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1rem; padding: .9rem 1.25rem 1.1rem; font-size: .75rem; color: #98a2b3; }
.admin-foot a { color: #667085; text-decoration: none; }
.admin-foot a:hover { color: var(--brand, #1f3a5f); text-decoration: underline; }
.brand-credit { font-size: .75rem; }
@media print { .admin-foot, .side-credit { display: none !important; } }
.auth-credit{margin:.4rem 0 0;font-size:.75rem}.auth-credit,.auth-credit .brand-credit{color:rgba(255,255,255,.55)}.auth-credit a{color:rgba(255,255,255,.75);text-decoration:none}.auth-credit a:hover{color:#fff;text-decoration:underline}

/* Raporlar */
.rep-kpi { font-size: 1.45rem; font-weight: 700; line-height: 1.2; }
.rep-chart { overflow-x: auto; }
.rep-chart .fin-chart { min-width: 100%; width: max-content; }
.rep-chart .fin-col { min-width: 38px; }
.rep-bars .progress-bar { background: var(--brand, #1f3a5f); }
.rep-tabs .nav-link { color: var(--brand, #1f3a5f); }
.rep-tabs .nav-link.active { background: var(--brand, #1f3a5f); color: #fff; }
@media print { .rep-tabs, [data-report-dates] .btn, [data-report-dates] select, [data-report-dates] input { display: none !important; } .admin-sidebar, .admin-topbar { display: none !important; } }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Buro ictihat deposu (11D) */
.pc-text { white-space: pre-wrap; word-break: break-word; max-height: 70vh; overflow: auto; font-size: .92rem; line-height: 1.6; }
mark { background: #fde68a; color: inherit; padding: 0 .1em; border-radius: 3px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) mark { background: #854d0e; color: #fff; } }
:root[data-theme="dark"] mark { background: #854d0e; color: #fff; }
