:root{--bg:#f4f6f8;--panel:#fff;--sidebar:#e8edf1;--text:#17212b;--muted:#667685;--line:#dce3e8;--red:#ef1b2d;--shadow:0 10px 30px rgba(37,52,64,.08)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif}button,input{font:inherit}button{cursor:pointer}[hidden]{display:none!important}.login-shell{min-height:100vh;display:grid;place-items:center;padding:28px 16px;background:linear-gradient(180deg,#f7f9fb,#eef2f5);position:relative}.login-card{width:min(430px,100%);background:white;border:1px solid var(--line);border-radius:22px;padding:35px;box-shadow:var(--shadow)}.login-logo{display:block;width:96px;height:96px;object-fit:contain;margin:0 auto 16px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.12em;color:var(--muted)}.login-card .eyebrow{text-align:center}.login-card h1{text-align:center;font-size:29px;letter-spacing:-.04em;margin:8px 0 4px}.sub{text-align:center;color:var(--muted);margin:0 0 29px;font-size:14px}label{display:block;font-size:12px;font-weight:750;margin:16px 0 8px;color:#314150}input{width:100%;border:1px solid #cfd8df;background:#fbfcfd;border-radius:10px;padding:13px 14px;outline:none}input:focus{border-color:#9cb5c8;box-shadow:0 0 0 3px #557e9f1a}.password-wrap{display:flex;position:relative}.password-wrap input{padding-right:85px}.password-wrap button{position:absolute;right:6px;top:6px;border:0;background:#edf1f4;padding:7px 9px;border-radius:7px;font-size:12px}.primary{margin-top:24px;width:100%;background:var(--red);border:0;color:#fff;border-radius:10px;padding:14px 16px;font-weight:800;display:flex;justify-content:space-between}.primary:hover{background:#d91727}.primary:disabled{opacity:.65;cursor:wait}.error{background:#fff0f1;color:#a71929;border:1px solid #ffd5d9;border-radius:9px;padding:11px;font-size:13px;margin-top:14px}.hint{color:var(--muted);font-size:11px;line-height:1.6;margin:18px 0 0}.login-footer{position:absolute;bottom:17px;color:#8b98a4;font-size:11px}.app-shell{display:grid;grid-template-columns:245px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--sidebar);border-right:1px solid #d4dde3;padding:18px 14px;display:flex;flex-direction:column;min-height:100vh}.brand{display:flex;gap:10px;align-items:center;padding:5px 8px 24px}.brand img{width:51px;height:51px;object-fit:contain}.brand strong{font-size:17px}.brand small{display:block;font-size:11px;color:var(--muted)}nav{display:grid;gap:4px}.nav-item{background:transparent;border:0;border-radius:10px;text-align:left;padding:12px;color:#33424e;font-size:13px;font-weight:650}.nav-item.active{background:#d6dde2;box-shadow:inset 3px 0 0 var(--red)}.sidebar-bottom{margin-top:auto;border-top:1px solid #cad4db;padding:16px 8px;font-size:12px;overflow-wrap:anywhere}.logout{margin-top:12px;border:1px solid #ccd6dc;background:white;border-radius:9px;padding:10px;width:100%;font-weight:700}.main{min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:25px 30px;border-bottom:1px solid var(--line);background:#fff}.topbar h2{margin:6px 0 0;font-size:23px}.pill{font-size:12px;border-radius:30px;background:#f0f3f5;padding:8px 12px}.content{padding:28px 30px}.panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px;box-shadow:var(--shadow);max-width:900px}.panel h3{margin:0 0 10px}.panel p{color:var(--muted);line-height:1.7}.notice{border-left:3px solid var(--red);background:#fff6f7;padding:12px 14px;border-radius:6px;font-size:13px;margin-top:18px}@media(max-width:750px){.app-shell{grid-template-columns:1fr}.sidebar{min-height:0;border-right:0;border-bottom:1px solid var(--line)}nav{display:flex;overflow:auto}.nav-item{white-space:nowrap}.sidebar-bottom{display:flex;align-items:center;gap:12px;padding:8px}.logout{width:auto;margin:0}.topbar{padding:20px}.content{padding:18px}.login-card{padding:26px}}

.branch-panel{max-width:1050px}.branch-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.branch-head h3{margin:0}.branch-status{font-size:13px;color:#607080;margin:12px 0}.branch-list{display:grid;gap:10px}.branch-item{border:1px solid #dce3e8;border-radius:11px;padding:14px;display:flex;align-items:center;justify-content:space-between;gap:16px}.branch-info{display:grid;gap:5px}.branch-info small{color:#667685}.small-primary{background:#ef1b2d;color:white;border:0;border-radius:9px;padding:11px 15px;font-weight:750}.secondary-btn{background:#fff;color:#263745;border:1px solid #ccd6dc;border-radius:9px;padding:10px 14px;font-weight:700}.branch-editor{margin-top:18px;max-width:1050px}.branch-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 18px}.branch-form label{margin:12px 0 6px}.branch-check{display:flex;align-items:center;gap:8px}.branch-check input{width:auto}.branch-tip,.branch-actions,.branch-form .branch-status{grid-column:1/-1}.branch-actions{display:flex;gap:10px;margin-top:8px}@media(max-width:750px){.branch-form{grid-template-columns:1fr}.branch-head{flex-wrap:wrap}}

/* V1.3 Admin GPS editor */
.geo-tools{grid-column:1/-1;border:1px solid #dce3e8;border-radius:13px;background:#f9fbfc;padding:18px;margin:12px 0 4px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px}.geo-tools h4,.geo-buttons,.geo-message,.map-wrap{grid-column:1/-1}.geo-tools h4{margin:0 0 5px;font-size:17px}.geo-buttons{display:flex;flex-wrap:wrap;gap:9px}.geo-buttons button{background:#e9eef2;border:0}.geo-message{font-size:12px;color:#607080;margin:4px 0}.branch-map{height:310px;width:100%;border-radius:10px;overflow:hidden}.map-wrap{min-width:0}.branch-form .field-latitude,.branch-form .field-longitude{min-width:0}.branch-check{grid-column:1/-1}.branch-tip{font-size:12px}.branch-actions{justify-content:flex-end}@media(max-width:750px){.geo-tools{grid-template-columns:1fr}.geo-tools h4,.geo-buttons,.geo-message,.map-wrap{grid-column:1}.geo-buttons button{width:100%}}
/* User management */
.user-form{display:grid;gap:8px;max-width:650px}.user-form label{margin:10px 0 6px}.form-select{width:100%;border:1px solid #cfd8df;border-radius:10px;padding:12px;background:white;font:inherit}.user-branch-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:4px 14px;max-height:280px;overflow:auto;border:1px solid #dce3e8;border-radius:10px;padding:10px}.user-branch-check{display:flex;align-items:center;gap:7px;margin:0!important;font-weight:500!important}.user-branch-check input{width:auto}.user-form .branch-actions{justify-content:flex-end}

/* Personnel management */
.employee-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.employee-stat{background:#f5f7f9;border:1px solid #e0e7ec;border-radius:12px;padding:14px;display:grid;gap:4px}.employee-stat strong{font-size:24px}.employee-stat small{color:#667685}.employee-filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px;margin-bottom:15px}.employee-filters input,.employee-filters select{min-width:0}.employee-item{flex-wrap:wrap}.employee-status{font-size:12px;font-weight:700;padding:7px 10px;border-radius:18px;background:#edf0f3;color:#3d4b55}.employee-status-active{background:#e7f6ec;color:#207343}.employee-status-pending{background:#fff2d8;color:#8c5b09}.employee-status-rejected{background:#ffe7e9;color:#a52030}.employee-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px}.employee-form .branch-status,.employee-form .branch-actions{grid-column:1/-1}@media(max-width:750px){.employee-filters,.employee-form{grid-template-columns:1fr}.employee-stats{gap:7px}.employee-stat{padding:10px}.employee-stat strong{font-size:20px}}

/* Personel durum sekmeleri */
.employee-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 16px}.employee-tabs button{white-space:nowrap}.employee-tabs .employee-tab-active{background:#ee1c2d;color:#fff;border-color:#ee1c2d}.employee-panel [role="status"]{color:#17734b;font-weight:600}

/* V3.3 — yalnızca employee rolüne uygulanan mobil panel */
.employee-mobile-app{display:block;min-height:100dvh;background:#f5f7f9}
.employee-mobile-app .sidebar,.employee-mobile-app .topbar{display:none!important}
.employee-mobile-app .content{padding:0!important;max-width:none}
.mobile-employee{max-width:480px;margin:0 auto;min-height:100dvh;padding:20px 18px calc(100px + env(safe-area-inset-bottom));background:#f5f7f9}
.mobile-head{display:flex;align-items:center;gap:10px;margin-bottom:28px}.mobile-logo{width:48px;height:48px;object-fit:contain}.mobile-brand{display:grid;gap:3px}.mobile-brand strong{font-size:18px}.mobile-brand small{color:#657684;font-size:12px}.mobile-exit{margin-left:auto;background:white;border:1px solid #dce3e8;border-radius:10px;padding:10px 12px;font-size:12px;font-weight:700;color:#344451}
.mobile-overline{color:#71808d;font-size:11px;font-weight:800;letter-spacing:.1em}.mobile-name{font-size:26px;letter-spacing:-.03em;margin:6px 0 8px}.mobile-subtitle{font-size:14px;color:#667685;margin:0 0 15px}.mobile-branch{font-size:13px;color:#465d6d;margin-bottom:20px}
.mobile-card{background:white;border:1px solid #e0e6eb;border-radius:18px;padding:19px;margin:14px 0;box-shadow:0 4px 16px rgba(25,38,50,.035)}.mobile-card-title{font-size:16px;font-weight:800;margin-bottom:14px}.mobile-status{display:inline-block;background:#f0f3f5;color:#627483;font-size:11px;border-radius:30px;padding:8px 10px}.mobile-times{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}.mobile-times>div{display:grid;gap:7px}.mobile-times small{color:#778591;font-size:12px}.mobile-times strong{font-size:24px;font-variant-numeric:tabular-nums}
.mobile-scan{border:1px dashed #cfd8df;border-radius:14px;text-align:center;padding:23px 16px;margin-bottom:16px;background:#fafbfc}.mobile-scan-icon{font-size:52px;line-height:1;color:#ef1b2d;margin-bottom:13px}.mobile-scan strong{display:block;font-size:15px}.mobile-scan p{font-size:12px;color:#71808d;line-height:1.6;margin:10px 0 0}.mobile-action{width:100%;border-radius:12px;padding:16px;font-size:15px;font-weight:800;border:0;margin-top:10px}.mobile-in{background:#19824b;color:white}.mobile-out{background:#fff;color:#c62432;border:1px solid #efbdc3}.mobile-muted{font-size:13px;color:#73818c;line-height:1.7;margin:0}.mobile-profile-row{display:flex;justify-content:space-between;gap:10px;padding:13px 0;border-bottom:1px solid #edf1f3;font-size:13px}.mobile-profile-row:last-child{border:0}.mobile-profile-row span{color:#6c7a87}.mobile-profile-row strong{text-align:right;overflow-wrap:anywhere}
.mobile-bottom-nav{position:fixed;z-index:20;bottom:0;left:0;right:0;display:flex;justify-content:center;gap:0;background:#fff;border-top:1px solid #e2e8ed;padding:10px max(12px,calc((100vw - 480px)/2)) calc(10px + env(safe-area-inset-bottom));box-shadow:0 -4px 18px rgba(20,35,50,.04)}.mobile-nav-item{flex:1;max-width:160px;border:0;background:transparent;color:#73818d;display:grid;place-items:center;gap:4px;padding:6px;font-weight:700}.mobile-nav-item span{font-size:24px}.mobile-nav-item small{font-size:11px}.mobile-nav-item.selected{color:#e7192c}.mobile-toast{position:fixed;z-index:50;bottom:94px;left:50%;transform:translateX(-50%);width:min(420px,calc(100% - 30px));background:#182d39;color:white;border-radius:12px;padding:15px;font-size:13px;box-shadow:0 8px 28px #0003}
@media(min-width:760px){.employee-mobile-app .mobile-employee{border-left:1px solid #e2e8ed;border-right:1px solid #e2e8ed;background:#f5f7f9}}

/* AFC PDKS V3.4 QR ekranları */
.qr-panel{max-width:1050px}.qr-panel label{display:block;margin:14px 0 6px;font-weight:700}.qr-select{width:100%;max-width:480px;display:block;margin:4px 0 12px;padding:11px;border:1px solid #ccd2d9;border-radius:9px}.qr-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:20px 0}.qr-section{border:1px solid #e0e4e9;border-radius:16px;padding:20px;text-align:center;background:white;min-width:0}.qr-section h3{font-size:17px}.qr-section p{font-size:13px;color:#555;min-height:38px}.qr-image{display:flex;justify-content:center;margin:16px auto}.qr-image img,.qr-image canvas{max-width:100%;height:auto}.qr-print-head{display:flex;align-items:center;gap:20px;margin-top:18px}.qr-print-head img{width:90px;object-fit:contain}.qr-expiry{font-weight:700;text-align:center}.qr-print-button{margin:10px auto;display:block}@media(max-width:650px){.qr-two{grid-template-columns:1fr}}@media print{body *{visibility:hidden!important}.qr-print-area,.qr-print-area *{visibility:visible!important}.qr-print-area{position:absolute;left:0;top:0;width:100%;padding:18mm}.qr-print-button{display:none!important}.qr-two{grid-template-columns:1fr 1fr!important}.qr-section{break-inside:avoid}}

/* V3.5 personel mobil */
.mobile-welcome{display:flex;align-items:center;gap:14px;margin-bottom:10px}.mobile-welcome .mobile-name{font-size:22px;margin:4px 0}.mobile-welcome .mobile-subtitle{margin:0}.mobile-avatar,.mobile-profile-avatar{display:grid;place-items:center;flex-shrink:0;width:68px;height:68px;border-radius:50%;background:#e7192c;color:#fff;font-size:28px;font-weight:900}.mobile-profile-avatar{width:90px;height:90px;margin:0 auto 16px}.mobile-status-active{background:#e7f7ee;color:#16784a}.mobile-session-row{display:flex;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #edf1f3}.mobile-session-row>div{display:grid;gap:5px}.mobile-session-row strong{font-size:13px}.mobile-session-row small{font-size:11px;color:#73818c}.mobile-session-row>div:last-child{text-align:right}.mobile-reader{width:100%;min-height:250px;overflow:hidden;border-radius:14px;margin:15px 0;background:#f0f3f5}.mobile-scan-status{font-size:13px;line-height:1.6;color:#405666;min-height:42px}.mobile-reader video{border-radius:12px}.mobile-employee{box-sizing:border-box}.mobile-employee *{box-sizing:border-box}

/* V3.8 photo */
.photo-picker{display:grid;gap:8px;grid-column:1/-1}.photo-picker input{width:100%;max-width:100%;padding:10px;border:1px solid #dce3e8;border-radius:10px}.photo-preview{width:120px;height:120px;object-fit:cover;border-radius:14px}.photo-preview[hidden]{display:none}.photo-picker small{color:#607080}.personnel-photo{width:100%;height:100%;object-fit:cover;border-radius:inherit}.employee-photo-small{width:48px;height:48px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;background:#edf1f3;overflow:hidden}.photo-approvals{margin-top:18px}.photo-approvals .branch-list{margin-top:14px}

/* V3.9 - AFC uygulama içi onay penceresi */
.afc-modal-overlay{position:fixed;inset:0;z-index:99999;background:rgba(13,24,37,.60);display:flex;align-items:center;justify-content:center;padding:18px;backdrop-filter:blur(3px)}
.afc-modal{box-sizing:border-box;width:min(100%,430px);border-radius:18px;background:#fff;color:#1b2734;padding:26px;box-shadow:0 24px 70px rgba(0,0,0,.26)}
.afc-modal-title{font-size:21px;font-weight:750;margin:0 0 13px;color:#20252c}.afc-modal-message{font-size:15px;line-height:1.6;margin:0 0 26px;overflow-wrap:anywhere}
.afc-modal-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}.afc-modal-actions button{min-height:43px;padding:10px 18px;border-radius:10px;cursor:pointer;font-weight:700}.afc-modal-danger{border:0;background:#b4232f;color:white}.afc-modal-actions button:focus-visible{outline:3px solid #447eea;outline-offset:2px}
@media(max-width:450px){.afc-modal{padding:22px}.afc-modal-actions button{flex:1}}

/* V3.10 – tutarli personel listesi ve gercek puantaj */
.employee-row-uniform{display:grid!important;grid-template-columns:48px minmax(180px,1fr) minmax(105px,135px) auto;gap:14px;align-items:center;min-height:78px;padding:12px 16px}.employee-info-uniform{min-width:0;display:flex;flex-direction:column;gap:4px}.employee-info-uniform strong,.employee-info-uniform small{display:block;text-align:left;overflow-wrap:anywhere}.employee-row-uniform .employee-status{justify-self:start;white-space:nowrap}.employee-row-uniform button{white-space:nowrap}.employee-photo-small{width:48px;height:48px}.attendance-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.attendance-stat{background:#f4f6f8;border-radius:12px;padding:15px;display:grid;gap:5px}.attendance-stat strong{font-size:25px;color:#192b38}.attendance-stat small{color:#687681}.attendance-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:16px 0}.attendance-filter{display:grid;gap:6px;font-size:12px;font-weight:700;min-width:135px;flex:1}.attendance-filter input,.attendance-filter select{width:100%;min-height:41px;border:1px solid #d9e1e7;border-radius:9px;padding:9px;background:#fff;color:#18252e}.attendance-table-wrap{overflow-x:auto}.attendance-table{border-collapse:collapse;width:100%;min-width:780px;text-align:left}.attendance-table th,.attendance-table td{padding:13px 12px;border-bottom:1px solid #e7edf1;font-size:13px;white-space:nowrap}.attendance-table th{background:#f5f7f9;color:#657481;font-size:12px}.attendance-open{color:#168452;font-weight:800}.attendance-complete{color:#536374;font-weight:700}.mobile-scan-success{color:#168452!important;font-weight:800}@media(max-width:850px){.attendance-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-row-uniform{grid-template-columns:48px minmax(0,1fr) auto}.employee-row-uniform .employee-status{grid-column:3}.employee-row-uniform button{grid-column:3}}@media(max-width:480px){.attendance-filters{display:grid;grid-template-columns:1fr 1fr}.attendance-filter{min-width:0}.employee-row-uniform{gap:8px;padding:12px 8px}.employee-row-uniform .employee-status{font-size:10px}.employee-row-uniform button{font-size:11px;padding:7px}}
