/* CTYS tema */
:root {
  --ctys-teal: #0E7C86;
  --ctys-teal-2: #13A3A8;
  --ctys-navy: #12355B;
  --ctys-navy-2: #0D2846;
  --ctys-bg: #F3F6F9;
  --ctys-line: #E2E8EE;
  --ctys-muted: #5B6B7A;
  --bs-primary: #0E7C86;
  --bs-primary-rgb: 14, 124, 134;
  --bs-link-color: #0E7C86;
  --bs-link-color-rgb: 14, 124, 134;
  --bs-link-hover-color: #0a5f67;
  --bs-body-bg: #F3F6F9;
  --bs-body-font-size: .925rem;
  --bs-border-color: #E2E8EE;
}
body { background: var(--ctys-bg); color: #1B2733; }
.btn-primary { --bs-btn-bg: var(--ctys-teal); --bs-btn-border-color: var(--ctys-teal); --bs-btn-hover-bg: #0a6870; --bs-btn-hover-border-color: #0a6870; --bs-btn-active-bg: #095b62; --bs-btn-disabled-bg: var(--ctys-teal); --bs-btn-disabled-border-color: var(--ctys-teal); }
.btn-outline-primary { --bs-btn-color: var(--ctys-teal); --bs-btn-border-color: var(--ctys-teal); --bs-btn-hover-bg: var(--ctys-teal); --bs-btn-hover-border-color: var(--ctys-teal); --bs-btn-active-bg: var(--ctys-teal); }
.text-bg-primary { background-color: var(--ctys-teal) !important; }
.text-primary { color: var(--ctys-teal) !important; }
.bg-orange, .text-bg-orange { background-color: #F07C2A !important; color: #fff !important; }
.text-orange { color: #E06A15 !important; }
.form-control:focus, .form-select:focus { border-color: #7cc6ca; box-shadow: 0 0 0 .2rem rgba(14,124,134,.18); }
.form-check-input:checked { background-color: var(--ctys-teal); border-color: var(--ctys-teal); }
.page-link { color: var(--ctys-teal); }
.active > .page-link, .page-link.active { background-color: var(--ctys-teal); border-color: var(--ctys-teal); }
.nav-pills .nav-link.active { background: var(--ctys-teal); }
.nav-tabs .nav-link { color: var(--ctys-muted); }
.nav-tabs .nav-link.active { color: var(--ctys-navy); font-weight: 600; }

/* Yerleşim */
.uyg { display: flex; min-height: 100vh; }
.yan-menu { width: 252px; background: var(--ctys-navy); color: #cfdbe7; display: flex; flex-direction: column; }
@media (min-width: 992px) { .yan-menu { position: sticky; top: 0; height: 100vh; flex: none; } }
@media (max-width: 991.98px) { .yan-menu.offcanvas-lg { --bs-offcanvas-width: 272px; --bs-offcanvas-bg: var(--ctys-navy); } }
.yan-logo { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.yan-logo b { color: #fff; font-size: 19px; letter-spacing: 2px; display: block; line-height: 1.1; }
.yan-logo b span { color: #5FD3D6; }
.yan-logo small { font-size: 10.5px; color: #9fb3c6; }
.yan-nav { padding: 10px 10px; overflow-y: auto; flex: 1; }
.yan-nav a { display: flex; align-items: center; gap: 11px; color: #cfdbe7; text-decoration: none; padding: 9px 12px; border-radius: 9px; margin-bottom: 2px; font-size: .9rem; }
.yan-nav a i { font-size: 1.05rem; width: 20px; text-align: center; opacity: .85; }
.yan-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.yan-nav a.aktif { background: var(--ctys-teal); color: #fff; }
.yan-nav a.aktif i { opacity: 1; }
.yan-baslik { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #7f97ad; padding: 14px 12px 6px; }
.yan-alt { font-size: 11px; color: #7f97ad; padding: 12px 18px; border-top: 1px solid rgba(255,255,255,.08); }
.ana { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ust-bar { position: sticky; top: 0; z-index: 1020; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ctys-line); display: flex; align-items: center; gap: 10px; padding: 10px 20px; }
.ust-bar .btn-light { background: #fff; border-color: var(--ctys-line); }
.sayfa-baslik { font-size: 1.15rem; font-weight: 700; margin: 0; color: var(--ctys-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icerik { padding: 20px; flex: 1; }
@media (max-width: 575.98px) { .icerik { padding: 14px 12px; } .ust-bar { padding: 8px 12px; } }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ctys-teal); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.bildirim-menu { width: 360px; max-width: calc(100vw - 24px); padding: 0; max-height: 75vh; overflow-y: auto; }
.bildirim-oge { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-bottom: 1px solid #f0f3f6; white-space: normal; }
.bildirim-oge .nokta { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; }

/* Kartlar */
.card { border: 1px solid var(--ctys-line); border-radius: 14px; box-shadow: 0 1px 2px rgba(16,40,70,.04); }
.card-header { background: #fff; border-bottom: 1px solid var(--ctys-line); border-radius: 14px 14px 0 0 !important; padding: 12px 16px; font-weight: 600; color: var(--ctys-navy); display: flex; align-items: center; gap: 8px; }
.card-header .bi { color: var(--ctys-teal); }
.stat { display: flex; gap: 14px; align-items: center; padding: 16px; text-decoration: none; color: inherit; height: 100%; }
a.stat:hover { background: #fafcfd; border-radius: 14px; }
.stat .ikon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; flex: none; }
.stat .sayi { font-size: 1.6rem; font-weight: 700; line-height: 1.1; color: var(--ctys-navy); }
.stat .etiket { font-size: .8rem; color: var(--ctys-muted); }
.ikon.teal { background: #e3f4f5; color: var(--ctys-teal); }
.ikon.red { background: #fde8e8; color: #c62828; }
.ikon.amber { background: #fff4dc; color: #b26a00; }
.ikon.blue { background: #e6effa; color: #1d5fae; }
.ikon.green { background: #e5f5ea; color: #1e7b3c; }
.ikon.gray { background: #eef1f4; color: #5b6b7a; }
.ikon.orange { background: #fdeee2; color: #d35f0b; }
.gecikme-kart { border-left: 4px solid; }
.gecikme-kart.info { border-left-color: #0dcaf0; }
.gecikme-kart.warning { border-left-color: #ffc107; }
.gecikme-kart.orange { border-left-color: #F07C2A; }
.gecikme-kart.danger { border-left-color: #dc3545; }
.hizli a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px 6px; border-radius: 12px; border: 1px solid var(--ctys-line); background: #fff; text-decoration: none; color: var(--ctys-navy); font-size: .82rem; font-weight: 600; text-align: center; height: 100%; }
.hizli a i { font-size: 1.4rem; color: var(--ctys-teal); }
.hizli a:hover { border-color: var(--ctys-teal); background: #f2fafa; }

/* Tablolar */
.table { --bs-table-bg: transparent; }
.table > :not(caption) > * > * { padding: .6rem .65rem; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ctys-muted); font-weight: 600; background: #f8fafb; white-space: nowrap; }
.table-hover tbody tr:hover > * { background: #f5fafa; }
tr.satir-yeni > * { background: #fff1f1 !important; }
tr.tikla { cursor: pointer; }
div.dt-container .dt-search input { border-radius: 8px; }
div.dt-container div.dt-buttons .btn { font-size: .8rem; }
.dt-container .row { --bs-gutter-x: .5rem; }
.badge { font-weight: 600; }
.text-bg-warning { color: #3d2b00 !important; }
.gun-rozet { min-width: 54px; display: inline-block; text-align: center; }

/* Yanıp sönen yeni işareti */
.nabiz { animation: nabiz 1.4s infinite; }
@keyframes nabiz { 0%,100% { box-shadow: 0 0 0 0 rgba(220,53,69,.6); } 50% { box-shadow: 0 0 0 6px rgba(220,53,69,0); } }
.yeni-isaret { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #dc3545; animation: nabiz 1.4s infinite; vertical-align: middle; }

/* Akış adımları */
.akis { display: flex; flex-wrap: wrap; gap: 4px; }
.akis .adim { flex: 1 1 110px; text-align: center; font-size: .75rem; padding: 8px 4px; border-radius: 8px; background: #eef1f4; color: var(--ctys-muted); position: relative; }
.akis .adim.tamam { background: #e3f4f5; color: var(--ctys-teal); font-weight: 600; }
.akis .adim.simdi { background: var(--ctys-teal); color: #fff; font-weight: 700; }
.akis .adim.hata { background: #fde8e8; color: #c62828; font-weight: 600; }
.zaman-cizelgesi { list-style: none; padding: 0; margin: 0; position: relative; }
.zaman-cizelgesi li { position: relative; padding: 0 0 14px 22px; }
.zaman-cizelgesi li::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: -6px; width: 2px; background: var(--ctys-line); }
.zaman-cizelgesi li:last-child::before { display: none; }
.zaman-cizelgesi li::after { content: ''; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--ctys-teal); }
.bilgi-listesi { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 6px 12px; margin: 0; font-size: .9rem; }
.bilgi-listesi dt { color: var(--ctys-muted); font-weight: 500; }
.bilgi-listesi dd { margin: 0; word-break: break-word; }
.qr-kutu { background: #fff; border: 1px solid var(--ctys-line); border-radius: 12px; padding: 10px; display: inline-block; }
.qr-kutu img, .qr-kutu canvas, .qr-kutu svg { display: block; width: 140px; height: 140px; }
.bos-durum { text-align: center; padding: 34px 12px; color: var(--ctys-muted); }
.bos-durum i { font-size: 2.2rem; color: #b8c6d3; display: block; margin-bottom: 8px; }
.form-label { font-weight: 600; font-size: .83rem; color: #34495e; margin-bottom: .3rem; }
.zorunlu::after { content: ' *'; color: #dc3545; }
.foto-kucuk { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--ctys-line); }
@media print { .yan-menu, .ust-bar, .no-print, .dt-buttons, .dt-search, .dt-paging, .dt-length { display: none !important; } .icerik { padding: 0; } .card { border: none; box-shadow: none; } }

/* Düzeltmeler */
.yan-menu, .yan-menu.offcanvas-lg { background-color: var(--ctys-navy) !important; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.btn:hover, .nav-link:hover, .yan-nav a:hover, a.stat:hover, .hizli a:hover, .list-group-item-action:hover, .dropdown-item:hover { text-decoration: none; }
@media (min-width: 1200px) and (max-width: 1599.98px) { .stat { padding: 14px 12px; gap: 10px; } .stat .ikon { width: 40px; height: 40px; font-size: 1.15rem; } .stat .sayi { font-size: 1.4rem; } }
/* Dışa aktarma butonları */
div.dt-container div.dt-buttons { display: inline-flex; gap: 6px; }
div.dt-container div.dt-buttons > .btn { border-radius: 8px !important; background: #fff; font-weight: 600; }
div.dt-container div.dt-buttons > .btn-outline-success { color: #198754; border-color: #198754; }
div.dt-container div.dt-buttons > .btn-outline-danger { color: #dc3545; border-color: #dc3545; }
div.dt-container div.dt-buttons > .btn-outline-secondary { color: #495057; border-color: #adb5bd; }
div.dt-container div.dt-buttons > .btn-outline-success:hover { background: #198754; color: #fff; }
div.dt-container div.dt-buttons > .btn-outline-danger:hover { background: #dc3545; color: #fff; }
div.dt-container div.dt-buttons > .btn-outline-secondary:hover { background: #6c757d; border-color: #6c757d; color: #fff; }
/* Bildirim çanı rozeti: butonun önünde, beyaz halkalı */
.bildirim-btn { position: relative; overflow: visible; }
.bildirim-rozet { position: absolute; top: -7px; right: -7px; z-index: 5; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: #dc3545; color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center;
  box-shadow: 0 0 0 2px #fff; pointer-events: none; }
.ust-bar .dropdown { position: relative; z-index: 1; }
