:root{--navy:#142b49;--navy-deep:#10223b;--coral:#ef775d;--coral-dark:#db6148;--bg:#f7f8fb;--surface:#fff;--border:#e5e9f0;--text:#1d2c40;--muted:#788497;--shadow:0 5px 22px rgba(18,38,67,.045);--radius:15px}
*{box-sizing:border-box}html{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:14px;color:var(--text)}body{margin:0;background:var(--bg)}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button{cursor:pointer}input,select{color:var(--text)}.app-shell{display:flex;min-height:100vh}.sidebar{position:fixed;z-index:20;inset:0 auto 0 0;width:252px;background:var(--navy);color:#dce7f7;display:flex;flex-direction:column;padding:24px 15px 18px;box-shadow:3px 0 20px #0d213414}.sidebar-brand{display:flex;align-items:center;gap:11px;padding:4px 10px 32px;color:#fff}.brand-mark{width:40px;height:40px;border-radius:13px;background:var(--coral);display:inline-flex;align-items:center;justify-content:center;color:#fff;font-size:22px;font-weight:800;box-shadow:0 5px 12px #080f1722;flex-shrink:0}.sidebar-brand strong,.auth-brand strong{font-size:15px;display:block;line-height:1.2}.sidebar-brand small,.auth-brand small{display:block;font-size:11px;color:#afc0d6;margin-top:4px}.nav-label{color:#8399b5;font-size:10px;font-weight:800;letter-spacing:1.6px;padding:6px 17px 11px}.side-nav{display:grid;gap:5px}.nav-link{display:flex;align-items:center;gap:13px;border-radius:10px;padding:13px 15px;font-weight:600;color:#d0dceb;transition:background .18s,color .18s}.nav-link:hover{background:#ffffff13;color:#fff}.nav-link.is-active{background:#ffffff1b;color:#fff;box-shadow:inset 3px 0 0 var(--coral)}.nav-icon{width:20px;text-align:center;font-size:19px;line-height:1}.sidebar-bottom{margin-top:auto;padding:18px 9px 5px;border-top:1px solid #ffffff20;display:flex;align-items:center;gap:10px}.user-avatar{background:#ffffff24;border:1px solid #ffffff20;width:37px;height:37px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800}.sidebar-user{min-width:0}.sidebar-user strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.sidebar-user small{display:block;color:#b7c5d7;margin-top:4px;font-size:11px}.main-column{margin-left:252px;min-width:0;width:calc(100% - 252px);display:flex;flex-direction:column}.topbar{height:73px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 35px;gap:15px}.topbar-crumb{font-weight:650;color:#394c62}.topbar-crumb span{padding:0 10px;color:#bbc4d0}.topbar-right{display:flex;align-items:center;gap:18px}.topbar-person{font-size:12px;color:var(--muted);font-weight:600}.logout-btn{background:transparent;border:1px solid var(--border);border-radius:8px;padding:9px 12px;color:#40536b;font-weight:650}.logout-btn:hover{background:#f7f8fb}.mobile-menu{display:none;background:transparent;border:0;font-size:22px;color:var(--navy)}.content{padding:32px 35px;flex:1;max-width:1700px;width:100%;margin:0 auto}.footer{padding:20px 35px;border-top:1px solid var(--border);color:#9aa6b4;font-size:11px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.page-heading h1{font-size:25px;line-height:1.25;letter-spacing:-.7px;margin:0 0 7px;color:var(--navy)}.page-heading p{color:var(--muted);margin:0;font-size:13px;line-height:1.6}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;border-radius:9px;padding:10px 16px;font-weight:700;border:1px solid transparent;white-space:nowrap;transition:all .16s;text-align:center}.btn-primary{background:var(--coral);color:#fff}.btn-primary:hover{background:var(--coral-dark);transform:translateY(-1px)}.btn-outline{background:#fff;border-color:#dce3ed;color:var(--navy)}.btn-outline:hover{background:#f1f4f8}.btn-success{background:#eaf8ef;color:#21884e;border-color:#c9ecd6}.btn-success:hover{background:#d9f3e3}.btn-danger-outline{background:#fff4f2;color:#c34c42;border-color:#f2d4d1}.btn-danger-outline:hover{background:#ffe5e1}.btn-block{width:100%}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:22px}.stat-card{border:1px solid var(--border);background:var(--surface);border-radius:var(--radius);padding:20px 20px 18px;box-shadow:var(--shadow);min-width:0}.stat-top{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#78889b;font-size:12px;font-weight:600;margin-bottom:19px}.stat-icon{height:33px;width:33px;background:#f5f6f9;border-radius:9px;color:var(--coral);display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:800}.stat-card>strong{display:block;font-size:25px;line-height:1.3;color:var(--navy);letter-spacing:-.5px;overflow-wrap:anywhere}.stat-card>small{display:block;margin-top:8px;color:#95a1af;font-size:11px}.quick-actions{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:22px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(260px,1fr);gap:18px}.panel{background:#fff;border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px;min-width:0;margin-bottom:19px}.dashboard-grid .panel{margin:0}.panel-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:17px}.panel-title h2{font-size:16px;margin:0 0 4px;color:var(--navy)}.panel-title p{font-size:12px;margin:0;color:var(--muted)}.text-link{font-size:12px;color:#db6650;font-weight:750;white-space:nowrap}.text-link:hover{text-decoration:underline}.table-wrap{width:100%;overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:610px;text-align:left}th{color:#8b98a9;font-size:11px;font-weight:750;letter-spacing:.1px;padding:13px 12px;background:#f8fafc;white-space:nowrap}td{padding:15px 12px;border-top:1px solid #edf0f4;color:#4e6075;font-size:12px;vertical-align:middle}td strong{color:var(--navy);font-weight:750}td.nowrap{white-space:nowrap}.badge{display:inline-block;font-size:10px;font-weight:750;border-radius:20px;padding:6px 10px;white-space:nowrap}.badge-success{background:#e7f7ec;color:#298552}.badge-warning{background:#fff3dd;color:#a97a1b}.badge-danger{background:#fff0ee;color:#b8534b}.badge-muted{background:#f0f1f4;color:#7c8797}.tips{display:grid;gap:18px}.tip{display:flex;align-items:flex-start;gap:12px}.tip>span{width:31px;height:31px;flex-shrink:0;border-radius:9px;background:#fff0eb;color:#e36e55;font-weight:800;display:flex;align-items:center;justify-content:center;font-size:12px}.tip strong{display:block;color:var(--navy);font-size:12px}.tip p{font-size:11px;color:#8795a5;line-height:1.6;margin:4px 0 0}.empty-state{text-align:center;padding:35px 10px;color:#8493a6}.empty-state strong{display:block;color:var(--navy);font-size:14px}.empty-state p{font-size:12px}.empty-icon{font-size:30px;margin-bottom:10px;color:#a9b8c8}.form-panel{max-width:930px;padding:29px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field-label{font-size:12px;color:#34475c;font-weight:750}.field-label em{color:#d65e4a;font-style:normal}.field input,.field select,.filterbar input,.filterbar select{background:#fff;border:1px solid #dce3ec;border-radius:9px;padding:11px 12px;min-height:42px;width:100%;outline:0;transition:border-color .15s,box-shadow .15s}.field input:focus,.field select:focus,.filterbar input:focus,.filterbar select:focus{border-color:var(--coral);box-shadow:0 0 0 3px #ef775d1a}.field input[type=file]{font-size:12px;padding:9px}.field small{color:#97a2b0;font-size:11px;line-height:1.5}.checkline{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:600;margin-top:18px;color:#4e5c6e;cursor:pointer}.checkline input{accent-color:var(--coral);width:16px;height:16px;flex-shrink:0}.checkline-highlight{padding:16px;border:1px solid #f5dfd8;background:#fff8f5;border-radius:11px;align-items:flex-start}.checkline-highlight span{display:flex;flex-direction:column;gap:4px}.checkline-highlight small{color:#9a8077;font-weight:400}.form-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:28px;padding-top:22px;border-top:1px solid var(--border)}.form-actions .btn{min-width:130px}.section-separator{border-top:1px solid var(--border);margin:25px 0}.form-panel h3{font-size:15px;color:var(--navy);margin:0 0 5px}.muted{color:#8b98a8;font-size:12px;line-height:1.6}.checkbox-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 16px}.checkbox-grid .checkline{margin-top:10px}.filterbar{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.filterbar label{font-size:11px;font-weight:700;color:#5e6e83;display:grid;gap:7px}.filterbar input,.filterbar select{min-width:175px}.notice{border:1px solid #dce7f6;background:#f0f6fe;color:#536f8f;padding:15px 18px;border-radius:11px;font-size:12px;line-height:1.75;margin-bottom:18px}.note-row td{background:#fff8f4;color:#aa6252;padding:8px 12px}.review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.review-card{margin:0}.review-head{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:15px}.review-head h3{margin:5px 0 0;font-size:17px;color:var(--navy)}.eyebrow{color:var(--coral);font-size:10px;font-weight:850;letter-spacing:1.3px}.review-details{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-bottom:15px}.review-details small{display:block;color:#9ba6b4;font-size:10px;margin-bottom:5px}.review-details strong{display:block;color:#334961;font-size:12px}.review-card form{margin-top:17px;border-top:1px solid var(--border);padding-top:16px}.review-actions{display:flex;gap:9px;margin-top:12px}.alert{padding:13px 17px;border-radius:10px;font-weight:650;font-size:12px;margin-bottom:20px}.alert-success{background:#e8f7ee;border:1px solid #cde9d8;color:#277f4e}.alert-danger{background:#fff0ef;border:1px solid #f1ceca;color:#a53e39}.auth-shell{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px 16px;background:radial-gradient(ellipse at top left,#eaf0f9,transparent 55%),var(--bg)}.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:28px}.auth-brand strong{font-size:19px;color:var(--navy)}.auth-brand small{color:#8e9aab;font-size:12px}.auth-card{background:#fff;border:1px solid var(--border);border-radius:19px;box-shadow:0 12px 50px #1b2f4c0c;width:min(100%,440px);padding:32px}.auth-card h1{font-size:23px;color:var(--navy);letter-spacing:-.5px;margin:9px 0}.auth-card>p{color:#8a97a7;line-height:1.7;font-size:12px;margin:0 0 24px}.auth-card form{display:grid;gap:18px}.auth-card .btn{margin-top:8px}.auth-foot{text-align:center;color:#9faab7;font-size:11px;margin-top:25px}.auth-shell>.alert{width:min(100%,440px)}
@media(max-width:1180px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}.content{padding:25px}.topbar{padding:0 25px}}@media(max-width:860px){.sidebar{transform:translateX(-100%);transition:transform .2s ease}.sidebar.sidebar-open{transform:translateX(0);box-shadow:6px 0 30px #0004}.main-column{margin-left:0;width:100%}.mobile-menu{display:inline-block}.topbar{height:64px}.topbar-crumb{margin-right:auto}.topbar-person{display:none}.review-grid{grid-template-columns:1fr}}@media(max-width:600px){.content{padding:20px 13px}.topbar{padding:0 14px}.page-heading{align-items:flex-start;flex-direction:column;gap:12px;margin-bottom:19px}.page-heading h1{font-size:22px}.page-heading>.btn{width:100%}.stats-grid{gap:10px}.stat-card{padding:15px}.stat-top{font-size:10px;margin-bottom:13px}.stat-card>strong{font-size:19px}.stat-card>small{font-size:10px}.panel{padding:16px}.form-panel{padding:19px}.form-grid{grid-template-columns:1fr;gap:15px}.checkbox-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-actions .btn{flex:1 1 145px}.filterbar{display:grid;grid-template-columns:1fr 1fr}.filterbar label{min-width:0}.filterbar input,.filterbar select{min-width:0}.filterbar .btn{min-width:0}.auth-card{padding:25px}.footer{padding:18px 13px}.review-details{grid-template-columns:1fr 1fr}}

/* V1.2 — Şoför portalı ve paylaşım bağlantısı */
.share-link{display:flex;gap:10px;align-items:center;margin:14px 0 8px}
.share-link input{min-width:0;flex:1;padding:13px;border:1px solid var(--border);border-radius:9px;background:#f8fafc;color:var(--navy)}
.driver-shell{min-height:100vh;display:flex;flex-direction:column;background:#f6f8fb}
.driver-topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#142b49;color:white;padding:13px max(16px,calc((100vw - 660px)/2));min-height:76px}
.driver-brand{display:flex;align-items:center;gap:10px;min-width:0}
.driver-brand strong{font-size:14px;display:block}.driver-brand small{font-size:11px;color:#c8d5e5;display:block;margin-top:4px}
.driver-topbar .logout-btn{color:#fff;border-color:#516781}
.driver-content{width:100%;max-width:690px;margin:0 auto;flex:1;padding:25px 15px 35px}
.driver-intro{margin:3px 0 22px}.driver-intro h1{font-size:26px;letter-spacing:-.5px;margin:7px 0;color:var(--navy)}.driver-intro p{color:var(--muted);line-height:1.6;margin:0}
.driver-content .form-panel{margin-bottom:18px}.driver-content .form-grid{grid-template-columns:1fr}
.driver-name{display:flex;flex-direction:column;gap:4px;background:#eef3f9;border:1px solid #dfe8f3;padding:15px;border-radius:10px;margin-bottom:22px}
.driver-name span,.driver-name small{font-size:11px;color:#6b7c91}.driver-name strong{font-size:17px;color:#142b49}
.driver-history{display:flex;flex-direction:column}.driver-history-item{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:13px 0;border-top:1px solid var(--border)}
.driver-history-item:first-child{border-top:0}.driver-history-item strong{display:block;color:var(--navy)}.driver-history-item small{display:block;margin-top:5px;color:var(--muted)}
.driver-history-right{text-align:right}.driver-history-right .badge{margin-top:6px;display:inline-flex}
.driver-footer{text-align:center;padding:15px;color:#98a6b6;font-size:11px}
@media(max-width:650px){.share-link{flex-direction:column;align-items:stretch}.driver-content{padding:22px 12px}.driver-intro h1{font-size:23px}.driver-topbar{padding:12px 15px}}


/* V1.5 — Kurulabilir mobil uygulama deneyimi */
.pwa-install-banner[hidden],.pwa-install-action[hidden]{display:none!important}
.pwa-install-banner{display:flex;align-items:center;gap:11px;background:#eef5ff;border:1px solid #cbdcf4;border-radius:13px;padding:12px 11px;margin:0 0 18px;color:#173454;box-shadow:0 4px 12px #1734540b}
.pwa-install-mark{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:36px;height:36px;background:#dbeaff;border-radius:10px;color:#244d7b;font-size:22px;font-weight:700}
.pwa-install-copy{flex:1;min-width:0}.pwa-install-copy strong{font-size:12px;display:block;line-height:1.4}.pwa-install-copy small{font-size:11px;display:block;color:#527090;line-height:1.5;margin-top:3px}
.pwa-install-action{border:0;background:#ee765f;color:white;padding:10px 12px;border-radius:9px;font-size:12px;font-weight:750}
.pwa-install-close{flex-shrink:0;border:0;background:transparent;color:#6d829c;font-size:24px;line-height:1;padding:5px 3px}
.mobile-bottom-nav{display:none}
@media(max-width:860px){
 .main-column{padding-bottom:calc(74px + env(safe-area-inset-bottom))}
 .mobile-bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;z-index:25;bottom:0;left:0;right:0;min-height:68px;padding:5px max(4px,env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-right));background:#fff;border-top:1px solid #dfe5ef;box-shadow:0 -5px 24px #172d4f12}
 .mobile-bottom-item{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#8492a5;padding:4px 0;border-radius:10px}
 .mobile-bottom-item>span{font-size:23px;line-height:1}.mobile-bottom-item>small{font-size:10px;font-weight:750;white-space:nowrap}
 .mobile-bottom-item.is-current{color:#e66d56;background:#fff3ef}
 .mobile-bottom-item:focus-visible{outline:2px solid #e66d56;outline-offset:-2px}
 .topbar{position:sticky;top:0;z-index:19}
 .content{padding-bottom:20px}
 .driver-content .field input,.driver-content .field select{min-height:48px;font-size:16px}
 .driver-content .btn-primary{min-height:50px;font-size:15px}
 .driver-content .form-actions{margin-top:20px}
 .auth-shell .pwa-install-banner{width:min(100%,440px);margin-bottom:24px}
}
@media(max-width:420px){
 .mobile-bottom-item>small{font-size:9px}
 .pwa-install-mark{width:32px;height:32px}
 .pwa-install-banner{gap:8px}
 .driver-brand strong{font-size:12px}
 .driver-topbar .logout-btn{padding:8px 10px}
}
@media(display-mode:standalone){
 .driver-topbar{padding-top:calc(13px + env(safe-area-inset-top))}
 .topbar{padding-top:env(safe-area-inset-top);height:calc(64px + env(safe-area-inset-top))}
}

/* V1.5.1: Kurulum kontrol bağlantısı */
.pwa-install-banner{flex-wrap:wrap}
.pwa-check-link{width:100%;text-align:right;color:#244d7b;text-decoration:underline;font-size:11px;font-weight:700}


/* V1.6 — 2 zorunlu + 2 isteğe bağlı yakıt fotoğrafı */
.fuel-photo-inputs{margin:20px 0 10px;padding:18px;border:1px solid #dfe6f1;border-radius:14px;background:#f8fafd;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.photo-inputs-heading{grid-column:1/-1;display:flex;flex-direction:column;gap:5px}
.photo-inputs-heading strong{font-size:15px;color:#172d4f}
.photo-inputs-heading em,.fuel-photo-input .field-label em{font-style:normal;color:#d95443}
.photo-inputs-heading small{font-size:12px;color:#687a94;line-height:1.6}
.fuel-photo-input{min-width:0;background:#fff;border:1px solid #e0e7f0;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:8px}
.fuel-photo-input input[type=file]{width:100%;max-width:100%;font-size:12px;padding:10px;background:#fff;border:1px dashed #bdc9d9;border-radius:9px}
.fuel-photo-input .field-label small{color:#728099;font-size:11px}
.fuel-photo-preview:not([hidden]){display:flex;gap:9px;align-items:center;color:#4b617d;font-size:11px;overflow-wrap:anywhere}
.fuel-photo-preview img{width:58px;height:58px;object-fit:cover;border-radius:8px;border:1px solid #dce4ee}
.fuel-photo-section{padding:16px;margin:16px 0;background:#f8fafd;border:1px solid #e1e7ef;border-radius:12px}
.fuel-photo-section h3{font-size:14px;margin:0 0 10px;color:#172d4f}
.fuel-photo-section .checkline{display:inline-flex;margin:6px 14px 4px 0}
.fuel-photo-links{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.fuel-photo-link{display:inline-flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;border-radius:8px;background:#fff0eb;border:1px solid #f5d6cc;padding:6px 9px;color:#a44631;text-decoration:none;font-size:11px;font-weight:700}
.fuel-photo-link:hover{background:#ffe4d9}
.fuel-photo-gallery{margin:10px 0;gap:10px}
.fuel-photo-gallery .fuel-photo-link{min-width:105px;padding:7px;background:#fff;border-color:#e1e7ef}
.fuel-photo-gallery img{width:96px;height:96px;object-fit:cover;border-radius:7px}
@media(max-width:680px){.fuel-photo-inputs{grid-template-columns:1fr;padding:12px;gap:10px}.fuel-photo-input input[type=file]{min-height:48px;font-size:13px}.fuel-photo-gallery img{width:76px;height:76px}}

/* V1.7 — Son yakıt kaydından detay sayfasına geçiş */
.record-plate-link{display:inline-flex;align-items:center;gap:5px;color:#173e6b;font-weight:800;border-bottom:1px solid transparent;white-space:nowrap}
.record-plate-link span{font-size:12px;color:#ef775d}
.record-plate-link:hover{color:#d95f49;border-bottom-color:#d95f49}
.record-plate-link:focus-visible{outline:3px solid #ef775d66;outline-offset:3px;border-radius:3px}
.detail-panel{padding:25px 27px}
.detail-hero{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-bottom:20px;border-bottom:1px solid var(--border)}
.detail-hero-vehicle{display:flex;align-items:center;gap:15px;min-width:0}
.detail-hero-icon{width:52px;height:52px;display:flex;align-items:center;justify-content:center;border-radius:14px;background:#fff0eb;color:#df7057;font-size:25px;flex-shrink:0}
.detail-hero-vehicle small{font-size:10px;color:#8594a8;font-weight:800;letter-spacing:1px}
.detail-hero-vehicle h2{font-size:24px;color:var(--navy);margin:4px 0;overflow-wrap:anywhere}
.detail-hero-vehicle p{color:#78879a;font-size:12px;margin:0}
.detail-highlight{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0}
.detail-highlight>div{background:#f7f9fc;border:1px solid #e7ebf1;border-radius:12px;padding:16px;min-width:0}
.detail-highlight small,.detail-info-item small{display:block;color:#7b8da3;font-size:11px;font-weight:650;margin-bottom:8px}
.detail-highlight strong{display:block;color:var(--navy);font-size:19px;overflow-wrap:anywhere}
.detail-section-heading{color:var(--navy);font-size:15px;margin:25px 0 14px}
.detail-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.detail-info-item{border:1px solid #e8edf3;border-radius:10px;padding:14px;min-width:0}
.detail-info-item strong{display:block;color:#344c65;font-size:13px;overflow-wrap:anywhere}
.detail-history-table{min-width:570px}
.detail-selected-row td{background:#fff7f3}
@media(max-width:760px){.detail-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-highlight{grid-template-columns:1fr 1fr}.detail-highlight>div:last-child{grid-column:1/-1}}
@media(max-width:480px){.detail-panel{padding:17px}.detail-hero{align-items:flex-start}.detail-hero-vehicle h2{font-size:19px}.detail-hero-icon{width:42px;height:42px}.detail-info-grid{grid-template-columns:1fr 1fr;gap:8px}.detail-info-item{padding:11px}.detail-highlight strong{font-size:16px}.detail-panel .form-actions .btn{width:100%}}

/* V1.8 — Sunucu tarafında oluşturulan, mobil uyumlu grafikler. */
.charts-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:18px;margin:0 0 22px}
.charts-grid .chart-panel{margin:0;min-width:0;overflow:hidden}
.charts-reports{grid-template-columns:repeat(2,minmax(0,1fr))}
.chart-panel-wide{grid-column:1/-1}
.chart-panel .panel-title{align-items:flex-start;margin-bottom:15px}
.chart-panel .panel-title h2{font-size:15px;line-height:1.35}
.chart-panel .panel-title p{font-size:11px;line-height:1.5}
.chart-svg-wrap{width:100%;min-height:170px}
.chart-line-svg{display:block;width:100%;height:auto;max-height:300px;overflow:visible}
.chart-empty{display:flex;align-items:center;justify-content:center;text-align:center;min-height:190px;margin:0;color:#8795a8;background:#f9fafc;border:1px dashed #e4eaf2;border-radius:11px;font-size:12px;padding:20px;line-height:1.65}
.chart-vehicle-list{display:grid;gap:13px;max-height:460px;overflow:auto;padding:5px 3px 7px 0}
.chart-vehicle-row{display:grid;grid-template-columns:minmax(92px,115px) minmax(0,1fr) 100px;gap:11px;align-items:center;min-width:0}
.chart-vehicle-plate{font-size:11px;font-weight:700;color:#425875;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chart-vehicle-track{display:block;height:11px;border-radius:999px;background:#eef1f6;overflow:hidden}
.chart-vehicle-fill{display:block;height:100%;background:linear-gradient(90deg,#f5a08c,#ee765f);border-radius:999px}
.chart-vehicle-row>strong{font-size:11px;font-weight:800;color:#233b59;text-align:right;white-space:nowrap}
.chart-bars-scroll{overflow-x:auto;max-width:100%;padding-bottom:4px}
.chart-month-bars{min-width:360px;display:flex;align-items:flex-end;justify-content:space-around;gap:9px;padding:8px 4px 0;height:225px;border-bottom:1px solid #e8edf4}
.chart-month-col{flex:1;min-width:23px;max-width:75px;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px}
.chart-month-col>strong{font-size:11px;font-weight:750;color:#50637c}
.chart-month-bar-track{height:145px;display:flex;align-items:flex-end;justify-content:center;width:100%}
.chart-month-bar{display:block;width:min(100%,37px);background:linear-gradient(0deg,#213f66,#517aa9);border-radius:7px 7px 0 0}
.chart-month-col>small{font-size:10px;color:#75869b;white-space:nowrap;padding-bottom:7px}
.chart-disclaimer{margin:-7px 0 22px;font-size:11px;color:#71829b;line-height:1.7}
@media(max-width:1100px){.charts-grid{grid-template-columns:1fr}.charts-reports{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.charts-reports{grid-template-columns:1fr}.charts-grid{gap:12px;margin-bottom:16px}.chart-panel{padding:16px}.chart-panel .panel-title h2{font-size:14px}.chart-vehicle-row{grid-template-columns:minmax(84px,110px) minmax(0,1fr) 90px;gap:7px}.chart-vehicle-plate,.chart-vehicle-row>strong{font-size:10px}.chart-vehicle-list{max-height:420px}.chart-svg-wrap{min-height:0}.chart-month-bars{min-width:340px}}


/* V1.8.3 — Onay bekleyen kayıt bildirimleri */
[data-approval-badge][hidden],.approval-toast[hidden]{display:none!important}
.nav-link .approval-nav-badge{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;min-width:23px;height:23px;padding:0 7px;border-radius:12px;background:#ef775d;color:#fff;font-size:11px;font-weight:850;box-shadow:0 3px 10px #0002}
.approval-bell{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 39px;width:39px;height:39px;border-radius:11px;border:1px solid #e4eaf1;background:#f7f9fc;color:#435875;transition:background .2s,color .2s}
.approval-bell:hover,.approval-bell:focus-visible{background:#fff1ec;color:#d65e49;outline-offset:2px}
.approval-bell-count{position:absolute;top:-7px;right:-8px;display:flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;background:#ee6e55;color:#fff;border:2px solid #fff;border-radius:12px;font-size:10px;font-weight:850}
.approval-toast{position:fixed;right:24px;top:86px;z-index:45;display:flex;align-items:center;gap:12px;max-width:min(470px,calc(100vw - 28px));padding:14px 16px;background:#fff;border:1px solid #f2d6ce;border-left:4px solid #ed765d;border-radius:12px;box-shadow:0 12px 35px #142b4929;color:#253a55;font-size:12px}
.approval-toast-icon{font-size:19px}.approval-toast-message{flex:1;line-height:1.5}.approval-toast a{color:#d35b43;font-weight:800;white-space:nowrap}.approval-toast button{border:0;background:transparent;color:#8190a1;font-size:22px;line-height:1;padding:2px}
.mobile-bottom-item{position:relative}.approval-mobile-badge{position:absolute;top:0;right:max(6px,calc(50% - 26px));display:flex;align-items:center;justify-content:center;min-width:17px;height:17px;padding:0 4px;background:#ee6e55;color:#fff;border:1px solid #fff;border-radius:9px;font-size:9px;font-weight:850}
@media(max-width:860px){.approval-toast{top:75px;right:12px;left:12px;max-width:none}}
@media(max-width:600px){.topbar-right{gap:10px}.approval-bell{width:35px;height:35px;flex-basis:35px}.approval-toast{flex-wrap:wrap;gap:9px}}
/* V1.8.4 — SMTP yönetim ekranında uzun cron komutu taşmasın. */
.mail-cron-command {display:block;white-space:pre-wrap;overflow-wrap:anywhere;padding:14px 16px;border-radius:10px;background:#eef3f9;color:#172d4f;font-size:12px;line-height:1.65;}


/* V1.8.5.8 — Masaüstü / PWA: kısa ekranlarda sol menü kaydırma düzeltmesi.
   Marka ve kullanıcı alanı görünür kalır, yalnızca menü bağlantıları kayar. */
.sidebar {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.sidebar-brand,
.nav-label,
.sidebar-bottom {
  flex-shrink: 0;
}
.side-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  align-content: start;
  grid-auto-rows: max-content;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.32) transparent;
}
.side-nav::-webkit-scrollbar { width: 6px; }
.side-nav::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.28);
  border-radius: 8px;
}
.side-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-bottom { margin-top: 0; }

/* V1.8.6.0 — Günlük araç kontrolü, PWA şoför ana ekranı ve sınırsız fotoğraf arşivi. */
.driver-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0}
.driver-action-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:165px;padding:22px 12px;border:1px solid #dce5ef;border-radius:17px;background:#fff;box-shadow:0 6px 20px #1d38520a;color:#172d4f;text-decoration:none;text-align:center;transition:transform .16s,border-color .16s}
.driver-action-tile:hover{transform:translateY(-2px);border-color:#ed7b60}
.driver-action-tile>span{font-size:34px}.driver-action-tile strong{font-size:19px}.driver-action-tile small{font-size:12px;color:#74849a;line-height:1.5}
.vehicle-check-vehicle-list{display:grid;gap:9px;margin:12px 0 18px}
.vehicle-check-vehicle-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e7edf4;padding:10px 0;font-size:13px}
.check-ok{color:#168058;font-weight:800}.check-warn{color:#c3513b;font-weight:800}
.vehicle-check-control{padding:18px 0;border-bottom:1px solid #e6ebf2}
.vehicle-check-control h3{margin:0 0 12px;font-size:16px;color:#172d4f}
.vehicle-check-control>label{display:flex;align-items:center;gap:10px;margin:10px 0;font-size:14px;color:#26394e;cursor:pointer}
.vehicle-check-control input[type=radio]{width:19px;height:19px;accent-color:#172d4f;flex-shrink:0}
.vehicle-check-photos{margin:20px 0;padding:18px;border:1px solid #dce5ef;border-radius:14px;background:#f8fafc;display:grid;gap:14px;min-width:0}
.vehicle-check-photos .photo-inputs-heading{display:flex;flex-direction:column;gap:7px}
.vehicle-check-photos .field{margin:0;min-width:0}
.vehicle-check-photos input[type=file]{width:100%;max-width:100%;min-height:46px;padding:10px;background:white;border:1px dashed #b9c8da;border-radius:10px;font-size:13px}
.vehicle-check-photos [data-check-extra]{display:grid;gap:10px}
.vehicle-check-file-count{font-size:12px;font-weight:700;color:#556b86}
.vehicle-check-file-count.is-invalid{color:#bb4837}
.vehicle-check-previews{display:grid;grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:10px}
.vehicle-check-previews>div{min-width:0;border:1px solid #e2e8f1;border-radius:9px;padding:5px;background:white}
.vehicle-check-previews img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:6px}
.vehicle-check-previews small{display:block;font-size:10px;overflow-wrap:anywhere;text-align:center;color:#64758b}
.vehicle-check-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(115px,1fr));gap:12px;margin:15px 0}
.vehicle-check-gallery a{display:flex;flex-direction:column;gap:5px;border:1px solid #e0e8f1;border-radius:11px;padding:7px;text-decoration:none;background:#fff;text-align:center;color:#506783}
.vehicle-check-gallery img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:7px}
.vehicle-check-gallery small{font-size:11px}
.vehicle-check-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0 20px}
.vehicle-check-stats>div{padding:15px;border-radius:12px;border:1px solid #e2e9f2;background:#f7f9fc;text-align:center}
.vehicle-check-stats strong{display:block;color:#193452;font-size:25px;line-height:1.2}
.vehicle-check-stats small{display:block;margin-top:7px;color:#63758c;font-size:11px;line-height:1.4}
.vehicle-check-missing{padding:12px 14px;margin:12px 0 20px;border:1px solid #f3d6cc;border-left:4px solid #ef775d;border-radius:10px;background:#fff7f4;color:#854638;font-size:12px;line-height:1.7}
.vehicle-check-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0 25px}
.vehicle-check-detail-grid>div{border:1px solid #e4eaf2;border-radius:10px;padding:12px;min-width:0}
.vehicle-check-detail-grid small{display:block;font-size:11px;color:#74849b;margin-bottom:7px}
.vehicle-check-detail-grid strong{font-size:13px;color:#223c59;overflow-wrap:anywhere}
.vehicle-check-more{margin:24px 0;padding-top:14px;border-top:1px solid #e3e9f1}
/* V1.8.6.1 driver tabs styling below */
@media(max-width:700px){.vehicle-check-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.vehicle-check-stats{gap:7px}.vehicle-check-stats>div{padding:12px 7px}.vehicle-check-stats strong{font-size:22px}}
@media(max-width:430px){.driver-action-grid{gap:9px}.driver-action-tile{min-height:146px;padding:14px 7px}.driver-action-tile>span{font-size:30px}.driver-action-tile strong{font-size:16px}.driver-action-tile small{font-size:11px}.vehicle-check-photos{padding:12px}.vehicle-check-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}

.vehicle-check-add-buttons{display:flex;flex-wrap:wrap;gap:9px}.vehicle-check-add-buttons .btn{font-size:12px;flex:1 1 190px}

/* V1.8.6.1 — Şoför PWA: profesyonel sekmeler ve yalnızca seçilen araç. */
.driver-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;width:min(calc(100% - 24px),690px);margin:14px auto 0;padding:7px;background:#fff;border:1px solid #dce5f0;border-radius:17px;box-shadow:0 6px 22px rgba(19,43,75,.07);overflow:visible}
.driver-tabs a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:65px;padding:9px 4px;border-radius:12px;color:#657891;text-decoration:none;font-weight:750;transition:background .16s,color .16s,box-shadow .16s;white-space:normal}
.driver-tabs a:hover{background:#f1f5fa;color:#183451}
.driver-tabs a.is-active{background:linear-gradient(145deg,#ef775d,#de644d);color:#fff;box-shadow:0 4px 12px rgba(222,100,77,.24)}
.driver-tabs a.is-active:hover{background:linear-gradient(145deg,#ed735a,#d85c45);color:#fff}
.driver-tabs a:focus-visible{outline:3px solid #ef775d;outline-offset:2px}
.driver-tab-icon{display:flex;align-items:center;justify-content:center;line-height:1}
.driver-tab-icon svg{width:23px;height:23px;flex:none}
.driver-tab-label{display:block;font-size:11px;line-height:1.2;letter-spacing:-.1px;text-align:center}
.driver-home-notice{margin-bottom:17px;padding:13px 15px;border-radius:12px;background:#eff5fd;border:1px solid #d9e6f7;color:#375676;font-size:12px;line-height:1.6}
.driver-selected-check .panel-title{margin-bottom:10px}
.driver-selected-check-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 0;border-top:1px solid #e5ecf4;border-bottom:1px solid #e5ecf4;margin-bottom:10px}
.driver-selected-check-row strong{font-size:17px;color:#172d4f}
.driver-selected-check-row span{font-size:12px;text-align:right}
.driver-selected-check .muted{font-size:12px;line-height:1.65;margin:10px 0 15px}
.driver-check-picker-panel{padding:20px;margin-bottom:14px}
.driver-check-step{color:#d56650;font-size:10px;font-weight:850;letter-spacing:1.25px;margin-bottom:14px}
.driver-vehicle-picker label{display:block;font-weight:750;color:#243c5a;font-size:13px;margin-bottom:9px}
.driver-vehicle-picker-row{display:flex;gap:10px;align-items:stretch}
.driver-vehicle-picker-row select{flex:1;min-width:0;width:100%;min-height:49px;border:1px solid #ccd9e9;border-radius:10px;padding:10px 12px;background:#fff;color:#172d4f;font-size:15px;font-weight:700}
.driver-vehicle-picker-row .btn{min-width:120px}
.driver-check-current{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fff;border:1px solid #dce6f1;border-left:4px solid #ef775d;border-radius:13px;padding:14px 16px;margin-bottom:15px;box-shadow:0 4px 18px #142b4909}
.driver-check-current>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.driver-check-current small{font-size:10px;color:#7a8ca2;letter-spacing:1px;font-weight:800}
.driver-check-current strong{font-size:19px;color:#142b49;letter-spacing:.2px}
.driver-check-current>span{font-size:12px;text-align:right;max-width:55%}
.driver-check-empty{text-align:center;padding:35px 20px}
.driver-check-empty-icon{display:grid;place-items:center;margin:0 auto 12px;width:60px;height:60px;border-radius:18px;background:#eef3fa;color:#243f63;font-size:30px}
.driver-check-empty h2{margin:0 0 7px;font-size:18px;color:#172d4f}
.driver-check-empty p{font-size:12px;line-height:1.7;color:#74849a;margin:0 auto;max-width:310px}
@media(max-width:430px){
 .driver-tabs{gap:4px;padding:6px;width:calc(100% - 20px);border-radius:15px}
 .driver-tabs a{min-height:61px;padding:8px 2px;gap:5px}
 .driver-tab-icon svg{width:21px;height:21px}
 .driver-tab-label{font-size:10.5px}
 .driver-vehicle-picker-row{flex-direction:column}
 .driver-vehicle-picker-row .btn{width:100%}
 .driver-check-current{padding:13px 12px}
 .driver-check-current strong{font-size:17px}
}
