/* ============================================================
   Accounting CRM Admin Panel - Custom Stylesheet
   ============================================================ */

/* -------- CSS Variables -------- */
:root {
  --sidebar-bg: #1a2a4f;
  --sidebar-bg-dark: #14203d;
  --sidebar-hover: #243a66;
  --sidebar-active: #2d4a82;
  --sidebar-text: #b3c2db;
  --sidebar-text-light: #e8eef7;
  --primary-btn: #2563eb;
  --primary-btn-hover: #1d4ed8;
  --income-green: #16a34a;
  --income-green-light: #dcfce7;
  --expense-red: #dc2626;
  --expense-red-light: #fee2e2;
  --warning-amber: #f59e0b;
  --page-bg: #f1f5f9;
  --card-bg: #ffffff;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  --border-color: #e2e8f0;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 70px;
  --navbar-height: 60px;
}

/* -------- Global -------- */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--page-bg);
  color: var(--text-dark);
  margin: 0;
  font-size: 14px;
}

a {
  text-decoration: none;
}

/* -------- Main Layout -------- */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  transition: margin-left 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-body {
  padding: 24px;
  flex: 1;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background-color: var(--sidebar-bg);
  z-index: 1040;
  transition: width 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  height: var(--navbar-height);
  background-color: var(--sidebar-bg-dark);
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-brand .brand-icon {
  font-size: 28px;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-brand .brand-text {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  list-style: none;
  margin: 0;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  color: var(--sidebar-text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.sidebar-nav .nav-link i {
  font-size: 18px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.sidebar-nav .nav-link:hover {
  background-color: var(--sidebar-hover);
  color: #fff;
}

.sidebar-nav .nav-link.active {
  background-color: var(--sidebar-active);
  color: #fff;
  border-left-color: #3b82f6;
}

/* Sidebar Dropdown Submenu */
.sidebar-nav .submenu-toggle {
  cursor: pointer;
  justify-content: flex-start;
}

.sidebar-nav .submenu-toggle .toggle-icon {
  font-size: 12px;
  margin-left: auto;
  transition: transform 0.2s ease;
}

.sidebar-nav .submenu-toggle.open .toggle-icon {
  transform: rotate(90deg);
}

.sidebar-nav .submenu {
  list-style: none;
  padding: 4px 0;
  margin: 0;
  display: none;
  background-color: rgba(10, 20, 43, 0.22);
}

.sidebar-nav .submenu.open {
  display: block;
}

.sidebar-nav .submenu .nav-link {
  justify-content: flex-start;
  padding: 9px 20px 9px 32px;
  font-size: 13px;
  text-align: left;
  border-left-width: 3px;
}

.sidebar-nav .submenu .nav-link::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background-color: #647aa2;
}

.sidebar-nav .submenu .nav-link:hover::before,
.sidebar-nav .submenu .nav-link.active::before {
  background-color: #60a5fa;
}

.sidebar-nav .nav-section-label {
  padding: 14px 20px 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #5a6b8a;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
}

/* Collapsed Sidebar */
.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

.sidebar.collapsed .sidebar-brand .brand-text {
  display: none;
}

.sidebar.collapsed .sidebar-nav .nav-link .link-text,
.sidebar.collapsed .sidebar-nav .nav-section-label,
.sidebar.collapsed .sidebar-nav .toggle-icon,
.sidebar.collapsed .sidebar-nav .submenu {
  display: none;
}

.sidebar.collapsed .sidebar-nav .nav-link {
  justify-content: center;
  padding: 14px;
}

.sidebar.collapsed .sidebar-nav .nav-link i {
  font-size: 22px;
}

.main-content.sidebar-collapsed {
  margin-left: var(--sidebar-collapsed-width);
}

/* Mobile Sidebar Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1035;
}

.sidebar-overlay.show {
  display: block;
}

/* ============================================================
   TOP NAVBAR
   ============================================================ */
.top-navbar {
  height: var(--navbar-height);
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.navbar-toggle-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-dark);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.navbar-toggle-btn:hover {
  background-color: var(--page-bg);
}

.navbar-date {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13px;
  margin-left: 16px;
}

.navbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Notification icon */
.nav-icon-btn {
  position: relative;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.nav-icon-btn:hover {
  background-color: var(--page-bg);
  color: var(--text-dark);
}

.nav-icon-btn .badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background-color: var(--expense-red);
  border-radius: 50%;
  border: 2px solid #fff;
}

/* User Profile Dropdown */
.user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.user-profile:hover {
  background-color: var(--page-bg);
}

.user-profile .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--primary-btn);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.user-profile .user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}

.user-profile .user-role {
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================================
   PAGE HEADERS & BREADCRUMBS
   ============================================================ */
.page-header {
  margin-bottom: 24px;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.breadcrumb-custom {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.breadcrumb-custom a {
  color: var(--primary-btn);
}

.breadcrumb-custom a:hover {
  text-decoration: underline;
}

.breadcrumb-custom .separator {
  margin: 0 6px;
  color: #cbd5e1;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  background-color: var(--card-bg);
}

.card-header-custom {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header-custom h5,
.card-header-custom h6 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.card-body-custom {
  padding: 20px;
}

/* White card container used by list pages */
.page-body > .content-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.page-body > .content-card > .card-body {
  padding: 22px;
}

/* Customer list: polished data-management layout */
#customerTable {
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1120px;
}

#customerTable thead th {
  padding: 13px 14px;
  background-color: #f8fafc;
  color: #475569;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

#customerTable thead th:first-child {
  border-left: 1px solid var(--border-color);
  border-radius: 9px 0 0 9px;
}

#customerTable thead th:last-child {
  border-right: 1px solid var(--border-color);
  border-radius: 0 9px 9px 0;
}

#customerTable tbody td {
  padding: 15px 14px;
  color: #334155;
  border-color: #eef2f7;
  vertical-align: middle;
}

#customerTable tbody tr {
  transition: background-color 0.15s ease;
}

#customerTable tbody tr:hover {
  background-color: #f8fbff;
}

