.login-wrapper{background:linear-gradient(135deg,#f7f1df,#fffdf7);justify-content:center;align-items:center;width:100%;min-height:100vh;padding:20px;display:flex}.login-card{background:#fff;border-radius:18px;width:100%;max-width:420px;padding:40px;box-shadow:0 15px 45px #0000001f}.login-header{text-align:center;margin-bottom:30px}.logo{background:#c99a2e;border-radius:50%;justify-content:center;align-items:center;width:65px;height:65px;margin:0 auto 15px;font-size:30px;display:flex}.login-header h2{color:#392b12;margin:0;font-size:28px;font-weight:700}.login-header p{color:#777;margin-top:8px;font-size:14px}.input-group{margin-bottom:20px}.input-group label{color:#3d321f;margin-bottom:8px;font-size:14px;font-weight:600;display:block}.input-group input{background:#fff;border:1px solid #ddd3bc;border-radius:9px;outline:none;width:100%;height:48px;padding:0 14px;font-size:15px;transition:all .2s}.input-group input:focus{border-color:#c99a2e;box-shadow:0 0 0 3px #c99a2e1f}.input-group input:disabled{cursor:not-allowed;background:#f5f5f5}.login-error{color:#c62828;background:#fff0f0;border:1px solid #ffcaca;border-radius:8px;margin-bottom:18px;padding:11px 13px;font-size:14px}.login-btn{color:#fff;cursor:pointer;background:#c99a2e;border:none;border-radius:9px;width:100%;height:50px;font-size:16px;font-weight:600;transition:all .2s}.login-btn:hover{background:#ae8120}.login-btn:disabled{opacity:.7;cursor:not-allowed}.spinner{vertical-align:middle;border:2px solid #ffffff80;border-top-color:#fff;border-radius:50%;width:17px;height:17px;margin-right:8px;animation:.7s linear infinite spin;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}.login-footer{text-align:center;color:#999;border-top:1px solid #eee;margin-top:25px;padding-top:20px;font-size:12px}@media (width<=480px){.login-card{padding:30px 22px}.login-header h2{font-size:24px}}*{box-sizing:border-box;margin:0;padding:0}.dashboard{width:100vw;height:100vh;font-family:Arial;display:flex}.sidebar{color:#fff;background:#1e3c72;width:250px;padding:15px;transition:all .3s}.sidebar.collapsed{width:70px}.menu div{cursor:pointer;border-radius:5px;margin:5px 0;padding:10px}.menu div:hover{background:#fff3}.active{color:#000;background:#fc0}.main{flex-direction:column;flex:1;display:flex}.navbar{background:#fff;justify-content:space-between;align-items:center;height:60px;padding:0 20px;display:flex}.content{background:#f4f6f9;height:100%;padding:20px;overflow-y:auto}.logout{color:#fff;background:red;border:none;margin-left:10px;padding:5px 10px}.customer-container{color:#111827;background:#fff;border-radius:10px;width:100%;font-family:Arial,sans-serif;overflow:hidden;box-shadow:0 4px 14px #00000014}.customer-header{color:#fff;z-index:10;background:#111827;justify-content:space-between;align-items:center;padding:12px 15px;display:flex;position:sticky;top:0}.customer-header h2{margin:0;font-size:18px;font-weight:600}.header-buttons{gap:8px;display:flex}.btn{cursor:pointer;border:none;border-radius:5px;padding:7px 14px;font-size:12px;font-weight:600;transition:all .2s}.save-btn{color:#fff;background:#16a34a}.save-btn:hover{background:#15803d}.clear-btn{color:#fff;background:#f59e0b}.close-btn{color:#fff;background:#dc2626}.close-btn:hover{background:#b91c1c}.customer-form{max-height:75vh;padding:15px;overflow-y:auto}.full-width{grid-column:1/-1}.customer-grid label{color:#111827;margin-bottom:4px;font-size:12px;font-weight:600;display:block}.customer-grid input,.customer-grid select,.customer-grid textarea{box-sizing:border-box;color:#111;background:#fff;border:1px solid #cbd5e1;border-radius:6px;width:100%;padding:7px 10px;font-size:13px;transition:all .2s}.customer-grid input,.customer-grid select{height:36px}.customer-grid input:focus,.customer-grid select:focus,.customer-grid textarea:focus{border-color:#2563eb;outline:none;box-shadow:0 0 0 3px #2563eb26}.customer-grid input:hover,.customer-grid select:hover{border-color:#94a3b8}.file-row{box-sizing:border-box;grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;width:100%;display:grid}.file-field{flex-direction:column;min-width:0;display:flex}.file-field label{margin-bottom:6px;font-weight:600}.file-field input[type=file]{box-sizing:border-box;cursor:pointer;background:#f8fafc;border:1px dashed #cbd5e1;width:100%;height:36px;padding:5px}.image-preview{background:#f8fafc;border:1px solid #cbd5e1;border-radius:6px;justify-content:center;align-items:center;width:180px;height:130px;margin-top:10px;display:flex;overflow:hidden}.image-preview img{object-fit:contain;cursor:pointer;width:100%;height:100%}.file-preview{text-overflow:ellipsis;white-space:nowrap;background:#f7f7f7;border:1px solid #ddd;border-radius:5px;margin-top:10px;padding:10px;font-size:13px;overflow:hidden}.customer-grid input::placeholder,.customer-grid textarea::placeholder{color:#6b7280}.customer-form::-webkit-scrollbar{width:6px}.customer-form::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:10px}@media (width<=992px){.customer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.file-row{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=768px){.customer-header{flex-direction:column;gap:10px}.customer-grid,.file-row{grid-template-columns:1fr}.header-buttons{justify-content:center;width:100%}.image-preview{width:180px;height:130px}}.today-rate{box-sizing:border-box;background:#fff;border:1px solid #e5e7eb;border-radius:14px;width:100%;max-width:650px;margin:0 auto;padding:25px;box-shadow:0 4px 15px #00000014}.today-rate h2{color:#1f2937;text-align:center;margin:0 0 25px;font-size:26px;font-weight:700}.today-rate form{flex-direction:column;gap:18px;display:flex}.today-rate form>div:not(.rate-error){flex-direction:column;gap:7px;display:flex}.today-rate label{color:#374151;font-size:14px;font-weight:600}.today-rate input{box-sizing:border-box;color:#111827;background:#fff;border:1px solid #d1d5db;border-radius:8px;outline:none;width:100%;height:44px;padding:0 13px;font-size:15px;transition:border-color .2s,box-shadow .2s,background .2s}.today-rate input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}.today-rate input[type=date]{color:#6b7280;cursor:not-allowed;background:#f9fafb}.today-rate input[type=number]{font-weight:500}.today-rate input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.today-rate input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.today-rate input[type=number]{appearance:textfield}.today-rate .rate-error{color:#991b1b;background:#fee2e2;border:1px solid #fecaca;border-radius:8px;padding:12px 14px;font-size:14px;font-weight:500}.today-rate button{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:8px;width:100%;height:46px;margin-top:5px;font-size:15px;font-weight:600;transition:background .2s,transform .1s,box-shadow .2s}.today-rate button:hover{background:#1d4ed8;box-shadow:0 4px 10px #2563eb33}.today-rate button:active{transform:scale(.98)}.today-rate button:disabled{cursor:not-allowed;box-shadow:none;background:#9ca3af}.today-rate-loading{box-sizing:border-box;text-align:center;color:#6b7280;width:100%;padding:40px;font-size:15px}@media (width<=768px){.today-rate{border-radius:10px;max-width:100%;padding:20px}.today-rate h2{font-size:23px}}@media (width<=480px){.today-rate{box-shadow:none;background:0 0;border:none;padding:15px}.today-rate h2{margin-bottom:20px;font-size:21px}.today-rate form{gap:15px}.today-rate input{height:46px;font-size:16px}.today-rate button{height:48px;font-size:16px}}:root{--erp-primary:#1e3a8a;--erp-primary-dark:#172554;--erp-primary-light:#eff6ff;--erp-success:#15803d;--erp-success-dark:#166534;--erp-danger:#dc2626;--erp-danger-dark:#b91c1c;--erp-warning:#d97706;--erp-text:#1f2937;--erp-muted:#64748b;--erp-border:#d7dee8;--erp-border-dark:#c4ccd8;--erp-bg:#eef2f7;--erp-card:#fff;--erp-header:#f8fafc;--erp-hover:#f1f5f9;--erp-focus:#dbeafe;--erp-radius:6px}.loan-page{box-sizing:border-box;background:var(--erp-bg);width:100%;height:calc(100vh - 70px);color:var(--erp-text);padding:10px;font-family:Segoe UI,Arial,Helvetica,sans-serif;font-size:13px;overflow:hidden auto}.loan-header{justify-content:space-between;align-items:center;height:42px;margin-bottom:8px;padding:0 2px;display:flex}.loan-header h2{color:var(--erp-primary-dark);letter-spacing:.2px;margin:0;font-size:18px;font-weight:600}.toolbar{align-items:center;gap:5px;display:flex}.toolbar button{background:var(--erp-primary);color:#fff;cursor:pointer;border:1px solid #0000;border-radius:5px;min-width:62px;height:32px;padding:0 12px;font-family:inherit;font-size:12px;font-weight:600;transition:background .15s,transform 50ms,box-shadow .15s}.toolbar button:hover{background:#1d4ed8;box-shadow:0 2px 5px #0f172a26}.toolbar button:active{transform:translateY(1px)}.toolbar button:nth-child(3){background:var(--erp-danger)}.toolbar button:nth-child(3):hover{background:var(--erp-danger-dark)}.toolbar button:nth-child(4){background:#475569}.toolbar button:nth-child(4):hover{background:#334155}.toolbar button:nth-child(5){background:#0f766e}.toolbar button:nth-child(5):hover{background:#115e59}.card h3{color:var(--erp-primary-dark);border-bottom:1px solid #e5e7eb;margin:0 0 9px;padding-bottom:6px;font-size:13px;font-weight:600}.search-row{align-items:center;gap:8px;margin-bottom:8px;display:flex}.search-box{flex:1;min-width:0;position:relative}.search-box input{box-sizing:border-box;border:1px solid var(--erp-border-dark);width:100%;height:34px;color:var(--erp-text);background:#fff;border-radius:5px;padding:0 10px;font-family:inherit;font-size:13px;transition:border-color .15s,box-shadow .15s}.search-box input:hover{border-color:#94a3b8}.search-box input:focus{border-color:#2563eb;outline:none;box-shadow:0 0 0 2px #2563eb1f}.new-customer-btn{background:var(--erp-success);color:#fff;cursor:pointer;white-space:nowrap;border:none;border-radius:5px;height:34px;padding:0 14px;font-family:inherit;font-size:12px;font-weight:600;transition:background .15s}.new-customer-btn:hover{background:var(--erp-success-dark)}.customer-details-below{color:#334155;background:#f8fafc;border:1px solid #dbe4ef;border-radius:5px;grid-template-columns:minmax(180px,1.2fr) minmax(130px,.8fr) minmax(180px,1fr) minmax(120px,.8fr) minmax(220px,1.5fr);gap:8px;padding:8px 10px;font-size:12px;display:grid}.customer-details-below div{white-space:nowrap;text-overflow:ellipsis;min-width:0;overflow:hidden}input,select,textarea{font-family:inherit}input:disabled,select:disabled,textarea:disabled{color:#64748b;cursor:not-allowed;background:#f1f5f9}.grid-loan{flex-wrap:nowrap;align-items:flex-end;gap:9px;width:100%;display:flex}.grid-loan>div{flex-direction:column;flex:none;display:flex}.Amt-field label{color:#475569;margin-bottom:4px;font-size:11px;font-weight:600}.grid-loan input,.grid-loan select{box-sizing:border-box;border:1px solid var(--erp-border-dark);width:150px;height:34px;color:var(--erp-text);background:#fff;border-radius:4px;padding:0 8px;font-size:12px;transition:border-color .15s,box-shadow .15s}.grid-loan input:hover,.grid-loan select:hover{border-color:#94a3b8}.grid-loan input:focus,.grid-loan select:focus{border-color:#2563eb;outline:none;box-shadow:0 0 0 2px #2563eb1a}.grid-loan>.Amt-field:first-child input{width:135px}.grid-loan>.Amt-field:nth-child(2) input{width:145px}.grid-loan>.Amt-field:nth-child(3) input{text-align:right;width:150px}.grid-loan>.Amt-field:nth-child(4) input{text-align:right;width:90px}.grid-loan>.Amt-field:nth-child(5) input{text-align:right;width:100px}.grid-loan>.Amt-field:nth-child(6) input{text-align:right;width:150px}.grid-loan>.Amt-field:nth-child(7) select{width:180px}.dropdown{z-index:10000;background:#fff;border:1px solid #cbd5e1;border-radius:5px;max-height:220px;position:absolute;top:calc(100% + 3px);left:0;right:0;overflow-y:auto;box-shadow:0 6px 16px #0f172a24}.dropdown-item{color:#334155;cursor:pointer;background:#fff;border-bottom:1px solid #f1f5f9;padding:8px 10px;font-size:12px;transition:background .12s,color .12s}.dropdown-item:last-child{border-bottom:none}.dropdown-item:hover{color:#1d4ed8;background:#eff6ff}.table-card{padding:10px;overflow-x:auto}.table-card table{border-collapse:separate;border-spacing:0;table-layout:fixed;border:1px solid var(--erp-border);background:#fff;border-radius:5px;width:100%;min-width:1000px;overflow:hidden}.table-card thead th{color:#334155;text-align:center;vertical-align:middle;white-space:nowrap;background:#e8eef6;border-bottom:1px solid #cbd5e1;border-right:1px solid #dbe2ea;height:32px;padding:4px 5px;font-size:11px;font-weight:700}.table-card thead th:last-child{border-right:none}.table-card th:first-child,.table-card td:first-child{width:45px}.table-card th:nth-child(2),.table-card td:nth-child(2){width:260px}.table-card th:nth-child(3),.table-card td:nth-child(3){width:105px}.table-card th:nth-child(4),.table-card td:nth-child(4){width:75px}.table-card th:nth-child(5),.table-card td:nth-child(5){width:100px}.table-card th:nth-child(6),.table-card td:nth-child(6){width:120px}.table-card th:nth-child(7),.table-card td:nth-child(7){width:100px}.table-card th:nth-child(8),.table-card td:nth-child(8){width:110px}.table-card th:nth-child(9),.table-card td:nth-child(9){width:120px}.table-card th:nth-child(10),.table-card td:nth-child(10){width:90px}.table-card tbody td{vertical-align:middle;background:#fff;border-bottom:1px solid #e2e8f0;border-right:1px solid #e2e8f0;height:31px;padding:2px}.table-card tbody tr:last-child td{border-bottom:none}.table-card tbody td:last-child{border-right:none}.table-card tbody tr:hover td{background:#f8fafc}.table-card tbody td input,.table-card tbody td select{box-sizing:border-box;color:#1f2937;background:0 0;border:1px solid #0000;border-radius:3px;outline:none;width:100%;height:28px;padding:2px 5px;font-family:inherit;font-size:12px}.table-card tbody td input:hover,.table-card tbody td select:hover{background:#fff;border-color:#cbd5e1}.table-card tbody td input:focus,.table-card tbody td select:focus{background:#eff6ff;border-color:#2563eb;box-shadow:inset 0 0 0 1px #2563eb14}.table-card tbody td:first-child input{text-align:center;font-weight:600}.table-card tbody td:nth-child(2) input{text-align:left}.table-card tbody td:nth-child(3) select{text-align:center}.table-card tbody td:nth-child(4) input,.table-card tbody td:nth-child(5) input,.table-card tbody td:nth-child(6) input,.table-card tbody td:nth-child(7) input,.table-card tbody td:nth-child(8) input,.table-card tbody td:nth-child(9) input,.table-card tbody td:nth-child(10) input{text-align:right}.table-card tbody td:nth-child(7) input,.table-card tbody td:nth-child(9) input{color:#0f172a;background:#f8fafc;font-weight:600}.search-cell{position:relative}.search-cell input{box-sizing:border-box;width:100%}.search-cell .dropdown{z-index:20000;background:#fff;border:1px solid #cbd5e1;border-radius:4px;width:100%;max-height:220px;position:absolute;top:calc(100% + 1px);left:0;right:auto;overflow-y:auto;box-shadow:0 6px 15px #0f172a26}.table-card>div:last-child{justify-content:flex-end;margin-top:8px;display:flex}.add-row-btn{color:#fff;cursor:pointer;background:#4338ca;border:1px solid #3730a3;border-radius:4px;height:30px;padding:0 14px;font-family:inherit;font-size:12px;font-weight:600;transition:background .15s,box-shadow .15s}.add-row-btn:hover{background:#3730a3;box-shadow:0 2px 5px #0f172a26}.footer{justify-content:flex-end;align-items:center;margin-top:6px;display:flex}.save-btn{background:var(--erp-success);color:#fff;cursor:pointer;border:none;border-radius:5px;min-width:120px;height:36px;padding:0 18px;font-family:inherit;font-size:13px;font-weight:600;transition:background .15s,box-shadow .15s;box-shadow:0 1px 2px #0f172a1f}.save-btn:disabled{cursor:not-allowed;box-shadow:none;background:#94a3b8}.customer-fullscreen-popup{background:var(--erp-bg);z-index:999999;flex-direction:column;width:100vw;height:100vh;display:flex;position:fixed;inset:0;overflow:hidden}.customer-fullscreen-header{box-sizing:border-box;background:var(--erp-primary-dark);color:#fff;justify-content:space-between;align-items:center;height:54px;min-height:54px;padding:0 18px;display:flex}.customer-fullscreen-header h3{margin:0;font-size:15px;font-weight:600}.customer-fullscreen-header button{background:var(--erp-danger);color:#fff;cursor:pointer;border:none;border-radius:4px;height:31px;padding:0 14px;font-family:inherit;font-size:12px;font-weight:600}.customer-fullscreen-header button:hover{background:var(--erp-danger-dark)}.customer-fullscreen-body{box-sizing:border-box;background:var(--erp-bg);flex:1;width:100%;padding:10px;overflow:hidden auto}.loan-fullscreen-popup{z-index:99999;background:#fff;flex-direction:column;width:100vw;height:100vh;display:flex;position:fixed;inset:0}.loan-fullscreen-header{box-sizing:border-box;background:var(--erp-primary-dark);color:#fff;justify-content:space-between;align-items:center;height:54px;min-height:54px;padding:0 18px;display:flex}.loan-fullscreen-header h3{margin:0;font-size:15px;font-weight:600}.loan-fullscreen-header button{background:var(--erp-danger);color:#fff;cursor:pointer;border:none;border-radius:4px;height:31px;padding:0 14px;font-family:inherit;font-size:12px;font-weight:600}.loan-fullscreen-header button:hover{background:var(--erp-danger-dark)}.loan-fullscreen-body{background:var(--erp-bg);flex:1;min-height:0;padding:10px;overflow:auto}.inline-popup{border:1px solid var(--erp-border);background:#fff;border-radius:6px;margin-top:10px;animation:.15s slideDown;overflow:hidden;box-shadow:0 4px 12px #0f172a1a}.inline-popup .popup-header{background:var(--erp-primary-dark);color:#fff;justify-content:space-between;align-items:center;padding:7px 10px;font-size:13px;font-weight:600;display:flex}.inline-popup .popup-header button{background:var(--erp-danger);color:#fff;cursor:pointer;border:none;border-radius:4px;padding:4px 9px;font-size:11px}.inline-popup .popup-body{max-height:320px;padding:10px;overflow-y:auto}@keyframes slideDown{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.loan-page::-webkit-scrollbar{width:7px;height:7px}.customer-fullscreen-body::-webkit-scrollbar{width:7px;height:7px}.loan-fullscreen-body::-webkit-scrollbar{width:7px;height:7px}.dropdown::-webkit-scrollbar{width:7px;height:7px}.loan-page::-webkit-scrollbar-track{background:#eef2f7}.customer-fullscreen-body::-webkit-scrollbar-track{background:#eef2f7}.loan-fullscreen-body::-webkit-scrollbar-track{background:#eef2f7}.dropdown::-webkit-scrollbar-track{background:#eef2f7}.loan-page::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:10px}.customer-fullscreen-body::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:10px}.loan-fullscreen-body::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:10px}.dropdown::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:10px}.loan-page::-webkit-scrollbar-thumb:hover{background:#94a3b8}.customer-fullscreen-body::-webkit-scrollbar-thumb:hover{background:#94a3b8}.loan-fullscreen-body::-webkit-scrollbar-thumb:hover{background:#94a3b8}.dropdown::-webkit-scrollbar-thumb:hover{background:#94a3b8}@media (width<=1200px){.customer-details-below{grid-template-columns:repeat(3,1fr)}.grid-loan{padding-bottom:4px;overflow-x:auto}.table-card{overflow-x:auto}}@media (width<=768px){.loan-page{height:auto;min-height:calc(100vh - 70px);overflow-y:auto}.loan-header{flex-direction:column;align-items:flex-start;gap:8px;height:auto}.toolbar{flex-wrap:wrap;width:100%}.toolbar button{flex:1;min-width:60px}.search-row{flex-direction:column;align-items:stretch}.new-customer-btn{width:100%}.customer-details-below{grid-template-columns:1fr;gap:5px}.grid-loan{flex-wrap:wrap;overflow-x:visible}.grid-loan>div{flex:140px}.grid-loan input,.grid-loan select,.grid-loan>.Amt-field:nth-child(n) input,.grid-loan>.Amt-field:nth-child(n) select,.footer,.save-btn{width:100%}}.loan-list-container{box-sizing:border-box;background:#f4f6fb;width:100%;min-height:100vh;padding:20px;font-family:Segoe UI,Tahoma,Arial,sans-serif}.loan-header{margin-bottom:15px}.loan-header h2{color:#1f2a37;margin:0;font-size:22px;font-weight:600}.search-row{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:15px;display:flex}.search-row input{color:#050c1b;background:#fff;border:1px solid #d7dce3;border-radius:8px;outline:none;flex:1;min-width:180px;padding:10px 12px;font-size:14px;transition:all .2s}.search-row input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb26}.clear-btn{color:#fff;cursor:pointer;background:#ef4444;border:none;border-radius:8px;padding:10px 14px;font-weight:600;transition:all .2s}.clear-btn:hover{background:#dc2626}.loan-table{border-collapse:collapse;background:#fff;border-radius:10px;width:100%;overflow:hidden;box-shadow:0 6px 18px #0000000f}.loan-table thead th{color:#fff;text-align:left;z-index:2;background:#2563eb;padding:14px 12px;font-size:14px;font-weight:600;position:sticky;top:0}.loan-table td{color:#333;border-bottom:1px solid #eef0f3;padding:12px;font-size:14px}.loan-table tbody tr{transition:all .2s}.loan-table tbody tr:hover{background:#f8faff}.loan-table tbody tr:last-child td{border-bottom:none}.loan-table td:first-child,.loan-table th:first-child{color:#111827;width:100px;font-weight:600}.loan-table td:nth-child(2),.loan-table th:nth-child(2){color:#6b7280;white-space:nowrap;width:120px}.loan-table td:nth-child(3),.loan-table th:nth-child(3){color:#2563eb;font-weight:500}.loan-table td:nth-child(4),.loan-table th:nth-child(4){white-space:nowrap;width:130px}.loan-table td:nth-child(5),.loan-table th:nth-child(5){text-align:right;width:120px;font-weight:600}.loan-table td:nth-child(6),.loan-table th:nth-child(6){text-align:center;width:90px}.loan-table button{cursor:pointer;color:#fff;background:#2563eb;border:none;border-radius:6px;padding:6px 12px;font-size:13px;transition:all .2s}.loan-table button:hover{background:#1d4ed8}.loan-table td[colspan]{text-align:center;color:#6b7280;padding:18px}@media (width<=768px){.loan-list-container{padding:10px}.search-row input{min-width:100%}.loan-table{white-space:nowrap;display:block;overflow-x:auto}.loan-table th,.loan-table td{padding:10px;font-size:13px}}.loan-table::-webkit-scrollbar{height:6px}.loan-table::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:10px}.loan-table::-webkit-scrollbar-track{background:#f1f5f9}*{box-sizing:border-box}.loan-receive-page{color:#172b4d;background:#f4f7fb;width:100%;min-height:100vh;padding:20px;font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;font-size:14px}.loan-header{background:#fff;border:1px solid #dce4ee;border-radius:10px;justify-content:space-between;align-items:center;gap:20px;min-height:72px;margin-bottom:18px;padding:16px 20px;display:flex;box-shadow:0 2px 5px #0f172a0a,0 8px 20px #0f172a0a}.header-title{align-items:center;gap:13px;display:flex}.header-icon{color:#1d4ed8;background:#eaf2ff;border-radius:9px;justify-content:center;align-items:center;width:42px;height:42px;font-size:20px;font-weight:800;display:flex}.header-title h2{color:#102a43;letter-spacing:-.25px;margin:0;font-size:21px;font-weight:700}.header-title span{color:#718096;margin-top:3px;font-size:12px;display:block}.select-loan-btn,.save-btn,.popup-close-btn,.empty-customer button{cursor:pointer;border:0;outline:none;font-family:inherit;font-weight:600;transition:background .18s,transform .15s,box-shadow .18s}.select-loan-btn{color:#fff;background:#1d4ed8;border-radius:7px;justify-content:center;align-items:center;gap:8px;min-height:40px;padding:0 17px;display:inline-flex;box-shadow:0 2px 5px #1d4ed82e}.select-loan-btn:hover{background:#1e40af;box-shadow:0 4px 10px #1d4ed838}.select-loan-btn:active{transform:translateY(1px)}.select-loan-btn span{font-size:15px}.card{background:#fff;border:1px solid #dce4ee;border-radius:10px;margin-bottom:18px;padding:20px;box-shadow:0 2px 5px #0f172a08,0 7px 18px #0f172a08}.section-header{border-bottom:1px solid #e8edf3;justify-content:space-between;align-items:center;gap:15px;margin-bottom:17px;padding-bottom:12px;display:flex}.section-header h3{color:#243b53;margin:0;font-size:15px;font-weight:700}.section-header span{color:#8290a3;margin-top:3px;font-size:11px;display:block}.customer-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;display:grid}.info-box{background:#f8fafc;border:1px solid #e3e9f0;border-radius:7px;min-height:62px;padding:11px 13px}.info-label{color:#7b8794;text-transform:uppercase;letter-spacing:.45px;margin-bottom:6px;font-size:10px;font-weight:600;display:block}.info-box strong{color:#243b53;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:650;display:block;overflow:hidden}.info-box.amount-box{background:#f0f7ff;border-color:#cfe0f5}.info-box.amount-box strong{color:#1455a3}.customer-name{min-width:0}.empty-customer{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:8px;align-items:center;gap:13px;min-height:76px;padding:14px 16px;display:flex}.empty-icon{color:#64748b;background:#eef2f7;border-radius:50%;flex:0 0 40px;justify-content:center;align-items:center;width:40px;height:40px;font-size:19px;display:flex}.empty-customer strong{color:#334e68;font-size:13px;display:block}.empty-customer span{color:#8290a3;margin-top:3px;font-size:11px;display:block}.empty-customer button{color:#1d4ed8;background:#e8f0ff;border-radius:6px;margin-left:auto;padding:8px 13px;font-size:12px}.empty-customer button:hover{background:#dbe8ff}.table-wrapper{border:1px solid #e0e6ed;border-radius:7px;width:100%;overflow-x:auto}.loan-items-table{border-collapse:collapse;background:#fff;width:100%;min-width:650px}.loan-items-table thead{background:#f5f7fa}.loan-items-table th{color:#526579;text-transform:uppercase;letter-spacing:.45px;white-space:nowrap;border-bottom:1px solid #dce3eb;height:38px;padding:8px 12px;font-size:10px;font-weight:700}.loan-items-table td{color:#334e68;border-bottom:1px solid #edf1f5;height:43px;padding:8px 12px;font-size:12px}.loan-items-table tbody tr:last-child td{border-bottom:none}.loan-items-table tbody tr:hover{background:#f8fbff}.loan-items-table .center{text-align:center}.loan-items-table .right{text-align:right;font-variant-numeric:tabular-nums}.item-name{color:#243b53;font-weight:600}.amount-cell{font-weight:700;color:#1455a3!important}.item-count{color:#64748b;background:#f1f5f9;border-radius:5px;padding:5px 9px;font-size:11px;font-weight:600}.no-items{text-align:center;font-style:italic;color:#94a3b8!important;height:75px!important}.receive-card{padding-bottom:21px}.receive-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;display:grid}.rec-input{min-width:0}.rec-input label{color:#526579;margin-bottom:6px;font-size:11px;font-weight:650;display:block}.rec-input input,.rec-input select{color:#243b53;background:#fff;border:1px solid #cfd8e3;border-radius:6px;outline:none;width:100%;height:39px;padding:0 11px;font-family:inherit;font-size:13px;font-weight:500;transition:border-color .15s,box-shadow .15s,background .15s;display:block}.rec-input input:focus,.rec-input select:focus{border-color:#4f83cc;box-shadow:0 0 0 3px #3b82f617}.rec-input.readonly input,.rec-input.calculated input,.rec-input.status-field input{color:#526579;cursor:default;background:#f6f8fa;border-color:#e0e6ed}.rec-input.readonly input{color:#526579}.rec-input.editable input,.rec-input.editable select{background:#fff}.rec-input.editable input:hover,.rec-input.editable select:hover{border-color:#aebdce}.primary-input{position:relative}.primary-input label{color:#1455a3}.primary-input input{color:#0f4c81;background:#f4f9ff;border:1.5px solid #5b8fd9;height:42px;font-size:15px;font-weight:700;box-shadow:0 1px 3px #1d4ed812}.primary-input input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1c}.calculated label{color:#64748b}.calculated input{font-variant-numeric:tabular-nums;text-align:right;font-weight:650}.net-field input{font-size:14px;font-weight:750;color:#17633d!important;background:#eef7f2!important;border-color:#b8dcc8!important}.net-field label{color:#17633d}.status-field input{text-align:center;letter-spacing:.6px;font-weight:800}.transaction-status{letter-spacing:.45px;border-radius:20px;align-items:center;gap:7px;padding:6px 10px;display:inline-flex;font-size:10px!important;font-weight:750!important}.transaction-status.open{color:#a15c00;background:#fff7e6}.transaction-status.closed{color:#16734a;background:#eaf8f0}.status-dot{background:currentColor;border-radius:50%;width:7px;height:7px}.payment-summary{background:#dce4ee;border:1px solid #dce4ee;border-radius:9px;grid-template-columns:repeat(6,minmax(0,1fr));gap:1px;margin-bottom:18px;display:grid;overflow:hidden;box-shadow:0 2px 5px #0f172a08}.summary-item{background:#fff;min-height:76px;padding:13px 14px}.summary-item span{color:#7b8794;text-transform:uppercase;letter-spacing:.35px;margin-bottom:7px;font-size:10px;font-weight:650;display:block}.summary-item strong{color:#243b53;font-variant-numeric:tabular-nums;font-size:16px;font-weight:750;display:block}.discount-summary strong{color:#9a5b13}.net-summary{background:#f1faf5}.net-summary span{color:#3f795a}.net-summary strong{color:#17633d;font-size:17px}.due-summary{background:#fffaf0}.due-summary strong{color:#a15c00}.footer{background:#fff;border:1px solid #dce4ee;border-radius:9px;justify-content:space-between;align-items:center;gap:20px;min-height:68px;padding:12px 16px;display:flex;box-shadow:0 2px 5px #0f172a0a}.footer-info{flex-direction:column;gap:3px;display:flex}.footer-label{color:#8290a3;text-transform:uppercase;letter-spacing:.45px;font-size:10px;font-weight:650}.footer-info strong{font-size:12px}.footer-open{color:#a15c00}.footer-closed{color:#16734a}.save-btn{color:#fff;background:#166534;border-radius:7px;justify-content:center;align-items:center;gap:9px;min-width:155px;height:43px;padding:0 20px;font-size:13px;font-weight:700;display:inline-flex;box-shadow:0 3px 7px #1665342e}.save-btn:hover{background:#14532d;box-shadow:0 5px 12px #1665343b}.save-btn:active{transform:translateY(1px)}.save-btn span{font-size:15px}.loan-fullscreen-header{background:#fff;border-bottom:1px solid #dce4ee;justify-content:space-between;align-items:center;min-height:68px;padding:12px 20px;display:flex;box-shadow:0 2px 7px #0f172a0f}.loan-fullscreen-header h3{color:#102a43;margin:0;font-size:17px;font-weight:700}.loan-fullscreen-header span{color:#8290a3;margin-top:3px;font-size:11px;display:block}.popup-close-btn{color:#475569;background:#f1f5f9;border:1px solid #dce4ee;border-radius:6px;align-items:center;gap:8px;height:37px;padding:0 13px;font-size:12px;display:inline-flex}.popup-close-btn:hover{color:#1e293b;background:#e2e8f0}.rec-input input[type=number]{text-align:right;font-variant-numeric:tabular-nums}.rec-input input[type=date]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}.rec-input select{cursor:pointer;appearance:auto}.loan-receive-page ::-webkit-scrollbar{width:7px;height:7px}.loan-fullscreen-popup ::-webkit-scrollbar{width:7px;height:7px}.loan-receive-page ::-webkit-scrollbar-track{background:#f1f5f9}.loan-fullscreen-popup ::-webkit-scrollbar-track{background:#f1f5f9}.loan-receive-page ::-webkit-scrollbar-thumb{background:#c4ced9;border-radius:10px}.loan-fullscreen-popup ::-webkit-scrollbar-thumb{background:#c4ced9;border-radius:10px}.loan-receive-page ::-webkit-scrollbar-thumb:hover{background:#9eacbb}.loan-fullscreen-popup ::-webkit-scrollbar-thumb:hover{background:#9eacbb}@media (width<=1200px){.customer-grid,.receive-grid,.payment-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=850px){.loan-receive-page{padding:14px}.loan-header{padding:14px 16px}.customer-grid,.receive-grid,.payment-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=600px){.loan-receive-page{padding:10px}.loan-header{flex-direction:column;align-items:flex-start;gap:13px}.select-loan-btn{width:100%}.card{margin-bottom:12px;padding:14px}.section-header{flex-direction:column;align-items:flex-start}.customer-grid,.receive-grid,.payment-summary{grid-template-columns:1fr}.empty-customer{flex-wrap:wrap;align-items:flex-start}.empty-customer button{width:100%;margin-left:0}.footer{flex-direction:column;align-items:stretch}.save-btn{width:100%}.loan-fullscreen-header{padding:11px 13px}.loan-fullscreen-body{padding:10px}}.ledger{color:#222;background:#f6f7fb;padding:20px;font-family:Segoe UI,Tahoma,sans-serif}.ledger h2{color:#1f3b57;margin-bottom:15px;font-size:22px;font-weight:600}.filter{flex-wrap:wrap;gap:10px;margin-bottom:15px;display:flex}.filter input,.filter select{color:#000;background:#fff;border:1px solid #d6dce5;border-radius:6px;height:38px;padding:0 12px;font-size:13px}.filter button{color:#fff;cursor:pointer;background:#1f3b57;border:none;border-radius:6px;height:38px;padding:0 16px;font-weight:500}.filter button:hover{background:#163047}.table-box{background:#fff;border-radius:10px;max-height:75vh;overflow:auto;box-shadow:0 2px 10px #00000014}table{border-collapse:collapse;table-layout:fixed;width:100%}th:first-child,td:first-child{text-align:center;white-space:nowrap;white-space:nowrap;text-align:center;width:120px}th:nth-child(2),td:nth-child(2){white-space:nowrap;text-align:center;width:1%;font-weight:600}th:nth-child(3),td:nth-child(3){white-space:normal;word-break:break-word;width:auto}th:nth-child(4),td:nth-child(4),th:nth-child(5),td:nth-child(5),th:nth-child(6),td:nth-child(6){text-align:center;white-space:nowrap;width:80px}thead th{z-index:10;color:#fff;background:#1f3b57;border-bottom:2px solid #294968;padding:10px;font-size:13px;font-weight:600;position:sticky;top:0}tbody td{vertical-align:top;border:1px solid #ececec;padding:8px 10px;font-size:13px}.loan-row{color:#1f3b57;background:#e8f0fa;font-weight:600}.item-row td{color:#666;background:#fcfcfc;font-size:12px}.item-row td:nth-child(3){padding-left:25px;font-style:italic}.table-box::-webkit-scrollbar{width:8px;height:8px}.table-box::-webkit-scrollbar-thumb{background:#b7c4d3;border-radius:4px}.table-box::-webkit-scrollbar-track{background:#f1f5f9}@media (width<=768px){.ledger{padding:10px}.filter{flex-direction:column}.filter input,.filter select,.filter button{width:100%}th:first-child,td:first-child{width:90px}th:nth-child(2),td:nth-child(2){width:80px}th:nth-child(3),td:nth-child(3){width:auto}th:nth-child(4),td:nth-child(4),th:nth-child(5),td:nth-child(5),th:nth-child(6),td:nth-child(6){display:none}}@media print{.filter{display:none}.table-box{box-shadow:none;overflow:visible}thead th{position:static;background:#000!important}}.export-buttons{gap:10px;margin-right:10px;display:flex}.excel-btn{color:#fff;cursor:pointer;background:#16a34a;border:none;border-radius:6px;padding:8px 14px}.excel-btn:hover{background:#15803d}.pdf-btn{color:#fff;cursor:pointer;background:#dc2626;border:none;border-radius:6px;padding:8px 14px}.pdf-btn:hover{background:#b91c1c}*{box-sizing:border-box;font-family:Segoe UI,Arial,sans-serif}.page{color:#222;background:#f4f6fb;padding:18px}h2{color:#1f3b57;margin-bottom:12px;font-size:20px;font-weight:600}.top-bar{background:#fff;border-radius:8px;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:15px;padding:10px;display:flex;box-shadow:0 2px 8px #0000000d}.search-box{width:280px;position:relative}.search-box input{color:#ddd;border:1px solid #ccc;border-radius:6px;outline:none;width:100%;padding:9px 10px;font-size:14px;transition:all .2s}.search-box input:focus{border-color:#1f3b57;box-shadow:0 0 5px #1f3b5740}.dropdown{z-index:999;background:#030000;border:1px solid #ddd;border-radius:6px;width:100%;max-height:220px;margin-top:2px;position:absolute;overflow-y:auto}.dropdown li{cursor:pointer;border-bottom:1px solid #f1f1f1;padding:10px;transition:all .2s}.dropdown li:hover{color:#fff;background:#1f3b57}.top-bar select{color:#000;background:#fff;border:1px solid #ccc;border-radius:6px;height:36px;padding:6px 10px}.btn-group{gap:8px;display:flex}.btn{cursor:pointer;border:none;border-radius:6px;padding:8px 14px;font-weight:500;transition:all .2s}.btn-pdf{color:#fff;background:#d9534f}.btn-pdf:hover{background:#c9302c}.btn-excel{color:#fff;background:#28a745}.btn-excel:hover{background:#218838}.table-wrapper{background:#fff;border-radius:8px;overflow-x:auto;box-shadow:0 3px 10px #0000000d}table{border-collapse:collapse;width:100%;font-size:13px}thead{color:#fff;background:linear-gradient(90deg,#1f3b57,#2d5a8c)}thead th{text-align:center;padding:10px;font-size:12px}tbody td{text-align:center;border-bottom:1px solid #eee;padding:8px}tbody tr:nth-child(2n){background:#f9fbfd}tbody tr:hover{background:#eef4ff}.item-row{text-align:left;background:#fff8e1;font-size:12px}.item-row td{padding-left:20px}.grand-total{color:#fff;background:#1f3b57;font-weight:700}.grand-total td{padding:10px}.message{border-radius:6px;margin-top:10px;padding:10px;font-size:13px}.message.error{color:#c0392b;background:#ffe5e5}.message.loading{color:#1f3b57;background:#eaf2ff}@media print{.top-bar{display:none!important}body{background:#fff}.table-wrapper{box-shadow:none}thead{background:#000!important}}.final-report{background:#f5f6fa;min-height:100vh;padding:20px;font-family:Arial,Helvetica,sans-serif}.search-line{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:15px;display:flex}.search-line input{border:1px solid #ccc;border-radius:5px;padding:10px;font-size:18px}.name-box{width:280px}.mobile-box{width:180px}.search-line button{cursor:pointer;color:#fff;border:none;border-radius:5px;padding:10px 18px;font-size:18px}.clear-btn{background:#d32f2f}.loan-btn{background:#1976d2}.search-line button:hover{opacity:.9}.dropdown{background:#fff;border:1px solid #ddd;width:420px;max-height:250px;margin:0 0 15px;padding:0;list-style:none;overflow-y:auto;box-shadow:0 2px 8px #0003}.dropdown li{cursor:pointer;border-bottom:1px solid #eee;padding:10px;font-size:18px}.dropdown li:hover{background:#f0f0f0}.loan-fullscreen-popup{z-index:9999;background:#fff;flex-direction:column;display:flex;position:fixed;inset:0}.loan-fullscreen-header{color:#fff;background:#1976d2;justify-content:space-between;align-items:center;padding:15px;display:flex}.loan-fullscreen-header h3{margin:0}.loan-fullscreen-header button{color:#fff;cursor:pointer;background:red;border:none;padding:8px 15px;font-size:18px}.loan-fullscreen-body{flex:1;padding:15px;overflow:auto}.top-controls{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:15px;margin-bottom:15px;display:flex}.calc-line{align-items:center;gap:10px;display:flex}.calc-line label{font-size:18px;font-weight:700}.calc-line input{padding:8px;font-size:18px}.toggle-item-btn{color:#fff;cursor:pointer;background:#6c757d;border:none;border-radius:5px;padding:8px 15px;font-size:18px}.toggle-item-btn:hover{background:#555}.interest-controls{align-items:center;gap:10px;margin-left:auto;display:flex}.interest-controls select{border:1px solid #ccc;border-radius:5px;padding:8px 10px;font-size:18px}.interest-controls button{color:#fff;cursor:pointer;background:#28a745;border:none;border-radius:5px;padding:8px 18px;font-size:18px}.interest-controls button:hover{background:#218838}.interest-controls button:disabled{cursor:not-allowed;background:#999}.loan-result{background:#fff;border-radius:6px;padding:15px;box-shadow:0 2px 10px #00000026}.loan-result table{border-collapse:collapse;width:100%;font-size:18px}.loan-result th{color:#fff;text-align:center;background:#1f4e79;border:1px solid #ccc;padding:12px}.loan-result td{text-align:center;color:#000;border:1px solid #ddd;padding:10px;font-size:16px}.loan-result tbody tr:nth-child(2n){background:#fafafa}.loan-result tbody tr:hover{background:#eaf4ff}.child-row{background:#fffbe6}.child-row td{color:#361212}.loan-result select{width:90px;padding:5px;font-size:18px}.loan-result td button{color:#fff;cursor:pointer;background:#1976d2;border:none;border-radius:4px;padding:6px 12px;font-size:16px}.loan-result td button:hover{background:#0d5cb6}@media (width<=900px){.top-controls{flex-direction:column;align-items:flex-start}.interest-controls{margin-left:0}.loan-result{overflow-x:auto}.loan-result table{min-width:1300px}}.loan-report{--primary:#173f73;--primary-dark:#102f57;--primary-light:#eaf2fb;--accent:#2563eb;--success:#15803d;--danger:#dc2626;--border:#d9e1ec;--text:#1f2937;--muted:#6b7280;--background:#f4f7fb;--white:#fff;background:var(--background);min-height:100vh;color:var(--text);box-sizing:border-box;padding:24px;font-family:Inter,Segoe UI,Arial,sans-serif}.loan-report *,.loan-report :before,.loan-report :after{box-sizing:border-box}.report-header{background:var(--white);border:1px solid var(--border);border-radius:12px;justify-content:space-between;align-items:center;margin-bottom:18px;padding:22px 26px;display:flex;box-shadow:0 2px 5px #0f172a0a,0 8px 24px #0f172a0d}.report-header h2{color:var(--primary);letter-spacing:-.3px;margin:0;font-size:23px;font-weight:700}.report-header p{color:var(--muted);margin:5px 0 0;font-size:13px;font-weight:500}.print-button{min-width:105px;height:40px;color:var(--primary);cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:8px;justify-content:center;align-items:center;padding:0 16px;font-size:13px;font-weight:600;transition:all .2s;display:inline-flex}.print-button:hover:not(:disabled){background:var(--primary-light);border-color:#a9bfdc;transform:translateY(-1px)}.print-button:disabled{opacity:.45;cursor:not-allowed}.filter-panel{background:var(--white);border:1px solid var(--border);border-radius:12px;grid-template-columns:minmax(150px,1fr) minmax(150px,1fr) minmax(170px,1fr) minmax(170px,1.2fr) minmax(130px,auto) minmax(140px,auto);align-items:end;gap:16px;margin-bottom:16px;padding:20px;display:grid;box-shadow:0 2px 5px #0f172a08,0 6px 18px #0f172a0a}.form-group{min-width:0}.form-group>label:first-child{color:#374151;letter-spacing:.15px;margin-bottom:7px;font-size:12px;font-weight:600;display:block}.form-group input[type=date],.form-group select{color:#1f2937;background:#fff;border:1px solid #cfd8e3;border-radius:7px;outline:none;width:100%;height:40px;padding:0 11px;font-size:13px;font-weight:500;transition:border-color .2s,box-shadow .2s,background .2s}.form-group input[type=date]:hover,.form-group select:hover{border-color:#aebdce}.form-group input[type=date]:focus,.form-group select:focus{border-color:var(--accent);background:#fff;box-shadow:0 0 0 3px #2563eb1a}.checkbox-group{min-width:160px}.category-buttons{gap:7px;display:flex}.category-buttons button{color:#334155;cursor:pointer;background:#f8fafc;border:1px solid #cbd5e1;border-radius:7px;height:40px;padding:0 13px;font-size:12px;font-weight:600;transition:all .2s}.category-buttons button:hover{border-color:var(--accent);background:var(--primary-light);color:var(--primary)}.category-buttons button:active{transform:scale(.98)}.switch{cursor:pointer;align-items:center;height:40px;display:flex}.switch input{opacity:0;pointer-events:none;position:absolute}.switch span{background:#cbd5e1;border-radius:20px;width:43px;height:23px;transition:background .2s;display:block;position:relative}.switch span:after{content:"";background:#fff;border-radius:50%;width:17px;height:17px;transition:transform .2s;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #00000040}.switch input:checked+span{background:var(--accent)}.switch input:checked+span:after{transform:translate(20px)}.generate-button{background:var(--primary);color:#fff;cursor:pointer;border:none;border-radius:7px;height:40px;padding:0 20px;font-size:13px;font-weight:600;transition:background .2s,transform .2s,box-shadow .2s;box-shadow:0 2px 5px #173f7333}.generate-button:hover:not(:disabled){background:var(--primary-dark);transform:translateY(-1px);box-shadow:0 5px 12px #173f7338}.generate-button:active:not(:disabled){transform:translateY(0)}.generate-button:disabled{opacity:.6;cursor:wait}.category-panel{background:var(--white);border:1px solid var(--border);border-radius:12px;margin-bottom:16px;overflow:hidden;box-shadow:0 2px 5px #0f172a08,0 6px 18px #0f172a0a}.category-title{border-bottom:1px solid var(--border);color:#334155;background:#f8fafc;justify-content:space-between;align-items:center;padding:13px 18px;font-size:13px;font-weight:700;display:flex}.category-title span:last-child{background:var(--primary-light);min-width:42px;color:var(--primary);text-align:center;border-radius:20px;padding:4px 9px;font-size:11px}.category-list{flex-wrap:wrap;gap:8px;max-height:145px;padding:14px 18px;display:flex;overflow-y:auto}.category-item{color:#374151;cursor:pointer;background:#fff;border:1px solid #dce3ec;border-radius:7px;align-items:center;gap:8px;min-height:34px;padding:6px 11px;font-size:12px;font-weight:500;transition:all .18s;display:inline-flex}.category-item:hover{background:var(--primary-light);border-color:#9db7d8}.category-item input{width:15px;height:15px;accent-color:var(--accent);cursor:pointer;margin:0}.category-item:has(input:checked){color:var(--primary);background:#edf4fc;border-color:#8eacd0;font-weight:600}.no-category{width:100%;color:var(--muted);text-align:center;padding:20px;font-size:13px}.error-message{border:1px solid #fecaca;border-left:4px solid var(--danger);color:#991b1b;background:#fef2f2;border-radius:7px;align-items:center;min-height:42px;margin-bottom:16px;padding:10px 14px;font-size:13px;font-weight:500;display:flex}.report-container{background:var(--white);border:1px solid var(--border);border-radius:12px;overflow:hidden;box-shadow:0 2px 5px #0f172a0a,0 8px 24px #0f172a0d}.report-title{color:var(--primary);text-align:center;letter-spacing:.5px;padding:18px 20px 6px;font-size:17px;font-weight:800}.report-info{color:#64748b;flex-wrap:wrap;justify-content:center;align-items:center;gap:28px;padding:8px 20px 17px;font-size:12px;font-weight:500;display:flex}.report-info span{position:relative}.report-info span:not(:last-child):after{content:"";background:#94a3b8;border-radius:50%;width:4px;height:4px;position:absolute;top:50%;right:-15px;transform:translateY(-50%)}.table-wrapper{border-top:1px solid var(--border);width:100%;overflow:auto visible}.report-table{border-collapse:separate;border-spacing:0;width:100%;min-width:1050px;font-size:12px}.report-table thead th{z-index:2;background:var(--primary);color:#fff;text-align:left;letter-spacing:.35px;white-space:nowrap;border-right:1px solid #ffffff1f;padding:11px 10px;font-size:11px;font-weight:700;position:sticky;top:0}.report-table thead th:first-child{text-align:center}.report-table thead th:nth-child(5),.report-table thead th:nth-child(7),.report-table thead th:nth-child(8),.report-table thead th:nth-child(9),.report-table thead th:nth-child(10){text-align:right}.report-table tbody td{color:#374151;vertical-align:middle;white-space:nowrap;background:#fff;border-bottom:1px solid #e8edf3;border-right:1px solid #e8edf3;padding:10px}.report-table tbody tr:nth-child(2n) td{background:#f8fafc}.report-table tbody tr:hover td{background:#eef5fd}.report-table td.center{text-align:center}.report-table td.number{text-align:right;font-variant-numeric:tabular-nums;font-family:Segoe UI,Arial,sans-serif}.report-table tfoot td{border-top:2px solid var(--primary);color:var(--primary);white-space:nowrap;background:#edf3fa;padding:12px 10px;font-size:12px;font-weight:700}.report-table tfoot td.number{text-align:right;font-variant-numeric:tabular-nums}.category-list::-webkit-scrollbar{width:7px;height:7px}.table-wrapper::-webkit-scrollbar{width:7px;height:7px}.category-list::-webkit-scrollbar-track{background:#f1f5f9}.table-wrapper::-webkit-scrollbar-track{background:#f1f5f9}.category-list::-webkit-scrollbar-thumb{background:#b7c3d1;border-radius:10px}.table-wrapper::-webkit-scrollbar-thumb{background:#b7c3d1;border-radius:10px}.category-list::-webkit-scrollbar-thumb:hover{background:#94a3b8}.table-wrapper::-webkit-scrollbar-thumb:hover{background:#94a3b8}@media (width<=1200px){.filter-panel{grid-template-columns:repeat(3,minmax(150px,1fr))}.generate-button{width:100%}}@media (width<=768px){.loan-report{padding:12px}.report-header{align-items:flex-start;gap:15px;padding:17px}.report-header h2{font-size:19px}.print-button{min-width:auto}.filter-panel{grid-template-columns:1fr;gap:12px;padding:15px}.category-buttons{width:100%}.category-buttons button{flex:1}.report-title{padding-left:12px;padding-right:12px;font-size:15px}.report-info{gap:12px}.report-info span:after{display:none!important}}@media (width<=480px){.report-header{flex-direction:column}.print-button{width:100%}.category-list{padding:12px}.category-item{width:100%}}@media print{@page{size:A4 landscape;margin:8mm}body{background:#fff!important}.loan-report{background:#fff;padding:0}.report-header,.filter-panel,.category-panel,.error-message{display:none!important}.report-container{box-shadow:none;border:none;border-radius:0}.report-title{padding-top:0;font-size:16px}.report-info{padding-bottom:10px}.table-wrapper{border:none;overflow:visible}.report-table{width:100%;min-width:0;font-size:9px}.report-table thead th{padding:6px 5px;font-size:8px;position:static}.report-table tbody td{padding:5px;font-size:8px}.report-table tfoot td{padding:6px 5px;font-size:8px}.report-table tr{page-break-inside:avoid}.report-table thead{display:table-header-group}.report-table tfoot{display:table-row-group}}
