/* ===================================================
   Banking-Style UI — Global Form & Component Styles
   =================================================== */

:root {
  --bank-primary: #102D50;
  --bank-primary-dark: #102D50;
  --bank-accent: #C4932C;
  --bank-white: #ffffff;
  --bank-bg: #f4f9fb;
  --bank-border: #dbe7ed;
  --bank-text: #102a3c;
  --bank-muted: #667986;
}

/* Unified MNC Bank banking palette */
body {
  color: var(--bank-text);
  background-color: var(--bank-bg);
}

a { color: var(--bank-primary); }
a:hover { color: var(--bank-primary-dark); }

.headerNew,
.fixed-top,
.navbar.fixed-top {
  border-bottom: 1px solid var(--bank-border) !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 8px 28px rgba(16, 45, 80, .08) !important;
}

.btn-primary,
.bg-primary,
.bg-teal-600,
.button-login,
button[type="submit"]:not(.btn-link) {
  border-color: var(--bank-primary) !important;
  background-color: var(--bank-primary) !important;
  color: var(--bank-white) !important;
}

.btn-primary:hover,
.bg-teal-600:hover,
button[type="submit"]:not(.btn-link):hover {
  border-color: var(--bank-primary-dark) !important;
  background-color: var(--bank-primary-dark) !important;
}

.btn-outline-primary {
  border-color: var(--bank-primary) !important;
  color: var(--bank-primary) !important;
}

.btn-outline-primary:hover {
  background: var(--bank-primary) !important;
  color: var(--bank-white) !important;
}

.text-primary,
.text-teal-600 { color: var(--bank-primary) !important; }
.border-primary,
.border-teal-600 { border-color: var(--bank-primary) !important; }

.card,
.panel,
.modal-content,
.dropdown-menu {
  border-color: var(--bank-border) !important;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(16, 45, 80, .07);
}

.card-header,
.panel-heading,
.modal-header {
  border-color: var(--bank-border) !important;
  background-color: #f8fbfc;
  color: var(--bank-primary);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus,
.form-control:focus {
  border-color: var(--bank-accent) !important;
  box-shadow: 0 0 0 3px rgba(196, 147, 44, .14) !important;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  border-color: var(--bank-primary);
  background-color: var(--bank-primary);
}

.table thead th,
table.dataTable thead th {
  border-color: var(--bank-border) !important;
  background: var(--bank-primary) !important;
  color: var(--bank-white) !important;
}

.table-hover tbody tr:hover { background-color: rgba(196, 147, 44, .07); }

.pagination .page-item.active .page-link {
  border-color: var(--bank-primary);
  background: var(--bank-primary);
}

.pagination .page-link { color: var(--bank-primary); }

.badge-primary,
.badge-info {
  background: var(--bank-accent) !important;
  color: #07364a !important;
}

.nav-pills .nav-link.active,
.nav-tabs .nav-link.active {
  border-color: var(--bank-primary) !important;
  background: var(--bank-primary) !important;
  color: var(--bank-white) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--bank-primary) !important;
}

/* ===================================================
   Light / Dark Mode Switch
   =================================================== */

.bank-theme-toggle {
  min-width: 42px;
  width: 42px;
  height: 42px;
  padding: 0 !important;
  border: 1px solid var(--bank-border) !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  color: var(--bank-primary) !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(16, 45, 80, .08);
}

.bank-theme-toggle i {
  margin-right: 0;
}

.bank-theme-toggle-symbol {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  font-size: 21px;
  font-weight: 800;
  line-height: 42px;
  text-align: center;
}

.bank-theme-toggle:hover,
.bank-theme-toggle:focus {
  border-color: var(--bank-accent) !important;
  background: #f8fafc !important;
  color: var(--bank-primary-dark) !important;
  box-shadow: 0 0 0 3px rgba(196, 147, 44, .14);
}