#customerTable tbody strong {
  color: #172033;
  font-weight: 650;
}

#customerTable .badge {
  padding: 5px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 650;
}

#customerTable td:last-child .btn {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 7px;
  align-items: center;
  justify-content: center;
}

#customerTable td:last-child a.btn {
  display: inline-flex;
}

#customerTable td:last-child button.btn {
  display: inline-flex;
}

#customerTable .sortable {
  cursor: pointer;
  user-select: none;
}

#customerTable .sort-icon {
  margin-left: 4px;
  color: #94a3b8;
}

#tableWrapper {
  border-radius: 10px;
}

#entriesPerPage {
  width: 76px !important;
  min-width: 76px;
  padding-right: 30px;
  background-position: right 9px center;
}

.entries-selector {
  width: 76px !important;
  min-width: 76px;
  padding-right: 30px;
  background-position: right 9px center;
}

.supplier-table-controls > label {
  margin: 0;
  color: #334155;
}

.invoice-items-table { min-width: 1250px; }
.invoice-items-table th { background:#f8fafc; color:#475569; font-size:11px; text-transform:uppercase; white-space:nowrap; }
.invoice-items-table .item-name { min-width:260px; }
.invoice-items-table .item-hsn { min-width:105px; }
.invoice-items-table .item-qty { width:80px; }
.invoice-items-table .item-unit { min-width:82px; }
.invoice-items-table .item-rate { width:110px; }
.invoice-items-table .item-gst { width:75px; }
.invoice-summary-card { border-top:3px solid var(--primary-btn); }
.invoice-total-row { display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px solid var(--border-color); }
.invoice-total-row.grand { margin:6px -20px; padding:14px 20px; background:#eff6ff; color:#1d4ed8; font-size:17px; }

.datatable-search {
  display: flex;
  align-items: center;
  min-width: 260px;
}

.datatable-search label {
  margin: 0;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.datatable-search .form-control {
  min-width: 190px;
  background-color: #fff;
}

.customer-list-card .input-group-text,
.page-body > .content-card #searchInput,
.page-body > .content-card #statusFilter {
  background-color: #f8fafc;
}

.page-body > .content-card #searchInput:focus,
.page-body > .content-card #statusFilter:focus {
  background-color: #fff;
}

.page-body > .content-card > .card-body > .row:first-child {
  padding: 14px;
  margin: -2px -2px 18px;
  background-color: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 10px;
}

/* Supplier form cards */
#supplierForm {
  width: 100%;
  max-width: none;
}

#supplierForm textarea.form-control {
  resize: vertical;
}

#supplierForm .supplier-form-actions {
  margin-top: 0;
}

@media (max-width: 575.98px) {
  .page-body > .content-card > .card-body {
    padding: 16px;
  }

  #supplierForm .supplier-form-actions .btn {
    flex: 1 1 100%;
  }

  #customerTable tbody td,
  #customerTable thead th {
    padding-left: 11px;
    padding-right: 11px;
  }

  .page-body > .content-card > .card-body > .row:first-child {
    padding: 12px;
  }

  .datatable-search {
    width: 100%;
    min-width: 0;
    margin-top: 8px;
    margin-left: 0 !important;
  }

  .datatable-search .form-control {
    min-width: 0;
  }
}

