* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background: #eef2f7;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}
/* Professional Top Navigation */
.top-nav {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-bottom: 1px solid #e9ecef;
    padding: 0.5rem 0;
}
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-icon {
    width: 36px;
    height: 36px;
    background: #071bbb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}
.logo-text {
    font-weight: 700;
    font-size: 1rem;
    color: #1a2c3e;
    letter-spacing: -0.2px;
}
.logo-text small {
    font-weight: 400;
    font-size: 0.75rem;
    color: #6c757d;
    display: block;
}
.nav-menu {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-menu li a {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    border-radius: 8px;
    transition: all 0.2s;
    letter-spacing: 0.2px;
}
.nav-menu li a:hover {
    background: #f0f4f9;
    color: #071bbb;
}
/* Page Header */
.page-header {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem 2rem;
}
.header-container {
    max-width: 1400px;
    margin: 0 auto;
}
.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f2b1d;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.page-title i {
    color: #071bbb;
    font-size: 1.6rem;
}
.org-sub {
    font-size: 0.8rem;
    color: #5b6e8c;
    margin-top: 6px;
    letter-spacing: 0.2px;
}
/* Main - clean empty state */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 400px;
}
.placeholder-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e9edf2;
    padding: 3rem 2rem;
    text-align: center;
    color: #8b9bb0;
}
@media (max-width: 992px) {
    .nav-container {
    flex-direction: column;
    gap: 12px;
    padding: 0.8rem 1rem;
    }
    .nav-menu {
    justify-content: center;
    }
    .page-title {
    font-size: 1.2rem;
    flex-wrap: wrap;
    }
}
.master-dropdown-menu {
position: absolute;
top: 100%;
left: 0;
background: white;
min-width: 250px;
border-radius: 12px;
box-shadow: 0 10px 25px rgba(0,0,0,0.1);
padding: 0.5rem 0;
z-index: 1000;
display: none;
}

.master-dropdown-menu.show {
display: block;
}

.master-dropdown-menu a {
display: flex;
align-items: center;
gap: 12px;
padding: 0.7rem 1.2rem;
text-decoration: none;
color: #2c3e50;
font-size: 0.9rem;
transition: all 0.2s;
}

.master-dropdown-menu a i {
width: 22px;
color: #6c86a3;
}

.master-dropdown-menu a:hover {
background: #f5f7fb;
color: #1a3c2c;
}

.master-dropdown-menu a:hover i {
color: #1a3c2c;
}

.exit-item {
border-top: 1px solid #eef2f6;
margin-top: 4px;
color: #dc3545 !important;
}

.exit-item i {
color: #dc3545 !important;
}

.loanprep-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    z-index: 1000;
    display: none;
}

.loanprep-dropdown-menu.show {
    display: block;
}

.loanprep-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.7rem 1.2rem;
    text-decoration: none;
    color: #2c3e50;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.loanprep-dropdown-menu a i {
    width: 22px;
    color: #6c86a3;
}

.loanprep-dropdown-menu a:hover {
    background: #f5f7fb;
    color: #1a3c2c;
}

.loanprep-dropdown-menu a:hover i {
    color: #1a3c2c;
}

.member-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 260px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    z-index: 1000;
    display: none;
}

.member-dropdown-menu.show {
    display: block;
}

.member-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.7rem 1.2rem;
    text-decoration: none;
    color: #2c3e50;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.member-dropdown-menu a i {
    width: 22px;
    color: #6c86a3;
    font-size: 1rem;
}

.member-dropdown-menu a:hover {
    background: #f5f7fb;
    color: #1a3c2c;
}

.member-dropdown-menu a:hover i {
    color: #1a3c2c;
}

.collector-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 260px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
  z-index: 1000;
  display: none;
}

.collector-dropdown-menu.show {
  display: block;
}

.collector-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.7rem 1.2rem;
  text-decoration: none;
  color: #2c3e50;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.collector-dropdown-menu a i {
  width: 22px;
  color: #6c86a3;
  font-size: 1rem;
}

.collector-dropdown-menu a:hover {
  background: #f5f7fb;
  color: #1a3c2c;
}

.collector-dropdown-menu a:hover i {
  color: #1a3c2c;
}

.loansection-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 280px;
  max-height: 400px;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
  z-index: 1000;
  display: none;
}

.loansection-dropdown-menu.show {
  display: block;
}

.loansection-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  color: #2c3e50;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.loansection-dropdown-menu a i {
  width: 22px;
  color: #6c86a3;
  font-size: 0.95rem;
}

.loansection-dropdown-menu a:hover {
  background: #f5f7fb;
  color: #1a3c2c;
}

.loansection-dropdown-menu a:hover i {
  color: #1a3c2c;
}

/* Custom scrollbar */
.loansection-dropdown-menu::-webkit-scrollbar {
  width: 5px;
}

.loansection-dropdown-menu::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.loansection-dropdown-menu::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

/* Modification Dropdown */
.modification-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 240px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
  z-index: 1000;
  display: none;
}

/* Accounts Dropdown */
.accounts-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 260px;
  max-height: 400px;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
  z-index: 1000;
  display: none;
}

/* Report Dropdown */
.report-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 260px;
  max-height: 400px;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
  z-index: 1000;
  display: none;
}

/* Common styles for all dropdowns */
.modification-dropdown-menu.show,
.accounts-dropdown-menu.show,
.report-dropdown-menu.show {
  display: block;
}

.modification-dropdown-menu a,
.accounts-dropdown-menu a,
.report-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.65rem 1.2rem;
  text-decoration: none;
  color: #2c3e50;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.modification-dropdown-menu a i,
.accounts-dropdown-menu a i,
.report-dropdown-menu a i {
  width: 22px;
  color: #6c86a3;
  font-size: 0.95rem;
}

.modification-dropdown-menu a:hover,
.accounts-dropdown-menu a:hover,
.report-dropdown-menu a:hover {
  background: #f5f7fb;
  color: #1a3c2c;
}

.modification-dropdown-menu a:hover i,
.accounts-dropdown-menu a:hover i,
.report-dropdown-menu a:hover i {
  color: #1a3c2c;
}

/* Scrollbar for dropdowns with many items */
.accounts-dropdown-menu::-webkit-scrollbar,
.report-dropdown-menu::-webkit-scrollbar {
  width: 5px;
}

.accounts-dropdown-menu::-webkit-scrollbar-track,
.report-dropdown-menu::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.accounts-dropdown-menu::-webkit-scrollbar-thumb,
.report-dropdown-menu::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

/* State Master Wrapper - Full Width Layout */
.state-master-wrapper {
  width: 100%;
  padding: 1.5rem;
  background: #f5f7fb;
  min-height: calc(100vh - 120px);
  animation: fadeIn 0.3s ease;
}

.state-master-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

/* Form Card - Professional Design */
.form-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid #eef2f8;
  transition: transform 0.2s, box-shadow 0.2s;
}

.form-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.form-header {
  background: linear-gradient(135deg, #2c5f4a 0%, #1e4235 100%);
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: white;
}

.header-text h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.3px;
}