.mobile-navbar-action.bank-theme-toggle {
  min-width: 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-navbar-action.bank-theme-toggle i {
  margin-right: 0;
}

html[data-bank-color-mode="dark"] {
  color-scheme: dark;
  --bank-primary: #8fb9ff;
  --bank-primary-dark: #c3dafe;
  --bank-accent: #f0b84f;
  --bank-white: #f8fafc;
  --bank-bg: #0b1220;
  --bank-border: #26364d;
  --bank-text: #e5edf7;
  --bank-muted: #a8b3c4;
}

html[data-bank-color-mode="dark"] body {
  background: #0b1220 !important;
  color: var(--bank-text) !important;
}

html[data-bank-color-mode="dark"] .headerNew,
html[data-bank-color-mode="dark"] .fixed-top,
html[data-bank-color-mode="dark"] .navbar.fixed-top {
  border-bottom-color: #26364d !important;
  background: rgba(13, 24, 42, .97) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35) !important;
}

html[data-bank-color-mode="dark"] .navbar,
html[data-bank-color-mode="dark"] .navbar a,
html[data-bank-color-mode="dark"] .navbar .nav-link,
html[data-bank-color-mode="dark"] .navbar-icons,
html[data-bank-color-mode="dark"] .text-teal-600,
html[data-bank-color-mode="dark"] .text-primary {
  color: #dbeafe !important;
}

html[data-bank-color-mode="dark"] .text-theme-bsi-grey,
html[data-bank-color-mode="dark"] .text-gray-400,
html[data-bank-color-mode="dark"] .text-gray-500,
html[data-bank-color-mode="dark"] .left-section-text {
  color: #a8b3c4 !important;
}

html[data-bank-color-mode="dark"] .text-theme-bsi-yellow {
  color: #f0b84f !important;
}

html[data-bank-color-mode="dark"] .bg-white,
html[data-bank-color-mode="dark"] .bg-bsi-white,
html[data-bank-color-mode="dark"] .bg-light,
html[data-bank-color-mode="dark"] .grid,
html[data-bank-color-mode="dark"] .card,
html[data-bank-color-mode="dark"] .panel,
html[data-bank-color-mode="dark"] .modal-content,
html[data-bank-color-mode="dark"] .dropdown-menu,
html[data-bank-color-mode="dark"] .leftpanel,
html[data-bank-color-mode="dark"] .rightpanel,
html[data-bank-color-mode="dark"] .centerpanel,
html[data-bank-color-mode="dark"] .content,
html[data-bank-color-mode="dark"] .container,
html[data-bank-color-mode="dark"] .container-fluid,
html[data-bank-color-mode="dark"] .list-group-item,
html[data-bank-color-mode="dark"] .table-responsive {
  background-color: #111c2f !important;
  color: var(--bank-text) !important;
  border-color: var(--bank-border) !important;
}

html[data-bank-color-mode="dark"] .card-header,
html[data-bank-color-mode="dark"] .panel-heading,
html[data-bank-color-mode="dark"] .panel-header,
html[data-bank-color-mode="dark"] .modal-footer,
html[data-bank-color-mode="dark"] .dropdown-divider {
  background-color: #0f1a2b !important;
  color: var(--bank-text) !important;
  border-color: var(--bank-border) !important;
}

html[data-bank-color-mode="dark"] .modal-body {
  background-color: #111c2f !important;
  color: var(--bank-text) !important;
}

html[data-bank-color-mode="dark"] .dropdown-item,
html[data-bank-color-mode="dark"] .custom-link,
html[data-bank-color-mode="dark"] label,
html[data-bank-color-mode="dark"] .form-label,
html[data-bank-color-mode="dark"] .control-label,
html[data-bank-color-mode="dark"] p,
html[data-bank-color-mode="dark"] span,
html[data-bank-color-mode="dark"] h1,
html[data-bank-color-mode="dark"] h2,
html[data-bank-color-mode="dark"] h3,
html[data-bank-color-mode="dark"] h4,
html[data-bank-color-mode="dark"] h5,
html[data-bank-color-mode="dark"] h6 {
  color: inherit;
}

