@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Manrope:wght@400;500;600;700;800&family=Open+Sans:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&family=Roboto:wght@400;500;700;900&display=swap');
:root{--ink:#152238;--muted:#667085;--line:#7b8491;--bg:#eef2f6;--paper:#fff;--blue:#1e5eff;--blue2:#1748c9;--green:#147a4c;--red:#b42318;--nav:#0c1728;--nav2:#14243b;--card:#fff}
*{box-sizing:border-box}html,body{min-height:100%}body{margin:0;background:var(--bg);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink)}button,input{font:inherit}
.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:250px;background:linear-gradient(180deg,var(--nav),#0a1321 70%);color:#fff;z-index:50;display:flex;flex-direction:column;padding:20px 14px;box-shadow:8px 0 30px #15223812}.sidebar-brand{min-height:126px;display:flex;align-items:center;gap:12px;padding:10px 8px 20px;border-bottom:1px solid #ffffff12}.sidebar-brand--logo-only{justify-content:center;align-items:center;padding:12px 8px 20px}.sidebar-logo{width:190px;height:76px;border-radius:22px;background:#fff;border:1px solid #e6ebf3;display:grid;place-items:center;overflow:hidden;font-weight:900;box-shadow:0 16px 34px #00000024;padding:10px 16px}.sidebar-logo img{width:100%;height:100%;object-fit:contain;background:#fff}.sidebar-brand strong{display:block;font-size:14px}.sidebar-brand small{display:block;color:#8ea0b8;margin-top:3px;font-size:11px}.side-nav{padding-top:18px;display:flex;flex-direction:column;gap:6px}.side-link{width:100%;border:0;background:transparent;color:#aab7c9;padding:11px 12px;border-radius:10px;display:flex;gap:11px;align-items:center;cursor:pointer;font-weight:700;text-align:left;transition:.18s}.side-link:hover{background:#ffffff0b;color:#fff}.side-link.active{color:#fff;background:linear-gradient(135deg,#205fff,#1746bc);box-shadow:0 8px 24px #1644b936}.nav-icon{width:24px;height:24px;display:grid;place-items:center;font-size:16px}.sidebar-bottom{margin-top:auto;padding:14px 4px 0;border-top:1px solid #ffffff12}.save-pill{display:flex;gap:8px;align-items:center;color:#9fb0c5;font-size:11px;padding:7px 8px}.save-dot{width:7px;height:7px;background:#2ed07f;border-radius:50%;box-shadow:0 0 0 4px #2ed07f18}.logout-btn{width:100%;border:1px solid #ffffff18;background:#ffffff08;color:#d7e0eb;border-radius:9px;padding:9px;cursor:pointer;margin-top:5px}.logout-btn:hover{background:#ffffff12}.sidebar-backdrop{display:none}
.app-main{margin-left:250px;min-height:100vh}.toolbar{position:sticky;top:0;z-index:30;min-height:72px;display:flex;justify-content:space-between;gap:18px;align-items:center;padding:12px 22px;background:#ffffffeb;backdrop-filter:blur(12px);border-bottom:1px solid #d9e1ea}.topbar-title{display:flex;align-items:center;gap:10px}.topbar-title strong{display:block;font-size:17px}.topbar-title span{display:block;font-size:11px;color:var(--muted);margin-top:3px}.toolbar-actions{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.toolbar-actions.hidden{display:none}.btn,.date-input{border:1px solid #d0d7e2;background:#fff;color:#344054;border-radius:9px;padding:8px 10px;font-weight:700;font-size:12px}.btn{cursor:pointer}.btn:hover{border-color:#98a2b3}.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}.btn.success{background:var(--green);border-color:var(--green);color:#fff}.btn.danger{background:#fff1f0;border-color:#f1b7b2;color:var(--red)}.mobile-menu{display:none;border:0;background:#eef2f6;border-radius:8px;width:38px;height:38px;cursor:pointer}
.workspace{padding:20px;overflow:auto}.view-panel{display:none}.view-panel.active{display:block}.paper{width:210mm;min-height:297mm;margin:0 auto 28px;background:var(--paper);box-shadow:0 12px 40px #10233b14;border-radius:3px;padding:9mm 9mm 8mm}.paper-title-row{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:4px}.paper h1{font-size:23px;letter-spacing:8px;text-align:center;margin:0 auto 3px;font-weight:800}.detail-title h1{letter-spacing:3px}.paper-date{font-size:10px;white-space:nowrap}
.table-box{border:1.4px solid var(--line)}.tr{display:grid;grid-template-columns:72% 28%;min-height:25px;border-bottom:1px solid #9ca3af}.tr:last-child{border-bottom:0}.tr>div{border-right:1px solid #9ca3af;display:flex;align-items:center}.tr>div:last-child{border-right:0}.th{background:#eef1f4;text-align:center;font-size:10px;font-weight:800}.th>div{justify-content:center}.label-cell{padding:0 7px;font-size:11px}.paper-input{width:100%;height:100%;min-height:23px;border:0;outline:0;background:transparent;padding:2px 5px;font-size:11px;color:#111827}.paper-input:focus{background:#fff6c7;box-shadow:inset 0 0 0 2px #f59e0b}.paper-input:disabled{color:#111;background:#f5f5f5}.money-cell{text-align:right;font-variant-numeric:tabular-nums}
.front-top-grid{display:grid;grid-template-columns:37% 63%;align-items:start}.income-table{border-right:0}.right-top-stack{display:flex;flex-direction:column;gap:8px}.exit-head,.exit-row{grid-template-columns:63% 17% 20%}.total-row{height:34px;display:flex;align-items:center;justify-content:space-between;padding:0 8px;background:#f5f5f5;border-top:1.5px solid var(--line);font-size:11px}.full-bottom-stack{display:flex;flex-direction:column;gap:8px;margin-top:8px}.wide-entry{width:100%}.wide-head{position:relative;display:grid;grid-template-columns:64% 18% 18%;height:27px;background:#eef1f4;font-size:9px;font-weight:800;border-bottom:1px solid #9ca3af}.wide-head>span{display:flex;align-items:center;justify-content:center;border-right:1px solid #9ca3af}.wide-head>span:nth-child(3){border-right:0}.wide-head.guarantee-head{background:#edf7f1}.row-add{position:absolute;right:6px;top:50%;transform:translateY(-50%);border:1px solid #cbd5e1;background:#fff;color:#344054;border-radius:6px;padding:3px 7px;font-size:9px;font-weight:800;cursor:pointer;box-shadow:0 1px 3px #0001}.row-add:disabled{opacity:.45;cursor:not-allowed}.sub-row{display:grid;min-height:24px;border-bottom:1px solid #b4b8be}.sub-row.other{grid-template-columns:64% 18% 18%}.vehicle-table{background:#fff}.vehicle-section-head{height:29px;position:relative;display:flex;align-items:center;justify-content:center;background:#fff5e9;border-bottom:1px solid #9ca3af;font-size:9px;letter-spacing:.35px}.vehicle-columns{display:grid;grid-template-columns:63% 17% 20%;height:25px;border-bottom:1px solid #9ca3af;font-size:9px}.vehicle-columns>span{display:flex;align-items:center;justify-content:center;border-right:1px solid #9ca3af}.vehicle-columns>span:last-child{border-right:0}.sub-row.vehicle-row{grid-template-columns:63% 17% 20%}.vehicle-total-row{background:#fff8ef}.sub-row .paper-input{border-right:1px solid #b4b8be}.sub-row .paper-input:last-child{border-right:0}.grand-total{height:31px;display:flex;align-items:center;justify-content:flex-end;gap:20px;padding:0 10px;font-size:11px;font-weight:800;background:#f5f5f5}
.detail-row-tools{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin:0 0 7px;color:var(--muted);font-size:10px}.detail-row-add{padding:6px 10px;font-size:10px}.detail-table{width:100%}.detail-row{display:grid;grid-template-columns:12% 12% 28% 20% 12% 8% 8%;min-height:23px;border-bottom:1px solid #a3a3a3}.detail-row>div{border-right:1px solid #a3a3a3;display:flex;align-items:center;justify-content:center}.detail-row>div:last-child{border-right:0}.detail-row .paper-input{border-right:1px solid #a3a3a3}.detail-row .paper-input:last-child{border-right:0}.detail-total{height:30px;display:flex;justify-content:flex-end;gap:20px;align-items:center;padding:0 10px;font-size:11px;background:#f5f5f5}
.admin-panel{max-width:1000px;margin:12px auto}.admin-card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 12px 35px #10233b0b;padding:26px}.admin-card-head{padding-bottom:20px;border-bottom:1px solid #edf0f4}.eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:900;color:var(--blue)}.admin-card h2{margin:6px 0 5px;font-size:22px}.admin-card p{margin:0;color:var(--muted);font-size:13px}.staff-add-form{display:flex;gap:10px;padding:20px 0}.staff-add-form input{flex:1;border:1px solid #d0d5dd;border-radius:10px;padding:11px 13px;outline:none}.staff-add-form input:focus{border-color:#5b8cff;box-shadow:0 0 0 3px #1e5eff10}.admin-primary,.admin-secondary{border:0;border-radius:10px;padding:10px 14px;font-weight:800;cursor:pointer}.admin-primary{background:var(--blue);color:#fff}.admin-primary:disabled{opacity:.55;cursor:not-allowed}.admin-secondary{background:#eef2f6;color:#344054}.admin-secondary:disabled{opacity:.45;cursor:not-allowed}.staff-list{display:flex;flex-direction:column;gap:8px}.staff-order{display:grid;grid-template-columns:28px 26px 28px;align-items:center;gap:3px}.staff-move{width:28px;height:28px;border:1px solid #d7dee8;background:#f8fafc;color:#344054;border-radius:7px;cursor:pointer;font-weight:900}.staff-move:hover:not(:disabled){background:#eef3ff;border-color:#b9c8ee;color:#1e5eff}.staff-move:disabled{opacity:.32;cursor:not-allowed}.staff-position{text-align:center;font-size:10px;font-weight:900;color:#667085}.staff-order-state{margin-top:4px;padding:8px 10px;border-radius:8px;background:#f8fafc;color:#667085;font-size:10px}.staff-item{border:1px solid #e4e7ec;border-radius:11px;padding:10px 12px;display:flex;align-items:center;gap:12px}.staff-item.inactive{background:#f8fafc;opacity:.72}.staff-avatar{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:#eaf0ff;color:#1e5eff;font-weight:900}.staff-info{min-width:0;flex:1}.staff-info strong{display:block;font-size:13px}.staff-info span{display:block;font-size:10px;color:var(--muted);margin-top:3px}.staff-edit{border:0;border-radius:8px;padding:7px 12px;font-size:11px;font-weight:800;cursor:pointer;background:#eef3ff;color:#1748c9}.staff-edit:hover:not(:disabled){background:#dfe8ff}.staff-edit:disabled{opacity:.55;cursor:not-allowed}.staff-delete{border:0;border-radius:8px;padding:7px 12px;font-size:11px;font-weight:800;cursor:pointer;background:#fff1f0;color:#b42318}.staff-delete:hover:not(:disabled){background:#fee4e2}.staff-delete:disabled{opacity:.55;cursor:not-allowed}.logo-setting{display:flex;align-items:center;gap:24px;padding-top:24px}.logo-preview{width:150px;height:150px;border:1px dashed #cbd5e1;background:#f8fafc;border-radius:18px;display:grid;place-items:center;overflow:hidden;color:#98a2b3;font-size:30px;font-weight:900}.logo-preview img{width:100%;height:100%;object-fit:contain;background:#fff}.logo-actions{display:flex;align-items:flex-start;flex-direction:column;gap:9px}.logo-actions small{color:var(--muted);font-size:11px}
/* v0.3.2: Günlük form hizalama ve A4 yoğunluk ayarları */
#frontPaper .tr{min-height:22px}
#frontPaper .paper-input{min-height:20px}
#frontPaper .total-row{height:30px}
#frontPaper .right-top-stack{gap:6px}
#frontPaper .vehicle-section-head{height:26px}
#frontPaper .vehicle-columns{height:22px}
#frontPaper .sub-row{min-height:21px}
#frontPaper .wide-head{height:24px}
#frontPaper .grand-total{height:28px}
.front-top-grid>.income-table,.front-top-grid>.right-top-stack>.exit-table{align-self:start}
.login-body{background:#0c1728;overflow:hidden}.login-shell{min-height:100vh;display:grid;grid-template-columns:1.05fr .95fr}.login-visual{padding:8vw;display:flex;flex-direction:column;justify-content:center;gap:22px;color:#fff;background:radial-gradient(circle at 20% 10%,#1d5aff35,transparent 34%),linear-gradient(145deg,#0b1627,#132845)}.login-visual h1{font-size:clamp(34px,4vw,58px);line-height:1.03;margin:8px 0 14px;letter-spacing:-2px}.login-visual p{max-width:510px;color:#b6c2d2;line-height:1.7;margin:0}.login-brand-mark,.mobile-login-logo{width:250px;height:96px;border:1px solid #e7ecf5;border-radius:28px;background:#fff;display:grid;place-items:center;overflow:hidden;font-size:34px;font-weight:900;box-shadow:0 18px 42px #08101f33;padding:12px 22px}.login-brand-mark img,.mobile-login-logo img{width:100%;height:100%;object-fit:contain;background:#fff}.login-badge{align-self:flex-start;border:1px solid #ffffff18;background:#ffffff0b;padding:8px 11px;border-radius:999px;font-size:11px;color:#b8c6d7}.login-card-wrap{background:#f5f7fa;display:flex;align-items:center;justify-content:center;padding:34px}.login-card{width:min(430px,100%);background:#fff;border:1px solid #e4e7ec;border-radius:20px;padding:34px;box-shadow:0 24px 70px #0b162718}.login-card h2{font-size:27px;margin:7px 0}.login-muted{color:var(--muted);font-size:13px;margin:0 0 22px}.field-label{display:block;font-size:11px;font-weight:800;color:#344054;margin:13px 0}.login-input{display:block;width:100%;margin-top:6px;border:1px solid #d0d5dd;border-radius:10px;padding:12px 13px;outline:none}.login-input:focus{border-color:#5885ff;box-shadow:0 0 0 4px #1e5eff10}.login-submit{width:100%;margin-top:8px;border:0;border-radius:11px;background:linear-gradient(135deg,#1e5eff,#1646bd);color:#fff;padding:12px 15px;font-weight:900;display:flex;justify-content:space-between;cursor:pointer}.login-error{background:#fff1f0;color:#b42318;border:1px solid #f6cac5;border-radius:9px;padding:9px 10px;font-size:11px;margin-bottom:12px}.login-foot{text-align:center;color:#98a2b3;font-size:9px;margin-top:17px}.mobile-login-logo{display:none}
@media(max-width:1050px){.sidebar{transform:translateX(-100%);transition:.2s}.sidebar.open{transform:translateX(0)}.sidebar-backdrop.show{display:block;position:fixed;inset:0;background:#07111f80;z-index:45}.app-main{margin-left:0}.mobile-menu{display:inline-grid;place-items:center}.toolbar{padding:10px 14px}.workspace{padding:10px}.paper{margin-left:0}.login-shell{grid-template-columns:1fr}.login-visual{display:none}.login-card-wrap{min-height:100vh}.mobile-login-logo{display:grid;margin-bottom:22px;color:#1e5eff;background:#fff;border-color:#dce6ff;width:190px;height:74px;border-radius:22px;padding:8px 18px}}
@media(max-width:720px){.toolbar{align-items:flex-start;flex-direction:column}.toolbar-actions{width:100%;overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px}.paper{min-width:794px}.workspace{overflow-x:auto}.admin-panel{min-width:0}.admin-card{padding:18px}.staff-add-form{flex-direction:column}.logo-setting{align-items:flex-start;flex-direction:column}.login-card-wrap{padding:16px}.login-card{padding:25px}.login-body{overflow:auto}}
@page{size:A4 portrait;margin:0}
@media print{
  html,body{width:210mm;background:#fff}
  body{margin:0}
  .no-print,.sidebar,.toolbar,.admin-panel{display:none!important}
  .app-main{margin-left:0}
  .workspace{padding:0;overflow:visible}
  .view-panel{display:none!important}
  #view-front,#view-detail{display:block!important}
  .paper{width:210mm;min-height:0;margin:0;box-shadow:none;border-radius:0;padding:5mm 6mm;break-after:page;page-break-after:always}
  .paper-title-row{margin-bottom:2mm}
  .paper h1{font-size:17px;line-height:1;letter-spacing:6px;margin:0 auto 1mm}
  .paper-date{font-size:7.5px}
  #frontPaper .tr{height:4.35mm;min-height:4.35mm}
  #frontPaper .paper-input{min-height:4.1mm;font-size:7.6px;padding:.2mm 1mm}
  #frontPaper .label-cell{font-size:7.8px;padding:0 1mm}
  #frontPaper .th{font-size:7.2px}
  #frontPaper .total-row{height:5.7mm;font-size:8px;padding:0 1.5mm}
  #frontPaper .right-top-stack{gap:1.4mm}
  #frontPaper .vehicle-section-head{height:5mm;font-size:7px}
  #frontPaper .vehicle-columns{height:4.5mm;font-size:7px}
  #frontPaper .sub-row{height:4.15mm;min-height:4.15mm}
  #frontPaper .wide-head{height:5mm;font-size:7px}
  #frontPaper .grand-total{height:5.5mm;font-size:8px}
  #frontPaper .full-bottom-stack{gap:1.4mm;margin-top:1.4mm}
  #detailPaper .detail-row-tools{display:none!important}
  #detailPaper .detail-row{height:5mm;min-height:5mm}
  #detailPaper .paper-input{min-height:4.7mm;font-size:7.7px;padding:.2mm .7mm}
  #detailPaper .th{font-size:7px}
  #detailPaper .detail-total{height:5.5mm;font-size:8px}
  .paper-input:focus{background:transparent;box-shadow:none}
  .row-add{display:none!important}
  .table-box,.tr,.sub-row,.detail-row{break-inside:avoid}
}

/* v0.3.3: Yakıt/Araç alanı Günlük Çıkışlar tablosuna entegre edildi */
#frontPaper .right-top-stack{gap:0}
#frontPaper .exit-table{overflow:hidden;background:#fff}
#frontPaper .exit-title-cell{position:relative;justify-content:center;padding-right:48px}
#frontPaper .exit-title-cell .exit-row-add{right:4px;padding:2px 6px;font-size:8px}
#frontPaper .exit-total-row{border-bottom:1px solid #9ca3af}
#frontPaper .vehicle-section-head{border-top:0;background:#fff5e9}
#frontPaper .vehicle-total-row{border-bottom:0}
#frontPaper .vehicle-columns{grid-template-columns:63% 17% 20%}
#frontPaper .sub-row.vehicle-row{grid-template-columns:63% 17% 20%}

@media print{
  #frontPaper .right-top-stack{gap:0}
  #frontPaper .exit-title-cell{padding-right:0}
  #frontPaper .exit-total-row{border-bottom:1px solid #9ca3af}
}

/* v0.3.5: Üst tablo ayrımı, satır çıkarma kontrolleri ve hizalama */
#frontPaper .front-top-grid{
  grid-template-columns:minmax(0,37%) minmax(0,1fr);
  gap:8px;
}
#frontPaper .income-table{border-right:1.4px solid var(--line)}
#frontPaper .right-top-stack{min-width:0}
#frontPaper .exit-title-cell{padding-right:108px}
.row-tools{
  position:absolute;
  right:5px;
  top:50%;
  transform:translateY(-50%);
  display:flex;
  align-items:center;
  gap:4px;
  z-index:2;
}
.row-tools .row-add,.row-tools .row-remove{position:static;transform:none;right:auto;top:auto}
.row-remove{
  border:1px solid #fecaca;
  background:#fff;
  color:#b42318;
  border-radius:6px;
  padding:3px 7px;
  font-size:9px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 1px 3px #0001;
}
.row-remove:hover:not(:disabled){background:#fff1f0}
.row-remove:disabled{opacity:.35;cursor:not-allowed}
.detail-row-remove{padding:6px 10px;font-size:10px;color:#b42318;background:#fff1f0}
#frontPaper .full-bottom-stack{width:100%}
#frontPaper .wide-entry{box-sizing:border-box}
.staff-order-state{margin-top:10px}

@media print{
  #frontPaper .front-top-grid{gap:1.5mm}
  #frontPaper .income-table{border-right:1.4px solid var(--line)}
  #frontPaper .exit-title-cell{padding-right:0}
  .row-tools,.row-remove,.detail-row-remove{display:none!important}
}


/* v0.3.6: üst tablo tam hizalama, daha dolu A4 baskı ve geçmiş günler */
#frontPaper .front-top-grid{
  grid-template-columns:minmax(0,37%) minmax(0,63%);
  gap:8px;
  align-items:stretch;
}
#frontPaper .income-table,
#frontPaper .right-top-stack,
#frontPaper .exit-table{height:100%;min-height:0}
#frontPaper .income-table,
#frontPaper .exit-table{display:flex;flex-direction:column;overflow:hidden}
#frontPaper .income-table>.tr{flex:1 1 22px}
#frontPaper .income-table>.total-row{flex:0 0 30px}
#frontPaper #exitRows,
#frontPaper #vehicleRows{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
#frontPaper #exitRows>.tr,
#frontPaper #vehicleRows>.sub-row{flex:1 1 22px}
#frontPaper .exit-head,
#frontPaper .exit-total-row,
#frontPaper .vehicle-section-head,
#frontPaper .vehicle-columns,
#frontPaper .vehicle-total-row{flex:0 0 auto}
#frontPaper .income-table,
#frontPaper .exit-table,
#frontPaper .wide-entry{width:100%}
.btn:disabled{opacity:.42;cursor:not-allowed;background:#f3f4f6;color:#98a2b3}

.history-card{overflow:hidden}
.history-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.history-count{flex:0 0 auto;padding:7px 10px;border-radius:999px;background:#eef3ff;color:#1e5eff;font-size:10px;font-weight:900}
.history-list{display:flex;flex-direction:column;gap:8px;padding-top:18px}
.history-item{display:grid;grid-template-columns:minmax(160px,1fr) minmax(210px,1fr) auto;align-items:center;gap:18px;text-decoration:none;color:var(--ink);border:1px solid #e4e7ec;border-radius:12px;padding:13px 14px;background:#fff;transition:.16s}
.history-item:hover{border-color:#b9c8ee;background:#f8faff;transform:translateY(-1px);box-shadow:0 7px 18px #10233b0a}
.history-date-block strong{display:block;font-size:14px}
.history-date-block span{display:block;margin-top:3px;font-size:10px;color:var(--muted);font-weight:800}
.history-meta{display:flex;align-items:center;gap:10px;justify-content:flex-start}
.history-meta small{color:var(--muted);font-size:10px}
.history-status{display:inline-flex;align-items:center;border-radius:999px;padding:5px 8px;font-size:9px;font-weight:900}
.history-status.closed{background:#eef2f6;color:#475467}
.history-status.open{background:#ecfdf3;color:#067647}
.history-open{font-size:11px;font-weight:900;color:var(--blue)}
.history-empty{margin-top:18px;padding:26px;border:1px dashed #d0d5dd;border-radius:12px;text-align:center;color:var(--muted);font-size:12px;background:#fafbfc}

@media(max-width:720px){
  .history-item{grid-template-columns:1fr;gap:8px}
  .history-meta{justify-content:space-between;flex-wrap:wrap}
  .history-open{justify-self:start}
}

@media print{
  @page{size:A4 portrait;margin:0}
  html,body{width:210mm!important;min-height:297mm!important}
  .paper{
    width:210mm!important;
    padding:7mm 7.5mm 6.5mm!important;
  }
  .paper-title-row{margin-bottom:3mm!important;min-height:9mm}
  .paper h1{font-size:22px!important;letter-spacing:7px!important;margin:0 auto 1.5mm!important}
  .detail-title h1{font-size:19px!important;letter-spacing:3px!important}
  .paper-date{font-size:9px!important}

  #frontPaper .front-top-grid{gap:2mm!important;align-items:stretch!important}
  #frontPaper .income-table,#frontPaper .right-top-stack,#frontPaper .exit-table{height:100%!important}
  #frontPaper .tr{height:6mm!important;min-height:6mm!important}
  #frontPaper .paper-input{min-height:5.7mm!important;font-size:9px!important;padding:.35mm 1mm!important}
  #frontPaper .label-cell{font-size:9px!important;padding:0 1.2mm!important}
  #frontPaper .th{font-size:8.4px!important}
  #frontPaper .total-row{height:6mm!important;min-height:6mm!important;font-size:9px!important;padding:0 1.5mm!important}
  #frontPaper .vehicle-section-head{height:6mm!important;font-size:8.3px!important}
  #frontPaper .vehicle-columns{height:6mm!important;font-size:8.3px!important}
  #frontPaper .sub-row{height:6mm!important;min-height:6mm!important}
  #frontPaper .wide-head{height:6mm!important;font-size:8.2px!important}
  #frontPaper .grand-total{height:6mm!important;font-size:9px!important}
  #frontPaper .full-bottom-stack{gap:1.7mm!important;margin-top:1.7mm!important}

  #detailPaper .detail-row{height:6.7mm!important;min-height:6.7mm!important}
  #detailPaper .paper-input{min-height:6.4mm!important;font-size:8.8px!important;padding:.3mm .8mm!important}
  #detailPaper .th{font-size:8.1px!important}
  #detailPaper .detail-total{height:6.7mm!important;font-size:9px!important}

  .row-tools,.row-add,.row-remove,.detail-row-remove,.detail-row-add{display:none!important}
}

/* v0.3.7: tasarım ayarları, teyitli geçmiş günlük silme ve daha okunaklı personel isimleri */
.font-inter{--paper-font:'Inter',Arial,sans-serif}
.font-manrope{--paper-font:'Manrope',Arial,sans-serif}
.font-roboto{--paper-font:'Roboto',Arial,sans-serif}
.font-opensans{--paper-font:'Open Sans',Arial,sans-serif}
.font-poppins{--paper-font:'Poppins',Arial,sans-serif}

.paper,
.paper input{font-family:var(--paper-font,'Inter',Arial,sans-serif)}

#frontPaper .income-head{
  background:var(--header-income-bg,#eef1f4)!important;
  color:var(--header-text,#152238)!important;
}
#frontPaper .exit-head{
  background:var(--header-exit-bg,#eef1f4)!important;
  color:var(--header-text,#152238)!important;
}
#frontPaper .vehicle-section-head,
#frontPaper .vehicle-columns-head{
  background:var(--header-vehicle-bg,#fff5e9)!important;
  color:var(--header-text,#152238)!important;
}
#frontPaper .other-head{
  background:var(--header-other-bg,#eef1f4)!important;
  color:var(--header-text,#152238)!important;
}
#frontPaper .guarantee-head{
  background:var(--header-guarantee-bg,#edf7f1)!important;
  color:var(--header-text,#152238)!important;
}
#detailPaper .detail-head{
  background:var(--header-detail-bg,#eef1f4)!important;
  color:var(--header-text,#152238)!important;
}

#frontPaper .income-table .label-cell{
  font-size:13px;
  font-weight:650;
  letter-spacing:.05px;
}

.history-item{
  display:flex;
  align-items:stretch;
  gap:10px;
  padding:0;
  overflow:hidden;
  transform:none;
}
.history-item:hover{
  transform:none;
}
.history-main{
  min-width:0;
  flex:1;
  display:grid;
  grid-template-columns:minmax(160px,1fr) minmax(210px,1fr) auto;
  align-items:center;
  gap:18px;
  padding:13px 14px;
  text-decoration:none;
  color:var(--ink);
}
.history-main:hover{
  background:#f8faff;
}
.history-delete{
  width:76px;
  border:0;
  border-left:1px solid #fee4e2;
  background:#fff8f7;
  color:#b42318;
  font-size:11px;
  font-weight:900;
  cursor:pointer;
}
.history-delete:hover{
  background:#fee4e2;
}
.history-delete:disabled{opacity:.5;cursor:not-allowed}

.design-form{padding-top:22px;display:flex;flex-direction:column;gap:24px}
.design-block{border:1px solid #e4e7ec;border-radius:14px;padding:17px;background:#fbfcfe}
.design-block-title{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin-bottom:14px}
.design-block-title strong{font-size:14px}
.design-block-title span{font-size:10px;color:var(--muted)}
.font-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.font-option{cursor:pointer}
.font-option input{position:absolute;opacity:0;pointer-events:none}
.font-option-card{display:flex;min-height:78px;flex-direction:column;justify-content:center;gap:7px;border:1px solid #d9e0e9;border-radius:12px;background:#fff;padding:12px;transition:.15s}
.font-option-card strong{font-size:16px}
.font-option-card small{font-size:10px;color:#667085}
.font-option input:checked+.font-option-card{border-color:#1e5eff;box-shadow:0 0 0 3px #1e5eff14;background:#f8faff}
.font-option-inter .font-option-card{font-family:'Inter',Arial,sans-serif}
.font-option-manrope .font-option-card{font-family:'Manrope',Arial,sans-serif}
.font-option-roboto .font-option-card{font-family:'Roboto',Arial,sans-serif}
.font-option-opensans .font-option-card{font-family:'Open Sans',Arial,sans-serif}
.font-option-poppins .font-option-card{font-family:'Poppins',Arial,sans-serif}

.color-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.color-setting{display:grid;grid-template-columns:minmax(0,1fr) 46px 76px;align-items:center;gap:10px;border:1px solid #e4e7ec;border-radius:10px;background:#fff;padding:9px 11px}
.color-setting span{font-size:11px;font-weight:750}
.color-setting input[type=color]{width:42px;height:32px;border:0;padding:0;background:transparent;cursor:pointer}
.color-setting code{font-size:10px;color:#667085;text-align:right}
.design-preview{border:1px dashed #cbd5e1;border-radius:14px;padding:15px;background:#fff}
.preview-title{font-size:10px;font-weight:900;color:#667085;margin-bottom:10px}
.preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;font-family:var(--paper-font,'Inter',Arial,sans-serif)}
.preview-head{border:1px solid #9ca3af;border-radius:5px;padding:9px 10px;text-align:center;font-size:10px;font-weight:800;color:var(--header-text,#152238)}
.preview-income{background:var(--header-income-bg,#eef1f4)}
.preview-exit{background:var(--header-exit-bg,#eef1f4)}
.preview-vehicle{background:var(--header-vehicle-bg,#fff5e9)}
.preview-other{background:var(--header-other-bg,#eef1f4)}
.preview-guarantee{background:var(--header-guarantee-bg,#edf7f1)}
.preview-detail{background:var(--header-detail-bg,#eef1f4)}
.design-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.design-state{font-size:10px;color:#667085;margin-left:4px}

.confirm-modal{position:fixed;inset:0;z-index:200;display:none;align-items:center;justify-content:center;padding:18px}
.confirm-modal.show{display:flex}
.confirm-backdrop{position:absolute;inset:0;background:#07111fb8;backdrop-filter:blur(3px)}
.confirm-dialog{position:relative;width:min(440px,100%);background:#fff;border:1px solid #e4e7ec;border-radius:18px;padding:25px;box-shadow:0 28px 80px #0004}
.confirm-dialog h3{margin:7px 0 8px;font-size:22px}
.confirm-dialog p{margin:0 0 16px;color:#667085;font-size:12px;line-height:1.55}
.danger-eyebrow{color:#b42318}
.confirm-error{min-height:18px;color:#b42318;font-size:10px;font-weight:700;margin-top:7px}
.confirm-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:13px}
.danger-action{border:0;border-radius:10px;padding:10px 14px;background:#b42318;color:#fff;font-weight:850;cursor:pointer}
.danger-action:hover:not(:disabled){background:#8f1d14}
.danger-action:disabled{opacity:.55;cursor:not-allowed}

@media(max-width:900px){
  .font-options{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
  .history-item{display:block}
  .history-main{grid-template-columns:1fr;gap:8px}
  .history-delete{width:100%;height:40px;border-left:0;border-top:1px solid #fee4e2}
  .font-options,.color-grid,.preview-grid{grid-template-columns:1fr}
  .design-block-title{align-items:flex-start;flex-direction:column}
}

@media print{
  .paper,.paper *{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  #frontPaper .income-table .label-cell{
    font-size:10px!important;
    font-weight:650!important;
  }
  #frontPaper .income-head{background:var(--header-income-bg,#eef1f4)!important;color:var(--header-text,#152238)!important}
  #frontPaper .exit-head{background:var(--header-exit-bg,#eef1f4)!important;color:var(--header-text,#152238)!important}
  #frontPaper .vehicle-section-head,
  #frontPaper .vehicle-columns-head{background:var(--header-vehicle-bg,#fff5e9)!important;color:var(--header-text,#152238)!important}
  #frontPaper .other-head{background:var(--header-other-bg,#eef1f4)!important;color:var(--header-text,#152238)!important}
  #frontPaper .guarantee-head{background:var(--header-guarantee-bg,#edf7f1)!important;color:var(--header-text,#152238)!important}
  #detailPaper .detail-head{background:var(--header-detail-bg,#eef1f4)!important;color:var(--header-text,#152238)!important}
}



/* v0.4.0 — logo placement rebuilt: preserve intrinsic aspect ratio; no forced square/capsule crop */
.sidebar-brand{min-height:auto;padding:8px 0 18px;display:flex;flex-direction:column;align-items:center;gap:10px}
.sidebar-brand--logo-only{justify-content:center;padding:8px 0 18px}
.sidebar-logo{width:214px;height:58px;border-radius:14px;background:#fff;border:1px solid #e7ebf2;padding:0 12px;display:flex;align-items:center;justify-content:center;overflow:hidden;box-shadow:0 10px 26px #0000001f}
.sidebar-logo.has-logo img{display:block;width:100%;height:auto;max-width:100%;max-height:none;object-fit:cover;object-position:center center;background:transparent;transform:scale(1.02)}
.sidebar-logo:not(.has-logo){height:58px}
.sidebar-subbrand{font-size:10px;line-height:1.2;letter-spacing:.16em;text-transform:uppercase;color:#aab7c9;text-align:center;font-weight:600}

.login-brand-mark{width:390px;height:auto;min-height:100px;border-radius:16px;background:#fff;border:1px solid #e7ebf2;padding:14px 24px;display:flex;align-items:center;justify-content:center;overflow:visible;box-shadow:0 16px 38px #08101f2e}
.login-brand-mark.has-logo img{display:block;width:100%;height:auto;max-width:100%;max-height:none;object-fit:contain;background:transparent}
.login-brand-mark:not(.has-logo){height:110px}

.mobile-login-logo{width:220px;height:auto;min-height:72px;border-radius:14px;background:#fff;border:1px solid #dce6ff;padding:10px 16px;display:none;align-items:center;justify-content:center;overflow:visible}
.mobile-login-logo.has-logo img{display:block;width:100%;height:auto;max-width:100%;max-height:none;object-fit:contain;background:transparent}

@media(max-width:1050px){
  .mobile-login-logo{display:flex}
}
@media(max-width:720px){
  .mobile-login-logo{width:min(240px,82vw)}
}


/* v0.4.2: GUNLUK basligi tam ortalandi */
.paper-title-row{display:grid;grid-template-columns:1fr auto 1fr;align-items:end;margin-bottom:4px}
.paper-title-row h1{grid-column:2;justify-self:center;margin:0 0 3px;text-align:center}
.paper-title-row .paper-date{grid-column:3;justify-self:end;text-align:right}
@media print{
  .paper-title-row{display:grid;grid-template-columns:1fr auto 1fr;align-items:end;margin-bottom:2mm}
  .paper-title-row h1{grid-column:2;justify-self:center;text-align:center;margin:0 0 1mm}
  .paper-title-row .paper-date{grid-column:3;justify-self:end;text-align:right}
}


/* v0.4.3: Sol tarafa durum kolonu, sağ blok daraltma ve tasarım font boyutları */
#frontPaper .front-top-grid{grid-template-columns:minmax(0,41.5%) minmax(0,58.5%)!important;gap:8px!important}
#frontPaper .income-head-3,
#frontPaper .income-row-3{grid-template-columns:50% 22% 28%!important}
#frontPaper .income-row-3 > div:nth-child(2) .paper-input{text-align:center}
#frontPaper .exit-head,
#frontPaper .exit-row{grid-template-columns:60% 16% 24%!important}
#frontPaper .vehicle-columns,
#frontPaper .sub-row.vehicle-row{grid-template-columns:60% 16% 24%!important}
#frontPaper .income-head-3 > div:nth-child(2){letter-spacing:.35px}

.th,
#frontPaper .vehicle-section-head,
#frontPaper .vehicle-columns,
#frontPaper .wide-head{font-size:var(--front-header-size,11px)!important}
#frontPaper .paper-input,
#frontPaper .total-row,
#frontPaper .grand-total,
#frontPaper .detail-total{font-size:var(--front-body-size,11px)!important}
#frontPaper .label-cell{font-size:var(--staff-name-size,12px)!important;font-weight:700}

.size-grid{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:14px}
.size-setting{display:flex;flex-direction:column;gap:8px;padding:14px;border:1px solid #e4e7ec;border-radius:14px;background:#fff}
.size-setting span{font-size:12px;font-weight:800;color:#344054}
.size-setting input{border:1px solid #d0d5dd;border-radius:10px;padding:10px 12px;font-size:13px;font-weight:700;outline:none}
.size-setting input:focus{border-color:#5885ff;box-shadow:0 0 0 4px #1e5eff10}
.size-setting small{font-size:11px;line-height:1.45;color:#667085}

@media(max-width:960px){
  .size-grid{grid-template-columns:1fr}
}

@media print{
  #frontPaper .front-top-grid{grid-template-columns:minmax(0,41.5%) minmax(0,58.5%)!important;gap:1.4mm!important}
  #frontPaper .income-head-3,
  #frontPaper .income-row-3{grid-template-columns:50% 22% 28%!important}
  #frontPaper .exit-head,
  #frontPaper .exit-row{grid-template-columns:60% 16% 24%!important}
  #frontPaper .vehicle-columns,
  #frontPaper .sub-row.vehicle-row{grid-template-columns:60% 16% 24%!important}
  #frontPaper .th,
  #frontPaper .vehicle-section-head,
  #frontPaper .vehicle-columns,
  #frontPaper .wide-head{font-size:var(--front-header-size,11px)!important}
  #frontPaper .paper-input,
  #frontPaper .total-row,
  #frontPaper .grand-total{font-size:var(--front-body-size,11px)!important}
  #frontPaper .label-cell{font-size:var(--staff-name-size,12px)!important}
}


/* v0.4.5: Günlük Detayları font ayarları + Nakliye sütun oranları */
#detailPaper .detail-head{font-size:var(--front-header-size,11px)!important}
#detailPaper .paper-input,
#detailPaper .detail-total{font-size:var(--front-body-size,11px)!important}

#frontPaper .other-entry .wide-head{grid-template-columns:46% 18% 36%!important}
#frontPaper .other-entry .sub-row.other{grid-template-columns:46% 18% 36%!important}
#frontPaper .other-entry .wide-head>span:nth-child(1),
#frontPaper .other-entry .sub-row.other>.paper-input:nth-child(1){min-width:0}
#frontPaper .other-entry .wide-head>span:nth-child(3),
#frontPaper .other-entry .sub-row.other>.paper-input:nth-child(3){min-width:0}

@media print{
  #detailPaper .detail-head{font-size:var(--front-header-size,11px)!important}
  #detailPaper .paper-input,
  #detailPaper .detail-total{font-size:var(--front-body-size,11px)!important}
  #frontPaper .other-entry .wide-head{grid-template-columns:46% 18% 36%!important}
  #frontPaper .other-entry .sub-row.other{grid-template-columns:46% 18% 36%!important}
}


/* v0.4.6: Tutar girilen tum para sutunlari tam ortali */
.paper-input.money-cell,
#frontPaper [data-key^="staff_"],
#frontPaper [data-key^="extra_value_"],
#frontPaper [data-key^="exit_amount_"],
#frontPaper [data-key^="vehicle_amount_"],
#frontPaper [data-key^="other_amount_"],
#frontPaper [data-key^="guarantee_amount_"],
#detailPaper [data-key^="amount_"]{
  text-align:center!important;
  font-variant-numeric:tabular-nums;
}

@media print{
  .paper-input.money-cell,
  #frontPaper [data-key^="staff_"],
  #frontPaper [data-key^="extra_value_"],
  #frontPaper [data-key^="exit_amount_"],
  #frontPaper [data-key^="vehicle_amount_"],
  #frontPaper [data-key^="other_amount_"],
  #frontPaper [data-key^="guarantee_amount_"],
  #detailPaper [data-key^="amount_"]{
    text-align:center!important;
  }
}

/* v0.4.7: Okunabilir log ekranı + geçmiş düzenleme kilidi */
.btn.history-lock{background:#fff7ed;border-color:#fed7aa;color:#9a3412}
.paper-input[readonly]{cursor:pointer;background:#f8fafc;color:#344054}
.paper-input[readonly]:focus{background:#fff7ed;box-shadow:inset 0 0 0 2px #fb923c}
.logs-card{max-width:1180px;margin:0 auto}
.logs-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.log-filters{display:grid;grid-template-columns:minmax(260px,1fr) 220px;gap:10px;padding:18px 0 4px}
.log-search,.log-filter{width:100%;border:1px solid #d0d5dd;border-radius:10px;background:#fff;padding:11px 13px;color:#344054;outline:none;font-size:12px}
.log-search:focus,.log-filter:focus{border-color:#5b8cff;box-shadow:0 0 0 3px #1e5eff10}
.log-list{display:flex;flex-direction:column;gap:10px;padding-top:12px}
.log-item{border:1px solid #e4e7ec;border-radius:13px;background:#fff;padding:13px 14px;box-shadow:0 5px 16px #10233b08}
.log-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.log-top time{font-size:10px;color:#667085;font-weight:700}
.log-top>strong{font-size:11px;color:#152238}
.log-area,.log-date{display:inline-flex;align-items:center;border-radius:999px;padding:4px 7px;font-size:9px;font-weight:900;background:#eef3ff;color:#1748c9}
.log-date{background:#f2f4f7;color:#475467}
.log-description{margin-top:8px;font-size:12px;font-weight:700;line-height:1.45;color:#26364a}
.log-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:9px}
.log-values>div{border:1px solid #eaecf0;background:#f8fafc;border-radius:9px;padding:8px 10px;min-width:0}
.log-values span{display:block;font-size:8px;letter-spacing:.08em;text-transform:uppercase;color:#98a2b3;font-weight:900;margin-bottom:3px}
.log-values strong{display:block;font-size:11px;color:#344054;word-break:break-word;white-space:pre-wrap}
.log-meta{margin-top:8px;font-size:9px;color:#98a2b3}
.log-empty-filter{margin-top:16px;padding:22px;border:1px dashed #d0d5dd;border-radius:11px;text-align:center;color:#667085;background:#fafbfc;font-size:12px}
@media(max-width:720px){.log-filters{grid-template-columns:1fr}.log-values{grid-template-columns:1fr}}
@media print{#view-logs{display:none!important}.paper-input[readonly]{background:transparent!important}}


/* v0.4.8: Loglar menüsü en altta ve özel parola ile korumalı */
.logs-side-link{margin-top:10px;border-top:1px solid #ffffff12;border-radius:0 0 10px 10px;padding-top:15px}
.logs-side-link.active{border-top-color:transparent;border-radius:10px}
.logs-locked-card{max-width:760px;margin:12px auto}
.protected-action{padding-top:22px;display:flex;justify-content:flex-start}
/* Loglar butonu sidebar'ın gerçek alt bölümünde, Çıkış alanının hemen üstünde tutulur. */
.side-nav{flex:1}
.logs-side-link{margin-top:auto}


/* v0.5.0: Günlük Detayları teknisyen seçimi ve kolon dağılımı */
#detailPaper .detail-row{
  grid-template-columns:15% 12% 22% 20% 12% 9% 10%!important;
}
#detailPaper .technician-input{
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#detailPaper .technician-input:focus{
  text-overflow:clip;
}
@media print{
  #detailPaper .detail-row{
    grid-template-columns:15% 12% 22% 20% 12% 9% 10%!important;
  }
}


/* v0.5.1: teknisyen alanı biraz dar, müşteri alanı daha geniş */
#detailPaper .detail-row{grid-template-columns:17% 10% 22% 20% 12% 9% 10%!important}
@media print{#detailPaper .detail-row{grid-template-columns:17% 10% 22% 20% 12% 9% 10%!important}}


/* v0.5.3: Günlük Detayları teknisyen sütunu daha da daraltıldı */
#detailPaper .detail-row{
  grid-template-columns:13% 14% 22% 20% 12% 9% 10%!important;
}
@media print{
  #detailPaper .detail-row{
    grid-template-columns:13% 14% 22% 20% 12% 9% 10%!important;
  }
}

/* v0.5.4: Günlük Detayları sütun oranı son ayar */
#detailPaper .detail-row{
  grid-template-columns:14% 13% 22% 20% 12% 9% 10%!important;
}
@media print{
  #detailPaper .detail-row{
    grid-template-columns:14% 13% 22% 20% 12% 9% 10%!important;
  }
}


/* v0.5.5: Günlük Detayları sütun oranı son ayar */
#detailPaper .detail-row{
  grid-template-columns:15% 12% 22% 20% 12% 9% 10%!important;
}
@media print{
  #detailPaper .detail-row{
    grid-template-columns:15% 12% 22% 20% 12% 9% 10%!important;
  }
}


/* v0.5.7: Mobil görünüm yeniden düzenlendi */
@media screen and (max-width:820px){
  html,body{width:100%;max-width:100%;overflow-x:hidden}
  body{background:#eef2f6}
  .app-main{width:100%;min-width:0;margin-left:0}
  .workspace{width:100%;padding:8px!important;overflow-x:hidden!important}
  .view-panel{width:100%;min-width:0}

  /* Üst bar: mobilde yatay taşma yerine satıra sar */
  .toolbar{position:sticky;top:0;min-height:auto;padding:9px 10px!important;gap:8px;align-items:stretch!important;flex-direction:column!important}
  .topbar-title{width:100%;min-width:0}
  .topbar-title>div{min-width:0}
  .topbar-title strong{font-size:15px}
  .topbar-title span{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .toolbar-actions,.date-tools{width:100%!important;display:flex!important;flex-wrap:wrap!important;overflow:visible!important;gap:6px!important;padding:0!important}
  .toolbar-actions.hidden{display:none!important}
  .date-input{flex:1 1 145px;min-width:125px;max-width:none;height:38px}
  .toolbar .btn{height:38px;padding:7px 9px;white-space:nowrap}
  #prevDay,#nextDay{flex:0 0 38px;padding:0}
  #todayBtn{flex:0 0 auto}
  #historyUnlockBtn,#printBtn,#closeBtn{flex:1 1 145px}

  /* A4 sabit genişliği mobil ekranda kaldır: tüm Günlük ekranı viewport'a sığar */
  .paper{width:100%!important;min-width:0!important;max-width:100%!important;min-height:0!important;margin:0 auto 14px!important;padding:12px 9px 14px!important;border-radius:10px;box-shadow:0 8px 25px #10233b10}
  .paper-title-row{grid-template-columns:1fr!important;gap:3px;align-items:center!important;margin-bottom:8px!important}
  .paper-title-row h1{grid-column:1!important;justify-self:center!important;font-size:20px!important;letter-spacing:5px!important;margin:0!important;line-height:1.2}
  .paper-title-row .paper-date{grid-column:1!important;justify-self:end!important;text-align:right!important;font-size:9px!important}
  .detail-title h1{font-size:18px!important;letter-spacing:1.8px!important}

  /* Ön sayfa: iki yan yana blok yerine üst üste. Tutar sütunu artık ekrandan kaçmaz. */
  #frontPaper .front-top-grid{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;align-items:start!important}
  #frontPaper .income-table,
  #frontPaper .right-top-stack,
  #frontPaper .exit-table{width:100%!important;height:auto!important;min-height:0!important}
  #frontPaper .income-table,
  #frontPaper .exit-table{display:flex!important;flex-direction:column!important;overflow:visible!important}
  #frontPaper .income-table>.tr{flex:0 0 auto!important;min-height:36px!important;height:36px!important}
  #frontPaper .income-table>.total-row{flex:0 0 38px!important;height:38px!important}
  #frontPaper #exitRows,
  #frontPaper #vehicleRows{display:block!important;flex:none!important;min-height:0!important}
  #frontPaper #exitRows>.tr,
  #frontPaper #vehicleRows>.sub-row{flex:none!important;min-height:36px!important;height:36px!important}
  #frontPaper .exit-head{min-height:48px!important;height:48px!important}
  #frontPaper .exit-total-row,
  #frontPaper .vehicle-total-row{height:38px!important;min-height:38px!important}
  #frontPaper .income-head-3,
  #frontPaper .income-row-3{grid-template-columns:minmax(0,50%) minmax(0,22%) minmax(0,28%)!important}
  #frontPaper .exit-head,
  #frontPaper .exit-row{grid-template-columns:minmax(0,58%) minmax(0,18%) minmax(0,24%)!important}
  #frontPaper .vehicle-columns,
  #frontPaper .sub-row.vehicle-row{grid-template-columns:minmax(0,54%) minmax(0,18%) minmax(0,28%)!important}
  #frontPaper .paper-input{min-width:0!important;min-height:34px!important;padding:4px 5px!important;font-size:min(var(--front-body-size,11px),13px)!important}
  #frontPaper .label-cell{min-width:0;padding:0 6px!important;font-size:min(var(--staff-name-size,12px),13px)!important;line-height:1.1;white-space:normal;overflow-wrap:anywhere}
  #frontPaper .th,
  #frontPaper .vehicle-section-head,
  #frontPaper .vehicle-columns,
  #frontPaper .wide-head{font-size:min(var(--front-header-size,11px),12px)!important}
  #frontPaper .total-row,#frontPaper .grand-total{font-size:12px!important}

  /* Satır butonları mobilde başlık yazısını ezmesin */
  #frontPaper .exit-title-cell{position:relative!important;padding:22px 3px 4px!important;justify-content:center!important;align-items:flex-end!important}
  #frontPaper .exit-title-cell .row-tools{top:3px!important;right:3px!important;transform:none!important}
  #frontPaper .vehicle-section-head{height:50px!important;min-height:50px!important;align-items:flex-end!important;padding:0 5px 7px!important}
  #frontPaper .vehicle-section-head .row-tools{top:3px!important;right:3px!important;transform:none!important}
  #frontPaper .wide-head{height:50px!important;min-height:50px!important;padding-top:21px!important}
  #frontPaper .wide-head .row-tools{top:3px!important;right:3px!important;transform:none!important}
  .row-tools{gap:3px}
  .row-tools .row-add,.row-tools .row-remove{padding:3px 6px!important;font-size:8px!important}

  /* Alt tablolar tam genişlikte ve üç sütun da görünür */
  #frontPaper .full-bottom-stack{width:100%!important;gap:10px!important;margin-top:10px!important}
  #frontPaper .wide-entry{width:100%!important;min-width:0!important}
  #frontPaper .other-entry .wide-head,
  #frontPaper .other-entry .sub-row.other{grid-template-columns:minmax(0,47%) minmax(0,18%) minmax(0,35%)!important}
  #frontPaper .guarantee-entry .wide-head,
  #frontPaper .guarantee-entry .sub-row.other{grid-template-columns:minmax(0,47%) minmax(0,18%) minmax(0,35%)!important}
  #frontPaper .sub-row{min-height:36px!important;height:36px!important}
  #frontPaper .grand-total{height:38px!important;min-height:38px!important}

  /* Günlük Detayları: tüm sayfa sağa kaçmaz; yalnız çok sütunlu tablo kendi içinde kayar. */
  #detailPaper{overflow:hidden!important}
  #detailPaper .detail-row-tools{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:7px 0}
  #detailPaper .detail-row-tools>span{flex:1 1 100%;font-size:10px}
  #detailPaper .detail-row-tools .admin-secondary{flex:1 1 calc(50% - 4px);min-height:38px}
  #detailPaper .detail-table{width:100%;max-width:100%;overflow-x:auto!important;overflow-y:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;position:relative}
  #detailPaper .detail-table::before{content:"← Tabloyu sağa / sola kaydırabilirsiniz →";display:block;position:sticky;left:0;width:max-content;max-width:100%;padding:5px 7px;background:#eef3ff;color:#365da8;font-size:9px;font-weight:800;border-bottom:1px solid #dbe5fa;z-index:3}
  #detailPaper .detail-row{width:760px!important;min-width:760px!important;grid-template-columns:15% 12% 22% 20% 12% 9% 10%!important}
  #detailPaper .detail-head{position:sticky;top:0;z-index:2}
  #detailPaper .paper-input{min-height:34px!important;font-size:min(var(--front-body-size,11px),13px)!important}
  #detailPaper .detail-total{width:760px!important;min-width:760px!important;height:38px;font-size:12px!important}

  /* Yönetim ekranları */
  .admin-panel{width:100%!important;max-width:100%!important;margin:0!important}
  .admin-card{width:100%;max-width:100%;padding:16px!important;border-radius:12px}
  .admin-card h2{font-size:20px}
  .staff-item{padding:9px 8px;gap:7px;flex-wrap:wrap}
  .staff-info{min-width:120px}
  .staff-order{flex:0 0 auto}
  .logo-preview{width:120px;height:120px}
  .confirm-dialog{max-height:calc(100vh - 24px);overflow:auto;padding:18px}
  .confirm-actions{flex-wrap:wrap}
  .confirm-actions>*{flex:1 1 130px}

  /* Sidebar telefonda ekranı taşırmasın */
  .sidebar{width:min(86vw,300px);padding:14px 12px}
  .sidebar-logo{max-width:100%}
}

@media screen and (max-width:430px){
  .workspace{padding:5px!important}
  .paper{padding:10px 6px 12px!important;border-radius:8px}
  .paper-title-row h1{font-size:18px!important;letter-spacing:4px!important}
  #frontPaper .income-head-3,
  #frontPaper .income-row-3{grid-template-columns:minmax(0,49%) minmax(0,23%) minmax(0,28%)!important}
  #frontPaper .exit-head,
  #frontPaper .exit-row{grid-template-columns:minmax(0,57%) minmax(0,19%) minmax(0,24%)!important}
  #frontPaper .paper-input{padding:3px 4px!important}
  #frontPaper .label-cell{padding:0 4px!important}
  #historyUnlockBtn,#printBtn,#closeBtn{flex:1 1 100%}
}

/* v0.5.8: İptal Fişler sayfası */
#cancelPaper .cancel-table{width:100%}
#cancelPaper .cancel-row{
  display:grid;
  grid-template-columns:15% 12% 22% 16% 25% 10%;
  min-height:23px;
  border-bottom:1px solid #a3a3a3;
}
#cancelPaper .cancel-row>div{
  border-right:1px solid #a3a3a3;
  display:flex;
  align-items:center;
  justify-content:center;
}
#cancelPaper .cancel-row>div:last-child{border-right:0}
#cancelPaper .cancel-row .paper-input{border-right:1px solid #a3a3a3}
#cancelPaper .cancel-row .paper-input:last-child{border-right:0}
#cancelPaper .detail-head{
  background:var(--header-detail-bg,#eef1f4)!important;
  color:var(--header-text,#152238)!important;
  font-size:var(--front-header-size,11px)!important;
}
#cancelPaper .paper-input{font-size:var(--front-body-size,11px)!important}
#cancelPaper .technician-input{
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#cancelPaper .technician-input:focus{text-overflow:clip}
#cancelPaper .cancel-title h1{letter-spacing:3px}

@media print{
  body.print-cancel-only #view-front,
  body.print-cancel-only #view-detail{display:none!important}
  body.print-cancel-only #view-cancel{display:block!important}
  body:not(.print-cancel-only) #view-cancel{display:none!important}
  #cancelPaper{width:210mm!important;min-height:0!important;margin:0!important;box-shadow:none!important;border-radius:0!important;padding:7mm 7.5mm 6.5mm!important;break-after:page;page-break-after:always}
  #cancelPaper .detail-row-tools{display:none!important}
  #cancelPaper .cancel-row{grid-template-columns:15% 12% 22% 16% 25% 10%!important;height:6.7mm!important;min-height:6.7mm!important}
  #cancelPaper .paper-input{min-height:6.4mm!important;font-size:var(--front-body-size,11px)!important;padding:.3mm .8mm!important}
  #cancelPaper .detail-head{font-size:var(--front-header-size,11px)!important}
}

@media screen and (max-width:820px){
  #cancelPaper{overflow:hidden!important}
  #cancelPaper .cancel-row-tools{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:7px 0}
  #cancelPaper .cancel-row-tools>span{flex:1 1 100%;font-size:10px}
  #cancelPaper .cancel-row-tools .admin-secondary{flex:1 1 calc(50% - 4px);min-height:38px}
  #cancelPaper .cancel-table{width:100%;max-width:100%;overflow-x:auto!important;overflow-y:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;position:relative}
  #cancelPaper .cancel-table::before{content:"← Tabloyu sağa / sola kaydırabilirsiniz →";display:block;position:sticky;left:0;width:max-content;max-width:100%;padding:5px 7px;background:#fff1f0;color:#9f2d25;font-size:9px;font-weight:800;border-bottom:1px solid #f4d1ce;z-index:3}
  #cancelPaper .cancel-row{width:760px!important;min-width:760px!important;grid-template-columns:15% 12% 22% 16% 25% 10%!important}
  #cancelPaper .detail-head{position:sticky;top:0;z-index:2}
  #cancelPaper .paper-input{min-height:34px!important;font-size:min(var(--front-body-size,11px),13px)!important}
}


/* v0.5.9: Değişimler sayfası */
#exchangePaper .exchange-table{width:100%}
#exchangePaper .exchange-row{
  display:grid;
  grid-template-columns:15% 12% 22% 32% 9% 10%;
  min-height:25px;
  border-bottom:1px solid #a3a3a3;
}
#exchangePaper .exchange-row>div{border-right:1px solid #a3a3a3;display:flex;align-items:center;justify-content:center}
#exchangePaper .exchange-row>div:last-child{border-right:0}
#exchangePaper .exchange-row .paper-input{border-right:1px solid #a3a3a3}
#exchangePaper .exchange-row .paper-input:last-child{border-right:0}
#exchangePaper .detail-head{background:var(--header-detail-bg,#eef1f4)!important;color:var(--header-text,#152238)!important;font-size:var(--front-header-size,11px)!important;font-weight:800}
#exchangePaper .paper-input{font-size:var(--front-body-size,11px)!important}
#exchangePaper .technician-input{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#exchangePaper .technician-input:focus{text-overflow:clip}
#exchangePaper .exchange-title h1{letter-spacing:3px}

@media print{
  body.print-exchange-only #view-front,
  body.print-exchange-only #view-detail,
  body.print-exchange-only #view-cancel{display:none!important}
  body.print-exchange-only #view-exchange{display:block!important}
  body:not(.print-exchange-only) #view-exchange{display:none!important}
  body.print-cancel-only #view-exchange{display:none!important}
  #exchangePaper{width:210mm!important;min-height:0!important;margin:0!important;box-shadow:none!important;border-radius:0!important;padding:7mm 7.5mm 6.5mm!important;break-after:page;page-break-after:always}
  #exchangePaper .detail-row-tools{display:none!important}
  #exchangePaper .exchange-row{grid-template-columns:15% 12% 22% 32% 9% 10%!important;height:6.7mm!important;min-height:6.7mm!important}
  #exchangePaper .paper-input{min-height:6.4mm!important;font-size:var(--front-body-size,11px)!important;padding:.3mm .8mm!important}
  #exchangePaper .detail-head{font-size:var(--front-header-size,11px)!important}
}

@media screen and (max-width:820px){
  #exchangePaper{overflow:hidden!important}
  #exchangePaper .exchange-row-tools{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:7px 0}
  #exchangePaper .exchange-row-tools>span{flex:1 1 100%;font-size:10px}
  #exchangePaper .exchange-row-tools .admin-secondary{flex:1 1 calc(50% - 4px);min-height:38px}
  #exchangePaper .exchange-table{width:100%;max-width:100%;overflow-x:auto!important;overflow-y:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;position:relative}
  #exchangePaper .exchange-table::before{content:"← Tabloyu sağa / sola kaydırabilirsiniz →";display:block;position:sticky;left:0;width:max-content;max-width:100%;padding:5px 7px;background:#eef3ff;color:#2454b8;font-size:9px;font-weight:800;border-bottom:1px solid #ccd9ff;z-index:3}
  #exchangePaper .exchange-row{width:760px!important;min-width:760px!important;grid-template-columns:15% 12% 22% 32% 9% 10%!important}
  #exchangePaper .detail-head{position:sticky;top:0;z-index:2}
  #exchangePaper .paper-input{min-height:34px!important;font-size:min(var(--front-body-size,11px),13px)!important}
}


/* v0.5.11: Para hücreleri kalın + salt okunur Günlük Girişler çizgileri */
.paper-input.money-cell,
#frontPaper [data-key^="staff_"],
#frontPaper [data-key^="extra_value_"],
#frontPaper [data-key^="exit_amount_"],
#frontPaper [data-key^="vehicle_amount_"],
#frontPaper [data-key^="other_amount_"],
#frontPaper [data-key^="guarantee_amount_"],
#detailPaper [data-key^="amount_"]{
  font-weight:700!important;
}

/* Kilitli/salt-okunur hücrelerin gri zemini satır çizgilerini örtmesin. */
#frontPaper .income-row-3>div:nth-child(2),
#frontPaper .income-row-3>div:nth-child(3){
  box-shadow:inset 0 -1px 0 #9ca3af;
}
#frontPaper .income-row-3 .paper-input[readonly]{
  background:#f8fafc!important;
}
#frontPaper .income-row-3 .paper-input[readonly]:focus{
  background:#f8fafc!important;
  box-shadow:none!important;
}

@media print{
  .paper-input.money-cell,
  #frontPaper [data-key^="staff_"],
  #frontPaper [data-key^="extra_value_"],
  #frontPaper [data-key^="exit_amount_"],
  #frontPaper [data-key^="vehicle_amount_"],
  #frontPaper [data-key^="other_amount_"],
  #frontPaper [data-key^="guarantee_amount_"],
  #detailPaper [data-key^="amount_"]{
    font-weight:700!important;
  }
  #frontPaper .income-row-3>div:nth-child(2),
  #frontPaper .income-row-3>div:nth-child(3){
    box-shadow:inset 0 -1px 0 #9ca3af;
  }
}


/* v0.5.12: Günlük Girişler satır çizgileri kilitli/grili durumda da üst katmanda görünür */
#frontPaper .income-row-3{
  position:relative;
}
#frontPaper .income-row-3::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background:#9ca3af;
  z-index:6;
  pointer-events:none;
}
#frontPaper .income-row-3 .paper-input[readonly],
#frontPaper .income-row-3 .paper-input:disabled{
  background:#f8fafc!important;
}
@media print{
  #frontPaper .income-row-3::after{
    background:#9ca3af!important;
  }
}


/* v0.5.13: Yalniz GUNLUK GIRISLER satir cizgilerini normal incelige getir */
#frontPaper .income-row-3{
  border-bottom:0!important;
}
#frontPaper .income-row-3>div:nth-child(2),
#frontPaper .income-row-3>div:nth-child(3){
  box-shadow:none!important;
}
#frontPaper .income-row-3::after{
  height:1px!important;
  background:#9ca3af!important;
  opacity:1!important;
}
@media print{
  #frontPaper .income-row-3{border-bottom:0!important}
  #frontPaper .income-row-3>div:nth-child(2),
  #frontPaper .income-row-3>div:nth-child(3){box-shadow:none!important}
  #frontPaper .income-row-3::after{height:1px!important;background:#9ca3af!important}
}


/* v0.5.15: PDF sayfalama stabilizasyonu - Detay tablosu basliktan kopmasin */
@media print{
  /* Ön sayfa bittikten sonra Günlük Detayları her zaman yeni bir A4'te başlar. */
  #view-detail{
    break-before:page!important;
    page-break-before:always!important;
  }
  #frontPaper{
    break-after:page!important;
    page-break-after:always!important;
  }
  #detailPaper{
    break-before:auto!important;
    page-break-before:auto!important;
    break-after:auto!important;
    page-break-after:auto!important;
    overflow:visible!important;
  }

  /* Eski genel .table-box break-inside:avoid kuralı bütün detay tablosunu tek parça
     saymaya çalışıyordu. Satır sayısı büyüyünce tarayıcı tabloyu aşağı itiyor ve
     başlık ile tablo arasında dev boşluk oluşturuyordu. Tablo artık sayfalar arasında
     doğal olarak bölünebilir; tek tek satırlar bölünmez. */
  #detailPaper .detail-table{
    break-inside:auto!important;
    page-break-inside:auto!important;
    overflow:visible!important;
  }
  #detailPaper #detailRows{
    display:block!important;
    break-inside:auto!important;
    page-break-inside:auto!important;
  }
  #detailPaper .detail-row{
    break-inside:avoid!important;
    page-break-inside:avoid!important;
  }
  #detailPaper .detail-head{
    break-after:avoid!important;
    page-break-after:avoid!important;
  }
  #detailPaper .paper-title-row{
    break-after:avoid!important;
    page-break-after:avoid!important;
  }
  #detailPaper .detail-total{
    break-before:avoid!important;
    page-break-before:avoid!important;
  }
}


/* v0.5.16: Şikayet Fişleri sayfası - İptal Fişler ile birebir düzen */
#complaintPaper .complaint-table{width:100%}
#complaintPaper .complaint-row{display:grid;grid-template-columns:15% 12% 22% 16% 25% 10%;min-height:23px;border-bottom:1px solid #a3a3a3}
#complaintPaper .complaint-row>div{border-right:1px solid #a3a3a3;display:flex;align-items:center;justify-content:center}
#complaintPaper .complaint-row>div:last-child{border-right:0}
#complaintPaper .complaint-row .paper-input{border-right:1px solid #a3a3a3}
#complaintPaper .complaint-row .paper-input:last-child{border-right:0}
#complaintPaper .detail-head{background:var(--header-detail-bg,#eef1f4)!important;color:var(--header-text,#152238)!important;font-size:var(--front-header-size,11px)!important}
#complaintPaper .paper-input{font-size:var(--front-body-size,11px)!important}
#complaintPaper .technician-input{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#complaintPaper .technician-input:focus{text-overflow:clip}
#complaintPaper .complaint-title h1{letter-spacing:3px}

@media print{
  body.print-complaint-only #view-front,
  body.print-complaint-only #view-detail,
  body.print-complaint-only #view-cancel,
  body.print-complaint-only #view-exchange{display:none!important}
  body.print-complaint-only #view-complaint{display:block!important}
  body:not(.print-complaint-only) #view-complaint{display:none!important}
  body.print-cancel-only #view-complaint,
  body.print-exchange-only #view-complaint{display:none!important}
  #complaintPaper{width:210mm!important;min-height:0!important;margin:0!important;box-shadow:none!important;border-radius:0!important;padding:7mm 7.5mm 6.5mm!important;break-after:page;page-break-after:always}
  #complaintPaper .detail-row-tools{display:none!important}
  #complaintPaper .complaint-row{grid-template-columns:15% 12% 22% 16% 25% 10%!important;height:6.7mm!important;min-height:6.7mm!important}
  #complaintPaper .paper-input{min-height:6.4mm!important;font-size:var(--front-body-size,11px)!important;padding:.3mm .8mm!important}
  #complaintPaper .detail-head{font-size:var(--front-header-size,11px)!important}
}

@media screen and (max-width:820px){
  #complaintPaper{overflow:hidden!important}
  #complaintPaper .complaint-row-tools{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:7px 0}
  #complaintPaper .complaint-row-tools>span{flex:1 1 100%;font-size:10px}
  #complaintPaper .complaint-row-tools .admin-secondary{flex:1 1 calc(50% - 4px);min-height:38px}
  #complaintPaper .complaint-table{width:100%;max-width:100%;overflow-x:auto!important;overflow-y:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;position:relative}
  #complaintPaper .complaint-table::before{content:"← Tabloyu sağa / sola kaydırabilirsiniz →";display:block;position:sticky;left:0;width:max-content;max-width:100%;padding:5px 7px;background:#fff7ed;color:#9a5b13;font-size:9px;font-weight:800;border-bottom:1px solid #f1d4ae;z-index:3}
  #complaintPaper .complaint-row{width:760px!important;min-width:760px!important;grid-template-columns:15% 12% 22% 16% 25% 10%!important}
  #complaintPaper .detail-head{position:sticky;top:0;z-index:2}
  #complaintPaper .paper-input{min-height:34px!important;font-size:min(var(--front-body-size,11px),13px)!important}
}

/* v0.5.17: Korumalı Muhasebe raporları */
.accounting-card{max-width:1280px}
.accounting-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.accounting-filter{margin-top:22px;padding:18px;border:1px solid #e0e6ee;border-radius:16px;background:#f8fafc}
.accounting-filter-row{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px;align-items:end}
.accounting-filter label,.accounting-email-form>label{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:800;color:#344054}
.accounting-filter select,.accounting-filter input[type="month"],.accounting-filter input[type="date"],.accounting-email-form input[type="email"]{width:100%;border:1px solid #cfd7e3;background:#fff;border-radius:10px;padding:10px 11px;outline:none;color:#152238}
.accounting-filter select:focus,.accounting-filter input:focus,.accounting-email-form input:focus{border-color:#5885ff;box-shadow:0 0 0 4px #1e5eff10}
.accounting-category-box{margin-top:15px;padding:14px;border:1px solid #e4e7ec;border-radius:13px;background:#fff}
.accounting-category-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}
.accounting-category-title strong{font-size:12px}
.accounting-select-all{border:0;background:#eef3ff;color:#1e5eff;border-radius:8px;padding:6px 9px;font-size:10px;font-weight:900;cursor:pointer}
.accounting-category-grid{display:grid;grid-template-columns:repeat(5,minmax(135px,1fr));gap:8px}
.accounting-category-grid label,.accounting-detail-toggle,.accounting-switch{display:flex!important;flex-direction:row!important;align-items:center;gap:8px!important;border:1px solid #e4e7ec;border-radius:10px;padding:9px 10px;background:#fafbfc;cursor:pointer;font-size:10px!important;font-weight:800!important}
.accounting-category-grid input,.accounting-detail-toggle input,.accounting-switch input{accent-color:#1e5eff}
.accounting-filter-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:15px}
.accounting-filter-actions>div{display:flex;align-items:center;gap:8px}
.accounting-state{margin:16px 0 10px;padding:10px 12px;border-radius:10px;background:#eef3ff;color:#34508a;font-size:11px;font-weight:700}
.accounting-summary{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:10px;margin:12px 0 18px}
.accounting-summary-card{min-height:84px;padding:15px;border:1px solid #e0e6ee;border-radius:14px;background:#fff;box-shadow:0 8px 22px #10233b08}
.accounting-summary-card span{display:block;color:#667085;font-size:10px;font-weight:700;line-height:1.35}
.accounting-summary-card strong{display:block;margin-top:10px;font-size:19px;color:#10233b;font-variant-numeric:tabular-nums}
.accounting-summary-card.expense{background:#fff7ed;border-color:#fed7aa}
.accounting-summary-card.net{background:#eefbf4;border-color:#b7ebcd}
.accounting-report-table-wrap{border:1px solid #dce3ec;border-radius:14px;overflow:hidden;background:#fff}
.accounting-report-heading{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #e4e7ec;background:#f8fafc}
.accounting-report-heading strong{display:block;font-size:14px}
.accounting-report-heading span{display:block;margin-top:3px;font-size:10px;color:#667085}
.accounting-table-scroll{width:100%;overflow:auto}
.accounting-table,.accounting-detail-table{width:100%;border-collapse:collapse;min-width:760px}
.accounting-table th,.accounting-table td,.accounting-detail-table th,.accounting-detail-table td{padding:10px 11px;border-right:1px solid #e4e7ec;border-bottom:1px solid #e4e7ec;font-size:10px;text-align:left;white-space:nowrap}
.accounting-table th:last-child,.accounting-table td:last-child,.accounting-detail-table th:last-child,.accounting-detail-table td:last-child{border-right:0}
.accounting-table thead th,.accounting-detail-table thead th{background:#eef2f6;font-weight:900;text-align:center}
.accounting-table td.money,.accounting-detail-table td.money{text-align:center;font-weight:800;font-variant-numeric:tabular-nums}
.accounting-table tfoot td{background:#eef3ff;font-weight:900;border-bottom:0}
.accounting-empty{text-align:center!important;padding:28px!important;color:#667085}
.accounting-details{display:flex;flex-direction:column;gap:9px;margin-top:16px}
.accounting-day-detail{border:1px solid #dce3ec;border-radius:13px;background:#fff;overflow:hidden}
.accounting-day-detail summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;background:#f8fafc;cursor:pointer;font-weight:900}
.accounting-day-detail summary small{font-size:10px;color:#667085;font-weight:700}
.accounting-day-content{padding:13px;display:flex;flex-direction:column;gap:13px}
.accounting-detail-category{border:1px solid #e4e7ec;border-radius:11px;overflow:hidden}
.accounting-detail-category-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:#f5f7fa}
.accounting-detail-category-head strong{font-size:11px}
.accounting-detail-category-head span{font-size:11px;font-weight:900}
.accounting-detail-table{min-width:560px}
.accounting-detail-table td:first-child{width:55%}
.accounting-detail-table td:nth-child(2){width:25%}
.accounting-detail-table td:nth-child(3){width:20%}
.accounting-email-card{margin-top:22px;padding:18px;border:1px solid #dce3ec;border-radius:16px;background:#fff}
.accounting-email-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:14px;border-bottom:1px solid #edf0f4}
.accounting-email-head strong{display:block;font-size:14px}
.accounting-email-head span:not(.smtp-status){display:block;margin-top:4px;color:#667085;font-size:10px;line-height:1.5}
.smtp-status{flex:0 0 auto;border-radius:999px;padding:7px 10px;font-size:9px;font-weight:900}
.smtp-status.ready{background:#ecfdf3;color:#067647}
.smtp-status.missing{background:#fff4ed;color:#b54708}
.accounting-email-form{display:grid;grid-template-columns:220px minmax(260px,1fr);gap:14px;align-items:end;padding-top:15px}
.accounting-email-actions{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}
.accounting-email-state{grid-column:1/-1;padding:10px 12px;border-radius:9px;background:#f8fafc;color:#667085;font-size:10px;line-height:1.5}

@media(max-width:1100px){
  .accounting-filter-row{grid-template-columns:repeat(2,minmax(150px,1fr))}
  .accounting-category-grid{grid-template-columns:repeat(2,minmax(150px,1fr))}
  .accounting-summary{grid-template-columns:repeat(2,minmax(150px,1fr))}
}
@media(max-width:720px){
  .accounting-head,.accounting-email-head,.accounting-filter-actions{align-items:stretch;flex-direction:column}
  .accounting-filter-row,.accounting-category-grid,.accounting-summary,.accounting-email-form{grid-template-columns:1fr}
  .accounting-filter-actions>div{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .accounting-filter-actions button,.accounting-email-actions button{width:100%}
  .accounting-email-actions{display:grid;grid-template-columns:1fr}
  .accounting-email-form>*{grid-column:1}
  .accounting-card{padding:16px}
}
#view-accounting{max-width:1320px}


/* v0.5.18: Muhasebe sabit arşiv alıcısı */
.accounting-fixed-recipient{grid-column:1/-1;display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:11px 12px;border:1px solid #cfe0ff;border-radius:10px;background:#f5f8ff;color:#344054;font-size:11px}
.accounting-fixed-recipient strong{color:#1748c9}
.accounting-fixed-recipient span{width:100%;color:#667085;font-size:10px;line-height:1.45}
.accounting-email-form label>span small{font-size:9px;color:#98a2b3;font-weight:600}

/* v0.5.19: Aylık İzinler görünümü ve uzayan sidebar */
.sidebar .side-nav{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding-right:2px;scrollbar-width:thin;scrollbar-color:#31445f transparent}
.sidebar .side-nav::-webkit-scrollbar{width:5px}
.sidebar .side-nav::-webkit-scrollbar-thumb{background:#31445f;border-radius:999px}
.sidebar-bottom{flex:0 0 auto}
#view-leaves{max-width:1320px}
.leave-card{max-width:1280px}
.leave-filter{margin-top:22px}
.leave-filter-row{display:grid;grid-template-columns:minmax(220px,360px) 1fr;gap:16px;align-items:end}
.leave-filter-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.leave-table td:first-child,.leave-table th:first-child{text-align:left;min-width:220px}
.leave-table td:not(:first-child),.leave-table th:not(:first-child){text-align:center}
.accounting-summary-card.leave-present{background:#ecfdf3;border-color:#b7ebcd}
.accounting-summary-card.leave-absent{background:#fff1f0;border-color:#fecaca}
.accounting-summary-card.leave-half{background:#fff7ed;border-color:#fed7aa}
.leave-person-content{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px}
.leave-person-content>div{border:1px solid #e4e7ec;border-radius:11px;padding:12px;background:#fafbfc;min-width:0}
.leave-person-content strong{display:block;margin-bottom:9px;font-size:11px;color:#344054}
.leave-date-list{display:flex;flex-wrap:wrap;gap:6px;min-height:24px}
.leave-date-chip{display:inline-flex;align-items:center;padding:5px 7px;border-radius:999px;background:#eef3ff;color:#34508a;font-size:9px;font-weight:800;white-space:nowrap}
.leave-no-date{color:#98a2b3;font-size:10px}
.leave-email-card{margin-top:22px}
.leave-email-actions{display:flex;flex-direction:column;gap:12px;padding-top:15px}
.leave-email-actions .accounting-fixed-recipient{width:100%}
.leave-email-actions>button{align-self:flex-start}

@media(max-width:900px){
  .leave-filter-row{grid-template-columns:1fr}
  .leave-filter-actions{justify-content:stretch}
  .leave-filter-actions button{flex:1 1 180px}
  .leave-person-content{grid-template-columns:1fr}
}
@media(max-width:720px){
  .leave-filter-actions{display:grid;grid-template-columns:1fr}
  .leave-filter-actions button,.leave-email-actions>button{width:100%}
}

/* v0.5.19: Günlük PDF test gönderimi */
.accounting-email-test-row{grid-column:1/-1;display:grid;grid-template-columns:minmax(220px,360px) auto;gap:10px;align-items:end;padding:12px;border:1px solid #e4e7ec;border-radius:11px;background:#fafbfc}
.accounting-email-test-row label{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:800;color:#344054}
.accounting-email-test-row input[type="date"]{width:100%;border:1px solid #cfd7e3;background:#fff;border-radius:10px;padding:10px 11px;outline:none;color:#152238}
.accounting-email-test-row input[type="date"]:focus{border-color:#5885ff;box-shadow:0 0 0 4px #1e5eff10}
@media(max-width:720px){
  .accounting-email-test-row{grid-template-columns:1fr}
  .accounting-email-test-row button{width:100%}
}


/* v0.5.22: başka bilgisayardan gelen hücre güncellemesini kısa ve sakin biçimde gösterir */
@keyframes liveSyncPulse{
  0%{background:#dbeafe;box-shadow:inset 0 0 0 1px #60a5fa}
  100%{background:inherit;box-shadow:none}
}
.paper-input.live-sync-updated{animation:liveSyncPulse .9s ease-out}
@media print{.paper-input.live-sync-updated{animation:none!important}}