.header-text p {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

.form-body {
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #2d4a3b;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}

.form-group label i {
  margin-right: 6px;
  color: #2c5f4a;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid #e4e9f0;
  border-radius: 12px;
  font-size: 0.9rem;
  transition: all 0.2s;
  background: #fefefe;
}

.form-control:focus {
  outline: none;
  border-color: #2c5f4a;
  background: white;
  box-shadow: 0 0 0 4px rgba(44, 95, 74, 0.1);
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.btn-new, .btn-save {
  padding: 0.7rem 1.8rem;
  border: none;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.btn-new {
  background: #f0f2f5;
  color: #4a5568;
  border: 1px solid #e2e8f0;
}

.btn-new:hover {
  background: #10b981;
  transform: translateY(-1px);
}

.btn-save {
  background: linear-gradient(135deg, #2c5f4a 0%, #1e4235 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(44, 95, 74, 0.2);
}

.btn-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(44, 95, 74, 0.3);
}

/* Table Card */
.table-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid #eef2f8;
}

.table-header {
  padding: 1.2rem 2rem;
  background: #fafcfb;
  border-bottom: 2px solid #eef2f8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.table-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #2d4a3b;
}

.table-header h4 i {
  margin-right: 8px;
  color: #2c5f4a;
}

.record-count {
  background: #e8f0ed;
  padding: 0.3rem 0.9rem;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #2c5f4a;
}

.table-responsive {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid #edf2f7;
}

.data-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #2d4a3b;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table tr:hover {
  background: #fafdfb;
}

.btn-delete {
  background: #fee2e2;
  color: #dc3545;
  border: none;
  padding: 0.35rem 1rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-delete i {
  margin-right: 4px;
}

.btn-delete:hover {
  background: #dc3545;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .state-master-wrapper {
    padding: 1rem;
  }
  .form-body {
    padding: 1.2rem;
  }
  .form-actions {
    justify-content: stretch;
  }
  .btn-new, .btn-save {
    flex: 1;
    justify-content: center;
  }
  .table-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Master Form Container - Full Width */
.master-form-container {
  width: 100%;
  padding: 1.5rem;
  background: #f5f7ff;
  min-height: calc(100vh - 120px);
  animation: fadeIn 0.3s ease;
}

.master-form-card {
  max-width: 1400px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border: 1px solid #e8ecf5;
}

/* Header with Blue Theme */
.master-form-header {
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 50%, #1e40af 100%);
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-icon {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: white;
}

.header-text h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.3px;
}

.header-text p {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.master-form-body {
  padding: 2rem;
}

/* Form Layouts */
.form-two-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.form-row-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.form-row-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
}

.form-group label i {
  margin-right: 6px;
  color: #4f46e5;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.9rem;
  transition: all 0.2s;
  background: #fefefe;
}

.form-control:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

textarea.form-control {
  resize: vertical;
}

/* Relation Master Specific */
.relation-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.relation-selection {
  background: #f8fafc;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  border: 2px solid #e2e8f0;
}

.relation-selection label {
  display: block;
  font-weight: 700;
  color: #4f46e5;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.selected-relation {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1e293b;
  background: white;
  padding: 1rem;
  border-radius: 12px;
  border: 2px dashed #4f46e5;
}

.relation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.6rem;
}

.relation-grid span {
  background: #f1f5f9;
  padding: 0.6rem 0.8rem;
  text-align: center;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s;
}

.relation-grid span:hover {
  background: #4f46e5;
  color: white;
  transform: translateY(-2px);
}

.relation-grid span.active {
  background: #4f46e5;
  color: white;
}

/* Branch Code List */
.code-list {
  background: #f8fafc;
  border-radius: 12px;
  padding: 0.8rem;
  border: 1px solid #e2e8f0;
}

.code-item {
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  font-family: monospace;
}

.code-item:last-child {
  border-bottom: none;
}

/* Zone Entry */
.zone-entry {
  background: #f8fafc;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.zone-actions-inline {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.btn-new-small, .btn-save-small {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
}

.btn-new-small {
  background: #e2e8f0;
  color: #475569;
}

.btn-save-small {
  background: #4f46e5;
  color: white;
}

/* Data Table */
.data-table-container {
  overflow-x: auto;
  margin-top: 1rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.data-table th {
  background: #f1f5f9;
  font-weight: 700;
  color: #4f46e5;
  font-size: 0.8rem;
}

.data-table tr:hover {
  background: #faf5ff;
}

/* Zone Data Table - Updated columns */
.data-table th:nth-child(1),
.data-table td:nth-child(1) {
  width: 25%;
}

.data-table th:nth-child(2),
.data-table td:nth-child(2) {
  width: 25%;
}

.data-table th:nth-child(3),
.data-table td:nth-child(3) {
  width: 50%;
}

/* Buttons */
.master-form-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid #eef2ff;
}

.btn-new, .btn-add, .btn-update, .btn-save, 
.btn-trash, .btn-clear, .btn-exit {
  padding: 0.7rem 1.6rem;
  border: none;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.btn-new, .btn-add {
  background: #10b981;
  color: white;
}

.btn-update {
  background: #f59e0b;
  color: white;
}

.btn-save {
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color: white;
}

.btn-trash {
  background: #ef4444;
  color: white;
}

.btn-clear {
  background: #64748b;
  color: white;
}

.btn-exit {
  background: #1e293b;
  color: white;
}

.btn-new:hover, .btn-add:hover, .btn-update:hover,
.btn-save:hover, .btn-trash:hover, .btn-clear:hover,
.btn-exit:hover {
  transform: translateY(-2px);
  filter: brightness(105%);
}

/* Responsive */
@media (max-width: 768px) {
  .master-form-body {
    padding: 1.2rem;
  }
  .relation-layout {
    grid-template-columns: 1fr;
  }
  .form-row-three {
    grid-template-columns: 1fr;
  }
  .master-form-actions {
    justify-content: stretch;
  }
  .master-form-actions button {
    flex: 1;
    justify-content: center;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Company Profile Specific Styles */
.profile-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.profile-column {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.radio-row {
  display: flex;
  gap: 2rem;
  padding: 1rem 0;
  border-top: 1px solid #eef2ff;
  border-bottom: 1px solid #eef2ff;
  margin: 1rem 0;
}

.radio-group {
  display: flex;
 align-items: center;
  gap: 1rem;
}

.radio-label {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.85rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: #475569;
  cursor: pointer;
}

.upload-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1rem 0;
}

.upload-box label {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.5rem;
}

.upload-preview {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.preview-text {
  font-weight: 500;
  color: #4f46e5;
  font-size: 0.9rem;
}

.upload-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-upload, .btn-remove {
  padding: 0.3rem 0.8rem;
  border: none;
  border-radius: 30px;
  font-size: 0.7rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-upload {
  background: #e2e8f0;
  color: #475569;
}

.btn-upload:hover {
  background: #cbd5e1;
}

.btn-remove {
  background: #fee2e2;
  color: #ef4444;
}

.btn-remove:hover {
  background: #ef4444;
  color: white;
}

.bg-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.bg-placeholder {
  flex: 1;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  border: 2px dashed #4f46e5;
}

.bg-placeholder i {
  font-size: 2rem;
  color: #4f46e5;
  margin: 0 0.2rem;
}

.bg-placeholder span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: #4f46e5;
}

.btn-upload-bg {
  padding: 0.6rem 1.2rem;
  background: #e2e8f0;
  border: none;
  border-radius: 40px;
  font-weight: 500;
  cursor: pointer;
}

.btn-upload-bg:hover {
  background: #cbd5e1;
}

@media (max-width: 768px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .radio-row {
    flex-direction: column;
    gap: 0.8rem;
  }
  .upload-preview {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Rank Master */
.rank-entry-section {
  background: #f8fafc;
  border-radius: 16px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}

.rank-actions-inline {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.btn-add-small {
  background: #4f46e5;
  color: white;
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
}

.btn-delete-row {
  background: #fee2e2;
  color: #ef4444;
  border: none;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  cursor: pointer;
}

.btn-delete-row:hover {
  background: #ef4444;
  color: white;
}

/* Accounts Code Sequence */
.info-note {
  background: #eef2ff;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-size: 0.8rem;
  color: #4f46e5;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sequence-table-container {
  overflow-x: auto;
}

.sequence-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.sequence-table th,
.sequence-table td {
  padding: 0.8rem;
  text-align: center;
  border: 1px solid #e2e8f0;
}

.sequence-table th {
  background: #f1f5f9;
  font-weight: 600;
  color: #4f46e5;
}

.sub-header th {
  background: #f8fafc;
  font-size: 0.7rem;
  font-weight: normal;
  color: #64748b;
}

.label-cell {
  background: #f8fafc;
  font-weight: 600;
  text-align: left !important;
}

.seq-input {
  width: 100px;
  padding: 0.4rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  text-align: center;
}

.seq-input.preview {
  background: #f1f5f9;
  font-weight: 500;
  color: #4f46e5;
}

.btn-set {
  background: #4f46e5;
  color: white;
  border: none;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.7rem;
}

/* Global Configuration */
.config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.config-card {
  background: #f8fafc;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.config-card-header {
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.config-card-header i {
  color: white;
  font-size: 1.2rem;
}

.config-card-header h4 {
  margin: 0;
  font-size: 0.9rem;
  color: white;
}

.config-card-body {
  padding: 1rem;
}

.config-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.config-row:last-child {
  border-bottom: none;
}

.config-row label {
  font-weight: 500;
  color: #1e293b;
  font-size: 0.8rem;
}

.config-input {
  width: 150px;
  padding: 0.4rem 0.6rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-align: right;
}

/* Config Row Text - for non-input guide text */
.config-row-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.config-row-text:last-child {
  border-bottom: none;
}

.config-row-text label {
  font-weight: 500;
  color: #1e293b;
  font-size: 0.8rem;
}

.config-text {
  width: 150px;
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  color: #4f46e5;
  font-weight: 500;
  text-align: right;
}

/* Save button inside each config card */
.config-save-btn {
  padding: 0.8rem 1rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  background: #fefefe;
}

.btn-config-save {
  background: #4f46e5;
  color: white;
  border: none;
  padding: 0.4rem 1.2rem;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-config-save:hover {
  background: #3b82f6;
  transform: translateY(-1px);
}

/* Fix alignment for config rows */
.config-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.config-row:last-child {
  border-bottom: none;
}

.config-row label {
  font-weight: 500;
  color: #1e293b;
  font-size: 0.8rem;
  flex: 1;
}

.config-input {
  width: 150px;
  padding: 0.4rem 0.6rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-align: right;
  font-size: 0.8rem;
}

.config-input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

/* Biometric Scanner Layout */
.biometric-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1.5rem;
}

.biometric-left {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.biometric-right {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Biometric Card */
.biometric-card {
  background: #f8fafc;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.biometric-card-header {
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.biometric-card-header i {
  color: white;
  font-size: 1.2rem;
}

.biometric-card-header h4 {
  margin: 0;
  font-size: 0.9rem;
  color: white;
  font-weight: 600;
}

.biometric-card-body {
  padding: 1.2rem;
}

/* Device Status */
.device-status, .device-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.status-label, .detail-label {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.85rem;
}

.status-value, .detail-value {
  color: #4f46e5;
  font-weight: 500;
  font-size: 0.85rem;
}

/* Button Groups */
.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-capture-start, .btn-capture-stop, .btn-match-iso, .btn-match-ansi {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-capture-start {
  background: #10b981;
  color: white;
}

.btn-capture-start:hover {
  background: #059669;
  transform: translateY(-1px);
}

.btn-capture-stop {
  background: #ef4444;
  color: white;
}

.btn-capture-stop:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.btn-match-iso {
  background: #4f46e5;
  color: white;
}

.btn-match-iso:hover {
  background: #3b82f6;
  transform: translateY(-1px);
}

.btn-match-ansi {
  background: #f59e0b;
  color: white;
}

.btn-match-ansi:hover {
  background: #d97706;
  transform: translateY(-1px);
}

/* Finger Selector */
.finger-selector {
  margin-bottom: 1rem;
}

.finger-select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.9rem;
  background: white;
  cursor: pointer;
}

.finger-select:focus {
  outline: none;
  border-color: #4f46e5;
}

.finger-preview {
  background: white;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s;
}

.finger-preview i {
  font-size: 2.5rem;
  color: #94a3b8;
  display: block;
  margin-bottom: 0.5rem;
}

.finger-preview span {
  font-size: 0.8rem;
  color: #64748b;
}

.finger-preview.captured {
  border-color: #10b981;
  background: #ecfdf5;
}

.finger-preview.captured i {
  color: #10b981;
}

/* Data Textarea */
.data-textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.75rem;
  font-family: 'Courier New', monospace;
  resize: vertical;
  background: #fefefe;
}

.data-textarea:focus {
  outline: none;
  border-color: #4f46e5;
}

/* User Name Input */
.user-name-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.9rem;
}

.user-name-input:focus {
  outline: none;
  border-color: #4f46e5;
}

/* Set Fingerprint Button */
.btn-set-fingerprint {
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color: white;
  border: none;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-set-fingerprint:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Responsive */
@media (max-width: 900px) {
  .biometric-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .button-group {
    flex-direction: column;
  }
  .btn-capture-start, .btn-capture-stop, .btn-match-iso, .btn-match-ansi {
    justify-content: center;
  }
}

/* Biometric Scanner - Complete Layout */
.biometric-main-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1.5rem;
}

.biometric-left-panel {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.biometric-right-panel {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Biometric Card */
.biometric-card {
  background: #f8fafc;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.biometric-card-header {
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  padding: 0.7rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.biometric-card-header i {
  color: white;
  font-size: 1.1rem;
}

.biometric-card-header h4 {
  margin: 0;
  font-size: 0.85rem;
  color: white;
  font-weight: 600;
}

.biometric-card-body {
  padding: 1rem;
}

/* Info Rows */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.8rem;
}

.info-value {
  color: #4f46e5;
  font-weight: 500;
  font-size: 0.8rem;
}

/* Control Button Groups */
.control-btn-group {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.btn-device, .btn-capture-start, .btn-capture-stop, 
.btn-match-iso, .btn-match-ansi, .btn-detect, .btn-clear-image,
.btn-preview, .btn-quality {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-device {
  background: #e2e8f0;
  color: #1e293b;
}

.btn-device:hover {
  background: #cbd5e1;
  transform: translateY(-1px);
}

.btn-capture-start {
  background: #10b981;
  color: white;
}

.btn-capture-start:hover {
  background: #059669;
  transform: translateY(-1px);
}

.btn-capture-stop {
  background: #ef4444;
  color: white;
}

.btn-capture-stop:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.btn-match-iso {
  background: #4f46e5;
  color: white;
}

.btn-match-iso:hover {
  background: #4338ca;
  transform: translateY(-1px);
}

.btn-match-ansi {
  background: #f59e0b;
  color: white;
}

.btn-match-ansi:hover {
  background: #d97706;
  transform: translateY(-1px);
}

.btn-detect {
  background: #06b6d4;
  color: white;
}

.btn-detect:hover {
  background: #0891b2;
  transform: translateY(-1px);
}

.btn-clear-image {
  background: #64748b;
  color: white;
}

.btn-clear-image:hover {
  background: #475569;
  transform: translateY(-1px);
}

.btn-preview {
  background: #8b5cf6;
  color: white;
}

.btn-preview:hover {
  background: #7c3aed;
  transform: translateY(-1px);
}

.btn-quality {
  background: #ec489a;
  color: white;
}

.btn-quality:hover {
  background: #db2777;
  transform: translateY(-1px);
}

/* Capture Options */
.capture-options {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid #e2e8f0;
}

.option-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.option-row label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e293b;
}

.timeout-input, .quality-input {
  width: 100px;
  padding: 0.3rem 0.6rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-align: right;
  font-size: 0.75rem;
}

/* Detect Status */
.detect-status {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 0.6rem;
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
}

.detect-status.finger-detected {
  background: #d1fae5;
  color: #059669;
}

/* Fingerprint Preview */
.preview-actions {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.fingerprint-preview {
  background: white;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.preview-placeholder {
  text-align: center;
}

.preview-placeholder i {
  font-size: 3rem;
  color: #94a3b8;
  display: block;
  margin-bottom: 0.5rem;
}

.preview-placeholder span {
  font-size: 0.75rem;
  color: #64748b;
}

.fingerprint-preview.has-image {
  border-color: #10b981;
  background: #ecfdf5;
}

.preview-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.quality-score {
  margin-top: 0.8rem;
  text-align: center;
  padding: 0.5rem;
  background: #eef2ff;
  border-radius: 10px;
}

.quality-score span {
  font-size: 0.75rem;
  color: #4f46e5;
}

/* Finger Select */
.finger-select {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.85rem;
  background: white;
  cursor: pointer;
}

.finger-select:focus {
  outline: none;
  border-color: #4f46e5;
}

/* Data Textarea */
.data-textarea {
  width: 100%;
  padding: 0.6rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.7rem;
  font-family: 'Courier New', monospace;
  resize: vertical;
  background: #fefefe;
}

.data-textarea:focus {
  outline: none;
  border-color: #4f46e5;
}

/* User Name Input */
.user-name-input {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.user-name-input:focus {
  outline: none;
  border-color: #4f46e5;
}

/* Set Fingerprint Button */
.btn-set-fingerprint {
  width: 100%;
  padding: 0.7rem;
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color: white;
  border: none;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-set-fingerprint:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Responsive */
@media (max-width: 900px) {
  .biometric-main-grid {
    grid-template-columns: 1fr;
  }
}

/* User Master Specific Styles */
.user-details-section {
  background: #f8fafc;
  border-radius: 16px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e2e8f0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.section-title i {
  color: #4f46e5;
  font-size: 1.2rem;
}

.section-title h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
}

.details-form {
  margin-top: 0.5rem;
}

/* Access Section */
.access-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.access-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.8rem;
  padding: 0.5rem;
  background: white;
  border-radius: 12px;
}

.access-label {
  font-weight: 700;
  color: #1e293b;
  min-width: 130px;
  font-size: 0.85rem;
}

.access-checkboxes {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.access-checkboxes label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: #475569;
  cursor: pointer;
}

.access-checkboxes input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #4f46e5;
}

.access-yes {
  background: #10b981;
  color: white;
  padding: 0.2rem 0.8rem;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 700;
}

/* User Master Table */
.user-master-section {
  margin-bottom: 1.5rem;
}

.btn-select-row {
  background: #4f46e5;
  color: white;
  border: none;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-select-row:hover {
  background: #3b82f6;
}

.data-table tbody tr {
  cursor: pointer;
}

.data-table tbody tr:hover {
  background: #eef2ff;
}

.data-table tbody tr.selected {
  background: #e0e7ff;
}

/* Two Column Grid */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.login-branch-section, .user-type-access-section {
  background: #f8fafc;
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid #e2e8f0;
}

.branch-list, .access-list {
  margin-top: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
}

.branch-item, .access-item {
  padding: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.branch-item:last-child, .access-item:last-child {
  border-bottom: none;
}

.branch-item input, .access-item input {
  width: 16px;
  height: 16px;
  accent-color: #4f46e5;
  cursor: pointer;
}

.branch-item label, .access-item label {
  font-size: 0.85rem;
  color: #1e293b;
  cursor: pointer;
  margin: 0;
}

/* Contact Row */
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.half-width {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .two-col-grid {
    grid-template-columns: 1fr;
  }
  .contact-row {
    grid-template-columns: 1fr;
  }
  .access-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .form-row-three {
    grid-template-columns: 1fr;
  }
}

/* Area Survey Form Styles */
.area-survey-container {
    padding: 20px;
    background: #f5f7fa;
    min-height: calc(100vh - 60px);
}

.form-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.form-header h2 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
}

.form-subtitle {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
}

.area-survey-form {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #34495e;
    font-size: 14px;
}

.required {
    color: #e74c3c;
}

.form-control {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.form-control.error {
    border-color: #e74c3c;
    background-color: #ffe6e6;
}

textarea.form-control {
    resize: vertical;
    font-family: inherit;
}

/* Section Groups */
.section-group {
    margin-top: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.section-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    display: block;
    font-size: 15px;
}

.percentage-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.percentage-field {
    display: flex;
    flex-direction: column;
}

.percentage-field label {
    font-size: 12px;
    margin-bottom: 5px;
    color: #6c757d;
}

.validation-message {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #e74c3c;
}

.validation-message.success {
    color: #27ae60;
}

/* Form Actions */
.form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(0);
}

.btn-new {
    background-color: #6c757d;
    color: white;
}

.btn-new:hover {
    background-color: #5a6268;
}

.btn-save {
    background-color: #28a745;
    color: white;
}

.btn-save:hover {
    background-color: #218838;
}

.btn-update {
    background-color: #ffc107;
    color: #212529;
}

.btn-update:hover {
    background-color: #e0a800;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
}

.btn-delete:hover {
    background-color: #c82333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .area-survey-container {
        padding: 15px;
    }
    
    .area-survey-form {
        padding: 15px;
    }
    
    .percentage-group {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-wrap: wrap;
    }
    
    .btn {
        flex: 1;
        min-width: 100px;
    }
}

/* Loading State */
.btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success/Error Messages */
.message-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.message-toast.success {
    background-color: #28a745;
}

.message-toast.error {
    background-color: #dc3545;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.area-survey-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.15);
    padding: 28px 32px;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

.form-header h1 {
    font-size: 1.8rem;
    color: #1e3c72;
    border-left: 5px solid #2a7f6e;
    padding-left: 18px;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.header-details {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: 20px;
    margin-bottom: 28px;
}

.detail-field {
    flex: 1;
    min-width: 180px;
}

.detail-field label {
    font-weight: 600;
    color: #0f3b5f;
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.detail-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    font-size: 0.95rem;
    transition: 0.2s;
    background: white;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #1e4663;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.form-group input, .form-group select {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    font-size: 0.95rem;
    background: #ffffff;
    transition: 0.2s;
}

.form-group input:focus, .form-group select:focus, .detail-field input:focus {
    outline: none;
    border-color: #2a7f6e;
    box-shadow: 0 0 0 3px rgba(42,127,110,0.2);
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e3c72;
    margin: 20px 0 16px 0;
    padding-bottom: 6px;
    border-bottom: 2px solid #e2e8f0;
}

.percentage-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: #f9fbfe;
    padding: 16px 20px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.perc-group {
    flex: 1;
    min-width: 90px;
}

.perc-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2c5a7a;
    margin-bottom: 5px;
}

.perc-group input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    text-align: center;
}

.button-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 32px 0 20px;
}

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f1f5f9;
    color: #1e293b;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-new { background: #eef2ff; color: #1e3a8a; border: 1px solid #c7d2fe; }
.btn-new:hover { background: #e0e7ff; transform: translateY(-2px); }

.btn-save { background: #2a7f6e; color: white; box-shadow: 0 4px 8px rgba(42,127,110,0.3); }
.btn-save:hover { background: #1f6b5c; transform: translateY(-2px); }

.btn-update { background: #f59e0b; color: white; box-shadow: 0 4px 8px rgba(245,158,11,0.25); }
.btn-update:hover { background: #d97706; transform: translateY(-2px); }

.btn-delete { background: #ef4444; color: white; box-shadow: 0 4px 8px rgba(239,68,68,0.25); }
.btn-delete:hover { background: #dc2626; transform: translateY(-2px); }

.message-area {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    background: #f8fafc;
    border-left: 4px solid #2a7f6e;
    color: #0f172a;
}

@media (max-width: 700px) {
    .area-survey-container { padding: 18px; }
    .button-group .btn { flex: 1; text-align: center; }
}

/* Hide Area Survey by default - only show when called */
.area-survey-container {
    display: none;
}

/* ========== CENTER MASTER STYLES ========== */
.center-master-container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.15);
    padding: 28px 32px;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

.cm-form-header h1 {
    font-size: 1.8rem;
    color: #1e3c72;
    border-left: 5px solid #2a7f6e;
    padding-left: 18px;
    margin-bottom: 28px;
    font-weight: 600;
}

.cm-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e3c72;
    margin: 0 0 20px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.cm-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.cm-form-group {
    display: flex;
    flex-direction: column;
}

.cm-form-group label {
    font-weight: 600;
    color: #1e4663;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.cm-form-group input,
.cm-form-group select {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    font-size: 0.95rem;
    background: #ffffff;
    transition: 0.2s;
}

.cm-form-group input:focus,
.cm-form-group select:focus {
    outline: none;
    border-color: #2a7f6e;
    box-shadow: 0 0 0 3px rgba(42,127,110,0.2);
}

.cm-button-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 20px 0 32px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.cm-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cm-btn-refresh {
    background: #eef2ff;
    color: #1e3a8a;
    border: 1px solid #c7d2fe;
}
.cm-btn-refresh:hover {
    background: #e0e7ff;
    transform: translateY(-2px);
}

.cm-btn-save {
    background: #2a7f6e;
    color: white;
    box-shadow: 0 4px 8px rgba(42,127,110,0.3);
}
.cm-btn-save:hover {
    background: #1f6b5c;
    transform: translateY(-2px);
}

.cm-btn-update {
    background: #f59e0b;
    color: white;
    box-shadow: 0 4px 8px rgba(245,158,11,0.25);
}
.cm-btn-update:hover {
    background: #d97706;
    transform: translateY(-2px);
}

.cm-btn-delete {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 8px rgba(239,68,68,0.25);
}
.cm-btn-delete:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.cm-btn-close {
    background: #6c757d;
    color: white;
}
.cm-btn-close:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.cm-table-section {
    margin-top: 30px;
}

.cm-table-header h3 {
    font-size: 1.1rem;
    color: #1e3c72;
    margin-bottom: 15px;
}

.cm-table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.cm-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.cm-data-table thead {
    background: #f1f5f9;
}

.cm-data-table th,
.cm-data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.cm-data-table th {
    font-weight: 700;
    color: #1e4663;
}

.cm-data-table tbody tr:hover {
    background: #f8fafc;
    cursor: pointer;
}

.cm-data-table tbody tr.selected-row {
    background: #e0f2fe;
    border-left: 3px solid #2a7f6e;
}

.cm-message-area {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    background: #f8fafc;
    border-left: 4px solid #2a7f6e;
    color: #0f172a;
}

@media (max-width: 700px) {
    .center-master-container {
        padding: 18px;
    }
    .cm-btn {
        flex: 1;
        text-align: center;
    }
}

/* ========== LEAD GENERATION STYLES ========== */
.lead-generation-container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.15);
    padding: 28px 32px;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

.lg-form-header h1 {
    font-size: 1.8rem;
    color: #1e3c72;
    border-left: 5px solid #2a7f6e;
    padding-left: 18px;
    margin-bottom: 28px;
    font-weight: 600;
}

.lg-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e3c72;
    margin: 25px 0 20px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.lg-subsection-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2a7f6e;
    margin: 20px 0 15px 0;
    padding-left: 10px;
    border-left: 3px solid #2a7f6e;
}

.lg-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 10px;
}

.lg-form-group {
    display: flex;
    flex-direction: column;
}

.lg-full-width {
    grid-column: 1 / -1;
}

.lg-form-group label {
    font-weight: 600;
    color: #1e4663;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.lg-form-group input,
.lg-form-group select,
.lg-form-group textarea {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    font-size: 0.95rem;
    background: #ffffff;
    transition: 0.2s;
}

.lg-form-group input:focus,
.lg-form-group select:focus,
.lg-form-group textarea:focus {
    outline: none;
    border-color: #2a7f6e;
    box-shadow: 0 0 0 3px rgba(42,127,110,0.2);
}

.lg-checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.lg-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 0;
}

.lg-checkbox-group input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Document Upload Styles */
.lg-document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 16px;
}

.lg-doc-group {
    display: flex;
    flex-direction: column;
}

.lg-doc-group label {
    font-weight: 600;
    color: #1e4663;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.lg-file-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lg-file-input-group input[type="file"] {
    display: none;
}

.lg-browse-btn {
    padding: 10px 20px;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}

.lg-browse-btn:hover {
    background: #cbd5e1;
}

/* Button Group */
.lg-button-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 32px 0 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.lg-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lg-btn-refresh {
    background: #eef2ff;
    color: #1e3a8a;
    border: 1px solid #c7d2fe;
}
.lg-btn-refresh:hover {
    background: #e0e7ff;
    transform: translateY(-2px);
}

.lg-btn-save {
    background: #2a7f6e;
    color: white;
    box-shadow: 0 4px 8px rgba(42,127,110,0.3);
}
.lg-btn-save:hover {
    background: #1f6b5c;
    transform: translateY(-2px);
}

.lg-btn-update {
    background: #f59e0b;
    color: white;
    box-shadow: 0 4px 8px rgba(245,158,11,0.25);
}
.lg-btn-update:hover {
    background: #d97706;
    transform: translateY(-2px);
}

.lg-btn-delete {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 8px rgba(239,68,68,0.25);
}
.lg-btn-delete:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.lg-btn-close {
    background: #6c757d;
    color: white;
}
.lg-btn-close:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.lg-message-area {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    background: #f8fafc;
    border-left: 4px solid #2a7f6e;
    color: #0f172a;
}

/* File name display */
.file-name-display {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 5px;
}

@media (max-width: 700px) {
    .lead-generation-container {
        padding: 18px;
    }
    .lg-btn {
        flex: 1;
        text-align: center;
    }
    .lg-document-grid {
        grid-template-columns: 1fr;
    }
}

/* Add these new styles to your existing Lead Generation CSS */

/* DOB with age display */
.lg-dob-group {
    position: relative;
}

.lg-dob-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.lg-dob-wrapper input {
    flex: 2;
    min-width: 150px;
}

.lg-age-display {
    flex: 1;
    font-size: 0.85rem;
    color: #2a7f6e;
    font-weight: 600;
    background: #e6f7f3;
    padding: 8px 12px;
    border-radius: 12px;
    white-space: nowrap;
}

/* Readonly age input field */
#lgAge {
    background-color: #f1f5f9;
    cursor: not-allowed;
}

/* Ensure permanent address is full width */
#lgPermanentAddressGroup {
    grid-column: 1 / -1;
}

#lgPermanentAddressGroup input {
    width: 100%;
}

/* Number input fields styling */
.lg-form-group input[readonly] {
    background-color: #f8fafc;
    color: #475569;
}

@media (max-width: 700px) {
    .lg-dob-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .lg-age-display {
        white-space: normal;
        text-align: center;
    }
}

/* ========== CGT MANAGEMENT STYLES ========== */
.cgt-main-container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.15);
    padding: 28px 32px;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

.cgt-header h1 {
    font-size: 1.8rem;
    color: #1e3c72;
    border-left: 5px solid #2a7f6e;
    padding-left: 18px;
    margin-bottom: 28px;
    font-weight: 600;
}

/* Search Section */
.cgt-search-section {
    background: #f8fafc;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 25px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.cgt-search-wrapper {
    display: flex;
    gap: 10px;
    flex: 2;
    min-width: 300px;
}

.cgt-search-input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 30px;
    font-size: 0.95rem;
}

.cgt-search-btn {
    padding: 12px 28px;
    background: #2a7f6e;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.cgt-search-btn:hover {
    background: #1f6b5c;
}

.cgt-add-new-btn {
    padding: 12px 28px;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.cgt-add-new-btn:hover {
    background: #d97706;
}

.cgt-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cgt-filter-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* CGT List Table */
.cgt-table-section {
    margin-bottom: 30px;
}

.cgt-table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.cgt-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.cgt-data-table thead {
    background: #f1f5f9;
}

.cgt-data-table th,
.cgt-data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.cgt-data-table th {
    font-weight: 700;
    color: #1e4663;
}

.cgt-data-table tbody tr:hover {
    background: #f8fafc;
}

.cgt-status-active {
    background: #dcfce7;
    color: #15803d;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.cgt-status-closed {
    background: #fee2e2;
    color: #b91c1c;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.cgt-action-btn {
    padding: 5px 12px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
}

.cgt-edit-btn {
    background: #e0e7ff;
    color: #1e3a8a;
}

.cgt-close-btn {
    background: #fef3c7;
    color: #92400e;
}

/* Form View Styles */
.cgt-form-header-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.cgt-back-btn {
    background: #e2e8f0;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    color: #1e4663;
}

.cgt-back-btn:hover {
    background: #cbd5e1;
}

.cgt-form-header-section h1 {
    font-size: 1.8rem;
    color: #1e3c72;
    border-left: 5px solid #2a7f6e;
    padding-left: 18px;
    font-weight: 600;
    margin: 0;
}

.cgt-form-section {
    background: #f8fafc;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.cgt-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.cgt-form-group {
    display: flex;
    flex-direction: column;
}

.cgt-form-group label {
    font-weight: 600;
    color: #1e4663;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.cgt-form-group input,
.cgt-form-group select {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    font-size: 0.95rem;
}

.cgt-button-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cgt-btn {
    padding: 10px 28px;
    border: none;
    border-radius: 40px;
    font-weight: 700;
    cursor: pointer;
}

.cgt-btn-refresh {
    background: #eef2ff;
    color: #1e3a8a;
}

.cgt-btn-save {
    background: #2a7f6e;
    color: white;
}

.cgt-btn-exit {
    background: #6c757d;
    color: white;
}

/* Leads Tables */
.cgt-leads-section,
.cgt-selected-leads-section {
    margin-bottom: 30px;
}

.cgt-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid #2a7f6e;
}

.cgt-leads-table-wrapper,
.cgt-selected-table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.cgt-leads-table,
.cgt-selected-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.cgt-leads-table thead,
.cgt-selected-table thead {
    background: #f1f5f9;
}

.cgt-leads-table th,
.cgt-leads-table td,
.cgt-selected-table th,
.cgt-selected-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.cgt-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cgt-add-lead-btn {
    background: #2a7f6e;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
}

.cgt-remove-lead-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
}

.cgt-message-area {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 20px;
    background: #f8fafc;
    border-left: 4px solid #2a7f6e;
}

@media (max-width: 700px) {
    .cgt-main-container {
        padding: 18px;
    }
    .cgt-search-wrapper {
        flex-direction: column;
    }
    .cgt-form-header-section {
        flex-direction: column;
        text-align: center;
    }
}

/* Add to existing CGT CSS */
.cgt-full-width {
    grid-column: 1 / -1;
}

.cgt-form-group textarea {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
}

.cgt-form-group textarea:focus {
    outline: none;
    border-color: #2a7f6e;
    box-shadow: 0 0 0 3px rgba(42,127,110,0.2);
}

/* ========== GRT MANAGEMENT STYLES ========== */
.grt-main-container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.15);
    padding: 28px 32px;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

.grt-header h1 {
    font-size: 1.8rem;
    color: #1e3c72;
    border-left: 5px solid #2a7f6e;
    padding-left: 18px;
    margin-bottom: 28px;
    font-weight: 600;
}

/* Search Section */
.grt-search-section {
    background: #f8fafc;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 25px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.grt-search-wrapper {
    display: flex;
    gap: 10px;
    flex: 2;
    min-width: 300px;
}

.grt-search-input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 30px;
    font-size: 0.95rem;
}

.grt-search-btn {
    padding: 12px 28px;
    background: #2a7f6e;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.grt-search-btn:hover {
    background: #1f6b5c;
}

.grt-close-search-btn {
    padding: 12px 28px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
}

.grt-add-new-btn {
    padding: 12px 28px;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
}

.grt-add-new-btn:hover {
    background: #d97706;
}

.grt-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* GRT Cards Grid */
.grt-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.grt-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.grt-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.grt-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.grt-card-code {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e3c72;
}

.grt-card-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.grt-card-status-active {
    background: #dcfce7;
    color: #15803d;
}

.grt-card-status-closed {
    background: #fee2e2;
    color: #b91c1c;
}

.grt-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.grt-card-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.grt-card-label {
    font-weight: 600;
    color: #64748b;
}

.grt-card-value {
    color: #1e293b;
}

.grt-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.grt-card-edit {
    background: #e0e7ff;
    color: #1e3a8a;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
}

.grt-card-close {
    background: #fef3c7;
    color: #92400e;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
}

/* Form View Styles */
.grt-form-header-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.grt-back-btn {
    background: #e2e8f0;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    color: #1e4663;
}

.grt-back-btn:hover {
    background: #cbd5e1;
}

.grt-form-header-section h1 {
    font-size: 1.8rem;
    color: #1e3c72;
    border-left: 5px solid #2a7f6e;
    padding-left: 18px;
    font-weight: 600;
    margin: 0;
}

.grt-form-section {
    background: #f8fafc;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.grt-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.grt-full-width {
    grid-column: 1 / -1;
}

.grt-form-group {
    display: flex;
    flex-direction: column;
}

.grt-form-group label {
    font-weight: 600;
    color: #1e4663;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.grt-form-group input,
.grt-form-group select,
.grt-form-group textarea {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    font-size: 0.95rem;
    font-family: inherit;
}

.grt-form-group textarea {
    resize: vertical;
}

.grt-form-group input:focus,
.grt-form-group select:focus,
.grt-form-group textarea:focus {
    outline: none;
    border-color: #2a7f6e;
    box-shadow: 0 0 0 3px rgba(42,127,110,0.2);
}

.grt-button-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.grt-btn {
    padding: 10px 28px;
    border: none;
    border-radius: 40px;
    font-weight: 700;
    cursor: pointer;
}

.grt-btn-refresh {
    background: #eef2ff;
    color: #1e3a8a;
}

.grt-btn-save {
    background: #2a7f6e;
    color: white;
}

.grt-btn-close {
    background: #6c757d;
    color: white;
}

/* Leads Tables */
.grt-leads-section,
.grt-selected-leads-section {
    margin-bottom: 30px;
}

.grt-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid #2a7f6e;
}

.grt-leads-table-wrapper,
.grt-selected-table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.grt-leads-table,
.grt-selected-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.grt-leads-table thead,
.grt-selected-table thead {
    background: #f1f5f9;
}

.grt-leads-table th,
.grt-leads-table td,
.grt-selected-table th,
.grt-selected-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.grt-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.grt-add-lead-btn {
    background: #2a7f6e;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
}

.grt-remove-lead-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
}

.grt-message-area {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 20px;
    background: #f8fafc;
    border-left: 4px solid #2a7f6e;
}

@media (max-width: 700px) {
    .grt-main-container {
        padding: 18px;
    }
    .grt-search-wrapper {
        flex-direction: column;
    }
    .grt-form-header-section {
        flex-direction: column;
        text-align: center;
    }
    .grt-cards-container {
        grid-template-columns: 1fr;
    }
}

/* Group Master Styles - Loan Preparation */
.group-master-wrapper {
    padding: 20px;
    background: #f5f7fb;
    min-height: calc(100vh - 100px);
}

.gm-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.gm-card-header {
    background: linear-gradient(135deg, #0b2b44 0%, #1a4a6f 100%);
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gm-card-header h2 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.gm-card-header h2 i {
    margin-right: 10px;
}

.gm-badge {
    background: rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 30px;
    color: #ffd966;
    font-size: 0.8rem;
    font-weight: 500;
}

.gm-form-section, .gm-lead-section, .gm-queue-section, .gm-search-section, .gm-existing-section {
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
}

.gm-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.gm-row:last-child {
    margin-bottom: 0;
}

.gm-field {
    flex: 1;
    min-width: 180px;
}

.gm-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.gm-field input, .gm-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
    background: white;
}

.gm-field input:focus, .gm-field select:focus {
    outline: none;
    border-color: #1a4a6f;
    box-shadow: 0 0 0 3px rgba(26,74,111,0.1);
}

.checkbox-field {
    display: flex;
    align-items: flex-end;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500 !important;
    text-transform: none !important;
}

.checkbox-label input {
    width: auto;
    margin-top: 0;
}

.gm-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e4663;
    margin-bottom: 16px;
    padding-left: 8px;
    border-left: 4px solid #2c7da0;
}

.gm-table-wrapper {
    overflow-x: auto;
}

.gm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.gm-table th {
    background: #f8f9fc;
    padding: 12px 12px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #dee2e6;
}

.gm-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #212529;
}

.gm-table .empty-row {
    text-align: center;
    color: #868e96;
    padding: 30px;
}

.gm-btn-secondary, .gm-btn-primary, .gm-btn-warning, .gm-btn-danger, .gm-btn-search {
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.gm-btn-secondary {
    background: #e9ecef;
    color: #2c3e50;
}

.gm-btn-secondary:hover {
    background: #dee2e6;
}

.gm-btn-primary {
    background: #071bbb;
    color: white;
}

.gm-btn-primary:hover {
    background: #155a34;
    transform: translateY(-1px);
}

.gm-btn-warning {
    background: #e67e22;
    color: white;
}

.gm-btn-warning:hover {
    background: #d35400;
}

.gm-btn-danger {
    background: #c0392b;
    color: white;
}

.gm-btn-danger:hover {
    background: #a93226;
}

.gm-btn-search {
    background: #2c7da0;
    color: white;
    white-space: nowrap;
}

.search-input-group {
    display: flex;
    gap: 10px;
}

.search-input-group input {
    flex: 1;
}

.search-results {
    margin-top: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: #2c3e50;
}

.gm-actions {
    padding: 20px 24px;
    display: flex;
    gap: 16px;
    background: #fef9e6;
    flex-wrap: wrap;
}

.delete-icon, .edit-icon {
    cursor: pointer;
    font-size: 1rem;
    transition: opacity 0.2s;
}

.delete-icon {
    color: #e74c3c;
}

.delete-icon:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .gm-row {
        flex-direction: column;
        gap: 12px;
    }
    .gm-actions {
        flex-direction: column;
    }
    .gm-btn-primary, .gm-btn-warning, .gm-btn-danger {
        justify-content: center;
    }
}

/* Member Entry Module Styles */
.member-entry-wrapper {
    padding: 20px;
    background: #f0f2f6;
    min-height: calc(100vh - 100px);
}

.member-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.member-card-header {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.member-card-header h2 {
    color: white;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.member-action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.member-action-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
}

.member-action-btn i {
    margin-right: 5px;
}

.print-btn { background: #17a2b8; color: white; }
.new-btn { background: #28a745; color: white; }
.post-btn { background: #007bff; color: white; }
.exit-btn { background: #6c757d; color: white; }
.delete-btn { background: #dc3545; color: white; }

.member-action-btn:hover { opacity: 0.85; transform: translateY(-1px); }

.member-form-container {
    display: flex;
    gap: 25px;
    padding: 24px;
    flex-wrap: wrap;
}

.member-left-column {
    flex: 2;
    min-width: 400px;
}

.member-right-column {
    flex: 1;
    min-width: 320px;
}

.member-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.member-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
    text-transform: uppercase;
}

.member-row {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.member-field {
    flex: 1;
    min-width: 150px;
}

.member-field.full-width {
    width: 100%;
    margin-bottom: 12px;
}

.member-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.member-field input, .member-field select, .member-field textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.member-field input:focus, .member-field select:focus, .member-field textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.1);
}

.member-field textarea {
    resize: vertical;
}

.upload-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.upload-box {
    flex: 1;
    text-align: center;
}

.upload-box label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.file-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-wrapper .file-name {
    display: block;
    padding: 8px 12px;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 6px;
    text-align: center;
    font-size: 0.8rem;
    cursor: pointer;
}

.capture-btn {
    width: 100%;
    padding: 8px;
    background: #6f42c1;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.kyc-row {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}

.kyc-field {
    flex: 1;
}

.kyc-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
}

.kyc-field input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
}

.doc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.doc-links a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 4px 8px;
    background: #e9ecef;
    border-radius: 4px;
}

.doc-links a i {
    margin-left: 5px;
    color: #dc3545;
}

@media (max-width: 768px) {
    .member-form-container { flex-direction: column; }
    .member-left-column, .member-right-column { min-width: auto; }
    .member-card-header { flex-direction: column; text-align: center; }
}

/* Document Approval Module Styles */
.doc-approval-wrapper {
    padding: 20px;
    background: #f0f2f6;
    min-height: calc(100vh - 100px);
}

.doc-approval-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Header */
.doc-approval-header {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    padding: 15px 24px;
}

.doc-approval-header h2 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.doc-approval-header h2 i {
    margin-right: 10px;
}

/* Search Section */
.doc-search-section {
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.doc-search-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-left: 8px;
    border-left: 4px solid #3498db;
}

.doc-search-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.doc-search-field {
    flex: 1;
    min-width: 250px;
}

.doc-search-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.doc-search-field input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.85rem;
}

.doc-search-field input[readonly] {
    background: #e9ecef;
}

.doc-search-btn {
    margin-top: 22px;
    padding: 8px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
}

.doc-search-btn i {
    margin-right: 5px;
}

.doc-note {
    font-size: 0.7rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.doc-note i {
    font-size: 0.8rem;
}

/* Document Grid */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 24px;
}

.doc-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.doc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #3498db;
}

.doc-card-title {
    background: #f8f9fa;
    padding: 10px 15px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #2c3e50;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

.doc-image-placeholder {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafbfc;
    position: relative;
}

.doc-image-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.placeholder-text {
    text-align: center;
    color: #adb5bd;
}

.placeholder-text i {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.placeholder-text span {
    font-size: 0.75rem;
}

.doc-status {
    padding: 8px 15px;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    border-top: 1px solid #e0e0e0;
}

.doc-status.approved {
    background: #d4edda;
    color: #155724;
}

.doc-status.rejected {
    background: #f8d7da;
    color: #721c24;
}

.doc-status.pending {
    background: #fff3cd;
    color: #856404;
}

/* Action Buttons */
.doc-action-buttons {
    padding: 20px 24px;
    display: flex;
    gap: 15px;
    justify-content: center;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.doc-approve-btn, .doc-reject-btn {
    padding: 10px 30px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.doc-approve-btn {
    background: #28a745;
    color: white;
}

.doc-approve-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.doc-reject-btn {
    background: #dc3545;
    color: white;
}

.doc-reject-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Zoom Modal */
.zoom-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    overflow: auto;
}

.zoom-modal-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    border-radius: 12px;
    text-align: center;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.zoom-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.zoom-close:hover {
    color: #333;
}

.zoom-modal-content h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.zoom-modal-content img {
    max-width: 100%;
    max-height: 500px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.zoom-actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.zoom-actions button {
    padding: 8px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
}

.zoom-actions button:first-child {
    background: #28a745;
    color: white;
}

.zoom-actions button:last-child {
    background: #dc3545;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .doc-grid {
        grid-template-columns: 1fr;
    }
    .doc-search-row {
        flex-direction: column;
    }
    .doc-search-btn {
        margin-top: 5px;
    }
    .zoom-modal-content {
        width: 95%;
        margin: 20% auto;
    }
}

/* Credit Score Module Styles */
.credit-score-wrapper {
    padding: 20px;
    background: #f0f2f6;
    min-height: calc(100vh - 100px);
}

.credit-score-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Header */
.credit-score-header {
    background: linear-gradient(135deg, #1e4663, #0d2b44);
    padding: 15px 24px;
}

.credit-score-header h2 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.credit-score-header h2 i {
    margin-right: 10px;
}

/* Balance Section */
.credit-balance-section {
    display: flex;
    gap: 30px;
    padding: 20px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.balance-item {
    flex: 1;
    min-width: 150px;
}

.balance-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.balance-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e4663;
}

/* CIBIL Generation Form */
.credit-form-section {
    padding: 20px 24px;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.form-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-left: 8px;
    border-left: 4px solid #3498db;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.form-field {
    flex: 1;
    min-width: 200px;
}

.form-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.required {
    color: #dc3545;
}

.form-field input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.85rem;
}

.form-field input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.1);
}

.otp-buttons-field {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.send-otp-btn, .insert-otp-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
}

.send-otp-btn {
    background: #007bff;
    color: white;
}

.send-otp-btn:hover {
    background: #0069d9;
}

.insert-otp-btn {
    background: #6c757d;
    color: white;
}

.insert-otp-btn:hover {
    background: #5a6268;
}

.generate-button-wrapper {
    margin-top: 20px;
    text-align: center;
}

.generate-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.generate-btn i {
    margin-right: 8px;
}

.generate-btn:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Terms Section */
.credit-terms-section {
    padding: 20px 24px;
    background: #fff9e6;
    border-bottom: 1px solid #e9ecef;
}

.terms-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #856404;
    margin-bottom: 10px;
}

.terms-list {
    margin: 0;
    padding-left: 20px;
}

.terms-list li {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 5px;
}

/* Records Section */
.credit-records-section {
    padding: 20px 24px;
}

.records-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-left: 8px;
    border-left: 4px solid #3498db;
}

.table-wrapper {
    overflow-x: auto;
}

.credit-records-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.credit-records-table th {
    background: #f8f9fa;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.credit-records-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #212529;
}

.credit-records-table tr:hover {
    background: #f8f9fa;
}

.download-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
}

.download-btn i {
    margin-right: 3px;
}

.download-btn:hover {
    background: #218838;
}

/* Loading Modal */
.loading-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.loading-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    min-width: 200px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .credit-balance-section {
        flex-direction: column;
        gap: 15px;
    }
    .form-row {
        flex-direction: column;
    }
    .otp-buttons-field {
        flex-direction: column;
    }
    .send-otp-btn, .insert-otp-btn {
        width: 100%;
    }
}

/* CKYC Generate Module Styles */
.ckyc-wrapper {
    padding: 20px;
    background: #f0f2f6;
    min-height: calc(100vh - 100px);
}

.ckyc-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.ckyc-header {
    background: linear-gradient(135deg, #1e4663, #0d2b44);
    padding: 15px 24px;
}

.ckyc-header h2 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.ckyc-header h2 i {
    margin-right: 10px;
}

/* Search Section */
.ckyc-search-section {
    padding: 20px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.ckyc-search-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-left: 8px;
    border-left: 4px solid #3498db;
}

.ckyc-search-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.ckyc-search-field {
    flex: 1;
    min-width: 180px;
}

.ckyc-search-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.ckyc-search-field input, .ckyc-search-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* Headers Section */
.ckyc-headers-section {
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
}

.ckyc-headers-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.ckyc-header-field {
    flex: 1;
    min-width: 150px;
}

.ckyc-header-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.ckyc-header-field input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* Select All Section */
.ckyc-selectall-section {
    padding: 15px 24px;
    border-bottom: 1px solid #e9ecef;
    background: #fff9e6;
}

.selectall-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #856404;
    cursor: pointer;
}

.selectall-label input {
    margin-right: 8px;
}

/* Table Section */
.ckyc-table-section {
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
}

.table-wrapper {
    overflow-x: auto;
}

.ckyc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.ckyc-table th {
    background: #f8f9fa;
    padding: 10px 12px;
    text-align: center;
    font-weight: 600;
    color: #495057;
    border: 1px solid #dee2e6;
}

.ckyc-table td {
    padding: 10px 12px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.ckyc-table td:first-child {
    text-align: center;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.status-yes {
    background: #d4edda;
    color: #155724;
}

.status-no {
    background: #f8d7da;
    color: #721c24;
}

/* Output Section */
.ckyc-output-section {
    padding: 20px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.output-field {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.output-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
}

.output-field input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.85rem;
    min-width: 250px;
}

.browse-btn {
    padding: 8px 16px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
}

.output-note {
    margin-top: 10px;
    font-size: 0.7rem;
    color: #dc3545;
}

.output-note i {
    margin-right: 5px;
}

/* Confirm Button */
.ckyc-confirm-section {
    padding: 20px 24px;
    text-align: center;
}

.confirm-generate-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.confirm-generate-btn i {
    margin-right: 8px;
}

.confirm-generate-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .ckyc-search-row, .ckyc-headers-row {
        flex-direction: column;
    }
}

/* CKYC Generate Module Styles */
.ckyc-wrapper {
    padding: 20px;
    background: #f0f2f6;
    min-height: calc(100vh - 100px);
}

.ckyc-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.ckyc-header {
    background: linear-gradient(135deg, #1e4663, #0d2b44);
    padding: 15px 24px;
}

.ckyc-header h2 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.ckyc-header h2 i {
    margin-right: 10px;
}

/* Search Section */
.ckyc-search-section {
    padding: 20px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.ckyc-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ckyc-search-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    padding-left: 8px;
    border-left: 4px solid #3498db;
}

.ckyc-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #6c757d;
}

.ckyc-search-content {
    transition: all 0.3s ease;
}

.ckyc-search-content.hide {
    display: none;
}

.ckyc-search-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.ckyc-search-field {
    flex: 1;
    min-width: 180px;
}

.ckyc-search-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.ckyc-search-field input, .ckyc-search-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* Headers Section */
.ckyc-headers-section {
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    background: white;
}

.ckyc-headers-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.ckyc-header-field {
    flex: 1;
    min-width: 150px;
}

.ckyc-header-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.ckyc-header-field input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* Select All Section */
.ckyc-selectall-section {
    padding: 15px 24px;
    border-bottom: 1px solid #e9ecef;
    background: #fff9e6;
}

.selectall-row {
    display: flex;
    gap: 30px;
    align-items: center;
}

.selectall-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #856404;
    cursor: pointer;
}

.selectall-label input {
    margin-right: 8px;
}

/* Table Section */
.ckyc-table-section {
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
}

.table-wrapper {
    overflow-x: auto;
}

.ckyc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.ckyc-table th {
    background: #f8f9fa;
    padding: 10px 12px;
    text-align: center;
    font-weight: 600;
    color: #495057;
    border: 1px solid #dee2e6;
}

.ckyc-table td {
    padding: 10px 12px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.status-yes {
    background: #d4edda;
    color: #155724;
}

.status-no {
    background: #f8d7da;
    color: #721c24;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.select-row-btn {
    padding: 4px 8px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
}

/* Output Section */
.ckyc-output-section {
    padding: 20px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.output-field {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.output-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
}

.output-field input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.85rem;
    min-width: 250px;
}

.browse-btn {
    padding: 8px 16px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
}

.output-note {
    margin-top: 10px;
    font-size: 0.7rem;
    color: #dc3545;
}

.output-note i {
    margin-right: 5px;
}

/* Confirm Button */
.ckyc-confirm-section {
    padding: 20px 24px;
    text-align: center;
}

.confirm-generate-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.confirm-generate-btn i {
    margin-right: 8px;
}

.confirm-generate-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

/* Loading Modal */
.loading-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.loading-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    min-width: 200px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .ckyc-search-row, .ckyc-headers-row {
        flex-direction: column;
    }
    .selectall-row {
        flex-direction: column;
        gap: 10px;
    }
}

/* Member Synopsis */
.member-loan-wrapper {
    padding: 20px;
    background: #f0f2f6;
    min-height: calc(100vh - 100px);
}

.member-loan-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.member-loan-header {
    background: linear-gradient(135deg, #1e4663, #0d2b44);
    padding: 15px 24px;
}

.member-loan-header h2 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.member-loan-header h2 i {
    margin-right: 10px;
}

.member-loan-two-column {
    display: flex;
    gap: 25px;
    padding: 24px;
    flex-wrap: wrap;
}

.member-loan-left {
    flex: 1.5;
    min-width: 350px;
}

.member-loan-right {
    flex: 1;
    min-width: 300px;
}

/* Sections */
.member-loan-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e4663;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
}

/* Member Code Search */
.member-code-row {
    display: flex;
    gap: 10px;
}

.member-code-row input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.85rem;
}

.search-member-btn {
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* Photo Signature */
.photo-signature-row {
    display: flex;
    gap: 20px;
}

.photo-box {
    flex: 1;
    text-align: center;
}

.photo-placeholder {
    background: #e9ecef;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    border: 1px dashed #ced4da;
}

.photo-placeholder i {
    font-size: 48px;
    color: #6c757d;
    display: block;
    margin-bottom: 10px;
}

.photo-placeholder span {
    font-size: 0.7rem;
    color: #6c757d;
}

/* Info Grid */
.info-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #e0e0e0;
    padding: 6px 0;
}

.info-label {
    width: 140px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #495057;
}

.info-value {
    flex: 1;
    font-size: 0.8rem;
    color: #212529;
}

/* Loan Fields */
.loan-field {
    margin-bottom: 12px;
}

.loan-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
}

.loan-field input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* Sections Row */
.sections-row {
    display: flex;
    gap: 15px;
}

.section-field {
    flex: 1;
}

.section-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
}

.section-field input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* Action Buttons */
.member-loan-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.save-loan-btn, .calculate-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
}

.save-loan-btn {
    background: #28a745;
    color: white;
}

.calculate-btn {
    background: #17a2b8;
    color: white;
}

.save-loan-btn:hover, .calculate-btn:hover {
    opacity: 0.85;
}

/* Responsive */
@media (max-width: 768px) {
    .member-loan-two-column {
        flex-direction: column;
    }
    .photo-signature-row {
        flex-direction: column;
    }
    .sections-row {
        flex-direction: column;
    }
    .member-loan-actions {
        flex-direction: column;
    }
}

/* Member Details Report Styles */
.member-report-wrapper {
    padding: 20px;
    background: #f0f2f6;
    min-height: calc(100vh - 100px);
}

.member-report-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.member-report-header {
    background: linear-gradient(135deg, #1e4663, #0d2b44);
    padding: 15px 24px;
}

.member-report-header h2 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.member-report-header h2 i {
    margin-right: 10px;
}

/* Header Section */
.member-report-header-section {
    padding: 20px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.report-header-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-left: 8px;
    border-left: 4px solid #3498db;
}

.report-header-row {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.report-header-field {
    flex: 1;
    min-width: 150px;
}

.report-header-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.report-header-field input, .report-header-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.85rem;
}

.report-header-buttons {
    display: flex;
    gap: 10px;
}

.show-btn, .close-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
}

.show-btn {
    background: #28a745;
    color: white;
}

.show-btn:hover {
    background: #218838;
}

.close-btn {
    background: #dc3545;
    color: white;
}

.close-btn:hover {
    background: #c82333;
}

/* Table Section */
.member-report-table-section {
    padding: 20px 24px;
}

.table-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-left: 8px;
    border-left: 4px solid #3498db;
}

.table-wrapper {
    overflow-x: auto;
}

.member-report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.member-report-table th {
    background: #1e4663;
    color: white;
    padding: 10px 8px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #2c5a82;
}

.member-report-table td {
    padding: 8px;
    border: 1px solid #dee2e6;
    color: #212529;
}

.member-report-table tr:nth-child(even) {
    background: #f8f9fa;
}

.member-report-table tr:hover {
    background: #e9ecef;
}

/* Responsive */
@media (max-width: 768px) {
    .report-header-row {
        flex-direction: column;
    }
    .report-header-buttons {
        width: 100%;
    }
    .show-btn, .close-btn {
        flex: 1;
        text-align: center;
    }
}

/* Member Search Styles */
.member-search-wrapper {
    padding: 20px;
    background: #f0f2f6;
    min-height: calc(100vh - 100px);
}

.member-search-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.member-search-header {
    background: linear-gradient(135deg, #1e4663, #0d2b44);
    padding: 15px 24px;
}

.member-search-header h2 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.member-search-header h2 i {
    margin-right: 10px;
}

/* Search Section */
.member-search-section {
    padding: 20px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.search-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.search-field {
    flex: 1;
    min-width: 180px;
}

.search-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.search-field input, .search-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.85rem;
}

.search-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-btn, .edit-btn, .report-btn, .close-search-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
}

.search-btn {
    background: #007bff;
    color: white;
}

.search-btn:hover {
    background: #0069d9;
}

.edit-btn {
    background: #ffc107;
    color: #212529;
}

.edit-btn:hover {
    background: #e0a800;
}

.report-btn {
    background: #17a2b8;
    color: white;
}

.report-btn:hover {
    background: #138496;
}

.close-search-btn {
    background: #dc3545;
    color: white;
}

.close-search-btn:hover {
    background: #c82333;
}

/* Table Section */
.member-search-table-section {
    padding: 20px 24px;
}

.member-search-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.member-search-table th {
    background: #1e4663;
    color: white;
    padding: 10px 8px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #2c5a82;
}

.member-search-table td {
    padding: 8px;
    border: 1px solid #dee2e6;
    color: #212529;
}

.member-search-table tr:nth-child(even) {
    background: #f8f9fa;
}

.member-search-table tr:hover {
    background: #e9ecef;
    cursor: pointer;
}

.member-search-table tr.selected {
    background: #cce5ff;
}

.status-active {
    color: #28a745;
    font-weight: bold;
}

.status-inactive {
    color: #dc3545;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .search-row {
        flex-direction: column;
    }
    .search-buttons {
        width: 100%;
    }
    .search-btn, .edit-btn, .report-btn, .close-search-btn {
        flex: 1;
        text-align: center;
    }
}