html[data-bank-color-mode="dark"] .dropdown-item:hover,
html[data-bank-color-mode="dark"] .dropdown-item:focus,
html[data-bank-color-mode="dark"] .hov-bg-gray-200:hover,
html[data-bank-color-mode="dark"] .searchmenu:hover,
html[data-bank-color-mode="dark"] #carauselright .list-group-item:hover {
  background-color: #1a2940 !important;
  color: #ffffff !important;
}

html[data-bank-color-mode="dark"] input[type="text"],
html[data-bank-color-mode="dark"] input[type="password"],
html[data-bank-color-mode="dark"] input[type="email"],
html[data-bank-color-mode="dark"] input[type="number"],
html[data-bank-color-mode="dark"] input[type="search"],
html[data-bank-color-mode="dark"] input[type="date"],
html[data-bank-color-mode="dark"] textarea,
html[data-bank-color-mode="dark"] select,
html[data-bank-color-mode="dark"] .form-control,
html[data-bank-color-mode="dark"] .input-group-text {
  border-color: var(--bank-border) !important;
  background-color: #0d1728 !important;
  color: #f8fafc !important;
}

html[data-bank-color-mode="dark"] input::placeholder,
html[data-bank-color-mode="dark"] textarea::placeholder,
html[data-bank-color-mode="dark"] .form-control::placeholder {
  color: #7f8ca3 !important;
}

html[data-bank-color-mode="dark"] input[readonly],
html[data-bank-color-mode="dark"] input:disabled,
html[data-bank-color-mode="dark"] select:disabled,
html[data-bank-color-mode="dark"] textarea:disabled,
html[data-bank-color-mode="dark"] .form-control:disabled {
  background-color: #17243a !important;
  color: #a8b3c4 !important;
  opacity: 1;
}

html[data-bank-color-mode="dark"] table,
html[data-bank-color-mode="dark"] .table {
  background-color: #111c2f !important;
  color: var(--bank-text) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}

html[data-bank-color-mode="dark"] table tbody td,
html[data-bank-color-mode="dark"] .table tbody td {
  border-color: var(--bank-border) !important;
  background-color: #111c2f !important;
  color: #dbe4f0 !important;
}

html[data-bank-color-mode="dark"] table tbody tr:hover td,
html[data-bank-color-mode="dark"] .table tbody tr:hover td,
html[data-bank-color-mode="dark"] table.table-striped tbody tr:nth-child(even) td,
html[data-bank-color-mode="dark"] .table-striped tbody tr:nth-child(even) td {
  background-color: #17243a !important;
}

html[data-bank-color-mode="dark"] .select2-container--default .select2-selection--single,
html[data-bank-color-mode="dark"] .select2-container--default .select2-selection--multiple,
html[data-bank-color-mode="dark"] .select2-dropdown,
html[data-bank-color-mode="dark"] .select2-search--dropdown .select2-search__field {
  border-color: var(--bank-border) !important;
  background-color: #0d1728 !important;
  color: #f8fafc !important;
}

