/* Muhasebe / Finans üst başlık */
#page-muhasebe .topbar-title{
  font-size:15px;
  font-weight:700;
  color:var(--ink3);
}
#page-muhasebe .mh-topbar-alt{
  margin-top:4px;
  font-size:28px;
  font-weight:800;
  letter-spacing:-.03em;
  line-height:1.15;
  color:var(--ink);
  font-family:var(--sans);
}

/* Muhasebe modülü */
.mh-help {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--muted, #6b7280);
  line-height: 1.45;
}
.mh-preview {
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--surface-2, #f3f4f6);
  border-radius: 6px;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
.mh-meta { font-size: 0.9rem; color: var(--muted, #6b7280); padding-top: 8px; }
.mh-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mh-kalem-list { display: flex; flex-direction: column; gap: 6px; }
.mh-kalem-row {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 8px 10px; background: var(--surface-2, #f8faf9); border-radius: 6px;
  font-size: 0.92rem;
}
.mh-kalem-row .mh-kalem-ad { flex: 1; min-width: 140px; font-weight: 500; }
.mh-kullanan {
  margin-top: 12px; padding: 10px 12px;
  border: 1px solid var(--border, #e5e7eb); border-radius: 6px;
  font-size: 0.9rem;
}
.mh-kullanan ul { margin: 6px 0 0; padding-left: 18px; }
.mh-kpi-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px; margin-top: 14px;
}
.mh-kpi {
  padding: 12px 14px; border-radius: 8px;
  background: var(--surface-2, #f3f4f6);
}
.mh-kpi .l { font-size: 0.78rem; color: var(--muted, #6b7280); text-transform: uppercase; letter-spacing: 0.03em; }
.mh-kpi .v { font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 4px; }
.mh-warn { color: #b45309; font-weight: 600; }
.mh-bad { color: #b91c1c; font-weight: 600; }
.mh-ok { color: #047857; }
.mh-uyari-body h4 { margin: 16px 0 8px; font-size: 0.95rem; }
.mh-uyari-body ul { margin: 0; padding-left: 18px; }
.mh-uyari-body li { margin: 4px 0; }
.mh-badge {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 0.75rem; background: #e5e7eb; color: #374151;
}
.mh-badge.grup { background: #dbeafe; color: #1e40af; }
.mh-badge.bagimsiz { background: #fef3c7; color: #92400e; }
.mh-badge.stok { background: #e0e7ff; color: #3730a3; }
#mh-rec-esdeger { width: 100%; max-width: 420px; }

/* Ana paneller (Maliyet / Fiyat / Cari / Fatura / Kasa / Banka) */
.mh-main-panel { display: none; }
.mh-main-panel.active { display: block; }

.mh-topbar-sirket {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.mh-sirket-label {
  font-size: 0.8rem; color: var(--muted, #6b7280); font-weight: 600;
}
#mh-sirket-sel {
  min-width: 220px; max-width: 320px;
  font-size: 12px; padding: 6px 8px;
  border: 1px solid var(--border); border-radius: 6px;
  background: #fff;
}

.mh-fiyat-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.mh-fiyat-side {
  flex: 0 0 280px;
  width: 280px;
  min-width: 260px;
  max-width: 320px;
  box-sizing: border-box;
  position: sticky;
  top: 12px;
  height: auto;
  max-height: none;
  display: block;
  z-index: auto;
  overflow: visible;
}
.mh-fiyat-main {
  flex: 1 1 auto;
  min-width: 0;
}
.mh-fiyat-chips {
  display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow: auto;
}
.mh-fiyat-chip {
  display: flex; flex-direction: column; gap: 2px; text-align: left;
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px;
  background: #fff; cursor: pointer; font-size: 12px;
}
.mh-fiyat-chip strong { font-size: 13px; }
.mh-fiyat-chip span { color: var(--ink3); font-size: 10px; font-family: var(--mono); }
.mh-fiyat-chip.active {
  border-color: var(--accent, #2563eb);
  background: #eff6ff;
}
.mh-fiyat-warn {
  margin-top: 10px; padding: 8px 10px; border-radius: 6px;
  background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; font-size: 12px;
}
.mhf-sub { display: none; }
.mhf-sub.active { display: block; }
.mhf-inp {
  border: 1px solid var(--border); border-radius: 4px; padding: 4px 6px;
  font-size: 12px; font-family: var(--mono);
}
.mhf-inp.mhf-dirty {
  border-color: #f59e0b;
  background: #fffbeb;
}
.mh-fiyat-head-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; flex-wrap: wrap;
}
.mh-fiyat-head-title { font-size: 16px; font-weight: 700; }
.mh-fiyat-head-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mh-fiyat-ayar {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border);
}
.mh-fiyat-kat-wrap { max-height: 480px; overflow: auto; }
.mh-fiyat-savebar {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--border);
  position: sticky; bottom: 0;
  background: var(--card, #fff);
}
.mh-fiyat-side select { width: 100%; }
@media (max-width: 900px) {
  .mh-fiyat-layout { flex-direction: column; }
  .mh-fiyat-side {
    position: static;
    flex: none;
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}

/* ── Haftalık Ödeme Planı ─────────────────────────────────── */
.mh-op-wrap { max-width: 880px; }

.mh-op-topbar {
  display: flex; flex-wrap: nowrap; align-items: center;
  gap: 10px;
}
.mh-op-week { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.mh-op-week .btn { padding: 4px 8px; min-height: 0; height: 32px; }
.mh-op-week-mid { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mh-op-week input[type="date"] {
  border: 1px solid var(--border); border-radius: 6px; padding: 3px 6px; font-size: 12px;
  min-height: 0; box-sizing: border-box;
}
.mh-op-week-label { font-size: 11px; color: var(--muted, #6b7280); white-space: nowrap; }

.mh-op-alloc {
  flex: 1 1 auto; min-width: 0;
  padding: 6px 10px; border-radius: 8px;
  background: var(--surface-2, #f3f4f6); border: 1px solid var(--border, #e5e7eb);
}
.mh-op-alloc .l {
  font-size: 0.68rem; color: var(--muted, #6b7280);
  text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap;
}
.mh-op-alloc-row { display: flex; gap: 6px; margin-top: 3px; }
.mh-op-alloc-row input {
  flex: 1 1 auto; width: auto; min-width: 0;
  border: 1px solid var(--border); border-radius: 6px;
  padding: 3px 8px; font-size: 1.05rem; font-weight: 700; min-height: 0;
  box-sizing: border-box; font-variant-numeric: tabular-nums;
}
.mh-op-alloc-row select {
  flex: 0 0 auto;
  border: 1px solid var(--border); border-radius: 6px; padding: 3px 6px; min-height: 0;
}

.mh-op-summary {
  margin-top: 12px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.mh-op-kpi {
  padding: 10px 14px; border-radius: 8px;
  background: var(--surface-2, #f3f4f6); border: 1px solid var(--border, #e5e7eb);
}
.mh-op-kpi .l {
  font-size: 0.72rem; color: var(--muted, #6b7280);
  text-transform: uppercase; letter-spacing: 0.03em;
}
.mh-op-kpi .v {
  font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 4px;
}
.mh-op-kpi-kalan.mh-op-pos { background: #ecfdf5; border-color: #a7f3d0; }
.mh-op-kpi-kalan.mh-op-pos .v { color: #047857; }
.mh-op-kpi-kalan.mh-op-neg { background: #fef2f2; border-color: #fecaca; }
.mh-op-kpi-kalan.mh-op-neg .v { color: #b91c1c; }
.mh-op-kpi-main { border-width: 2px; }
.mh-op-kpi-main .l { font-weight: 800; color: var(--ink2, #374151); }
.mh-op-kpi-main .v { font-size: 1.5rem; }

.mh-op-groups {
  margin-top: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.mh-op-group {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 12px;
}
.mh-op-group-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding-bottom: 6px; border-bottom: 1px solid var(--border, #e5e7eb);
}
.mh-op-group-title { font-size: 14px; font-weight: 700; }
.mh-op-group-sub { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink2, #374151); }

.mh-op-add { display: flex; gap: 6px; align-items: center; }
.mh-op-add select {
  flex: 1 1 auto; min-width: 0; border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 6px; font-size: 12px; height: 30px;
}
.mh-op-add input {
  width: 56px; border: 1px solid var(--border); border-radius: 6px;
  padding: 4px 6px; font-size: 12px; height: 30px; min-height: 0;
  box-sizing: border-box; font-variant-numeric: tabular-nums;
}
.mh-op-add select { min-height: 0; box-sizing: border-box; }
.mh-op-add .btn { padding: 4px 10px; height: 30px; min-height: 0; font-size: 12px; }
.mh-op-add-manual input[type="text"] {
  flex: 1 1 auto; width: auto; min-width: 0; text-align: left;
}

.mh-op-rows { display: flex; flex-direction: column; gap: 3px; }
.mh-op-empty { font-size: 11px; color: var(--muted, #6b7280); padding: 3px 2px; }
.mh-op-row {
  display: flex; align-items: center; gap: 6px;
  padding: 0 8px; background: var(--surface-2, #f8faf9);
  border: 1px solid var(--border, #e5e7eb); border-radius: 6px;
  min-height: 28px; box-sizing: border-box;
}
.mh-op-row-ad { flex: 1 1 auto; min-width: 0; font-size: 12px; font-weight: 500;
  line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-op-row-bakiye {
  margin-left: auto;
  flex: 0 0 auto; min-width: 70px; text-align: right; padding-right: 10px;
  font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap;
  color: var(--muted, #6b7280);
}
.mh-op-row-bakiye.mh-bad { color: #b91c1c; }
.mh-op-row-bakiye.mh-ok { color: #047857; }
.mh-op-bakiye-empty { color: var(--muted, #9ca3af); }
.mh-op-row-tutar { display: flex; align-items: center; gap: 4px; }
.mh-op-row-tutar input {
  width: 56px; text-align: right; border: 1px solid var(--border);
  border-radius: 5px; padding: 2px 6px; font-size: 12px; height: 24px; min-height: 0;
  box-sizing: border-box; font-variant-numeric: tabular-nums; line-height: 1;
}
.mh-op-sym { font-size: 11px; color: var(--muted, #6b7280); width: 10px; }
.mh-op-chk {
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0; cursor: pointer;
}
.mh-op-chk input {
  width: 16px; height: 16px; margin: 0; cursor: pointer; accent-color: #047857;
}
.mh-op-row.mh-op-paid { background: #f0fdf4; border-color: #bbf7d0; }
.mh-op-row.mh-op-paid .mh-op-row-tutar input { background: transparent; border-color: #bbf7d0; }
.mh-op-row.mh-op-paid .mh-op-row-ad { text-decoration: line-through; color: #15803d; }
.mh-op-del {
  border: none; background: transparent; color: #b91c1c; cursor: pointer;
  font-size: 13px; line-height: 1; padding: 2px 4px; border-radius: 6px;
}
.mh-op-del:hover { background: #fef2f2; }

@media (max-width: 900px) {
  .mh-op-topbar { position: static; }
  .mh-op-summary { justify-content: flex-start; }
  /* Global mobil input min-height:44px kuralını ödeme satırlarında ez */
  .mh-op-row-tutar input { height: 24px; min-height: 0; padding: 2px 6px; font-size: 12px; }
  .mh-op-add input, .mh-op-add select { height: 30px; min-height: 0; padding: 4px 6px; font-size: 12px; }
  .mh-op-add .btn { height: 30px; min-height: 0; }
}

/* Fatura · sipariş doğrulama + PO — kompakt */
#mh-panel-fatura {
  max-width: 1100px;
  overflow-x: clip;
}
#mh-panel-fatura .card,
#mh-panel-fatura .mh-fat-yeni {
  max-width: 100%;
  box-sizing: border-box;
}
#mh-panel-fatura .tbl-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
#mh-panel-fatura .tbl {
  font-size: 12px;
  width: 100%;
}
#mh-panel-fatura .tbl th,
#mh-panel-fatura .tbl td {
  padding: 5px 7px;
  white-space: nowrap;
}
#mh-panel-fatura .tbl td.l {
  white-space: normal;
  word-break: break-word;
  max-width: 200px;
}
#mh-panel-fatura select,
#mh-panel-fatura input[type="text"],
#mh-panel-fatura input[type="date"],
#mh-panel-fatura input[type="number"] {
  max-width: 100%;
  box-sizing: border-box;
}
#mh-panel-fatura .frow {
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 10px 12px;
  margin-bottom: 10px;
  min-width: 0;
}
#mh-panel-fatura .mh-fat-pick.frow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 820px) {
  #mh-panel-fatura .frow,
  #mh-panel-fatura .mh-fat-pick.frow { grid-template-columns: 1fr; }
}
.mh-fat-lead { margin: 0 0 10px; font-size: 0.85rem; }
.mh-fat-step {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  padding: 10px 12px 12px;
  margin-bottom: 10px;
  background: #fafbfa;
  min-width: 0;
}
.mh-fat-step-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.mh-fat-step-h span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #3d4a2e;
  color: #fff;
  font-size: 11px;
  flex-shrink: 0;
}
.mh-fat-step-h .mh-meta {
  margin-left: auto;
  font-weight: 500;
  font-size: 0.78rem;
}
.mh-fat-pick .fg { min-width: 0; }
.mh-fat-more { margin-top: 6px; }
.mh-fat-more summary {
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--muted, #6b7280);
  font-weight: 600;
}
.mh-fat-empty {
  color: var(--muted, #6b7280);
  font-size: 0.85rem;
  padding: 6px 0 2px;
}
.mh-fat-step-actions { margin-top: 10px; }
.mh-fat-modebar {
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.mh-fat-modebar-lbl {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted, #6b7280);
}
.mh-fat-mode-hint { margin: 0; flex: 1 1 100%; }
.mh-seg {
  display: inline-flex;
  border: 1px solid var(--border, #d1d5db);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.mh-seg-btn {
  border: 0;
  background: transparent;
  padding: 5px 9px;
  font-size: 0.8rem;
  cursor: pointer;
  color: #374151;
  border-right: 1px solid var(--border, #e5e7eb);
}
.mh-seg-btn:last-child { border-right: 0; }
.mh-seg-btn.active {
  background: #3d4a2e;
  color: #fff;
  font-weight: 600;
}
.mh-fat-adet-inp {
  width: 64px;
  text-align: right;
  padding: 3px 5px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.mh-fat-inc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-wrap: wrap;
  max-width: 100%;
}
.mh-fat-inc .mh-muted,
.mh-muted { color: var(--muted, #6b7280); font-size: 0.8rem; }
.mh-fat-detail-sep td {
  padding-top: 10px !important;
  border-top: 2px solid var(--border, #e5e7eb);
  background: var(--surface-2, #f8faf9);
}
.mh-fat-manual summary {
  cursor: pointer;
  font-weight: 600;
  color: #374151;
  font-size: 0.85rem;
}
.mh-fat-diger {
  margin: 8px 0 10px;
  padding: 8px 10px;
  border: 1px solid var(--line, #ddd);
  border-radius: 8px;
  background: var(--bg2, #fafafa);
  min-width: 0;
  max-width: 100%;
}
.mh-fat-diger-h {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: 6px;
}
.mh-fat-diger-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-bottom: 8px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.mh-fat-diger-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line, #ccc);
  background: #fff;
  color: inherit;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
  font-family: var(--mono, ui-monospace, monospace);
  cursor: pointer;
  line-height: 1.2;
  flex: 0 0 auto;
  max-width: 220px;
}
.mh-fat-diger-tab > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}
.mh-fat-diger-tab:hover { border-color: var(--green, #2e7d32); }
.mh-fat-diger-tab.active {
  background: var(--green, #1b5e20);
  border-color: var(--green, #1b5e20);
  color: #fff;
  font-weight: 700;
}
.mh-fat-diger-tab .mh-fat-diger-tab-meta {
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 10px;
  opacity: .85;
  font-weight: 600;
  white-space: nowrap;
}
.mh-fat-diger-tab.has-sel:not(.active) {
  border-color: #1565c0;
  background: #e3f2fd;
}
.mh-fat-diger-body {
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line, #e0e0e0);
  border-radius: 6px;
  background: #fff;
  max-width: 100%;
}
.mh-fat-diger-body .tbl { margin: 0; }
.mh-fat-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
}
.mh-fat-badge-ok {
  background: #e8f5e9;
  color: #1b5e20;
}
.mh-fat-badge-partial {
  background: #fff8e1;
  color: #8d6e00;
}
.mh-fat-row-done td { opacity: .72; }
.mh-fat-row-done .mh-fat-adet-inp { pointer-events: none; background: #eee; }
.fg-wide { flex: 1 1 100%; min-width: 0; }
.fg-wide textarea { width: 100%; min-height: 56px; resize: vertical; }
.fg-fat-liste { min-width: 0; }
.fg-fat-liste select { width: 100%; }
.fg-fat-liste .mh-meta { display: block; padding-top: 2px; font-size: 0.75rem; }

/* PO şablon · logo */
.mh-po-logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  background: #fafbfa;
}
.mh-po-logo-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mh-po-logo-box {
  width: 200px;
  height: 80px;
  border: 1px dashed #9ca3af;
  border-radius: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.mh-po-logo-box img {
  width: 200px;
  height: 80px;
  object-fit: contain;
  display: block;
}
.mh-po-logo-ph {
  color: #9ca3af;
  font-size: 12px;
  font-family: var(--mono, ui-monospace, monospace);
}
.mh-po-logo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.mh-po-logo-file-lbl {
  cursor: pointer;
  margin: 0;
}

/* Fiyat · şablon — sağ ana alan */
.mh-sablon-panel {
  margin: 0;
  padding: 16px 18px;
  background: #fff;
}
.mh-sablon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.mh-sablon-col {
  padding: 14px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  background: var(--surface-2, #f8faf9);
  min-width: 0;
}
.mh-sablon-secs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
}
.mh-sablon-secs label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.mh-sablon-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border, #e5e7eb);
}
.mh-sablon-block-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #6b7280);
  margin-bottom: 10px;
}
.mh-sablon-panel .fg label { font-size: 0.8rem; }
.mh-sablon-panel select,
.mh-sablon-panel input[type="text"],
.mh-sablon-panel input[type="number"] { width: 100%; }
#mhf-sab-status { display: block; margin-top: 14px; font-size: 0.85rem; }
#mhf-btn-sablon.active {
  background: #3d4a2e;
  color: #fff;
  border-color: #3d4a2e;
}
@media (max-width: 1100px) {
  .mh-sablon-grid { grid-template-columns: 1fr; }
}

.mhf-ana-fiyat {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #1e3a5f;
}
.mhf-delta {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.9em;
}
.mhf-delta-pos { color: #047857; }
.mhf-delta-neg { color: #b91c1c; }
.mh-fiyat-chip.onayli span { color: #047857; font-weight: 700; }
.mh-fiyat-chip.ana {
  border-color: #3d4a2e;
  background: linear-gradient(180deg, #f4f7f0 0%, #eef3e8 100%);
}
.mh-fiyat-chip-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted, #6b7280);
  margin: 10px 0 6px;
}
.mh-fiyat-chip-group-label:first-child { margin-top: 0; }
.mh-turetilmis-panel { padding: 16px 18px; }
#mhf-btn-onayla, #mhf-btn-recalc { white-space: nowrap; }
#mhf-btn-ana, #mhf-btn-turetilmis { width: 100%; }

/* Banka ekstre (dosya ile) */
.mh-ekstre-wrap { max-height: 62vh; overflow: auto; }
.mh-ekstre-no { font-family: var(--mono, ui-monospace, monospace); font-size: 11px; }
.mh-ekstre-amac { max-width: 220px; font-size: 12px; }
.mh-ekstre-giris td.r { color: #047857; font-weight: 600; }
.mh-ekstre-cikis td.r { color: #b91c1c; font-weight: 600; }
.mh-ekstre-firma { min-width: 160px; max-width: 220px; font-size: 12px; }
.mh-ekstre-kalem { min-width: 160px; max-width: 220px; font-size: 12px; }
.mh-ekstre-virman-td { min-width: 150px; }
.mh-ekstre-virman-lbl {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
  cursor: pointer;
  white-space: nowrap;
}
.mh-ekstre-virman-lbl input { width: 14px; height: 14px; accent-color: #1e3a5f; }
.mh-ekstre-virman-kasa { min-width: 130px; max-width: 180px; font-size: 12px; }
.mh-ekstre-virman-all-lab {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted, #6b7280);
}
.mh-ekstre-virman-all-lab select { min-width: 160px; font-size: 12px; }
.mh-ekstre-oto-cari-lbl {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.mh-ekstre-oto-cari-lbl input { width: 16px; height: 16px; accent-color: #3d4a2e; }
td.c { text-align: center; }
.mh-ekstre-no-match { color: #b45309; font-size: 10px; }
.mh-ekstre-yukleme-active td { background: #eef4ff; }

/* Cari form modal */
.mh-cari-modal {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 4vh 16px 24px; overflow: auto;
}
.mh-cari-modal[hidden] { display: none !important; }
.mh-cari-modal-backdrop {
  position: fixed; inset: 0; background: rgba(20, 24, 18, 0.45);
}
.mh-cari-modal-panel {
  position: relative; z-index: 1;
  width: min(920px, 100%);
  margin-top: 2vh;
  background: var(--card, #fff);
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 12px;
  padding: 18px 20px 20px;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}
.mh-cari-modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.mh-confirm-modal { align-items: center; padding-top: 0; }
.mh-confirm-panel {
  width: min(440px, 100%);
  margin-top: 0;
}

/* Kasa — çok satırlı hareket girişi */
.mh-kasa-head {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}
.mh-kasa-head .fg { min-width: 0; }
.mh-kasa-head .fg-kasa { flex: 0 1 200px; max-width: 220px; }
.mh-kasa-head .fg-tarih { flex: 0 0 148px; }
.mh-kasa-head .fg-yon { flex: 0 0 128px; }
.mh-kasa-head select,
.mh-kasa-head input[type="date"] { width: 100%; max-width: 100%; box-sizing: border-box; }
#mh-kasa-hesap { overflow: hidden; text-overflow: ellipsis; }
.mh-kasa-para-hint {
  font-weight: 500;
  color: var(--muted, #6b7280);
  font-size: 0.78rem;
  margin-left: 4px;
}
.mh-kasa-gate {
  margin: 10px 0 0;
  padding: 10px 12px;
  background: #fff8e1;
  border: 1px solid #f0d48a;
  border-radius: 6px;
  font-size: 0.88rem;
  color: #7a5f00;
}
.mh-kasa-entry { margin-top: 12px; }
.mh-kasa-entry.is-locked {
  opacity: .55;
  pointer-events: none;
}
.mh-kasa-entry-scroll { overflow-x: auto; }
.mh-kasa-entry-tbl { min-width: 920px; }
.mh-kasa-entry-tbl thead th {
  background: #f6e27a;
  color: #1f2937;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
  border-bottom: 1px solid #d4b84a;
}
.mh-kasa-entry-tbl td {
  vertical-align: middle;
  padding: 4px 6px;
}
.mh-kasa-entry-tbl input,
.mh-kasa-entry-tbl select {
  width: 100%;
  min-width: 0;
  font-size: 12px;
  padding: 5px 6px;
}
.mh-kasa-entry-tbl .mh-kasa-row-tutar { width: 96px; }
.mh-kasa-entry-tbl .mh-kasa-row-para { width: 72px; }
.mh-kasa-entry-tbl .mh-kasa-row-miktar { width: 80px; }
.mh-kasa-entry-tbl .mh-kasa-row-birim { width: 72px; }
.mh-kasa-entry-tbl .mh-kasa-row-del {
  min-width: 32px;
  padding: 4px 8px;
  font-size: 16px;
  line-height: 1;
}
.mh-kasa-entry-row:not(.is-maliyet) .mh-kasa-maliyet-cell {
  opacity: .35;
}
.mh-kasa-entry-acts { margin-top: 10px; gap: 8px; }

/* Kasa mini dashboard + hareket filtreleri */
.mh-kasa-dash {
  margin: 0 0 14px;
  padding: 14px 16px;
}
.mh-kasa-dash-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.mh-kasa-dash-sub {
  font-size: 0.8rem;
  color: var(--muted, #6b7280);
  margin-top: 2px;
}
.mh-kasa-dash-tools {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.mh-kasa-dash-hesap-lab {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted, #6b7280);
}
.mh-kasa-dash-hesap-lab select {
  min-width: 160px;
  font-size: 12px;
  padding: 5px 8px;
  border: 1px solid var(--border, #d1d5db);
  border-radius: 6px;
  background: #fff;
}
#mh-banka-dash-hesap { min-width: 220px; }
.mh-kasa-period {
  display: flex;
  gap: 4px;
  background: #f3f4f6;
  padding: 3px;
  border-radius: 8px;
}
.mh-kasa-period button {
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  color: #4b5563;
}
.mh-kasa-period button.active {
  background: #1e3a5f;
  color: #fff;
}
.mh-kasa-dash-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.mh-kasa-kpi {
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--surface-2, #f3f4f6);
  border: 1px solid transparent;
}
.mh-kasa-kpi .l {
  font-size: 0.72rem;
  color: var(--muted, #6b7280);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}
.mh-kasa-kpi .v {
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
  line-height: 1.25;
  word-break: break-word;
}
.mh-kasa-kpi.is-in .v { color: #047857; }
.mh-kasa-kpi.is-out .v { color: #b91c1c; }
.mh-kasa-kpi.is-net { background: #eef2ff; }
.mh-kasa-kpi.is-cash {
  background: #1e3a5f;
  color: #fff;
}
.mh-kasa-kpi.is-cash .l { color: #c5d4e8; }
.mh-kasa-kpi.is-cash .v { color: #fff; }
.mh-kasa-liste-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.mh-kasa-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
}
.mh-kasa-filters .fg { min-width: 128px; }
.mh-kasa-filters .fg-search { flex: 1 1 220px; min-width: 180px; }
.mh-kasa-filters .fg-act { min-width: auto; }
.mh-kasa-filters input,
.mh-kasa-filters select {
  width: 100%;
  font-size: 12px;
  padding: 5px 8px;
}
.mh-kasa-acts { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }

.mh-badge.virman { background: #dbeafe; color: #1e40af; }

@media (max-width: 900px) {
  .mh-kasa-head { flex-wrap: wrap; }
  .mh-kasa-head .fg-kasa { flex: 1 1 180px; max-width: none; }
}
