.khata-toolbar { margin-bottom:12px; }
.khata-tabs { margin-bottom:12px; }
.khata-summary { margin:0 0 14px; color:var(--muted); font-size:13px; }
.khata-summary strong { color:var(--green-dark); font-size:16px; }
.khata-records { display:grid; gap:12px; }
.khata-customer-card,.khata-history-card,.khata-customer-manage { padding:16px; border:1px solid var(--line); border-radius:7px; background:#fff; }
.khata-card-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.khata-card-header h3 { margin:0 0 4px; font-size:16px; }
.khata-card-header p,.khata-history-card > p { margin:0; color:var(--muted); font-size:12px; }
.khata-pending { color:var(--green-dark); font-family:Manrope,sans-serif; font-size:21px; text-align:right; white-space:nowrap; }
.khata-pending span { display:block; color:var(--muted); font:600 10px "DM Sans",sans-serif; text-transform:uppercase; }
.khata-card-stats { display:flex; flex-wrap:wrap; gap:8px 18px; margin:13px 0; color:var(--muted); font-size:12px; }
.khata-expand { width:100%; justify-content:center; }
.khata-details { display:grid; gap:12px; margin-top:15px; padding-top:14px; border-top:1px solid var(--line); }
.khata-details h4,.khata-customer-form h4 { margin:0; font-size:14px; }
.khata-bill-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; padding:10px; border:1px solid #e5ece8; border-radius:6px; }
.khata-bill-row > label { display:flex; align-items:center; gap:8px; min-width:0; cursor:pointer; }
.khata-bill-row > label span { display:grid; gap:3px; }
.khata-bill-row small { color:var(--muted); font-size:11px; }
.khata-bill-row > strong { color:var(--green-dark); white-space:nowrap; }
.khata-bill-row p,.khata-bill-row > small { grid-column:1/-1; margin:0; color:var(--muted); font-size:11px; }
.khata-field { display:grid; gap:5px; color:#51665e; font-size:12px; font-weight:700; }
.khata-field input,.khata-field select,.khata-customer-form input:not([type=checkbox]),.khata-customer-form select { width:100%; min-height:38px; padding:8px 10px; border:1px solid #cddbd5; border-radius:6px; outline:0; color:var(--ink); background:#fff; }
.khata-field input:focus,.khata-field select:focus,.khata-customer-form input:focus,.khata-customer-form select:focus { border-color:var(--green); box-shadow:0 0 0 3px rgba(22,97,80,.12); }
.khata-choice-row,.khata-action-grid { display:flex; flex-wrap:wrap; gap:8px; }
.khata-choice-row > * { flex:1; }
.khata-action-grid > * { flex:1 1 180px; justify-content:center; }
.khata-action-grid .primary-button { min-height:38px; }
.khata-preview { margin:0; color:var(--green-dark); font-size:12px; font-weight:700; }
.khata-settle-all { width:100%; justify-content:center; }
.khata-history-card { display:grid; gap:10px; }
.khata-history-card .khata-action-grid { margin-top:2px; }
.khata-customer-manage { margin-bottom:16px; overflow:hidden; padding:0; }
.khata-customer-manage .panel-head { min-height:52px; }
.khata-customer-form { display:grid; gap:12px; padding:16px; }
.khata-customer-form label:not(.khata-check) { display:grid; gap:5px; color:#51665e; font-size:12px; font-weight:700; }
.khata-customer-form .khata-check { display:flex; align-items:center; gap:8px; color:#3c504a; font-size:13px; font-weight:600; }
.khata-customer-form .khata-check input { width:16px; height:16px; accent-color:var(--green); }
.khata-customer-form h4 { padding-top:12px; border-top:1px solid var(--line); }
.khata-customer-form p { margin:0; color:var(--muted); font-size:12px; }
.khata-print-area { width:min(100%,800px); margin:16px auto; padding:26px; border:1px solid var(--line); border-radius:7px; background:#fff; }
.khata-print-area .table-panel { margin-top:14px; }
.khata-statement-total { display:flex; justify-content:space-between; padding:14px 0; border-top:1px solid var(--line); color:var(--green-dark); }
.khata-print-area .table-note { text-align:right; }
@media (max-width:600px) { .khata-customer-card,.khata-history-card { padding:12px; }.khata-card-stats { gap:7px 12px; }.khata-action-grid > * { flex-basis:100%; }.khata-print-area { padding:15px; } }
@media print { body * { visibility:hidden !important; }.khata-print-area,.khata-print-area * { visibility:visible !important; }.khata-print-area { position:absolute; inset:0 auto auto 0; width:100%; max-width:none; margin:0; padding:10px; border:0; }.khata-toolbar,.khata-tabs,.khata-summary,.khata-records,.bill-receipt-actions,.sidebar,.topbar,.app-error { display:none !important; } }