html[data-bank-color-mode="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered,
html[data-bank-color-mode="dark"] .select2-container--default .select2-results__option {
  color: #f8fafc !important;
}

html[data-bank-color-mode="dark"] .select2-container--default .select2-selection__placeholder {
  color: #8b98ad !important;
}

html[data-bank-color-mode="dark"] .btn-light,
html[data-bank-color-mode="dark"] .btn.bg-white,
html[data-bank-color-mode="dark"] .bank-theme-toggle {
  border-color: var(--bank-border) !important;
  background-color: #17243a !important;
  color: #f8fafc !important;
}

html[data-bank-color-mode="dark"] .bank-theme-toggle:hover,
html[data-bank-color-mode="dark"] .bank-theme-toggle:focus {
  border-color: var(--bank-accent) !important;
  background-color: #20314d !important;
  color: #ffffff !important;
}

html[data-bank-color-mode="dark"] .badge-primary,
html[data-bank-color-mode="dark"] .badge-info,
html[data-bank-color-mode="dark"] .pagination .page-link {
  border-color: var(--bank-border) !important;
  background-color: #17243a !important;
  color: #f8fafc !important;
}

html[data-bank-color-mode="dark"] .alert,
html[data-bank-color-mode="dark"] .well,
html[data-bank-color-mode="dark"] mark {
  border-color: var(--bank-border) !important;
  background-color: #1f2f4a !important;
  color: #fff6d6 !important;
}

/* --- Loader --- */
#loader {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.92)
}
#loader::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top-color: #1e3a6e;
  border-radius: 50%;
  animation: bank-spin 0.6s linear infinite
}
@keyframes bank-spin {
  to { transform: rotate(360deg) }
}

/* ===== Banking Form Fields ===== */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="date"],
textarea,
.form-control:not(select) {
  height: 42px;
  border-radius: 10px;
  border: 1px solid #d9e2ec;
  padding: 0 14px;
  font-size: 14px;
  color: #0f172a;
  background: #ffffff;
  box-shadow: none;
  transition: border-color 0.2s, box-shadow 0.2s
}
select,
select.form-control {
  height: 42px;
  border-radius: 10px;
  border: 1px solid #d9e2ec;
  padding: 0 36px 0 14px;
  font-size: 14px;
  color: #0f172a;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer
}
textarea.form-control,
textarea {
  height: auto;
  padding: 12px 14px
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus,
.form-control:focus {
  border-color: #1e3a6e;
  box-shadow: 0 0 0 3px rgba(30, 58, 110, 0.1);
  outline: none
}
input::placeholder,
textarea::placeholder,
.form-control::placeholder {
  color: #94a3b8
}
label, .form-label,
.col-form-label, .control-label,
label.col-md-4, label.col-md-3, label.col-md-2,
label.col-sm-4, label.col-sm-3, label.col-sm-2,
label.col-lg-4, label.col-lg-3, label.col-lg-2 {
  font-size: 14px;
  font-weight: 600;
  color: #16324a;
  margin-bottom: 6px
}

/* ===== Radio & Checkbox ===== */
input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #d9e2ec;
  background: #fff;
  vertical-align: middle;
  margin: 0 8px 0 0;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0
}
input[type="checkbox"] {
  border-radius: 5px
}
input[type="checkbox"]:checked {
  background: #1e3a6e;
  border-color: #1e3a6e;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10'%3E%3Cpath d='M1 5l3 3 7-7' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat
}
input[type="radio"] {
  border-radius: 50%
}
input[type="radio"]:checked {
  border-color: #1e3a6e;
  background: #fff;
  box-shadow: inset 0 0 0 5px #1e3a6e
}
input[type="checkbox"]:focus,
input[type="radio"]:focus {
  border-color: #1e3a6e;
  box-shadow: 0 0 0 3px rgba(30, 58, 110, 0.12);
  outline: none
}
input[type="checkbox"]:hover:not(:disabled),
input[type="radio"]:hover:not(:disabled) {
  border-color: #1e3a6e
}
input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
  opacity: 0.5;
  cursor: not-allowed
}
input[type="checkbox"]:disabled + label,
input[type="radio"]:disabled + label {
  opacity: 0.5;
  cursor: not-allowed
}

