﻿/* YMC HAL web: masaüstü programının teması (UI/Theme.cs renkleri) ve OnurHal gibi pencere içinde pencere */
:root {
    --birincil: #15803D; --birincil-koyu: #0D5E2D; --birincil-acik: #DCEDE3; --koyu: #1C2B24; --koyu-yazi: #E9EEEB;
    --arac: #F7F9F8; --zemin: #EDF1EF; --kenar: #D2D9D5; --yazi: #17211C; --soluk: #637068; --alan: #DEE5E1;
    --baslik-zemin: #EBF1ED; --serit: #F6F9F7; --tehlike: #C62828; --secili: #C4E0CF;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* hidden özniteliği sınıfın display kuralına yenilmesin (ör. başlıksız pencerenin başlığı) */
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--zemin); color: var(--yazi);
             font: 13px "Segoe UI", Tahoma, sans-serif; }
button, input, select { font: inherit; color: inherit; }
.kabuk { display: flex; flex-direction: column; height: 100vh; border-top: 3px solid var(--birincil); }

/* Menü çubuğu */
.menu-cubugu { display: flex; background: #fff; padding: 2px 8px; font-weight: 600; user-select: none; position: relative; z-index: 100000; }
.menu-cubugu .ust { position: relative; padding: 4px 10px; cursor: default; color: #000; }
.menu-cubugu .ust:hover, .menu-cubugu .ust.acik { background: var(--birincil-acik); }
.menu-perde { position: fixed; inset: 0; z-index: 99999; }
.acilir { position: absolute; left: 0; top: 100%; min-width: 230px; background: #fff; border: 1px solid var(--kenar);
          box-shadow: 0 4px 12px rgba(0,0,0,.15); padding: 3px 0; font-weight: 400; white-space: nowrap; }
.acilir .oge { position: relative; display: flex; align-items: center; padding: 4px 26px 4px 14px; cursor: default; }
.acilir .oge:hover { background: var(--birincil-acik); }
.acilir .oge.pasif { color: #9aa59f; }
.acilir .oge .ad { flex: 1; white-space: pre; }
.acilir .oge .kisayol { color: var(--soluk); margin-left: 24px; }
.acilir .oge .ok { position: absolute; right: 8px; }
.acilir .oge.altli > .acilir { display: none; left: 100%; top: -4px; }
.acilir .oge.altli:hover > .acilir { display: block; }
.acilir .ayirici { height: 1px; background: var(--kenar); margin: 3px 0; }

/* Araç çubuğu ve durum çubuğu */
.arac-cubugu { display: flex; align-items: center; gap: 2px; height: 36px; padding: 4px 8px; background: var(--arac);
               border-bottom: 1px solid var(--kenar); font-weight: 600; flex: none; }
.arac { border: 1px solid transparent; background: transparent; padding: 3px 8px; border-radius: 3px; cursor: pointer; color: #000; font-weight: 600; }
.arac:hover:not(:disabled) { background: var(--birincil-acik); border-color: var(--kenar); }
.arac:disabled { color: #9aa59f; cursor: default; }
.arac-yazi { padding: 0 6px; }
.arac-sag { margin-left: auto; padding-right: 4px; font-weight: 400; }
.ayrac { width: 1px; height: 20px; background: var(--kenar); margin: 0 6px; }
.durum-cubugu { display: flex; gap: 18px; height: 24px; align-items: center; padding: 0 10px; background: var(--koyu); color: var(--koyu-yazi); flex: none; }
.durum-cubugu .marka { color: #4ade80; font-weight: 700; }

/* Masaüstü alanı */
.masaustu { position: relative; flex: 1; overflow: hidden; background: var(--zemin); }
.simge-cubugu { position: absolute; left: 4px; bottom: 4px; display: flex; gap: 4px; flex-wrap: wrap; z-index: 90000; }
.simge-pencere { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid var(--kenar);
                 background: #fff; padding: 3px 8px; cursor: pointer; border-radius: 3px; }

/* Pencere */
.pencere { position: absolute; display: flex; flex-direction: column; background: var(--alan); border: 1px solid #9fb0a6;
           box-shadow: 0 6px 18px rgba(0,0,0,.18); min-width: 200px; min-height: 80px; }
.pencere:not(.sabit) { resize: both; overflow: hidden; }
.pencere.aktif { border-color: var(--birincil); }
.pencere.buyuk { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; resize: none; }
.pencere.simge { display: none; }
.pencere .baslik { display: flex; align-items: center; height: 26px; padding: 0 4px 0 8px; background: #fff; color: var(--soluk);
                   border-bottom: 1px solid var(--kenar); user-select: none; cursor: default; flex: none; }
.pencere.aktif .baslik { color: #000; }
.baslik-simge { color: var(--birincil); margin-right: 6px; }
.baslik-yazi { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.baslik-dugmeler { display: flex; }
.pd { width: 34px; height: 24px; border: 0; background: transparent; cursor: pointer; color: #333; }
.pd:hover { background: #e5e7e6; }
.pd.kapat:hover { background: #e81123; color: #fff; }
.pencere .icerik { flex: 1; position: relative; display: flex; flex-direction: column; overflow: hidden; }

/* Ortak denetimler */
.dugme { min-width: 96px; height: 28px; padding: 0 14px; border: 1px solid #b0bcb5; background: var(--baslik-zemin);
         border-radius: 3px; cursor: pointer; font-weight: 700; }
.dugme.yesil { background: var(--birincil); border-color: var(--birincil-koyu); color: #fff; }
.dugme.kirmizi { background: var(--tehlike); border-color: #9b1c1c; color: #fff; }
.dugme:hover { filter: brightness(1.06); }
.secim, .metin, .tarih { height: 24px; border: 1px solid #b0bcb5; background: #fff; padding: 0 4px; border-radius: 2px; }
.secim { min-width: 150px; }
.metin { width: 150px; }
.tarih:disabled, .secim:disabled { background: #f0f2f1; color: #9aa59f; }
.kutu { display: inline-flex; align-items: center; gap: 4px; }
.alt-cubuk { display: flex; justify-content: flex-end; gap: 12px; height: 46px; padding: 9px 12px; background: var(--zemin); margin-top: auto; flex: none; }

/* Kriter pencereleri */
.kriter-ekrani { padding: 8px 10px 0; }
.grup { position: relative; border: 1px solid var(--kenar); border-radius: 3px; margin: 0; padding: 6px 10px 8px; }
.grup legend { font-weight: 700; color: var(--birincil-koyu); padding: 0 4px; }
.tk-satir { display: flex; align-items: center; gap: 6px; height: 28px; }
.tk-etiket { width: 110px; display: inline-flex; align-items: center; gap: 4px; }
.tk-sag { position: absolute; left: 370px; top: 10px; display: flex; flex-direction: column; gap: 6px; }

/* İleti kutusu */
.mesaj { display: flex; flex-direction: column; height: 100%; background: #fff; font-size: 12px; }
.mesaj-ust { flex: 1; display: flex; align-items: flex-start; gap: 10px; padding: 25px 24px 10px; }
.mesaj-simge { width: 32px; height: 32px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
               color: #fff; font: 700 18px "Segoe UI", sans-serif; user-select: none; }
.mesaj-simge.hata { background: #e81123; }
.mesaj-simge.bilgi, .mesaj-simge.soru { background: #0063b1; }
.mesaj-simge.uyari { border-radius: 0; background: #ffb900; color: #000; clip-path: polygon(50% 2%, 100% 96%, 0 96%); padding-top: 9px; }
.mesaj-metin { white-space: pre-wrap; line-height: 17px; padding-top: 1px; align-self: center; }
.mesaj-alt { display: flex; justify-content: flex-end; gap: 10px; padding: 11px 12px; background: #f0f0f0; flex: none; }
.mesaj-dugme { min-width: 88px; height: 23px; border: 1px solid #adadad; background: #e1e1e1; font: 12px "Segoe UI", sans-serif; color: #000; }
.mesaj-dugme:hover { background: #e5f1fb; border-color: #0078d7; }
.mesaj-dugme:focus { border-color: #0078d7; outline: 1px solid #0078d7; outline-offset: -2px; }
.kilit-perde { position: absolute; inset: 0; z-index: 5; }
.pencere:focus { outline: none; }   /* odak pencerenin kendisindeyken çerçeve çizilmez */

/* Listeler */
.liste-ekrani { display: flex; flex-direction: column; height: 100%; background: var(--zemin); }
.liste-ust { background: var(--arac); padding: 6px 10px; border-bottom: 1px solid var(--kenar); flex: none; }
.arac-satiri { display: flex; gap: 4px; margin-bottom: 6px; }
.arac-satiri .arac { width: 32px; height: 28px; background: #fff; border-color: var(--kenar); padding: 0; }
.arama-satiri { display: flex; gap: 8px; }
.tablo-alan { flex: 1; overflow: auto; background: #fff; }
.tablo { border-collapse: collapse; table-layout: fixed; width: max-content; min-width: 100%; }
.tablo th { position: sticky; top: 0; background: var(--baslik-zemin); color: var(--birincil-koyu); font-weight: 700; text-align: left;
            padding: 4px 6px; border: 1px solid var(--kenar); cursor: pointer; user-select: none; white-space: nowrap; z-index: 1; }
.tablo td { height: 22px; padding: 0 6px; border: 1px solid #e3e8e5; white-space: nowrap; overflow: hidden; }
.tablo tbody tr:nth-child(even) td { background: var(--serit); }
.tablo tbody tr:hover td { background: #eef6f1; }
.tablo tbody tr.secili td { background: var(--secili); }
.tablo .sag { text-align: right; }
.durum-satiri { height: 24px; padding: 3px 10px; background: var(--arac); color: var(--soluk); border-top: 1px solid var(--kenar); flex: none; }

/* Rapor önizleme */
.onizleme { display: flex; flex-direction: column; height: 100%; }
.onizleme-cubuk { display: flex; align-items: center; gap: 4px; padding: 4px 8px; background: var(--arac); border-bottom: 1px solid var(--kenar); flex: none; }
.sayfa-no { min-width: 70px; text-align: center; font-weight: 700; }
.onizleme-alan { flex: 1; overflow: auto; background: #8a948f; padding: 16px; text-align: center; }
.sayfa-resmi { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35); max-width: none; }

/* Giriş sayfası: masaüstü giriş ekranının (Forms/LoginForm.cs) düzeni (solda yeşil marka paneli, sağda form), web temasının renkleriyle.
   Durağan renk geçişleri; resim, bulanıklaştırma ve sürekli animasyon yok */
.giris-sayfa { display: flex; height: 100vh; overflow: auto; padding: 24px;
               background: radial-gradient(900px 520px at 10% 6%, rgba(34, 197, 94, .17), transparent 62%),
                           radial-gradient(820px 520px at 94% 98%, rgba(14, 165, 233, .12), transparent 62%),
                           linear-gradient(160deg, #F4F9F6, #E1EBE5); }
.giris-kart { display: flex; width: 820px; max-width: 100%; min-height: 500px; margin: auto; border-radius: 20px; overflow: hidden; background: #fff;
              box-shadow: 0 30px 70px rgba(16, 60, 35, .22), 0 6px 18px rgba(16, 60, 35, .10); }

.giris-sol { position: relative; overflow: hidden; width: 360px; flex: none; display: flex; flex-direction: column; color: #fff; user-select: none;
             background: linear-gradient(150deg, #22C55E 0%, #16A34A 36%, #15803D 68%, #14532D 100%); }
.giris-sol::before, .giris-sol::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.giris-sol::before { width: 340px; height: 340px; right: -150px; top: -140px; background: rgba(255, 255, 255, .09); }
.giris-sol::after { width: 230px; height: 230px; left: -120px; top: 200px; background: rgba(255, 255, 255, .06); }
.giris-noktalar { position: absolute; left: 0; bottom: 0; fill: rgba(255, 255, 255, .2);
                  -webkit-mask-image: linear-gradient(transparent, #000 80%); mask-image: linear-gradient(transparent, #000 80%); }
.giris-marka { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; padding: 54px 30px 112px; text-align: center; }
.giris-amblem { width: 96px; height: 96px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center;
                background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); box-shadow: 0 10px 26px rgba(10, 50, 25, .25); }
.giris-amblem svg { margin-top: 3px; }
.giris-logo { margin-top: 18px; font-size: 32px; font-weight: 800; letter-spacing: 1px; line-height: 1.15; }
.giris-logo b { color: #BBF7D0; font-weight: 800; }
.giris-slogan { margin-top: 4px; font-size: 13.5px; color: rgba(255, 255, 255, .88); }
.giris-ozellik { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; text-align: left; font-size: 13px; }
.giris-ozellik li { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .95); }
.giris-ozellik li::before { content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
                            background: rgba(255, 255, 255, .2); font-size: 11px; font-weight: 800; }
.giris-web { position: absolute; z-index: 1; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 3px 12px; border-radius: 999px;
             background: rgba(12, 58, 30, .38); font-size: 12px; letter-spacing: .3px; color: rgba(255, 255, 255, .92); white-space: nowrap; }

.giris-sag { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 46px 52px 20px; background: #fff; color: #17211C; }
.giris-ust { margin-bottom: 24px; }
.giris-baslik { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.2; color: #14532D; }
.giris-alt { margin: 6px 0 0; font-size: 13.5px; color: #6B7A72; }
.giris-etiket-satir { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.giris-etiket { display: block; margin: 0 0 6px; font-size: 12.5px; font-weight: 700; color: #3B4D43; user-select: none; }
.giris-caps { padding: 0 8px; border-radius: 999px; background: #FEF3C7; color: #B45309; font-size: 11.5px; font-weight: 700; }
.giris-alan { position: relative; margin-bottom: 16px; }
.giris-alan > svg { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; margin-top: -9px; pointer-events: none;
                    fill: none; stroke: #8AA095; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.giris-alan:focus-within > svg { stroke: #16A34A; }
.giris-kutu { display: block; width: 100%; height: 42px; padding: 0 14px 0 42px; border: 1.5px solid #D3E2D9; border-radius: 11px;
              background: #F6FAF7; color: #17211C; font-size: 15px; outline: none; transition: border-color .12s, box-shadow .12s, background-color .12s; }
.giris-kutu:hover { border-color: #B5D3C0; }
.giris-kutu:focus { border-color: #22C55E; background: #fff; box-shadow: 0 0 0 4px rgba(34, 197, 94, .16); }
.giris-kutu:-webkit-autofill { -webkit-text-fill-color: #17211C; box-shadow: 0 0 0 40px #F6FAF7 inset; caret-color: #17211C; }
.giris-kutu:-webkit-autofill:focus { box-shadow: 0 0 0 40px #fff inset, 0 0 0 4px rgba(34, 197, 94, .16); }
#giris-sifre { padding-right: 46px; }
.giris-goz { position: absolute; right: 6px; top: 50%; width: 32px; height: 30px; margin-top: -15px; display: flex; align-items: center; justify-content: center;
             padding: 0; border: 0; border-radius: 8px; background: transparent; color: #7C9187; cursor: pointer; }
.giris-goz:hover { background: #E6F4EB; color: #15803D; }
.giris-goz svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.giris-goz .goz-kapali, .giris-goz[aria-pressed="true"] .goz-acik { display: none; }
.giris-goz[aria-pressed="true"] .goz-kapali { display: block; }
.giris-hata { display: flex; align-items: flex-start; gap: 9px; margin: 2px 0 14px; padding: 10px 12px; border-radius: 10px;
              background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; font-size: 13px; line-height: 18px; }
.giris-hata svg { flex: none; width: 18px; height: 18px; fill: none; stroke: #DC2626; stroke-width: 2; stroke-linecap: round; }
.giris-hap { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 46px; margin-top: 6px; border: 0; border-radius: 12px;
             background: linear-gradient(#25C760, #16A34A); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .3px; cursor: pointer; outline: none;
             box-shadow: 0 10px 22px rgba(22, 163, 74, .30), inset 0 1px 0 rgba(255, 255, 255, .25); transition: box-shadow .12s, transform .12s, filter .12s; }
.giris-hap span { transition: transform .12s; }
.giris-hap:hover { filter: brightness(1.06); box-shadow: 0 12px 26px rgba(22, 163, 74, .38), inset 0 1px 0 rgba(255, 255, 255, .25); }
.giris-hap:hover span { transform: translateX(3px); }
.giris-hap:active { transform: translateY(1px); box-shadow: 0 4px 10px rgba(22, 163, 74, .30); }
.giris-hap:focus-visible { box-shadow: 0 0 0 4px rgba(34, 197, 94, .32), 0 10px 22px rgba(22, 163, 74, .30); }
.giris-dip { margin-top: auto; padding-top: 22px; text-align: center; font-size: 11.5px; color: #93A39A; }
@media (max-width: 780px) { .giris-sol { display: none; } .giris-kart { width: 440px; min-height: 0; } .giris-sag { padding: 36px 30px 18px; } }

/* Durum çubuğunda kullanıcı ve çıkış */
.durum-cubugu .sag { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.durum-cubugu form { margin: 0; }
.cikis { border: 0; background: transparent; color: var(--koyu-yazi); text-decoration: underline; cursor: pointer; padding: 0 2px; }
.cikis:hover { color: #4ade80; }
