/* ── SETTIPALLY KHATA BOOK — STYLES ── */
#skb-app { font-family: 'Segoe UI', 'Noto Sans Telugu', Arial, sans-serif; color: #1a1a2e; }

/* ── LOGIN ── */
#skb-login {
    display: flex; align-items: center; justify-content: center;
    min-height: 480px; background: linear-gradient(135deg, #eef6ff 0%, #f5f0ff 100%);
    border-radius: 16px;
}
.skb-login-card {
    background: #fff; border-radius: 16px; padding: 40px 36px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.10); width: 100%; max-width: 380px;
    text-align: center;
}
.skb-logo { margin-bottom: 28px; }
.skb-logo-icon { font-size: 36px; display: block; margin-bottom: 10px; }
.skb-logo h1 { font-size: 20px; font-weight: 700; margin: 0 0 6px; color: #1a237e; }
.skb-logo p { font-size: 13px; color: #777; margin: 0; }

/* ── HEADER ── */
.skb-header {
    display: flex; justify-content: space-between; align-items: center;
    background: #1a237e; color: #fff; padding: 14px 20px;
    border-radius: 12px 12px 0 0; margin-bottom: 0;
}
.skb-header-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; }
.skb-logo-icon-sm { font-size: 20px; }
.skb-logout-btn {
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.4);
    color: #fff; padding: 6px 14px; border-radius: 8px; cursor: pointer;
    font-size: 13px; font-weight: 600; transition: background 0.2s;
}
.skb-logout-btn:hover { background: rgba(255,255,255,0.28); }

