/* Ön Muhasebe (Cari Hesaplar) */
.ch-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.ch-tabs button {
  border: 1px solid #dce5df; background: #fff; color: #526159; border-radius: 9px;
  padding: 9px 13px; font-size: 12px; font-weight: 900; cursor: pointer;
}
.ch-tabs button.active { background: var(--green); color: #fff; border-color: var(--green); }
.ch-table td { vertical-align: top; }
.ch-row { cursor: pointer; }
.ch-row:hover td { background: #f6faf7; }
.ch-late td { background: #fff3f3; }
.ch-row.ch-late:hover td { background: #ffe9e9; }
.ch-late td:first-child { box-shadow: inset 4px 0 0 var(--red); }
.ch-late-amount { color: var(--red); font-weight: 800; }
.stats .stat.ch-stat-late strong { color: var(--red); }
.ch-debit { color: var(--red); }
.ch-credit { color: var(--green); }
.ch-debit small, .ch-credit small { font-size: 11px; font-weight: 800; }
.ch-zero { color: #9aa59e; }
.ch-nocard { color: #b07a00; }
.ch-help { margin: 0; padding: 12px 20px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.ch-name { font-size: 18px; word-break: break-word; }
.ch-back { margin-bottom: 14px; }
.ch-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin: -4px 0 16px; }
.ch-range { flex-wrap: wrap; align-items: flex-end; }
.ch-range label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 800; color: var(--muted); }
.ch-range input[type="date"] { height: 40px; border: 1px solid #d6dfd9; border-radius: 9px; padding: 0 10px; font: inherit; }
.ch-opening td, .ch-total td { background: #f6f8f7; }
.ch-cancel { padding: 6px 10px; font-size: 11px; }
.ch-form .btn { width: 100%; }
.ch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 800px) {
  .ch-grid { grid-template-columns: 1fr; }
  .ch-actions .btn, .ch-range .btn { flex: 1; }
  .ch-range label { flex: 1; min-width: 130px; }
}
/* Ön Muhasebe: bölüm menüsü ve düzen */
.om { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; align-items: start; }
.om-nav { display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: #fff; position: sticky; top: 12px; }
.om-nav button { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: #526159; border-radius: 10px;
  padding: 12px 12px; font-size: 14px; font-weight: 900; cursor: pointer; text-align: left; }
.om-nav button i { font-style: normal; width: 20px; text-align: center; }
.om-nav button:hover { background: #f2f7f4; }
.om-nav button.active { background: var(--green); color: #fff; }
.om-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.om-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; padding: 16px; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.om-tile:hover { border-color: var(--green); background: #f6faf7; }
.om-tile i { font-style: normal; font-size: 22px; color: var(--green); }
.om-tile b { font-size: 15px; }
.om-tile small { color: var(--muted); }
.om-soon { padding: 20px; }
.om-soon p { margin: 8px 0 0; color: var(--muted); max-width: 680px; line-height: 1.5; }
.om-sets { display: flex; flex-direction: column; }
.om-set { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; border: 0; border-top: 1px solid #f0f3f1;
  background: #fff; padding: 14px 20px; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.om-set:first-child { border-top: 0; }
.om-set:hover { background: #f6faf7; }
.om-set b { font-size: 14px; }
.om-set small { grid-column: 1; color: var(--muted); }
.om-set i { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-size: 22px; color: #9aa59e; }
@media (max-width: 900px) {
  .om { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .om-nav { flex-direction: row; overflow-x: auto; position: static; }
  .om-nav button { white-space: nowrap; padding: 10px 12px; font-size: 13px; }
  .om-tiles { grid-template-columns: 1fr 1fr; }
}
.ch-actions-inline { margin: 0; }
.ch-acc-list { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; }
.ch-acc { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #f0f3f1; }
.ch-acc:last-child { border-bottom: 0; }
.ch-acc small { color: var(--muted); }
.ch-acc-off b { color: #9aa59e; }
.ch-acc .btn { width: auto; }
#pmCheque { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 800px) {
  #pmCheque { grid-template-columns: 1fr; }
}
