/* SADE STIL (deneme) */
:root{--bg:#f6f7f9;--panel:#fff;--fg:#1d2430;--mut:#6b7380;--line:#e3e6eb;--line2:#cfd4db;--hov:#f3f5f8;--yuz:#f1f3f6;--acc:#1D9E75;
 --ok-bg:#e3f4ec;--ok-fg:#0f6e56;--uy-bg:#fbf0d9;--uy-fg:#854f0b;--kr-bg:#fbe7e7;--kr-fg:#a32d2d;--r:10px}
:root[data-s=koyu]{--bg:#16181c;--panel:#1d2025;--fg:#e8eaed;--mut:#9aa1ab;--line:#2c3036;--line2:#3a3f46;--hov:#24282e;--yuz:#24282e;--acc:#4cc9a0;
 --ok-bg:#12352b;--ok-fg:#7fe0bd;--uy-bg:#3a2e14;--uy-fg:#f2c46b;--kr-bg:#3d1c1c;--kr-fg:#f29a9a}
body{font-size:14px;background:var(--bg);color:var(--fg)}
main{padding:20px 24px 40px}
/* kartlar */
.stat{gap:10px!important}
html body .stat .card:nth-child(n){background:var(--yuz)!important;border:0!important;border-radius:var(--r)!important;padding:12px 16px!important;box-shadow:none!important}
html body .stat .card:nth-child(n) small{font-size:12px;color:var(--mut)!important;min-height:0!important;text-transform:none;letter-spacing:0;font-weight:400}
.stat .card b{font-size:22px;font-weight:500;color:var(--fg)}
.bgn{background:var(--panel)!important;border:1px solid var(--line)!important;border-radius:var(--r)!important}
.bgn .it{background:transparent!important;border:1px solid var(--line)!important;border-left:3px solid var(--line2)!important;border-radius:0!important}
/* tablo */
.wrap{border:1px solid var(--line)!important;border-radius:12px!important;background:var(--panel)}
table{background:var(--panel)!important}
th{background:var(--panel)!important;color:var(--mut)!important;font-size:12.5px!important;font-weight:500!important;text-transform:none!important;letter-spacing:0!important;border-bottom:1px solid var(--line2)!important;padding:9px 10px!important}
td{border-bottom:1px solid var(--line)!important;padding:6px 10px!important;font-size:14px;height:34px}
table:not(.pt) tbody tr:hover td:not([style*="background"]){background:var(--hov)!important}
tr.bek td{color:var(--fg)!important}tr.bek td.c-ad::after{content:"Onay bekliyor";margin-left:8px;font-size:11.5px;padding:2px 8px;border-radius:99px;background:var(--uy-bg);color:var(--uy-fg);font-weight:400}
tr.bg td{color:var(--fg)!important}tr.bg td.c-ad::after{content:"Bugün";margin-left:8px;font-size:11.5px;padding:2px 8px;border-radius:99px;background:var(--ok-bg);color:var(--ok-fg)}
/* form + dugmeler */
input,select,textarea{background:var(--panel)!important;color:var(--fg)!important;border:1px solid var(--line2)!important;border-radius:8px!important;height:36px;padding:0 12px!important;font-size:14px!important;box-shadow:none!important}
input[type=checkbox]{height:16px;width:16px;padding:0!important;accent-color:var(--acc)}
input:focus,select:focus{outline:none!important;border-color:var(--acc)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--acc) 18%,transparent)!important}
main button,main .btn,main :is(button,a,summary,label,input).g,main :is(button,a,summary,label,input).gr,main :is(button,a,summary,label,input).r{background:transparent!important;color:var(--fg)!important;border:1px solid var(--line2)!important;border-radius:8px!important;height:36px;padding:0 14px!important;font-size:14px!important;font-weight:500!important;display:inline-flex!important;align-items:center;gap:7px;box-shadow:none!important;transition:background .15s,transform .08s;text-decoration:none}
main button:hover,main .btn:hover{background:var(--hov)!important}
main button:active,main .btn:active{transform:scale(.97)}
.c-act .btn,.c-act button{height:30px;padding:0 9px!important;font-size:13px!important}
.r{color:var(--kr-fg)!important}
svg.ik{width:16px;height:16px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
form.bar{gap:8px!important;align-items:center}
form.bar>span{color:var(--mut)}
.c-ad{font-weight:500}
html body .stat .card:nth-child(n) b{font-size:22px!important;font-weight:500!important;color:var(--fg)!important}
th{font-size:12px!important}
.c-ad{font-weight:500!important}
html body table:not(.pt) td:not([style*="background"]){background:var(--panel)!important}
html body table:not(.pt) td:not([style*="color"]){color:var(--fg)!important}
html body table:not(.pt) tbody tr:hover td:not([style*="background"]){background:var(--hov)!important}
html body main :is(button,a,summary,label,input).g,html body main :is(button,a,summary,label,input).gr,html body main .btn{background:transparent!important;color:var(--fg)!important}
html body .bgn .it{background:transparent!important;color:var(--fg)!important}
html body .bgn .it small{color:var(--mut)!important}
html body .bgn>b{color:var(--fg)!important}
td{height:auto!important;padding:8px 10px!important;line-height:1.35}
:root{--bas:#eef0f3}:root[data-s=koyu]{--bas:#262a31}
html body table th,html body .wrap table th{background:var(--bas)!important;color:var(--mut)!important}
html body .wrap{overflow:auto}
/* yan menu (deneme): acik gri panel, basliklar yumusak kenarli dugme gibi */
:root{--yan:#eceef2;--yan-fg:#2a313c;--yan-mut:#6b7380;--yan-btn:#fff}
:root[data-s=koyu]{--yan:#1b1e23;--yan-fg:#dfe3e8;--yan-mut:#8f97a1;--yan-btn:#22262c}
@media(min-width:901px){
 html body header{background:var(--yan)!important;border-right:1px solid var(--line)}
 html body header .logo{border-bottom:1px solid var(--line)!important}
 html body header .logo b{color:var(--yan-fg)!important}
 html body header nav{gap:6px!important}
 html body header .gb{background:var(--yan-btn)!important;color:var(--yan-fg)!important;border:1px solid var(--line2)!important;border-radius:10px!important;padding:8px 12px!important;font-weight:500!important;font-size:14px!important}
 html body header .gb:hover,html body header .grp:hover .gb{background:var(--hov)!important;color:var(--yan-fg)!important}
 html body header .grp.ac .gb,html body header .gb.aktif{background:var(--yan-btn)!important;color:var(--yan-fg)!important;border-color:var(--acc)!important;box-shadow:inset 3px 0 0 var(--acc)}
 html body header .dd{padding:4px 0 4px 10px!important}
 html body header .dd a{color:var(--yan-mut)!important;border-radius:8px!important}
 html body header .dd a:hover{background:var(--hov)!important;color:var(--yan-fg)!important}
 html body header .dd a.aktif{background:var(--hov)!important;color:var(--yan-fg)!important;font-weight:500}
 html body header .dd details.alt>summary{color:var(--yan-mut)!important}
 html body header .usr,html body header .cks,html body header .mcks{color:var(--yan-mut)!important}
 html body header .usr i{background:var(--acc)!important;color:#fff}
 html body #tsec{background:var(--yan-btn)!important;border:1px solid var(--line2)}
 html body #tsec button{background:transparent!important;color:var(--yan-mut)!important}
 html body #tsec button.on{background:var(--acc)!important;color:#fff!important}
}
/* sayi kutulari: renkli sayi + solda ince renkli hat */
:root{--k1:#3b4756;--k2:#1D9E75;--k3:#2f6fd0;--k4:#d0453a;--k5:#d0453a;--k6:#d9822b;--k7:#14868c;--k8:#6b4fc7;--k9:#5f6b7a}
:root[data-s=koyu]{--k1:#c9d1db;--k2:#4cc9a0;--k3:#7aa8f0;--k4:#f08a80;--k5:#f08a80;--k6:#f0b060;--k7:#5fc8cc;--k8:#a891f0;--k9:#a3adb9}
html body .stat .card:nth-child(n){box-shadow:inset 3px 0 0 var(--kc,var(--line2))!important;background:var(--panel)!important;border:1px solid var(--line)!important}
html body .stat .card:nth-child(n) b{color:var(--kc,var(--fg))!important}
.stat .card:nth-child(1){--kc:var(--k1)}.stat .card:nth-child(2){--kc:var(--k2)}.stat .card:nth-child(3){--kc:var(--k3)}
.stat .card:nth-child(4){--kc:var(--k4)}.stat .card:nth-child(5){--kc:var(--k5)}.stat .card:nth-child(6){--kc:var(--k6)}
.stat .card:nth-child(7){--kc:var(--k7)}.stat .card:nth-child(8){--kc:var(--k8)}.stat .card:nth-child(9){--kc:var(--k9)}
/* Ayri pencere: yan menude, icerigin ustune binmez; menu gizle dugmesi icin solda bosluk */
@media(min-width:901px){
 html body #ayri{position:static!important;display:flex!important;align-items:center;gap:7px;justify-content:center;width:100%;height:34px!important;min-height:34px!important;line-height:1!important;margin:0!important;background:var(--yan-btn)!important;color:var(--yan-fg)!important;border:1px solid var(--line2)!important;border-radius:10px!important;font-size:13px!important;font-weight:500!important;padding:0 10px!important}
 html body #ayri:hover{background:var(--hov)!important}
 html body main{padding-left:52px!important}
 html.mgiz body main{padding-left:52px!important}
}
/* tablo basliklari: buyuk harf yerine ilk harf buyuk (html lang=tr, Turkce harfler dogru) */
html body th{text-transform:lowercase!important}
html body th::first-letter{text-transform:uppercase}
html body main :is(button,a,summary,label,input).g.g.g,html body main :is(button,a,summary,label,input).gr.gr.gr,html body main .btn.btn.btn,html body main button.r.r.r{background:transparent!important;color:var(--fg)!important}
html body main button.r.r.r{color:var(--kr-fg)!important}
html body main :is(button,a,summary,label,input).g.g.g:hover,html body main .btn.btn.btn:hover,html body main button:hover{background:var(--hov)!important}
/* sayfa basliklari her temada okunur */
html body main h1,html body main h2,html body main h3,html body main h4{color:var(--fg)!important}
html body main h3{font-size:19px;font-weight:500;margin:4px 0 12px}
html body main a{color:var(--k3)}
html body main a.btn,html body main .c-act a{color:var(--fg)}
/* ---- kayit animasyonlari (anim.js / ajaxtablo.js) ---- */
.an-tik{display:inline-flex;align-items:center;gap:6px;margin-left:8px;font-size:13px;font-weight:500;color:var(--ok-fg);vertical-align:middle;white-space:nowrap;animation:anGir .25s ease-out}
.an-tik.kr{color:var(--kr-fg)}
.an-tik svg{width:22px;height:22px;flex:none}
.an-tik circle{fill:none;stroke:currentColor;stroke-width:2.5;stroke-dasharray:88;stroke-dashoffset:88;animation:anCiz .45s ease-out forwards}
.an-tik path{fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:24;stroke-dashoffset:24;animation:anCiz .3s .35s ease-out forwards}
.an-tik.kucuk svg{width:16px;height:16px}
.an-tik.ic{margin:0;animation:none}.an-tik.ic svg{width:18px;height:18px}
.an-tik.git{transition:opacity .4s;opacity:0}
@keyframes anCiz{to{stroke-dashoffset:0}}
@keyframes anGir{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@keyframes anYs{0%,100%{box-shadow:0 0 0 0 transparent}25%,75%{box-shadow:0 0 0 4px color-mix(in srgb,var(--acc) 35%,transparent)}50%{box-shadow:0 0 0 0 transparent}}
@keyframes anYk{0%,100%{box-shadow:0 0 0 0 transparent}25%,75%{box-shadow:0 0 0 4px color-mix(in srgb,var(--k4) 35%,transparent)}50%{box-shadow:0 0 0 0 transparent}}
@keyframes anHucre{0%,50%,100%{background-color:inherit}25%,75%{background-color:var(--ok-bg)}}
.an-ys{animation:anYs 1.1s ease-out!important}.an-yk{animation:anYk 1.1s ease-out!important}
html body table td.an-hucre{animation:anHucre 1.1s ease-out}
html body table tr.an-satir>td{animation:anHucre 1.1s ease-out}
html body table tr.an-sil>td{transition:opacity .45s .15s,background-color .2s!important;background-color:var(--kr-bg)!important;opacity:0}
html body table tr.an-yeni>td{animation:anGir .3s ease-out,anHucre 1.1s ease-out}
main .msg{animation:anGir .3s ease-out}
@media (prefers-reduced-motion:reduce){.an-tik,.an-tik *,.an-ys,.an-yk,td.an-hucre,tr.an-satir>td,tr.an-yeni>td,main .msg{animation:none!important;stroke-dashoffset:0!important}tr.an-sil>td{transition:none!important}}

/* ---- formlar (personel karti, izin, mesai, arac, tasaron, etkinlik...) ---- */
html body .pf{background:var(--panel)!important;border:1px solid var(--line)!important;border-radius:12px!important;box-shadow:none!important;padding:16px 20px!important;gap:6px 24px!important;color:var(--fg)}
html body .pf .fr{margin-bottom:6px!important;gap:10px}
html body .pf .fr>label,html body .pf label.lb{font-size:12.5px!important;font-weight:500!important;color:var(--mut)!important;text-transform:lowercase}
html body .pf .fr>label::first-letter,html body .pf label.lb::first-letter{text-transform:uppercase}
html body .pf .fr input:not([type=checkbox]):not([type=radio]),html body .pf .fr select,html body .pf .fr textarea{border:1px solid var(--line2)!important;border-radius:8px!important;min-height:34px;height:auto;padding:5px 10px!important}
html body .pf .fr textarea{min-height:60px}
html body .pf input:disabled,html body .pf input[readonly]{background:var(--yuz)!important;color:var(--mut)!important}
html body .pf .box{background:transparent!important;border:1px solid var(--line)!important;border-radius:10px!important;box-shadow:none!important;padding:12px!important}
html body .pf .box>b:first-child{display:block;font-size:12.5px;font-weight:500;color:var(--mut);text-transform:lowercase;margin-bottom:6px}
html body .pf .box>b:first-child::first-letter{text-transform:uppercase}
html body .pf .box.isl{gap:6px!important}
html body .pf .box.isl .btn,html body .pf .box.isl button,html body .pf .box .fotob .btn{height:32px!important;min-height:32px!important;font-size:13px!important;justify-content:center;width:100%}
html body .pf .box img{border-radius:10px;background:var(--yuz)}
html body .pf .tam{grid-column:1/-1}
html body .pf .kc{padding:0}
html body main form>h3:first-child,html body main>h3:first-child{margin-top:0}

/* sabit renkli zemin + yazi rengi yok -> koyu yazi (koyu temada okunur) */
html body main :is(span,td,div,b,p)[style*="background:#"]:not([style*="color:"]):not(.zz){color:#1f2937!important}

/* stil gozden gecirme (05.11) */
html body .ph h1{font-size:20px!important;font-weight:500!important;letter-spacing:0!important;line-height:1.3!important;color:var(--fg)!important}
html body .ph h1 em{font-family:inherit!important;font-style:normal!important;font-weight:inherit!important;color:var(--acc)!important}
html body table:not(.pt){border-color:var(--line)!important;box-shadow:none!important}
html body table.vl td .btn,html body table.vl td button{height:30px!important;padding:0 10px!important;font-size:13px!important}
/* acilir pencere (personel karti vb.): dis hatti her temada belli olsun */
dialog::backdrop{background:rgba(10,14,20,.55)}
html[data-s=koyu] dialog{border:1px solid #4a5363!important;box-shadow:0 0 0 1px rgba(255,255,255,.06),0 24px 70px rgba(0,0,0,.7)!important}
html[data-s=koyu] dialog::backdrop{background:rgba(0,0,0,.65)}
html body textarea{height:auto;min-height:72px;padding:8px 12px!important;line-height:1.5}
/* personel karti / formlar: kaydirma cubugu cikmasin diye sikilastirildi */
html body .pf{padding:10px 18px!important;gap:2px 22px!important}
html body .pf .fr{margin-bottom:2px!important}
html body .pf .fr input:not([type=checkbox]):not([type=radio]),html body .pf .fr select{min-height:30px!important;height:30px!important;padding:2px 10px!important;font-size:13.5px!important}
html body .pf .fr textarea{min-height:48px!important;font-size:13.5px!important}
html body .pf .box{padding:10px!important}
html body .pf .box.isl .btn,html body .pf .box.isl button{height:30px!important;min-height:30px!important}
#mzyer>*{white-space:nowrap;flex:none}
