:root{--bg:#f3f7fb;--bg2:#eef4ff;--surface:#fff;--surface-2:#f8fbff;--text:#132238;--muted:#6f7f96;--line:#e5edf7;--primary:#1d4ed8;--success:#059669;--warning:#d97706;--danger:#dc2626;--shadow:0 20px 50px rgba(15,23,42,.08);--radius:20px;--field:#fff}
:root[data-theme="dark"]{--bg:#0b1120;--bg2:#111827;--surface:#111827;--surface-2:#172033;--text:#e5edf8;--muted:#9ca9bd;--line:#283548;--primary:#60a5fa;--success:#34d399;--warning:#fbbf24;--danger:#f87171;--shadow:0 20px 50px rgba(0,0,0,.32);--field:#0f172a}
*{box-sizing:border-box}html,body{margin:0;padding:0}body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;background:linear-gradient(180deg,var(--bg2) 0%,var(--bg) 240px);color:var(--text)}a{color:var(--primary)}.app-shell{display:flex;min-height:100vh}.sidebar{width:280px;background:linear-gradient(180deg,#0f172a 0%,#16213a 100%);color:#fff;padding:24px 18px;position:fixed;left:0;top:0;bottom:0;overflow:auto;border-right:1px solid rgba(255,255,255,.06);z-index:50}.brand-wrap{display:flex;align-items:center;gap:14px;margin-bottom:26px;padding:8px 8px 16px;border-bottom:1px solid rgba(255,255,255,.08)}.brand-badge{width:46px;height:46px;border-radius:14px;background:linear-gradient(135deg,#3b82f6,#60a5fa);display:flex;align-items:center;justify-content:center;font-weight:800;box-shadow:0 14px 30px rgba(59,130,246,.25)}.brand{font-size:20px;font-weight:800;line-height:1.1}.brand-subtitle{font-size:12px;color:#a5b4d0;margin-top:4px}.nav-group{margin:18px 0}.nav-label{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#90a3c2;margin:12px 10px}.sidebar a{display:flex;align-items:center;color:#dbe7ff;text-decoration:none;padding:12px 14px;border-radius:14px;margin:6px 0;font-size:14px;font-weight:600;transition:.18s ease}.sidebar a:hover{background:rgba(255,255,255,.08);color:#fff;transform:translateX(2px)}.main-area{margin-left:280px;width:calc(100% - 280px);padding:28px}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;gap:16px}.topbar-actions{display:flex;align-items:center;gap:12px}.page-eyebrow{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:700;margin-bottom:8px}h1{margin:0;font-size:30px;line-height:1.1}h2{margin:0 0 14px;font-size:20px}h3{margin:0 0 12px;font-size:16px}.userbox{display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--line);padding:10px 14px;border-radius:18px;box-shadow:var(--shadow)}.user-avatar{width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,#0f172a,#334155);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800}.user-name{font-weight:800}.user-role{font-size:12px;color:var(--muted);text-transform:capitalize}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow)}.stat-card{position:relative;overflow:hidden}.stat-card:before{content:"";position:absolute;right:-25px;top:-25px;width:110px;height:110px;border-radius:50%;background:radial-gradient(circle,rgba(96,165,250,.23) 0%,rgba(96,165,250,0) 70%)}.muted{color:var(--muted)}.stat{font-size:31px;font-weight:900;margin-top:10px;letter-spacing:-.03em}.stat-note{font-size:12px;color:var(--muted);margin-top:8px}.kpi-row{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.kpi-badge{display:inline-flex;padding:7px 10px;border-radius:999px;font-size:12px;font-weight:800;background:#eff6ff;color:#1d4ed8}.kpi-badge.success{background:#ecfdf5;color:#059669}.kpi-badge.warning{background:#fff7ed;color:#d97706}.kpi-badge.danger{background:#fef2f2;color:#dc2626}:root[data-theme="dark"] .kpi-badge{background:#1e3a8a;color:#bfdbfe}:root[data-theme="dark"] .kpi-badge.success{background:#064e3b;color:#a7f3d0}:root[data-theme="dark"] .kpi-badge.warning{background:#78350f;color:#fde68a}:root[data-theme="dark"] .kpi-badge.danger{background:#7f1d1d;color:#fecaca}.btn{background:linear-gradient(135deg,#0f172a,#1d4ed8);color:#fff;border:0;border-radius:14px;padding:12px 16px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;font-weight:700;box-shadow:0 10px 24px rgba(29,78,216,.2)}.btn.secondary{background:var(--surface-2);color:var(--text);box-shadow:none;border:1px solid var(--line)}.btn.danger{background:linear-gradient(135deg,#991b1b,#dc2626)}.icon-btn{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:12px;padding:9px 12px;font-weight:900}.mobile-bar{display:none}.form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:end}.form.onecol{grid-template-columns:1fr}.form label{display:flex;flex-direction:column;font-size:13px;color:var(--text);font-weight:700;gap:7px}.form input,.form select,.form textarea{padding:12px 14px;border:1px solid var(--line);border-radius:14px;font-size:14px;background:var(--field);color:var(--text);outline:none;transition:.15s ease}.form input:focus,.form select:focus,.form textarea:focus{border-color:#93c5fd;box-shadow:0 0 0 4px rgba(147,197,253,.25)}.form .full{grid-column:1/-1}.filter-card{margin-bottom:18px}.table-wrap{overflow:auto;border-radius:16px}table{width:100%;border-collapse:separate;border-spacing:0;font-size:14px}th,td{padding:12px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}th{font-size:12px;color:var(--muted);background:var(--surface-2);text-transform:uppercase;letter-spacing:.04em}tbody tr:hover td{background:var(--surface-2)}.right{text-align:right}.badge{display:inline-block;padding:5px 10px;border-radius:999px;background:#eef2ff;font-size:12px;font-weight:700;color:#1d4ed8}.actions{display:flex;gap:8px;flex-wrap:wrap}.list-compact td,.list-compact th{padding-top:10px;padding-bottom:10px}.chart-card canvas{width:100%!important;height:320px!important}.chart-card.small canvas{height:240px!important}.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.top-gap{margin-top:18px}.print-header{display:none}hr{border:0;border-top:1px solid var(--line);margin:18px 0}.no-data{padding:18px;border:1px dashed var(--line);border-radius:16px;color:var(--muted);background:var(--surface-2)}code{background:var(--surface-2);padding:2px 6px;border-radius:8px;color:var(--primary)}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:radial-gradient(circle at top left,#dbeafe 0%,#eff6ff 32%,#f8fbff 100%)}.login-shell{display:grid;grid-template-columns:1.05fr .95fr;max-width:1120px;width:100%;background:rgba(255,255,255,.82);border:1px solid rgba(255,255,255,.85);box-shadow:0 30px 80px rgba(15,23,42,.12);border-radius:30px;overflow:hidden;backdrop-filter:blur(10px)}.login-visual{padding:48px;background:linear-gradient(160deg,#0f172a 0%,#1e3a8a 55%,#60a5fa 100%);color:#fff;position:relative;overflow:hidden}.login-visual:before,.login-visual:after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.12)}.login-visual:before{width:260px;height:260px;right:-80px;top:-80px}.login-visual:after{width:220px;height:220px;left:-70px;bottom:-90px}.login-title{font-size:40px;font-weight:900;line-height:1.05;margin:0 0 18px;position:relative;z-index:1}.login-subtitle{color:#dbeafe;font-size:16px;max-width:520px;line-height:1.6;position:relative;z-index:1}.login-feature{display:grid;gap:12px;margin-top:30px;position:relative;z-index:1}.login-feature .feature-item{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);border-radius:18px;padding:14px 16px}.login-form-wrap{padding:44px 40px;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(248,250,252,.96))}.login-card{width:100%;max-width:420px}.login-card h1{font-size:28px;margin-bottom:10px}.login-card p{margin-top:0;margin-bottom:18px}.login-error{padding:12px 14px;border-radius:14px;background:#fef2f2;color:#b91c1c;font-weight:700;margin-bottom:16px;border:1px solid #fecaca}.login-credentials{margin-top:16px;padding:14px;border-radius:16px;background:#f8fbff;border:1px dashed #c7d7f0;color:#4b5563;font-size:13px}.login-card .btn{width:100%;padding:14px 16px;font-size:15px}.invoice-paper{background:#fff;color:#111827;border-radius:22px;padding:34px;box-shadow:var(--shadow);border:1px solid #e5e7eb}.invoice-head{display:grid;grid-template-columns:1.3fr .7fr;gap:24px;align-items:start}.invoice-logo{font-size:28px;font-weight:900;letter-spacing:-.03em}.invoice-title{font-size:26px;font-weight:900;text-align:right}.invoice-boxes{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:24px 0}.invoice-box{border:1px solid #e5e7eb;background:#f9fafb;border-radius:16px;padding:16px}.total-box{max-width:420px;margin-left:auto;margin-top:18px}.signature-row{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:48px}.signature-line{border-top:1px solid #9ca3af;padding-top:8px;text-align:center;color:#6b7280}
@media(max-width:1200px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.grid3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:980px){.mobile-bar{display:flex;position:sticky;top:0;z-index:80;align-items:center;justify-content:space-between;padding:12px 14px;background:var(--surface);border-bottom:1px solid var(--line);box-shadow:var(--shadow)}.sidebar{transform:translateX(-104%);transition:.22s ease;width:82%;max-width:320px}.menu-open .sidebar{transform:translateX(0)}.menu-backdrop{display:none;position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:40}.menu-open .menu-backdrop{display:block}.main-area{margin-left:0;width:100%;padding:18px}.app-shell{display:block}.topbar{flex-direction:column;align-items:flex-start}.topbar-actions{width:100%;justify-content:space-between}.login-shell{grid-template-columns:1fr}.login-visual{display:none}.invoice-head,.invoice-boxes,.signature-row{grid-template-columns:1fr}.invoice-title{text-align:left}}
@media(max-width:760px){.main-area{padding:14px}.grid,.grid2,.grid3,.form{grid-template-columns:1fr}.userbox{width:100%}.chart-card canvas{height:260px!important}h1{font-size:25px}.card{padding:16px}.stat{font-size:25px}.invoice-paper{padding:18px;border-radius:16px}.actions .btn{width:100%}.table-wrap table{min-width:720px}}
@media print{body{background:white}.sidebar,.topbar,.mobile-bar,.menu-backdrop,.no-print,.btn{display:none!important}.main-area{margin:0!important;width:100%!important;padding:0}.card{box-shadow:none;border:0;background:white}.invoice-paper{box-shadow:none;border:0;padding:0}.print-header{display:block;margin-bottom:20px}.chart-card canvas{height:220px!important}a{color:#111827;text-decoration:none}}


.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}
.toolbar .btn{padding:11px 14px}
.btn.success{background:linear-gradient(135deg,#166534,#16a34a)}
.btn.warning{background:linear-gradient(135deg,#b45309,#f97316)}
.grid5{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px}
.report-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.report-link{display:block;text-decoration:none;color:inherit}
.report-link .card{height:100%}
.mini{font-size:12px;color:var(--muted)}
.info-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.table-actions{display:flex;gap:8px;flex-wrap:wrap}
.nowrap{white-space:nowrap}
@media(max-width:1200px){.grid5,.report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.grid5,.report-grid,.info-list{grid-template-columns:1fr}.toolbar .btn{width:100%}}

.btn.info{background:linear-gradient(135deg,#0ea5e9,#38bdf8)}
.btn.small{padding:8px 10px;border-radius:10px;font-size:12px;box-shadow:none}
.text-success{color:var(--success)}
.text-danger{color:var(--danger)}
.card.soft{background:var(--surface-2);box-shadow:none}
.customer-form{display:grid;grid-template-columns:1fr;gap:16px}
.two-col-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.three-col-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.compact-form{max-width:860px}
.dropdown{position:relative;display:inline-flex}
.dropdown-menu{display:none;position:absolute;top:100%;left:0;min-width:220px;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:8px;z-index:20}
.dropdown:hover .dropdown-menu{display:block}
.dropdown-menu a{display:block;padding:10px 12px;border-radius:12px;color:var(--text);text-decoration:none}
.dropdown-menu a:hover{background:var(--surface-2)}
.full-width{margin-left:0!important;width:100%!important}
.b2b-shell{display:block}.b2b-shell .main-area{margin-left:0;width:100%}
.metric-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow)}
.metric-label{display:block;font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.metric-value{font-size:30px;font-weight:900;margin-top:10px}
.metric-note{margin-top:6px;color:var(--muted);font-size:13px}
@media(max-width:980px){.two-col-grid,.three-col-grid{grid-template-columns:1fr}}

.lang-switch{display:inline-flex;gap:6px;margin-left:8px}.lang-switch a{font-size:12px;padding:3px 7px;border-radius:999px;background:var(--surface-2);border:1px solid var(--line);text-decoration:none;color:var(--text)}
.b2b-order-row{display:grid;grid-template-columns:72px 2fr 1fr 1fr 1fr auto;gap:10px;align-items:center;margin:10px 0;padding:10px;border:1px solid var(--line);border-radius:16px;background:var(--surface-2)}
.b2b-img{display:none;width:64px;height:64px;border-radius:12px;overflow:hidden;background:#fff;border:1px solid var(--line)}.b2b-img img{width:100%;height:100%;object-fit:cover}.b2b-order-row input,.b2b-order-row select{padding:10px;border-radius:12px;border:1px solid var(--line);background:var(--field);color:var(--text)}
@media(max-width:760px){.b2b-order-row{grid-template-columns:1fr}.b2b-img{width:100%;height:160px}.b2b-order-row button{width:100%}}

.lang-switch{display:inline-flex;align-items:center;gap:6px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:7px 9px;font-size:12px}
.lang-switch a{display:inline-flex;padding:4px 7px;border-radius:9px;text-decoration:none;background:var(--surface-2);color:var(--text);font-weight:800}
.label-sheet{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.barcode-label{background:#fff;color:#111;border:1px dashed #111;border-radius:10px;padding:10px;text-align:center;min-height:120px;break-inside:avoid}
.lbl-name{font-weight:800;font-size:13px;min-height:32px}.lbl-code{font-size:12px;margin:4px 0}.barcode-bars{font-family:'Courier New',monospace;font-size:22px;letter-spacing:2px;margin:8px 0}.lbl-price{font-weight:900;font-size:15px}.product-image-large{max-width:100%;max-height:260px;border-radius:18px;border:1px solid var(--line);object-fit:contain;background:var(--surface-2);margin-bottom:16px}.invoice-row select,.invoice-row input{padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--field);color:var(--text)}
@media(max-width:900px){.label-sheet{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.label-sheet{grid-template-columns:1fr}.lang-switch{flex-wrap:wrap}.topbar-actions{flex-wrap:wrap}}
@media print{.label-sheet{grid-template-columns:repeat(3,1fr);gap:6px}.barcode-label{box-shadow:none;border:1px solid #111;border-radius:0}.barcode-bars{font-size:20px}}

/* V16 language selector */
.language-card{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:22px;
  padding:9px 12px;
  box-shadow:var(--shadow);
  width:max-content;
  max-width:100%;
}
.language-card-label{
  font-size:14px;
  color:var(--text);
  font-weight:700;
  white-space:nowrap;
}
.language-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  min-height:36px;
  padding:8px 12px;
  border-radius:15px;
  background:var(--surface-2);
  border:1px solid var(--line);
  color:var(--text);
  text-decoration:none;
  font-weight:900;
  line-height:1;
  transition:.16s ease;
}
.language-pill:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(15,23,42,.08)}
.language-pill.active{background:#eff6ff;color:#1d4ed8;border-color:#dbeafe;box-shadow:0 10px 24px rgba(59,130,246,.16)}
:root[data-theme="dark"] .language-pill.active{background:#1e3a8a;color:#bfdbfe;border-color:#294b99}
.lang-switch{display:none!important}
.topbar-actions .language-card{margin-right:4px}
@media(max-width:760px){
  .topbar-actions{align-items:flex-start}
  .language-card{order:-1;margin:0 0 8px 0;width:100%;justify-content:flex-start;overflow-x:auto;padding:10px 12px}
  .language-pill{min-width:48px}
}

/* V17 Macedonian financial statement report */
.statement-controls{max-width:1180px;margin-left:auto;margin-right:auto}
.statement-filter-form{grid-template-columns:1.3fr 1.3fr 1fr 1fr auto}
.statement-page{background:#fff;color:#111;font-family:Arial,Helvetica,sans-serif;width:1120px;max-width:100%;min-height:1500px;margin:0 auto 30px;padding:48px 56px;border:3px solid #f2b21b;box-shadow:0 12px 36px rgba(0,0,0,.18)}
.statement-header{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:22px;align-items:end;font-size:14px}
.statement-brand{display:flex;align-items:center;gap:12px}.statement-logo-mark{font-size:42px;color:#444;line-height:1}.statement-company{font-size:34px;font-weight:600;line-height:1;color:#444}.statement-small{font-size:14px;font-weight:600}.statement-contact{border-left:1px dotted #111;padding-left:12px;line-height:1.45}.statement-bank{border-left:1px dotted #111;padding-left:18px;line-height:1.55}
.statement-topline{border-top:2px solid #111;margin:4px 0 18px}.statement-info-row{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:start}.statement-client-box{border:2px solid #111;padding:12px 18px;min-height:108px}.statement-client-box h3{margin:0 0 8px;font-size:20px}.statement-client-name{font-weight:700;margin-bottom:8px}.statement-title-box{text-align:center;font-size:16px}.statement-title-box h2{font-size:26px;margin:10px 0 14px}.statement-carry{display:flex;justify-content:center;gap:90px;margin:0 0 8px}.statement-table{width:100%;border-collapse:collapse;margin-top:10px;font-size:14px}.statement-table th{background:#fff;color:#111;border-top:2px solid #111;border-bottom:2px solid #111;padding:7px 6px;font-weight:800}.statement-table td{border-bottom:1px dotted #bbb;padding:5px 6px}.statement-main-row td{font-weight:500}.statement-item-row td{font-size:13px;border-bottom:0;padding-top:4px;padding-bottom:4px}.tree-line{font-size:18px;font-weight:700}.statement-empty{text-align:center;padding:28px!important;color:#777}.statement-totals-side{width:330px;margin:32px 0 90px auto;font-size:19px}.statement-totals-side div{display:flex;justify-content:space-between;border-bottom:1px solid #888;padding:7px 8px;font-weight:700}.statement-totals-side .saldo{background:#24207f;color:#fff;border-bottom:0;padding:14px 10px;margin-top:6px}.statement-summary-title{text-align:center;font-size:18px;font-weight:800;margin-bottom:2px}.statement-summary-table{width:100%;border-collapse:collapse;border:2px solid #111;text-align:center;font-size:17px}.statement-summary-table th,.statement-summary-table td{border:0;padding:6px 12px;font-weight:800;background:#fff;color:#111}.statement-footer-line{border-top:4px solid #111;margin-top:520px}.statement-footer{display:flex;justify-content:space-between;font-size:16px;margin-top:22px}.statement-page .right{text-align:right}
@media(max-width:980px){.statement-filter-form{grid-template-columns:1fr}.statement-page{width:100%;padding:24px 18px;min-height:1200px}.statement-header,.statement-info-row{grid-template-columns:1fr}.statement-title-box{text-align:left}.statement-carry{justify-content:space-between;gap:20px}.statement-table{font-size:12px}.statement-item-row td{font-size:11px}.statement-totals-side{width:100%;margin-bottom:60px}.statement-footer-line{margin-top:220px}.statement-company{font-size:28px}}
@media print{body{background:#fff!important}.statement-controls,.no-print,.sidebar,.topbar,.mobile-bar,.menu-backdrop{display:none!important}.main-area{margin:0!important;width:100%!important;padding:0!important}.statement-page{box-shadow:none;border:0;width:100%;max-width:none;min-height:calc(100vh - 20mm);padding:10mm 8mm;margin:0;font-size:12px}.statement-header{font-size:12px}.statement-company{font-size:28px}.statement-table{font-size:12px}.statement-item-row td{font-size:11px}.statement-totals-side{margin-top:20px;margin-bottom:80px}.statement-footer-line{margin-top:420px}.statement-summary-title{font-size:14px}.statement-summary-table{font-size:14px}@page{size:A4 portrait;margin:8mm}}

/* V18 A4 PDF statement filters and print layout */
.statement-filter-form-pdf{display:grid;grid-template-columns:2.2fr 1fr 1fr auto;gap:12px;align-items:end}
.statement-filter-form-pdf label{display:flex;flex-direction:column;font-size:13px;font-weight:800;color:var(--text);gap:7px}
.statement-filter-form-pdf input{padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--field);color:var(--text);font-size:14px}
.statement-customer-combo input{font-weight:700}
.statement-actions{align-items:end;justify-content:flex-start}
.statement-page{width:210mm;min-height:297mm;max-width:210mm;padding:12mm 12mm 10mm;border:2px solid #f2b21b;background:#fff;color:#111;box-shadow:0 10px 35px rgba(0,0,0,.20);page-break-after:always}
.statement-header{grid-template-columns:1.35fr 1fr 1.05fr;gap:14px;font-size:12px}
.statement-company{font-size:30px}.statement-small{font-size:12px}.statement-topline{margin:3px 0 12px}.statement-client-box{min-height:92px;padding:8px 14px}.statement-title-box h2{font-size:22px}.statement-title-box{font-size:14px}.statement-table{font-size:12px}.statement-table th{padding:5px 5px}.statement-table td{padding:3px 5px}.statement-item-row td{font-size:11px}.statement-totals-side{width:295px;margin-top:24px;margin-bottom:90px;font-size:16px}.statement-summary-title{font-size:15px}.statement-summary-table{font-size:15px}.statement-footer-line{margin-top:360px}.statement-footer{font-size:13px}
@media(max-width:980px){.statement-filter-form-pdf{grid-template-columns:1fr}.statement-page{width:100%;max-width:100%;min-height:1200px;padding:24px 18px}.statement-footer-line{margin-top:220px}}
@media print{.statement-controls{display:none!important}.statement-page{width:210mm!important;max-width:210mm!important;min-height:297mm!important;margin:0!important;padding:10mm 10mm 8mm!important;border:0!important;box-shadow:none!important;page-break-after:always}.statement-header{font-size:11px}.statement-company{font-size:26px}.statement-table{font-size:11px}.statement-item-row td{font-size:10px}.statement-totals-side{font-size:14px;margin-top:18px;margin-bottom:70px}.statement-summary-title{font-size:13px}.statement-summary-table{font-size:13px}.statement-footer-line{margin-top:330px}@page{size:A4 portrait;margin:0}}

/* V19 Cari Detay */
.customer-detail-shell{display:grid;gap:18px}
.customer-detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:4px}
.customer-detail-actions .btn{border-radius:0;padding:13px 16px;background:#102545;color:#fff;box-shadow:none}
.customer-detail-actions .btn.secondary{background:#132b4e;color:#fff;border:0}
.customer-detail-actions .btn.info{background:#1585c8;color:#fff}
.customer-profile-card{padding:0;overflow:hidden;border-radius:0;box-shadow:none}
.customer-detail-tabs{display:flex;gap:0;border-bottom:1px solid var(--line);background:var(--surface)}
.customer-detail-tabs span{padding:14px 18px;border-right:1px solid var(--line);font-weight:600;color:#305071}
.customer-detail-tabs span.active{background:#fff;color:#0f2949;border-top:2px solid #1d4ed8}
.customer-profile-grid{display:grid;grid-template-columns:1fr 280px;gap:14px;padding:18px}
.customer-profile-table{border:1px solid var(--line)}
.customer-profile-table div{display:grid;grid-template-columns:120px 1fr;border-bottom:1px solid var(--line);min-height:34px;align-items:center}
.customer-profile-table div:last-child{border-bottom:0}
.customer-profile-table strong{padding:8px 10px;background:var(--surface-2);height:100%}
.customer-profile-table span{padding:8px 10px}
.customer-profile-side{display:grid;gap:8px;align-content:start}
.customer-profile-side .btn{width:100%;border-radius:0;box-shadow:none}
.detail-report-dropdown{display:block;width:100%}
.detail-report-dropdown .dropdown-menu{left:auto;right:0;width:100%}
.customer-balance-strip{display:flex;gap:24px;align-items:center;position:relative;border-radius:0;box-shadow:none;background:var(--surface)}
.customer-graph-toggle{margin-left:auto;text-align:center;color:#334155;font-weight:700}
.customer-graph-toggle span{font-weight:500}
.customer-filter-card{border-radius:0;box-shadow:none}
.customer-detail-filter-form{display:grid;grid-template-columns:1fr 1fr 2fr auto;gap:24px;align-items:end}
.customer-detail-filter-form label{display:flex;flex-direction:column;gap:6px;font-weight:600;color:var(--text)}
.customer-detail-filter-form input{height:38px;border:1px solid var(--line);background:var(--field);color:var(--text);padding:8px 10px}
.customer-period-info{margin-top:16px;font-size:13px}
.customer-transaction-card{border-radius:0;box-shadow:none;padding:0}
.customer-transaction-card .section-head{padding:16px 18px;margin:0;border-bottom:1px solid var(--line)}
.customer-detail-table{font-size:13px}
.customer-detail-table th{background:#f4f7fb;color:#34445c;font-size:12px}
.customer-detail-table td{border-bottom:1px solid #e9eef5}
.payment-badge{display:inline-flex;padding:5px 8px;border-radius:4px;font-size:12px;font-weight:700;color:#fff;background:#64748b}
.payment-badge.paid{background:#168a27}.payment-badge.open{background:#d97706}
@media(max-width:980px){.customer-profile-grid{grid-template-columns:1fr}.customer-detail-filter-form{grid-template-columns:1fr}.customer-balance-strip{flex-direction:column;align-items:flex-start}.customer-detail-tabs{overflow:auto}.customer-detail-actions .btn{width:100%}}
@media print{.customer-detail-actions,.customer-detail-tabs,.customer-profile-side,.customer-filter-card .actions,.customer-graph-toggle{display:none!important}.customer-profile-grid{grid-template-columns:1fr}.customer-balance-strip,.customer-profile-card,.customer-transaction-card{box-shadow:none;border:1px solid #ddd}.customer-detail-table{font-size:11px}}

/* V20 Cari Detay yeniden tasarım */
.customer-v20-page{display:grid;gap:14px}
.customer-v20-page h1{margin-bottom:6px}
.customer-v20-actions{display:flex;gap:8px;flex-wrap:wrap}
.customer-v20-actions .btn.navy,.customer-v20-side .btn.navy{background:#1f3d6d;color:#fff;border:1px solid #17345e;box-shadow:none;border-radius:0;padding:11px 16px;font-weight:700}
.customer-v20-side .btn.orange{background:#e18333;color:#fff;border:1px solid #cb7127;box-shadow:none;border-radius:0;padding:11px 16px;font-weight:700}
.customer-v20-actions .btn:hover,.customer-v20-side .btn:hover{filter:brightness(.97)}
.customer-v20-info-wrap{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:14px;align-items:start}
.customer-v20-tabs{display:flex;gap:0;align-items:flex-end;margin-top:4px}
.customer-v20-tabs a{padding:11px 16px;border:1px solid var(--line);border-bottom:0;background:#fff;color:#4b617d;text-decoration:none;font-weight:500;margin-right:-1px}
.customer-v20-tabs a.active{background:#fdfdfd;color:#1d3a67;position:relative;z-index:2}
.customer-v20-info-main.card{padding:0;overflow:hidden}
.customer-v20-info-table{width:100%;border-collapse:collapse;font-size:14px}
.customer-v20-info-table th,.customer-v20-info-table td{border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top}
.customer-v20-info-table th{width:180px;background:#fff;font-weight:700;color:#334155}
.customer-v20-info-table td{background:#fff;color:#334155}
.customer-v20-side{padding-top:46px;display:grid;gap:0}
.customer-v20-side .btn.full{display:flex;align-items:center;justify-content:center;width:100%}
.customer-v20-dropdown .dropdown-menu{min-width:100%;right:0;left:auto}
.customer-v20-mini-table{padding:12px}
.customer-v20-mini-table table{width:100%;border-collapse:collapse;font-size:14px}
.customer-v20-mini-table th,.customer-v20-mini-table td{padding:10px 12px;border:1px solid #e5e7eb;text-align:left;vertical-align:top;background:#fff}
.customer-v20-mini-table th{font-weight:600;color:#334155}
.customer-v20-mini-table .no-data-row{text-align:center;color:#6b7280;padding:24px}
.customer-v20-inline-actions{padding:12px 0 0 4px}
.customer-v20-inline-actions .btn.small{padding:8px 12px;border-radius:0}
.customer-v20-ledger-block.card{padding:0;overflow:hidden}
.customer-v20-strip{display:flex;gap:18px;align-items:center;padding:18px 26px;background:#fff;border-bottom:1px solid #e5e7eb;font-size:18px;flex-wrap:wrap}
.customer-v20-strip strong{font-weight:800}
.customer-v20-graph{margin-left:auto;text-align:center;color:#374151;line-height:1.2;min-width:70px}
.customer-v20-head{padding:14px 12px 10px 12px;font-weight:800;color:#374151;background:#fff}
.customer-v20-filter{display:grid;grid-template-columns:420px 420px minmax(280px,1fr);gap:22px;padding:0 12px 10px 12px;background:#fff;align-items:end}
.customer-v20-filter .filter-field label{display:block;font-size:14px;font-weight:500;color:#4b5563;margin-bottom:6px}
.customer-v20-filter .input-addon{display:flex;align-items:stretch}
.customer-v20-filter input{height:40px;border:1px solid #cfd8e3;background:#f6f9fc;padding:8px 10px;flex:1;font-size:14px;color:#374151}
.customer-v20-filter .addon-btn{width:42px;border:1px solid #7a91b0;background:#6d829e;color:#fff;cursor:pointer}
.customer-v20-filter .addon-btn:hover{filter:brightness(.95)}
.customer-v20-period{padding:0 12px 10px 12px;font-weight:600;color:#374151;background:#fff}
.customer-v20-table{width:100%;border-collapse:collapse;font-size:14px}
.customer-v20-table th,.customer-v20-table td{border:1px solid #e5e7eb;padding:10px 8px;vertical-align:middle;background:#fff}
.customer-v20-table th{font-weight:700;color:#374151;background:#fbfcfd}
.customer-v20-table .actions-cell{white-space:nowrap}
.customer-v20-table .btn.slate{background:#5d7694;color:#fff;border:0;box-shadow:none;border-radius:0;padding:8px 10px}
.customer-v20-table .btn.slate.small{font-size:13px}
.customer-v20-table .right{text-align:right}
.customer-v20-table tbody tr:hover td{background:#fbfdff}
.customer-v20-table a{text-decoration:none;color:#3b82f6}
.customer-v20-table a:hover{text-decoration:underline}
.customer-v20-page .dropdown{position:relative}
.customer-v20-page .dropdown-menu{display:none;position:absolute;top:100%;left:0;background:#fff;border:1px solid #d5dbe3;box-shadow:0 12px 25px rgba(15,23,42,.12);z-index:30;min-width:150px}
.customer-v20-page .dropdown-menu a{display:block;padding:10px 12px;color:#334155;text-decoration:none;font-size:14px}
.customer-v20-page .dropdown-menu a:hover{background:#f5f7fb}
.customer-v20-page .dropdown:hover .dropdown-menu{display:block}
@media(max-width:1400px){.customer-v20-filter{grid-template-columns:1fr 1fr}.customer-v20-filter .search-field{grid-column:1 / -1}.customer-v20-info-wrap{grid-template-columns:1fr}.customer-v20-side{padding-top:0;grid-template-columns:1fr 1fr;gap:0}.customer-v20-side .btn.full{width:auto}}
@media(max-width:900px){.customer-v20-actions .btn{width:100%}.customer-v20-tabs{overflow:auto}.customer-v20-filter{grid-template-columns:1fr}.customer-v20-side{grid-template-columns:1fr}.customer-v20-strip{font-size:16px}.customer-v20-graph{margin-left:0}}


/* V21 Cari Detay sekme tasarım iyileştirmesi */
.customer-v21-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:4px 0 0 0}
.customer-v21-tab{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid #d8e1ec;border-radius:16px;background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);text-decoration:none;color:#334155;box-shadow:0 8px 22px rgba(15,23,42,.05);transition:all .18s ease;position:relative;overflow:hidden}
.customer-v21-tab:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#cbd5e1}
.customer-v21-tab:hover{transform:translateY(-1px);border-color:#bfd2e8;box-shadow:0 10px 24px rgba(15,23,42,.08)}
.customer-v21-tab .tab-icon{width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:#eaf1fb;font-size:20px;flex:0 0 42px}
.customer-v21-tab .tab-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.customer-v21-tab .tab-copy strong{font-size:15px;line-height:1.2;color:#183153}
.customer-v21-tab .tab-copy small{font-size:12px;color:#6b7c93;line-height:1.25;white-space:normal}
.customer-v21-tab.active{background:linear-gradient(135deg,#173a68 0%,#1e4f88 100%);border-color:#173a68;box-shadow:0 14px 30px rgba(23,58,104,.22)}
.customer-v21-tab.active:before{background:#f59e0b}
.customer-v21-tab.active .tab-icon{background:rgba(255,255,255,.16);color:#fff}
.customer-v21-tab.active .tab-copy strong,.customer-v21-tab.active .tab-copy small{color:#fff}
@media(max-width:1200px){.customer-v21-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.customer-v21-tabs{grid-template-columns:1fr}.customer-v21-tab{padding:12px 14px;border-radius:14px}.customer-v21-tab .tab-copy strong{font-size:14px}}

/* V22 Cari Detay: başlık tekrarı ve filtre tasarımı */
.customer-v20-page > h1{display:none!important}
.customer-v22-filter{display:grid;grid-template-columns:260px 220px 220px minmax(300px,1fr) auto;gap:14px;align-items:end;padding:16px 18px 12px;background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);border-top:1px solid #e5eaf2;border-bottom:1px solid #e5eaf2}
.customer-v22-filter-title{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid #dbe5f0;border-radius:16px;background:#fff;min-height:66px;box-shadow:0 8px 20px rgba(15,23,42,.04)}
.customer-v22-filter-title .filter-title-icon{width:38px;height:38px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:#eaf2ff;color:#1d4ed8;font-size:18px;flex:0 0 38px}
.customer-v22-filter-title strong{display:block;color:#173153;font-size:15px;line-height:1.1}
.customer-v22-filter-title small{display:block;color:#6b7c93;font-size:12px;margin-top:4px;line-height:1.25}
.v22-filter-field{display:flex;flex-direction:column;gap:7px;margin:0}
.v22-filter-field span{font-size:12px;font-weight:800;color:#506176;letter-spacing:.02em;text-transform:uppercase}
.v22-filter-field input{height:44px;width:100%;border:1px solid #cfd9e6;border-radius:14px;background:#fff;color:#16243a;padding:0 13px;font-size:14px;outline:none;box-shadow:0 6px 16px rgba(15,23,42,.035);transition:border-color .15s ease, box-shadow .15s ease}
.v22-filter-field input:focus{border-color:#3b82f6;box-shadow:0 0 0 4px rgba(59,130,246,.14)}
.v22-search-field input{padding-left:36px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24' stroke='%236b7c93' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m21 21-4.35-4.35M10.5 18a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15Z'/%3E%3C/svg%3E") no-repeat 12px center}
.v22-filter-actions{display:flex;gap:8px;align-items:end}
.v22-filter-actions .btn{height:44px;border-radius:14px;box-shadow:none;padding:0 16px;min-width:86px}
.v22-filter-actions .btn.navy{background:#173a68;color:#fff;border:1px solid #173a68}
.v22-filter-actions .btn.light{background:#eef4fb;color:#173153;border:1px solid #dbe5f0;text-decoration:none}
@media(max-width:1500px){.customer-v22-filter{grid-template-columns:1fr 1fr 1fr}.customer-v22-filter-title{grid-column:1/-1}.v22-search-field{grid-column:1/3}.v22-filter-actions{justify-content:flex-end}}
@media(max-width:800px){.customer-v22-filter{grid-template-columns:1fr}.v22-search-field{grid-column:auto}.v22-filter-actions{justify-content:stretch}.v22-filter-actions .btn{flex:1}}


/* V23 Cari Detay nav tabs */
.customer-v23-tabs{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;padding:0 0 0 0;border-bottom:1px solid #dbe3ee;margin-top:6px}
.customer-v23-tab{display:inline-flex;align-items:center;gap:10px;padding:12px 16px;background:#f7f9fc;border:1px solid #dbe3ee;border-bottom:none;border-top-left-radius:12px;border-top-right-radius:12px;text-decoration:none;color:#48617d;font-weight:600;position:relative;top:1px;transition:all .18s ease}
.customer-v23-tab .tab-icon{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#e8eef7;font-size:15px;flex:0 0 28px}
.customer-v23-tab:hover{background:#ffffff;color:#1f3d6d;border-color:#c5d2e3}
.customer-v23-tab.active{background:#ffffff;color:#183a68;border-color:#c8d4e4;box-shadow:0 -1px 0 #ffffff inset, 0 3px 12px rgba(15,23,42,.05)}
.customer-v23-tab.active:after{content:"";position:absolute;left:14px;right:14px;bottom:-1px;height:3px;border-radius:3px 3px 0 0;background:#1f4f88}
.customer-v23-tab.active .tab-icon{background:#e0ebfb;color:#1f4f88}
@media(max-width:900px){.customer-v23-tabs{gap:6px;overflow:auto;flex-wrap:nowrap;padding-bottom:2px}.customer-v23-tab{white-space:nowrap;padding:10px 14px;font-size:14px}}


/* V24 Cari Detay modern tabs ve sağ panel yerleşimi */
.customer-v20-info-wrap{display:grid;grid-template-columns:1fr;gap:0;align-items:start}
.customer-v24-tabs{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;border-bottom:1px solid #d9e2ee;padding:0 2px;margin-top:8px}
.customer-v24-tab{display:inline-flex;align-items:center;justify-content:center;padding:14px 22px;min-height:48px;background:linear-gradient(180deg,#f7f9fc 0%,#edf2f8 100%);border:1px solid #dce5f0;border-bottom:none;border-radius:14px 14px 0 0;text-decoration:none;color:#59708a;font-weight:700;letter-spacing:.01em;position:relative;top:1px;transition:all .18s ease;box-shadow:0 8px 18px rgba(15,23,42,.04)}
.customer-v24-tab:hover{background:#ffffff;color:#1d3d69;border-color:#cfd9e6}
.customer-v24-tab.active{background:#ffffff;color:#173a68;border-color:#cfd9e6;box-shadow:0 10px 18px rgba(15,23,42,.06)}
.customer-v24-tab.active:after{content:"";position:absolute;left:16px;right:16px;bottom:-1px;height:3px;border-radius:999px;background:#173a68}
.customer-v24-info-card.card{padding:0;overflow:hidden;border-top-left-radius:0}
.customer-v24-info-card{display:grid;grid-template-columns:minmax(0,1fr) 250px;align-items:start}
.customer-v24-info-content{min-width:0;border-right:1px solid #e5e7eb;background:#fff}
.customer-v24-side{padding:16px;background:#fff;align-self:stretch;display:grid;align-content:start;gap:0;min-height:100%}
.customer-v24-side .btn.full{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;border-radius:0}
.customer-v24-side .dropdown-menu{min-width:100%;right:0;left:auto}
.customer-v20-info-table th,.customer-v20-info-table td{border-color:#e8edf4}
@media(max-width:1200px){.customer-v24-info-card{grid-template-columns:1fr}.customer-v24-info-content{border-right:none;border-bottom:1px solid #e5e7eb}.customer-v24-side{grid-template-columns:1fr 1fr;padding:14px}.customer-v24-side .dropdown{width:100%}}
@media(max-width:760px){.customer-v24-tabs{gap:6px;overflow:auto;flex-wrap:nowrap;padding-bottom:2px}.customer-v24-tab{white-space:nowrap;padding:12px 16px;min-height:44px;font-size:14px;border-radius:12px 12px 0 0}.customer-v24-side{grid-template-columns:1fr}}


/* V26 Referans görsele göre gerçek nav-tabs görünümü */
.customer-v24-tabs{
    display:flex;
    align-items:flex-end;
    gap:0;
    flex-wrap:wrap;
    margin-top:8px;
    padding:0 0 0 16px;
    border-bottom:1px solid #dddddd;
    background:transparent;
}
.customer-v24-tab{
    display:inline-block;
    margin:0 2px -1px 0;
    padding:10px 16px;
    min-height:auto;
    background:transparent;
    border:1px solid transparent;
    border-bottom:none;
    border-radius:0;
    color:#4e627c;
    font-weight:400;
    font-size:14px;
    line-height:1.42857143;
    text-decoration:none;
    box-shadow:none;
    position:relative;
    top:0;
}
.customer-v24-tab:hover,
.customer-v24-tab:focus{
    color:#2e4159;
    background-color:#f9f9f9;
    border-color:#eeeeee #eeeeee #dddddd;
    text-decoration:none;
}
.customer-v24-tab.active,
.customer-v24-tab.active:hover,
.customer-v24-tab.active:focus{
    color:#555555;
    cursor:default;
    background-color:#ffffff;
    border:1px solid #dddddd;
    border-bottom-color:transparent;
    border-top-left-radius:0;
    border-top-right-radius:0;
    font-weight:400;
}
.customer-v24-tab.active:after{display:none;content:none}
.customer-v24-info-card.card{
    border-top-left-radius:0;
    border-top-right-radius:0;
    margin-top:0;
}
@media(max-width:760px){
    .customer-v24-tabs{
        overflow:auto;
        flex-wrap:nowrap;
        padding-left:10px;
    }
    .customer-v24-tab{
        white-space:nowrap;
        padding:10px 14px;
        font-size:13px;
    }
}


/* V27 Raporlar dropdown içeriği ve referans görünüme yakın tasarım */
.customer-v20-dropdown{position:relative}
.customer-v20-dropdown .customer-report-menu{
    display:none;
    position:absolute;
    top:100%;
    right:0;
    left:auto;
    min-width:210px;
    background:#fff;
    border:1px solid #d9d9d9;
    box-shadow:4px 4px 0 rgba(0,0,0,.08);
    border-radius:0;
    padding:6px 0;
    z-index:60;
}
.customer-v20-dropdown:hover .customer-report-menu{display:block}
.customer-v20-dropdown .customer-report-menu a{
    display:flex;
    align-items:center;
    gap:6px;
    padding:10px 12px;
    color:#5e6672;
    background:#fff;
    text-decoration:none;
    font-size:14px;
    line-height:1.2;
    white-space:nowrap;
}
.customer-v20-dropdown .customer-report-menu a:hover{background:#f5f5f5;color:#334155}
.customer-v20-dropdown .report-menu-icon{
    width:14px;
    display:inline-flex;
    justify-content:center;
    color:#747b84;
    font-size:13px;
    flex:0 0 14px;
}


/* V28 Global buton sistemi yeniden tasarım */
.btn,
button.btn,
a.btn{
  --btn-bg-1:#1d4ed8;
  --btn-bg-2:#1e40af;
  --btn-border:#1e3a8a;
  --btn-text:#ffffff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  padding:10px 16px;
  border-radius:10px;
  border:1px solid var(--btn-border);
  background:linear-gradient(180deg,var(--btn-bg-1) 0%,var(--btn-bg-2) 100%);
  color:var(--btn-text);
  font-size:14px;
  font-weight:700;
  line-height:1.2;
  letter-spacing:.01em;
  text-decoration:none;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(30,64,175,.16);
  transition:transform .14s ease, box-shadow .14s ease, filter .14s ease, background .14s ease, border-color .14s ease;
}
.btn:hover,
button.btn:hover,
a.btn:hover{
  color:var(--btn-text);
  text-decoration:none;
  transform:translateY(-1px);
  box-shadow:0 12px 22px rgba(30,64,175,.22);
  filter:saturate(1.03);
}
.btn:active,
button.btn:active,
a.btn:active{
  transform:translateY(0);
  box-shadow:0 6px 14px rgba(30,64,175,.16);
}
.btn:focus-visible,
button.btn:focus-visible,
a.btn:focus-visible,
.icon-btn:focus-visible{
  outline:none;
  box-shadow:0 0 0 4px rgba(59,130,246,.22), 0 10px 20px rgba(15,23,42,.10);
}
.btn.secondary{
  --btn-bg-1:#ffffff;
  --btn-bg-2:#f8fafc;
  --btn-border:#d6deea;
  --btn-text:#334155;
  box-shadow:0 6px 14px rgba(15,23,42,.06);
}
.btn.secondary:hover{box-shadow:0 10px 18px rgba(15,23,42,.08)}
.btn.success{
  --btn-bg-1:#16a34a;
  --btn-bg-2:#15803d;
  --btn-border:#166534;
}
.btn.warning{
  --btn-bg-1:#f59e0b;
  --btn-bg-2:#d97706;
  --btn-border:#b45309;
}
.btn.info{
  --btn-bg-1:#0ea5e9;
  --btn-bg-2:#0284c7;
  --btn-border:#0369a1;
}
.btn.danger{
  --btn-bg-1:#ef4444;
  --btn-bg-2:#dc2626;
  --btn-border:#b91c1c;
}
.btn.small{
  min-height:34px;
  padding:7px 12px;
  border-radius:8px;
  font-size:12px;
  box-shadow:0 5px 10px rgba(15,23,42,.08);
}
.btn[disabled],
.btn.disabled,
button.btn[disabled]{
  opacity:.62;
  cursor:not-allowed;
  pointer-events:none;
  box-shadow:none;
  transform:none;
}
.icon-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:40px;
  min-height:40px;
  padding:0 12px;
  border-radius:10px;
  border:1px solid #d7e0ec;
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
  color:#334155;
  font-weight:800;
  box-shadow:0 6px 14px rgba(15,23,42,.06);
  transition:all .14s ease;
}
.icon-btn:hover{transform:translateY(-1px);background:#fff}

/* Müşteri detayındaki özel butonlar */
.customer-detail-actions .btn,
.customer-v20-actions .btn.navy,
.customer-v20-side .btn.navy,
.v22-filter-actions .btn.navy{
  --btn-bg-1:#274777;
  --btn-bg-2:#1f3d6d;
  --btn-border:#18355f;
  border-radius:8px;
  box-shadow:0 8px 18px rgba(31,61,109,.16);
}
.customer-detail-actions .btn.secondary,
.v22-filter-actions .btn.light{
  --btn-bg-1:#ffffff;
  --btn-bg-2:#f4f7fb;
  --btn-border:#d6e0eb;
  --btn-text:#31435c;
  border-radius:8px;
}
.customer-detail-actions .btn.info{
  --btn-bg-1:#1f98db;
  --btn-bg-2:#147fc0;
  --btn-border:#106da5;
  border-radius:8px;
}
.customer-v20-side .btn.orange,
.customer-v20-dropdown > .btn.orange{
  --btn-bg-1:#e98a31;
  --btn-bg-2:#cf7729;
  --btn-border:#bc6921;
  --btn-text:#ffffff;
  border-radius:8px;
  box-shadow:0 8px 18px rgba(207,119,41,.18);
}
.customer-v20-table .btn.slate{
  background:linear-gradient(180deg,#7089a7 0%,#5f7898 100%);
  color:#fff;
  border:1px solid #58708e;
  border-radius:8px;
  padding:7px 10px;
  box-shadow:0 5px 12px rgba(15,23,42,.08);
}
.customer-v20-table .btn.slate:hover{filter:brightness(1.02)}
.toolbar .btn{min-height:40px;padding:9px 14px;border-radius:10px}
:root[data-theme="dark"] .btn.secondary,
:root[data-theme="dark"] .icon-btn,
:root[data-theme="dark"] .v22-filter-actions .btn.light{
  background:linear-gradient(180deg,#1f2937 0%,#111827 100%);
  border-color:#374151;
  color:#e5e7eb;
  box-shadow:none;
}


/* V29 Dropdown görünürlük düzeltmesi: Raporlar ve İşlemler menüleri üstte kalsın */
.customer-v20-page,
.customer-v20-info-wrap,
.customer-v24-info-card.card,
.customer-v24-info-card,
.customer-v24-info-content,
.customer-v20-ledger-block.card{
  overflow:visible!important;
  position:relative;
}
.customer-v24-info-card{z-index:40}
.customer-v20-ledger-block.card{z-index:20}
.customer-v20-side,
.customer-v24-side,
.customer-v20-dropdown,
.inline-dropdown,
.actions-cell{
  position:relative;
  overflow:visible!important;
}
.customer-v20-side,
.customer-v24-side{z-index:120}
.customer-v20-dropdown{z-index:130}
.customer-v20-dropdown .customer-report-menu,
.customer-v20-dropdown .dropdown-menu{
  z-index:99999!important;
  top:calc(100% + 4px)!important;
  bottom:auto!important;
  right:0!important;
  left:auto!important;
}
.customer-v20-ledger-block .table-wrap,
.customer-v20-ledger-block table,
.customer-v20-ledger-block tbody,
.customer-v20-ledger-block tr,
.customer-v20-ledger-block td{
  overflow:visible!important;
}
.customer-v20-table .actions-cell{z-index:30}
.customer-v20-table tr:hover .actions-cell{z-index:9990}
.inline-dropdown{display:inline-flex;z-index:1000}
.inline-dropdown .dropdown-menu{
  z-index:99999!important;
  top:calc(100% + 4px)!important;
  left:0!important;
  right:auto!important;
  min-width:160px;
  border-radius:4px;
  box-shadow:0 12px 28px rgba(15,23,42,.18)!important;
}
.inline-dropdown:hover .dropdown-menu,
.customer-v20-dropdown:hover .dropdown-menu,
.customer-v20-dropdown:hover .customer-report-menu{
  display:block!important;
}
.customer-v20-table th,
.customer-v20-table td{position:relative}
@media(max-width:900px){
  .customer-v20-ledger-block .table-wrap{overflow-x:auto!important;overflow-y:visible!important}
}

/* V30 Cari Detay işlem butonları ve referans formları */
.customer-v30-actions{gap:8px;align-items:center}
.customer-v30-actions .btn.navy{min-height:44px;padding:12px 16px;border-radius:0;font-weight:700;background:#1f3d6d;border-color:#18355f;box-shadow:none}
.customer-v30-actions .btn.navy:hover{background:#17365f;transform:none;box-shadow:none}
.customer-action-page{display:grid;gap:16px;background:#eef2f6;margin:-8px;padding:0 0 16px 0}
.customer-action-card{background:#fff;border:1px solid #edf0f5;padding:18px 22px}
.customer-action-card h2{font-size:22px;margin:0 0 14px;font-weight:800;color:#202936;border-bottom:1px solid #edf0f3;padding-bottom:12px;max-width:780px}
.customer-info-box{min-height:170px}
.action-info-table{width:760px;max-width:100%;border-collapse:collapse;font-size:14px;background:#fff}
.action-info-table th,.action-info-table td{border-bottom:1px solid #e6ebf1;padding:10px 8px;text-align:left;background:#fff;text-transform:none;letter-spacing:0;color:#1f2937}
.action-info-table th{width:130px;font-weight:800}
.action-form-card{min-height:470px;padding-top:28px}
.customer-action-form{width:820px;max-width:100%;display:grid;gap:12px;margin-top:8px}
.customer-action-form label{display:grid;grid-template-columns:190px minmax(0,1fr);align-items:center;gap:16px;margin:0;font-size:14px;color:#273444}
.customer-action-form label span{font-weight:500;color:#273444}
.customer-action-form input,.customer-action-form select,.customer-action-form textarea{height:34px;border:1px solid #c7d1df;background:#fff;color:#334155;border-radius:0;padding:6px 12px;font-size:14px;outline:none;box-shadow:inset 0 1px 2px rgba(15,23,42,.03)}
.customer-action-form textarea{height:52px;resize:vertical;padding-top:8px}
.customer-action-form input:focus,.customer-action-form select:focus,.customer-action-form textarea:focus{border-color:#8aa9d6;box-shadow:0 0 0 3px rgba(59,130,246,.12)}
.customer-action-form .money-input{text-align:right}
.customer-action-submit{display:flex;justify-content:flex-end;gap:10px;margin-top:4px;grid-column:1/-1}
.customer-action-submit .btn{border-radius:0;min-height:36px;padding:8px 14px;box-shadow:none}
.customer-action-submit .btn.navy{background:#1f3d6d;border-color:#18355f;color:#fff}
.action-error{border-color:#fecaca;color:#b91c1c;background:#fef2f2}
@media(max-width:900px){.customer-action-page{margin:0}.customer-action-card{padding:16px}.customer-action-form label{grid-template-columns:1fr;gap:6px}.customer-action-submit{justify-content:stretch}.customer-action-submit .btn{flex:1}}

/* V31 Cari Ekstre seçim/PDF akışı */
.statement-controls h2{margin:0 0 8px;font-size:22px;color:var(--text)}
.statement-controls .muted{margin:0 0 16px}
.statement-actions .btn{min-width:110px}
.statement-customer-combo input{min-width:260px}
@media(max-width:980px){.statement-actions .btn{width:100%}.statement-customer-combo input{min-width:0}}

/* V32 Cari Raporu formu */
.customer-report-page{display:grid;gap:18px}
.customer-report-form-card{max-width:none;min-height:330px;padding:38px 48px;background:#fff;border-radius:0;box-shadow:none;border:0}
.customer-report-form-card h2{font-size:26px;color:#60656f;margin:0 0 20px;padding-bottom:18px;border-bottom:1px solid #edf0f4;max-width:980px}
.customer-report-form{max-width:820px}
.customer-report-form .date-row{display:grid;grid-template-columns:320px 320px;gap:26px;margin-bottom:22px}
.customer-report-form label{font-size:14px;color:#374151;font-weight:500}
.customer-report-form input[type="date"]{display:block;width:100%;height:38px;margin-top:6px;border:1px solid #cbd5e1;background:#eef3f9;padding:7px 12px;color:#374151;box-shadow:0 8px 18px rgba(15,23,42,.08)}
.report-options{display:grid;gap:10px;margin:10px 0 28px 0}
.report-options label,.zero-check{display:flex!important;align-items:center;gap:6px;font-size:14px;color:#374151;font-weight:500}
.report-options input,.zero-check input{width:auto;margin:0}
.zero-check{margin:0 0 10px 0}
.report-button-row{display:flex;justify-content:center;max-width:620px;margin-top:8px}
.btn.report-orange{background:#e9822f;border-color:#d27225;border-radius:0;min-height:40px;padding:0 22px;box-shadow:none;font-weight:700}
.btn.report-orange:hover{background:#d9782a;transform:none;box-shadow:none}
.customer-report-result{border-radius:0;box-shadow:none;border:0;background:#fff;padding:26px 34px}
.report-print-head{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid #e5e7eb;padding-bottom:12px;margin-bottom:14px}
.report-print-head h2{margin:0 0 6px;font-size:24px;color:#111827}
.report-print-head p{margin:0;color:#6b7280}
.report-summary-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:14px;background:#f8fafc;border:1px solid #e5e7eb;margin-bottom:16px}
.customer-report-table th{background:#f1f5f9;color:#475569}
.report-status{display:inline-flex;padding:4px 9px;border-radius:6px;font-weight:700;font-size:12px}
.report-status.debit{background:#eaf7ef;color:#15803d}
.report-status.credit{background:#fff1f2;color:#be123c}
@media(max-width:900px){.customer-report-form-card{padding:24px 18px}.customer-report-form .date-row{grid-template-columns:1fr}.report-button-row{justify-content:stretch}.btn.report-orange{width:100%}.report-summary-row{grid-template-columns:1fr}}
@media print{.customer-report-form-card{display:none!important}.customer-report-result{padding:0}.report-summary-row{break-inside:avoid}}

/* V33 Rapor Tasarım Modülü */
.report-template-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:18px;background:linear-gradient(135deg,#ffffff,#f7fbff)}
.report-template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.report-template-card{display:flex;flex-direction:column;gap:14px;min-height:210px}
.report-template-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.report-template-card h3{font-size:18px;margin:0 0 6px}
.template-type-badge{font-size:10px;letter-spacing:.08em;text-transform:uppercase;background:#eef4fb;border:1px solid #dce8f5;border-radius:999px;padding:5px 8px;color:#1f3d6d;font-weight:800;white-space:nowrap}
.template-default-box{padding:12px;border:1px solid #e2e8f0;border-radius:14px;background:#fbfdff;line-height:1.55;min-height:72px}
.report-designer-layout{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(420px,.92fr);gap:18px;align-items:start}
.report-designer-form{display:grid;gap:16px}
.report-switches{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:12px;border:1px solid var(--line);border-radius:16px;background:var(--surface-2)}
.report-switches label{display:flex;gap:8px;align-items:center;font-size:13px;font-weight:700;color:var(--text)}
.report-placeholder-box{border:1px dashed #b7c7dc;background:#f8fbff;border-radius:16px;padding:14px;line-height:1.9;color:#334155}
.report-placeholder-box code{margin:2px;display:inline-block}
.report-designer-preview{position:sticky;top:18px;min-height:650px}
.report-preview-frame{width:100%;height:720px;border:1px solid var(--line);border-radius:16px;background:#fff}
.payment-badge{display:inline-flex;align-items:center;border-radius:6px;padding:4px 8px;font-size:12px;font-weight:800}.payment-badge.paid{background:#0a8f2a;color:#fff}.payment-badge.open{background:#f59e0b;color:#fff}
@media(max-width:1250px){.report-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-designer-layout{grid-template-columns:1fr}.report-designer-preview{position:static}.report-switches{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.report-template-hero{display:grid}.report-template-grid{grid-template-columns:1fr}.report-switches{grid-template-columns:1fr}.report-preview-frame{height:520px}}


/* V41 FastReport report designer editor */
.frx-editor-alert{border:1px solid #bfdbfe;background:linear-gradient(180deg,#eff6ff,#ffffff);color:#173153;border-radius:14px;padding:14px 16px;margin:12px 0 16px;line-height:1.45;box-shadow:0 8px 20px rgba(15,23,42,.05)}
.report-preview-frame{background:#e5e7eb}

/* V42 Satış/Alış Faturası form tasarımı */
.invoice-form-v42{display:grid;gap:18px}
.invoice-v42-header{display:grid;grid-template-columns:minmax(0,2fr) minmax(420px,1fr);gap:18px;align-items:stretch}
.invoice-v42-card{background:#fff;border:1px solid #dfe6ef;border-radius:0;padding:16px;box-shadow:0 8px 18px rgba(15,23,42,.04)}
.invoice-v42-card h2{font-size:20px;margin:0 0 14px;padding-bottom:12px;border-bottom:1px solid #e5eaf1;color:#334155}
.invoice-v42-grid{display:grid;gap:12px 18px}.invoice-v42-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-v42-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.invoice-v42-grid .full{grid-column:1/-1}
.invoice-form-v42 label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700;color:#26364d}
.invoice-form-v42 input,.invoice-form-v42 select,.invoice-form-v42 textarea{height:34px;border:1px solid #cbd6e3;background:#fff;border-radius:4px;padding:6px 10px;font-size:13px;color:#334155;box-shadow:0 6px 12px rgba(15,23,42,.05)}
.invoice-form-v42 textarea{height:auto;min-height:58px;resize:vertical}.invoice-form-v42 input[readonly],.invoice-form-v42 textarea[readonly]{background:#f4f7fb;color:#4b5563}
.invoice-v42-tabs{display:flex;gap:0;border-bottom:1px solid #d7e1ec;margin:-16px -16px 14px;padding-left:0}.invoice-v42-tabs span{padding:11px 14px;font-size:12px;color:#56708f;border-right:1px solid transparent}.invoice-v42-tabs span.active{background:#fff;border-right:1px solid #d7e1ec;border-bottom:2px solid #fff;color:#173a68;font-weight:800}.invoice-v42-grid.compact{gap:10px 12px}.invoice-v42-spacer{height:118px}.input-with-plus{display:flex}.input-with-plus input{flex:1;border-top-right-radius:0;border-bottom-right-radius:0}.input-with-plus span{width:34px;background:#fff;border:1px solid #cbd6e3;border-left:0;display:flex;align-items:center;justify-content:center;font-weight:900}
.invoice-v42-product-card{background:#fff;border:1px solid #dfe6ef;border-radius:0;padding:0 0 14px;box-shadow:0 8px 18px rgba(15,23,42,.04)}.barcode-row{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:18px;border-bottom:1px solid #dfe6ef}.barcode-row input{border:0;border-right:1px solid #dfe6ef;height:38px;padding:8px 10px;box-shadow:none}.barcode-row .btn{border-radius:0;height:38px}.invoice-v42-product-grid{display:grid;grid-template-columns:1.25fr .75fr .75fr 1fr .7fr 1fr .8fr .8fr .8fr 1fr 1fr 1fr;gap:8px;padding:12px 12px 0}.invoice-v42-product-grid input,.invoice-v42-product-grid select{height:30px;box-shadow:none}.product-actions{display:grid;grid-template-columns:270px minmax(250px,1fr) 270px;gap:18px;align-items:end;padding:12px}.product-actions .btn{height:36px;border-radius:4px}.product-actions label{font-size:11px}
.invoice-v42-lines{background:#fff;border:1px solid #dfe6ef}.invoice-v42-lines table{border-collapse:collapse}.invoice-v42-lines th{background:#fff;color:#111827;text-transform:none;font-size:12px;border-bottom:1px solid #dfe6ef}.invoice-v42-lines td{border-bottom:1px solid #edf1f5;padding:8px}.invoice-v42-lines input{height:30px;box-shadow:none}.invoice-v42-footer{display:grid;grid-template-columns:minmax(360px,.95fr) minmax(0,1.9fr);gap:18px}.totals-card{padding:0}.mini-tabs{display:flex;border-bottom:1px solid #dfe6ef}.mini-tabs span{padding:10px 14px;font-size:12px;color:#50657e}.mini-tabs .active{background:#fff;color:#173a68;border-right:1px solid #dfe6ef}.totals-card table{width:100%;border-collapse:collapse}.totals-card th,.totals-card td{padding:10px 12px;border-bottom:1px solid #edf1f5;text-transform:none;font-size:13px}.totals-card th{background:#fff;color:#111827}.totals-card td{text-align:right;font-weight:800}.totals-card select{height:30px;box-shadow:none}.totals-card .grand th,.totals-card .grand td{font-weight:900;color:#111827}.note-card{display:grid;gap:14px}.payment-row{align-items:end}.save-row{display:flex;justify-content:flex-end}.btn.navy{--btn-bg-1:#1f3d6d;--btn-bg-2:#17345e;--btn-border:#17345e;color:#fff}.error-card{color:#b91c1c;border-color:#fecaca;background:#fef2f2}
@media(max-width:1300px){.invoice-v42-header,.invoice-v42-footer{grid-template-columns:1fr}.invoice-v42-spacer{height:20px}.invoice-v42-product-grid{grid-template-columns:repeat(4,1fr)}.product-actions{grid-template-columns:1fr}}
@media(max-width:760px){.invoice-v42-grid.two,.invoice-v42-grid.four{grid-template-columns:1fr}.invoice-v42-product-grid{grid-template-columns:1fr}.barcode-row{grid-template-columns:1fr}.invoice-v42-card{padding:12px}.invoice-v42-tabs{margin:-12px -12px 12px;overflow:auto}.invoice-v42-tabs span{white-space:nowrap}.table-wrap table{min-width:900px}}

/* V44 Fatura No + butonu */
.input-with-plus{display:flex;align-items:stretch;width:100%}
.input-with-plus input{flex:1;border-top-right-radius:0!important;border-bottom-right-radius:0!important}
.input-with-plus .plus-btn{width:42px;border:1px solid #173a68;background:#173a68;color:#fff;font-weight:900;cursor:pointer;border-radius:0 10px 10px 0;line-height:1;font-size:18px;box-shadow:none}
.input-with-plus .plus-btn:hover{background:#1f4f88}

/* V47 Dönem / Devir modülü */
.period-top-btn{white-space:nowrap;font-weight:800}
.period-status{font-size:11px;color:var(--muted);font-weight:700;margin-left:4px}
.period-select-wrap{max-width:980px;margin:0 auto}
.period-select-card{padding:28px}
.period-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px}
.period-option{display:flex;flex-direction:column;gap:7px;border:1px solid var(--line);background:var(--surface-2);border-radius:18px;padding:18px;cursor:pointer;transition:.16s ease;position:relative;min-height:130px}
.period-option input{position:absolute;right:14px;top:14px;transform:scale(1.15)}
.period-option:hover{transform:translateY(-1px);border-color:#93c5fd;box-shadow:0 12px 28px rgba(15,23,42,.08)}
.period-option.active{background:#eff6ff;border-color:#2563eb;box-shadow:0 12px 28px rgba(37,99,235,.12)}
.period-year{font-size:28px;font-weight:900;color:var(--text)}
.period-dates{font-size:13px;color:var(--muted)}
.period-mini{display:inline-flex;width:max-content;border-radius:999px;padding:5px 9px;background:#fff;color:#334155;font-size:12px;font-weight:800;border:1px solid var(--line)}
.success-card{border-color:#bbf7d0;background:#f0fdf4;color:#166534}.error-card{border-color:#fecaca;background:#fef2f2;color:#991b1b}
@media(max-width:900px){.period-card-grid{grid-template-columns:1fr}.period-top-btn{width:100%}}


/* V53 Görsel Rapor Tasarım Editörü */
.designer-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:18px;align-items:start}
.designer-side{position:sticky;top:18px;max-height:calc(100vh - 36px);overflow:auto}
.designer-list{display:grid;gap:8px;margin:10px 0}
.designer-item{display:block;text-decoration:none;color:var(--text);padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}
.designer-item.active{border-color:#2563eb;background:#eff6ff;color:#1e3a8a}
.designer-item span{font-size:12px;color:var(--muted)}
.designer-editor-grid{display:grid;grid-template-columns:520px minmax(0,1fr);gap:18px;align-items:start}
.designer-block-edit{border:1px solid var(--line);border-radius:14px;background:var(--surface-2);padding:12px;margin-bottom:12px}
.designer-block-edit summary{cursor:pointer;font-weight:800;margin-bottom:10px}
.designer-block-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:10px}
.designer-block-grid label{font-size:12px;font-weight:700;color:var(--text);display:flex;flex-direction:column;gap:5px}
.designer-block-grid input,.designer-block-grid select,.designer-block-grid textarea{border:1px solid var(--line);border-radius:10px;padding:9px;background:var(--field);color:var(--text)}
.designer-block-grid .full{grid-column:1/-1}
.designer-preview-wrap{position:sticky;top:18px;background:#cbd5e1;border-radius:18px;padding:14px;overflow:auto;max-height:calc(100vh - 36px)}
.designer-preview-frame{width:850px;height:1180px;border:0;background:#fff;border-radius:8px;transform-origin:top left;box-shadow:0 14px 40px rgba(15,23,42,.15)}
@media(max-width:1400px){.designer-layout{grid-template-columns:1fr}.designer-side,.designer-preview-wrap{position:static}.designer-editor-grid{grid-template-columns:1fr}.designer-preview-frame{width:100%;height:900px}}
@media(max-width:760px){.designer-block-grid{grid-template-columns:1fr}.designer-preview-frame{height:720px}}

/* V54 Sürükle-Bırak Rapor Tasarım Editörü */
.v54-editor{display:grid;gap:18px}
.v54-toolbar{display:flex;justify-content:space-between;gap:18px;align-items:center}
.v54-toolbar h2{margin-bottom:6px}.v54-add-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.v54-add-form select{height:42px;border:1px solid var(--line);border-radius:10px;background:var(--field);color:var(--text);padding:0 12px}
.v54-designer-form{display:block}.v54-workspace{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px;align-items:start}
.v54-canvas-wrap{position:sticky;top:18px;background:#cbd5e1;border-radius:18px;padding:34px 22px 22px 42px;overflow:auto;max-height:calc(100vh - 36px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.35)}
.v54-page{position:relative;width:794px;height:1123px;background:#fff;box-shadow:0 18px 50px rgba(15,23,42,.22);border-radius:4px;overflow:hidden;background-image:linear-gradient(rgba(15,23,42,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(15,23,42,.035) 1px,transparent 1px);background-size:10px 10px}
.v54-page-ruler{position:absolute;background:rgba(15,23,42,.08);border-radius:10px}.v54-page-ruler.top{left:42px;right:22px;top:12px;height:10px}.v54-page-ruler.left{left:14px;top:34px;bottom:22px;width:10px}
.v54-block{position:absolute;box-sizing:border-box;cursor:move;overflow:hidden;min-width:20px;min-height:12px;outline:1px solid transparent;transition:outline-color .12s ease, box-shadow .12s ease}
.v54-block:hover{outline-color:#60a5fa}.v54-block.selected{outline:2px solid #2563eb!important;box-shadow:0 0 0 4px rgba(37,99,235,.14)}
.v54-block-title{position:absolute;left:0;top:0;right:0;height:20px;background:rgba(37,99,235,.9);color:#fff;font-size:10px;line-height:20px;padding:0 6px;opacity:0;transition:.12s;z-index:2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v54-block-title span{opacity:.75;margin-left:5px}.v54-block:hover .v54-block-title,.v54-block.selected .v54-block-title{opacity:1}
.v54-block-body{width:100%;height:100%;overflow:hidden}.v54-block-body table{width:100%;border-collapse:collapse;font-size:inherit}.v54-block-body th,.v54-block-body td{border:1px solid #d1d5db;padding:3px;text-transform:none;background:transparent;color:inherit;font-size:inherit}
.v54-logo-placeholder{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border:1px dashed #94a3b8;color:#64748b;font-weight:900;background:#f8fafc}.v54-line{border-top:2px solid currentColor;width:100%;height:1px;margin-top:50%}
.v54-resize{position:absolute;width:12px;height:12px;right:0;bottom:0;background:#2563eb;border:2px solid #fff;border-radius:50%;cursor:nwse-resize;z-index:3;box-shadow:0 2px 6px rgba(15,23,42,.25)}
.v54-inspector{position:sticky;top:18px;max-height:calc(100vh - 36px);overflow:auto}.v54-panel-title{font-weight:900;margin-bottom:12px;padding:10px 12px;border-radius:12px;background:#eff6ff;color:#1e3a8a}.v54-panel-title span{display:block;color:#64748b;font-weight:700;font-size:12px;margin-top:3px}
.v54-panel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}.v54-panel-grid label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:800;color:var(--text)}.v54-panel-grid input,.v54-panel-grid select,.v54-panel-grid textarea{border:1px solid var(--line);border-radius:10px;background:var(--field);color:var(--text);padding:9px;font-size:13px}.v54-panel-grid .full{grid-column:1/-1}
@media(max-width:1400px){.v54-workspace{grid-template-columns:1fr}.v54-canvas-wrap,.v54-inspector{position:static;max-height:none}.v54-canvas-wrap{overflow:auto}.v54-page{transform-origin:top left}}
@media(max-width:900px){.v54-toolbar{display:grid}.v54-workspace{display:grid}.v54-page{width:794px;height:1123px}.v54-canvas-wrap{padding:30px 14px 14px 34px}.v54-panel-grid{grid-template-columns:1fr}}

/* V55 Rapor Tasarım Editörü profesyonel hizalama araçları */
.v55-page{position:relative}
.v55-guide{position:absolute;display:none;z-index:9999;pointer-events:none;background:#ef4444;box-shadow:0 0 0 1px rgba(239,68,68,.15)}
.v55-guide-v{top:0;bottom:0;width:1px}
.v55-guide-h{left:0;right:0;height:1px}
.v54-block.selected{outline:2px solid #2563eb!important;outline-offset:2px;box-shadow:0 0 0 4px rgba(37,99,235,.12),0 10px 22px rgba(15,23,42,.12)}
.v54-block{transition:box-shadow .12s ease, outline .12s ease}
.v54-block-title{background:rgba(15,23,42,.72);color:#fff;border-radius:6px;padding:3px 7px;font-size:11px;line-height:1;display:inline-flex;gap:6px;align-items:center;margin:-2px 0 4px -2px}
.v54-block-title span{opacity:.7;font-weight:400}
.v54-resize{position:absolute;right:-5px;bottom:-5px;width:12px;height:12px;border-radius:50%;background:#2563eb;border:2px solid #fff;box-shadow:0 2px 6px rgba(15,23,42,.25);cursor:nwse-resize}
.v54-toolbar{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}
.v54-toolbar h2{margin-bottom:6px}.v54-toolbar p{margin:0;max-width:680px}
.v54-add-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.v54-add-form select{height:42px;border:1px solid var(--line);border-radius:10px;background:var(--field);color:var(--text);padding:0 12px}
.v54-inspector .btn.secondary{background:#f8fafc;color:#334155;border:1px solid #d6deea}
.v54-inspector .btn.danger{background:linear-gradient(180deg,#ef4444,#dc2626);border-color:#b91c1c}
.v54-panel-title{padding:10px 12px;background:#f8fafc;border:1px solid var(--line);border-radius:12px;margin-bottom:12px;font-weight:800}
.v54-panel-title span{display:block;font-size:12px;color:var(--muted);font-weight:600;margin-top:3px}
.v54-panel-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.v54-panel-grid label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:var(--text)}
.v54-panel-grid input,.v54-panel-grid select,.v54-panel-grid textarea{border:1px solid var(--line);border-radius:10px;background:var(--field);color:var(--text);padding:9px 10px;font-size:13px}
.v54-panel-grid .full{grid-column:1/-1}
@media(max-width:1100px){.v54-toolbar{display:block}.v54-add-form{justify-content:flex-start;margin-top:12px}.v54-panel-grid{grid-template-columns:1fr}}


/* V59 Güvenlik merkezi */
.perm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0 12px}
.check-row{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;padding:9px 10px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);font-size:13px!important}
.check-row input{width:auto!important;box-shadow:none!important}
.badge.success{background:#dcfce7;color:#166534}
@media(max-width:760px){.perm-grid{grid-template-columns:1fr}}

/* V66-V70 yönetim ekranları */
.perm-sections{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:14px}
.perm-section{border:1px solid var(--line);border-radius:14px;padding:14px;background:var(--surface-2)}
.perm-section h3{margin:0 0 10px;font-size:15px}
.check-row{display:flex!important;align-items:center;gap:8px;margin:8px 0;font-weight:600!important}
.check-row input{width:auto!important}
.text-success{color:#059669}.text-danger{color:#dc2626}
@media(max-width:1000px){.perm-sections{grid-template-columns:1fr}}

/* V75: daha derli toplu sol menü */
.sidebar{padding:20px 14px}.brand-wrap{margin-bottom:16px}.nav-compact{margin:10px 0;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.025);overflow:hidden}.nav-compact summary{list-style:none;cursor:pointer;user-select:none;display:flex;align-items:center;justify-content:space-between;margin:0!important;padding:11px 12px!important;color:#b8c6dd!important;background:rgba(255,255,255,.035);font-size:11px!important;letter-spacing:.11em;text-transform:uppercase;font-weight:800}.nav-compact summary::-webkit-details-marker{display:none}.nav-compact summary:after{content:'›';font-size:18px;line-height:1;transition:transform .18s ease;color:#8ea3c4}.nav-compact[open] summary:after{transform:rotate(90deg)}.nav-compact .nav-items{padding:6px}.nav-compact .nav-items a{margin:3px 0;padding:10px 11px;border-radius:10px;font-size:13px;font-weight:600;color:#dbe7ff}.nav-compact .nav-items a:hover{background:rgba(255,255,255,.09);transform:none}.nav-compact .nav-items a.active{background:linear-gradient(135deg,rgba(59,130,246,.35),rgba(29,78,216,.25));color:#fff;border:1px solid rgba(147,197,253,.22)}
@media(max-width:760px){.nav-compact .nav-items a{font-size:14px;padding:11px 12px}}


/* V76 Sistem Sağlık Kontrolü + Güncelleme Merkezi */
.health-badge{display:inline-flex;align-items:center;justify-content:center;min-width:76px;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:800;letter-spacing:.03em}
.health-badge.ok{background:#dcfce7;color:#166534;border:1px solid #bbf7d0}
.health-badge.warn{background:#fff7ed;color:#c2410c;border:1px solid #fed7aa}
.health-badge.fail{background:#fee2e2;color:#b91c1c;border:1px solid #fecaca}
.system-health-table td{vertical-align:middle}
.notice-ok{border-color:#bbf7d0;background:#f0fdf4;color:#14532d}
.notice-fail{border-color:#fecaca;background:#fef2f2;color:#991b1b}
.notice-ok pre,.notice-fail pre{white-space:pre-wrap;margin:0;font-family:inherit}

/* V77-V82 yönetim kartları */
.notification-card{border-left:5px solid #94a3b8}.notif-warning{border-left-color:#f59e0b}.notif-danger{border-left-color:#ef4444}.notif-info{border-left-color:#0ea5e9}.notif-success{border-left-color:#22c55e}
.health-ok{color:#059669;font-weight:800}.health-warn{color:#d97706;font-weight:800}.health-bad{color:#dc2626;font-weight:800}

/* V83 düzenli sol menü */
.sidebar{padding:18px 14px;background:linear-gradient(180deg,#0b1220 0%,#111c32 100%)}
.brand-wrap{margin-bottom:14px;padding:8px 8px 14px}.brand-badge{width:40px;height:40px;border-radius:12px}.brand{font-size:18px}.brand-subtitle{font-size:11px}
.nav-compact{margin:8px 0;border:1px solid rgba(255,255,255,.06);border-radius:14px;background:rgba(255,255,255,.025);overflow:hidden}
.nav-compact[open]{background:rgba(255,255,255,.045);border-color:rgba(255,255,255,.10)}
.nav-compact summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:12px 12px!important;margin:0!important;color:#cfe0ff!important;font-size:12px!important;font-weight:800!important;letter-spacing:.08em;text-transform:uppercase;border-radius:0!important}
.nav-compact summary::-webkit-details-marker{display:none}
.nav-compact summary:after{content:'›';font-size:18px;line-height:1;color:#8ca5cf;transition:transform .16s ease}
.nav-compact[open] summary:after{transform:rotate(90deg)}
.nav-items{padding:0 7px 8px}.sidebar .nav-items a{margin:3px 0;padding:9px 10px;border-radius:10px;font-size:13px;font-weight:600;color:#d9e6ff;gap:8px}.sidebar .nav-items a:hover{background:rgba(96,165,250,.14);transform:none;color:#fff}.sidebar .nav-items a.active{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;box-shadow:0 8px 20px rgba(37,99,235,.22)}
.sidebar .nav-items a.active:before{content:'•';font-size:18px;line-height:0}.sidebar::-webkit-scrollbar{width:8px}.sidebar::-webkit-scrollbar-thumb{background:rgba(255,255,255,.14);border-radius:999px}.sidebar::-webkit-scrollbar-track{background:transparent}
@media(max-width:980px){.sidebar{padding:14px 12px}.nav-compact summary{padding:13px 12px!important}.sidebar .nav-items a{padding:11px 10px}}

/* V84 modern aramalı açılır liste */
.smart-select-holder{position:relative;display:block;width:100%}
.smart-select-input{padding-right:36px!important;background-image:linear-gradient(45deg,transparent 50%,#64748b 50%),linear-gradient(135deg,#64748b 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 12px) 50%;background-size:6px 6px,6px 6px;background-repeat:no-repeat}
.smart-select-dropdown{display:none;position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:99999;background:var(--surface,#fff);border:1px solid #d6e0ea;border-radius:14px;box-shadow:0 18px 40px rgba(15,23,42,.18);max-height:280px;overflow:auto;padding:6px}
.smart-select-dropdown.open{display:block}
.smart-select-item{display:block;width:100%;text-align:left;border:0;background:transparent;color:var(--text,#111827);padding:10px 12px;border-radius:10px;cursor:pointer;font-size:14px;line-height:1.25}
.smart-select-item:hover,.smart-select-item:focus{background:#eef4ff;color:#1e3a8a;outline:none}
.smart-select-empty,.smart-select-more{padding:10px 12px;color:var(--muted,#64748b);font-size:12px}
.smart-select-more{border-top:1px solid #eef2f7;margin-top:4px}
:root[data-theme="dark"] .smart-select-dropdown{background:#111827;border-color:#374151;box-shadow:0 18px 40px rgba(0,0,0,.35)}
:root[data-theme="dark"] .smart-select-item:hover{background:#1e293b;color:#bfdbfe}

/* V86 kullanıcı grupları / yetki kutuları */
.permission-box{border:1px solid var(--line);border-radius:16px;background:var(--surface-2);padding:14px;margin-top:4px}
.permission-section{border:1px solid var(--line);border-radius:16px;padding:14px;margin:12px 0;background:var(--surface)}
.check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;margin:10px 0}
.check-row{display:flex!important;align-items:center;gap:8px;font-weight:600!important;flex-direction:row!important}
.check-row input[type="checkbox"]{width:16px;height:16px;padding:0;flex:0 0 auto}
@media(max-width:760px){.check-grid{grid-template-columns:1fr}}


/* V87 Yetki Ayarları sekmeli düzen */
.permission-settings-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.permission-tabs{display:inline-flex;gap:6px;background:var(--surface-2);border:1px solid var(--line);border-radius:14px;padding:6px}
.permission-tabs a{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:10px;text-decoration:none;color:var(--muted);font-weight:800}
.permission-tabs a.active{background:var(--surface);color:var(--primary);box-shadow:0 8px 18px rgba(15,23,42,.08)}
.permission-section{border:1px solid var(--line);border-radius:16px;padding:14px;margin-top:14px;background:var(--surface)}
.permission-section h3{margin:0 0 10px;color:var(--text)}
.check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 14px}
.check-row{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;font-weight:700!important;color:var(--text)!important}
.check-row input{width:auto!important}
@media(max-width:900px){.check-grid{grid-template-columns:1fr}.permission-tabs{width:100%;display:flex}.permission-tabs a{flex:1}}

/* V89 Satış faturası hizalama ve prim raporu düzeltmeleri */
.invoice-form-v42{display:grid;gap:18px;max-width:100%}
.invoice-v42-header{display:grid;grid-template-columns:minmax(520px,1.45fr) minmax(430px,.95fr);gap:18px;align-items:start}
.invoice-v42-card,.invoice-v42-product-card,.invoice-v42-lines{min-width:0}
.invoice-v42-grid{align-items:end}
.invoice-v42-grid label,.invoice-v42-product-grid label{min-width:0}
.invoice-v42-grid input,.invoice-v42-grid select,.invoice-v42-grid textarea,
.invoice-v42-product-grid input,.invoice-v42-product-grid select{width:100%;max-width:100%}
.invoice-v42-spacer{height:24px}
.invoice-v42-product-grid{grid-template-columns:minmax(260px,2fr) 86px 86px 110px 76px 110px 110px 92px 82px 110px 110px 120px;align-items:end;overflow-x:auto}
.invoice-v42-product-grid label{font-size:11px}
.invoice-v42-lines.table-wrap{overflow-x:auto;overflow-y:visible}
.invoice-v42-lines table{min-width:980px;table-layout:auto}
.invoice-v42-lines th,.invoice-v42-lines td{white-space:nowrap}
.invoice-v42-lines td:first-child{white-space:normal;min-width:260px}
.invoice-v42-lines input[type="number"]{width:92px;min-width:78px}
.invoice-v42-lines .btn.small{min-width:54px}
.invoice-v42-footer{display:grid;grid-template-columns:minmax(320px,.8fr) minmax(520px,1.4fr);gap:18px;align-items:start}
.input-with-plus .plus-btn{width:42px;min-width:42px;border:1px solid #cbd6e3;border-left:0;background:#eef4fb;color:#173a68;font-weight:900;cursor:pointer}
.input-with-plus .plus-btn:hover{background:#dbeafe}
.inline-check{display:flex!important;align-items:center;gap:8px;font-weight:700;flex-direction:row!important}
.inline-check input{width:auto!important}
.badge.success-lite{background:#dcfce7;color:#166534}
.badge.muted-lite{background:#f1f5f9;color:#64748b}
.commission-table th,.commission-table td{font-size:13px}
@media(max-width:1500px){.invoice-v42-header,.invoice-v42-footer{grid-template-columns:1fr}.invoice-v42-product-grid{grid-template-columns:repeat(6,minmax(120px,1fr))}.invoice-v42-product-grid label:first-child{grid-column:span 2}.invoice-v42-spacer{height:8px}}
@media(max-width:900px){.invoice-v42-header,.invoice-v42-footer{grid-template-columns:1fr}.invoice-v42-grid.two,.invoice-v42-grid.four{grid-template-columns:1fr}.invoice-v42-product-grid{grid-template-columns:1fr;overflow:visible}.invoice-v42-lines table{min-width:1050px}.barcode-row{grid-template-columns:1fr}.product-actions{grid-template-columns:1fr}.invoice-v42-card{padding:12px}}

/* V91 Dropdown / smart select görünürlük düzeltmesi */
.invoice-form-v42,
.invoice-v42-header,
.invoice-v42-card,
.invoice-v42-product-card,
.invoice-v42-footer,
.note-card,
.customer-card,
.info-card,
.card:has(.smart-select-holder){overflow:visible!important;}
.smart-select-holder{position:relative!important;z-index:1000;}
.smart-select-holder:focus-within{z-index:999999!important;}
.smart-select-dropdown{z-index:999999!important;position:absolute!important;max-height:320px!important;}
.invoice-v42-product-card .smart-select-dropdown,
.invoice-v42-header .smart-select-dropdown{z-index:1000000!important;}
.table-wrap{position:relative;z-index:1;}
.invoice-v42-product-card{position:relative;z-index:30;}
.invoice-v42-header{position:relative;z-index:20;}
.invoice-v42-lines{position:relative;z-index:5;}

/* V92 Kasa / Banka profesyonel modül */
.grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.badge.danger{background:#fef2f2;color:#b91c1c}
.cash-bank-actions{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:1100px){.grid4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.grid4{grid-template-columns:1fr}.section-head{align-items:flex-start;flex-direction:column}.section-head .actions{width:100%}.section-head .actions .btn{width:100%}}


/* V102 Fatura detay ekranı */
.invoice-detail-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}
.invoice-detail-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;align-items:center}
.invoice-detail-actions form{display:inline-flex;margin:0}
.invoice-detail-actions .btn{min-height:38px;padding:9px 13px}
.invoice-detail-grid .card,.invoice-detail-bottom .card{min-width:0}
.invoice-detail-page table th{white-space:nowrap}
@media(max-width:980px){.invoice-detail-hero{flex-direction:column}.invoice-detail-actions{justify-content:flex-start}.invoice-detail-actions .btn,.invoice-detail-actions form{width:100%}.invoice-detail-actions form .btn{width:100%}.invoice-detail-grid,.invoice-detail-bottom{grid-template-columns:1fr!important}}

/* V103 Satış Faturası Toplu İskonto */
.v103-discount-card .mini-tabs{
  display:flex;
  border-bottom:1px solid #d9e2ef;
  margin:-14px -14px 14px -14px;
  background:#fff;
}
.v103-tab{
  appearance:none;
  border:0;
  border-right:1px solid #d9e2ef;
  background:#fff;
  padding:13px 18px;
  font-weight:700;
  color:#27405f;
  cursor:pointer;
}
.v103-tab.active{
  background:#f8fafc;
  color:#0f2d55;
  box-shadow:inset 0 -3px 0 #1f3d6d;
}
.v103-tab-panel{display:none;}
.v103-tab-panel.active{display:block;}
.v103-bulk-row{
  display:grid;
  grid-template-columns:1fr 180px;
  gap:16px;
  align-items:end;
  padding:8px 0 14px;
}
.v103-bulk-row label{font-weight:700;color:#344054;}
.v103-bulk-row select,.v103-bulk-row input{
  width:100%;
  min-height:42px;
  border:1px solid #cfd9e6;
  border-radius:8px;
  padding:8px 12px;
  background:#fff;
  font-weight:700;
}
.v103-discount-help{
  font-size:12px;
  color:#64748b;
  background:#f8fafc;
  border:1px dashed #d8e2ee;
  border-radius:8px;
  padding:10px;
  margin-bottom:12px;
}
.v103-grand-preview{
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid #e5eaf2;
  padding-top:13px;
  font-weight:900;
  color:#111827;
}
.v103-grand-preview strong{font-size:18px;}
@media(max-width:760px){.v103-bulk-row{grid-template-columns:1fr}.v103-tab{padding:11px 13px;font-size:13px}}


/* V106 Satış faturası: ödeme Nakit varsayılan + tutar/iskonto tasarım düzeltmesi */
.invoice-v42-footer{
  align-items:start;
}
.invoice-v42-footer .totals-card,
.invoice-v42-footer .note-card{
  overflow:visible!important;
}
.v103-discount-card{
  padding:0!important;
  border:1px solid #dce5ef;
  border-radius:10px;
  background:#fff;
  overflow:hidden!important;
}
.v103-discount-card .mini-tabs{
  display:flex;
  align-items:stretch;
  border-bottom:1px solid #d9e2ef;
  margin:0!important;
  background:#f8fafc;
  min-height:50px;
}
.v103-discount-card .v103-tab{
  min-width:118px;
  padding:14px 18px;
  border:0;
  border-right:1px solid #d9e2ef;
  border-bottom:1px solid transparent;
  background:#fff;
  color:#18345b;
  font-size:15px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
  box-shadow:none!important;
}
.v103-discount-card .v103-tab.active{
  background:#fff;
  color:#0f2d55;
  border-bottom:2px solid #fff;
  box-shadow:inset 0 3px 0 #1f3d6d!important;
}
.v103-tab-panel{
  display:none;
  padding:16px 14px 14px;
  min-height:132px;
}
.v103-tab-panel.active{display:block;}
#totalsPanel table{
  width:100%;
  border-collapse:collapse;
  margin:0;
}
#totalsPanel th,
#totalsPanel td{
  padding:9px 10px;
  border-bottom:1px solid #edf2f7;
  font-size:14px;
}
#totalsPanel th{text-align:left;color:#172033;font-weight:800;}
#totalsPanel td{text-align:right;font-weight:800;color:#111827;}
#totalsPanel tr.grand th,
#totalsPanel tr.grand td{
  border-bottom:0;
  padding-top:14px;
  font-size:16px;
  font-weight:900;
}
.v103-bulk-row{
  display:grid!important;
  grid-template-columns:minmax(260px,1fr) minmax(150px,220px)!important;
  gap:18px!important;
  align-items:end!important;
  padding:0 0 18px!important;
}
.v103-bulk-row label{
  display:flex;
  flex-direction:column;
  gap:7px;
  margin:0;
  font-weight:800!important;
  color:#344054!important;
}
.v103-bulk-row select,
.v103-bulk-row input{
  width:100%!important;
  min-height:44px!important;
  height:44px!important;
  border:1px solid #cbd6e3!important;
  border-radius:8px!important;
  padding:9px 12px!important;
  background:#fff!important;
  color:#1f2937!important;
  font-weight:800!important;
  box-sizing:border-box!important;
  box-shadow:0 4px 10px rgba(15,23,42,.04)!important;
}
.v103-discount-help{
  display:none!important;
}
.v103-grand-preview{
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  border-top:1px solid #e5eaf2!important;
  padding:14px 0 0!important;
  margin:0!important;
  font-weight:900!important;
  color:#111827!important;
}
.v103-grand-preview span{font-size:15px;}
.v103-grand-preview strong{font-size:18px;}
.invoice-v42-grid.payment-row{
  align-items:end!important;
}
.invoice-v42-grid.payment-row label{
  min-width:0;
}
#paidAmount[readonly],
#paidAmount{
  text-align:right;
  font-weight:800;
}
@media(max-width:1200px){
  .invoice-v42-footer{grid-template-columns:1fr!important;}
}
@media(max-width:760px){
  .v103-discount-card .mini-tabs{overflow-x:auto;}
  .v103-discount-card .v103-tab{min-width:auto;white-space:nowrap;font-size:14px;padding:13px 15px;}
  .v103-bulk-row{grid-template-columns:1fr!important;gap:12px!important;}
  .v103-tab-panel{padding:14px 12px;}
}


/* V107 Profesyonel İrsaliye Modülü */
.delivery-form-v107 .checkline{display:flex!important;flex-direction:row!important;align-items:center;gap:9px;font-weight:700;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:11px 12px}
.delivery-form-v107 .checkline input{width:auto!important;margin:0}
.delivery-items-table input{width:100%;min-width:90px}
.delivery-detail-page .invoice-detail-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.delivery-detail-page .invoice-box{border:1px solid var(--line);background:var(--surface-2);border-radius:14px;padding:14px;line-height:1.55}
@media(max-width:760px){.delivery-form-v107 .invoice-v42-header{grid-template-columns:1fr}.delivery-form-v107 .invoice-v42-product-grid{grid-template-columns:1fr}.delivery-detail-page .grid2{grid-template-columns:1fr}}

/* V108 Belge numarası + butonları */
.doc-no-field,
.input-with-plus.doc-no-field{
  display:flex;
  align-items:stretch;
  width:100%;
  gap:0;
}
.doc-no-field input{
  border-top-right-radius:0!important;
  border-bottom-right-radius:0!important;
  flex:1;
  min-width:0;
}
.doc-no-field .plus-btn{
  min-width:42px;
  padding:0 12px;
  border:1px solid var(--line, #d6deea);
  border-left:0;
  border-radius:0 12px 12px 0;
  background:linear-gradient(180deg,#1f4f88 0%,#173a68 100%);
  color:#fff;
  font-weight:900;
  font-size:18px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 6px 14px rgba(23,58,104,.12);
}
.doc-no-field .plus-btn:hover{filter:brightness(1.05)}
.doc-no-field .plus-btn:disabled{opacity:.65;cursor:wait}
@media(max-width:760px){.doc-no-field .plus-btn{min-width:46px}}

/* V109 Müşteriden iade son satış fiyatı bilgisi */
.customer-return-v109 .return-product-grid-v109{align-items:end}
.return-last-price-info{margin-top:10px;padding:10px 12px;border-radius:12px;border:1px dashed #cbd5e1;background:#f8fafc;color:#475569;font-size:13px;font-weight:600}
.return-last-price-info.ok{border-color:#86efac;background:#f0fdf4;color:#166534}
.return-last-price-info.warn{border-color:#fed7aa;background:#fff7ed;color:#9a3412}
.return-last-price-info.loading{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}
.return-total-box{display:flex;gap:22px;justify-content:flex-end;align-items:center;flex-wrap:wrap;font-size:15px}
.small-text{font-size:12px}
@media(max-width:760px){.return-total-box{justify-content:flex-start;gap:10px}.customer-return-v109 .table-wrap table{min-width:900px}}

/* V111 Liste satır sayısı ve sayfalama */
.list-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 12px 0;padding:10px 12px;background:#f8fafc;border:1px solid #e5eaf2;border-radius:12px}
.list-count{font-size:13px;color:#536273}
.per-page-form{display:flex;align-items:center;gap:8px;margin:0}
.per-page-form label{display:flex;align-items:center;gap:8px;font-size:13px;color:#334155;font-weight:700;margin:0}
.per-page-form select{height:34px;min-width:82px;border:1px solid #cbd5e1;border-radius:9px;padding:4px 8px;background:#fff;color:#334155}
.pagination{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.page-link,.page-dots{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;padding:0 9px;border-radius:8px;border:1px solid #d7e0ea;background:#fff;color:#334155;text-decoration:none;font-size:13px;font-weight:700}
.page-link:hover{background:#eef4ff;color:#1f3d6d;text-decoration:none}
.page-link.active{background:#1f3d6d;border-color:#1f3d6d;color:#fff}
.page-link.disabled{opacity:.45;pointer-events:none}
.page-dots{border:none;background:transparent;min-width:20px;padding:0;color:#94a3b8}
@media(max-width:760px){.list-controls{align-items:stretch;flex-direction:column}.pagination{overflow:auto;flex-wrap:nowrap;padding-bottom:2px}.page-link{flex:0 0 auto}}


/* V112 Cari kod + butonu */
.doc-no-input-group{display:flex;align-items:stretch;gap:6px;width:100%}
.doc-no-input-group input{flex:1;min-width:0}
.doc-no-input-group .doc-no-plus{min-width:42px;padding:0 12px;font-size:18px;font-weight:800;line-height:1}

/* V122 Kasa ve Banka Ayrı Profesyonel Modül */
.v122-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px;align-items:start;margin-bottom:18px}
.v122-side-actions{display:flex;flex-direction:column;gap:8px}.v122-side-actions .btn{width:100%;text-align:center;justify-content:center}
.info-table{width:100%;border-collapse:collapse}.info-table th,.info-table td{padding:10px 12px;border-bottom:1px solid #e5e7eb;text-align:left}.info-table th{width:190px;color:#0f172a;font-weight:700;background:#fafafa}
.summary-line{padding:12px 0;color:#0f172a}.v122-form-card{max-width:980px}.filter-row{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px;align-items:end;margin:12px 0}.hidden{display:none!important}.btn.tiny{padding:6px 10px;font-size:12px;border-radius:4px}.section-title{font-weight:700;color:#10213d;padding:10px 0;border-bottom:1px solid #e5e7eb;margin-bottom:10px}
@media(max-width:900px){.v122-detail-grid{grid-template-columns:1fr}.filter-row{grid-template-columns:1fr}.v122-side-actions{position:static}.info-table th{width:130px}}
/* V123 kasa/banka düzenleme */
.inline-form{display:inline-block;margin:0}
.nowrap{white-space:nowrap}
.badge.success{background:#e7f8ef;color:#0f7a3c;border-radius:8px;padding:4px 8px;font-weight:700}
.badge.warning{background:#fff4df;color:#a86400;border-radius:8px;padding:4px 8px;font-weight:700}
.alert.info{background:#edf5ff;border:1px solid #b7d6ff;color:#12385f;padding:12px;border-radius:12px;margin:10px 0}
.alert.success{background:#eaf8ef;border:1px solid #b6e2c5;color:#0f6b30;padding:12px;border-radius:12px;margin:10px 0}
.alert.danger{background:#fff0f0;border:1px solid #ffc5c5;color:#8b1a1a;padding:12px;border-radius:12px;margin:10px 0}
.report-page{background:#fff;padding:24px;border-radius:10px}
@media print{.print-toolbar,.sidebar,.topbar,.mobile-bar{display:none!important}.main-area{padding:0!important}.report-page{box-shadow:none;border:0}}