/* ===== Input Group ===== */
.input-group-text {
  height: 42px;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  font-size: 14px;
  padding: 0 14px
}
.input-group .form-control {
  border-right: none
}
.input-group .form-control + .input-group-append .input-group-text {
  border-left: none;
  border-radius: 0 10px 10px 0
}
.input-group .input-group-prepend + .form-control {
  border-left: none;
  border-radius: 0 10px 10px 0
}
.input-group .input-group-prepend .input-group-text {
  border-right: none;
  border-radius: 10px 0 0 10px
}
/* input-group-sm */
.input-group-sm .form-control,
.input-group-sm .input-group-text {
  height: 38px !important;
  font-size: 13px;
  border-radius: 8px
}
.input-group-sm .input-group-prepend .input-group-text {
  border-right: none;
  border-radius: 8px 0 0 8px
}
.input-group-sm .input-group-append .input-group-text {
  border-left: none;
  border-radius: 0 8px 8px 0
}
.input-group-sm .input-group-prepend + .form-control {
  border-left: none;
  border-radius: 0 8px 8px 0
}
.input-group-text.bg-transparent,
.input-group-text.navbar-search-icon {
  background: #f8fafc;
  color: #64748b
}

/* ===== Select2 ===== */
.select2-container--default .select2-selection--single {
  height: 42px;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  outline: none
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 42px;
  padding-left: 14px;
  padding-right: 30px;
  color: #0f172a;
  font-size: 14px
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 40px;
  right: 8px
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #94a3b8
}
.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #1e3a6e;
  box-shadow: 0 0 0 3px rgba(30, 58, 110, 0.1)
}
.select2-container--default .select2-selection--multiple {
  min-height: 42px;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  padding: 4px 8px
}
.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: #1e3a6e;
  box-shadow: 0 0 0 3px rgba(30, 58, 110, 0.1)
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 6px;
  color: #1e3a6e;
  padding: 2px 10px;
  font-size: 13px
}
.select2-dropdown {
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1)
}
.select2-container--default .select2-results__option {
  padding: 10px 14px;
  font-size: 14px;
  color: #0f172a
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: #1e3a6e;
  color: #ffffff
}
.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 8px 12px;
  outline: none
}

/* ===== Modal / Popup ===== */
.modal-content {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15)
}
.modal-header {
  background: linear-gradient(135deg, #0a1628 0%, #152240 100%);
  border-bottom: none;
  padding: 20px 24px;
  color: #ffffff
}
.modal-header .modal-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.3px
}
.modal-header .close {
  color: rgba(255,255,255,0.7);
  opacity: 1;
  text-shadow: none;
  font-size: 1.4rem
}
.modal-header .close:hover {
  color: #ffffff
}
.modal-body {
  padding: 24px 28px;
  background: #ffffff;
  font-size: 14px;
  color: #1e293b
}
.modal-footer {
  border-top: 1px solid #f1f5f9;
  padding: 16px 28px 20px 28px;
  background: #ffffff
}
.modal-footer .btn {
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 22px;
  transition: all 0.2s
}

/* ===================================================
   Banking-Style Data Tables
   =================================================== */

/* --- Global table reset --- */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  color: #1e293b;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06)
}

/* --- Header --- */
table thead th,
.table thead th,
.table-header {
  background: linear-gradient(180deg, #102D50 0%, #102D50 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 16px;
  border-bottom: 2px solid #001433;
  white-space: nowrap;
  text-align: left
}
table thead th:first-child {
  border-radius: 0
}
table thead th:last-child {
  border-radius: 0
}

/* --- Body rows --- */
table tbody td,
.table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
  color: #334155;
  vertical-align: middle;
  transition: background 0.15s
}
table td[rowspan],
table td[colspan],
.table td[rowspan],
.table td[colspan] {
  vertical-align: middle !important;
  text-align: center
}

/* --- Row hover --- */
table tbody tr:hover td,
.table tbody tr:hover td {
  background: #f8fafc
}

/* --- Striped rows --- */
table.table-striped tbody tr:nth-child(even) td,
.table-striped tbody tr:nth-child(even) td {
  background: #fafbfc
}
table.table-striped tbody tr:hover td,
.table-striped tbody tr:hover td {
  background: #f1f5f9
}