/* Collector Entry Module Styles */
.collector-entry-wrapper {
    padding: 20px;
    background: #f0f2f6;
    min-height: calc(100vh - 100px);
}

.collector-entry-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Header */
.collector-entry-header {
    background: linear-gradient(135deg, #1e4663, #0d2b44);
    padding: 15px 24px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-code-box {
    background: rgba(255,255,255,0.15);
    padding: 8px 15px;
    border-radius: 8px;
}

.search-code-box label {
    font-size: 0.7rem;
    color: #ffd966;
    display: block;
    margin-bottom: 4px;
}

.search-input-group {
    display: flex;
    gap: 8px;
}

.search-input-group input {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    width: 180px;
}

.search-code-btn {
    padding: 6px 12px;
    background: #ffc107;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
}

.print-menus {
    display: flex;
    gap: 10px;
}

.print-menu-btn {
    padding: 6px 12px;
    background: #17a2b8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
}

.print-menu-btn:hover {
    background: #138496;
}

.collector-entry-header h2 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.collector-entry-header h2 i {
    margin-right: 10px;
}

/* Two Column Layout */
.collector-entry-two-column {
    display: flex;
    gap: 25px;
    padding: 24px;
    flex-wrap: wrap;
}

.collector-left-column {
    flex: 1.5;
    min-width: 400px;
}

.collector-right-column {
    flex: 1;
    min-width: 320px;
}

/* Sections */
.collector-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.collector-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e4663;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
    text-transform: uppercase;
}

.collector-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.collector-field {
    flex: 1;
    min-width: 150px;
}

.collector-field.full-width {
    width: 100%;
}

.collector-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.collector-field input, .collector-field select, .collector-field textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.85rem;
}