/* ============================================================
   SUMMARY STAT CARDS
   ============================================================ */
.stat-card {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
  background-color: #fff;
  box-shadow: var(--card-shadow);
  transition: all 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  height: 100%;
}

.stat-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-card .stat-icon.bg-blue { background-color: #dbeafe; color: #2563eb; }
.stat-card .stat-icon.bg-green { background-color: var(--income-green-light); color: var(--income-green); }
.stat-card .stat-icon.bg-red { background-color: var(--expense-red-light); color: var(--expense-red); }
.stat-card .stat-icon.bg-amber { background-color: #fef3c7; color: var(--warning-amber); }
.stat-card .stat-icon.bg-purple { background-color: #ede9fe; color: #7c3aed; }
.stat-card .stat-icon.bg-cyan { background-color: #cffafe; color: #0891b2; }

.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card .stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 2px 0 4px;
}

.stat-card .stat-change {
  font-size: 12px;
  font-weight: 500;
}

.stat-change.up { color: var(--income-green); }
.stat-change.down { color: var(--expense-red); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background-color: var(--primary-btn);
  border-color: var(--primary-btn);
  font-weight: 500;
}

.btn-primary:hover {
  background-color: var(--primary-btn-hover);
  border-color: var(--primary-btn-hover);
}

.btn-success {
  background-color: var(--income-green);
  border-color: var(--income-green);
}

.btn-success:hover {
  background-color: #15803d;
  border-color: #15803d;
}

.btn-danger {
  background-color: var(--expense-red);
  border-color: var(--expense-red);
}

.btn-danger:hover {
  background-color: #b91c1c;
  border-color: #b91c1c;
}

.btn-outline-secondary {
  border-color: var(--border-color);
  color: var(--text-muted);
}

.btn-outline-secondary:hover {
  background-color: var(--page-bg);
  color: var(--text-dark);
}

/* Quick action buttons */
.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background-color: #fff;
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.quick-action-btn:hover {
  border-color: var(--primary-btn);
  background-color: #eff6ff;
  color: var(--primary-btn);
}

.quick-action-btn i {
  font-size: 24px;
  color: var(--primary-btn);
}

/* ============================================================
   TABLES
   ============================================================ */
.table-container {
  overflow-x: auto;
  border-radius: 10px;
}

.table {
  margin-bottom: 0;
  font-size: 13px;
  white-space: nowrap;
}

.table > :not(caption) > * > * {
  padding: 12px 16px;
}

.table thead th {
  background-color: #f8fafc;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.table thead th.no-sort {
  cursor: default;
}

.table thead th .sort-icon {
  font-size: 11px;
  margin-left: 4px;
  opacity: 0.4;
}

.table thead th.sorted .sort-icon {
  opacity: 1;
  color: var(--primary-btn);
}

.table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

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

.table tbody td {
  color: var(--text-dark);
  vertical-align: middle;
}

/* Action buttons in table */
.action-btns {
  display: flex;
  gap: 4px;
}

.action-btn {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn.view { background-color: #dbeafe; color: #2563eb; }
.action-btn.edit { background-color: #fef3c7; color: #d97706; }
.action-btn.delete { background-color: var(--expense-red-light); color: var(--expense-red); }
.action-btn.ledger { background-color: #ede9fe; color: #7c3aed; }

.action-btn:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge-custom {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
}

.badge-active { background-color: var(--income-green-light); color: var(--income-green); }
.badge-inactive { background-color: #f1f5f9; color: var(--text-muted); }
.badge-pending { background-color: #fef3c7; color: #d97706; }
.badge-success { background-color: var(--income-green-light); color: var(--income-green); }
.badge-danger { background-color: var(--expense-red-light); color: var(--expense-red); }
.badge-debit { background-color: var(--expense-red-light); color: var(--expense-red); }
.badge-credit { background-color: var(--income-green-light); color: var(--income-green); }
.badge-partial { background-color: #dbeafe; color: #2563eb; }

/* ============================================================
   FORMS
   ============================================================ */
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.required-mark {
  color: var(--expense-red);
  margin-left: 2px;
}

.form-control,
.form-select {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-btn);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-control.is-invalid {
  border-color: var(--expense-red);
}

.form-control.is-valid {
  border-color: var(--income-green);
}

.invalid-feedback,
.text-danger-small {
  color: var(--expense-red);
  font-size: 12px;
  margin-top: 4px;
}

/* Password toggle */
.password-field {
  position: relative;
}

.password-field .toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  z-index: 5;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
  min-height: 100vh;
  display: flex;
}

.login-left-panel {
  flex: 1;
  background: linear-gradient(135deg, #1a2a4f 0%, #2d4a82 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.login-left-panel .login-brand {
  text-align: center;
  margin-bottom: 40px;
}

.login-left-panel .login-brand i {
  font-size: 56px;
  margin-bottom: 16px;
}

.login-left-panel .login-brand h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.login-left-panel .login-tagline {
  font-size: 15px;
  opacity: 0.85;
  max-width: 360px;
  text-align: center;
  line-height: 1.6;
}

.login-features {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 360px;
}

.login-features .feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  opacity: 0.9;
}

.login-features .feature-item i {
  font-size: 22px;
  color: #60a5fa;
}

.login-right-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background-color: var(--page-bg);
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--card-shadow-hover);
  padding: 36px;
}

.login-card .login-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 4px;
}

.login-card .login-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   PASSWORD STRENGTH INDICATOR
   ============================================================ */
.password-strength {
  margin-top: 8px;
}

.strength-bar {
  height: 5px;
  border-radius: 3px;
  background-color: #e2e8f0;
  overflow: hidden;
}

.strength-bar .strength-fill {
  height: 100%;
  width: 0;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.strength-fill.weak { width: 25%; background-color: var(--expense-red); }
.strength-fill.fair { width: 50%; background-color: var(--warning-amber); }
.strength-fill.good { width: 75%; background-color: #3b82f6; }
.strength-fill.strong { width: 100%; background-color: var(--income-green); }

.strength-label {
  font-size: 12px;
  margin-top: 4px;
  font-weight: 500;
}

.password-rules {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  font-size: 12px;
}

.password-rules li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  color: var(--text-muted);
}

.password-rules li i {
  font-size: 14px;
}

.password-rules li.valid {
  color: var(--income-green);
}

.password-rules li.valid i {
  color: var(--income-green);
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast-container-custom {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.custom-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  max-width: 380px;
  padding: 14px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background-color: #fff;
  border-left: 4px solid var(--primary-btn);
  animation: slideInRight 0.3s ease;
}

.custom-toast.success { border-left-color: var(--income-green); }
.custom-toast.error { border-left-color: var(--expense-red); }
.custom-toast.warning { border-left-color: var(--warning-amber); }

.custom-toast .toast-icon {
  font-size: 20px;
}

.custom-toast.success .toast-icon { color: var(--income-green); }
.custom-toast.error .toast-icon { color: var(--expense-red); }
.custom-toast.warning .toast-icon { color: var(--warning-amber); }
.custom-toast.info .toast-icon { color: var(--primary-btn); }

.custom-toast .toast-message {
  font-size: 13px;
  flex: 1;
}

.custom-toast .toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  padding: 0;
}

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

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

.custom-toast.removing {
  animation: slideOutRight 0.3s ease forwards;
}

/* ============================================================
   LOADING SPINNER OVERLAY
   ============================================================ */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
}

.spinner-overlay.show {
  display: flex;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 48px 20px;
}

.empty-state i {
  font-size: 48px;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.empty-state h6 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.app-footer {
  background-color: #fff;
  border-top: 1px solid var(--border-color);
  padding: 14px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   CHART PLACEHOLDER
   ============================================================ */
.chart-placeholder {
  height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 12px;
  padding: 20px 10px;
  border-bottom: 1px solid var(--border-color);
}

.chart-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 220px;
  width: 100%;
  justify-content: center;
}

.chart-bar {
  width: 16px;
  border-radius: 4px 4px 0 0;
  transition: height 0.6s ease;
  position: relative;
}

.chart-bar.income-bar {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
}

.chart-bar.expense-bar {
  background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
}

.chart-bar:hover {
  opacity: 0.85;
}

.chart-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.chart-legend {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 12px 0 0;
}

.chart-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.legend-dot.green { background-color: var(--income-green); }
.legend-dot.red { background-color: var(--expense-red); }

/* ============================================================
   PAYMENT STATUS SUMMARY
   ============================================================ */
.payment-status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

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

.payment-status-item .status-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.payment-status-item .status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.payment-status-item .status-name {
  font-size: 13px;
  color: var(--text-dark);
}

.payment-status-item .status-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ============================================================
   ACTIVITY TIMELINE
   ============================================================ */
.activity-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

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

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.activity-icon.bg-blue { background-color: #dbeafe; color: #2563eb; }
.activity-icon.bg-green { background-color: var(--income-green-light); color: var(--income-green); }
.activity-icon.bg-red { background-color: var(--expense-red-light); color: var(--expense-red); }
.activity-icon.bg-amber { background-color: #fef3c7; color: #d97706; }

.activity-text {
  font-size: 13px;
  color: var(--text-dark);
  margin: 0;
}

.activity-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================================
   REMINDERS
   ============================================================ */
.reminder-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

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

.reminder-item .reminder-info {
  flex: 1;
}

.reminder-item .reminder-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.reminder-item .reminder-amount {
  font-size: 13px;
  color: var(--expense-red);
  font-weight: 600;
}

.reminder-item .reminder-due {
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  gap: 4px;
}

.pagination .page-link {
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 13px;
  transition: all 0.2s ease;
}

.pagination .page-link:hover {
  background-color: var(--page-bg);
  border-color: var(--border-color);
}

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

.pagination .page-item.disabled .page-link {
  color: #cbd5e1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet & below */
@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-width);
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .sidebar.collapsed {
    width: var(--sidebar-width);
    transform: translateX(-100%);
  }

  .sidebar.collapsed.show {
    transform: translateX(0);
  }

  .sidebar.collapsed .sidebar-brand .brand-text,
  .sidebar.collapsed .sidebar-nav .nav-link .link-text,
  .sidebar.collapsed .sidebar-nav .nav-section-label,
  .sidebar.collapsed .sidebar-nav .toggle-icon,
  .sidebar.collapsed .sidebar-nav .submenu {
    display: block;
  }

  .sidebar.collapsed .sidebar-nav .nav-link {
    justify-content: flex-start;
    padding: 11px 20px;
  }

  .sidebar.collapsed .sidebar-nav .nav-link i {
    font-size: 18px;
  }

  .main-content,
  .main-content.sidebar-collapsed {
    margin-left: 0;
  }

  .navbar-date {
    display: none;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .login-left-panel {
    display: none;
  }

  .login-right-panel {
    padding: 20px 16px;
  }

  .login-card {
    padding: 24px;
  }

  .page-body {
    padding: 16px;
  }

  .page-title {
    font-size: 18px;
  }

  .stat-card .stat-value {
    font-size: 18px;
  }

  .user-profile .user-info {
    display: none;
  }

  .chart-placeholder {
    height: 200px;
  }

  .chart-bars {
    height: 140px;
  }

  .chart-bar {
    width: 10px;
  }
}

/* Small mobile */
@media (max-width: 575.98px) {
  .login-card {
    padding: 20px;
  }

  .custom-toast {
    min-width: auto;
    max-width: calc(100vw - 32px);
  }

  .toast-container-custom {
    right: 16px;
    left: 16px;
  }
}
/* Sale details */
.sale-hero { border: 0; background: linear-gradient(135deg, #eff6ff 0%, #fff 62%); }
.sale-doc-icon { width: 58px; height: 58px; flex: 0 0 58px; border-radius: 16px; display: grid; place-items: center; background: #2563eb; color: #fff; font-size: 1.65rem; box-shadow: 0 8px 20px rgba(37,99,235,.22); }
.detail-label { color: #64748b; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .55rem; }
.sale-meta > div { display: flex; justify-content: space-between; gap: 1rem; padding: .66rem 0; border-bottom: 1px solid #eef2f7; }
.sale-meta > div:last-child { border-bottom: 0; }
.sale-meta dt { color: #64748b; font-weight: 500; }
.sale-meta dd { margin: 0; font-weight: 600; text-align: right; }
.sale-items-table th { white-space: nowrap; }
.sale-items-table td, .sale-items-table th { padding: .9rem 1rem; }
.payment-timeline { position: relative; padding-left: 2.6rem; }
.payment-timeline::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: #e2e8f0; }
.payment-event { position: relative; padding-bottom: 1.5rem; }
.payment-event:last-child { padding-bottom: 0; }
.payment-dot { position: absolute; left: -2.6rem; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; z-index: 1; }
.payment-dot.success { color: #15803d; background: #dcfce7; }
.payment-dot.pending { color: #b45309; background: #fef3c7; }
@media (min-width:768px) { .border-md-end { border-right: 1px solid #e2e8f0; } }
@media (max-width:575.98px) { .sale-actions, .sale-actions .btn { width: 100%; } .sale-actions .btn { flex: 1; } .sale-items-table { min-width: 860px; } }
.stock-stat-icon { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 14px; font-size: 1.35rem; }
#currentStockTable { min-width: 1250px; }
@media print { .sidebar,.top-navbar,.app-footer,.sale-actions,#recordPayment { display:none!important; } .main-content { margin-left:0!important; } .page-body { padding:0!important; } .card { break-inside:avoid; box-shadow:none!important; } }
/* Report pages */
.report-stat{height:100%;border:0;box-shadow:0 2px 12px rgba(15,23,42,.07);border-left:4px solid var(--bs-primary)}
.report-stat h3{font-weight:700}.content-card .card-header-custom{display:flex;align-items:center;justify-content:space-between}
@media print{.sidebar,.top-navbar,.app-footer,.page-header .d-flex,.page-body>section:first-of-type{display:none!important}.main-content{margin-left:0!important}.page-body{padding:0!important}.content-card,.card{box-shadow:none!important}}
/* Password security page redesign */
.password-page{max-width:1280px;margin:0 auto;width:100%}.security-status{display:inline-flex;align-items:center;gap:7px;padding:8px 13px;border-radius:99px;background:#ecfdf3;color:#15803d;font-size:.82rem;font-weight:600}.password-shell{display:grid;grid-template-columns:minmax(260px,.82fr) minmax(420px,1.18fr);overflow:hidden;border:1px solid #e4e9f1;border-radius:18px;background:#fff;box-shadow:0 15px 45px rgba(15,23,42,.08)}.password-hero{position:relative;padding:50px 42px;color:#fff;background:linear-gradient(145deg,#172554,#1d4ed8 62%,#2563eb);overflow:hidden}.password-hero:after{content:"";position:absolute;width:260px;height:260px;right:-110px;bottom:-115px;border:45px solid rgba(255,255,255,.06);border-radius:50%}.security-illustration{display:grid;place-items:center;width:72px;height:72px;margin-bottom:35px;border:1px solid rgba(255,255,255,.22);border-radius:20px;background:rgba(255,255,255,.12);font-size:2.1rem}.password-hero .eyebrow{font-size:.72rem;font-weight:700;letter-spacing:.13em;color:#bfdbfe}.password-hero h2{margin:10px 0 14px;font-size:2rem;font-weight:700}.password-hero>p{color:#dbeafe;line-height:1.7}.security-note{position:relative;z-index:1;display:flex;gap:12px;margin-top:45px;padding:17px;border:1px solid rgba(255,255,255,.16);border-radius:12px;background:rgba(15,23,42,.2)}.security-note>i{color:#93c5fd}.security-note strong,.security-note span{display:block}.security-note span{margin-top:4px;font-size:.77rem;line-height:1.5;color:#dbeafe}.password-workspace{padding:44px 48px}.password-workspace form{max-width:590px;margin:auto}.form-heading{margin-bottom:30px}.form-heading h3{margin:0 0 7px;font-size:1.4rem;font-weight:700}.form-heading p{margin:0;color:#6b7280;font-size:.9rem}.password-workspace .form-label{font-weight:600}.password-workspace .password-field{position:relative}.password-workspace .password-field .form-control{height:48px;padding-left:43px;padding-right:45px;border-color:#d8dee8;border-radius:9px}.password-workspace .field-icon{position:absolute;z-index:2;left:15px;top:50%;transform:translateY(-50%);color:#98a2b3}.password-workspace .toggle-password{right:8px}.forgot-link{display:block;width:max-content;margin:8px 0 0 auto;font-size:.8rem;text-decoration:none}.strength-meta{display:flex;justify-content:space-between;margin-bottom:7px;color:#667085;font-size:.76rem}.password-strength{margin-top:11px}.password-requirements{padding:16px 18px;border:1px solid #e4e9f1;border-radius:11px;background:#f8fafc}.requirements-title{display:flex;gap:8px;margin-bottom:12px;font-size:.86rem;font-weight:600}.password-requirements .password-rules{display:grid;grid-template-columns:repeat(2,1fr);gap:9px 18px;margin:0}.password-requirements .password-rules li{font-size:.78rem}.password-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:28px;padding-top:22px;border-top:1px solid #eef0f4}.password-actions .btn{min-width:115px;padding:10px 18px}
@media(max-width:991px){.password-shell{grid-template-columns:1fr}.password-hero{padding:34px}.security-illustration{margin-bottom:22px}.security-note{margin-top:25px}.password-workspace{padding:36px}}
@media(max-width:575px){.password-page{padding-left:15px!important;padding-right:15px!important}.password-hero{padding:28px 24px}.password-hero h2{font-size:1.55rem}.password-workspace{padding:28px 22px}.password-requirements .password-rules{grid-template-columns:1fr}.password-actions{flex-direction:column-reverse}.password-actions .btn{width:100%}.security-status{display:none}}
/* Settings pages */
.settings-page{max-width:1320px;margin:auto;width:100%}.settings-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:22px;align-items:start}.settings-tabs{position:sticky;top:85px;padding:10px;border:1px solid #e4e9f1;border-radius:14px;background:#fff;box-shadow:0 5px 20px rgba(15,23,42,.05)}.settings-tabs a{display:flex;align-items:center;gap:11px;padding:11px 13px;border-radius:9px;color:#667085;font-size:.88rem;font-weight:600;text-decoration:none}.settings-tabs a:hover,.settings-tabs a.active{background:#eff6ff;color:#2563eb}.settings-content{overflow:hidden;border:1px solid #e4e9f1;border-radius:14px;background:#fff;box-shadow:0 5px 20px rgba(15,23,42,.05)}.settings-section{padding:27px 30px;border-bottom:1px solid #edf0f4}.settings-section-head{display:flex;align-items:flex-start;gap:13px;margin-bottom:23px}.settings-section-head>i{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:9px;background:#eff6ff;color:#2563eb;font-size:1.05rem}.settings-section-head h5{margin:0 0 4px;font-size:1rem}.settings-section-head p{margin:0;color:#7b8493;font-size:.8rem}.settings-content .form-label{font-size:.82rem;font-weight:600;color:#475467}.settings-table{min-width:650px}.settings-table th{font-size:.75rem;color:#667085}.setting-switch{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid #f0f2f5}.setting-switch:last-child{border-bottom:0}.setting-switch strong,.setting-switch span{display:block}.setting-switch strong{font-size:.86rem}.setting-switch span{margin-top:3px;color:#7b8493;font-size:.77rem}.setting-switch .form-check-input{width:2.5em;height:1.25em}.settings-actions{display:flex;align-items:center;justify-content:space-between;padding:20px 30px;background:#fafbfc}
@media(max-width:767px){.settings-layout{grid-template-columns:1fr}.settings-tabs{position:static;display:flex;overflow:auto}.settings-tabs a{white-space:nowrap}.settings-section{padding:23px 20px}.settings-actions{align-items:flex-start;flex-direction:column;gap:14px;padding:18px 20px}.settings-actions>div{display:flex;width:100%}.settings-actions .btn{flex:1}}
/* Inward and outward returns */
.return-table{min-width:650px}.return-table th{font-size:.75rem;color:#667085;background:#f8fafc}.return-summary>div{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #edf0f4;color:#667085}.return-summary .return-total{margin-top:5px;padding:17px 0;color:#172033;font-size:1.05rem}.return-summary .return-total strong{color:#2563eb;font-size:1.2rem}
/* Barcode billing */
.barcode-page{max-width:1450px;margin:auto;width:100%}.bill-number{display:flex;flex-direction:column;align-items:flex-end;padding:8px 14px;border-radius:9px;background:#eff6ff;color:#2563eb}.bill-number span{font-size:.7rem;text-transform:uppercase}.barcode-scanner{display:flex;align-items:center;gap:18px;margin-bottom:20px;padding:22px 25px;border-radius:14px;background:linear-gradient(135deg,#172554,#1d4ed8);color:#fff;box-shadow:0 10px 25px rgba(37,99,235,.2)}.scanner-icon{font-size:2.3rem}.scanner-field{flex:1}.scanner-field label{display:block;margin-bottom:7px;font-weight:600}.scanner-field>span{display:block;margin-top:7px;color:#bfdbfe;font-size:.75rem}.scan-status{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:.8rem}.pulse-dot{width:8px;height:8px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 5px rgba(74,222,128,.16)}.barcode-cart .card-header-custom{display:flex;justify-content:space-between}.barcode-cart table{min-width:760px}.barcode-cart td strong,.barcode-cart td small{display:block}.barcode-cart td small{color:#7b8493;font-size:.72rem}.barcode-code{font-family:monospace;font-size:.8rem}.qty-control{display:flex;justify-content:center}.qty-control button,.qty-control input{width:32px;height:30px;border:1px solid #d8dee8;background:#fff;text-align:center}.qty-control button:first-child{border-radius:6px 0 0 6px}.qty-control button:last-child{border-radius:0 6px 6px 0}.qty-control input{border-left:0;border-right:0}.billing-empty{padding:65px 20px;text-align:center;color:#98a2b3}.billing-empty>i{font-size:2.5rem}.billing-empty h5{margin:12px 0 5px;color:#667085}.billing-summary .card-body-custom>div:not(.payment-modes){display:flex;align-items:center;justify-content:space-between;padding:9px 0}.billing-summary .discount-row .input-group{width:120px}.billing-summary .grand-total{margin-top:8px;padding:17px 0!important;border-top:1px solid #e5e7eb;font-size:1.12rem}.billing-summary .grand-total strong{color:#2563eb;font-size:1.35rem}.payment-modes{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.payment-modes label{display:flex;flex-direction:column;gap:3px;font-size:.74rem}
@media(max-width:767px){.barcode-scanner{align-items:stretch;flex-direction:column}.scanner-icon,.scan-status{display:none}.scanner-field .input-group{display:block}.scanner-field .form-control,.scanner-field .btn{width:100%;border-radius:7px!important}.scanner-field .btn{margin-top:8px}.bill-number{display:none}}
@media print{.barcode-scanner,.sidebar,.top-navbar,.page-header,.billing-summary .btn,.app-footer{display:none!important}.main-content{margin:0!important}.page-body{padding:0!important}.col-xl-8{width:100%}.col-xl-4{width:100%}}
/* Received payment form refresh */
.received-form-page .page-body{max-width:1280px;margin:0 auto;width:100%}.received-intro{position:relative;display:flex;align-items:center;gap:20px;margin-bottom:22px;padding:25px 28px;overflow:hidden;border-radius:16px;background:linear-gradient(130deg,#064e3b,#059669);color:#fff;box-shadow:0 12px 28px rgba(5,150,105,.2)}.received-intro:after{content:"";position:absolute;right:-55px;top:-75px;width:210px;height:210px;border:35px solid rgba(255,255,255,.07);border-radius:50%}.received-intro-icon{display:grid;place-items:center;flex:0 0 64px;height:64px;border:1px solid rgba(255,255,255,.24);border-radius:16px;background:rgba(255,255,255,.13);font-size:1.8rem}.received-intro-copy{flex:1}.received-intro-copy>span{font-size:.68rem;font-weight:700;letter-spacing:.14em;color:#a7f3d0}.received-intro-copy h2{margin:5px 0 4px;font-size:1.35rem;font-weight:700}.received-intro-copy p{max-width:590px;margin:0;color:#d1fae5;font-size:.82rem}.received-intro-steps{position:relative;z-index:1;display:flex;align-items:center;gap:10px}.received-intro-steps>div{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:.7rem}.received-intro-steps strong{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#fff;color:#047857}.received-intro-steps>i{font-size:.65rem;color:#6ee7b7}.received-form-wrap>.col-xl-9{width:100%;max-width:100%}.received-form-page #receivedDbForm{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}.received-form-page #receivedDbForm .card{overflow:hidden;border:1px solid #e3e9e7;border-radius:14px;box-shadow:0 7px 24px rgba(15,23,42,.06)}.received-form-page #receivedDbForm .card-header-custom{padding:18px 22px;background:linear-gradient(90deg,#f0fdf4,#fff);border-bottom:1px solid #dcfce7}.received-form-page #receivedDbForm .card-header-custom h5{color:#166534}.received-form-page #receivedDbForm .card-body-custom{padding:25px}.received-form-page #receivedDbForm .form-label{font-size:.8rem;font-weight:600;color:#344054}.received-form-page #receivedDbForm .form-control,.received-form-page #receivedDbForm .form-select{min-height:46px;border-color:#d7e1dd;border-radius:9px}.received-form-page #receivedDbForm textarea.form-control{min-height:auto}.received-form-page #receivedDbForm .form-control:focus,.received-form-page #receivedDbForm .form-select:focus{border-color:#10b981;box-shadow:0 0 0 3px rgba(16,185,129,.12)}.received-form-page #receivedDue{font-size:1rem;font-weight:700;color:#dc2626;background:#fff7f7}.received-form-page #receivedDbAmount{font-size:1.05rem;font-weight:700;color:#047857}.received-form-page #receivedDbForm>section:last-child{border-top:3px solid #10b981}.received-form-page #receivedDbForm>section:last-child .card-body-custom{padding:17px 22px}.received-form-page #receivedDbForm .btn-success{padding:10px 23px;background:#059669;border-color:#059669}.received-form-page #receivedDbForm .btn-success:hover{background:#047857;border-color:#047857}
@media(max-width:991px){.received-intro{align-items:flex-start;flex-wrap:wrap}.received-intro-steps{width:100%;padding-top:12px;border-top:1px solid rgba(255,255,255,.15)}}
@media(max-width:575px){.received-intro{padding:21px}.received-intro-icon{display:none}.received-intro-steps{justify-content:space-between}.received-intro-steps>div{display:block;text-align:center}.received-intro-steps strong{margin:0 auto 5px}.received-intro-steps>i{display:none}.received-form-page #receivedDbForm .card-body-custom{padding:20px 17px}.received-form-page #receivedDbForm>section:last-child .card-body-custom{flex-direction:column-reverse}.received-form-page #receivedDbForm>section:last-child .btn{width:100%}}