/* --- Selected / active row --- */
table tbody tr.row-selected td,
table tbody tr.active td {
  background: #eef2ff;
  border-left: 3px solid #1e3a6e
}

/* --- Bordered variant --- */
table.table-bordered,
.table-bordered {
  border: 1px solid #e2e8f0
}
table.table-bordered td,
table.table-bordered th,
.table-bordered td,
.table-bordered th {
  border: 1px solid #e2e8f0
}

/* --- Compact / small table --- */
table.table-sm thead th,
.table-sm thead th {
  padding: 8px 12px;
  font-size: 12px
}
table.table-sm tbody td,
.table-sm tbody td {
  padding: 8px 12px;
  font-size: 13px
}

/* --- Numeric / currency align --- */
table td.num,
table td.currency,
table td.amount,
.table td.num,
.table td.currency,
.table td.amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif
}

/* --- Status badges inside tables --- */
table td .status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px
}
.status-badge.success,
.status-badge.approved,
.status-badge.active {
  background: #dcfce7;
  color: #166534
}
.status-badge.pending,
.status-badge.waiting {
  background: #fef9c3;
  color: #854d0e
}
.status-badge.failed,
.status-badge.rejected,
.status-badge.inactive {
  background: #fee2e2;
  color: #991b1b
}
.status-badge.processing {
  background: #dbeafe;
  color: #1e40af
}

/* --- Action buttons in table --- */
table td .btn-action,
table td .btn-table {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  padding: 0;
  line-height: 34px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center
}
table td .btn-action:hover,
table td .btn-table:hover {
  background: #1e3a6e;
  border-color: #1e3a6e;
  color: #ffffff
}
table td .btn-action.btn-edit:hover {
  background: #2563eb;
  border-color: #2563eb
}
table td .btn-action.btn-delete:hover {
  background: #dc2626;
  border-color: #dc2626
}
table td .btn-action.btn-view:hover {
  background: #0891b2;
  border-color: #0891b2
}

/* --- Responsive table wrapper --- */
.table-responsive {
  border-radius: 12px;
  overflow-x: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06)
}
.table-responsive table {
  box-shadow: none;
  border-radius: 0
}

/* Keep the application palette authoritative over legacy theme files. */
#loader::after { border-top-color: var(--bank-primary); }
a,
.text-primary,
.text-teal-600 { color: var(--bank-primary) !important; }

.btn-primary,
.bg-primary,
.bg-teal-600,
.nav-pills .nav-link.active,
.nav-tabs .nav-link.active,
.pagination .page-item.active .page-link,
button[type="submit"]:not(.btn-link) {
  border-color: var(--bank-primary) !important;
  background-color: var(--bank-primary) !important;
  color: var(--bank-white) !important;
}

.btn-primary:hover,
.bg-teal-600:hover,
button[type="submit"]:not(.btn-link):hover {
  border-color: var(--bank-primary-dark) !important;
  background-color: var(--bank-primary-dark) !important;
}

.btn-outline-primary,
.pagination .page-link { border-color: var(--bank-primary); color: var(--bank-primary) !important; }
.border-primary,
.border-teal-600 { border-color: var(--bank-primary) !important; }

.headerNew,
.fixed-top,
.navbar.fixed-top {
  border-bottom-color: var(--bank-border) !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 8px 28px rgba(16, 45, 80, .08) !important;
}

.table thead th,
table.dataTable thead th {
  border-color: var(--bank-border) !important;
  background: var(--bank-primary) !important;
  color: var(--bank-white) !important;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus,
.form-control:focus {
  border-color: var(--bank-accent) !important;
  box-shadow: 0 0 0 3px rgba(196, 147, 44, .14) !important;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  border-color: var(--bank-primary) !important;
  background-color: var(--bank-primary) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--bank-primary) !important;
}