.collector-field input:focus, .collector-field select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.1);
}

.collector-field input[readonly] {
    background: #e9ecef;
}

/* Table Section */
.collector-table-section {
    padding: 0 24px 24px 24px;
}

.table-wrapper {
    overflow-x: auto;
}

.collector-list-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.collector-list-table th {
    background: #1e4663;
    color: white;
    padding: 10px 8px;
    text-align: left;
    border: 1px solid #2c5a82;
}

.collector-list-table td {
    padding: 8px;
    border: 1px solid #dee2e6;
}

.collector-list-table tr:nth-child(even) {
    background: #f8f9fa;
}

.collector-list-table tr:hover {
    background: #e9ecef;
    cursor: pointer;
}

.edit-action-btn, .delete-action-btn {
    padding: 4px 8px;
    margin: 0 2px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
}

.edit-action-btn {
    background: #ffc107;
    color: #212529;
}

.delete-action-btn {
    background: #dc3545;
    color: white;
}

/* Action Buttons */
.collector-actions {
    padding: 20px 24px;
    display: flex;
    gap: 15px;
    justify-content: center;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    flex-wrap: wrap;
}

.collector-save-btn, .collector-update-btn, .collector-clear-btn, .collector-delete-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
}

.collector-save-btn {
    background: #28a745;
    color: white;
}

