:root{
    --navy:#14304B; --navy-deep:#0C2036; --amber:#A9713A; --amber-deep:#8B5A2B;
    --bg:#F3F4F7; --surface:#FFFFFF; --ink:#1D2430; --muted:#66707E; --border:#DEE2E8;
    --danger:#A5402A; --danger-bg:#FBEEEA; --ok:#2E7D4F; --ok-bg:#E9F5EE; --warn:#8A6110; --warn-bg:#FBF3DE;
    --focus:#2F6FA8;
  }
  *{box-sizing:border-box;}
  body{ margin:0; background:var(--bg); color:var(--ink); font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; min-height:100vh; }
  .brand-font{font-family:Georgia, 'Times New Roman', serif;}
  .btn{ appearance:none; border:1px solid transparent; border-radius:7px; padding:9px 16px; font-family:inherit; font-size:14px; font-weight:600; cursor:pointer; display:inline-flex; align-items:center; gap:7px; }
  .btn:active{transform:translateY(1px);}
  .btn-primary{background:var(--amber); color:#fff;} .btn-primary:hover{background:var(--amber-deep);}
  .btn-ghost{background:transparent; color:#fff; border-color:rgba(255,255,255,.4);} .btn-ghost:hover{border-color:#fff; background:rgba(255,255,255,.08);}
  .btn-outline{background:transparent; border-color:var(--border); color:var(--ink);} .btn-outline:hover{border-color:var(--muted);}
  .btn-danger{background:var(--danger); color:#fff;}
  .btn-ok{background:var(--ok); color:#fff;}
  .btn-small{padding:6px 11px; font-size:13px;}
  .btn:disabled{opacity:.5; cursor:not-allowed;}
  .linklike{background:none;border:none;color:#2F6FA8;text-decoration:underline;cursor:pointer;font-size:13px;padding:0;font-family:inherit;}
  input,select,textarea{ font-family:inherit; font-size:14.5px; color:var(--ink); background:var(--surface); border:1px solid var(--border); border-radius:7px; padding:9px 10px; width:100%; }
  input:focus,select:focus,textarea:focus{ outline:2px solid var(--focus); outline-offset:1px; border-color:var(--focus); }
  label{ display:flex; flex-direction:column; gap:6px; font-size:13px; color:var(--muted); font-weight:500; }
  textarea{resize:vertical; min-height:70px;}
  .login-shell{ min-height:100vh; display:flex; align-items:center; justify-content:center; padding:20px; }
  .login-card{ width:100%; max-width:380px; background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:32px 28px; }
  .login-brand{ text-align:center; margin-bottom:22px; }
  .login-brand .mark{ font-family:Georgia, 'Times New Roman', serif; font-weight:600; font-size:26px; color:var(--navy); }
  .login-brand .sub{ font-size:13px; color:var(--muted); margin-top:2px; }
  .login-field{ margin-bottom:14px; }
  .login-error{ background:var(--danger-bg); color:var(--danger); border-radius:7px; padding:9px 11px; font-size:13px; margin-bottom:14px; }
  .login-notice{ background:var(--ok-bg); color:var(--ok); border-radius:7px; padding:9px 11px; font-size:13px; margin-bottom:14px; }
  .toolbar{ position:sticky; top:0; z-index:40; background:var(--navy); color:#fff; padding:12px 18px; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; box-shadow:0 2px 10px rgba(0,0,0,.18); }
  .toolbar-brand{ display:flex; align-items:baseline; gap:10px; }
  .toolbar-brand .mark{ font-family:Georgia, 'Times New Roman', serif; font-weight:600; font-size:19px; }
  .toolbar-brand .sub{ font-size:12.5px; color:#C9D4E0; }
  .toolbar-user{ display:flex; align-items:center; gap:10px; font-size:13px; }
  .role-badge{ background:rgba(255,255,255,.15); border-radius:20px; padding:2px 10px; font-size:11.5px; font-weight:700; }
  .tabs{ display:flex; gap:6px; overflow-x:auto; padding:10px 14px; background:var(--surface); border-bottom:1px solid var(--border); position:sticky; top:56px; z-index:30; }
  .tab-btn{ appearance:none; border:1px solid var(--border); background:var(--bg); color:var(--ink); border-radius:20px; padding:7px 14px; font-size:13px; font-weight:600; white-space:nowrap; cursor:pointer; }
  .tab-btn.active{ background:var(--navy); color:#fff; border-color:var(--navy); }
  .tab-btn .count{ background:#DC2626; color:#fff; border-radius:10px; padding:0 6px; font-size:11px; margin-left:6px; font-weight:700; }
  .page{ max-width:900px; margin:0 auto; padding:22px 16px 90px; }
  .card{ background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:20px; margin-bottom:18px; }
  .card h2{ font-family:Georgia, 'Times New Roman', serif; font-size:17px; font-weight:600; margin:0 0 4px; color:var(--navy); }
  .card .hint{ margin:0 0 16px; color:var(--muted); font-size:13px; }
  .grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
  .grid .span-2{ grid-column:1/-1; }
  @media (max-width:560px){ .grid{ grid-template-columns:1fr; } }
  #expenses-list{ display:flex; flex-direction:column; gap:14px; }
  .expense-card{ border:1px solid var(--border); border-radius:9px; padding:16px; background:var(--bg); }
  .expense-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
  .expense-index{ width:26px; height:26px; border-radius:50%; background:var(--navy); color:#fff; font-size:12.5px; font-weight:700; display:inline-flex; align-items:center; justify-content:center; }
  .expense-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
  @media (max-width:720px){ .expense-grid{ grid-template-columns:repeat(2,1fr); } }
  @media (max-width:420px){ .expense-grid{ grid-template-columns:1fr; } }
  .calc-box{ display:flex; flex-direction:column; justify-content:center; background:var(--surface); border:1px dashed var(--border); border-radius:7px; padding:8px 10px; }
  .calc-box span{ font-size:11.5px; color:var(--muted); }
  .calc-box strong{ font-size:14.5px; margin-top:2px; }
  .calc-box.total{ border-style:solid; border-color:var(--amber); }
  .calc-box.total strong{ color:var(--amber-deep); }
  .receipt-row{ display:flex; align-items:center; gap:12px; margin-top:12px; flex-wrap:wrap; }
  .file-btn{ display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:var(--navy); background:var(--surface); border:1px solid var(--border); border-radius:7px; padding:8px 12px; cursor:pointer; }
  .no-receipt{ font-size:12.5px; color:var(--muted); font-style:italic; }
  .thumb-wrap{ display:flex; align-items:center; gap:8px; }
  .thumb{ width:44px; height:44px; object-fit:cover; border-radius:6px; border:1px solid var(--border); }
  .thumb-name{ font-size:12px; color:var(--muted); max-width:140px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .icon-btn{ border:1px solid var(--border); background:var(--surface); color:var(--muted); border-radius:6px; width:30px; height:30px; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; font-size:14px; }
  .icon-btn.danger{ color:var(--danger); }
  #totals-box{ margin-top:16px; border-top:1px solid var(--border); padding-top:14px; }
  .total-line{ display:flex; justify-content:space-between; font-size:14px; padding:4px 0; color:var(--muted); }
  .total-line.grand{ font-size:16.5px; font-weight:700; color:var(--ink); border-top:1px solid var(--border); margin-top:6px; padding-top:10px; }
  .total-currency-label{ font-weight:600; color:var(--ink); margin-top:10px; font-size:12.5px; text-transform:uppercase; letter-spacing:.04em; }
  .sig-wrap{ display:flex; flex-direction:column; gap:8px; align-items:flex-start; }
  canvas.sig-pad{ width:100%; max-width:380px; height:130px; border:1px dashed var(--border); border-radius:8px; background:var(--surface); touch-action:none; cursor:crosshair; }
  .rec-row{ border:1px solid var(--border); border-radius:9px; padding:14px 16px; margin-bottom:10px; background:var(--bg); }
  .rec-row-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:10px; flex-wrap:wrap; }
  .rec-title{ font-weight:700; font-size:14.5px; }
  .rec-sub{ font-size:12.5px; color:var(--muted); margin-top:2px; }
  .badge{ display:inline-flex; align-items:center; padding:3px 10px; border-radius:20px; font-size:11.5px; font-weight:700; white-space:nowrap; }
  .badge.pending{ background:var(--warn-bg); color:var(--warn); }
  .badge.awaiting{ background:#E7ECFB; color:#3454A5; }
  .badge.approved{ background:var(--ok-bg); color:var(--ok); }
  .badge.rejected{ background:var(--danger-bg); color:var(--danger); }
  .rec-detail{ margin-top:12px; border-top:1px solid var(--border); padding-top:12px; display:none; }
  .rec-detail.open{ display:block; }
  .mini-table{ width:100%; border-collapse:collapse; font-size:12.5px; margin:8px 0; }
  .mini-table th,.mini-table td{ border:1px solid var(--border); padding:5px 7px; text-align:left; }
  .mini-table th{ background:var(--surface); font-size:11px; text-transform:uppercase; color:var(--muted); }
  .hist-line{ font-size:12.5px; padding:5px 0; border-bottom:1px dashed var(--border); }
  .rec-actions{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
  table.admin-table{ width:100%; border-collapse:collapse; font-size:13px; }
  table.admin-table th,table.admin-table td{ border:1px solid var(--border); padding:8px; text-align:left; vertical-align:middle; }
  table.admin-table th{ background:var(--bg); font-size:11.5px; text-transform:uppercase; color:var(--muted); }
  .pw-cell{ display:flex; align-items:center; gap:6px; font-family:monospace; }
  .modal-overlay{ position:fixed; inset:0; background:rgba(10,14,20,.5); display:flex; align-items:center; justify-content:center; z-index:100; padding:16px; }
  .modal-box{ background:var(--surface); border-radius:12px; padding:24px; width:100%; max-width:440px; max-height:90vh; overflow-y:auto; }
  .modal-box h3{ font-family:Georgia, 'Times New Roman', serif; margin:0 0 14px; color:var(--navy); }
  #print-area{ position:absolute; left:-10000px; top:0; width:780px; background:#fff; color:#222; font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; padding:36px 34px; }
  #print-area *{ box-sizing:border-box; }
  .pa-brand{ font-family:Georgia, 'Times New Roman', serif; font-weight:600; font-size:26px; color:#14304B; text-align:center; margin:0; }
  .pa-title{ text-align:center; font-size:17px; font-weight:700; letter-spacing:.04em; color:#333; margin:4px 0 18px; border-bottom:3px solid #14304B; padding-bottom:14px; }
  .pa-section-title{ font-family:Georgia, 'Times New Roman', serif; font-size:14.5px; font-weight:600; color:#14304B; border-bottom:1px solid #14304B; padding-bottom:5px; margin:22px 0 10px; text-transform:uppercase; }
  .pa-table{ width:100%; border-collapse:collapse; font-size:11.5px; }
  .pa-table th,.pa-table td{ border:1px solid #B9C4D1; padding:6px 7px; text-align:left; }
  .pa-table th{ background:#14304B; color:#fff; font-size:10.5px; text-transform:uppercase; }
  .pa-info-table td.k{ background:#F2F2F2; font-weight:700; width:22%; font-size:11.5px; }
  .pa-thumb{ width:34px; height:34px; object-fit:cover; border-radius:3px; border:1px solid #ccc; }
  .pa-totals td{ padding:4px 8px; font-size:12px; }
  .pa-totals .grand td{ font-weight:700; font-size:13px; border-top:2px solid #14304B; }
  .pa-notes{ border:1px solid #B9C4D1; border-radius:4px; padding:12px; min-height:40px; font-size:12px; white-space:pre-wrap; }
  .pa-hist{ font-size:11.5px; padding:4px 0; }
  .pa-sign-img{ height:46px; object-fit:contain; }
  .pa-footer{ margin-top:26px; text-align:center; font-size:10px; color:#999; }
  @media print{
    body > *:not(#print-area){ display:none !important; }
    #print-area{ position:static !important; left:auto !important; width:100% !important; padding:0 !important; }
    @page{ margin:14mm; }
  }

/* ---- Ürün sürümüne özel eklemeler ---- */
.brand-logo{ height:28px; width:auto; max-width:140px; object-fit:contain; background:#fff; border-radius:4px; padding:2px 4px; }
.login-logo{ display:block; margin:0 auto 10px; max-height:56px; max-width:200px; object-fit:contain; }
.muted{ color:var(--muted); } .small{ font-size:12.5px; }
.row-flex{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.tag{ display:inline-block; padding:2px 8px; border-radius:20px; font-size:11px; font-weight:700; background:var(--bg); border:1px solid var(--border); color:var(--muted); }
.tag.dir{ background:#E7ECFB; color:#3454A5; border-color:#C9D4F5; } .tag.off{ background:var(--danger-bg); color:var(--danger); border-color:transparent; }
.steps{ list-style:none; padding:0; margin:12px 0 0; } .steps li{ padding:6px 0; border-bottom:1px dashed var(--border); font-size:13.5px; }
.steps .ok{ color:var(--ok); font-weight:700; } .steps .no{ color:var(--danger); font-weight:700; }
.warn-box{ background:var(--warn-bg); color:var(--warn); border-radius:7px; padding:9px 11px; font-size:13px; margin-top:10px; }
.sub-card{ border:1px solid var(--border); border-radius:9px; padding:14px; margin-top:14px; background:var(--bg); }
.sub-card h3{ margin:0 0 10px; font-size:14px; }
.pw-box{ font-family:ui-monospace,Menlo,Consolas,monospace; font-size:18px; letter-spacing:.04em; background:var(--bg); border:1px dashed var(--amber); border-radius:8px; padding:12px; text-align:center; margin:12px 0; user-select:all; }
.err-text{ color:var(--danger); font-size:13px; margin-top:8px; }
.field-hint{ font-size:12px; color:var(--muted); font-weight:400; }
.checkbox-line{ flex-direction:row; align-items:center; gap:8px; color:var(--ink); font-size:13.5px; }
.checkbox-line input{ width:auto; }
.empty-note{ margin:0; color:var(--muted); font-size:13.5px; }
.pdf-chip{ display:inline-flex; align-items:center; gap:6px; font-size:12.5px; padding:5px 9px; border:1px solid var(--border); border-radius:7px; background:var(--surface); }
.modal-box.wide{ max-width:560px; }
.modal-actions{ display:flex; gap:10px; justify-content:flex-end; margin-top:16px; }
.toast{ position:fixed; left:50%; bottom:24px; transform:translateX(-50%); background:var(--navy); color:#fff; padding:10px 16px; border-radius:8px; font-size:13.5px; z-index:200; box-shadow:0 6px 20px rgba(0,0,0,.25); max-width:90vw; }
.toast.err{ background:var(--danger); }
.table-wrap{ overflow-x:auto; }
