:root {
    --bg: #f4f5f7;
    --card-bg: #ffffff;
    --text: #1d1d1f;
    --primary: #007aff;
    --orange: #ff9500;
    --green: #34c759;
    --red: #ff3b30;
}
* { box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--text); margin: 0; padding-bottom: 90px; }
a { text-decoration: none; color: inherit; }
.btn { border: none; padding: 10px 20px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.2s; background: #e5e5ea; color: var(--text); }
.btn-primary { background: var(--primary); color: white; }
.btn:hover { filter: brightness(0.9); }
.modern-input { border: 1px solid #d1d1d6; border-radius: 8px; padding: 10px; font-size: 14px; outline: none; transition: 0.2s; width: 100%; }
.modern-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,122,255,0.2); }
.irsaliye-input-prominent { font-size: 22px !important; text-align: center; font-weight: 900 !important; letter-spacing: 3px; padding: 15px !important; background: #fffadc; border: 2px solid #ff9500 !important; color: #d97700; }
.irsaliye-input-prominent:focus { box-shadow: 0 0 0 4px rgba(255,149,0,0.2) !important; background: #fff; }
.top-bar { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); padding: 15px 30px; box-shadow: 0 1px 10px rgba(0,0,0,0.05); position: sticky; top:0; z-index: 100; flex-wrap: wrap; gap: 10px; }
.menu-left { display: flex; gap: 20px; flex: 1; }

/* Mobil / dar ekran: hamburger menü */
.nav-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid #e5e5ea; background: #fff; color: #1d1d1f; font-size: 20px; line-height: 1; cursor: pointer; flex-shrink: 0; transition: background 0.2s; }
.nav-toggle:hover { background: #f2f2f7; }
/* Rampa rolü Ayarlar sayfasında hamburger yerine geri oku gösterilir.
   Masaüstünde de görünmesi gerekir (menü çubuğu hiç basılmaz). */
.nav-toggle.nav-back { display: flex; text-decoration: none; }
.nav-toggle.nav-back svg { width: 22px; height: 22px; display: block; }
[data-tema="koyu"] .nav-toggle.nav-back { background: #1c1c1f; border-color: #2c2c2e; color: #f2f2f7; }
.nav-btn { font-weight: 500; padding: 8px 12px; border-radius: 8px; transition: 0.2s; white-space: nowrap; }
.nav-btn:hover { background: #e5e5ea; }
.menu-center { flex: 1; display: flex; justify-content: center; }
.top-add-btn { display: none !important; }
.menu-right { display: flex; align-items: center; gap: 25px; flex: 1; justify-content: flex-end; }
.clock { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 16px; color: #555; white-space: nowrap; }
.dropdown { position: relative; display: inline-block; padding-bottom: 15px; margin-bottom: -15px; } 
.profile-icon { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #005bb5); color: white; display: flex; align-items: center; justify-content: center; font-weight: bold; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 10px rgba(0,122,255,0.3); flex-shrink: 0; padding: 3px; box-sizing: border-box; line-height: 1; letter-spacing: -0.3px; text-align: center; overflow: hidden; word-break: break-word; }
.profile-icon:hover { transform: scale(1.08); box-shadow: 0 6px 15px rgba(0,122,255,0.4); }
.dropdown-content { display: none; position: absolute; right: 0; top: 100%; background-color: #fff; box-shadow: 0px 10px 30px rgba(0,0,0,0.15); border-radius:12px; overflow:hidden; min-width: 160px; z-index: 110; }
.dropdown-content a { padding: 14px 20px; display: block; cursor:pointer; font-size: 14px; font-weight: 600; transition: background 0.2s; white-space: nowrap; }
.dropdown-content a:hover { background-color: #f2f2f7; }
.dropdown:hover .dropdown-content { display: block; }
.bottom-action-bar { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 15px; z-index: 100; background: rgba(255,255,255,0.9); backdrop-filter: blur(20px); border-radius: 40px; padding: 6px 10px 6px 6px; box-shadow: 0 10px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.bottom-action-bar:hover { transform: translateX(-50%) translateY(-3px) scale(1.02); }
.floating-date-widget { display: flex; align-items: center; gap: 8px; }
.date-input { border:none; background:transparent; font-weight:800; font-size:16px; outline:none; text-align:center; color: var(--primary); cursor: pointer; padding: 0 10px; width: 140px; font-family: inherit; }
.date-btn { padding: 0; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; background: #fff; color: #333; border: 1px solid #eaeaea; box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: 0.2s; cursor: pointer; }
.date-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.new-delivery-fab { background: var(--primary); color: white; border: none; border-radius: 30px; padding: 12px 25px; font-size: 15px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 15px rgba(0,122,255,0.3); transition: 0.2s; white-space: nowrap; display: flex; align-items: center; gap: 8px;}
.new-delivery-fab:hover { background: #006ce6; transform: scale(1.03); box-shadow: 0 6px 20px rgba(0,122,255,0.4); }
.missed-deliveries-badge { position: fixed; bottom: 95px; left: 50%; transform: translateX(-50%); background: #ff3b30; color: #fff; padding: 8px 20px; border-radius: 20px; font-size: 13px; font-weight: 700; box-shadow: 0 4px 15px rgba(255, 59, 48, 0.4); cursor: help; z-index: 100; display:flex; align-items:center; gap:8px; animation: bounce 2s infinite; letter-spacing: 0.5px; }
.missed-tooltip { display: none; position: absolute; bottom: 130%; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.85); color: #fff; padding: 12px 15px; border-radius: 10px; font-size: 12px; white-space: nowrap; line-height: 1.6; font-weight: 500; text-align: left; z-index: 101; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.missed-tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; margin-left: -6px; border-width: 6px; border-style: solid; border-color: rgba(0,0,0,0.85) transparent transparent transparent; }
.missed-deliveries-badge:hover .missed-tooltip { display: block; }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-5px); } }
.login-bg { display: flex; justify-content: center; align-items: center; height: 100vh; background: #e5e5ea; padding-bottom: 0; }
.login-container { text-align: center; }
.profiles { display: flex; gap: 40px; justify-content: center; }
.profile-card { width: 120px; height: 120px; border-radius: 50%; background: #fff; box-shadow: 0 10px 20px rgba(0,0,0,0.1); display: flex; justify-content: center; align-items: center; font-size: 50px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.profile-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }

/* KANBAN TASARIMLARI */
.kanban-wrapper { width: 100%; overflow-x: auto; padding: 35px 15px 20px 15px; display: flex; } 
.kanban-board { display: flex; gap: 10px; margin: 0; min-width: 100%; }
.kanban-col-container { flex: 1; min-width: 280px; display: flex; flex-direction: column; }
.col-title { text-align: center; margin: 0 0 10px 0; font-size: 15px; color: #1d1d1f; font-weight: 800; letter-spacing: -0.5px; text-transform: uppercase;}
.bolum-count { background: var(--primary); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 12px; margin-left: 5px; vertical-align: middle; box-shadow: 0 2px 5px rgba(0,122,255,0.3); font-weight: 800; display: inline-block; }
.kanban-column { background: rgba(235, 235, 240, 0.7); border-radius: 14px; border: 1px solid #d1d1d6; box-shadow: 0 2px 10px rgba(0,0,0,0.02); display: flex; flex-direction: column; flex: 1; }
.kanban-dropzone { flex: 1; padding: 6px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; align-content: start; }
.kanban-slot { min-height: 110px; border: 2px dashed rgba(0,0,0,0.12); border-radius: 10px; display: flex; align-items: stretch; justify-content: stretch; position: relative; transition: all 0.2s; background: rgba(255,255,255,0.4); }
.kanban-slot.drag-over { background: rgba(0,122,255,0.1); border-color: var(--primary); transform: scale(1.02); }
.kanban-slot::before { content: attr(data-sira); position: absolute; left: 8px; top: 8px; font-size: 18px; font-weight: 900; color: rgba(0,0,0,0.05); z-index: 0; pointer-events: none; font-family: monospace; }
.kanban-card { margin: 0; height: 100%; background: #fff; border-radius: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); width: 100%; position: relative; border: 1px solid #e5e5ea; display: flex; flex-direction: column; cursor: grab; transition: transform 0.2s, box-shadow 0.2s, z-index 0s; z-index: 5; animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.kanban-card:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,0.12); z-index: 50; } 
.kanban-card:active { cursor: grabbing; transform: scale(0.98); }
.card-layout { display: flex; flex-direction: column; flex: 1; padding: 14px 6px 10px 6px; gap: 4px; align-items: center; overflow: hidden; justify-content: start; }
.card-left { flex: none; width: 100%; display: flex; flex-direction: column; align-items: center; border-bottom: 1px dashed #e5e5ea; padding-bottom: 6px; gap: 4px; position: relative; }
.card-right { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 5px; text-align: center; overflow: hidden; padding-top: 6px;}
.sira-no { position: absolute; top: -8px; left: -8px; background: var(--primary); color: white; padding: 2px 7px; border-radius: 8px; font-size: 10px; font-weight: 900; z-index: 12; border: 2px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.plaka-badge { background: #f2f2f7; color: #1d1d1f; padding: 4px 6px; border-radius: 6px; font-family: monospace; font-size: 13px; font-weight: 800; border: 1px solid #d1d1d6; white-space: nowrap; width: fit-content; max-width: 95%; text-align: center; margin: 2px auto 0 auto; overflow: hidden;}
.plaka-badge.empty { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }
.surucu { font-size: 10px; font-weight: 600; color: #666; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; margin-top: 2px;}
.c-bayi { font-weight: 800; font-size: 11px; color: var(--text); line-height: 1.3; width: 100%; display: flex; flex-direction: column; gap: 2px; align-items: center; margin-bottom: 2px; }
.c-bayi span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 95%; text-align: center; }
.turler { font-size: 10px; color: var(--primary); background: #f0f8ff; padding: 3px 6px; border-radius: 6px; border: 1px solid #cce5ff; font-weight:bold; display: inline-block; width: fit-content;}
.status-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); padding: 2px 10px; border-radius: 12px; font-size: 9px; font-weight: 900; color: #fff; z-index: 40; box-shadow: 0 2px 5px rgba(0,0,0,0.2); white-space: nowrap; border: 2px solid #fff; letter-spacing: 0.5px; }
.status-bekliyor { background: var(--orange); }
.status-gitti { background: var(--green); }
.creator-avatar-hover { position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%) scale(0.5); opacity: 0; transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 40; pointer-events: none; }
.kanban-card:hover .creator-avatar-hover { opacity: 1; bottom: -16px; transform: translateX(-50%) scale(1); }
.creator-avatar-hover .c-avatar { width: 26px; height: 26px; background: var(--primary); border: 2px solid #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: 11px; box-shadow: 0 4px 8px rgba(0,0,0,0.4); }
.card-actions { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column !important; align-items: stretch !important; justify-content: center; gap: 5px !important; padding: 10px !important; opacity: 0; transition: opacity 0.2s ease; background: rgba(0,0,0,0.75); backdrop-filter: blur(4px); z-index: 10; border-radius: 10px; }
.kanban-card:hover .card-actions { opacity: 1; }
.card-action-btn { flex: none; width: 100%; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 11px; cursor: pointer; transition: 0.2s; text-align: center; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.card-action-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-gitti { background: rgba(52,199,89,0.9); }
.btn-duzenle { background: rgba(0,122,255,0.9); }
.btn-sil { background: rgba(255,59,48,0.9); }
.btn-warning { background: rgba(255,149,0,0.9); }
.lock-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: transparent; display: none; flex-direction: column; align-items: center; justify-content: center; z-index: 25; cursor: pointer; transition: all 0.2s; border-radius: 10px; }
.kanban-card.is-gitti.is-locked .lock-overlay { display: flex; }
.lock-content { transform: rotate(-10deg); text-align: center; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.lock-icon { font-size: 34px; opacity: 0.35; transition: opacity 0.2s; }
.lock-text { font-size: 14px; font-weight: 900; color: rgba(0,0,0, 0.3); margin-top: 2px; letter-spacing: 1px; text-transform: uppercase; text-shadow: 1px 1px 0px rgba(255,255,255,0.6); transition: color 0.2s; }
.lock-overlay:hover { background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); }
.lock-overlay:hover .lock-content { transform: rotate(0deg) scale(1.05); }
.lock-overlay:hover .lock-icon { opacity: 1; }
.lock-overlay:hover .lock-text { color: var(--primary); }
.kanban-card.is-gitti.is-locked .card-actions { display: none !important; }
.kanban-card.is-gitti { border-color: #bbf7d0; box-shadow: none; background: #f4fdf8; cursor: default; }
.kanban-card.is-gitti:active { transform: none; }
.kanban-card.is-gitti .card-layout { padding: 14px 6px 10px 6px; opacity: 0.65; transition: opacity 0.2s; } 
.kanban-card.is-gitti:hover .card-layout { opacity: 0.20; }
.kanban-card.is-gitti .card-left { padding-bottom: 4px; gap: 2px; }
.kanban-card.is-gitti .plaka-badge { font-size: 11px; padding: 3px 4px; margin-top: 4px; }
.kanban-card.is-gitti .surucu { font-size: 9px; }
.kanban-card.is-gitti .c-bayi { font-size: 10px; margin-bottom:2px; }
.kanban-card.is-gitti .turler { font-size: 9px; padding: 2px 4px; }
.kanban-card.is-gitti:not(.is-locked):hover .card-actions { display: flex !important; opacity: 1; padding: 10px !important; border-radius: 10px; }

/* DİĞER STANDART BİLEŞENLER */
.tr-plate { display: flex; border: 2px solid #1d1d1f; border-radius: 8px; overflow: hidden; width: fit-content; background: #fff; }
.tr-blue { background: #003399; color: #fff; font-weight: bold; padding: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; width: 30px; }
.tr-plate input { border: none; text-align: center; font-size: 22px; font-weight: bold; outline: none; border-left: 1px solid #d1d1d6; text-transform: uppercase; }
.tr-plate input:nth-child(2) { width: 45px; }
.tr-plate input:nth-child(3) { width: 75px; }
.tr-plate input:nth-child(4) { width: 75px; }
.modal-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.4); backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: center; z-index: 9999; }
.modal-box { background: #fff; padding: 30px; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.2); min-width: 320px; animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); max-height: 90vh; overflow-y: auto;}
@keyframes popIn { 0% { transform: scale(0.9); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.bayi-search-wrapper { background: #f9f9fb; border: 1px solid #eaeaea; border-radius: 12px; padding: 15px; margin-bottom: 15px; }
.bayi-scroll-list { max-height: 140px; overflow-y: auto; display: flex; flex-wrap: wrap; gap: 5px; padding-right: 5px; }
.autocomplete-box { display: flex; border: 1px solid #eee; }
.autocomplete-item { padding: 10px 15px; border-bottom: 1px solid #f2f2f7; font-size: 14px; cursor: pointer; transition: background 0.2s; }
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover, .autocomplete-item.focused { background: #f2f2f7; color: var(--primary); }
.ac-alt { color: #666; }
.ac-bos { color: #888; }

.pill { padding: 8px 16px; background: #e5e5ea; border-radius: 20px; margin: 5px; cursor: pointer; display: inline-flex; align-items: center; transition: 0.2s; user-select: none; font-weight: 600; font-size: 14px; }
.pill.active { background: var(--primary); color: #fff; box-shadow: 0 4px 10px rgba(0,122,255,0.3); }
.star { cursor: pointer; color: #a8a8b0; margin-left: 8px; font-size: 19px; line-height: 1; transition: 0.18s; user-select: none; display: inline-block; width: 1em; text-align: center; }
.star::before { content: '☆'; }
.star:hover { color: #ffb300; transform: scale(1.18); }
.star.fav { color: #ffb300; text-shadow: 0 0 6px rgba(255,179,0,0.55); transform: scale(1.18); }
.star.fav::before { content: '★'; }
/* Aktif (seçili) hap içinde yıldız kontrastı */
.pill.active .star { color: rgba(255,255,255,0.72); }
.pill.active .star:hover,
.pill.active .star.fav { color: #ffd60a; text-shadow: 0 0 6px rgba(0,0,0,0.35); }

.tab-container { display: flex; gap: 15px; margin-bottom: 25px; overflow-x: auto; padding-bottom: 10px; justify-content: center; }
.tab-btn { padding: 12px 24px; background: #fff; border: 1px solid #d1d1d6; border-radius: 12px; font-weight: 700; font-size: 15px; color: #555; cursor: pointer; transition: 0.2s; white-space: nowrap; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.tab-btn:hover { background: #f2f2f7; transform: translateY(-2px); }
.tab-btn.active { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 6px 15px rgba(0,122,255,0.3); transform: translateY(-2px); }
.tab-content { display: none; animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.tab-content.active { display: block; }
.master-panel.wide-panel { max-width: 1000px; margin: 0 auto; padding: 30px; background: #fff; border-radius: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.master-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 15px; }
.master-card { padding: 20px; background: var(--bg); border-radius: 12px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; border: 1px solid #eaeaea; box-shadow: 0 4px 10px rgba(0,0,0,0.02); min-height: 110px; transition: 0.2s; }
.master-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.master-card .card-actions { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.75); backdrop-filter: blur(3px); display: flex; flex-direction: row !important; align-items: center !important; justify-content: center !important; gap: 10px !important; padding: 0 20px; opacity: 0; transition: 0.2s; z-index: 10; border-radius: 12px; pointer-events: none; }
.tab-content .master-card:hover .card-actions { opacity: 1; pointer-events: auto; }
.master-card .card-action-btn { width: auto; flex: 1; height: 38px; font-size: 13px; }
.modern-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.04); margin-bottom: 30px; }
.modern-table th, .modern-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid #f2f2f7; }
.modern-table th { background: #f9f9fb; font-weight: 700; color: #555; text-transform: uppercase; font-size: 12px; letter-spacing: 0.5px; }
.modern-table tbody tr:hover { background: #fcfcfd; }
.pin-group { display: flex; gap: 10px; justify-content: center; }
.pin-box { width: 45px; height: 55px; font-size: 24px; text-align: center; border: 2px solid #e5e5ea; border-radius: 12px; font-weight: bold; color: var(--text); outline: none; transition: 0.2s; background: #f9f9fb; padding: 0; }
.pin-box:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(0,122,255,0.15); }

/* ==== ŞİFRE DEĞİŞTİRME PENCERESİ: BÖLÜM AYRIMI ==== */
.pin-bolum {
    text-align: left;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid #e5e5ea;
    background: #f7f7fa;
}
.pin-bolum-eski { background: #f7f7fa; border-color: #e5e5ea; }
.pin-bolum-yeni { background: #f2f8ff; border-color: #cfe3ff; }
.pin-bolum-baslik {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #6e6e73;
    margin-bottom: 3px;
}
.pin-bolum-yeni .pin-bolum-baslik { color: #007aff; }
.pin-bolum-ikon { font-size: 13px; }
.pin-bolum-alt { font-size: 10.5px; font-weight: 700; color: #a0a0a5; margin-bottom: 11px; }
.pin-bolum .pin-group { justify-content: flex-start; }
.pin-bolum-yeni .pin-box { border-color: #bcd9ff; background: #fff; }
.pin-ayrac { display: flex; align-items: center; justify-content: center; padding: 6px 0; color: #c7c7cc; font-size: 11px; }
[data-tema="koyu"] .pin-bolum-eski { background: #1c1c1f; border-color: #3a3a3c; }
[data-tema="koyu"] .pin-bolum-yeni { background: #12202e; border-color: #264a6e; }
[data-tema="koyu"] .pin-bolum-baslik { color: #c7c7cc; }
[data-tema="koyu"] .pin-bolum-yeni .pin-bolum-baslik { color: #4da3ff; }
[data-tema="koyu"] .pin-bolum-alt { color: #8e8e93; }
[data-tema="koyu"] .pin-bolum-yeni .pin-box { background: #1c1c1f; border-color: #264a6e; }
[data-tema="koyu"] .pin-ayrac { color: #48484a; }
@media (max-width: 420px) {
    .pin-bolum { padding: 12px 10px; }
    .pin-bolum .pin-group { gap: 7px; }
    .pin-bolum .pin-box { width: 40px; height: 50px; font-size: 20px; }
}
@media (max-width: 380px) {
    .pin-bolum .pin-box { width: 37px; height: 47px; font-size: 18px; }
}
/* Şifre değiştirme düğmeleri dar ekranda tek satırda kalsın */
.modal-box #btn-change-pin,
.modal-box #btn-change-pin-iptal {
    white-space: nowrap;
    font-size: 13.5px;
    padding-left: 8px;
    padding-right: 8px;
}
.shake { animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake { 10%, 90% { transform: translate3d(-1px, 0, 0); } 20%, 80% { transform: translate3d(2px, 0, 0); } 30%, 50%, 70% { transform: translate3d(-4px, 0, 0); } 40%, 60% { transform: translate3d(4px, 0, 0); } }

/* ========================================================
   YÜZEN PENCERE WIDGET TASARIMLARI (NOTLAR VE ARAÇ ÖZETİ)
======================================================== */

/* NOTLAR WIDGET'I */
.notes-widget { position: fixed; bottom: 30px; right: 30px; z-index: 1000; display: flex; flex-direction: column; align-items: flex-end; }
.notes-fab { display: flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; border: none; border-radius: 50%; width: 50px; height: 50px; font-size: 20px; cursor: pointer; box-shadow: 0 8px 25px rgba(0,122,255,0.4); transition: transform 0.2s, box-shadow 0.2s; position: relative; padding: 0; }
.notes-fab:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,122,255,0.5); }
.notes-badge { position: absolute; top: -2px; right: -2px; width: 16px; height: 16px; background: var(--red); border-radius: 50%; border: 2px solid #fff; display: block; animation: bounce 2s infinite; }

.notes-panel { width: 360px; background: #ffffff; border-radius: 24px; box-shadow: 0 15px 50px rgba(0,0,0,0.15); display: flex; flex-direction: column; margin-bottom: 20px; opacity: 0; pointer-events: none; transform: translateY(20px) scale(0.95); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: absolute; bottom: 65px; right: 0; overflow: hidden; border: 1px solid rgba(0,0,0,0.05); transform-origin: bottom right; }
.notes-panel.open { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.notes-header { background: #f9f9fb; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #f2f2f7; }
.notes-close-btn { background: none; border: none; font-size: 16px; color: #888; cursor: pointer; transition: 0.2s; padding: 0; }
.notes-close-btn:hover { color: var(--red); transform: scale(1.1); }
.notes-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 15px; max-height: 400px; background: #fafafc; }
.note-item { display: flex; gap: 12px; position: relative; animation: popIn 0.3s ease-out; align-items: flex-start; }
.note-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 36px;
    max-width: 120px;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #007aff;
    color: #fff;
    font-weight: 900;
    font-size: 10.5px;
    letter-spacing: 0;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,122,255,0.2);
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
    margin-top: 2px;
}
.note-content-box { background: #fff; padding: 10px 14px; border-radius: 0 16px 16px 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); flex: 1; border: 1px solid #f2f2f7; position: relative; transition: 0.2s; }
.note-content-box:hover { border-color: #e5e5ea; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.note-meta-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; min-height: 16px; gap: 8px; }
.note-meta-left { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
/* Not içindeki kullanıcı simgesi: tarih/saatin hemen solunda, küçük */
.note-meta-left .note-avatar {
    height: 18px;
    min-width: 0;
    max-width: 90px;
    padding: 0 7px;
    font-size: 9px;
    margin-top: 0;
    box-shadow: none;
}
.note-datetime { font-size: 10px; color: #999; font-weight: 600; letter-spacing: 0.2px; }
.note-text { font-size: 13px; color: #1d1d1f; line-height: 1.4; word-break: break-word; }

/* Not Silme Butonu (Hoverda Görünür) */
.note-delete-hover { opacity: 0; pointer-events: none; background: #fee2e2; color: #ff3b30; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 6px; cursor: pointer; transition: 0.2s; }
.note-item:hover .note-delete-hover { opacity: 1; pointer-events: auto; }
.note-delete-hover:hover { background: #ff3b30; color: #fff; }

/* Öncelik Renkleri */
.priority-Yüksek .note-content-box { border-left: 3px solid var(--red); }
.priority-Sonsuz .note-content-box { border-left: 3px solid #8e44ad; background: #fdfaff; }

/* @page KURALI BİLİNÇLİ OLARAK @media DIŞINDA:
   Bazı Chrome sürümleri @media print içindeki @page kuralını yok sayıyor,
   bu yüzden kenar boşluğu uygulanmıyor ve içerik kâğıt kenarına yapışıyordu.
   Sayfa marjı 0; gerçek boşluk aşağıda .content-wrapper dolgusuyla veriliyor. */
@page { size: A4 portrait; margin: 0; }

@media print {
    /* Yazdırma her zaman AÇIK tema ile yapılır. Koyu mod seçili olsa bile
       kâğıt görünümü değişmez. */
    html, body { zoom: 1 !important; background: #fff !important; color: #000 !important; margin: 0 !important; padding: 0 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    body > *:not(#app-content) { display: none !important; }
    #app-content > *:not(.content-wrapper) { display: none !important; }
    #app-content { padding: 0 !important; margin: 0 !important; }
    .content-wrapper > *:not(#print-area):not(#tab-gunluk) { display: none !important; }
    #tab-gunluk { display: block !important; margin: 0 !important; padding: 0 !important; }
    #tab-gunluk > *:not(#print-area) { display: none !important; }
    /* KENAR BOŞLUĞU doğrudan yazdırma alanının kendi dolgusuyla veriliyor:
       üst/alt 30mm, sağ/sol 26mm. Böylece hiçbir kapsayıcı kuralı, mobil
       kural veya tarayıcı kenar boşluğu ayarı bu boşluğu ezemez. */
    .content-wrapper {
        padding: 0 !important;
        margin: 0 !important;
        max-width: none !important;
        width: auto !important;
        box-sizing: border-box !important;
        box-shadow: none !important;
    }
    #print-area {
        /* üst 20mm, sağ/sol 26mm, alt 30mm */
        padding: 20mm 26mm 30mm 26mm !important;
        box-sizing: border-box !important;
        width: 100% !important;
        margin: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        background: #fff !important;
        color: #000 !important;
    }

    /* Başlık ve özet alanları kompakt: tek sayfaya yer açılır. */
    .print-header { margin-bottom: 8px !important; }
    .print-header h1 { font-size: 15px !important; margin: 0 0 2px 0 !important; }
    .print-header h3 { font-size: 11.5px !important; margin: 0 !important; }
    /* Toplam sevkiyat + toplam tutar TEK satırda kalır. Tutar vurgusu
       (inline 18px) yazdırmada küçültülür; aksi hâlde satır alt satıra
       taşıyordu. */
    .summary-box { margin-top: 8px !important; padding: 8px 15px !important; font-size: 11px !important;
        display: flex !important; justify-content: space-between !important; align-items: center !important;
        gap: 14px !important; flex-wrap: nowrap !important; }
    .summary-box > div { white-space: nowrap !important; }
    .summary-box span { font-size: 13px !important; line-height: 1.2 !important; }
    .signature-area { margin-top: 14px !important; }

    /* Tablo yazdırma alanının TAMAMINI kaplar. Böylece sol ve sağ kenar
       boşlukları birebir eşit olur; tablo hiçbir zaman sağa kaymış görünmez.
       table-layout:auto ile sütun genişlikleri içeriğe göre dağıtılır.
       Hücreler tek satırda kalır. */
    .modern-table.print-table,
    .print-table,
    #gunluk-tablo {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: auto !important;
    }
    .print-table th,
    .print-table td { white-space: nowrap !important; word-break: normal !important; overflow-wrap: normal !important; font-size: 10.5px !important; padding: 4px 6px !important; line-height: 1.25 !important; }

    /* ÖNEMLİ: Mobil kural (.modern-table { display:block; overflow-x:auto })
       yazdırma sırasında dar sayfa genişliğinde devreye girip tabloyu
       bozuyordu. Yazdırmada tablo normal tablo olarak kalır. */
    .modern-table { display: table !important; table-layout: auto !important; overflow: visible !important; max-width: 100% !important; width: 100% !important; }
    /* Sekme/kart açılış animasyonu yazdırmayı ölçeklemesin: popIn animasyonu
       %90 ölçekte yakalanırsa tüm sayfa küçük ve kaymış yazdırılır. */
    .tab-content, .kanban-card, .modal-box, .note-item { animation: none !important; transform: none !important; }
    #print-area { transform: none !important; }
    .modern-table th, .modern-table td { white-space: nowrap !important; }
    .modern-table { border: 1px solid #000; border-collapse: collapse; margin: 0 auto 8px auto !important; border-radius: 0 !important; background: #fff !important; }
    .modern-table th, .modern-table td { border: 1px solid #000 !important; padding: 4px 6px !important; color: #000 !important; font-size: 10.5px !important; text-align: center !important; background: transparent !important; }
    .modern-table th { background: #eee !important; color: #000 !important; }
    .summary-box, .signature-area, .signature-area * { background: transparent !important; color: #000 !important; border-color: #000 !important; }
    .no-print { display: none !important; }
    /* Koyu tema kurallarını yazdırmada etkisiz bırak. */
    [data-tema="koyu"] body,
    [data-tema="koyu"] #app-content,
    [data-tema="koyu"] .content-wrapper,
    [data-tema="koyu"] .modern-table,
    [data-tema="koyu"] .modern-table th,
    [data-tema="koyu"] .modern-table td,
    [data-tema="koyu"] .tab-btn,
    [data-tema="koyu"] .modal-box { background: #fff !important; color: #000 !important; border-color: #000 !important; }
    [data-tema="koyu"] .modern-table th { background: #eee !important; }
}

/* =========================================================
   MOBİL / DAR EKRAN: ÜST MENÜ HAMBURGER
   Menünün sığmadığı genişliklerde alt alta açılır.
   ========================================================= */
@media screen and (max-width: 1100px) {
    .top-bar { flex-wrap: nowrap; padding: 12px 16px; gap: 10px; }
    .nav-toggle { display: flex; order: -1; }

    .menu-left {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 2px;
        padding: 10px;
        background: #ffffff;
        border-top: 1px solid #f2f2f7;
        box-shadow: 0 12px 30px rgba(0,0,0,0.12);
        z-index: 120;
        flex: initial;
    }
    .menu-left.open { display: flex; }
    .menu-left .nav-btn { padding: 12px 14px; border-radius: 8px; }

    .menu-center { display: none; }
    .menu-right { flex: 0 0 auto; gap: 12px; }
    .clock { font-size: 13px; }
}

@media screen and (max-width: 480px) {
    .clock { display: none; }
    .top-bar { padding: 10px 12px; }
}

/* =========================================================
   BİLDİRİM VE DURUM GÖSTERGELERİ
   Üstte ince yükleme çubuğu, ortada kısa bildirim (toast),
   üstte bağlantı durumu şeridi. Sayfa düzenini değiştirmez.
   ========================================================= */
.app-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 20000; pointer-events: none; opacity: 0; transition: opacity 0.2s; }
.app-progress.active { opacity: 1; }
.app-progress i { display: block; height: 100%; width: 40%; border-radius: 0 3px 3px 0; background: linear-gradient(90deg, var(--primary), #64b5ff); animation: appProgress 1.1s ease-in-out infinite; }
@keyframes appProgress { 0% { transform: translateX(-40%); } 100% { transform: translateX(250%); } }

.app-toast-wrap { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 20001; pointer-events: none; width: max-content; max-width: calc(100vw - 24px); }
.app-toast { display: flex; align-items: center; gap: 10px; background: #1d1d1f; color: #fff; padding: 11px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.22); font-size: 13px; font-weight: 600; max-width: 100%; animation: appToastIn 0.25s ease-out; transition: opacity 0.35s, transform 0.35s; }
.app-toast.hide { opacity: 0; transform: translateY(8px); }
.app-toast-ikon { width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 900; flex-shrink: 0; background: rgba(255,255,255,0.18); }
.app-toast.success .app-toast-ikon { background: var(--green); color: #fff; }
.app-toast.error .app-toast-ikon { background: var(--red); color: #fff; }
.app-toast.warning .app-toast-ikon { background: var(--orange); color: #fff; }
.app-toast-metin { overflow: hidden; text-overflow: ellipsis; }
@keyframes appToastIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }

.app-netbar { position: fixed; top: 0; left: 0; right: 0; z-index: 20002; padding: 8px 14px; text-align: center; font-size: 12.5px; font-weight: 700; color: #fff; background: #b45309; transform: translateY(-100%); transition: transform 0.25s; pointer-events: none; }
.app-netbar.offline, .app-netbar.online { transform: translateY(0); }
.app-netbar.online { background: #15803d; }

/* Dokunmatik cihazlarda profil menüsü: tıklayınca açılır */
.dropdown.open .dropdown-content { display: block; }

/* =========================================================
   MOBİL / TABLET UYUMLULUK
   Yalnızca dar ekranlarda devreye girer; masaüstü görünümü korunur.
   ========================================================= */
@media screen and (max-width: 768px) {
    html { -webkit-text-size-adjust: 100%; }

    .content-wrapper { padding-left: 12px !important; padding-right: 12px !important; }

    /* Kanban: kartlar dar ekranda rahat okunur, yatay kaydırma korunur */
    .kanban-wrapper { padding: 20px 8px 15px 8px; }
    .kanban-col-container { min-width: 260px; }
    .kanban-dropzone { grid-template-columns: minmax(0, 1fr); }
    .kanban-card { cursor: default; }

    /* Sekmeler: taşma yerine yatay kaydırma, sola hizalı */
    .tab-container { justify-content: flex-start; gap: 8px; }
    .tab-btn { padding: 10px 14px; font-size: 13px; }

    /* Tablolar: sayfa değil, tablo kendi içinde kaydırılır */
    .modern-table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .modern-table th, .modern-table td { padding: 10px 12px; white-space: nowrap; }

    /* Modallar: ekrana sığar, kenarlardan boşluk kalır */
    .modal-overlay { padding: 14px; }
    .modal-box { min-width: 0; width: calc(100vw - 28px); max-width: 560px; padding: 20px; }
    .notes-panel { width: calc(100vw - 24px); right: -6px; }

    /* Alt işlem çubuğu: taşmadan sığar */
    .bottom-action-bar { max-width: calc(100vw - 16px); gap: 8px; padding: 6px 8px; }
    .date-input { width: 118px; font-size: 14px; }
    .new-delivery-fab { padding: 11px 16px; font-size: 14px; }

    /* PIN kutuları ve dokunma hedefleri */
    .pin-box { width: 42px; height: 52px; font-size: 21px; }
    .pin-group { gap: 8px; }
    .btn { padding: 11px 18px; }

    /* Profil kartları (giriş ekranı) */
    .profile-card { width: 96px; height: 96px; font-size: 36px; }
    .profiles { gap: 18px; flex-wrap: wrap; }

    .app-toast-wrap { bottom: 86px; }
}

@media screen and (max-width: 430px) {
    .clock { display: none; }
    .top-bar { padding: 10px 12px; }

    .bottom-action-bar { bottom: 14px; border-radius: 26px; }
    .date-input { width: 104px; font-size: 13px; }

    .kanban-col-container { min-width: 236px; }
    .kanban-wrapper { padding: 14px 6px 12px 6px; }

    .modal-box { width: calc(100vw - 20px); padding: 18px; border-radius: 16px; }

    .missed-deliveries-badge { font-size: 11px; padding: 7px 14px; bottom: 90px; }

    .app-toast { font-size: 12.5px; padding: 10px 13px; }
    .note-avatar { max-width: 84px; }
    /* Alt işlem çubuğuyla çakışmasın */
    .notes-widget { bottom: 92px; right: 14px; }
}

/* =========================================================
   BILDIRIM MERKEZI
   ========================================================= */
.bildirim-btn {
    position: relative;
    border: 1px solid #e5e5ea;
    background: #fff;
    width: 38px; height: 38px;
    border-radius: 50%;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4a4a4f;
    transition: background .15s, transform .15s, color .15s;
}
.bildirim-btn svg { width: 21px; height: 21px; display: block; }
.bildirim-btn:hover { background: #f2f2f7; transform: scale(1.04); }
.bildirim-btn.has-new { color: var(--primary); }
.bildirim-rozet {
    position: absolute; top: -4px; right: -5px;
    min-width: 17px; height: 17px; padding: 0 4px;
    border-radius: 999px; background: #ff3b30; color: #fff;
    font-size: 10px; font-weight: 900; line-height: 17px;
    text-align: center; box-shadow: 0 0 0 2px #fff;
}
.bildirim-panel {
    position: fixed; top: 66px; right: 18px;
    width: 350px; max-width: calc(100vw - 24px);
    max-height: 70vh; overflow-y: auto;
    background: #fff; border: 1px solid #eaeaea;
    border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,0.18);
    z-index: 20050; padding: 6px;
}
.bildirim-ust {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 12px 8px; border-bottom: 1px solid #f2f2f7;
    font-size: 13px;
}
.bildirim-temizle {
    border: none; background: transparent; color: #007aff;
    font-size: 11.5px; font-weight: 800; cursor: pointer; padding: 4px 6px;
}
.bildirim-liste { display: flex; flex-direction: column; }
.bildirim-satir {
    display: flex; align-items: flex-start; gap: 9px;
    padding: 9px 11px; border-bottom: 1px solid #f7f7f9;
    font-size: 12px; line-height: 1.35;
}
.bildirim-satir:last-child { border-bottom: none; }
.bildirim-ikon {
    width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 900; background: #e5e5ea; color: #48484a;
}
.bildirim-satir.success .bildirim-ikon { background: #34c759; color: #fff; }
.bildirim-satir.error .bildirim-ikon { background: #ff3b30; color: #fff; }
.bildirim-satir.warning .bildirim-ikon { background: #ff9500; color: #fff; }
.bildirim-metin { flex: 1; min-width: 0; color: #1d1d1f; word-break: break-word; }
.bildirim-saat { color: #a0a0a5; font-size: 10.5px; font-weight: 700; flex-shrink: 0; }
.bildirim-bos { padding: 26px 12px; text-align: center; color: #a0a0a5; font-size: 12px; font-weight: 700; }

@media screen and (max-width: 768px) {
    .bildirim-panel { top: auto; bottom: 84px; right: 12px; left: 12px; width: auto; }
}

/* =========================================================
   TEMA (acik / koyu) - varsayilan acik, mevcut gorunum korunur
   ========================================================= */
[data-tema="koyu"] {
    --bg: #121214;
    --card-bg: #1c1c1f;
    --text: #f2f2f7;
    color-scheme: dark;
}
[data-tema="koyu"] body { background: #121214; color: #f2f2f7; }
[data-tema="koyu"] .top-bar { background: rgba(24,24,27,0.92); box-shadow: 0 1px 10px rgba(0,0,0,0.35); }
[data-tema="koyu"] .nav-toggle,
[data-tema="koyu"] .bildirim-btn { background: #1c1c1f; border-color: #3a3a3c; color: #f2f2f7; }
[data-tema="koyu"] .nav-btn:hover,
[data-tema="koyu"] .nav-toggle:hover,
[data-tema="koyu"] .bildirim-btn:hover { background: #2c2c2e; }
[data-tema="koyu"] .btn:not(.btn-primary):not(.btn-plan-hizli):not(.btn-plan-detay):not(.btn-warning):not(.btn-sil):not(.btn-gitti) { background: #2c2c2e; color: #f2f2f7; }
[data-tema="koyu"] .modern-input { background: #1c1c1f; color: #f2f2f7; border-color: #3a3a3c; }
[data-tema="koyu"] .dropdown-content { background: #1c1c1f; border: 1px solid #2c2c2e; }
[data-tema="koyu"] .dropdown-content a { color: #f2f2f7; }
[data-tema="koyu"] .modal-box { background: #1c1c1f; color: #f2f2f7; }
[data-tema="koyu"] .modal-box h3 { color: #f2f2f7; }
[data-tema="koyu"] .modern-table th { background: #2c2c2e !important; color: #f2f2f7 !important; }
[data-tema="koyu"] .modern-table td { border-color: #2c2c2e !important; color: #f2f2f7; }
[data-tema="koyu"] .dosya-kart,
[data-tema="koyu"] .bilgi-kart,
[data-tema="koyu"] .dosya-bos,
[data-tema="koyu"] .kanban-col,
[data-tema="koyu"] .notes-panel,
[data-tema="koyu"] .bilgi-bos { background: #1c1c1f !important; border-color: #2c2c2e !important; color: #f2f2f7; }
[data-tema="koyu"] .gl-satir,
[data-tema="koyu"] .haf-satir,
[data-tema="koyu"] .ms-hucre,
[data-tema="koyu"] .tab-btn,
[data-tema="koyu"] .bottom-action-bar { background: #1c1c1f; color: #f2f2f7; border-color: #2c2c2e; }
[data-tema="koyu"] .gl-hucre,
[data-tema="koyu"] .ms-giris,
[data-tema="koyu"] .ms-chip,
[data-tema="koyu"] input:not(.irsaliye-input-prominent):not(.date-input),
[data-tema="koyu"] textarea,
[data-tema="koyu"] select { color: #f2f2f7; }
[data-tema="koyu"] .gl-hucre,
[data-tema="koyu"] .ms-giris { background: #242427; border-color: #3a3a3c; }
[data-tema="koyu"] .ms-chip { background: #1d3550; border-color: #3f7fc0; color: #dcebfc; }
[data-tema="koyu"] .dosya-baslik,
[data-tema="koyu"] .bilgi-kart-baslik,
[data-tema="koyu"] .dosya-grup-dosya,
[data-tema="koyu"] .bilgi-kart-alt .ad { color: #f2f2f7; }
[data-tema="koyu"] .dosya-ad,
[data-tema="koyu"] .dosya-grup-boyut,
[data-tema="koyu"] .bilgi-kart-icerik,
[data-tema="koyu"] .dosya-tarih,
[data-tema="koyu"] .dosya-aciklama { color: #b8b8bd; }
[data-tema="koyu"] .dosya-grup-liste { background: #242427; border-color: #2c2c2e; }
[data-tema="koyu"] .bildirim-panel { background: #1c1c1f; border-color: #2c2c2e; }
[data-tema="koyu"] .bildirim-ust { border-color: #2c2c2e; color: #f2f2f7; }
[data-tema="koyu"] .bildirim-satir { border-color: #262629; }
[data-tema="koyu"] .bildirim-metin { color: #f2f2f7; }
[data-tema="koyu"] .bildirim-rozet { box-shadow: 0 0 0 2px #1c1c1f; }

/* --- Koyu tema: ana içerik yüzeyleri (yalnızca koyu modda geçerli) --- */
[data-tema="koyu"] .kanban-column { background: rgba(44,44,46,0.72); border-color: #3a3a3c; }
[data-tema="koyu"] .kanban-slot { background: rgba(255,255,255,0.035); border-color: rgba(255,255,255,0.14); }
[data-tema="koyu"] .kanban-card { background: #1c1c1f; border-color: #2c2c2e; color: #f2f2f7; }
[data-tema="koyu"] .kanban-card.is-gitti { background: #16241b; border-color: #2f5d3f; }
[data-tema="koyu"] .card-left { border-bottom-color: #2c2c2e; }
[data-tema="koyu"] .col-title { color: #f2f2f7; }
[data-tema="koyu"] .clock { color: #b8b8bd; }
[data-tema="koyu"] .master-panel,
[data-tema="koyu"] .master-panel.wide-panel,
[data-tema="koyu"] .master-card { background: #1c1c1f; border-color: #2c2c2e; color: #f2f2f7; }
[data-tema="koyu"] .modern-table { background: #1c1c1f; }
[data-tema="koyu"] .date-btn { background: #2c2c2e; color: #f2f2f7; border-color: #3a3a3c; }
[data-tema="koyu"] .note-content-box { background: #242427; border-color: #2c2c2e; color: #f2f2f7; }
[data-tema="koyu"] .pin-box { background: #1c1c1f; border-color: #3a3a3c; color: #f2f2f7; }
[data-tema="koyu"] .bayi-search-wrapper { background: #1c1c1f; border-color: #2c2c2e; }
[data-tema="koyu"] .autocomplete-box { border-color: #3a3a3c !important; background: #1c1c1f !important; color: #f2f2f7; box-shadow: 0 10px 28px rgba(0,0,0,0.55) !important; }
[data-tema="koyu"] .autocomplete-item { border-color: #2c2c2e !important; color: #e8e8ed !important; }
[data-tema="koyu"] .autocomplete-item:hover,
[data-tema="koyu"] .autocomplete-item.focused { background: #16283c !important; color: #6db3f2 !important; }
[data-tema="koyu"] .ac-alt { color: #b8b8bd !important; }
[data-tema="koyu"] .ac-bos { color: #8e8e93 !important; }
[data-tema="koyu"] #done-secilen-arac-badge,
[data-tema="koyu"] #edit-secilen-arac-badge { background: #242427 !important; }
[data-tema="koyu"] .modal-box label { color: #b8b8bd !important; }
[data-tema="koyu"] .pill { background: #2c2c2e; color: #f2f2f7; }
[data-tema="koyu"] .plaka-badge { background: #2c2c2e; color: #f2f2f7; border-color: #3a3a3c; }
[data-tema="koyu"] .surucu { color: #b8b8bd; }
[data-tema="koyu"] .turler { background: rgba(0,122,255,0.16); border-color: rgba(0,122,255,0.4); }
[data-tema="koyu"] .sira-no,
[data-tema="koyu"] .status-badge { border-color: #1c1c1f; }
[data-tema="koyu"] .lock-text { color: rgba(255,255,255,0.35); text-shadow: none; }
[data-tema="koyu"] .notes-badge { border-color: #1c1c1f; }
[data-tema="koyu"] .dropdown-content a:hover { background-color: #2c2c2e; }
[data-tema="koyu"] input:not(.irsaliye-input-prominent):not(.date-input),
[data-tema="koyu"] textarea:not(.irsaliye-input-prominent),
[data-tema="koyu"] select { background: #1c1c1f; border-color: #3a3a3c; color: #f2f2f7; }
[data-tema="koyu"] input::placeholder,
[data-tema="koyu"] textarea::placeholder { color: #8e8e93; }

[data-tema="koyu"] .modern-table tbody tr:hover { background: #262629; }
[data-tema="koyu"] .modern-table tr[style*="background"] { color: #f2f2f7; }
[data-tema="koyu"] .kompakt-input { background: #242427 !important; border-color: #3a3a3c !important; color: #f2f2f7 !important; }
[data-tema="koyu"] .kompakt-tablo th { color: #f2f2f7 !important; }
[data-tema="koyu"] .summary-box { background: #262629 !important; border-color: #2c2c2e !important; color: #f2f2f7 !important; }
[data-tema="koyu"] .signature-area,
[data-tema="koyu"] .signature-area * { color: #f2f2f7 !important; }
[data-tema="koyu"] .print-header h1,
[data-tema="koyu"] .print-header h3 { color: #f2f2f7 !important; }
[data-tema="koyu"] #print-area { background: #1c1c1f !important; color: #f2f2f7; }
[data-tema="koyu"] .notes-panel { color: #f2f2f7; }
[data-tema="koyu"] .tab-btn.active { background: var(--primary) !important; color: #fff !important; }
[data-tema="koyu"] .modern-table td strong { color: #f2f2f7; }
[data-tema="koyu"] hr { border-color: #2c2c2e; }
[data-tema="koyu"] .gecmis-ozet-kart { background: #1c1c1f !important; border-color: #2c2c2e !important; color: #f2f2f7; }
[data-tema="koyu"] .gecmis-ozet-baslik,
[data-tema="koyu"] .gecmis-ozet-tablo td,
[data-tema="koyu"] .gecmis-ozet-tablo tfoot td { color: #f2f2f7; }
[data-tema="koyu"] .gecmis-ozet-tablo tfoot td,
[data-tema="koyu"] .gecmis-ozet-kart-baslik { border-color: #2c2c2e; }
[data-tema="koyu"] .gecmis-ozet-adet { background: #2c2c2e; color: #f2f2f7; }
[data-tema="koyu"] .gecmis-ozet-bos { color: #b8b8bd; }
[data-tema="koyu"] .tr-plate { background: #1c1c1f; border-color: #f2f2f7; }
[data-tema="koyu"] .gecmis-ozet-genel { background: #2c2c2e !important; border-color: #3a3a3c !important; }
[data-tema="koyu"] .gecmis-ozet-genel .gecmis-ozet-adet { background: #f2f2f7; color: #1d1d1f; }
[data-tema="koyu"] .gecmis-print-alt { color: #b8b8bd; }
[data-tema="koyu"] .lock-content .lock-text { color: rgba(255,255,255,0.35); }

/* =========================================================
   === KOYU TEMA KAPSAM GENİŞLETME ===
   Bu bölümdeki tüm kurallar yalnızca [data-tema="koyu"] altında
   geçerlidir. Açık tema ve @media print görünümü etkilenmez.
   Sayfa <style> blokları değiştirilmeden eksik yüzeyler kapatılır.
   Kapsam bilinçli olarak yalnız EKRAN içindir; yazdırma daima açık kalır.
   ========================================================= */
@media screen {

/* --- 1) Yazı renkleri (birincil) --- */
[data-tema="koyu"] .note-text,
[data-tema="koyu"] .welcome-banner h2,
[data-tema="koyu"] .dash-card-title,
[data-tema="koyu"] .brand-header,
[data-tema="koyu"] .plan-info-item .val,
[data-tema="koyu"] .plan-summary-title,
[data-tema="koyu"] .plan-item .p-name,
[data-tema="koyu"] .hafta-gun-ad,
[data-tema="koyu"] .gl-satir .gl-plaka,
[data-tema="koyu"] .bayi-uyari-panel-satir .bayi,
[data-tema="koyu"] .bayi-gunleri-bar .bgb-isim,
[data-tema="koyu"] .plan-ozet-kart .deger,
[data-tema="koyu"] .plan-blok-baslik h3,
[data-tema="koyu"] .urun-table td,
[data-tema="koyu"] .barkod-card h3,
[data-tema="koyu"] .barkod-list-item h4,
[data-tema="koyu"] .upload-alan .ana,
[data-tema="koyu"] .stat-label,
[data-tema="koyu"] .pref-row span,
[data-tema="koyu"] .gorunum-secim,
[data-tema="koyu"] .user-card { color: #f2f2f7; }

/* --- 1b) Yazı renkleri (ikincil / soluk) --- */
[data-tema="koyu"] .note-datetime,
[data-tema="koyu"] .notes-close-btn,
[data-tema="koyu"] .badge-total,
[data-tema="koyu"] .plan-summary-text,
[data-tema="koyu"] .plan-item .p-meta,
[data-tema="koyu"] .bayi-uyari-panel-satir .tur,
[data-tema="koyu"] .bayi-uyari-panel-bos,
[data-tema="koyu"] .haf-bolum-baslik,
[data-tema="koyu"] .gorunum-ayar-box .gac-alt,
[data-tema="koyu"] .upload-alan .alt,
[data-tema="koyu"] .empty-state { color: #a0a0a5; }

[data-tema="koyu"] .plan-num-item span,
[data-tema="koyu"] .brand-header .brand-code,
[data-tema="koyu"] .plan-info-item .val .mini,
[data-tema="koyu"] .gl-satir .gl-tur { color: #b8b8bd; }

[data-tema="koyu"] .pref-checks label,
[data-tema="koyu"] .settings-icon-btn,
[data-tema="koyu"] .bayi-uyari-filtre label,
[data-tema="koyu"] .bayi-uyari-secim,
[data-tema="koyu"] .marka-chip span,
[data-tema="koyu"] .dosya-etiket { color: #c7c7cc; }

/* Mavi metinler (dolgu değil) */
[data-tema="koyu"] .gl-satir .gl-hucre.irs,
[data-tema="koyu"] .gl-satir .gl-irs,
[data-tema="koyu"] .gorunum-secim.aktif small { color: #4da3ff; }

/* --- 2) Genel yüzeyler / kartlar --- */
[data-tema="koyu"] .app-toast { border: 1px solid #3a3a3c; }
[data-tema="koyu"] .login-bg { background: #121214; }
[data-tema="koyu"] .profile-card { background: #1c1c1f; color: #f2f2f7; }
[data-tema="koyu"] .notes-header { background: #242427; border-bottom-color: #2c2c2e; }
[data-tema="koyu"] .notes-body { background: #121214; }
[data-tema="koyu"] .note-content-box:hover { border-color: #3a3a3c; }
[data-tema="koyu"] .priority-Sonsuz .note-content-box { background: #251a30; }
[data-tema="koyu"] .bildirim-ikon { background: #2c2c2e; color: #b8b8bd; }
[data-tema="koyu"] .irsaliye-input-prominent { background: #33290f !important; color: #ffb340; border-color: #ff9500 !important; }
[data-tema="koyu"] .irsaliye-input-prominent:focus { background: #1c1c1f !important; }
[data-tema="koyu"] .date-input { background: transparent !important; }
/* Düzenlenebilir hücre girişleri satır zeminini kullanır. */
[data-tema="koyu"] .gl-hucre,
[data-tema="koyu"] .ms-giris,
[data-tema="koyu"] .haf-hucre { background: transparent !important; }
[data-tema="koyu"] .gl-hucre:focus,
[data-tema="koyu"] .haf-hucre:focus { background: #16283c !important; }
[data-tema="koyu"] .tr-plate input { border-left-color: #3a3a3c; }

/* --- 3) Satır içi (inline) açık yüzeyler --- */
/* Beyaz: yalnızca tam "background:#fff" / "background:white" eşleşir.
   #fff4e5, #fff8e6, #fffadc gibi tonlar bu kurala TAKILMAZ. */
[data-tema="koyu"] [style*="background:#fff;"],
[data-tema="koyu"] [style*="background: #fff;"],
[data-tema="koyu"] [style*="background:#fff "],
[data-tema="koyu"] [style*="background: #fff "],
[data-tema="koyu"] [style$="background:#fff"],
[data-tema="koyu"] [style$="background: #fff"],
[data-tema="koyu"] [style*="background:#ffffff"],
[data-tema="koyu"] [style*="background: #ffffff"],
[data-tema="koyu"] [style*="background:white"],
[data-tema="koyu"] [style*="background: white"] { background-color: #1c1c1f !important; color: #f2f2f7; }

/* Nötr gri tonlar */
[data-tema="koyu"] [style*="background:#f9f9fb"],
[data-tema="koyu"] [style*="background: #f9f9fb"],
[data-tema="koyu"] [style*="background:#fafafa"],
[data-tema="koyu"] [style*="background: #fafafa"],
[data-tema="koyu"] [style*="background:#fbfbfd"],
[data-tema="koyu"] [style*="background: #fbfbfd"],
[data-tema="koyu"] [style*="background:#fcfcfd"],
[data-tema="koyu"] [style*="background: #fcfcfd"],
[data-tema="koyu"] [style*="background:#fcfcfe"],
[data-tema="koyu"] [style*="background: #fcfcfe"],
[data-tema="koyu"] [style*="background:#f7f7fb"],
[data-tema="koyu"] [style*="background: #f7f7fb"],
[data-tema="koyu"] [style*="background:#f1f5f9"],
[data-tema="koyu"] [style*="background: #f1f5f9"],
[data-tema="koyu"] [style*="background:#eef2f6"],
[data-tema="koyu"] [style*="background: #eef2f6"] { background-color: #242427 !important; color: #f2f2f7; }

[data-tema="koyu"] [style*="background:#f4f5f7"],
[data-tema="koyu"] [style*="background: #f4f5f7"] { background-color: #121214 !important; color: #f2f2f7; }

[data-tema="koyu"] [style*="background:#f2f2f7"],
[data-tema="koyu"] [style*="background: #f2f2f7"],
[data-tema="koyu"] [style*="background:#f0f0f5"],
[data-tema="koyu"] [style*="background: #f0f0f5"] { background-color: #262629 !important; color: #f2f2f7; }

[data-tema="koyu"] [style*="background:#eaeaea"],
[data-tema="koyu"] [style*="background: #eaeaea"],
[data-tema="koyu"] [style*="background:#e5e5ea"],
[data-tema="koyu"] [style*="background: #e5e5ea"] { background-color: #2c2c2e !important; color: #f2f2f7; }

/* Mavi tonlar */
[data-tema="koyu"] [style*="background:#eef5ff"],
[data-tema="koyu"] [style*="background:#eef4ff"],
[data-tema="koyu"] [style*="background:#eff6ff"],
[data-tema="koyu"] [style*="background:#f0f8ff"],
[data-tema="koyu"] [style*="background:#f4f9ff"],
[data-tema="koyu"] [style*="background:#fafcff"],
[data-tema="koyu"] [style*="background:#f7fbff"],
[data-tema="koyu"] [style*="background:#f6faff"],
[data-tema="koyu"] [style*="background:#eef7ff"],
[data-tema="koyu"] [style*="background:#eef6ff"] { background-color: #16283c !important; color: #f2f2f7; }

[data-tema="koyu"] [style*="background:#e6f2ff"],
[data-tema="koyu"] [style*="background:#dbeafe"] { background-color: #1b3350 !important; color: #f2f2f7; }

/* Yeşil tonlar */
[data-tema="koyu"] [style*="background:#e8f8ed"],
[data-tema="koyu"] [style*="background:#eafaf0"],
[data-tema="koyu"] [style*="background:#eaf7ee"] { background-color: #15251b !important; color: #f2f2f7; }
[data-tema="koyu"] [style*="background:#f0fdf4"] { background-color: #16291c !important; color: #f2f2f7; }
[data-tema="koyu"] [style*="background:#dcfce7"] { background-color: #17301f !important; color: #f2f2f7; }

/* Sarı / turuncu tonlar */
[data-tema="koyu"] [style*="background:#fff4e5"],
[data-tema="koyu"] [style*="background:#fff8e6"],
[data-tema="koyu"] [style*="background:#fff7e6"],
[data-tema="koyu"] [style*="background:#fff6e6"],
[data-tema="koyu"] [style*="background:#fff8e1"],
[data-tema="koyu"] [style*="background:#fffaf0"],
[data-tema="koyu"] [style*="background:#fffdf5"],
[data-tema="koyu"] [style*="background:#fff4e0"],
[data-tema="koyu"] [style*="background:#fff2d9"] { background-color: #2c2317 !important; color: #f2f2f7; }

[data-tema="koyu"] [style*="background:#fff9cc"],
[data-tema="koyu"] [style*="background:#ffebcc"],
[data-tema="koyu"] [style*="background:#fffadc"],
[data-tema="koyu"] [style*="background:#ffe5b4"] { background-color: #33290f !important; color: #f2f2f7; }

[data-tema="koyu"] [style*="background:#fffbeb"] { background-color: #2a2117 !important; color: #f2f2f7; }

[data-tema="koyu"] [style*="background:#fff5f4"],
[data-tema="koyu"] [style*="background:#fef2f2"],
[data-tema="koyu"] [style*="background:#ffeceb"] { background-color: #2c1a1a !important; color: #f2f2f7; }

/* Mor tonlar */
[data-tema="koyu"] [style*="background:#f4ecff"],
[data-tema="koyu"] [style*="background:#f5f0fb"] { background-color: #251a30 !important; color: #f2f2f7; }
[data-tema="koyu"] [style*="background:#f0eaf7"],
[data-tema="koyu"] [style*="background:#f0e6fa"] { background-color: #241a2e !important; color: #f2f2f7; }

/* --- 4) Satır içi (inline) yazı renkleri --- */
[data-tema="koyu"] [style*="color:#1d1d1f"] { color: #f2f2f7 !important; }
[data-tema="koyu"] [style*="color:#333"] { color: #e5e5ea !important; }
[data-tema="koyu"] [style*="color:#444"] { color: #c7c7cc !important; }
[data-tema="koyu"] [style*="color:#555"] { color: #c7c7cc !important; }
[data-tema="koyu"] [style*="color:#666"] { color: #b8b8bd !important; }
[data-tema="koyu"] [style*="color:#888"] { color: #a0a0a5 !important; }
[data-tema="koyu"] [style*="color:#999"] { color: #a0a0a5 !important; }
[data-tema="koyu"] [style*="color:#8e8e93"] { color: #9f9fa6 !important; }
[data-tema="koyu"] [style*="color:#a0a0a5"] { color: #b8b8bd !important; }

/* Marka renkleri yalnız METİN olarak aydınlatılır; dolgular korunur. */
[data-tema="koyu"] [style*="color:#007aff"] { color: #4da3ff !important; }
[data-tema="koyu"] [style*="color:#ff3b30"] { color: #ff6961 !important; }
[data-tema="koyu"] [style*="color:#8e44ad"] { color: #c084fc !important; }
[data-tema="koyu"] [style*="color:#0b63d6"] { color: #6db3f2 !important; }
[data-tema="koyu"] [style*="color:#8a6100"],
[data-tema="koyu"] [style*="color:#b26a00"],
[data-tema="koyu"] [style*="color:#a86800"],
[data-tema="koyu"] [style*="color:#b07a1a"],
[data-tema="koyu"] [style*="color:#b45309"],
[data-tema="koyu"] [style*="color:#d97706"],
[data-tema="koyu"] [style*="color:#d97700"],
[data-tema="koyu"] [style*="color:#b38f00"] { color: #e0b15a !important; }
[data-tema="koyu"] [style*="color:#c62828"] { color: #ff6961 !important; }
[data-tema="koyu"] [style*="color:var(--primary)"] { color: #4da3ff !important; }
[data-tema="koyu"] [style*="color:#166534"],
[data-tema="koyu"] [style*="color:#16a34a"],
[data-tema="koyu"] [style*="color:#1a8035"],
[data-tema="koyu"] [style*="color:#1a8f3c"] { color: #5fd07f !important; }
[data-tema="koyu"] [style*="color:#334155"] { color: #c7c7cc !important; }
[data-tema="koyu"] [style*="color:#475569"],
[data-tema="koyu"] [style*="color:#64748b"] { color: #a0a0a5 !important; }
[data-tema="koyu"] [style*="color:#0f172a"] { color: #f2f2f7 !important; }

/* --- 5) Satır içi (inline) kenarlıklar --- */
[data-tema="koyu"] [style*="border:1px solid #eaeaea"],
[data-tema="koyu"] [style*="border: 1px solid #eaeaea"],
[data-tema="koyu"] [style*="border:1px solid #e5e5ea"],
[data-tema="koyu"] [style*="border: 1px solid #e5e5ea"],
[data-tema="koyu"] [style*="border:1px solid #eee"],
[data-tema="koyu"] [style*="border: 1px solid #eee"],
[data-tema="koyu"] [style*="border:1px solid #ddd"],
[data-tema="koyu"] [style*="border: 1px solid #ddd"],
[data-tema="koyu"] [style*="border:1px solid #d1d1d6"],
[data-tema="koyu"] [style*="border: 1px solid #d1d1d6"] { border-color: #2c2c2e !important; }

/* --- 6) Tablolar --- */
[data-tema="koyu"] .evrak-table { background: #1c1c1f; }
[data-tema="koyu"] .evrak-table th,
[data-tema="koyu"] .evrak-table td { border-color: #3a3a3c !important; }
[data-tema="koyu"] .evrak-table th { background-color: #2c2c2e !important; color: #f2f2f7 !important; }

/* --- 7) ANASAYFA --- */
[data-tema="koyu"] .welcome-banner { background: #1c1c1f; border-color: #2c2c2e; }
[data-tema="koyu"] .dash-card { background: #1c1c1f; border-color: #2c2c2e; }
[data-tema="koyu"] .dash-card-header { background: #242427; border-bottom-color: #2c2c2e; }
[data-tema="koyu"] .settings-icon-btn { background: #1c1c1f; border-color: #3a3a3c; }
[data-tema="koyu"] .slide-drawer { background: #262629; border-bottom-color: #2c2c2e; }
[data-tema="koyu"] .note-floating-popover { background: #1c1c1f; border-color: #3a3a3c; }
[data-tema="koyu"] .note-floating-popover::before { background: #1c1c1f; border-left-color: #3a3a3c; border-top-color: #3a3a3c; }
[data-tema="koyu"] .brand-section { background: #1c1c1f; border-color: #2c2c2e; }
[data-tema="koyu"] .brand-header { background: #242427; border-bottom-color: #2c2c2e; }
[data-tema="koyu"] .stat-row { border-bottom-color: #2c2c2e; }
[data-tema="koyu"] .badge-avg { background: #1b3350; color: #4da3ff; }
[data-tema="koyu"] .plan-summary-box { background: #242427; border-color: #2c2c2e; }
[data-tema="koyu"] .progress-bar-bg { background: #2c2c2e; }
[data-tema="koyu"] .pref-row { background: #1c1c1f; border-color: #2c2c2e; }

/* --- 8) SEVKİYAT --- */
[data-tema="koyu"] .gl-marka { background: #1c1c1f; border-color: #2c2c2e; }
[data-tema="koyu"] .gl-marka-baslik { background: #16283c; border-bottom-color: #2b4c73; color: #6db3f2; }
[data-tema="koyu"] .gl-marka-baslik .gl-adet,
[data-tema="koyu"] .gl-tur-baslik .adet,
[data-tema="koyu"] .bg-gun-blok-baslik .bg-adet,
[data-tema="koyu"] .haf-bolum-baslik .adet,
[data-tema="koyu"] .bayi-gunleri-bar .bgb-etiket { background: #16283c; border-color: #2b4c73; color: #4da3ff; }
[data-tema="koyu"] .gl-baslik-satir { background: #242427; border-bottom-color: #2c2c2e; }
[data-tema="koyu"] .gl-tur-baslik { background: #242427; border-color: #2c2c2e; color: #a0a0a5; }
[data-tema="koyu"] .gl-tur-baslik .adet { background: #16283c; border-color: #2b4c73; }
[data-tema="koyu"] .gl-satir { background: #1c1c1f; border-bottom-color: #2c2c2e; }
[data-tema="koyu"] .gl-satir:hover { background: #16283c; }
[data-tema="koyu"] .gl-satir.kilitli { background: #242427; }
[data-tema="koyu"] .gl-satir .gl-hucre { border-right-color: #2c2c2e; }
[data-tema="koyu"] .gl-satir .gl-durum { background: #2c2317; color: #e0b15a; }
[data-tema="koyu"] .gl-satir .gl-durum.tamam { background: #15251b; color: #5fd07f; }
[data-tema="koyu"] .gl-satir .gl-durum.red { background: #2c1a1a; color: #ff6961; }
[data-tema="koyu"] .haf-satir { background: #1c1c1f; border-bottom-color: #2c2c2e; }
[data-tema="koyu"] .haf-satir:hover { background: #16283c; }
[data-tema="koyu"] .haf-satir.kilitli { background: #242427; }
[data-tema="koyu"] .haf-hucre { color: #f2f2f7; border-right-color: #2c2c2e; }
[data-tema="koyu"] .haf-hucre:focus { background: #16283c; }
[data-tema="koyu"] .haf-hucre.bos { color: #a0a0a5; }
[data-tema="koyu"] .haf-hucre.irs { color: #4da3ff; }
[data-tema="koyu"] .haf-satir.kilitli .haf-hucre { color: #a0a0a5; }
[data-tema="koyu"] .haf-satir.kilitli .haf-hucre.irs { color: #5fd07f; }
[data-tema="koyu"] .haf-yeni .haf-hucre::placeholder { color: #8fb6dd; }
[data-tema="koyu"] .ms-plan { color: #9f9fa6; border-right-color: #2c2c2e; }
[data-tema="koyu"] .ms-plan:hover { background: #16283c; }
[data-tema="koyu"] .haf-satir .ms-plan { border-right-color: #2c2c2e; }
[data-tema="koyu"] .haf-bolum-baslik { background: #2c2c2e; border-color: #3a3a3c; }
[data-tema="koyu"] .hafta-gun { background: rgba(28,28,31,0.72); border-color: #2c2c2e; }
[data-tema="koyu"] .hafta-gun.bugun { border-color: #2b4c73; }
[data-tema="koyu"] .hafta-gun-baslik { background: #16283c; border-bottom-color: #2b4c73; }
[data-tema="koyu"] .hafta-gun.bugun .hafta-gun-baslik { background: #1b3350; }
[data-tema="koyu"] .hafta-gun-ad .tarih { background: #16283c; border-color: #2b4c73; color: #4da3ff; }
[data-tema="koyu"] .hafta-gun-notlar { background: #2c2317; border-top-color: #2c2c2e; }
[data-tema="koyu"] .hafta-gun-notlar .hgn-baslik { color: #d8b25a; }
[data-tema="koyu"] .hafta-gun-notlar .hgn-not { color: #d8c9a0; }
[data-tema="koyu"] .hafta-gun-notlar .hgn-not b { color: #e6c877; }
[data-tema="koyu"] .hafta-gun-notlar .hgn-not.onemli { color: #ff6961; }
[data-tema="koyu"] .kanban-card .card-actions.grid-4-actions { background: rgba(28,28,31,0.95) !important; }
[data-tema="koyu"] .bayi-uyari-bar { background: rgba(28,28,31,0.94); border-color: #5a4a22; }
[data-tema="koyu"] .bayi-gunleri-bar { background: rgba(28,28,31,0.94); border-color: #2b4c73; }
[data-tema="koyu"] .bayi-uyari-metin { color: #e0b15a; }
[data-tema="koyu"] .bayi-uyari-tur { background: #2c2317; border-color: #5a4a22; color: #e0b15a; }
[data-tema="koyu"] .bayi-uyari-ayar { background: #1c1c1f; border-color: #5a4a22; }
[data-tema="koyu"] .bayi-uyari-secim-listesi,
[data-tema="koyu"] .bayi-uyari-filtre { background: #242427; border-color: #2c2c2e; }
[data-tema="koyu"] .bayi-uyari-filtre label { background: #1c1c1f; border-color: #3a3a3c; }
[data-tema="koyu"] .bayi-uyari-filtre label.secili { background: #16283c; border-color: #007aff; color: #4da3ff; }
[data-tema="koyu"] .bayi-uyari-panel { background: #1c1c1f; border-color: #5a4a22; }
[data-tema="koyu"] .bayi-uyari-panel-baslik { background: #2c2317; border-bottom-color: #2c2c2e; color: #e0b15a; }
[data-tema="koyu"] .bayi-uyari-panel-kapat { background: #1c1c1f; border-color: #3a3a3c; color: #c7c7cc; }
[data-tema="koyu"] .bayi-uyari-panel-satir { background: #1c1c1f; border-color: #2c2c2e; }
[data-tema="koyu"] .bayi-uyari-panel .rozet { background: #33290f; color: #e0b15a; }
[data-tema="koyu"] .bayi-uyari-panel .rozet.yok { background: #2c2c2e; color: #a0a0a5; }
[data-tema="koyu"] .bayi-gunleri-bar .bgb-tur { background: #16283c; border-color: #2b4c73; color: #4da3ff; }

/* --- Liste görünümü: yeni teslimat oluşturma satırı --- */
[data-tema="koyu"] .gl-yeni { background: #1a2530; border-bottom-color: #2b4c73; }
[data-tema="koyu"] .gl-yeni .gl-arti { color: #4da3ff; }
[data-tema="koyu"] .gl-yeni .gl-hucre,
[data-tema="koyu"] .gl-hucre { color: #f2f2f7; border-color: #2c3a48; border-right-color: #2c3a48; }
[data-tema="koyu"] .gl-hucre::placeholder { color: #7f9ab5; }
[data-tema="koyu"] .gl-hucre:focus { background: #16283c !important; }
[data-tema="koyu"] .haf-yeni { background: #1a2530; border-bottom-color: #2b4c73; }
[data-tema="koyu"] .haf-yeni .haf-hucre { color: #f2f2f7; border-right-color: #2c3a48; }
[data-tema="koyu"] .haf-hucre::placeholder { color: #7f9ab5; }
[data-tema="koyu"] .ms-plan { color: #8fb6dd; border-right-color: #2c2c2e; }
[data-tema="koyu"] .ms-plan:hover { background: #16283c; }
[data-tema="koyu"] .haf-satir .ms-plan,
[data-tema="koyu"] .haf-yeni .ms-plan { border-right-color: #2c2c2e; }
[data-tema="koyu"] .ms-sec { color: #f2f2f7; }
[data-tema="koyu"] .ms-sec:hover { background: #16283c; }
[data-tema="koyu"] .ms-ph { color: #8e8e93; }
[data-tema="koyu"] .ms-chip .ms-yildiz { color: #5a5a60; }
[data-tema="koyu"] .ms-chip .ms-yildiz.fav { color: #f5a623; }

/* --- Bayi Günleri: gün blokları, bayi ve tür yazıları --- */
[data-tema="koyu"] .bg-tur-grup { background: #242427; border-color: #2c2c2e; }
[data-tema="koyu"] .bg-tur-grup-baslik { color: #a0a0a5; }
[data-tema="koyu"] .bg-tur-kayit .bg-kayit-bayi { color: #f2f2f7; }
[data-tema="koyu"] .bg-gun-blok-baslik .bg-adet { background: #1c1c1f; border-color: #2b4c73; color: #4da3ff; }
[data-tema="koyu"] .bg-form label { color: #a0a0a5; }
[data-tema="koyu"] .bg-form select { background: #1c1c1f; border-color: #3a3a3c; color: #f2f2f7; }
[data-tema="koyu"] .bg-sil { background: #2c2c2e; color: #ff6961; }
[data-tema="koyu"] .bg-gun-bos,
[data-tema="koyu"] .bg-bos { color: #8e8e93; }

/* --- Haftalık görünüm: gün başlığındaki bayi günleri şeridi --- */
[data-tema="koyu"] .hafta-bayi-gunleri .hbg-chip { background: #15251b; border-color: #2f5d3f; color: #5fd07f; }
[data-tema="koyu"] .hafta-bayi-gunleri .hbg-chip i { color: #8fd6a7; }
[data-tema="koyu"] .hafta-bayi-gunleri .hbg-nokta { background: #2f5d3f; }
[data-tema="koyu"] .hafta-bayi-gunleri .hbg-nokta:hover { background: #3f7a54; }
[data-tema="koyu"] .hafta-bayi-gunleri .hbg-nokta.aktif { background: #34c759; }
[data-tema="koyu"] .haf-bolum-baslik { color: #a0a0a5; }
[data-tema="koyu"] .haf-bos { color: #8e8e93; }

[data-tema="koyu"] .bayi-gunluk-btn,
[data-tema="koyu"] .gorunum-ayar-btn { background: #1c1c1f; border-color: #2c2c2e; color: #e5e5ea; }
[data-tema="koyu"] .bayi-gunluk-btn .sayi { background: #16283c; color: #4da3ff; }
[data-tema="koyu"] .bg-gun-blok { background: #1c1c1f; border-color: #2c2c2e; }
[data-tema="koyu"] .bg-gun-blok-baslik { background: #16283c; border-bottom-color: #2b4c73; color: #6db3f2; }
[data-tema="koyu"] .gorunum-secim { background: #1c1c1f; border-color: #2c2c2e; }
[data-tema="koyu"] .gorunum-secim:hover { background: #16283c; border-color: #2b4c73; }
[data-tema="koyu"] .gorunum-secim.aktif { background: #16283c; border-color: #007aff; }
[data-tema="koyu"] .ms-liste { background: #1c1c1f; border-color: #3a3a3c; }
[data-tema="koyu"] .ms-chip { color: #dcebfc; }
[data-tema="koyu"] .ms-arti { background: #1d3550; border-color: #3f7fc0; color: #dcebfc; }
[data-tema="koyu"] .ms-arti:hover { background: #24456a; border-color: #5a9be0; }
[data-tema="koyu"] .ms-ek-panel { background: #1c1c1f; border-color: #3a3a3c; box-shadow: 0 12px 30px rgba(0,0,0,0.6); }
[data-tema="light"] .ms-arti { background: #cfe0f7; border-color: #9fc2ea; color: #0a4c93; }
[data-tema="light"] .ms-arti:hover { background: #bcd6f3; }
[data-tema="light"] .ms-ek-panel { background: #f5f6f8; border-color: #d9dbe1; }
[data-tema="koyu"] .ms-chip.favori { background: #2c2317; border-color: #5a4a22; color: #e0b15a; }
[data-tema="koyu"] .gl-satir.kilitli .ms-chip { background: #2c2c2e; border-color: #3a3a3c; color: #a0a0a5; }
[data-tema="koyu"] .plan-info-item { background: #242427; border-color: #2c2c2e; }
[data-tema="koyu"] .plan-summary { background: #242427; border-color: #3a3a3c; }
[data-tema="koyu"] .plan-item { background: #1c1c1f; border-color: #2c2c2e; }
[data-tema="koyu"] .plan-extra-box { background: #1c1c1f; border-color: #2c2c2e; }

/* --- 9) EVRAK / BARKOD --- */
[data-tema="koyu"] .template-card { background: #262629; border-color: #3a3a3c; color: #4da3ff; }
[data-tema="koyu"] .template-card:hover { border-color: #007aff; }
[data-tema="koyu"] .template-action { background: #1c1c1f; color: #f2f2f7; box-shadow: 0 2px 4px rgba(0,0,0,0.4); }
[data-tema="koyu"] .template-action.t-copy { color: #34c759; }
[data-tema="koyu"] .template-action.t-edit { color: #4da3ff; }
[data-tema="koyu"] .template-action.t-del { color: #ff6961; }
[data-tema="koyu"] .draggable-row { background: #1c1c1f; }
/* Şablon seçim alanı (üstteki açılır kutu): koyu modda buton ve
   seçenekler okunur olmalı. Önceden seçenek yazıları koyu renkte
   kaldığı için koyu zemin üzerinde görünmüyordu. */
[data-tema="koyu"] .custom-dropdown-btn { background-color: #16283c; border-color: #007aff; color: #4da3ff; }
[data-tema="koyu"] .custom-dropdown-btn:hover { background-color: #1b3350; box-shadow: 0 4px 10px rgba(0,122,255,0.25); }
[data-tema="koyu"] .custom-dropdown-list { background: #1c1c1f; border-color: #3a3a3c; box-shadow: 0 10px 25px rgba(0,0,0,0.6); }
[data-tema="koyu"] .custom-dropdown-item { background: #1c1c1f; color: #f2f2f7; border-bottom-color: #2c2c2e; }
[data-tema="koyu"] .custom-dropdown-item:hover { background: #007aff; color: #fff; }
[data-tema="koyu"] .evrak-table { background: #1c1c1f; }
[data-tema="koyu"] .evrak-table th { background-color: #2c2c2e; color: #f2f2f7; border-color: #3a3a3c; }
[data-tema="koyu"] .evrak-table td { color: #f2f2f7; border-color: #3a3a3c; }
[data-tema="koyu"] .kompakt-tablo th,
[data-tema="koyu"] .kompakt-tablo td { border-color: #3a3a3c; }
[data-tema="koyu"] .veri-ayarlari-content { background: #1c1c1f; border-color: #2c2c2e; }
[data-tema="koyu"] .veri-ayarlari-content a { color: #f2f2f7; border-bottom-color: #2c2c2e; }
[data-tema="koyu"] .veri-ayarlari-content a:hover { background-color: #242427; }
[data-tema="koyu"] .print-box { background: #1c1c1f; color: #f2f2f7; border-color: #f2f2f7; }
[data-tema="koyu"] .barkod-tag-btn { background: #262629; border-color: #3a3a3c; color: #f2f2f7; }
[data-tema="koyu"] .barkod-list-item { background: #1c1c1f; border-color: #3a3a3c; }
[data-tema="koyu"] .barkod-card { background: #1c1c1f; border-color: #2c2c2e; }
[data-tema="koyu"] .card-overlay { background: rgba(28,28,31,0.95); }
[data-tema="koyu"] .empty-state { background: #242427; border-color: #3a3a3c; }

/* --- 10) DOSYA --- */
[data-tema="koyu"] .yukle-modal { background: #1c1c1f; }
[data-tema="koyu"] .upload-alan { background: #242427; border-color: #3a3a3c; }
[data-tema="koyu"] .upload-alan:hover,
[data-tema="koyu"] .upload-alan.dragover { background: #16283c; }
[data-tema="koyu"] .secili-dosya .secili-tek { background: #16283c; border-color: #2b4c73; }
[data-tema="koyu"] .secili-dosya .secili-tek span { color: #8fb6dd; }
[data-tema="koyu"] .ilerleme-dis { background: #2c2c2e; }
[data-tema="koyu"] .dosya-etiket { background: #2c2c2e; }
[data-tema="koyu"] .dosya-btnler { background: linear-gradient(to top, #1c1c1f 62%, rgba(28,28,31,0.92) 82%, rgba(28,28,31,0)); }
[data-tema="koyu"] .dosya-grup-btn { background: #16283c !important; }
[data-tema="koyu"] .dosya-grup-btn.sil { background: #2c1a1a !important; }

/* --- 11) BİLGİ --- */
[data-tema="koyu"] .bilgi-uyari { background: #2c2317; border-color: #5a4a22; color: #e0b15a; }
[data-tema="koyu"] .bilgi-kart-ikon { background: #16283c; }
[data-tema="koyu"] .bilgi-etiket.herkes { background: #15251b; color: #5fd07f; }
[data-tema="koyu"] .bilgi-etiket.ozel { background: #251a30; color: #c084fc; }
[data-tema="koyu"] .bilgi-kopyala { background: rgba(28,28,31,0.95); border-color: #3a3a3c; }
[data-tema="koyu"] .bilgi-kopyala:hover { background: #16283c; }
[data-tema="koyu"] .bilgi-kart-alt { border-top-color: #2c2c2e; }
[data-tema="koyu"] .bilgi-kart-alt .ad { background: #16283c; color: #4da3ff; }
[data-tema="koyu"] .bilgi-detay-meta .hap { background: #16283c; color: #4da3ff; }
[data-tema="koyu"] .bilgi-detay-meta .hap.ozel { background: #251a30; color: #c084fc; }
[data-tema="koyu"] .bilgi-secim label.secili { background: #16283c; color: #4da3ff; }
/* Detay pop-up'ı: başlık, metin ve alt bilgi koyu zeminde okunur olsun. */
[data-tema="koyu"] .bilgi-detay-baslik { color: #f2f2f7 !important; }
[data-tema="koyu"] .bilgi-detay-metin { color: #e8e8ed !important; }
[data-tema="koyu"] .bilgi-detay-meta { color: #b8b8bd !important; border-bottom-color: #2c2c2e !important; }
[data-tema="koyu"] .bilgi-detay-duzenleme { color: #a0a0a5 !important; }
[data-tema="koyu"] .bilgi-form label { color: #b8b8bd !important; }
[data-tema="koyu"] .bilgi-form .sayac { color: #a0a0a5 !important; }

/* --- 12) YÖNETİM --- */
[data-tema="koyu"] .user-card { background: #1c1c1f; border-color: #2c2c2e; }
[data-tema="koyu"] .user-card-actions { background: rgba(28,28,31,0.97); }
[data-tema="koyu"] .log-filters { background: #1c1c1f; border-color: #2c2c2e; }
[data-tema="koyu"] .marka-secim { background: #242427; border-color: #2c2c2e; }
[data-tema="koyu"] .marka-chip span { background: #1c1c1f; border-color: #3a3a3c; }
[data-tema="koyu"] .marka-chip input:checked + span { background: #16283c; border-color: #007aff; color: #4da3ff; }

/* --- 13) SEVKİYAT PLANLA --- */
[data-tema="koyu"] .plan-ozet-kart { background: #1c1c1f; border-color: #2c2c2e; }
[data-tema="koyu"] .plan-blok { background: #1c1c1f; border-color: #2c2c2e; }
[data-tema="koyu"] .urun-kaydir { background: #1c1c1f; border-color: #3a3a3c; }
[data-tema="koyu"] .urun-table td { border-color: #3a3a3c; }
[data-tema="koyu"] .urun-table td:focus { background: #241a2e; }
[data-tema="koyu"] .urun-table tr:nth-child(even) td { background: #242427; }
[data-tema="koyu"] .urun-table tr:nth-child(even) td:focus { background: #241a2e; }

/* --- 14) LOJİSTİK / RAPOR --- */
[data-tema="koyu"] .gecmis-ozet-toplam { background: #16283c; color: #6db3f2; border-color: #2b4c73; }

/* --- 15) RAMPA --- */
[data-tema="koyu"] .truck-card.status-geldi { background: linear-gradient(to bottom, #1c1c1f, #16291c); border-color: #2f5d3f; }

/* --- 16) Mobil menü paneli --- */
@media screen and (max-width: 1100px) {
    [data-tema="koyu"] .menu-left { background: #1c1c1f; border-top-color: #2c2c2e; }
}

} /* @media screen sonu */

/* =========================================================
   === LIGHT TEMA (Açık ile Koyu arası) ===
   Sayfa zemini hafif koyu-gri, yüzeyler saf beyaz değil kırık beyaz.
   Böylece parlaklık azalır, göz daha az yorulur. Açık temanın
   renkleri ve düzeni aynen korunur; yalnız yüzey tonları yumuşar.
   Yalnız EKRAN içindir; yazdırma daima beyaz kalır.
   ========================================================= */
@media screen {
[data-tema="light"] {
    --bg: #d8dae0;
    --card-bg: #e8eaee;
    --text: #232327;
    color-scheme: light;
}
[data-tema="light"] body { background: #d8dae0; color: #232327; }
[data-tema="light"] .top-bar { background: rgba(228,230,235,0.92); }
[data-tema="light"] .nav-btn:hover,
[data-tema="light"] .nav-toggle:hover,
[data-tema="light"] .bildirim-btn:hover { background: #c9ccd4; }
[data-tema="light"] .nav-toggle,
[data-tema="light"] .bildirim-btn { background: #e3e5ea; border-color: #c4c7cf; color: #232327; }

[data-tema="light"] .modal-box { background: #e9ebef; }
[data-tema="light"] .dropdown-content { background: #e9ebef; border-color: #c6c9d1; }
[data-tema="light"] .dropdown-content a:hover { background: #dcdfe6; }

[data-tema="light"] .btn:not(.btn-primary):not(.btn-plan-hizli):not(.btn-plan-detay):not(.btn-warning):not(.btn-sil):not(.btn-gitti) { background: #ced0d8; color: #2a2a2e; }
[data-tema="light"] .modern-input { background: #e6e8ed; border-color: #b6b9c2; }
[data-tema="light"] .autocomplete-box { background: #e9ebef !important; border-color: #c6c9d1; }
[data-tema="light"] .autocomplete-item:hover,
[data-tema="light"] .autocomplete-item.focused { background: #d5d9e1; }
[data-tema="light"] .ac-alt { color: #4e4e56; }
[data-tema="light"] .ac-bos { color: #6c6c75; }
[data-tema="light"] #done-secilen-arac-badge,
[data-tema="light"] #edit-secilen-arac-badge { background: #dcdfe5 !important; }

[data-tema="light"] .modern-table { background: #ebedf1; }
[data-tema="light"] .modern-table th { background: #dfe2e8; color: #45454d; }
[data-tema="light"] .modern-table th,
[data-tema="light"] .modern-table td { border-bottom-color: #d0d3da; }
[data-tema="light"] .modern-table tbody tr:hover { background: #e1e5ec; }

[data-tema="light"] .tab-btn { background: #e4e6eb; border-color: #c2c5cd; }
[data-tema="light"] .tab-btn:hover { background: #d6d9e0; }
[data-tema="light"] .tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

[data-tema="light"] .master-card { background: #e4e6eb; border-color: #d2d5dc; }
[data-tema="light"] .kanban-col,
[data-tema="light"] .kanban-card,
[data-tema="light"] .bilgi-kart,
[data-tema="light"] .dosya-kart,
[data-tema="light"] .user-card,
[data-tema="light"] .notes-panel,
[data-tema="light"] .bilgi-bos,
[data-tema="light"] .dosya-bos,
[data-tema="light"] .plan-ozet-kart,
[data-tema="light"] .plan-blok { background: #e9ebef !important; border-color: #cfd2d9 !important; }

[data-tema="light"] .gl-marka { background: #e9ebef; border-color: #cfd2d9; }
[data-tema="light"] .gl-marka-baslik { background: linear-gradient(180deg,#e6ebf2,#dde7f2); border-bottom-color: #d2d8e2; }
[data-tema="light"] .gl-baslik-satir { background: #dfe2e8; border-bottom-color: #d0d3da; }
[data-tema="light"] .gl-satir,
[data-tema="light"] .haf-satir,
[data-tema="light"] .haf-yeni,
[data-tema="light"] .gl-yeni { background: #ebedf0; border-color: #d3d6dd; }
[data-tema="light"] .gl-satir:hover,
[data-tema="light"] .haf-satir:hover { background: #e0e5ed; }
[data-tema="light"] .gl-satir.kilitli,
[data-tema="light"] .haf-satir.kilitli { background: #e2e4e9; }
[data-tema="light"] .gl-satir .gl-hucre,
[data-tema="light"] .haf-hucre { border-right-color: #d4d7de; }
[data-tema="light"] .liste-sira { background: #e0e6f0; border-right-color: #d3d6dd; }
[data-tema="light"] .liste-sira.bos { background: transparent; }
[data-tema="light"] .summary-box { background: #e2e4e9 !important; border-color: #cfd2d9 !important; }

[data-tema="light"] .hafta-gun { background: #e9ebef; border-color: #cfd2d9; }
[data-tema="light"] .hafta-gun-baslik { background: #dee1e7; }
[data-tema="light"] .hafta-gun.bugun { background: #e1e9f5; }

[data-tema="light"] .bottom-action-bar { background: rgba(233,235,239,0.96); border-top-color: #cfd2d9; }

/* Seçilen tür: hafif mavilik yerine net, dolu görünüm. */
[data-tema="light"] .ms-chip { background: #c9def7; border-color: #7fb0e8; color: #0a4c93; }
[data-tema="light"] .ms-arti { background: #c0d6f0; border-color: #8bb4e0; color: #0a4c93; }
[data-tema="light"] .ms-arti:hover { background: #adc9ec; }
[data-tema="light"] .ms-ek-panel { background: #e9ebef; border-color: #c6c9d1; }

/* Sayfa içinde satır içi (inline) saf beyaz zemin kullanan kutular da
   hafif koyulaştırılır; böylece parlak beyaz alan kalmaz. */
[data-tema="light"] [style*="background:#fff"],
[data-tema="light"] [style*="background: #fff"],
[data-tema="light"] [style*="background-color:#fff"],
[data-tema="light"] [style*="background-color: #fff"],
[data-tema="light"] [style*="background:white"],
[data-tema="light"] [style*="background: white"] {
    background-color: #e8eaee !important;
    background-image: none !important;
}
} /* light tema sonu */