.collector-update-btn {
    background: #ffc107;
    color: #212529;
}

.collector-clear-btn {
    background: #17a2b8;
    color: white;
}

.collector-delete-btn {
    background: #dc3545;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
    }
    .collector-entry-two-column {
        flex-direction: column;
    }
    .collector-left-column, .collector-right-column {
        min-width: auto;
    }
    .collector-row {
        flex-direction: column;
    }
}

/* Photo Upload Styles */
.photo-upload-area {
    text-align: center;
}

.photo-placeholder {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    background: #e9ecef;
    border: 2px dashed #ced4da;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.photo-placeholder:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.photo-placeholder i {
    font-size: 48px;
    color: #6c757d;
    margin-bottom: 10px;
}

.photo-placeholder span {
    font-size: 0.7rem;
    color: #6c757d;
}

#photoPreview {
    max-width: 150px;
    max-height: 150px;
    border-radius: 10px;
    margin-top: 10px;
}

/* Agent Promotion Module Styles */
.agent-promotion-wrapper {
    padding: 20px;
    background: #f0f2f6;
    min-height: calc(100vh - 100px);
}

.agent-promotion-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.agent-promotion-header {
    background: linear-gradient(135deg, #1e4663, #0d2b44);
    padding: 15px 24px;
}

.agent-promotion-header h2 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.agent-promotion-header h2 i {
    margin-right: 10px;
}

/* Form Styles */
.agent-promotion-form {
    padding: 24px;
}

.promotion-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.promotion-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e4663;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
    text-transform: uppercase;
}

.promotion-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.promotion-field {
    flex: 1;
    min-width: 180px;
}

.promotion-field.full-width {
    width: 100%;
}

.promotion-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.promotion-field input, .promotion-field select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.85rem;
}

.promotion-field input:focus, .promotion-field select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.1);
}

.promotion-field input[readonly] {
    background: #e9ecef;
    cursor: not-allowed;
}

/* Buttons */
.promotion-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.promotion-new-btn, .promotion-update-btn {
    padding: 8px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
}

.promotion-new-btn {
    background: #28a745;
    color: white;
}

.promotion-new-btn:hover {
    background: #218838;
}

.promotion-update-btn {
    background: #ffc107;
    color: #212529;
}

.promotion-update-btn:hover {
    background: #e0a800;
}

/* Table Section */
.promotion-table-section {
    margin-top: 20px;
}

.table-wrapper {
    overflow-x: auto;
}

.promotion-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.promotion-table th {
    background: #1e4663;
    color: white;
    padding: 10px 12px;
    text-align: left;
    border: 1px solid #2c5a82;
}

.promotion-table td {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
}

.promotion-table tr:nth-child(even) {
    background: #f8f9fa;
}

/* Commit Section */
.promotion-commit-section {
    margin-top: 20px;
    padding: 20px;
    background: #fff9e6;
    border-radius: 10px;
    text-align: center;
}

.commit-note {
    font-size: 0.75rem;
    color: #856404;
    margin-bottom: 15px;
}

.commit-note i {
    margin-right: 5px;
}

.commit-close-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
}

.commit-close-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .promotion-row {
        flex-direction: column;
    }
    .promotion-buttons {
        flex-direction: column;
    }
    .promotion-new-btn, .promotion-update-btn {
        width: 100%;
        text-align: center;
    }
}

/* Agent Promotion Module Styles */
.agent-promotion-wrapper {
    padding: 20px;
    background: #f0f2f6;
    min-height: calc(100vh - 100px);
}

.agent-promotion-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.agent-promotion-header {
    background: linear-gradient(135deg, #1e4663, #0d2b44);
    padding: 15px 24px;
}

.agent-promotion-header h2 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.agent-promotion-header h2 i {
    margin-right: 10px;
}

/* Two Column Layout */
.agent-promotion-two-column {
    display: flex;
    gap: 25px;
    padding: 24px;
    flex-wrap: wrap;
}

.agent-promotion-left {
    flex: 2;
    min-width: 350px;
}

.agent-promotion-right {
    flex: 1;
    min-width: 250px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 18px;
    border: 1px solid #e0e0e0;
}

.right-field-group {
    margin-bottom: 15px;
}

.right-field {
    margin-bottom: 12px;
}

.right-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.right-field input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* Form Styles */
.promotion-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.promotion-field {
    flex: 1;
    min-width: 180px;
}

.promotion-field.full-width {
    width: 100%;
}

.promotion-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.promotion-field input, .promotion-field select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.85rem;
}

.promotion-field input:focus, .promotion-field select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.1);
}

.promotion-field input[readonly] {
    background: #e9ecef;
    cursor: not-allowed;
}

/* Buttons */
.promotion-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.promotion-new-btn, .promotion-update-btn {
    padding: 8px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
}

.promotion-new-btn {
    background: #28a745;
    color: white;
}

.promotion-update-btn {
    background: #ffc107;
    color: #212529;
}

/* Tables */
.promotion-table-section {
    padding: 0 24px 20px 24px;
}

.promotion-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e4663;
    margin-bottom: 15px;
    padding-left: 8px;
    border-left: 4px solid #3498db;
}

.table-wrapper {
    overflow-x: auto;
}

.promotion-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.promotion-table th {
    background: #1e4663;
    color: white;
    padding: 10px 12px;
    text-align: left;
    border: 1px solid #2c5a82;
}

.promotion-table td {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
}

.promotion-table tr:nth-child(even) {
    background: #f8f9fa;
}

/* Commit Section */
.promotion-commit-section {
    margin: 0 24px 24px 24px;
    padding: 20px;
    background: #fff9e6;
    border-radius: 10px;
    text-align: center;
}

.commit-note {
    font-size: 0.75rem;
    color: #856404;
    margin-bottom: 15px;
}

.commit-note i {
    margin-right: 5px;
}

.commit-close-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .agent-promotion-two-column {
        flex-direction: column;
    }
    .promotion-row {
        flex-direction: column;
    }
    .promotion-buttons {
        flex-direction: column;
    }
    .promotion-new-btn, .promotion-update-btn {
        width: 100%;
        text-align: center;
    }
}

/* Right Column - Top Right Section */
.agent-promotion-right {
    flex: 1;
    min-width: 280px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 18px;
    border: 1px solid #e0e0e0;
}

.right-field-group {
    margin-bottom: 15px;
    display: flex;
    gap: 12px;
}

.right-field {
    flex: 1;
}

.right-field label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.right-field input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.8rem;
}

.right-field input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.1);
}

/* Associate Block / UnBlock Styles */
.associate-block-wrapper {
    padding: 20px;
    background: #f0f2f6;
    min-height: calc(100vh - 100px);
}

.associate-block-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.associate-block-header {
    background: linear-gradient(135deg, #1e4663, #0d2b44);
    padding: 15px 24px;
}

.associate-block-header h2 {
    color: white;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Navigation Tabs */
.associate-nav-tabs {
    display: flex;
    flex-wrap: wrap;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0 24px;
}

.nav-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.2s;
}

.nav-tab:hover {
    color: #1e4663;
    background: #e9ecef;
}

.nav-tab.active {
    color: #1e4663;
    border-bottom: 2px solid #1e4663;
    font-weight: 600;
}

/* Search Section */
.associate-search-section {
    padding: 20px 24px;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.search-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.search-field {
    flex: 1;
    min-width: 180px;
}

.search-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.search-field input, .search-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* Select All */
.associate-selectall-section {
    padding: 15px 24px;
    border-bottom: 1px solid #e9ecef;
    background: #fff9e6;
}

.selectall-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #856404;
    cursor: pointer;
}

.selectall-label input {
    margin-right: 8px;
}

/* Table Section */
.associate-table-section {
    padding: 20px 24px;
}

.table-wrapper {
    overflow-x: auto;
}

.associate-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.associate-table th {
    background: #1e4663;
    color: white;
    padding: 10px 8px;
    text-align: left;
    border: 1px solid #2c5a82;
}

.associate-table td {
    padding: 8px;
    border: 1px solid #dee2e6;
}

.associate-table tr:nth-child(even) {
    background: #f8f9fa;
}

.status-active {
    color: #28a745;
    font-weight: bold;
}

.status-blocked {
    color: #dc3545;
    font-weight: bold;
}

/* Action Buttons */
.associate-action-buttons {
    padding: 20px 24px;
    display: flex;
    gap: 15px;
    justify-content: center;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.view-btn, .block-btn, .unblock-btn {
    padding: 10px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
}

.view-btn {
    background: #17a2b8;
    color: white;
}

.block-btn {
    background: #dc3545;
    color: white;
}

.unblock-btn {
    background: #28a745;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .associate-nav-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }
    .search-row {
        flex-direction: column;
    }
    .associate-action-buttons {
        flex-direction: column;
    }
    .view-btn, .block-btn, .unblock-btn {
        width: 100%;
        text-align: center;
    }
}

/* Collector Search Styles */
.collector-search-wrapper {
    padding: 20px;
    background: #f0f2f6;
    min-height: calc(100vh - 100px);
}

.collector-search-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.collector-search-header {
    background: linear-gradient(135deg, #1e4663, #0d2b44);
    padding: 15px 24px;
}

.collector-search-header h2 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Search Section */
.collector-search-section {
    padding: 20px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.search-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.search-field {
    flex: 1;
    min-width: 180px;
}

.search-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.search-field input, .search-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.85rem;
}

.search-buttons {
    display: flex;
    gap: 10px;
}

.search-btn, .edit-record-btn, .close-search-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
}

.search-btn {
    background: #007bff;
    color: white;
}

.edit-record-btn {
    background: #ffc107;
    color: #212529;
}

.close-search-btn {
    background: #dc3545;
    color: white;
}

/* Table Section */
.collector-search-table-section {
    padding: 20px 24px;
}

.collector-search-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.7rem;
}

.collector-search-table th {
    background: #1e4663;
    color: white;
    padding: 10px 6px;
    text-align: left;
    border: 1px solid #2c5a82;
}

.collector-search-table td {
    padding: 8px 6px;
    border: 1px solid #dee2e6;
}

.collector-search-table tr:nth-child(even) {
    background: #f8f9fa;
}

.collector-search-table tr:hover {
    background: #e9ecef;
    cursor: pointer;
}

.status-active {
    color: #28a745;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .search-row {
        flex-direction: column;
    }
    .search-buttons {
        width: 100%;
        flex-direction: column;
    }
    .search-btn, .edit-record-btn, .close-search-btn {
        width: 100%;
        text-align: center;
    }
}

/* Associate Downline Styles */
.associate-downline-wrapper {
    padding: 20px;
    background: #f0f2f6;
    min-height: calc(100vh - 100px);
}