/* ── SUMMARY CARDS ── */
.skb-summary-row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
    padding: 16px; background: #f0f4ff; border-left: 1px solid #d0d8ff; border-right: 1px solid #d0d8ff;
}
.skb-card {
    border-radius: 12px; padding: 16px 18px; text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.skb-card-label { font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 8px; }
.skb-card-value { font-size: 22px; font-weight: 700; }
.skb-card-credit { background: #e8f8f1; border: 1.5px solid #b2dfcc; }
.skb-card-credit .skb-card-label { color: #1a7a4a; }
.skb-card-credit .skb-card-value { color: #1a7a4a; }
.skb-card-debit { background: #fff0f0; border: 1.5px solid #f5c6c6; }
.skb-card-debit .skb-card-label { color: #c0392b; }
.skb-card-debit .skb-card-value { color: #c0392b; }
.skb-card-balance { background: #fff8e1; border: 1.5px solid #ffe082; }
.skb-card-balance .skb-card-label { color: #8a6500; }
.skb-card-balance .skb-card-value { color: #5a4000; }

/* ── FORM CARD ── */
.skb-form-card {
    background: #fff; padding: 20px; border-left: 1px solid #d0d8ff;
    border-right: 1px solid #d0d8ff; border-bottom: 1px solid #e0e6ff;
}
.skb-form-row-top { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.skb-meta-field label { font-size: 11px; color: #888; font-weight: 600; letter-spacing: 0.4px; display: block; margin-bottom: 4px; text-transform: uppercase; }
.skb-readonly-field {
    background: #f5f7ff; border: 1px solid #d0d8ff; border-radius: 8px;
    padding: 8px 12px; font-size: 13px; color: #444; width: 100%; box-sizing: border-box;
    font-family: 'Courier New', monospace; font-weight: 600;
}

/* TYPE BUTTONS */
.skb-type-btns { display: flex; gap: 10px; margin-bottom: 16px; }
.skb-type-btn {
    flex: 1; padding: 11px; border-radius: 10px; font-size: 15px; font-weight: 700;
    cursor: pointer; border: 2px solid transparent; transition: all 0.2s; letter-spacing: 0.5px;
}
.skb-type-credit { background: #f0faf5; border-color: #b2dfcc; color: #2e7d55; }
.skb-type-credit.active { background: #1a7a4a; color: #fff; border-color: #1a7a4a; box-shadow: 0 3px 12px rgba(26,122,74,0.3); }
.skb-type-debit { background: #fff5f5; border-color: #f5c6c6; color: #c0392b; }
.skb-type-debit.active { background: #c0392b; color: #fff; border-color: #c0392b; box-shadow: 0 3px 12px rgba(192,57,43,0.3); }

/* FORM FIELDS */
.skb-form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.skb-form-group { display: flex; flex-direction: column; flex: 1; }
.skb-flex-2 { flex: 2; }
.skb-flex-1 { flex: 1; min-width: 140px; }
.skb-form-group label { font-size: 12px; color: #555; font-weight: 600; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.4px; }
.skb-form-group input,
.skb-form-group select,
.skb-form-group textarea {
    border: 1.5px solid #d0d8ff; border-radius: 8px; padding: 9px 12px;
    font-size: 14px; color: #1a1a2e; width: 100%; box-sizing: border-box;
    transition: border-color 0.2s; outline: none; font-family: inherit;
}
.skb-form-group input:focus,
.skb-form-group select:focus { border-color: #1a237e; box-shadow: 0 0 0 3px rgba(26,35,126,0.10); }

.skb-form-actions { margin-top: 16px; }
.skb-btn { padding: 11px 28px; border-radius: 9px; font-size: 14px; font-weight: 700; cursor: pointer; border: none; transition: all 0.2s; }
.skb-btn-primary { width: 100%; background: #1a237e; color: #fff; padding: 12px; font-size: 15px; border-radius: 9px; margin-top: 4px; }
.skb-btn-primary:hover { background: #283593; box-shadow: 0 4px 14px rgba(26,35,126,0.3); }
.skb-btn-submit { background: #1a237e; color: #fff; width: 100%; font-size: 15px; padding: 13px; }
.skb-btn-submit:hover { background: #283593; box-shadow: 0 4px 16px rgba(26,35,126,0.25); }
.skb-btn-save { background: #1a7a4a; color: #fff; }
.skb-btn-save:hover { background: #15643d; }
.skb-btn-cancel { background: #f5f5f5; color: #555; border: 1px solid #ddd; }
.skb-btn-cancel:hover { background: #eee; }

.skb-form-msg { margin-top: 10px; font-size: 13px; font-weight: 600; border-radius: 7px; padding: 8px 12px; }
.skb-success { background: #e8f8f1; color: #1a7a4a; border: 1px solid #b2dfcc; }
.skb-error { background: #fff0f0; color: #c0392b; border: 1px solid #f5c6c6; }
.skb-error-msg { color: #c0392b; font-size: 13px; font-weight: 600; margin-top: 10px; }

/* ── TABLE SECTION ── */
.skb-table-section {
    background: #fff; border: 1px solid #d0d8ff;
    border-radius: 0 0 12px 12px; overflow: hidden; padding: 18px;
}
.skb-table-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.skb-table-header h2 { font-size: 16px; font-weight: 700; color: #1a237e; margin: 0; }
.skb-filter-row { display: flex; gap: 10px; }
.skb-filter-row select, .skb-filter-row input {
    border: 1.5px solid #d0d8ff; border-radius: 8px; padding: 7px 12px;
    font-size: 13px; outline: none; color: #333; font-family: inherit;
}
.skb-filter-row input { min-width: 180px; }
.skb-filter-row select:focus, .skb-filter-row input:focus { border-color: #1a237e; }

/* TABLE */
#skb-table-wrap { overflow-x: auto; }
.skb-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 600px; }
.skb-table thead tr { background: #1a237e; color: #fff; }
.skb-table thead th { padding: 11px 12px; text-align: left; font-weight: 600; font-size: 12px; letter-spacing: 0.5px; white-space: nowrap; }
.skb-table tbody tr { border-bottom: 1px solid #eef0ff; transition: background 0.15s; }
.skb-table tbody tr:hover { background: #f5f7ff; }
.skb-table td { padding: 10px 12px; word-break: break-word; vertical-align: middle; }
.skb-trid { font-family: 'Courier New', monospace; font-size: 12px; color: #555; }
.skb-datetime-cell { white-space: nowrap; font-size: 12px; color: #666; }
.skb-purpose-cell { max-width: 220px; }
.skb-amt-credit { color: #1a7a4a; font-weight: 700; text-align: right; white-space: nowrap; }
.skb-amt-debit { color: #c0392b; font-weight: 700; text-align: right; white-space: nowrap; }

/* BADGES */
.skb-badge { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; }
.skb-badge-credit { background: #e8f8f1; color: #1a7a4a; border: 1px solid #b2dfcc; }
.skb-badge-debit { background: #fff0f0; color: #c0392b; border: 1px solid #f5c6c6; }

/* ACTION BUTTONS */
.skb-actions-cell { white-space: nowrap; }
.skb-act-btn {
    padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 600;
    cursor: pointer; border: none; margin-right: 4px; transition: all 0.15s;
}
.skb-act-edit { background: #fff3e0; color: #e65100; border: 1px solid #ffcc80; }
.skb-act-edit:hover { background: #e65100; color: #fff; }
.skb-act-delete { background: #fff0f0; color: #c0392b; border: 1px solid #f5c6c6; }
.skb-act-delete:hover { background: #c0392b; color: #fff; }

/* EDIT STRIP */
.skb-edit-strip {
    background: #fffde7; border: 2px solid #ffe082; border-radius: 12px;
    padding: 18px; margin-top: 16px;
}
.skb-edit-strip h3 { font-size: 14px; font-weight: 700; color: #8a6500; margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.skb-edit-actions { display: flex; gap: 10px; margin-top: 14px; }

.skb-no-data { text-align: center; color: #aaa; font-size: 14px; padding: 32px 0; }

/* RESPONSIVE */
@media (max-width: 600px) {
    .skb-summary-row { grid-template-columns: 1fr; }
    .skb-form-row-top { grid-template-columns: 1fr; }
    .skb-card-value { font-size: 18px; }
    .skb-type-btn { font-size: 13px; }
    .skb-filter-row { flex-direction: column; }
}