.associate-downline-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.associate-downline-header {
    background: linear-gradient(135deg, #1e4663, #0d2b44);
    padding: 15px 24px;
}

.associate-downline-header h2 {
    color: white;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

/* Navigation Tabs */
.downline-nav-tabs {
    display: flex;
    flex-wrap: wrap;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0 24px;
}

.downline-nav-tabs .nav-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6c757d;
}

.downline-nav-tabs .nav-tab:hover {
    color: #1e4663;
    background: #e9ecef;
}

/* Title */
.downline-title {
    padding: 20px 24px 0 24px;
}

.downline-title h3 {
    color: #1e4663;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    display: inline-block;
}

/* Details Section */
.downline-details-section {
    padding: 20px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.details-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.details-field {
    flex: 1;
    min-width: 180px;
}

.details-field.full-width {
    width: 100%;
}

.details-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.details-field input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.85rem;
}

.details-field input[readonly] {
    background: #e9ecef;
}

/* Action Buttons */
.downline-action-buttons {
    padding: 20px 24px;
    display: flex;
    gap: 15px;
    border-bottom: 1px solid #e9ecef;
}

.downline-view-btn, .download-report-btn {
    padding: 8px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
}

.downline-view-btn {
    background: #007bff;
    color: white;
}

.download-report-btn {
    background: #28a745;
    color: white;
}

/* Table Section */
.downline-table-section {
    padding: 20px 24px;
}

.table-wrapper {
    overflow-x: auto;
}

.downline-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.downline-table th {
    background: #1e4663;
    color: white;
    padding: 10px 8px;
    text-align: left;
    border: 1px solid #2c5a82;
}

.downline-table td {
    padding: 8px;
    border: 1px solid #dee2e6;
}

.downline-table tr:nth-child(even) {
    background: #f8f9fa;
}

/* Responsive */
@media (max-width: 768px) {
    .downline-nav-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }
    .details-row {
        flex-direction: column;
    }
    .downline-action-buttons {
        flex-direction: column;
    }
    .downline-view-btn, .download-report-btn {
        width: 100%;
        text-align: center;
    }
}

/* Appointment Letter Styles */
.appointment-letter-wrapper {
    padding: 20px;
    background: #f0f2f6;
    min-height: calc(100vh - 100px);
}

.appointment-letter-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.appointment-letter-header {
    background: linear-gradient(135deg, #1e4663, #0d2b44);
    padding: 15px 24px;
}

.appointment-letter-header h2 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Two Column Layout */
.appointment-letter-two-column {
    display: flex;
    gap: 25px;
    padding: 24px;
    flex-wrap: wrap;
}

.appointment-left {
    flex: 1.5;
    min-width: 400px;
}

.appointment-right {
    flex: 1;
    min-width: 300px;
}

/* Letter Sections */
.letter-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.letter-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e4663;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
    text-transform: uppercase;
}

.letter-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.letter-field {
    flex: 1;
    min-width: 150px;
}

.letter-field.full-width {
    width: 100%;
}

.letter-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.letter-field input, .letter-field textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.85rem;
}

.letter-field textarea {
    resize: vertical;
}

/* Letter Actions */
.letter-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.print-checkbox {
    font-size: 0.8rem;
    color: #495057;
    cursor: pointer;
}

.print-checkbox input {
    margin-right: 5px;
}

.save-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
}

.save-btn:hover {
    background: #218838;
}

/* Employee List Table */
.employee-list-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 18px;
    border: 1px solid #e0e0e0;
}

.employee-list-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.employee-list-table th {
    background: #1e4663;
    color: white;
    padding: 10px 8px;
    text-align: left;
    border: 1px solid #2c5a82;
}

.employee-list-table td {
    padding: 8px;
    border: 1px solid #dee2e6;
}

.employee-list-table tr:nth-child(even) {
    background: white;
}

.employee-list-table tr:hover {
    background: #e9ecef;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .appointment-letter-two-column {
        flex-direction: column;
    }
    .appointment-left {
        min-width: auto;
    }
    .letter-row {
        flex-direction: column;
    }
    .letter-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .save-btn {
        width: 100%;
        text-align: center;
    }
}

/* Image Upload Section */
.letter-image-section {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.letter-image-section label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.image-upload-area {
    width: 150px;
    height: 100px;
    border: 2px dashed #ced4da;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: white;
    transition: all 0.2s;
}

.image-upload-area:hover {
    border-color: #3498db;
    background: #e9ecef;
}

.image-upload-area i {
    font-size: 32px;
    color: #6c757d;
    margin-bottom: 5px;
}

.image-upload-area span {
    font-size: 0.7rem;
    color: #6c757d;
}

#signaturePreview {
    max-width: 150px;
    max-height: 100px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.loan-tables-wrapper { padding: 20px; background: #e9ecef; min-height: calc(100vh - 100px); }
.loan-tables-card { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.loan-tables-header { background: #1e4663; padding: 12px 20px; }
.loan-tables-header h2 { color: white; margin: 0; font-size: 1rem; font-weight: 500; }
.loan-nav-tabs { display: flex; background: #f8f9fa; border-bottom: 1px solid #ddd; padding: 0 20px; gap: 5px; flex-wrap: wrap; }
.loan-nav-tabs .nav-tab { padding: 10px 16px; background: none; border: none; cursor: pointer; font-size: 0.75rem; color: #666; }
.loan-nav-tabs .nav-tab.active { color: #1e4663; border-bottom: 2px solid #1e4663; font-weight: 600; }
.loan-section-title { padding: 15px 20px 0 20px; margin: 0; font-size: 1rem; color: #1e4663; border-left: 3px solid #1e4663; margin-left: 20px; }
.loan-form { padding: 15px 20px; border-bottom: 1px solid #eee; }
.form-row { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.form-group { flex: 1; min-width: 140px; }
.form-group label { display: block; font-size: 0.65rem; font-weight: 600; color: #555; margin-bottom: 3px; text-transform: uppercase; }
.form-group input, .form-group select { width: 100%; padding: 6px 8px; border: 1px solid #ccc; border-radius: 4px; font-size: 0.8rem; }
.form-group input[readonly] { background: #e9ecef; }
.table-tabs-bar { padding: 10px 20px; background: #f8f9fa; border-bottom: 1px solid #eee; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.table-tabs-bar span { font-size: 0.75rem; font-weight: bold; color: #1e4663; }
.tab-btn { padding: 4px 10px; background: #e9ecef; border: none; border-radius: 12px; font-size: 0.7rem; cursor: pointer; }
.table-container { padding: 15px 20px; overflow-x: auto; }
.loan-table { width: 100%; border-collapse: collapse; font-size: 0.7rem; }
.loan-table th { background: #1e4663; color: white; padding: 8px 6px; border: 1px solid #2c5a82; text-align: left; }
.loan-table td { padding: 6px; border: 1px solid #ddd; }
.loan-table tr:nth-child(even) { background: #f8f9fa; }
.loan-table tr:hover { background: #e9ecef; cursor: pointer; }
.eligibility-row { padding: 10px 20px; border-bottom: 1px solid #eee; }
.eligibility-btn { background: #007bff; color: white; border: none; padding: 6px 16px; border-radius: 4px; cursor: pointer; font-size: 0.75rem; }
.code-sequence { padding: 15px 20px; background: #f8f9fa; border-bottom: 1px solid #eee; }
.code-title { font-size: 0.8rem; font-weight: bold; color: #1e4663; margin-bottom: 10px; }
.code-row { display: flex; gap: 15px; flex-wrap: wrap; }
.code-item { flex: 1; min-width: 100px; }
.code-item label { display: block; font-size: 0.65rem; font-weight: 600; color: #555; margin-bottom: 3px; }
.code-item input, .code-item select { width: 100%; padding: 6px 8px; border: 1px solid #ccc; border-radius: 4px; font-size: 0.75rem; background: white; }
.code-item input[readonly] { background: #e9ecef; }
.security-bar { padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.security-left { display: flex; align-items: center; gap: 15px; }
.security-left span { font-size: 0.8rem; font-weight: bold; color: #1e4663; }
.security-dropdown { padding: 6px 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 0.75rem; min-width: 150px; }
.security-buttons { display: flex; gap: 8px; }
.sec-btn { padding: 5px 16px; border: none; border-radius: 4px; cursor: pointer; font-size: 0.75rem; }
.sec-btn.new { background: #28a745; color: white; }
.sec-btn.delete { background: #dc3545; color: white; }
.sec-btn.save { background: #007bff; color: white; }
@media (max-width: 700px) { .form-row { flex-direction: column; } .code-row { flex-direction: column; } .security-bar { flex-direction: column; } .security-left { flex-direction: column; align-items: flex-start; } }

.vendor-master-wrapper { padding: 20px; background: #f0f2f6; min-height: calc(100vh - 100px); }
.vendor-master-card { background: white; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); overflow: hidden; }
.vendor-master-header { background: linear-gradient(135deg, #1e4663, #0d2b44); padding: 15px 24px; }
.vendor-master-header h2 { color: white; margin: 0; font-size: 1.3rem; font-weight: 600; }
.vendor-master-header h2 i { margin-right: 10px; }
.vendor-form { padding: 24px; }
.vendor-row { margin-bottom: 15px; display: flex; gap: 15px; flex-wrap: wrap; }
.vendor-field { flex: 1; min-width: 200px; }
.vendor-field.full-width { width: 100%; }
.vendor-field label { display: block; font-size: 0.7rem; font-weight: 600; color: #495057; margin-bottom: 5px; text-transform: uppercase; }
.vendor-field input, .vendor-field textarea { width: 100%; padding: 8px 12px; border: 1px solid #ced4da; border-radius: 6px; font-size: 0.85rem; }
.vendor-field textarea { resize: vertical; }
.vendor-buttons { padding: 0 24px 20px 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.vendor-btn { padding: 8px 24px; border: none; border-radius: 6px; cursor: pointer; font-size: 0.8rem; font-weight: 500; }
.vendor-btn.new { background: #28a745; color: white; }
.vendor-btn.save { background: #007bff; color: white; }
.vendor-btn.update { background: #ffc107; color: #212529; }
.vendor-btn.delete { background: #dc3545; color: white; }
.vendor-table-section { padding: 0 24px 24px 24px; }
.vendor-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.vendor-table th { background: #1e4663; color: white; padding: 10px; text-align: left; border: 1px solid #2c5a82; }
.vendor-table td { padding: 8px; border: 1px solid #dee2e6; }
.vendor-table tr:nth-child(even) { background: #f8f9fa; }
.vendor-table tr:hover { background: #e9ecef; cursor: pointer; }
@media (max-width: 768px) { .vendor-row { flex-direction: column; } .vendor-buttons { flex-direction: column; } .vendor-btn { width: 100%; text-align: center; } }

.loan-entry-wrapper { padding: 20px; background: #f0f2f6; min-height: calc(100vh - 100px); }
.loan-entry-card { background: white; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); overflow: hidden; }
.loan-entry-header { background: linear-gradient(135deg, #1e4663, #0d2b44); padding: 15px 24px; }
.loan-entry-header h2 { color: white; margin: 0; font-size: 1.3rem; font-weight: 600; }
.loan-entry-two-column { display: flex; gap: 25px; padding: 24px; flex-wrap: wrap; }
.loan-entry-left { flex: 1.5; min-width: 400px; }
.loan-entry-right { flex: 1; min-width: 350px; }
.loan-section { background: #f8f9fa; border-radius: 10px; padding: 18px; margin-bottom: 20px; border: 1px solid #e0e0e0; }
.loan-section-title { font-size: 0.9rem; font-weight: 700; color: #1e4663; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid #3498db; }
.loan-row { display: flex; gap: 15px; margin-bottom: 12px; flex-wrap: wrap; }
.loan-field { flex: 1; min-width: 150px; }
.loan-field.full-width { width: 100%; }
.loan-field label { display: block; font-size: 0.7rem; font-weight: 600; color: #495057; margin-bottom: 4px; text-transform: uppercase; }
.loan-field input, .loan-field select, .loan-field textarea { width: 100%; padding: 8px 10px; border: 1px solid #ced4da; border-radius: 6px; font-size: 0.85rem; }
.loan-field input[readonly] { background: #e9ecef; }
.loan-field textarea { resize: vertical; }
.loan-file-row { display: flex; align-items: center; gap: 10px; }
.browse-btn { padding: 6px 16px; background: #6c757d; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 0.75rem; }
.file-name { font-size: 0.75rem; color: #666; }
.loan-footer-buttons { padding: 20px 24px; display: flex; gap: 15px; justify-content: center; border-top: 1px solid #e9ecef; background: #f8f9fa; }
.loan-footer-btn { padding: 10px 30px; border: none; border-radius: 6px; cursor: pointer; font-size: 0.85rem; font-weight: 600; }
.loan-footer-btn.new { background: #28a745; color: white; }
.loan-footer-btn.save { background: #007bff; color: white; }
@media (max-width: 768px) { .loan-entry-two-column { flex-direction: column; } .loan-entry-left, .loan-entry-right { min-width: auto; } .loan-row { flex-direction: column; } .loan-footer-buttons { flex-direction: column; } .loan-footer-btn { width: 100%; text-align: center; } }

.group-loan-wrapper { padding: 20px; background: #f0f2f6; min-height: calc(100vh - 100px); }
.group-loan-card { background: white; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); overflow: hidden; }
.group-loan-header { background: linear-gradient(135deg, #1e4663, #0d2b44); padding: 15px 24px; }
.group-loan-header h2 { color: white; margin: 0; font-size: 1.3rem; font-weight: 600; }
.group-loan-header h2 i { margin-right: 10px; }
.group-loan-two-column { display: flex; gap: 25px; padding: 24px; flex-wrap: wrap; }
.group-loan-left { flex: 1.2; min-width: 450px; }
.group-loan-right { flex: 2; min-width: 500px; }
.group-section { background: #f8f9fa; border-radius: 10px; padding: 18px; margin-bottom: 20px; border: 1px solid #e0e0e0; }
.group-section-title { font-size: 0.9rem; font-weight: 700; color: #1e4663; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid #3498db; }
.group-row { display: flex; gap: 15px; margin-bottom: 12px; flex-wrap: wrap; }
.group-field { flex: 1; min-width: 140px; position: relative; }
.group-field.full-width { width: 100%; }
.group-field label { display: block; font-size: 0.7rem; font-weight: 600; color: #495057; margin-bottom: 4px; text-transform: uppercase; }
.group-field input, .group-field select, .group-field textarea { width: 100%; padding: 8px 10px; border: 1px solid #ced4da; border-radius: 6px; font-size: 0.85rem; }
.group-field input[readonly] { background: #e9ecef; }
.group-field textarea { resize: vertical; }
.field-suffix { position: absolute; right: 10px; top: 32px; font-size: 0.7rem; color: #666; }
.table-wrapper { overflow-x: auto; }
.member-loan-table { width: 100%; border-collapse: collapse; font-size: 0.7rem; }
.member-loan-table th { background: #1e4663; color: white; padding: 10px 6px; text-align: left; border: 1px solid #2c5a82; white-space: nowrap; }
.member-loan-table td { padding: 8px 6px; border: 1px solid #dee2e6; }
.member-loan-table tr:nth-child(even) { background: white; }
.member-loan-table input { width: 80px; padding: 4px; border: 1px solid #ccc; border-radius: 3px; font-size: 0.7rem; }
.member-loan-table .ok-checkbox { width: 20px; height: 20px; cursor: pointer; }
.group-loan-buttons { padding: 20px 24px; display: flex; gap: 15px; justify-content: center; border-top: 1px solid #e9ecef; background: #f8f9fa; }
.group-btn { padding: 10px 30px; border: none; border-radius: 6px; cursor: pointer; font-size: 0.85rem; font-weight: 600; }
.group-btn.delete { background: #dc3545; color: white; }
.group-btn.new { background: #28a745; color: white; }
.group-btn.submit { background: #007bff; color: white; }
@media (max-width: 900px) { .group-loan-two-column { flex-direction: column; } .group-loan-left, .group-loan-right { min-width: auto; } .group-row { flex-direction: column; } .group-loan-buttons { flex-direction: column; } .group-btn { width: 100%; text-align: center; } }

.loan-search-wrapper { padding: 20px; background: #f0f2f6; min-height: calc(100vh - 100px); }
.loan-search-card { background: white; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); overflow: hidden; }
.loan-search-header { background: linear-gradient(135deg, #1e4663, #0d2b44); padding: 15px 24px; }
.loan-search-header h2 { color: white; margin: 0; font-size: 1.3rem; font-weight: 600; }
.loan-search-form { padding: 20px 24px; border-bottom: 1px solid #e9ecef; }
.search-row { margin-bottom: 15px; }
.search-field { flex: 1; }
.search-field.full-width { width: 100%; }
.search-field label { display: block; font-size: 0.7rem; font-weight: 600; color: #495057; margin-bottom: 5px; text-transform: uppercase; }
.search-field input { width: 100%; padding: 8px 12px; border: 1px solid #ced4da; border-radius: 6px; font-size: 0.85rem; }
.loan-search-table-section { padding: 20px 24px; }
.table-wrapper { overflow-x: auto; }
.loan-search-table { width: 100%; border-collapse: collapse; font-size: 0.7rem; }
.loan-search-table th { background: #1e4663; color: white; padding: 10px 6px; text-align: left; border: 1px solid #2c5a82; white-space: nowrap; }
.loan-search-table td { padding: 8px 6px; border: 1px solid #dee2e6; }
.loan-search-table tr:nth-child(even) { background: #f8f9fa; }
.loan-search-table tr:hover { background: #e9ecef; cursor: pointer; }
.status-paid { color: #28a745; font-weight: bold; }
.status-unpaid { color: #dc3545; font-weight: bold; }
.pay-btn { background: #28a745; color: white; border: none; padding: 4px 12px; border-radius: 4px; cursor: pointer; font-size: 0.7rem; }
.loan-search-footer { padding: 20px 24px; background: #f8f9fa; border-top: 1px solid #e9ecef; }
.footer-row { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; }
.footer-field { flex: 1; min-width: 150px; }
.footer-field label { display: block; font-size: 0.7rem; font-weight: 600; color: #495057; margin-bottom: 5px; text-transform: uppercase; }
.footer-field select { width: 100%; padding: 8px 12px; border: 1px solid #ced4da; border-radius: 6px; font-size: 0.85rem; }
.footer-buttons { display: flex; gap: 10px; }
.search-footer-btn, .close-footer-btn { padding: 8px 24px; border: none; border-radius: 6px; cursor: pointer; font-size: 0.8rem; font-weight: 500; }
.search-footer-btn { background: #007bff; color: white; }
.close-footer-btn { background: #6c757d; color: white; }
@media (max-width: 768px) { .footer-row { flex-direction: column; } .footer-buttons { width: 100%; } .search-footer-btn, .close-footer-btn { flex: 1; text-align: center; } }

.loan-payment-wrapper { padding: 20px; background: #f0f2f6; min-height: calc(100vh - 100px); }
.loan-payment-card { background: white; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); overflow: hidden; }
.loan-payment-header { background: linear-gradient(135deg, #1e4663, #0d2b44); padding: 15px 24px; }
.loan-payment-header h2 { color: white; margin: 0; font-size: 1.3rem; font-weight: 600; }
.loan-payment-two-column { display: flex; gap: 25px; padding: 24px; flex-wrap: wrap; }
.loan-payment-left { flex: 1.2; min-width: 400px; }
.loan-payment-right { flex: 1.8; min-width: 500px; }
.payment-section { background: #f8f9fa; border-radius: 10px; padding: 18px; margin-bottom: 20px; border: 1px solid #e0e0e0; }
.payment-section-title { font-size: 0.9rem; font-weight: 700; color: #1e4663; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid #3498db; }
.payment-row { display: flex; gap: 15px; margin-bottom: 12px; flex-wrap: wrap; }
.payment-field { flex: 1; min-width: 140px; }
.payment-field.full-width { width: 100%; }
.payment-field label { display: block; font-size: 0.7rem; font-weight: 600; color: #495057; margin-bottom: 4px; text-transform: uppercase; }
.payment-field input, .payment-field select, .payment-field textarea { width: 100%; padding: 8px 10px; border: 1px solid #ced4da; border-radius: 6px; font-size: 0.85rem; }
.payment-field input[readonly] { background: #e9ecef; }
.member-payment-table { width: 100%; border-collapse: collapse; font-size: 0.7rem; }
.member-payment-table th { background: #1e4663; color: white; padding: 8px 4px; text-align: left; border: 1px solid #2c5a82; white-space: nowrap; }
.member-payment-table td { padding: 6px 4px; border: 1px solid #dee2e6; }
.member-payment-table input { width: 80px; padding: 4px; border: 1px solid #ccc; border-radius: 3px; font-size: 0.7rem; }
.payment-options { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.options-label { font-size: 0.8rem; font-weight: bold; color: #1e4663; }
.payment-option { padding: 6px 20px; border: none; border-radius: 5px; cursor: pointer; font-size: 0.75rem; font-weight: 500; }
.payment-option.paid { background: #28a745; color: white; }
.payment-option.notpaid { background: #dc3545; color: white; }
.payment-option.pay { background: #007bff; color: white; }
.payment-option.revert { background: #ffc107; color: #212529; }
.installment-row { display: flex; gap: 15px; }
.installment-field { flex: 1; }
.installment-field label { display: block; font-size: 0.7rem; font-weight: 600; color: #495057; margin-bottom: 4px; }
.installment-field input { width: 100%; padding: 8px 10px; border: 1px solid #ced4da; border-radius: 6px; }
@media (max-width: 900px) { .loan-payment-two-column { flex-direction: column; } .loan-payment-left, .loan-payment-right { min-width: auto; } .payment-row { flex-direction: column; } }

.payment-scheduler-wrapper { padding: 20px; background: #f0f2f6; min-height: calc(100vh - 100px); }
.payment-scheduler-card { background: white; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); overflow: hidden; }
.payment-scheduler-header { background: linear-gradient(135deg, #1e4663, #0d2b44); padding: 15px 24px; }
.payment-scheduler-header h2 { color: white; margin: 0; font-size: 1.3rem; font-weight: 600; }
.scheduler-title { padding: 20px 24px 0 24px; }
.scheduler-title h3 { color: #1e4663; font-size: 1.1rem; font-weight: 600; margin: 0; padding-bottom: 10px; border-bottom: 2px solid #3498db; display: inline-block; }
.scheduler-two-column { display: flex; gap: 25px; padding: 24px; flex-wrap: wrap; }
.scheduler-left { flex: 1; min-width: 500px; }
.scheduler-right { flex: 1.5; min-width: 450px; }
.scheduler-row { display: flex; gap: 15px; margin-bottom: 15px; flex-wrap: wrap; }
.scheduler-field { flex: 1; min-width: 140px; }
.scheduler-field.full-width { width: 100%; }
.scheduler-field label { display: block; font-size: 0.7rem; font-weight: 600; color: #495057; margin-bottom: 4px; text-transform: uppercase; }
.scheduler-field input, .scheduler-field select { width: 100%; padding: 8px 10px; border: 1px solid #ced4da; border-radius: 6px; font-size: 0.85rem; }
.scheduler-field input[readonly] { background: #e9ecef; }
.confirm-generate-btn { background: #28a745; color: white; border: none; padding: 8px 20px; border-radius: 6px; cursor: pointer; font-size: 0.8rem; font-weight: 500; width: 100%; margin-top: 22px; }
.scheduler-table-section { background: #f8f9fa; border-radius: 10px; padding: 18px; border: 1px solid #e0e0e0; }
.table-wrapper { overflow-x: auto; }
.member-scheduler-table { width: 100%; border-collapse: collapse; font-size: 0.7rem; }
.member-scheduler-table th { background: #1e4663; color: white; padding: 10px 6px; text-align: left; border: 1px solid #2c5a82; white-space: nowrap; }
.member-scheduler-table td { padding: 8px 6px; border: 1px solid #dee2e6; }
.member-scheduler-table tr:nth-child(even) { background: white; }
@media (max-width: 900px) { .scheduler-two-column { flex-direction: column; } .scheduler-left, .scheduler-right { min-width: auto; } .scheduler-row { flex-direction: column; } .confirm-generate-btn { margin-top: 0; } }

.product-loan-entry-wrapper { padding: 20px; background: #f0f2f6; min-height: calc(100vh - 100px); }
.product-loan-entry-card { background: white; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); overflow: hidden; }
.product-loan-entry-header { background: linear-gradient(135deg, #1e4663, #0d2b44); padding: 15px 24px; }
.product-loan-entry-header h2 { color: white; margin: 0; font-size: 1rem; font-weight: 600; }
.product-loan-nav-tabs { display: flex; flex-wrap: wrap; background: #f8f9fa; border-bottom: 1px solid #dee2e6; padding: 0 24px; }
.product-loan-nav-tabs .nav-tab { padding: 12px 20px; background: none; border: none; cursor: pointer; font-size: 0.8rem; font-weight: 500; color: #6c757d; }
.product-loan-nav-tabs .nav-tab:hover { color: #1e4663; background: #e9ecef; }
.product-loan-nav-tabs .nav-tab.active { color: #1e4663; border-bottom: 2px solid #1e4663; font-weight: 600; }
.product-loan-title { padding: 20px 24px 0 24px; }
.product-loan-title h3 { color: #1e4663; font-size: 1.1rem; font-weight: 600; margin: 0; padding-bottom: 10px; border-bottom: 2px solid #3498db; display: inline-block; }
.product-loan-two-column { display: flex; gap: 25px; padding: 24px; flex-wrap: wrap; }
.product-loan-left { flex: 1.5; min-width: 450px; }
.product-loan-right { flex: 1; min-width: 350px; }
.product-loan-section { background: #f8f9fa; border-radius: 10px; padding: 18px; margin-bottom: 20px; border: 1px solid #e0e0e0; }
.product-loan-section-title { font-size: 0.9rem; font-weight: 700; color: #1e4663; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid #3498db; }
.product-loan-row { display: flex; gap: 15px; margin-bottom: 12px; flex-wrap: wrap; }
.product-loan-field { flex: 1; min-width: 130px; }
.product-loan-field.full-width { width: 100%; }
.product-loan-field label { display: block; font-size: 0.7rem; font-weight: 600; color: #495057; margin-bottom: 4px; text-transform: uppercase; }
.product-loan-field input, .product-loan-field select, .product-loan-field textarea { width: 100%; padding: 8px 10px; border: 1px solid #ced4da; border-radius: 6px; font-size: 0.85rem; }
.product-loan-field input[readonly] { background: #e9ecef; }
.product-loan-field textarea { resize: vertical; }
.fill-product-btn-section { text-align: center; }
.fill-product-data-btn { background: #17a2b8; color: white; border: none; padding: 8px 24px; border-radius: 6px; cursor: pointer; font-size: 0.8rem; font-weight: 500; }
.security-row { display: flex; align-items: center; gap: 10px; }
.browse-security-btn { padding: 6px 16px; background: #6c757d; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 0.75rem; }
.file-name { font-size: 0.75rem; color: #666; }
.product-loan-footer-buttons { display: flex; gap: 15px; justify-content: center; margin-top: 20px; }
.product-loan-footer-btn { padding: 10px 30px; border: none; border-radius: 6px; cursor: pointer; font-size: 0.85rem; font-weight: 600; }
.product-loan-footer-btn.new { background: #28a745; color: white; }
.product-loan-footer-btn.save { background: #007bff; color: white; }
@media (max-width: 900px) { .product-loan-two-column { flex-direction: column; } .product-loan-left, .product-loan-right { min-width: auto; } .product-loan-row { flex-direction: column; } .product-loan-footer-buttons { flex-direction: column; } .product-loan-footer-btn { width: 100%; text-align: center; } }

.collection-sheet-wrapper {
    padding: 20px;
    background: #f0f2f6;
    min-height: calc(100vh - 100px);
}

.collection-sheet-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.collection-sheet-header {
    background: linear-gradient(135deg, #1e4663, #0d2b44);
    padding: 15px 24px;
}

.collection-sheet-header h2 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.collection-sheet-header h2 i {
    margin-right: 10px;
}

/* Tabs */
.collection-sheet-tabs {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
    padding: 0 24px;
}

.sheet-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.2s;
}

.sheet-tab:hover {
    color: #1e4663;
    background: #e9ecef;
}

.sheet-tab.active {
    color: #1e4663;
    border-bottom: 2px solid #1e4663;
    font-weight: 600;
}

/* Panels */
.sheet-panel {
    display: none;
    padding: 24px;
    border-bottom: 1px solid #e9ecef;
}

.sheet-panel.active {
    display: block;
}

/* Form */
.sheet-form {
    max-width: 800px;
    margin: 0 auto;
}

.sheet-row {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.sheet-field {
    flex: 1;
    min-width: 180px;
}

.sheet-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.sheet-field input, .sheet-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* Buttons */
.sheet-buttons {
    padding: 20px 24px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.sheet-search-btn, .sheet-exit-btn {
    padding: 10px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
}

.sheet-search-btn {
    background: #007bff;
    color: white;
}

.sheet-search-btn:hover {
    background: #0069d9;
}

.sheet-exit-btn {
    background: #dc3545;
    color: white;
}

.sheet-exit-btn:hover {
    background: #c82333;
}

/* Responsive */
@media (max-width: 768px) {
    .collection-sheet-tabs {
        flex-direction: column;
        padding: 0;
    }
    .sheet-tab {
        text-align: center;
    }
    .sheet-row {
        flex-direction: column;
    }
    .sheet-buttons {
        flex-direction: column;
    }
    .sheet-search-btn, .sheet-exit-btn {
        width: 100%;
        text-align: center;
    }
}

.loan-payment-module-wrapper { padding: 20px; background: #f0f2f6; min-height: calc(100vh - 100px); }
.loan-payment-module-card { background: white; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); overflow: hidden; }
.loan-payment-module-header { background: linear-gradient(135deg, #1e4663, #0d2b44); padding: 15px 24px; }
.loan-payment-module-header h2 { color: white; margin: 0; font-size: 1.3rem; font-weight: 600; }

.payment-search-section { padding: 20px 24px; background: #f8f9fa; border-bottom: 1px solid #e9ecef; }
.payment-search-title { font-size: 1rem; font-weight: 700; color: #2c3e50; margin-bottom: 15px; padding-left: 8px; border-left: 4px solid #3498db; }
.payment-search-row { display: flex; gap: 15px; flex-wrap: wrap; }
.payment-search-field { flex: 1; display: flex; gap: 10px; align-items: flex-end; }
.payment-search-field label { display: block; font-size: 0.7rem; font-weight: 600; color: #495057; margin-bottom: 5px; text-transform: uppercase; }
.payment-search-field input { flex: 1; padding: 8px 12px; border: 1px solid #ced4da; border-radius: 6px; font-size: 0.85rem; }
.payment-search-btn { padding: 8px 20px; background: #007bff; color: white; border: none; border-radius: 6px; cursor: pointer; }

.payment-two-column { display: flex; gap: 25px; padding: 24px; flex-wrap: wrap; }
.payment-left { flex: 1.5; min-width: 500px; }
.payment-right { flex: 1.2; min-width: 450px; }

.payment-section { background: #f8f9fa; border-radius: 10px; padding: 18px; margin-bottom: 20px; border: 1px solid #e0e0e0; }
.payment-section-title { font-size: 0.9rem; font-weight: 700; color: #1e4663; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid #3498db; }
.payment-subsection-title { font-size: 0.8rem; font-weight: 700; color: #1e4663; margin: 10px 0 12px 0; padding-left: 8px; border-left: 3px solid #3498db; }

.payment-row { display: flex; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.payment-field { flex: 1; min-width: 120px; }
.payment-field.full-width { width: 100%; }
.payment-field label { display: block; font-size: 0.65rem; font-weight: 600; color: #495057; margin-bottom: 3px; text-transform: uppercase; }
.payment-field input, .payment-field select { width: 100%; padding: 6px 8px; border: 1px solid #ced4da; border-radius: 5px; font-size: 0.8rem; }
.payment-field input[readonly] { background: #e9ecef; }

.table-wrapper { overflow-x: auto; }
.paid-emis-table { width: 100%; border-collapse: collapse; font-size: 0.7rem; }
.paid-emis-table th { background: #1e4663; color: white; padding: 8px 6px; border: 1px solid #2c5a82; }
.paid-emis-table td { padding: 6px; border: 1px solid #dee2e6; }

.payment-buttons-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.payment-btn { padding: 6px 15px; border: none; border-radius: 5px; cursor: pointer; font-size: 0.7rem; font-weight: 500; }
.payment-btn.save { background: #28a745; color: white; }
.payment-btn.delete-emi { background: #dc3545; color: white; }
.payment-btn.print-mr { background: #17a2b8; color: white; }
.payment-btn.print { background: #6c757d; color: white; }
.payment-btn.new { background: #007bff; color: white; }

.payment-save-emi-btn { margin-top: 10px; text-align: center; }
.save-emi-btn { padding: 6px 20px; background: #28a745; color: white; border: none; border-radius: 5px; cursor: pointer; }

.advance-emis-section { display: flex; align-items: center; gap: 10px; margin-top: 15px; padding: 10px; background: #fff9e6; border-radius: 5px; }
.advance-emis-section label { font-size: 0.8rem; font-weight: bold; color: #856404; }
.advance-emis-section input { width: 100px; padding: 5px; border: 1px solid #ced4da; border-radius: 4px; background: #e9ecef; }

@media (max-width: 900px) { .payment-two-column { flex-direction: column; } .payment-left, .payment-right { min-width: auto; } .payment-row { flex-direction: column; } .payment-buttons-row { flex-direction: column; } .payment-btn { width: 100%; text-align: center; } }

/* Add these new styles to existing Loan Payment CSS */
.checkbox-field {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.checkbox-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-transform: none;
    font-size: 0.75rem;
}

.checkbox-field input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.new-emis-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.7rem;
}

.new-emis-table th {
    background: #1e4663;
    color: white;
    padding: 8px 6px;
    border: 1px solid #2c5a82;
}

.new-emis-table td {
    padding: 6px;
    border: 1px solid #dee2e6;
}

.new-emis-table input {
    width: 100%;
    padding: 4px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.7rem;
}

.add-emi-row {
    margin-top: 10px;
    text-align: right;
}

.add-emi-btn {
    padding: 5px 15px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
}

.delete-emi-row-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    padding: 3px 8px;
    font-size: 0.65rem;
}

.repayment-settings-wrapper {
    padding: 20px;
    background: #f0f2f6;
    min-height: calc(100vh - 100px);
}

.repayment-settings-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.repayment-settings-header {
    background: linear-gradient(135deg, #1e4663, #0d2b44);
    padding: 15px 24px;
}

.repayment-settings-header h2 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.repayment-settings-header h2 i {
    margin-right: 10px;
}

.repayment-form {
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
}

.repayment-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.repayment-field {
    flex: 1;
    min-width: 180px;
}

.repayment-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.repayment-field input, .repayment-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.85rem;
}

.repayment-load-btn {
    width: 100%;
    padding: 8px 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
}

.repayment-load-btn:hover {
    background: #0069d9;
}

/* Table Section */
.repayment-table-section {
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
}

.table-wrapper {
    overflow-x: auto;
}

.repayment-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.7rem;
}

.repayment-table th {
    background: #1e4663;
    color: white;
    padding: 10px 6px;
    text-align: left;
    border: 1px solid #2c5a82;
    white-space: nowrap;
}

.repayment-table td {
    padding: 8px 6px;
    border: 1px solid #dee2e6;
}

.repayment-table input {
    width: 100%;
    padding: 6px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.7rem;
}

.repayment-table input[readonly] {
    background: #e9ecef;
}

/* Footer */
.repayment-footer {
    padding: 20px 24px;
    background: #f8f9fa;
}

.footer-row {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.footer-field {
    flex: 1;
    min-width: 200px;
}

.footer-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.footer-field input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.85rem;
}

.footer-field input[readonly] {
    background: #e9ecef;
}

/* Responsive */
@media (max-width: 900px) {
    .repayment-row {
        flex-direction: column;
    }
    .footer-row {
        flex-direction: column;
    }
}

.loan-precloser-wrapper {
    padding: 20px;
    background: #f0f2f6;
    min-height: calc(100vh - 100px);
}

.loan-precloser-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    padding: 0 24px 24px 24px;
}

.loan-precloser-header {
    background: linear-gradient(135deg, #1e4663, #0d2b44);
    margin: 0 -24px 20px -24px;
    padding: 15px 24px;
}

.loan-precloser-header h2 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Search Section */
.precloser-search-section {
    margin-bottom: 20px;
}

.precloser-search-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.precloser-search-row {
    display: flex;
    gap: 10px;
}

.precloser-search-field {
    display: flex;
    gap: 10px;
    flex: 1;
}

.precloser-search-field input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.85rem;
}

.precloser-search-btn {
    padding: 8px 24px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* Info Rows */
.precloser-info-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.precloser-info-group {
    flex: 1;
    min-width: 150px;
}

.precloser-info-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
}

.precloser-info-group input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 0.85rem;
    background: #f8f9fa;
}

/* Section Titles */
.precloser-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e4663;
    margin: 20px 0 12px 0;
    padding-left: 8px;
    border-left: 3px solid #3498db;
}

/* Product Rows */
.precloser-product-row {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.precloser-product-group {
    flex: 1;
    min-width: 120px;
}

.precloser-product-group label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
}

.precloser-product-group input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 0.85rem;
}

.precloser-product-group input[readonly] {
    background: #f8f9fa;
}

/* Deposit Rows */
.precloser-deposit-row {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.precloser-deposit-group {
    flex: 1;
    min-width: 120px;
}

.precloser-deposit-group label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
}

.precloser-deposit-group input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 0.85rem;
}

/* Principal Rows */
.precloser-principal-row {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.precloser-principal-group {
    flex: 1;
    min-width: 120px;
}

.precloser-principal-group.full-width {
    width: 100%;
}

.precloser-principal-group label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
}

.precloser-principal-group input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 0.85rem;
}

.precloser-principal-group input[readonly] {
    background: #f8f9fa;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

/* Pre Closer Rows */
.precloser-precloser-row {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.precloser-precloser-group {
    flex: 1;
    min-width: 120px;
}

.precloser-precloser-group label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
}

.precloser-precloser-group input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 0.85rem;
}

.precloser-precloser-group input[readonly] {
    background: #f8f9fa;
}

/* Payable Rows */
.precloser-payable-row {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.precloser-payable-group {
    flex: 1;
    min-width: 150px;
}

.precloser-payable-group.full-width {
    width: 100%;
}

.precloser-payable-group label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
}

.precloser-payable-group input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 0.85rem;
}

.precloser-payable-group input[readonly] {
    background: #f8f9fa;
}

/* Table Section - At the Bottom */
.precloser-table-section {
    margin: 25px 0 20px 0;
}

.precloser-table-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e4663;
    margin-bottom: 12px;
    padding-left: 8px;
    border-left: 3px solid #3498db;
}

.precloser-table-wrapper {
    overflow-x: auto;
}

.precloser-emi-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.precloser-emi-table th {
    background: #1e4663;
    color: white;
    padding: 10px 8px;
    text-align: left;
    border: 1px solid #2c5a82;
}

.precloser-emi-table td {
    padding: 8px;
    border: 1px solid #dee2e6;
}

.precloser-emi-table tr:nth-child(even) {
    background: #f8f9fa;
}

.status-paid {
    color: #28a745;
    font-weight: bold;
}

.status-pending {
    color: #dc3545;
    font-weight: bold;
}

/* Buttons */
.precloser-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.precloser-btn {
    padding: 8px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
}

.precloser-btn.update {
    background: #28a745;
    color: white;
}

.precloser-btn.close {
    background: #dc3545;
    color: white;
}

/* Responsive */
@media (max-width: 900px) {
    .precloser-info-row, .precloser-product-row, .precloser-deposit-row,
    .precloser-principal-row, .precloser-precloser-row, .precloser-payable-row {
        flex-direction: column;
    }
    .precloser-buttons {
        flex-direction: column;
    }
    .precloser-btn {
        width: 100%;
        text-align: center;
    }
}

.loan-document-print-wrapper {
    padding: 20px;
    background: #f0f2f6;
    min-height: calc(100vh - 100px);
}

.loan-document-print-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    padding: 0 24px 24px 24px;
}

.loan-document-print-header {
    background: linear-gradient(135deg, #1e4663, #0d2b44);
    margin: 0 -24px 20px -24px;
    padding: 15px 24px;
}

.loan-document-print-header h2 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.loan-document-print-header h2 i {
    margin-right: 10px;
}

/* Loan No Display */
.document-loan-no {
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.document-loan-no label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    margin-right: 10px;
}

.document-loan-no span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e4663;
}

/* Loan Details Grid */
.document-details-grid {
    margin-bottom: 25px;
}

.document-detail-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.document-detail-field {
    flex: 1;
    min-width: 150px;
}

.document-detail-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.document-detail-field input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.85rem;
    background: #f8f9fa;
}

/* Document Checkboxes */
.document-checkboxes-section {
    margin-bottom: 30px;
}

.document-checkbox-row {
    display: flex;
    gap: 30px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.document-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #2c3e50;
}

.document-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Print Button */
.document-print-btn-section {
    text-align: center;
}

.document-print-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 40px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.document-print-btn:hover {
    background: #218838;
}

/* Responsive */
@media (max-width: 768px) {
    .document-detail-row {
        flex-direction: column;
    }
    .document-checkbox-row {
        flex-direction: column;
        gap: 10px;
    }
}

.loan-calculator-wrapper {
    padding: 20px;
    background: #f0f2f6;
    min-height: calc(100vh - 100px);
}

.loan-calculator-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
}

.loan-calculator-header {
    background: linear-gradient(135deg, #1e4663, #0d2b44);
    padding: 15px 24px;
}

.loan-calculator-header h2 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.loan-calculator-header h2 i {
    margin-right: 10px;
}

.loan-calculator-form {
    padding: 24px;
}

.calculator-row {
    margin-bottom: 18px;
}

.calculator-field {
    width: 100%;
}

.calculator-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.calculator-field input, .calculator-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.9rem;
}

.calculator-field input:focus, .calculator-field select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52,152,219,0.1);
}

.calculator-field input[readonly] {
    background: #e9ecef;
    cursor: not-allowed;
}

.calculator-buttons {
    padding: 0 24px 24px 24px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.calculator-card-btn, .calculator-calc-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

.calculator-card-btn {
    background: #17a2b8;
    color: white;
}

.calculator-card-btn:hover {
    background: #138496;
}

.calculator-calc-btn {
    background: #28a745;
    color: white;
}

.calculator-calc-btn:hover {
    background: #218838;
}

/* Responsive */
@media (max-width: 550px) {
    .loan-calculator-card {
        max-width: 100%;
    }
    .calculator-buttons {
        flex-direction: column;
    }
}

.loan-document-wrapper {
    padding: 20px;
    background: #f0f2f6;
    min-height: calc(100vh - 100px);
}

.loan-document-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

.loan-document-header {
    background: linear-gradient(135deg, #1e4663, #0d2b44);
    padding: 15px 24px;
}

.loan-document-header h2 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.loan-document-header h2 i {
    margin-right: 10px;
}

/* Loan ID Section */
.loan-document-id-section {
    padding: 24px;
    border-bottom: 1px solid #e9ecef;
}

.loan-id-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.loan-id-field {
    flex: 2;
    min-width: 200px;
}

.loan-id-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.loan-id-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.9rem;
}

.loan-id-buttons {
    display: flex;
    gap: 10px;
}

.show-btn, .close-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
}

.show-btn {
    background: #007bff;
    color: white;
}

.show-btn:hover {
    background: #0069d9;
}

.close-btn {
    background: #6c757d;
    color: white;
}

.close-btn:hover {
    background: #5a6268;
}

/* NOC Certificate Card */
.noc-certificate-card {
    margin: 24px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff9e6;
}

.noc-card-header {
    background: #1e4663;
    padding: 12px 20px;
}

.noc-card-header h3 {
    color: white;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.noc-card-header h3 i {
    margin-right: 8px;
}

.noc-card-body {
    padding: 20px;
    text-align: center;
}

.noc-warning {
    color: #856404;
    font-size: 0.85rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.noc-warning i {
    font-size: 1rem;
}

.download-noc-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.download-noc-btn:hover {
    background: #218838;
}

/* Responsive */
@media (max-width: 550px) {
    .loan-document-card {
        max-width: 100%;
    }
    .loan-id-row {
        flex-direction: column;
    }
    .loan-id-buttons {
        width: 100%;
    }
    .show-btn, .close-btn {
        flex: 1;
        text-align: center;
    }
}

.loan-emi-report-wrapper {
    padding: 20px;
    background: #f0f2f6;
    min-height: calc(100vh - 100px);
}

.loan-emi-report-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.loan-emi-report-header {
    background: linear-gradient(135deg, #1e4663, #0d2b44);
    padding: 15px 24px;
}

.loan-emi-report-header h2 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.loan-emi-report-header h2 i {
    margin-right: 10px;
}

/* Filter Section */
.report-filter-section {
    padding: 24px;
    border-bottom: 1px solid #e9ecef;
}

.filter-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-field {
    flex: 1;
    min-width: 180px;
}

.filter-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.filter-field input, .filter-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.85rem;
}

.filter-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.report-show-btn, .report-close-btn {
    padding: 8px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
}

.report-show-btn {
    background: #007bff;
    color: white;
}

.report-show-btn:hover {
    background: #0069d9;
}

.report-close-btn {
    background: #dc3545;
    color: white;
}

.report-close-btn:hover {
    background: #c82333;
}

/* LOAN SEARCH Title */
.loan-search-title {
    padding: 0 24px;
    margin-top: 10px;
}

.loan-search-title h3 {
    color: #1e4663;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    padding-left: 8px;
    border-left: 4px solid #3498db;
}

/* Report Table Section */
.report-table-section {
    padding: 20px 24px 24px 24px;
}

.table-wrapper {
    overflow-x: auto;
}

.loan-emi-report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.loan-emi-report-table th {
    background: #1e4663;
    color: white;
    padding: 10px 8px;
    text-align: left;
    border: 1px solid #2c5a82;
    white-space: nowrap;
}

.loan-emi-report-table td {
    padding: 8px;
    border: 1px solid #dee2e6;
}

.loan-emi-report-table tr:nth-child(even) {
    background: #f8f9fa;
}

.status-paid {
    color: #28a745;
    font-weight: bold;
}

.status-pending {
    color: #dc3545;
    font-weight: bold;
}

.status-partial {
    color: #ffc107;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
    }
    .filter-buttons {
        flex-direction: column;
    }
    .report-show-btn, .report-close-btn {
        width: 100%;
        text-align: center;
    }
}

.loan-partpayment-wrapper {
    padding: 20px;
    background: #f0f2f6;
    min-height: calc(100vh - 100px);
}

.loan-partpayment-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.loan-partpayment-header {
    background: linear-gradient(135deg, #1e4663, #0d2b44);
    padding: 15px 24px;
}

.loan-partpayment-header h2 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.loan-partpayment-header h2 i {
    margin-right: 10px;
}

/* Search Section */
.partpayment-search-section {
    padding: 20px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.partpayment-search-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.partpayment-search-row {
    display: flex;
    gap: 15px;
}

.partpayment-search-field {
    flex: 1;
    display: flex;
    gap: 10px;
}

.partpayment-search-field input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.85rem;
}

.partpayment-search-btn {
    padding: 8px 24px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* Two Column Layout */
.partpayment-two-column {
    display: flex;
    gap: 25px;
    padding: 24px;
    flex-wrap: wrap;
}

.partpayment-left {
    flex: 1.2;
    min-width: 500px;
}

.partpayment-right {
    flex: 1;
    min-width: 400px;
}

/* Sections */
.partpayment-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.partpayment-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e4663;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
}

.partpayment-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.partpayment-field {
    flex: 1;
    min-width: 120px;
}

.partpayment-field label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.partpayment-field input, .partpayment-field select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 0.8rem;
}

.partpayment-field input[readonly] {
    background: #e9ecef;
}

.checkbox-field {
    display: flex;
    align-items: center;
}

.checkbox-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-transform: none;
    font-size: 0.75rem;
    margin: 0;
}

/* Table */
.table-wrapper {
    overflow-x: auto;
}

.partpayment-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.7rem;
}

.partpayment-table th {
    background: #1e4663;
    color: white;
    padding: 8px 4px;
    text-align: left;
    border: 1px solid #2c5a82;
    white-space: nowrap;
}

.partpayment-table td {
    padding: 6px 4px;
    border: 1px solid #dee2e6;
}

.partpayment-table input {
    width: 100%;
    padding: 4px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    font-size: 0.7rem;
}

/* Buttons */
.partpayment-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.partpayment-btn {
    padding: 8px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
}

.partpayment-btn.new {
    background: #28a745;
    color: white;
}

.partpayment-btn.save {
    background: #007bff;
    color: white;
}

/* Responsive */
@media (max-width: 900px) {
    .partpayment-two-column {
        flex-direction: column;
    }
    .partpayment-left, .partpayment-right {
        min-width: auto;
    }
    .partpayment-row {
        flex-direction: column;
    }
    .partpayment-buttons {
        flex-direction: column;
    }
    .partpayment-btn {
        width: 100%;
        text-align: center;
    }
}